libtool-cross 2.2.6[ab]: Drop legacy staging, taken from poky
[openembedded.git] / recipes / libiconv / libiconv-1.12 / autotools.patch
blob769a60fb2589e011031dcabe0b103a064a97a924
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
5 @@ -16,17 +16,17 @@
6 dnl write to the Free Software Foundation, Inc., 51 Franklin Street,
7 dnl Fifth Floor, Boston, MA 02110-1301, USA.
9 -AC_PREREQ(2.13)
10 +AC_PREREQ(2.61)
11 +AC_INIT([libcharset],[1.4] )
12 +AC_CONFIG_SRCDIR([lib/localcharset.c])
14 -PACKAGE=libcharset
15 -VERSION=1.4
17 -AC_INIT(lib/localcharset.c)
18 AC_CONFIG_AUX_DIR(build-aux)
19 AC_CONFIG_HEADER(config.h)
20 AC_PROG_MAKE_SET
21 -AC_SUBST(PACKAGE)
22 -AC_SUBST(VERSION)
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
34 @@ -24,6 +24,8 @@
35 AC_CONFIG_HEADERS(config.h lib/config.h)
36 AC_PROG_MAKE_SET
38 +AC_CONFIG_MACRO_DIR([m4])
40 dnl checks for basic programs
42 AC_PROG_CC
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
47 @@ -1,107 +1,186 @@
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
52 -##
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],
64 - [],
65 - [m4_define([AC_PROVIDE_IFELSE],
66 - [m4_ifdef([AC_PROVIDE_$1],
67 - [$2], [$3])])])
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.
106 +# serial 56 LT_INIT
108 -# AC_PROG_LIBTOOL
109 -# ---------------
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],
115 - [AC_LIBTOOL_CXX],
116 - [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
117 - ])])
118 -dnl And a similar setup for Fortran 77 support
119 - AC_PROVIDE_IFELSE([AC_PROG_F77],
120 - [AC_LIBTOOL_F77],
121 - [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
122 -])])
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],
128 - [AC_LIBTOOL_GCJ],
129 - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
130 - [AC_LIBTOOL_GCJ],
131 - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
132 - [AC_LIBTOOL_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,
147 + [m4_default([$3],
148 + [m4_fatal([Libtool version $1 or higher is required],
149 + 63)])],
150 + [$2])])
152 -# _AC_PROG_LIBTOOL
153 -# ----------------
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],
164 +[case `pwd` in
165 + *\ * | *\ *)
166 + AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
167 +esac
171 +# LT_INIT([OPTIONS])
172 +# ------------------
173 +AC_DEFUN([LT_INIT],
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
191 +dnl Parse OPTIONS
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"
202 AC_SUBST(LIBTOOL)dnl
204 -# Prevent multiple expansion
205 -define([AC_PROG_LIBTOOL], [])
206 -])# _AC_PROG_LIBTOOL
207 +_LT_SETUP
209 +# Only expand once:
210 +m4_define([LT_INIT])
211 +])# LT_INIT
213 +# Old names:
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], [])
220 -# AC_LIBTOOL_SETUP
221 -# ----------------
222 -AC_DEFUN([AC_LIBTOOL_SETUP],
223 -[AC_PREREQ(2.50)dnl
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
234 + case $cc_temp in
235 + compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
236 + distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
237 + \-*) ;;
238 + *) break;;
239 + esac
240 +done
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],
250 +[: ${CP="cp -f"}
251 +: ${MV="mv -f"}
252 +: ${RM="rm -f"}
253 +])# _LT_FILEUTILS_DEFAULTS
256 +# _LT_SETUP
257 +# ---------
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
264 +dnl
265 +_LT_DECL([], [build_alias], [0], [The build system])dnl
266 +_LT_DECL([], [build], [0])dnl
267 +_LT_DECL([], [build_os], [0])dnl
268 +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
276 +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
288 +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
309 -AC_LIBTOOL_OBJDIR
310 +_LT_CHECK_OBJDIR
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
317 case $host_os in
318 aix3*)
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'
341 -# Constants:
342 -rm="rm -f"
344 # Global variables:
345 -default_ofile=libtool
346 +ofile=${host_alias}-libtool
347 can_build_shared=yes
349 # All known linkers require a `.a' archive for static linking (except MSVC,
350 # which needs '.lib').
351 libext=a
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"
361 old_CC="$CC"
362 old_CFLAGS="$CFLAGS"
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
388 - case $host_os in
389 - openbsd*)
390 - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
391 - ;;
392 - *)
393 - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
394 - ;;
395 - esac
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
404 file_magic*)
405 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
406 - AC_PATH_MAGIC
407 + _LT_PATH_MAGIC
410 esac
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])
422 +_LT_LANG_C_CONFIG
423 +_LT_LANG_DEFAULT_CONFIG
424 +_LT_CONFIG_COMMANDS
425 +])# _LT_SETUP
427 -AC_ARG_WITH([pic],
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
435 -tagname=
436 -AC_LIBTOOL_LANG_C_CONFIG
437 -_LT_AC_TAGCONFIG
438 -])# AC_LIBTOOL_SETUP
439 +# _LT_PROG_LTMAIN
440 +# ---------------
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"
449 +])# _LT_PROG_LTMAIN
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'
463 +# label.
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],
470 +[m4_ifval([$1],
471 + [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
472 + [$1
473 +])])])
475 +# Initialize.
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],
483 +[m4_ifval([$1],
484 + [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
485 + [$1
486 +])])])
488 +# Initialize.
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.
500 -LTCC=${LTCC-"$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],
509 +[m4_ifval([$1], [
510 +m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
511 + [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
512 +)])
514 -# Allow CC to be a program name with arguments.
515 -compiler=$CC
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
524 - case $cc_temp in
525 - compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
526 - distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
527 - \-*) ;;
528 - *) break;;
529 - esac
530 -done
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])
548 + m4_ifval([$4],
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`
565 -$rm conftest*
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],
582 +[m4_case([$#],
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`
600 -$rm conftest*
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], [[, ]])),
630 + m4_if([$2], [],
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/,/^$/ {
652 - /^0/ {
653 - s/^0 *\(.*\)$/\1/
656 - }'
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"`
661 -fi],[])
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)])
680 -AC_DIVERT_POP
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}
704 -case X$ECHO in
705 -X*--fallback-echo)
706 - # Remove one level of quotation (which was required for Make).
707 - ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
708 - ;;
709 -esac
710 +# _LT_LIBTOOL_TAGS
711 +# ----------------
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
718 -echo=${ECHO-echo}
719 -if test "X[$]1" = X--no-reexec; then
720 - # Discard the --no-reexec flag, and continue.
721 - shift
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!
728 -else
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
735 - shift
736 - cat <<EOF
737 -[$]*
738 -EOF
739 - exit 0
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
762 -# if CDPATH is set.
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
773 - then
774 - break
775 - fi
776 - done
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
793 -else
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
802 - IFS="$lt_save_ifs"
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
807 - echo="$dir/echo"
808 - break
809 - fi
810 - done
811 - IFS="$lt_save_ifs"
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.
824 - echo='print -r'
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+"[$]@"}
833 - else
834 - # Try using printf.
835 - echo='printf %s\n'
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"
848 - export 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"
855 - else
856 - # maybe with a smaller string...
857 - prev=:
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
861 - then
862 - break
863 - fi
864 - prev="$cmd"
865 - done
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+"[$]@"}
874 - else
875 - # Oops. We lost completely, so just stick with echo.
876 - echo=echo
877 - fi
878 - fi
879 - fi
880 - fi
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.
886 -ECHO=$echo
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
912 -AC_SUBST(ECHO)
913 -])])# _LT_AC_PROG_ECHO_BACKSLASH
915 +# Initialize.
916 +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
919 -# _LT_AC_LOCK
920 -# -----------
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
927 +# if CDPATH is set.
928 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
930 -# Some flags need to be propagated to the compiler or linker for good
931 -# libtool support.
932 -case $host in
933 -ia64-*-hpux*)
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
938 - *ELF-32*)
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
944 +LTCC='$LTCC'
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\\"\\\`\\\\\\""
955 - *ELF-64*)
956 - HPUX_IA64_MODE="64"
957 + *)
958 + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
960 esac
961 - fi
962 - rm -rf conftest*
963 - ;;
964 -*-*-irix6*)
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
970 - *32-bit*)
971 - LD="${LD-ld} -melf32bsmip"
972 - ;;
973 - *N32*)
974 - LD="${LD-ld} -melf32bmipn32"
975 +done
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\\"\\\`\\\\\\""
984 - *64-bit*)
985 - LD="${LD-ld} -melf64bmip"
986 + *)
987 + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
989 esac
990 - else
991 - case `/usr/bin/file conftest.$ac_objext` in
992 - *32-bit*)
993 - LD="${LD-ld} -32"
994 - ;;
995 - *N32*)
996 - LD="${LD-ld} -n32"
997 - ;;
998 - *64-bit*)
999 - LD="${LD-ld} -64"
1000 - ;;
1001 - esac
1002 - fi
1003 - fi
1004 - rm -rf conftest*
1005 - ;;
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
1013 - *32-bit*)
1014 - case $host in
1015 - x86_64-*kfreebsd*-gnu)
1016 - LD="${LD-ld} -m elf_i386_fbsd"
1017 - ;;
1018 - x86_64-*linux*)
1019 - LD="${LD-ld} -m elf_i386"
1020 - ;;
1021 - ppc64-*linux*|powerpc64-*linux*)
1022 - LD="${LD-ld} -m elf32ppclinux"
1023 - ;;
1024 - s390x-*linux*)
1025 - LD="${LD-ld} -m elf_s390"
1026 - ;;
1027 - sparc64-*linux*)
1028 - LD="${LD-ld} -m elf32_sparc"
1029 - ;;
1030 - esac
1031 - ;;
1032 - *64-bit*)
1033 - case $host in
1034 - x86_64-*kfreebsd*-gnu)
1035 - LD="${LD-ld} -m elf_x86_64_fbsd"
1036 - ;;
1037 - x86_64-*linux*)
1038 - LD="${LD-ld} -m elf_x86_64"
1039 - ;;
1040 - ppc*-*linux*|powerpc*-*linux*)
1041 - LD="${LD-ld} -m elf64ppc"
1042 - ;;
1043 - s390*-*linux*)
1044 - LD="${LD-ld} -m elf64_s390"
1045 - ;;
1046 - sparc*-*linux*)
1047 - LD="${LD-ld} -m elf64_sparc"
1048 - ;;
1049 - esac
1050 - ;;
1051 - esac
1052 - fi
1053 - rm -rf conftest*
1054 - ;;
1056 -*-*-sco3.2v5*)
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,
1061 - [AC_LANG_PUSH(C)
1062 - AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1063 - AC_LANG_POP])
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"
1067 - fi
1068 - ;;
1069 -sparc*-*solaris*)
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
1074 - *64-bit*)
1075 - case $lt_cv_prog_gnu_ld in
1076 - yes*) LD="${LD-ld} -m elf64_sparc" ;;
1077 - *) LD="${LD-ld} -64" ;;
1078 - esac
1079 - ;;
1080 - esac
1081 - fi
1082 - rm -rf conftest*
1083 - ;;
1084 +done
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.
1092 +case \$lt_ECHO in
1093 +*'\\\[$]0 --fallback-echo"')dnl "
1094 + lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
1096 - ])
1097 esac
1099 -need_locks="$enable_libtool_lock"
1100 +_LT_OUTPUT_LIBTOOL_INIT
1103 -])# _LT_AC_LOCK
1105 +# LT_OUTPUT
1106 +# ---------
1107 +# This macro allows early generation of the libtool script (before
1108 +# AC_OUTPUT is called), incase it is used in configure for compilation
1109 +# tests.
1110 +AC_DEFUN([LT_OUTPUT],
1111 +[: ${CONFIG_LT=./config.lt}
1112 +AC_MSG_NOTICE([creating $CONFIG_LT])
1113 +cat >"$CONFIG_LT" <<_LTEOF
1114 +#! $SHELL
1115 +# Generated by $as_me.
1116 +# Run this file to recreate a libtool stub with the current configuration.
1118 +lt_cl_silent=false
1119 +SHELL=\${CONFIG_SHELL-$SHELL}
1120 +_LTEOF
1122 +cat >>"$CONFIG_LT" <<\_LTEOF
1123 +AS_SHELL_SANITIZE
1124 +_AS_PREPARE
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],
1133 - [$2=no
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)
1148 - ac_status=$?
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
1157 - $2=yes
1158 - fi
1159 - fi
1160 - $rm conftest*
1162 +exec AS_MESSAGE_FD>&1
1163 +exec AS_MESSAGE_LOG_FD>>config.log
1165 + echo
1166 + AS_BOX([Running $as_me.])
1167 +} >&AS_MESSAGE_LOG_FD
1169 +lt_cl_help="\
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
1172 +generated.
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>."
1183 +lt_cl_version="\
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])
1194 -else
1195 - ifelse([$6], , :, [$6])
1197 -])# AC_LIBTOOL_COMPILER_OPTION
1198 +while test $[#] != 0
1200 + case $[1] in
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 )
1206 + debug=: ;;
1207 + --quiet | --q* | --silent | --s* | -q )
1208 + lt_cl_silent=: ;;
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],
1220 - [$2=no
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
1233 - $2=yes
1234 - fi
1235 - else
1236 - $2=yes
1237 - fi
1238 - fi
1239 - $rm conftest*
1240 - LDFLAGS="$save_LDFLAGS"
1242 + *) AC_MSG_ERROR([unrecognized argument: $[1]
1243 +Try \`$[0] --help' for more information.]) ;;
1244 + esac
1245 + shift
1246 +done
1248 -if test x"[$]$2" = xyes; then
1249 - ifelse([$4], , :, [$4])
1250 -else
1251 - ifelse([$5], , :, [$5])
1252 +if $lt_cl_silent; then
1253 + exec AS_MESSAGE_FD>/dev/null
1255 -])# AC_LIBTOOL_LINKER_OPTION
1256 +_LTEOF
1258 +cat >>"$CONFIG_LT" <<_LTEOF
1259 +_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
1260 +_LTEOF
1262 +cat >>"$CONFIG_LT" <<\_LTEOF
1263 +AC_MSG_NOTICE([creating $ofile])
1264 +_LT_OUTPUT_LIBTOOL_COMMANDS
1265 +AS_EXIT(0)
1266 +_LTEOF
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
1274 + lt_cl_success=:
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)
1282 +])# LT_OUTPUT
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
1290 - i=0
1291 - teststring="ABCD"
1293 - case $build_os in
1294 - msdosdjgpp*)
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
1300 - ;;
1301 +# _LT_CONFIG(TAG)
1302 +# ---------------
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
1316 + fi
1318 - gnu*)
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;
1323 - ;;
1324 + cfgfile="${ofile}T"
1325 + trap "$RM \"$cfgfile\"; exit 1" 1 2 15
1326 + $RM "$cfgfile"
1328 - cygwin* | mingw*)
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;
1337 - ;;
1338 + cat <<_LT_EOF >> "$cfgfile"
1339 +#! $SHELL
1341 - amigaos*)
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;
1345 - ;;
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.
1351 +_LT_COPYING
1352 +_LT_LIBTOOL_TAGS
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`
1360 - else
1361 - lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
1362 - fi
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`
1366 - ;;
1367 +# ### BEGIN LIBTOOL CONFIG
1368 +_LT_LIBTOOL_CONFIG_VARS
1369 +_LT_LIBTOOL_TAG_VARS
1370 +# ### END LIBTOOL CONFIG
1372 - interix*)
1373 - # We know the value 262144 and hardcode it with a safety zone (like BSD)
1374 - lt_cv_sys_max_cmd_len=196608
1375 - ;;
1376 +_LT_EOF
1378 - osf*)
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 ;;
1388 - esac
1389 - fi
1390 - ;;
1391 - sco3.2v5*)
1392 - lt_cv_sys_max_cmd_len=102400
1393 - ;;
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/.*[[ ]]//'`
1398 - else
1399 - lt_cv_sys_max_cmd_len=32768
1400 - fi
1401 - ;;
1402 - *)
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`
1407 - else
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
1414 - do
1415 - i=`expr $i + 1`
1416 - teststring=$teststring$teststring
1417 - done
1418 - 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`
1423 - fi
1424 + case $host_os in
1425 + aix3*)
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
1431 + COLLECT_NAMES=
1432 + export COLLECT_NAMES
1434 +_LT_EOF
1436 esac
1438 -if test -n $lt_cv_sys_max_cmd_len ; then
1439 - AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
1440 -else
1441 - AC_MSG_RESULT(none)
1443 -])# AC_LIBTOOL_SYS_MAX_CMD_LEN
1445 + _LT_PROG_LTMAIN
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 :
1467 - [$4]
1468 -else
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)
1477 -#if HAVE_DLFCN_H
1478 -#include <dlfcn.h>
1479 -#endif
1480 + mv -f "$cfgfile" "$ofile" ||
1481 + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
1482 + chmod +x "$ofile"
1484 +[cat <<_LT_EOF >> "$ofile"
1486 -#include <stdio.h>
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
1492 +_LT_EOF
1493 +])dnl /m4_if
1495 +[m4_if([$1], [], [
1496 + PACKAGE='$PACKAGE'
1497 + VERSION='$VERSION'
1498 + TIMESTAMP='$TIMESTAMP'
1499 + RM='$RM'
1500 + ofile='$ofile'], [])
1501 +])dnl /_LT_CONFIG_SAVE_COMMANDS
1502 +])# _LT_CONFIG
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], [])
1517 -#ifdef RTLD_GLOBAL
1518 -# define LT_DLGLOBAL RTLD_GLOBAL
1519 -#else
1520 -# ifdef DL_GLOBAL
1521 -# define LT_DLGLOBAL DL_GLOBAL
1522 -# else
1523 -# define LT_DLGLOBAL 0
1524 -# endif
1525 -#endif
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
1530 -# ifdef RTLD_LAZY
1531 -# define LT_DLLAZY_OR_NOW RTLD_LAZY
1532 -# else
1533 -# ifdef DL_LAZY
1534 -# define LT_DLLAZY_OR_NOW DL_LAZY
1535 -# else
1536 -# ifdef RTLD_NOW
1537 -# define LT_DLLAZY_OR_NOW RTLD_NOW
1538 -# else
1539 -# ifdef DL_NOW
1540 -# define LT_DLLAZY_OR_NOW DL_NOW
1541 -# else
1542 -# define LT_DLLAZY_OR_NOW 0
1543 -# endif
1544 -# endif
1545 -# endif
1546 -# endif
1547 -#endif
1548 +# LT_LANG(LANG)
1549 +# -------------
1550 +# Enable libtool support for the given language if not already enabled.
1551 +AC_DEFUN([LT_LANG],
1552 +[AC_BEFORE([$0], [LT_OUTPUT])dnl
1553 +m4_case([$1],
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],
1561 + [_LT_LANG($1)],
1562 + [m4_fatal([$0: unsupported language: "$1"])])])dnl
1563 +])# LT_LANG
1565 -#ifdef __cplusplus
1566 -extern "C" void exit (int);
1567 -#endif
1569 -void fnord() { int i=42;}
1570 -int main ()
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
1582 +])# _LT_LANG
1584 - if (self)
1586 - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
1587 - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1588 - /* dlclose (self); */
1590 - else
1591 - puts (dlerror ());
1593 - exit (status);
1595 -EOF
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
1598 - lt_status=$?
1599 - case x$lt_status in
1600 - x$lt_dlno_uscore) $1 ;;
1601 - x$lt_dlneed_uscore) $2 ;;
1602 - x$lt_dlunknown|x*) $3 ;;
1603 - esac
1604 - else :
1605 - # compilation failed
1606 - $3
1607 - fi
1609 -rm -fr conftest*
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],
1615 + [LT_LANG(CXX)],
1616 + [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
1618 +AC_PROVIDE_IFELSE([AC_PROG_F77],
1619 + [LT_LANG(F77)],
1620 + [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
1622 +AC_PROVIDE_IFELSE([AC_PROG_FC],
1623 + [LT_LANG(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],
1629 + [LT_LANG(GCJ)],
1630 + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
1631 + [LT_LANG(GCJ)],
1632 + [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
1633 + [LT_LANG(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],
1642 + [LT_LANG(RC)],
1643 + [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
1644 +])# _LT_LANG_DEFAULT_CONFIG
1646 +# Obsolete macros:
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
1666 -else
1667 - lt_cv_dlopen=no
1668 - lt_cv_dlopen_libs=
1669 +# _LT_TAG_COMPILER
1670 +# ----------------
1671 +m4_defun([_LT_TAG_COMPILER],
1672 +[AC_REQUIRE([AC_PROG_CC])dnl
1674 - case $host_os in
1675 - beos*)
1676 - lt_cv_dlopen="load_add_on"
1677 - lt_cv_dlopen_libs=
1678 - lt_cv_dlopen_self=yes
1679 - ;;
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
1685 - mingw* | pw32*)
1686 - lt_cv_dlopen="LoadLibrary"
1687 - lt_cv_dlopen_libs=
1688 - ;;
1689 +# If no C compiler was specified, use CC.
1690 +LTCC=${LTCC-"$CC"}
1692 - cygwin*)
1693 - lt_cv_dlopen="dlopen"
1694 - lt_cv_dlopen_libs=
1695 - ;;
1696 +# If no C compiler flags were specified, use CFLAGS.
1697 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1699 - darwin*)
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
1706 - ])
1707 - ;;
1708 +# Allow CC to be a program name with arguments.
1709 +compiler=$CC
1710 +])# _LT_TAG_COMPILER
1712 - *)
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"])
1725 - ])
1726 - ])
1727 - ])
1728 - ])
1729 - ])
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`
1741 +$RM conftest*
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`
1755 +$RM -r conftest*
1756 +])# _LT_LINKER_BOILERPLATE
1758 +# _LT_REQUIRED_DARWIN_CHECKS
1759 +# -------------------------
1760 +m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
1761 + case $host_os in
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
1785 + # link flags.
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
1792 + _lt_result=$?
1793 + if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
1794 + lt_cv_apple_cc_single_mod=yes
1795 + else
1796 + cat conftest.err >&AS_MESSAGE_LOG_FD
1797 + fi
1798 + rm -rf libconftest.dylib*
1799 + rm -f conftest.*
1800 + fi])
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"
1811 + ])
1812 + case $host_os in
1813 + rhapsody* | darwin1.[[012]])
1814 + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
1815 + darwin1.*)
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' ;;
1824 + 10.[[012]]*)
1825 + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1826 + 10.*)
1827 + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1828 + esac
1829 + ;;
1830 + esac
1831 + if test "$lt_cv_apple_cc_single_mod" = "yes"; then
1832 + _lt_dar_single_mod='$single_module'
1833 + fi
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'
1836 + else
1837 + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
1838 + fi
1839 + if test "$DSYMUTIL" != ":"; then
1840 + _lt_dsymutil='~$DSYMUTIL $lib || :'
1841 + else
1842 + _lt_dsymutil=
1843 + fi
1845 esac
1848 - if test "x$lt_cv_dlopen" != xno; then
1849 - enable_dlopen=yes
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}"
1874 + fi
1875 +],[])
1876 else
1877 - enable_dlopen=no
1878 + _LT_TAGVAR(ld_shlibs, $1)=no
1882 - case $lt_cv_dlopen in
1883 - dlopen)
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/,/^$/ {
1899 + /^0/ {
1900 + s/^0 *\(.*\)$/\1/
1903 + }'
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"`
1908 +fi],[])
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\"
1915 - save_LIBS="$LIBS"
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)])
1924 +AC_DIVERT_POP
1925 +])# _LT_SHELL_INIT
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)
1932 - ])
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)
1941 - ])
1942 - fi
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],
1948 +[_LT_SHELL_INIT([
1949 +# Check that we are running under the correct shell.
1950 +SHELL=${CONFIG_SHELL-/bin/sh}
1952 - CPPFLAGS="$save_CPPFLAGS"
1953 - LDFLAGS="$save_LDFLAGS"
1954 - LIBS="$save_LIBS"
1955 - ;;
1956 - esac
1957 +case X$lt_ECHO in
1958 +X*--fallback-echo)
1959 + # Remove one level of quotation (which was required for Make).
1960 + ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
1961 + ;;
1962 +esac
1964 - case $lt_cv_dlopen_self in
1965 - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
1966 - *) enable_dlopen_self=unknown ;;
1967 - esac
1968 +ECHO=${lt_ECHO-echo}
1969 +if test "X[$]1" = X--no-reexec; then
1970 + # Discard the --no-reexec flag, and continue.
1971 + shift
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!
1978 +else
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 ;;
1986 - esac
1987 +if test "X[$]1" = X--fallback-echo; then
1988 + # used as fallback echo
1989 + shift
1990 + cat <<_LT_EOF
1991 +[$]*
1992 +_LT_EOF
1993 + exit 0
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
2011 - mkdir conftest
2012 - cd conftest
2013 - mkdir out
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
2022 + then
2023 + break
2024 + fi
2025 + done
2026 + fi
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
2033 + else
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
2047 + ECHO="$dir/echo"
2048 + break
2049 + fi
2050 + done
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.
2059 + ECHO='print -r'
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+"[$]@"}
2068 + else
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"
2083 + export 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"
2090 + else
2091 + # maybe with a smaller string...
2092 + prev=:
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
2096 + then
2097 + break
2098 + fi
2099 + prev="$cmd"
2100 + done
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+"[$]@"}
2106 + else
2107 + # Oops. We lost completely, so just stick with echo.
2108 + ECHO=echo
2109 + fi
2110 + fi
2111 + fi
2112 + fi
2113 + fi
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.
2118 +lt_ECHO=$ECHO
2119 +if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
2120 + lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
2123 +AC_SUBST(lt_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
2131 +# _LT_ENABLE_LOCK
2132 +# ---------------
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
2140 +# libtool support.
2141 +case $host in
2142 +ia64-*-hpux*)
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
2147 + *ELF-32*)
2148 + HPUX_IA64_MODE="32"
2149 + ;;
2150 + *ELF-64*)
2151 + HPUX_IA64_MODE="64"
2152 + ;;
2153 + esac
2154 + fi
2155 + rm -rf conftest*
2156 + ;;
2157 +*-*-irix6*)
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
2163 + *32-bit*)
2164 + LD="${LD-ld} -melf32bsmip"
2165 + ;;
2166 + *N32*)
2167 + LD="${LD-ld} -melf32bmipn32"
2168 + ;;
2169 + *64-bit*)
2170 + LD="${LD-ld} -melf64bmip"
2171 + ;;
2172 + esac
2173 + else
2174 + case `/usr/bin/file conftest.$ac_objext` in
2175 + *32-bit*)
2176 + LD="${LD-ld} -32"
2177 + ;;
2178 + *N32*)
2179 + LD="${LD-ld} -n32"
2180 + ;;
2181 + *64-bit*)
2182 + LD="${LD-ld} -64"
2183 + ;;
2184 + esac
2185 + fi
2186 + fi
2187 + rm -rf conftest*
2188 + ;;
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
2196 + *32-bit*)
2197 + case $host in
2198 + x86_64-*kfreebsd*-gnu)
2199 + LD="${LD-ld} -m elf_i386_fbsd"
2200 + ;;
2201 + x86_64-*linux*)
2202 + LD="${LD-ld} -m elf_i386"
2203 + ;;
2204 + ppc64-*linux*|powerpc64-*linux*)
2205 + LD="${LD-ld} -m elf32ppclinux"
2206 + ;;
2207 + s390x-*linux*)
2208 + LD="${LD-ld} -m elf_s390"
2209 + ;;
2210 + sparc64-*linux*)
2211 + LD="${LD-ld} -m elf32_sparc"
2212 + ;;
2213 + esac
2214 + ;;
2215 + *64-bit*)
2216 + case $host in
2217 + x86_64-*kfreebsd*-gnu)
2218 + LD="${LD-ld} -m elf_x86_64_fbsd"
2219 + ;;
2220 + x86_64-*linux*)
2221 + LD="${LD-ld} -m elf_x86_64"
2222 + ;;
2223 + ppc*-*linux*|powerpc*-*linux*)
2224 + LD="${LD-ld} -m elf64ppc"
2225 + ;;
2226 + s390*-*linux*|s390*-*tpf*)
2227 + LD="${LD-ld} -m elf64_s390"
2228 + ;;
2229 + sparc*-*linux*)
2230 + LD="${LD-ld} -m elf64_sparc"
2231 + ;;
2232 + esac
2233 + ;;
2234 + esac
2235 + fi
2236 + rm -rf conftest*
2237 + ;;
2239 +*-*-sco3.2v5*)
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,
2244 + [AC_LANG_PUSH(C)
2245 + AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
2246 + AC_LANG_POP])
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"
2250 + fi
2251 + ;;
2252 +sparc*-*solaris*)
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
2257 + *64-bit*)
2258 + case $lt_cv_prog_gnu_ld in
2259 + yes*) LD="${LD-ld} -m elf64_sparc" ;;
2260 + *)
2261 + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
2262 + LD="${LD-ld} -64"
2263 + fi
2264 + ;;
2265 + esac
2266 + ;;
2267 + esac
2268 + fi
2269 + rm -rf conftest*
2270 + ;;
2271 +esac
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
2301 + case $host_os in
2302 + openbsd*)
2303 + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
2304 + ;;
2305 + *)
2306 + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
2307 + ;;
2308 + esac
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],
2326 + [$2=no
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)
2342 ac_status=$?
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
2347 - then
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
2359 + $2=yes
2362 - chmod u+w . 2>&AS_MESSAGE_LOG_FD
2363 - $rm conftest*
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
2368 - cd ..
2369 - rmdir conftest
2370 - $rm conftest*
2371 + $RM conftest*
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])
2386 - hard_links=yes
2387 - $rm conftest*
2388 - ln conftest.a conftest.b 2>/dev/null && hard_links=no
2389 - touch conftest.a
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])
2395 - need_locks=warn
2396 - fi
2397 +if test x"[$]$2" = xyes; then
2398 + m4_if([$5], , :, [$5])
2399 else
2400 - need_locks=no
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
2415 -else
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
2422 +# Old name:
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],
2445 + [$2=no
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
2458 + $2=yes
2459 + fi
2460 + else
2461 + $2=yes
2462 + fi
2463 + fi
2464 + $RM -r conftest*
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
2477 - else
2478 - # We can link without hardcoding, and we can hardcode nonexisting dirs.
2479 - _LT_AC_TAGVAR(hardcode_action, $1)=immediate
2480 - fi
2481 +if test x"[$]$2" = xyes; then
2482 + m4_if([$4], , :, [$4])
2483 else
2484 - # We cannot hardcode anything, or else we can only hardcode existing
2485 - # directories.
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
2501 +# Old name:
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],
2510 -[striplib=
2511 -old_striplib=
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])
2517 -else
2518 -# FIXME - insert some real tests, host_os isn't really good enough
2519 - case $host_os in
2520 - darwin*)
2521 - if test -n "$STRIP" ; then
2522 - striplib="$STRIP -x"
2523 - old_striplib="$STRIP -S"
2524 - AC_MSG_RESULT([yes])
2525 - else
2526 - AC_MSG_RESULT([no])
2528 - ;;
2529 - *)
2530 - AC_MSG_RESULT([no])
2531 +# LT_CMD_MAX_LEN
2532 +#---------------
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
2538 + i=0
2539 + teststring="ABCD"
2541 + case $build_os in
2542 + msdosdjgpp*)
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
2549 - esac
2551 -])# AC_LIBTOOL_SYS_LIB_STRIP
2553 + gnu*)
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;
2558 + ;;
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'
2568 -soname_spec=
2569 -shrext_cmds=".so"
2570 -postinstall_cmds=
2571 -postuninstall_cmds=
2572 -finish_cmds=
2573 -finish_eval=
2574 -shlibpath_var=
2575 -shlibpath_overrides_runpath=unknown
2576 -version_type=none
2577 -dynamic_linker="$host_os ld.so"
2578 -sys_lib_dlsearch_path_spec="/lib /usr/lib"
2579 -m4_if($1,[],[
2580 -if test "$GCC" = yes; then
2581 - case $host_os in
2582 - darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
2583 - *) lt_awk_arg="/^libraries:/" ;;
2584 - esac
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'`
2592 - else
2593 - lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2594 - fi
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"
2602 - else
2603 - test -d "$lt_sys_path" && \
2604 - lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
2605 - fi
2606 - done
2607 - lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
2608 -BEGIN {RS=" "; FS="/|\n";} {
2609 - lt_foo="";
2610 - lt_count=0;
2611 - for (lt_i = NF; lt_i > 0; lt_i--) {
2612 - if ($lt_i != "" && $lt_i != ".") {
2613 - if ($lt_i == "..") {
2614 - lt_count++;
2615 - } else {
2616 - if (lt_count == 0) {
2617 - lt_foo="/" $lt_i lt_foo;
2618 - } else {
2619 - lt_count--;
2624 - if (lt_foo != "") { lt_freq[[lt_foo]]++; }
2625 - if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
2626 -}'`
2627 - sys_lib_search_path_spec=`echo $lt_search_path_spec`
2628 -else
2629 - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2630 -fi])
2631 -need_lib_prefix=unknown
2632 -hardcode_into_libs=no
2633 + cygwin* | mingw*)
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;
2642 + ;;
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
2647 + amigaos*)
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;
2651 + ;;
2653 -case $host_os in
2654 -aix3*)
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`
2664 + else
2665 + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
2666 + fi
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`
2670 + ;;
2672 - # AIX 3 has no versioning support, so we append a major version to the name.
2673 - soname_spec='${libname}${release}${shared_ext}$major'
2674 - ;;
2675 + interix*)
2676 + # We know the value 262144 and hardcode it with a safety zone (like BSD)
2677 + lt_cv_sys_max_cmd_len=196608
2678 + ;;
2680 -aix4* | aix5*)
2681 - version_type=linux
2682 - need_lib_prefix=no
2683 - need_version=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
2689 - else
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.
2695 - case $host_os in
2696 - aix4 | aix4.[[01]] | aix4.[[01]].*)
2697 - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2698 - echo ' yes '
2699 - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
2701 - else
2702 - can_build_shared=no
2703 - fi
2704 - ;;
2705 - esac
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}'
2714 + osf*)
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 ;;
2724 + esac
2725 + fi
2726 + ;;
2727 + sco3.2v5*)
2728 + lt_cv_sys_max_cmd_len=102400
2729 + ;;
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/.*[[ ]]//'`
2734 else
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
2742 - fi
2743 - ;;
2744 + ;;
2745 + *)
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`
2750 + else
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
2755 + done
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
2759 + # we can't tell.
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
2763 + do
2764 + i=`expr $i + 1`
2765 + teststring=$teststring$teststring
2766 + done
2767 + # Only check the string length outside the loop.
2768 + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
2769 + teststring=
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`
2774 + fi
2775 + ;;
2776 + esac
2778 +if test -n $lt_cv_sys_max_cmd_len ; then
2779 + AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
2780 +else
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?])
2786 +])# LT_CMD_MAX_LEN
2788 -amigaos*)
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'
2792 - ;;
2793 +# Old name:
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], [])
2798 -beos*)
2799 - library_names_spec='${libname}${shared_ext}'
2800 - dynamic_linker="$host_os ld.so"
2801 - shlibpath_var=LIBRARY_PATH
2802 - ;;
2804 -bsdi[[45]]*)
2805 - version_type=linux
2806 - need_version=no
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
2816 - ;;
2817 +# _LT_HEADER_DLFCN
2818 +# ----------------
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"
2826 - need_version=no
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~
2841 - $rm \$dlpath'
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 :
2849 + [$4]
2850 +else
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"
2857 - case $host_os in
2858 - cygwin*)
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"
2862 - ;;
2863 - mingw*)
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'`
2875 - else
2876 - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2877 - fi
2878 - ;;
2879 - pw32*)
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}'
2882 - ;;
2883 - esac
2884 - ;;
2885 +#if HAVE_DLFCN_H
2886 +#include <dlfcn.h>
2887 +#endif
2889 - *)
2890 - library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2891 - ;;
2892 - esac
2893 - dynamic_linker='Win32 ld.exe'
2894 - # FIXME: first we should search . and the directory the executable is in
2895 - shlibpath_var=PATH
2896 - ;;
2897 +#include <stdio.h>
2899 -darwin* | rhapsody*)
2900 - dynamic_linker="$host_os dyld"
2901 - version_type=darwin
2902 - need_lib_prefix=no
2903 - need_version=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`'
2909 - m4_if([$1], [],[
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'
2912 - ;;
2913 +#ifdef RTLD_GLOBAL
2914 +# define LT_DLGLOBAL RTLD_GLOBAL
2915 +#else
2916 +# ifdef DL_GLOBAL
2917 +# define LT_DLGLOBAL DL_GLOBAL
2918 +# else
2919 +# define LT_DLGLOBAL 0
2920 +# endif
2921 +#endif
2923 -dgux*)
2924 - version_type=linux
2925 - need_lib_prefix=no
2926 - need_version=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
2930 - ;;
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
2934 +# ifdef RTLD_LAZY
2935 +# define LT_DLLAZY_OR_NOW RTLD_LAZY
2936 +# else
2937 +# ifdef DL_LAZY
2938 +# define LT_DLLAZY_OR_NOW DL_LAZY
2939 +# else
2940 +# ifdef RTLD_NOW
2941 +# define LT_DLLAZY_OR_NOW RTLD_NOW
2942 +# else
2943 +# ifdef DL_NOW
2944 +# define LT_DLLAZY_OR_NOW DL_NOW
2945 +# else
2946 +# define LT_DLLAZY_OR_NOW 0
2947 +# endif
2948 +# endif
2949 +# endif
2950 +# endif
2951 +#endif
2953 -freebsd1*)
2954 - dynamic_linker=no
2955 - ;;
2956 +#ifdef __cplusplus
2957 +extern "C" void exit (int);
2958 +#endif
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;}
2966 +int main ()
2968 + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
2969 + int status = $lt_dlunknown;
2971 + if (self)
2973 + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
2974 + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
2975 + /* dlclose (self); */
2977 else
2978 - case $host_os in
2979 - freebsd[[123]]*) objformat=aout ;;
2980 - *) objformat=elf ;;
2981 + puts (dlerror ());
2983 + exit (status);
2985 +_LT_EOF
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
2988 + lt_status=$?
2989 + case x$lt_status in
2990 + x$lt_dlno_uscore) $1 ;;
2991 + x$lt_dlneed_uscore) $2 ;;
2992 + x$lt_dlunknown|x*) $3 ;;
2993 esac
2994 + else :
2995 + # compilation failed
2996 + $3
2998 - version_type=freebsd-$objformat
2999 - case $version_type in
3000 - freebsd-elf*)
3001 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
3002 - need_version=no
3003 - need_lib_prefix=no
3004 - ;;
3005 - freebsd-*)
3006 - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
3007 - need_version=yes
3008 - ;;
3009 - esac
3010 - shlibpath_var=LD_LIBRARY_PATH
3012 +rm -fr conftest*
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
3024 +else
3025 + lt_cv_dlopen=no
3026 + lt_cv_dlopen_libs=
3028 case $host_os in
3029 - freebsd2*)
3030 - shlibpath_overrides_runpath=yes
3031 - ;;
3032 - freebsd3.[[01]]* | freebsdelf3.[[01]]*)
3033 - shlibpath_overrides_runpath=yes
3034 - hardcode_into_libs=yes
3035 - ;;
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
3040 + beos*)
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
3049 + mingw* | pw32*)
3050 + lt_cv_dlopen="LoadLibrary"
3051 + lt_cv_dlopen_libs=
3053 - esac
3054 - ;;
3056 -gnu*)
3057 - version_type=linux
3058 - need_lib_prefix=no
3059 - need_version=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
3064 - ;;
3065 + cygwin*)
3066 + lt_cv_dlopen="dlopen"
3067 + lt_cv_dlopen_libs=
3068 + ;;
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
3075 - need_version=no
3076 - case $host_cpu in
3077 - ia64*)
3078 - shrext_cmds='.so'
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"
3087 - else
3088 - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
3089 - fi
3090 - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
3091 + darwin*)
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
3098 + ])
3100 - hppa*64*)
3101 - shrext_cmds='.sl'
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
3110 - ;;
3111 - *)
3112 - shrext_cmds='.sl'
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'
3119 + *)
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"])
3132 + ])
3133 + ])
3134 + ])
3135 + ])
3136 + ])
3138 esac
3139 - # HP-UX runs *really* slowly unless shared libraries are mode 555.
3140 - postinstall_cmds='chmod 555 $lib'
3141 - ;;
3143 -interix[[3-9]]*)
3144 - version_type=linux
3145 - need_lib_prefix=no
3146 - need_version=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
3153 - ;;
3154 + if test "x$lt_cv_dlopen" != xno; then
3155 + enable_dlopen=yes
3156 + else
3157 + enable_dlopen=no
3158 + fi
3160 -irix5* | irix6* | nonstopux*)
3161 - case $host_os in
3162 - nonstopux*) version_type=nonstopux ;;
3163 - *)
3164 - if test "$lt_cv_prog_gnu_ld" = yes; then
3165 - version_type=linux
3166 - else
3167 - version_type=irix
3168 - fi ;;
3169 - esac
3170 - need_lib_prefix=no
3171 - need_version=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}'
3174 - case $host_os in
3175 - irix5* | nonstopux*)
3176 - libsuff= shlibsuff=
3177 - ;;
3178 - *)
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;;
3187 - esac
3188 + case $lt_cv_dlopen in
3189 + dlopen)
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\"
3196 + save_LIBS="$LIBS"
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)
3204 + ])
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)
3213 + ])
3214 + fi
3216 + CPPFLAGS="$save_CPPFLAGS"
3217 + LDFLAGS="$save_LDFLAGS"
3218 + LIBS="$save_LIBS"
3220 esac
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
3226 - ;;
3228 -# No shared lib support for Linux oldld, aout, or coff.
3229 -linux*oldld* | linux*aout* | linux*coff*)
3230 - dynamic_linker=no
3231 - ;;
3232 + case $lt_cv_dlopen_self in
3233 + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
3234 + *) enable_dlopen_self=unknown ;;
3235 + esac
3237 -# This must be Linux ELF.
3238 -linux* | k*bsd*-gnu)
3239 - version_type=linux
3240 - need_lib_prefix=no
3241 - need_version=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 ;;
3254 + esac
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
3264 +# Old name:
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"
3273 - fi
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'
3282 - ;;
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
3295 + mkdir conftest
3296 + cd conftest
3297 + mkdir out
3298 + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
3300 -netbsd*)
3301 - version_type=sunos
3302 - need_lib_prefix=no
3303 - need_version=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'
3308 - else
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'
3312 - fi
3313 - shlibpath_var=LD_LIBRARY_PATH
3314 - shlibpath_overrides_runpath=yes
3315 - hardcode_into_libs=yes
3316 - ;;
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)
3328 + ac_status=$?
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
3332 + then
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
3339 + fi
3340 + fi
3341 + chmod u+w . 2>&AS_MESSAGE_LOG_FD
3342 + $RM conftest*
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
3347 + cd ..
3348 + $RM -r conftest
3349 + $RM conftest*
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
3355 -newsos6)
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
3360 - ;;
3362 -nto-qnx*)
3363 - version_type=linux
3364 - need_lib_prefix=no
3365 - need_version=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
3370 - ;;
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])
3379 -openbsd*)
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.
3384 - case $host_os in
3385 - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
3386 - *) need_version=no ;;
3387 - esac
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
3392 - case $host_os in
3393 - openbsd2.[[89]] | openbsd2.[[89]].*)
3394 - shlibpath_overrides_runpath=no
3395 - ;;
3396 - *)
3397 - shlibpath_overrides_runpath=yes
3398 - ;;
3399 - esac
3400 - else
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])
3406 + hard_links=yes
3407 + $RM conftest*
3408 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
3409 + touch conftest.a
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])
3415 + need_locks=warn
3417 - ;;
3418 +else
3419 + need_locks=no
3421 +_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
3422 +])# _LT_COMPILER_FILE_LOCKS
3424 -os2*)
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
3431 - ;;
3433 -osf3* | osf4* | osf5*)
3434 - version_type=osf
3435 - need_lib_prefix=no
3436 - need_version=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"
3442 - ;;
3443 +# _LT_CHECK_OBJDIR
3444 +# ----------------
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
3451 +else
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
3464 -rdos*)
3465 - dynamic_linker=no
3466 - ;;
3468 -solaris*)
3469 - version_type=linux
3470 - need_lib_prefix=no
3471 - need_version=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'
3479 - ;;
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
3490 -sunos4*)
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
3507 + else
3508 + # We can link without hardcoding, and we can hardcode nonexisting dirs.
3509 + _LT_TAGVAR(hardcode_action, $1)=immediate
3511 - need_version=yes
3512 - ;;
3513 +else
3514 + # We cannot hardcode anything, or else we can only hardcode existing
3515 + # directories.
3516 + _LT_TAGVAR(hardcode_action, $1)=unsupported
3518 +AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
3520 -sysv4 | sysv4.3*)
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
3526 - sni)
3527 - shlibpath_overrides_runpath=no
3528 - need_lib_prefix=no
3529 - export_dynamic_flag_spec='${wl}-Blargedynsym'
3530 - runpath_var=LD_RUN_PATH
3531 - ;;
3532 - siemens)
3533 - need_lib_prefix=no
3534 - ;;
3535 - motorola)
3536 - need_lib_prefix=no
3537 - need_version=no
3538 - shlibpath_overrides_runpath=no
3539 - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
3540 - ;;
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
3555 +# _LT_CMD_STRIPLIB
3556 +# ----------------
3557 +m4_defun([_LT_CMD_STRIPLIB],
3558 +[m4_require([_LT_DECL_EGREP])
3559 +striplib=
3560 +old_striplib=
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])
3566 +else
3567 +# FIXME - insert some real tests, host_os isn't really good enough
3568 + case $host_os in
3569 + darwin*)
3570 + if test -n "$STRIP" ; then
3571 + striplib="$STRIP -x"
3572 + old_striplib="$STRIP -S"
3573 + AC_MSG_RESULT([yes])
3574 + else
3575 + AC_MSG_RESULT([no])
3576 + fi
3577 + ;;
3578 + *)
3579 + AC_MSG_RESULT([no])
3580 + ;;
3581 esac
3582 - ;;
3584 +_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
3585 +_LT_DECL([], [striplib], [1])
3586 +])# _LT_CMD_STRIPLIB
3588 -sysv4*MP*)
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])
3604 +m4_if([$1],
3605 + [], [
3606 +if test "$GCC" = yes; then
3607 + case $host_os in
3608 + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
3609 + *) lt_awk_arg="/^libraries:/" ;;
3610 + esac
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'`
3618 + else
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"
3628 + else
3629 + test -d "$lt_sys_path" && \
3630 + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
3631 + fi
3632 + done
3633 + lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
3634 +BEGIN {RS=" "; FS="/|\n";} {
3635 + lt_foo="";
3636 + lt_count=0;
3637 + for (lt_i = NF; lt_i > 0; lt_i--) {
3638 + if ($lt_i != "" && $lt_i != ".") {
3639 + if ($lt_i == "..") {
3640 + lt_count++;
3641 + } else {
3642 + if (lt_count == 0) {
3643 + lt_foo="/" $lt_i lt_foo;
3644 + } else {
3645 + lt_count--;
3650 + if (lt_foo != "") { lt_freq[[lt_foo]]++; }
3651 + if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
3652 +}'`
3653 + sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
3654 +else
3655 + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
3656 +fi])
3657 +library_names_spec=
3658 +libname_spec='lib$name'
3659 +soname_spec=
3660 +shrext_cmds=".so"
3661 +postinstall_cmds=
3662 +postuninstall_cmds=
3663 +finish_cmds=
3664 +finish_eval=
3665 +shlibpath_var=
3666 +shlibpath_overrides_runpath=unknown
3667 +version_type=none
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
3677 +case $host_os in
3678 +aix3*)
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
3689 +aix[[4-9]]*)
3690 + version_type=linux
3691 need_lib_prefix=no
3692 need_version=no
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
3704 else
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.
3712 case $host_os in
3713 - sco3.2v5*)
3714 - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
3715 - ;;
3716 + aix4 | aix4.[[01]] | aix4.[[01]].*)
3717 + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
3718 + echo ' yes '
3719 + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
3721 + else
3722 + can_build_shared=no
3723 + fi
3724 + ;;
3725 esac
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}'
3734 + else
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'
3739 + fi
3740 + shlibpath_var=LIBPATH
3742 - sys_lib_dlsearch_path_spec='/usr/lib'
3745 -uts4*)
3746 +amigaos*)
3747 + case $host_cpu in
3748 + powerpc)
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}'
3752 + ;;
3753 + m68k)
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'
3757 + ;;
3758 + esac
3759 + ;;
3761 +beos*)
3762 + library_names_spec='${libname}${shared_ext}'
3763 + dynamic_linker="$host_os ld.so"
3764 + shlibpath_var=LIBRARY_PATH
3765 + ;;
3767 +bsdi[[45]]*)
3768 version_type=linux
3769 + need_version=no
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
3782 - dynamic_linker=no
3783 - ;;
3784 -esac
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"
3796 + need_version=no
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 \$?;
3811 + fi'
3812 + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
3813 + dlpath=$dir/\$dldll~
3814 + $RM \$dlpath'
3815 + shlibpath_overrides_runpath=yes
3817 -# _LT_AC_TAGCONFIG
3818 -# ----------------
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])
3829 - fi
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])
3835 - else
3836 - AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
3837 - fi
3838 - fi
3839 - if test -z "$LTCFLAGS"; then
3840 - eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
3841 - fi
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
3852 - "") ;;
3853 - *) AC_MSG_ERROR([invalid tag name: $tagname])
3854 - ;;
3855 + case $host_os in
3856 + cygwin*)
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"
3860 + ;;
3861 + mingw*)
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'`
3873 + else
3874 + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
3875 + fi
3876 + ;;
3877 + pw32*)
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}'
3880 + ;;
3881 esac
3882 + ;;
3884 - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
3885 - then
3886 - AC_MSG_ERROR([tag name \"$tagname\" already exists])
3887 - fi
3889 - # Update the list of available tags.
3890 - if test -n "$tagname"; then
3891 - echo appending configuration tag \"$tagname\" to $ofile
3893 - case $tagname in
3894 - CXX)
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
3899 - else
3900 - tagname=""
3901 - fi
3902 - ;;
3904 - F77)
3905 - if test -n "$F77" && test "X$F77" != "Xno"; then
3906 - AC_LIBTOOL_LANG_F77_CONFIG
3907 - else
3908 - tagname=""
3909 - fi
3910 - ;;
3912 - GCJ)
3913 - if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
3914 - AC_LIBTOOL_LANG_GCJ_CONFIG
3915 - else
3916 - tagname=""
3917 - fi
3918 - ;;
3919 + *)
3920 + library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
3921 + ;;
3922 + esac
3923 + dynamic_linker='Win32 ld.exe'
3924 + # FIXME: first we should search . and the directory the executable is in
3925 + shlibpath_var=PATH
3926 + ;;
3928 - RC)
3929 - AC_LIBTOOL_LANG_RC_CONFIG
3930 - ;;
3931 +darwin* | rhapsody*)
3932 + dynamic_linker="$host_os dyld"
3933 + version_type=darwin
3934 + need_lib_prefix=no
3935 + need_version=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`'
3941 +m4_if([$1], [],[
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'
3944 + ;;
3946 - *)
3947 - AC_MSG_ERROR([Unsupported tag name: $tagname])
3948 - ;;
3949 - esac
3950 +dgux*)
3951 + version_type=linux
3952 + need_lib_prefix=no
3953 + need_version=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
3957 + ;;
3959 - # Append the new tag name to the list of available tags.
3960 - if test -n "$tagname" ; then
3961 - available_tags="$available_tags $tagname"
3962 - fi
3963 - fi
3964 - done
3965 - IFS="$lt_save_ifs"
3966 +freebsd1*)
3967 + dynamic_linker=no
3968 + ;;
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"
3973 - chmod +x "$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`
3979 else
3980 - rm -f "${ofile}T"
3981 - AC_MSG_ERROR([unable to update list of available tagged configurations.])
3982 + case $host_os in
3983 + freebsd[[123]]*) objformat=aout ;;
3984 + *) objformat=elf ;;
3985 + esac
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 ;;
4020 - *)
4021 - 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
4027 - enable_shared=yes
4028 - fi
4029 - done
4030 - IFS="$lt_save_ifs"
4031 + version_type=freebsd-$objformat
4032 + case $version_type in
4033 + freebsd-elf*)
4034 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
4035 + need_version=no
4036 + need_lib_prefix=no
4037 + ;;
4038 + freebsd-*)
4039 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
4040 + need_version=yes
4042 - esac],
4043 - [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
4044 -])# AC_ENABLE_SHARED
4045 + esac
4046 + shlibpath_var=LD_LIBRARY_PATH
4047 + case $host_os in
4048 + freebsd2*)
4049 + shlibpath_overrides_runpath=yes
4050 + ;;
4051 + freebsd3.[[01]]* | freebsdelf3.[[01]]*)
4052 + shlibpath_overrides_runpath=yes
4053 + hardcode_into_libs=yes
4054 + ;;
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
4059 + ;;
4060 + *) # from 4.6 on, and DragonFly
4061 + shlibpath_overrides_runpath=yes
4062 + hardcode_into_libs=yes
4063 + ;;
4064 + esac
4065 + ;;
4067 +gnu*)
4068 + version_type=linux
4069 + need_lib_prefix=no
4070 + need_version=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
4075 + ;;
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
4089 + need_version=no
4090 + case $host_cpu in
4091 + ia64*)
4092 + shrext_cmds='.so'
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"
4101 + else
4102 + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
4103 + fi
4104 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4105 + ;;
4106 + hppa*64*)
4107 + shrext_cmds='.sl'
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
4116 + ;;
4117 + *)
4118 + shrext_cmds='.sl'
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'
4124 + ;;
4125 + esac
4126 + # HP-UX runs *really* slowly unless shared libraries are mode 555.
4127 + postinstall_cmds='chmod 555 $lib'
4128 + ;;
4130 +interix[[3-9]]*)
4131 + version_type=linux
4132 + need_lib_prefix=no
4133 + need_version=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
4140 + ;;
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*)
4156 + case $host_os in
4157 + nonstopux*) version_type=nonstopux ;;
4159 - enable_static=no
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
4165 - enable_static=yes
4166 - fi
4167 - done
4168 - IFS="$lt_save_ifs"
4169 - ;;
4170 - esac],
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
4175 + else
4176 + version_type=irix
4177 + fi ;;
4178 + esac
4179 + need_lib_prefix=no
4180 + need_version=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}'
4183 + case $host_os in
4184 + irix5* | nonstopux*)
4185 + libsuff= shlibsuff=
4186 + ;;
4187 + *)
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;;
4196 + esac
4197 + ;;
4198 + esac
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
4204 + ;;
4206 +# No shared lib support for Linux oldld, aout, or coff.
4207 +linux*oldld* | linux*aout* | linux*coff*)
4208 + dynamic_linker=no
4209 + ;;
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
4222 + need_version=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 ;;
4257 - *)
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
4265 - fi
4266 - done
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"
4272 + fi
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'
4281 + ;;
4283 +netbsd*)
4284 + version_type=sunos
4285 + need_lib_prefix=no
4286 + need_version=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'
4291 + else
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'
4295 + fi
4296 + shlibpath_var=LD_LIBRARY_PATH
4297 + shlibpath_overrides_runpath=yes
4298 + hardcode_into_libs=yes
4299 + ;;
4301 +newsos6)
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
4306 + ;;
4308 +*nto* | *qnx*)
4309 + version_type=qnx
4310 + need_lib_prefix=no
4311 + need_version=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'
4318 + ;;
4320 +openbsd*)
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.
4325 + case $host_os in
4326 + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
4327 + *) need_version=no ;;
4328 + esac
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
4333 + case $host_os in
4334 + openbsd2.[[89]] | openbsd2.[[89]].*)
4335 + shlibpath_overrides_runpath=no
4336 + ;;
4337 + *)
4338 + shlibpath_overrides_runpath=yes
4339 + ;;
4340 + esac
4341 + else
4342 + shlibpath_overrides_runpath=yes
4343 + fi
4344 + ;;
4346 +os2*)
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
4353 + ;;
4355 +osf3* | osf4* | osf5*)
4356 + version_type=osf
4357 + need_lib_prefix=no
4358 + need_version=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"
4364 + ;;
4366 +rdos*)
4367 + dynamic_linker=no
4368 + ;;
4370 +solaris*)
4371 + version_type=linux
4372 + need_lib_prefix=no
4373 + need_version=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'
4381 + ;;
4383 +sunos4*)
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
4391 + fi
4392 + need_version=yes
4393 + ;;
4395 +sysv4 | sysv4.3*)
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
4401 + sni)
4402 + shlibpath_overrides_runpath=no
4403 + need_lib_prefix=no
4404 + runpath_var=LD_RUN_PATH
4405 + ;;
4406 + siemens)
4407 + need_lib_prefix=no
4408 + ;;
4409 + motorola)
4410 + need_lib_prefix=no
4411 + need_version=no
4412 + shlibpath_overrides_runpath=no
4413 + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
4415 - esac],
4416 - [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
4417 -])# AC_ENABLE_FAST_INSTALL
4418 + esac
4419 + ;;
4421 +sysv4*MP*)
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
4427 + fi
4428 + ;;
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
4440 + need_version=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'
4448 + else
4449 + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
4450 + case $host_os in
4451 + sco3.2v5*)
4452 + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
4453 + ;;
4454 + esac
4455 + fi
4456 + sys_lib_dlsearch_path_spec='/usr/lib'
4457 + ;;
4459 +tpf*)
4460 + # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
4461 + version_type=linux
4462 + need_lib_prefix=no
4463 + need_version=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
4468 + ;;
4470 +uts4*)
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
4475 + ;;
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
4486 + dynamic_linker=no
4487 + ;;
4488 +esac
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"
4504 -# AC_PROG_EGREP
4505 -# -------------
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'
4513 - fi])
4514 - EGREP=$ac_cv_prog_egrep
4515 - AC_SUBST([EGREP])
4516 -])])
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
4542 + not shown]])
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,
4563 [case $MAGIC_CMD in
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
4571 IFS="$lt_save_ifs"
4572 test -z "$ac_dir" && ac_dir=.
4573 @@ -2115,7 +2755,7 @@
4574 $EGREP "$file_magic_regex" > /dev/null; then
4576 else
4577 - cat <<EOF 1>&2
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
4586 -EOF
4587 +_LT_EOF
4588 fi ;;
4589 esac
4591 @@ -2143,37 +2783,47 @@
4592 else
4593 AC_MSG_RESULT(no)
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
4600 +# Old name:
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], [])
4605 -# AC_PATH_MAGIC
4606 -# -------------
4608 +# _LT_PATH_MAGIC
4609 +# --------------
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)
4619 else
4620 MAGIC_CMD=:
4623 -])# AC_PATH_MAGIC
4624 +])# _LT_PATH_MAGIC
4627 -# AC_PROG_LD
4628 +# LT_PATH_LD
4629 # ----------
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],
4636 - [with_gnu_ld=no])
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
4652 ac_prog=ld
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%/%"`
4665 done
4666 test -z "$LD" && LD="$ac_prog"
4668 @@ -2242,15 +2892,24 @@
4669 AC_MSG_RESULT(no)
4671 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
4672 -AC_PROG_LD_GNU
4673 -])# AC_PROG_LD
4674 +_LT_PATH_LD_GNU
4675 +AC_SUBST([LD])
4677 +_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
4678 +])# LT_PATH_LD
4680 -# AC_PROG_LD_GNU
4681 -# --------------
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,
4685 +# Old names:
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], [])
4693 +# _LT_PATH_LD_GNU
4694 +#- --------------
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 @@
4702 esac])
4703 with_gnu_ld=$lt_cv_prog_gnu_ld
4704 -])# AC_PROG_LD_GNU
4705 +])# _LT_PATH_LD_GNU
4708 -# AC_PROG_LD_RELOAD_FLAG
4709 -# ----------------------
4710 +# _LT_CMD_RELOAD
4711 +# --------------
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 @@
4722 esac
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
4726 +])# _LT_CMD_RELOAD
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.
4746 case $host_os in
4747 -aix4* | aix5*)
4748 +aix[[4-9]]*)
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
4758 case $host_cpu in
4759 i*86 )
4760 # Not sure whether the presence of OpenBSD here was a mistake.
4761 @@ -2408,7 +3070,7 @@
4764 netbsd*)
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)$'
4768 else
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
4774 -nto-qnx*)
4775 - lt_cv_deplibs_check_method=unknown
4776 +*nto* | *qnx*)
4777 + lt_cv_deplibs_check_method=pass_all
4780 openbsd*)
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)$'
4784 else
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
4792 + ;;
4794 sysv4 | sysv4.3*)
4795 case $host_vendor in
4796 motorola)
4797 @@ -2472,7 +3138,7 @@
4798 esac
4801 -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4802 +tpf*)
4803 lt_cv_deplibs_check_method=pass_all
4805 esac
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
4818 -# AC_PROG_NM
4820 +# LT_PATH_NM
4821 # ----------
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.
4831 lt_cv_path_NM="$NM"
4832 @@ -2529,16 +3201,51 @@
4833 done
4834 IFS="$lt_save_ifs"
4835 done
4836 - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4837 + : ${lt_cv_path_NM=no}
4838 fi])
4839 -NM="$lt_cv_path_NM"
4840 -])# AC_PROG_NM
4841 +if test "$lt_cv_path_NM" != "no"; then
4842 + NM="$lt_cv_path_NM"
4843 +else
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
4848 + NM="$DUMPBIN"
4849 + fi
4851 +test -z "$NM" && NM=nm
4852 +AC_SUBST([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"
4868 + fi
4869 + rm -f conftest*])
4870 +])# LT_PATH_NM
4872 +# Old names:
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], [])
4879 -# AC_CHECK_LIBM
4880 -# -------------
4882 +# LT_LIB_M
4883 +# --------
4884 # check for math library
4885 -AC_DEFUN([AC_CHECK_LIBM],
4886 +AC_DEFUN([LT_LIB_M],
4887 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
4888 LIBM=
4889 case $host in
4890 @@ -2553,3986 +3260,3739 @@
4891 AC_CHECK_LIB(m, cos, LIBM="-lm")
4893 esac
4894 -])# AC_CHECK_LIBM
4895 +AC_SUBST([LIBM])
4896 +])# LT_LIB_M
4898 +# Old name:
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
4913 -# the Makefiles.
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" ;;
4920 - esac
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])
4950 - else
4951 - enable_ltdl_install=yes
4952 - fi
4953 - ])
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'])
4958 - else
4959 - ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
4960 - LIBLTDL="-lltdl"
4961 - LTDLINCL=
4962 - fi
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'
4971 -# AC_LIBTOOL_CXX
4972 -# --------------
4973 -# enable support for C++ libraries
4974 -AC_DEFUN([AC_LIBTOOL_CXX],
4975 -[AC_REQUIRE([_LT_AC_LANG_CXX])
4976 -])# AC_LIBTOOL_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
4987 -# _LT_AC_LANG_CXX
4988 -# ---------------
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
5016 - AC_PROG_CXXCPP
5018 -])# _LT_AC_PROG_CXXCPP
5020 -# AC_LIBTOOL_F77
5021 -# --------------
5022 -# enable support for Fortran 77 libraries
5023 -AC_DEFUN([AC_LIBTOOL_F77],
5024 -[AC_REQUIRE([_LT_AC_LANG_F77])
5025 -])# AC_LIBTOOL_F77
5028 -# _LT_AC_LANG_F77
5029 -# ---------------
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
5036 -# AC_LIBTOOL_GCJ
5037 -# --------------
5038 -# enable support for GCJ libraries
5039 -AC_DEFUN([AC_LIBTOOL_GCJ],
5040 -[AC_REQUIRE([_LT_AC_LANG_GCJ])
5041 -])# AC_LIBTOOL_GCJ
5044 -# _LT_AC_LANG_GCJ
5045 -# ---------------
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
5057 -# AC_LIBTOOL_RC
5058 -# -------------
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])
5063 -])# AC_LIBTOOL_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],
5073 -[lt_save_CC="$CC"
5074 -AC_LANG_PUSH(C)
5076 -# Source file extension for C test sources.
5077 -ac_ext=c
5079 -# Object file extension for compiled C test sources.
5080 -objext=o
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?!! ;)]
5097 -## CAVEAT EMPTOR:
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.
5125 case $host_os in
5126 -aix3*)
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'
5131 - fi
5132 +aix*)
5133 + symcode='[[BCDT]]'
5136 -aix4* | aix5*)
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]]'
5141 + ;;
5142 +hpux*)
5143 + if test "$host_cpu" = ia64; then
5144 + symcode='[[ABCDEGRST]]'
5146 - ;;
5147 + ;;
5148 +irix* | nonstopux*)
5149 + symcode='[[BCDEGRST]]'
5150 + ;;
5151 +osf*)
5152 + symcode='[[BCDEGQRST]]'
5153 + ;;
5154 +solaris*)
5155 + symcode='[[BDRT]]'
5156 + ;;
5157 +sco3.2v5*)
5158 + symcode='[[DT]]'
5159 + ;;
5160 +sysv4.2uw2*)
5161 + symcode='[[DT]]'
5162 + ;;
5163 +sysv5* | sco5v6* | unixware* | OpenUNIX*)
5164 + symcode='[[ABDT]]'
5165 + ;;
5166 +sysv4)
5167 + symcode='[[DFNSTU]]'
5168 + ;;
5169 esac
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)
5179 -AC_LANG_POP
5180 -CC="$lt_save_CC"
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],
5191 -[AC_LANG_PUSH(C++)
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]]' ;;
5218 +esac
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.
5232 -ac_ext=cpp
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.
5238 -objext=o
5239 -_LT_AC_TAGVAR(objext, $1)=$objext
5240 +# Handle CRLF in mingw tool chain
5241 +opt_cr=
5242 +case $build_os in
5243 +mingw*)
5244 + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5245 + ;;
5246 +esac
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]"
5277 + else
5278 + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5279 + fi
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.
5285 + pipe_works=no
5287 -# Allow CC to be a program name with arguments.
5288 -lt_save_CC=$CC
5289 -lt_save_LD=$LD
5290 -lt_save_GCC=$GCC
5291 -GCC=$GXX
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
5296 -else
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
5301 -else
5302 - $as_unset lt_cv_path_LD
5304 -test -z "${LDCXX+set}" || LD=$LDCXX
5305 -CC=${CXX-"c++"}
5306 -compiler=$CC
5307 -_LT_AC_TAGVAR(compiler, $1)=$CC
5308 -_LT_CC_BASENAME([$compiler])
5309 + rm -f conftest*
5310 + cat > conftest.$ac_ext <<_LT_EOF
5311 +#ifdef __cplusplus
5312 +extern "C" {
5313 +#endif
5314 +char nm_test_var;
5315 +void nm_test_func(void);
5316 +void nm_test_func(void){}
5317 +#ifdef __cplusplus
5319 +#endif
5320 +int main(){nm_test_var='a';nm_test_func();return(0);}
5321 +_LT_EOF
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'
5327 -else
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.
5332 + nlist=conftest.nm
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"
5337 + else
5338 + rm -f "$nlist"T
5339 + fi
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
5347 +#ifdef __cplusplus
5348 +extern "C" {
5349 +#endif
5351 - AC_PROG_LD
5352 +_LT_EOF
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. */
5366 +const struct {
5367 + const char *name;
5368 + void *address;
5370 +lt__PROGRAM__LTX_preloaded_symbols[[]] =
5372 + { "@PROGRAM@", (void *) 0 },
5373 +_LT_EOF
5374 + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5375 + cat <<\_LT_EOF >> conftest.$ac_ext
5376 + {0, (void *) 0}
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)
5382 - wlarc='${wl}'
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;
5388 +#endif
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'
5394 +#ifdef __cplusplus
5396 +#endif
5397 +_LT_EOF
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
5405 + pipe_works=yes
5406 + fi
5407 + LIBS="$lt_save_LIBS"
5408 + CFLAGS="$lt_save_CFLAGS"
5409 + else
5410 + echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
5411 + fi
5412 + else
5413 + echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
5414 + fi
5415 else
5416 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5417 + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
5419 else
5420 - with_gnu_ld=no
5421 - wlarc=
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
5441 + break
5442 + else
5443 + lt_cv_sys_global_symbol_pipe=
5444 + fi
5445 +done
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)
5452 else
5453 - GXX=no
5454 - with_gnu_ld=no
5455 - wlarc=
5456 + AC_MSG_RESULT(ok)
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
5462 -case $host_os in
5463 - aix3*)
5464 - # FIXME: insert proper C++ library support
5465 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
5466 - ;;
5467 - aix4* | aix5*)
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'
5473 - no_entry_flag=""
5474 - else
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
5493 - case $ld_flag in
5494 - *-brtl*)
5495 - aix_use_runtimelinking=yes
5496 - break
5497 - ;;
5498 - esac
5499 - done
5500 - ;;
5501 - esac
5503 - exp_sym_flag='-bexport'
5504 - no_entry_flag='-bnoentry'
5505 - fi
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
5538 - then
5539 - # We have reworked collect2
5541 - else
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)=
5550 - fi
5551 - ;;
5552 - esac
5553 - shared_flag='-shared'
5554 - if test "$aix_use_runtimelinking" = yes; then
5555 - shared_flag="$shared_flag "'${wl}-G'
5556 - fi
5557 - else
5558 - # not using gcc
5559 + case $host_os in
5560 + aix*)
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:
5565 - shared_flag='-G'
5566 - else
5567 - if test "$aix_use_runtimelinking" = yes; then
5568 - shared_flag='${wl}-G'
5569 - else
5570 - shared_flag='${wl}-bM:SRE'
5571 - fi
5572 + # AIX 5 now supports IA64 processor
5573 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5575 - fi
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"
5587 + ;;
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"
5590 - else
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"
5595 - else
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'
5608 - fi
5609 - fi
5610 - ;;
5612 - beos*)
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'
5618 - else
5619 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
5620 - fi
5621 - ;;
5623 - chorus*)
5624 - case $cc_basename in
5625 - *)
5626 - # FIXME: insert proper C++ library support
5627 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
5628 - ;;
5629 - esac
5630 - ;;
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;
5646 - else
5647 - echo EXPORTS > $output_objdir/$soname.def;
5648 - cat $export_symbols >> $output_objdir/$soname.def;
5649 - fi~
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'
5651 - else
5652 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
5653 - fi
5654 - ;;
5655 - darwin* | rhapsody*)
5656 - case $host_os in
5657 - rhapsody* | darwin1.[[012]])
5658 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
5659 - ;;
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'
5663 - else
5664 - case ${MACOSX_DEPLOYMENT_TARGET} in
5665 - 10.[[012]])
5666 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
5667 - ;;
5668 - 10.*)
5669 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
5670 - ;;
5671 - esac
5672 - fi
5673 - ;;
5674 - esac
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
5687 - fi
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'
5690 - else
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'
5692 - fi
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}'
5697 - else
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}'
5699 - fi
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}'
5701 - else
5702 - case $cc_basename in
5703 - xlc*)
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}'
5710 - ;;
5711 - *)
5712 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
5713 - ;;
5714 - esac
5715 - fi
5716 + amigaos*)
5717 + case $host_cpu in
5718 + powerpc)
5719 + # see comment about AmigaOS4 .so support
5720 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5721 + ;;
5722 + m68k)
5723 + # FIXME: we need at least 68020 code to build shared libraries, but
5724 + # adding the `-m68020' flag to GCC prevents building anything better,
5725 + # like `-m68040'.
5726 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5728 + esac
5729 + ;;
5731 - dgux*)
5732 - case $cc_basename in
5733 - ec++*)
5734 - # FIXME: insert proper C++ library support
5735 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
5736 - ;;
5737 - ghcx*)
5738 - # Green Hills C++ Compiler
5739 - # FIXME: insert proper C++ library support
5740 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
5741 - ;;
5742 - *)
5743 - # FIXME: insert proper C++ library support
5744 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
5745 - ;;
5746 - esac
5747 - ;;
5748 - freebsd[[12]]*)
5749 - # C++ shared libraries reported to be fairly broken before switch to ELF
5750 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
5751 - ;;
5752 - freebsd-elf*)
5753 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5754 - ;;
5755 - freebsd* | dragonfly*)
5756 - # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
5757 - # conventions
5758 - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
5759 - ;;
5760 - gnu*)
5761 - ;;
5762 - hpux9*)
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
5772 - CC*)
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.
5778 - aCC*)
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
5787 - # dependencies.
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'])
5797 - *)
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'
5800 - else
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'
5807 + ;;
5808 + *djgpp*)
5809 + # DJGPP does not support shared libraries at all
5810 + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
5811 + ;;
5812 + interix[[3-9]]*)
5813 + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5814 + # Instead, we relocate shared libraries at runtime.
5815 + ;;
5816 + sysv4*MP*)
5817 + if test -d /usr/nec; then
5818 + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5821 - esac
5822 - ;;
5823 - hpux10*|hpux11*)
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)=:
5828 + hpux*)
5829 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5830 + # not for PA HP-UX.
5831 case $host_cpu in
5832 - hppa*64*|ia64*) ;;
5833 + hppa*64*|ia64*)
5834 + ;;
5836 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5837 - ;;
5838 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5839 + ;;
5840 esac
5841 - fi
5842 - case $host_cpu in
5843 - hppa*64*|ia64*)
5844 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
5845 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5846 + ;;
5847 + *qnx* | *nto*)
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'
5859 esac
5861 - case $cc_basename in
5862 - CC*)
5863 - # FIXME: insert proper C++ library support
5864 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
5865 + else
5866 + case $host_os in
5867 + aix[[4-9]]*)
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'
5872 + else
5873 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5874 + fi
5876 - aCC*)
5877 - case $host_cpu in
5878 - hppa*64*)
5879 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5880 - ;;
5881 - ia64*)
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'
5883 - ;;
5884 - *)
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'
5886 + chorus*)
5887 + case $cc_basename in
5888 + cxch68*)
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"
5892 esac
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
5900 - # dependencies.
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'
5903 - *)
5904 - if test "$GXX" = yes; then
5905 - if test $with_gnu_ld = no; then
5906 + dgux*)
5907 + case $cc_basename in
5908 + ec++*)
5909 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5910 + ;;
5911 + ghcx*)
5912 + # Green Hills C++ Compiler
5913 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5914 + ;;
5915 + *)
5916 + ;;
5917 + esac
5918 + ;;
5919 + freebsd* | dragonfly*)
5920 + # FreeBSD uses GNU C++
5921 + ;;
5922 + hpux9* | hpux10* | hpux11*)
5923 + case $cc_basename in
5924 + CC*)
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'
5929 + fi
5930 + ;;
5931 + aCC*)
5932 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5933 + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5934 case $host_cpu in
5935 - hppa*64*)
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'
5937 - ;;
5938 - ia64*)
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'
5940 + hppa*64*|ia64*)
5941 + # +Z the default
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'
5947 esac
5948 - fi
5949 - else
5950 - # FIXME: insert proper C++ library support
5951 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
5952 - fi
5953 - ;;
5954 - esac
5955 - ;;
5956 - interix[[3-9]]*)
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'
5969 - ;;
5970 - irix5* | irix6*)
5971 - case $cc_basename in
5972 - CC*)
5973 - # SGI C++
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
5979 - # in the archive.
5980 - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
5981 + ;;
5982 + *)
5983 + ;;
5984 + esac
5986 - *)
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'
5990 - else
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'
5992 - fi
5993 - fi
5994 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5995 + interix*)
5996 + # This is c89, which is MS Visual C++ (no shared libs)
5997 + # Anyone wants to do a port?
5999 - esac
6000 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6001 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6002 - ;;
6003 - linux* | k*bsd*-gnu)
6004 - case $cc_basename in
6005 - KCC*)
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
6020 - # dependencies.
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'
6029 - ;;
6030 - icpc*)
6031 - # Intel C++
6032 - with_gnu_ld=yes
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
6037 - *"Version 7."*)
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'
6040 - ;;
6041 - *) # Version 8.0 or newer
6042 - tmp_idyn=
6043 - case $host_cpu in
6044 - ia64*) tmp_idyn=' -i_dynamic';;
6045 - esac
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'
6048 - ;;
6049 + irix5* | irix6* | nonstopux*)
6050 + case $cc_basename in
6051 + CC*)
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.
6055 + ;;
6056 + *)
6057 + ;;
6058 esac
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'
6063 - ;;
6064 - pgCC*)
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'
6072 - ;;
6073 - cxx*)
6074 - # Compaq C++
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
6089 - # dependencies.
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'
6092 - *)
6093 - case `$CC -V 2>&1 | sed 5q` in
6094 - *Sun\ C*)
6095 - # Sun C++ 5.9
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
6110 - # in the archive.
6111 - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6112 - ;;
6113 + linux* | k*bsd*-gnu)
6114 + case $cc_basename in
6115 + KCC*)
6116 + # KAI C++ Compiler
6117 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
6118 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6119 + ;;
6120 + icpc* | ecpc* )
6121 + # Intel C++
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'
6125 + ;;
6126 + pgCC* | pgcpp*)
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'
6131 + ;;
6132 + cxx*)
6133 + # Compaq C++
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'
6138 + ;;
6139 + xlc* | xlC*)
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'
6144 + ;;
6145 + *)
6146 + case `$CC -V 2>&1 | sed 5q` in
6147 + *Sun\ C*)
6148 + # Sun C++ 5.9
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 '
6152 + ;;
6153 + esac
6154 + ;;
6155 esac
6157 - esac
6158 - ;;
6159 - lynxos*)
6160 - # FIXME: insert proper C++ library support
6161 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
6162 - ;;
6163 - m88k*)
6164 - # FIXME: insert proper C++ library support
6165 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
6166 - ;;
6167 - mvs*)
6168 - case $cc_basename in
6169 - cxx*)
6170 - # FIXME: insert proper C++ library support
6171 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
6172 - ;;
6173 - *)
6174 - # FIXME: insert proper C++ library support
6175 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
6176 - ;;
6177 - esac
6178 - ;;
6179 - netbsd*)
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'
6182 - wlarc=
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
6186 - fi
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::"'
6189 - ;;
6190 - openbsd2*)
6191 - # C++ shared libraries are fairly broken
6192 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
6193 - ;;
6194 - openbsd*)
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'
6204 - fi
6205 - output_verbose_link_cmd='echo'
6206 - else
6207 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
6208 - fi
6209 - ;;
6210 - osf3*)
6211 - case $cc_basename in
6212 - KCC*)
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'
6227 - ;;
6228 - RCC*)
6229 - # Rational C++ 2.4.1
6230 - # FIXME: insert proper C++ library support
6231 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
6232 - ;;
6233 - cxx*)
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
6247 - # dependencies.
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'
6249 + lynxos*)
6251 - *)
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"'
6264 - else
6265 - # FIXME: insert proper C++ library support
6266 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
6267 - fi
6268 + m88k*)
6270 - esac
6271 - ;;
6272 - osf4* | osf5*)
6273 - case $cc_basename in
6274 - KCC*)
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'
6288 - ;;
6289 - RCC*)
6290 - # Rational C++ 2.4.1
6291 - # FIXME: insert proper C++ library support
6292 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
6293 - ;;
6294 - cxx*)
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~
6300 - $rm $lib.exp'
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
6312 - # dependencies.
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'
6314 + mvs*)
6315 + case $cc_basename in
6316 + cxx*)
6317 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
6318 + ;;
6319 + *)
6320 + ;;
6321 + esac
6323 - *)
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"'
6336 - else
6337 - # FIXME: insert proper C++ library support
6338 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
6339 - fi
6340 + netbsd*)
6342 - esac
6343 - ;;
6344 - psos*)
6345 - # FIXME: insert proper C++ library support
6346 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
6347 - ;;
6348 - sunos4*)
6349 - case $cc_basename in
6350 - CC*)
6351 - # Sun C++ 4.x
6352 - # FIXME: insert proper C++ library support
6353 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
6354 - ;;
6355 - lcc*)
6356 - # Lucid
6357 - # FIXME: insert proper C++ library support
6358 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
6359 + *qnx* | *nto*)
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'
6363 + ;;
6364 + osf3* | osf4* | osf5*)
6365 + case $cc_basename in
6366 + KCC*)
6367 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
6368 + ;;
6369 + RCC*)
6370 + # Rational C++ 2.4.1
6371 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6372 + ;;
6373 + cxx*)
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'
6380 + ;;
6381 + *)
6382 + ;;
6383 + esac
6385 - *)
6386 - # FIXME: insert proper C++ library support
6387 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
6388 + psos*)
6390 - esac
6391 - ;;
6392 - solaris*)
6393 - case $cc_basename in
6394 - CC*)
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
6404 - case $host_os in
6405 - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6406 + solaris*)
6407 + case $cc_basename in
6408 + CC*)
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 '
6413 + ;;
6414 + gcx*)
6415 + # Green Hills C++ Compiler
6416 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
6417 + ;;
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'
6424 esac
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
6432 - # in the archive.
6433 - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6434 - ;;
6435 - gcx*)
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'
6442 - *)
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\""
6455 - else
6456 - # g++ 2.7 appears to require `-G' NOT `-shared' on this
6457 - # platform.
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\""
6466 - fi
6468 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
6469 - case $host_os in
6470 - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6471 + sunos4*)
6472 + case $cc_basename in
6473 + CC*)
6474 + # Sun C++ 4.x
6475 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6476 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6477 + ;;
6478 + lcc*)
6479 + # Lucid
6480 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6481 + ;;
6483 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6485 - esac
6486 - fi
6487 - ;;
6488 - esac
6489 - ;;
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
6497 - CC*)
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'
6500 - ;;
6501 - *)
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'
6504 - ;;
6505 - esac
6506 - ;;
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
6513 - # as -z defs.
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
6534 - CC*)
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'
6537 + esac
6539 - *)
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
6544 + CC*)
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'
6548 + ;;
6549 + esac
6551 - esac
6552 - ;;
6553 - tandem*)
6554 - case $cc_basename in
6555 - NCC*)
6556 - # NonStop-UX NCC 3.20
6557 - # FIXME: insert proper C++ library support
6558 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
6559 + tandem*)
6560 + case $cc_basename in
6561 + NCC*)
6562 + # NonStop-UX NCC 3.20
6563 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6564 + ;;
6565 + *)
6566 + ;;
6567 + esac
6569 - *)
6570 - # FIXME: insert proper C++ library support
6571 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
6572 + vxworks*)
6574 - esac
6575 - ;;
6576 - vxworks*)
6577 - # FIXME: insert proper C++ library support
6578 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
6579 - ;;
6580 - *)
6581 - # FIXME: insert proper C++ library support
6582 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
6583 - ;;
6584 -esac
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"
6591 -## CAVEAT EMPTOR:
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)
6605 -AC_LANG_POP
6606 -CC=$lt_save_CC
6607 -LDCXX=$LD
6608 -LD=$lt_save_LD
6609 -GCC=$lt_save_GCC
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
6631 -int a;
6632 -void foo (void) { a = 0; }
6633 -EOF
6634 -],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
6635 -class Foo
6637 -public:
6638 - Foo (void) { a = 0; }
6639 -private:
6640 - int a;
6642 -EOF
6643 -],[$1],[F77],[cat > conftest.$ac_ext <<EOF
6644 - subroutine foo
6645 - implicit none
6646 - integer*4 a
6647 - a=0
6648 - return
6649 - end
6650 -EOF
6651 -],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
6652 -public class foo {
6653 - private int a;
6654 - public void bar (void) {
6655 - a = 0;
6658 -EOF
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
6676 - case $p in
6678 - -L* | -R* | -l*)
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
6683 - prev=$p
6684 - continue
6685 - else
6686 - prev=
6687 - fi
6689 - if test "$pre_test_object_deps_done" = no; then
6690 - case $p in
6691 - -L* | -R*)
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}"
6697 - else
6698 - _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
6699 - fi
6700 - ;;
6701 - # The "-l" case would never come before the object being
6702 - # linked, so don't bother handling this case.
6703 - esac
6704 - else
6705 - if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
6706 - _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
6707 - else
6708 - _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
6709 - fi
6710 - fi
6711 - ;;
6713 - *.$objext)
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
6718 - continue
6719 - fi
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"
6724 - else
6725 - _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
6726 - fi
6727 - else
6728 - if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
6729 - _LT_AC_TAGVAR(postdep_objects, $1)="$p"
6730 - else
6731 - _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
6732 - fi
6733 - fi
6734 - ;;
6736 - *) ;; # Ignore the rest.
6738 - esac
6739 - done
6741 - # Clean up.
6742 - rm -f a.out a.exe
6743 -else
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
6750 -ifelse([$1],[CXX],
6751 -[case $host_os in
6752 -interix[[3-9]]*)
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)=
6758 - ;;
6760 -linux*)
6761 - case `$CC -V 2>&1 | sed 5q` in
6762 - *Sun\ C*)
6763 - # Sun C++ 5.9
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
6772 - ;;
6773 - esac
6774 - if test "$solaris_use_stlport4" != yes; then
6775 - _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
6776 - fi
6777 - ;;
6778 - esac
6779 - ;;
6781 -solaris*)
6782 - case $cc_basename in
6783 - CC*)
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
6791 - ;;
6792 - esac
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'
6799 - fi
6800 - ;;
6801 - esac
6802 - ;;
6803 -esac
6806 -case " $_LT_AC_TAGVAR(postdeps, $1) " in
6807 -*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
6808 -esac
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.
6841 -ac_ext=f
6843 -# Object file extension for compiled f77 test sources.
6844 -objext=o
6845 -_LT_AC_TAGVAR(objext, $1)=$objext
6847 -# Code to be used in simple compile tests
6848 -lt_simple_compile_test_code="\
6849 - subroutine t
6850 - return
6851 - end
6854 -# Code to be used in simple link tests
6855 -lt_simple_link_test_code="\
6856 - program t
6857 - end
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.
6868 -lt_save_CC="$CC"
6869 -CC=${F77-"f77"}
6870 -compiler=$CC
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.
6882 -case $host_os in
6883 -aix3*)
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'
6888 - fi
6889 - ;;
6890 -aix4* | aix5*)
6891 - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6892 - test "$enable_shared" = yes && enable_static=no
6893 - fi
6894 - ;;
6895 -esac
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)
6915 -AC_LANG_POP
6916 -CC="$lt_save_CC"
6917 -])# AC_LIBTOOL_LANG_F77_CONFIG
6919 + *)
6920 + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6921 + ;;
6922 + esac
6923 + fi
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],
6937 -[AC_LANG_SAVE
6938 + case $host_os in
6939 + aix*)
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'
6944 + fi
6945 + ;;
6947 -# Source file extension for Java test sources.
6948 -ac_ext=java
6949 + amigaos*)
6950 + case $host_cpu in
6951 + powerpc)
6952 + # see comment about AmigaOS4 .so support
6953 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6954 + ;;
6955 + m68k)
6956 + # FIXME: we need at least 68020 code to build shared libraries, but
6957 + # adding the `-m68020' flag to GCC prevents building anything better,
6958 + # like `-m68040'.
6959 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
6960 + ;;
6961 + esac
6962 + ;;
6964 -# Object file extension for compiled Java test sources.
6965 -objext=o
6966 -_LT_AC_TAGVAR(objext, $1)=$objext
6967 + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6968 + # PIC is the default for these OSes.
6969 + ;;
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'])
6980 + ;;
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'
6988 + ;;
6990 -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
6991 -_LT_AC_SYS_COMPILER
6992 + hpux*)
6993 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6994 + # not for PA HP-UX.
6995 + case $host_cpu in
6996 + hppa*64*|ia64*)
6997 + # +Z the default
6998 + ;;
6999 + *)
7000 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
7001 + ;;
7002 + esac
7003 + ;;
7005 -# save warnings/boilerplate of simple test code
7006 -_LT_COMPILER_BOILERPLATE
7007 -_LT_LINKER_BOILERPLATE
7008 + interix[[3-9]]*)
7009 + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7010 + # Instead, we relocate shared libraries at runtime.
7011 + ;;
7013 -# Allow CC to be a program name with arguments.
7014 -lt_save_CC="$CC"
7015 -CC=${GCJ-"gcj"}
7016 -compiler=$CC
7017 -_LT_AC_TAGVAR(compiler, $1)=$CC
7018 -_LT_CC_BASENAME([$compiler])
7019 + msdosdjgpp*)
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
7023 + enable_shared=no
7024 + ;;
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
7028 + *nto* | *qnx*)
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'
7032 + ;;
7034 -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7035 + sysv4*MP*)
7036 + if test -d /usr/nec; then
7037 + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
7038 + fi
7039 + ;;
7041 -## CAVEAT EMPTOR:
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)
7052 + *)
7053 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
7054 + ;;
7055 + esac
7056 + else
7057 + # PORTME Check for flag to pass linker flags through the system compiler.
7058 + case $host_os in
7059 + aix*)
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'
7064 + else
7065 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
7066 + fi
7067 + ;;
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'])
7075 + ;;
7077 -AC_LANG_RESTORE
7078 -CC="$lt_save_CC"
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.
7084 + case $host_cpu in
7085 + hppa*64*|ia64*)
7086 + # +Z the default
7087 + ;;
7088 + *)
7089 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
7090 + ;;
7091 + esac
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'
7094 + ;;
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'
7100 + ;;
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],
7109 -[AC_LANG_SAVE
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'
7116 + ;;
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'
7123 + ;;
7124 + ccc*)
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'
7128 + ;;
7129 + xl*)
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'
7134 + ;;
7135 + *)
7136 + case `$CC -V 2>&1 | sed 5q` in
7137 + *Sun\ C*)
7138 + # Sun C 5.9
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,'
7142 + ;;
7143 + *Sun\ F*)
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)=''
7148 + ;;
7149 + esac
7150 + ;;
7151 + esac
7152 + ;;
7154 -# Source file extension for RC test sources.
7155 -ac_ext=rc
7156 + newsos6)
7157 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7158 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7159 + ;;
7161 -# Object file extension for compiled RC test sources.
7162 -objext=o
7163 -_LT_AC_TAGVAR(objext, $1)=$objext
7164 + *nto* | *qnx*)
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'
7168 + ;;
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'
7176 + ;;
7178 -# Code to be used in simple link tests
7179 -lt_simple_link_test_code="$lt_simple_compile_test_code"
7180 + rdos*)
7181 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
7182 + ;;
7184 -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7185 -_LT_AC_SYS_COMPILER
7186 + solaris*)
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 ';;
7192 + *)
7193 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
7194 + esac
7195 + ;;
7197 -# save warnings/boilerplate of simple test code
7198 -_LT_COMPILER_BOILERPLATE
7199 -_LT_LINKER_BOILERPLATE
7200 + sunos4*)
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'
7204 + ;;
7206 -# Allow CC to be a program name with arguments.
7207 -lt_save_CC="$CC"
7208 -CC=${RC-"windres"}
7209 -compiler=$CC
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'
7217 + ;;
7219 -AC_LIBTOOL_CONFIG($1)
7220 + sysv4*MP*)
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'
7224 + fi
7225 + ;;
7227 -AC_LANG_RESTORE
7228 -CC="$lt_save_CC"
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'
7234 + ;;
7236 + unicos*)
7237 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7238 + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
7239 + ;;
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
7257 - fi
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 \
7262 - SED SHELL STRIP \
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
7307 - case $var in
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\"\`\\\""
7322 + uts4*)
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
7331 esac
7332 - done
7334 - case $lt_echo in
7335 - *'\[$]0 --fallback-echo"')
7336 - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
7337 + fi
7339 +case $host_os in
7340 + # For platforms which do not support PIC, -DPIC is meaningless:
7341 + *djgpp*)
7342 + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
7344 - esac
7346 -ifelse([$1], [],
7347 - [cfgfile="${ofile}T"
7348 - trap "$rm \"$cfgfile\"; exit 1" 1 2 15
7349 - $rm -f "$cfgfile"
7350 - AC_MSG_NOTICE([creating $ofile])],
7351 - [cfgfile="$ofile"])
7353 - cat <<__EOF__ >> "$cfgfile"
7354 -ifelse([$1], [],
7355 -[#! $SHELL
7356 + *)
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],[])])"
7358 + ;;
7359 +esac
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
7389 + "" | " "*) ;;
7390 + *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
7391 + esac],
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.
7410 -SED=$lt_SED
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.
7420 -available_tags=
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.
7428 -SHELL=$lt_SHELL
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
7445 -# The host system.
7446 -host_alias=$host_alias
7447 -host=$host
7448 -host_os=$host_os
7450 -# The build system.
7451 -build_alias=$build_alias
7452 -build=$build
7453 -build_os=$build_os
7455 -# An echo program that does not interpret backslashes.
7456 -echo=$lt_echo
7458 -# The archiver.
7459 -AR=$lt_AR
7460 -AR_FLAGS=$lt_AR_FLAGS
7462 -# A C compiler.
7463 -LTCC=$lt_LTCC
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)
7474 -# An ERE matcher.
7475 -EGREP=$lt_EGREP
7477 -# The linker used to build libraries.
7478 -LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
7480 -# Whether we need hard or soft links.
7481 -LN_S=$lt_LN_S
7483 -# A BSD-compatible nm program.
7484 -NM=$lt_NM
7486 -# A symbol stripping program
7487 -STRIP=$lt_STRIP
7489 -# Used to examine libraries when file_magic_cmd begins "file"
7490 -MAGIC_CMD=$MAGIC_CMD
7492 -# Used on cygwin: DLL creation program.
7493 -DLLTOOL="$DLLTOOL"
7495 -# Used on cygwin: object dumper.
7496 -OBJDUMP="$OBJDUMP"
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,
7501 + [],
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.
7508 -AS="$AS"
7510 -# The name of the directory that contains temporary libtool files.
7511 -objdir=$objdir
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'
7526 + case $host_os in
7527 + aix[[4-9]]*)
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'
7532 + else
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'
7534 + fi
7535 + ;;
7536 + pw32*)
7537 + _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
7538 + ;;
7539 + cygwin* | mingw*)
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'
7541 + ;;
7542 + *)
7543 + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7544 + ;;
7545 + esac
7546 + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
7547 +], [
7548 + runpath_var=
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
7593 + case $host_os in
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
7599 + with_gnu_ld=no
7600 + fi
7601 + ;;
7602 + interix*)
7603 + # we just hope/assume this is gcc and not c89 (= MSVC++)
7604 + with_gnu_ld=yes
7605 + ;;
7606 + openbsd*)
7607 + with_gnu_ld=no
7608 + ;;
7609 + esac
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
7616 + wlarc='${wl}'
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'
7629 + else
7630 + _LT_TAGVAR(whole_archive_flag_spec, $1)=
7631 + fi
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 ;;
7639 + esac
7641 -# Old archive suffix (normally "a").
7642 -libext="$libext"
7643 + # See if GNU ld supports shared libraries.
7644 + case $host_os in
7645 + aix[[3-9]]*)
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 "").
7660 -exeext="$exeext"
7661 +_LT_EOF
7662 + fi
7663 + ;;
7665 -# Additional compiler flags for building library objects.
7666 -pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
7667 -pic_mode=$pic_mode
7668 + amigaos*)
7669 + case $host_cpu in
7670 + powerpc)
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)=''
7674 + ;;
7675 + m68k)
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
7679 + ;;
7680 + esac
7681 + ;;
7683 -# What is the maximum length of a command?
7684 -max_cmd_len=$lt_cv_sys_max_cmd_len
7685 + beos*)
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'
7691 + else
7692 + _LT_TAGVAR(ld_shlibs, $1)=no
7693 + fi
7694 + ;;
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;
7715 + else
7716 + echo EXPORTS > $output_objdir/$soname.def;
7717 + cat $export_symbols >> $output_objdir/$soname.def;
7718 + fi~
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'
7720 + else
7721 + _LT_TAGVAR(ld_shlibs, $1)=no
7722 + fi
7723 + ;;
7725 -# Do we need the lib prefix for modules?
7726 -need_lib_prefix=$need_lib_prefix
7727 + interix[[3-9]]*)
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'
7740 + ;;
7742 -# Do we need a version for libraries?
7743 -need_version=$need_version
7744 + gnu* | linux* | tpf* | k*bsd*-gnu)
7745 + tmp_diet=no
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)
7749 + esac
7750 + fi
7751 + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7752 + && test "$tmp_diet" = no
7753 + then
7754 + tmp_addflag=
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'
7760 + ;;
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'
7772 + tmp_addflag= ;;
7773 + esac
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' ;;
7781 + esac
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'
7791 + fi
7793 -# Whether dlopen of programs is supported.
7794 -dlopen_self=$enable_dlopen_self
7795 + case $cc_basename in
7796 + xlf*)
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'
7807 + fi
7808 + ;;
7809 + esac
7810 + else
7811 + _LT_TAGVAR(ld_shlibs, $1)=no
7812 + fi
7813 + ;;
7815 -# Whether dlopen of statically linked programs is supported.
7816 -dlopen_self_static=$enable_dlopen_self_static
7817 + netbsd*)
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'
7820 + wlarc=
7821 + else
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'
7824 + fi
7825 + ;;
7827 -# Compiler flag to prevent dynamic linking.
7828 -link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
7829 + solaris*)
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)
7845 +_LT_EOF
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'
7849 + else
7850 + _LT_TAGVAR(ld_shlibs, $1)=no
7851 + fi
7852 + ;;
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
7873 +_LT_EOF
7874 + ;;
7875 + *)
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'
7884 + else
7885 + _LT_TAGVAR(ld_shlibs, $1)=no
7886 + fi
7887 + ;;
7888 + esac
7889 + ;;
7891 -# Format of library name prefix.
7892 -libname_spec=$lt_libname_spec
7893 + sunos4*)
7894 + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7895 + wlarc=
7896 + _LT_TAGVAR(hardcode_direct, $1)=yes
7897 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7898 + ;;
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
7903 + *)
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'
7907 + else
7908 + _LT_TAGVAR(ld_shlibs, $1)=no
7909 + fi
7910 + ;;
7911 + esac
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
7916 + runpath_var=
7917 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7918 + _LT_TAGVAR(export_dynamic_flag_spec, $1)=
7919 + _LT_TAGVAR(whole_archive_flag_spec, $1)=
7920 + fi
7921 + else
7922 + # PORTME fill in a description of your system's linker (not GNU ld)
7923 + case $host_os in
7924 + aix3*)
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
7935 + fi
7936 + ;;
7938 -# Commands used to build and install an old-style archive.
7939 -RANLIB=$lt_RANLIB
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
7943 + aix[[4-9]]*)
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'
7949 + no_entry_flag=""
7950 + else
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'
7955 + else
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'
7957 + fi
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
7969 + break
7970 + fi
7971 + done
7972 + ;;
7973 + esac
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'
7979 + fi
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
8012 + then
8013 + # We have reworked collect2
8015 + else
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)=
8024 + fi
8025 + ;;
8026 + esac
8027 + shared_flag='-shared'
8028 + if test "$aix_use_runtimelinking" = yes; then
8029 + shared_flag="$shared_flag "'${wl}-G'
8030 + fi
8031 + else
8032 + # not using gcc
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:
8036 + shared_flag='-G'
8037 + else
8038 + if test "$aix_use_runtimelinking" = yes; then
8039 + shared_flag='${wl}-G'
8040 + else
8041 + shared_flag='${wl}-bM:SRE'
8042 + fi
8043 + fi
8044 + fi
8046 -# Dependencies to place before the objects being linked to create a
8047 -# shared library.
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"
8061 + else
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"
8066 + else
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'
8080 + fi
8081 + fi
8082 + ;;
8084 -# Dependencies to place after the objects being linked to create a
8085 -# shared library.
8086 -postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
8087 + amigaos*)
8088 + case $host_cpu in
8089 + powerpc)
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)=''
8093 + ;;
8094 + m68k)
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
8098 + ;;
8099 + esac
8100 + ;;
8102 -# Dependencies to place before the objects being linked to create a
8103 -# shared library.
8104 -predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
8105 + bsdi[[45]]*)
8106 + _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
8107 + ;;
8109 -# Dependencies to place after the objects being linked to create a
8110 -# shared library.
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.
8120 + libext=lib
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
8131 + ;;
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)
8138 + ;;
8140 -# Method to check whether dependent libraries are shared objects.
8141 -deplibs_check_method=$lt_deplibs_check_method
8142 + dgux*)
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
8146 + ;;
8148 -# Command to use when deplibs_check_method == file_magic.
8149 -file_magic_cmd=$lt_file_magic_cmd
8150 + freebsd1*)
8151 + _LT_TAGVAR(ld_shlibs, $1)=no
8152 + ;;
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
8159 + # extra space).
8160 + freebsd2.2*)
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
8165 + ;;
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.
8170 + freebsd2*)
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
8175 + ;;
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
8185 + ;;
8187 -# Same as above, but a single script fragment to be evaled but not shown.
8188 -finish_eval=$lt_finish_eval
8189 + hpux9*)
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'
8192 + else
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'
8194 + fi
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'
8205 + ;;
8207 -# Transform the output of nm in a proper C declaration
8208 -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8209 + hpux10*)
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'
8212 + else
8213 + _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8214 + fi
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
8225 + fi
8226 + ;;
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
8230 + hpux11*)
8231 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8232 + case $host_cpu in
8233 + hppa*64*)
8234 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8235 + ;;
8236 + ia64*)
8237 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8238 + ;;
8239 + *)
8240 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8241 + ;;
8242 + esac
8243 + else
8244 + case $host_cpu in
8245 + hppa*64*)
8246 + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8247 + ;;
8248 + ia64*)
8249 + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8250 + ;;
8251 + *)
8252 + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8253 + ;;
8254 + esac
8255 + fi
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
8262 + case $host_cpu in
8263 + hppa*64*|ia64*)
8264 + _LT_TAGVAR(hardcode_direct, $1)=no
8265 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8266 + ;;
8267 + *)
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
8277 + ;;
8278 + esac
8279 + fi
8280 + ;;
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"
8296 + else
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'
8299 + fi
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
8305 + ;;
8307 -# How to hardcode a shared library path into an executable.
8308 -hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
8309 + netbsd*)
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
8312 + else
8313 + _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8314 + fi
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
8318 + ;;
8320 -# Whether we should hardcode library paths into libraries.
8321 -hardcode_into_libs=$hardcode_into_libs
8322 + newsos6)
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
8328 + ;;
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)
8333 + *nto* | *qnx*)
8334 + ;;
8336 -# If ld is used when linking, flag to hardcode \$libdir into
8337 -# a binary during linking. This must work even if \$libdir does
8338 -# not exist.
8339 -hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
8340 + openbsd*)
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'
8350 + else
8351 + case $host_os in
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'
8355 + ;;
8356 + *)
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'
8359 + ;;
8360 + esac
8361 + fi
8362 + else
8363 + _LT_TAGVAR(ld_shlibs, $1)=no
8364 + fi
8365 + ;;
8367 -# Whether we need a single -rpath flag with a separated argument.
8368 -hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
8369 + os2*)
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'
8375 + ;;
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)
8380 + osf3*)
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'
8384 + else
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'
8387 + fi
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)=:
8391 + ;;
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'
8401 + else
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'
8412 + fi
8413 + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
8414 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
8415 + ;;
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)
8420 + solaris*)
8421 + _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
8422 + if test "$GCC" = yes; then
8423 + wlarc='${wl}'
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'
8427 + else
8428 + case `$CC -V 2>&1` in
8429 + *"Compilers 5.0"*)
8430 + wlarc=''
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'
8434 + ;;
8435 + *)
8436 + wlarc='${wl}'
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'
8440 + ;;
8441 + esac
8442 + fi
8443 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8444 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8445 + case $host_os in
8446 + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
8447 + *)
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'
8454 + else
8455 + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
8456 + fi
8457 + ;;
8458 + esac
8459 + _LT_TAGVAR(link_all_deplibs, $1)=yes
8460 + ;;
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"
8465 + sunos4*)
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'
8470 + else
8471 + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8472 + fi
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
8477 + ;;
8479 -# Whether libtool must link a program against all its dependency libraries.
8480 -link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
8481 + sysv4)
8482 + case $host_vendor in
8483 + sni)
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???
8486 + ;;
8487 + siemens)
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
8493 + ;;
8494 + motorola)
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
8497 + ;;
8498 + esac
8499 + runpath_var='LD_RUN_PATH'
8500 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8501 + ;;
8503 -# Compile-time system search path for libraries
8504 -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8505 + sysv4.3*)
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'
8509 + ;;
8511 -# Run-time system search path for libraries
8512 -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8513 + sysv4*MP*)
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
8520 + fi
8521 + ;;
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'
8536 + else
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'
8539 + fi
8540 + ;;
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
8550 + # as -z defs.
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'
8566 + else
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'
8569 + fi
8570 + ;;
8572 -# Symbols that should not be listed in the preloaded symbols.
8573 -exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
8574 + uts4*)
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
8578 + ;;
8580 -# Symbols that must always be exported.
8581 -include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
8582 + *)
8583 + _LT_TAGVAR(ld_shlibs, $1)=no
8584 + ;;
8585 + esac
8587 -ifelse([$1],[],
8588 -[# ### END LIBTOOL CONFIG],
8589 -[# ### END LIBTOOL TAG CONFIG: $tagname])
8590 + if test x$host_vendor = xsni; then
8591 + case $host in
8592 + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8593 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
8594 + ;;
8595 + esac
8596 + fi
8597 + fi
8599 +AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
8600 +test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
8602 -__EOF__
8603 +_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
8605 -ifelse([$1],[], [
8606 - case $host_os in
8607 - aix3*)
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
8618 - COLLECT_NAMES=
8619 - export COLLECT_NAMES
8621 -EOF
8622 - ;;
8623 - esac
8625 +# Do we need to explicitly link libc?
8627 +case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
8628 +x|xyes)
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
8639 + *'~'*)
8640 + # FIXME: we may have to deal with multi-command sequences.
8641 + ;;
8642 + '$CC '*)
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])
8647 + $RM conftest*
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")
8652 - chmod +x "$ofile"
8654 -else
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
8662 + soname=conftest
8663 + lib=conftest
8664 + libobjs=conftest.$ac_objext
8665 + deplibs=
8666 + wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
8667 + pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
8668 + compiler_flags=-v
8669 + linker_flags=-v
8670 + verstring=
8671 + output_objdir=.
8672 + libname=conftest
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)
8676 + then
8677 + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
8678 + else
8679 + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
8680 + fi
8681 + _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
8682 + else
8683 + cat conftest.err 1>&5
8684 + fi
8685 + $RM conftest*
8686 + AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
8687 + ;;
8688 + esac
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
8698 + ;;
8699 +esac
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
8754 + against it])
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
8795 +lt_save_CC="$CC"
8796 +AC_LANG_PUSH(C)
8798 +# Source file extension for C test sources.
8799 +ac_ext=c
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.
8815 +objext=o
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'"
8830 +_LT_TAG_COMPILER
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.
8842 -case $host_os in
8843 -aix*)
8844 - symcode='[[BCDT]]'
8845 - ;;
8846 -cygwin* | mingw* | pw32*)
8847 - symcode='[[ABCDGISTW]]'
8848 - ;;
8849 -hpux*) # Its linker distinguishes data from code symbols
8850 - if test "$host_cpu" = ia64; then
8851 - symcode='[[ABCDEGRST]]'
8852 - fi
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'"
8855 - ;;
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'"
8861 - fi
8862 - ;;
8863 -irix* | nonstopux*)
8864 - symcode='[[BCDEGRST]]'
8865 - ;;
8866 -osf*)
8867 - symcode='[[BCDEGQRST]]'
8868 - ;;
8869 -solaris*)
8870 - symcode='[[BDRT]]'
8871 - ;;
8872 -sco3.2v5*)
8873 - symcode='[[DT]]'
8874 - ;;
8875 -sysv4.2uw2*)
8876 - symcode='[[DT]]'
8877 - ;;
8878 -sysv5* | sco5v6* | unixware* | OpenUNIX*)
8879 - symcode='[[ABDT]]'
8880 - ;;
8881 -sysv4)
8882 - symcode='[[DFNSTU]]'
8883 - ;;
8884 -esac
8885 +## CAVEAT EMPTOR:
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
8898 + _LT_CMD_STRIPLIB
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
8905 -opt_cr=
8906 -case $build_os in
8907 -mingw*)
8908 - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8909 - ;;
8910 -esac
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]]' ;;
8918 -esac
8919 + # On AIX, shared libraries and static libraries use the same namespace, and
8920 + # are all built from PIC.
8921 + case $host_os in
8922 + aix3*)
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'
8927 + fi
8928 + ;;
8930 -# Try without a prefix undercore, then with it.
8931 -for ac_symprfx in "" "_"; do
8932 + aix[[4-9]]*)
8933 + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8934 + test "$enable_shared" = yes && enable_static=no
8935 + fi
8936 + ;;
8937 + esac
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'"
8949 + _LT_CONFIG($1)
8951 +AC_LANG_POP
8952 +CC="$lt_save_CC"
8953 +])# _LT_LANG_C_CONFIG
8955 - # Check to see that the pipe works correctly.
8956 - pipe_works=no
8958 - rm -f conftest*
8959 - cat > conftest.$ac_ext <<EOF
8960 -#ifdef __cplusplus
8961 -extern "C" {
8962 -#endif
8963 -char nm_test_var;
8964 -void nm_test_func(){}
8965 -#ifdef __cplusplus
8967 -#endif
8968 -int main(){nm_test_var='a';nm_test_func();return(0);}
8969 -EOF
8970 +# _LT_PROG_CXX
8971 +# ------------
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])
8977 +AC_PROG_CXX
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
8981 + AC_PROG_CXXCPP
8982 +else
8983 + _lt_caught_CXX_error=yes
8985 +popdef([AC_MSG_ERROR])
8986 +])# _LT_PROG_CXX
8988 - if AC_TRY_EVAL(ac_compile); then
8989 - # Now try to grab the symbols.
8990 - nlist=conftest.nm
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"
8995 - else
8996 - rm -f "$nlist"T
8997 - fi
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
9005 -#ifdef __cplusplus
9006 -extern "C" {
9007 -#endif
9009 -EOF
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
9022 +AC_LANG_PUSH(C++)
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 *
9049 -#else
9050 -# define lt_ptr_t char *
9051 -# define const
9052 -#endif
9053 +# Source file extension for C++ test sources.
9054 +ac_ext=cpp
9056 -/* The mapping between symbol names and symbols. */
9057 -const struct {
9058 - const char *name;
9059 - lt_ptr_t address;
9061 -lt_preloaded_symbols[[]] =
9063 -EOF
9064 - $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9065 - cat <<\EOF >> conftest.$ac_ext
9066 - {0, (lt_ptr_t) 0}
9068 +# Object file extension for compiled C++ test sources.
9069 +objext=o
9070 +_LT_TAGVAR(objext, $1)=$objext
9072 -#ifdef __cplusplus
9074 -#endif
9075 -EOF
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
9083 - pipe_works=yes
9084 - fi
9085 - LIBS="$lt_save_LIBS"
9086 - CFLAGS="$lt_save_CFLAGS"
9087 - else
9088 - echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
9089 - fi
9090 - else
9091 - echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
9092 - fi
9093 - else
9094 - echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
9095 - fi
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.
9108 + _LT_TAG_COMPILER
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.
9115 + lt_save_CC=$CC
9116 + lt_save_LD=$LD
9117 + lt_save_GCC=$GCC
9118 + GCC=$GXX
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
9123 else
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
9132 - break
9133 + if test -n "${lt_cv_path_LDCXX+set}"; then
9134 + lt_cv_path_LD=$lt_cv_path_LDCXX
9135 else
9136 - lt_cv_sys_global_symbol_pipe=
9137 + $as_unset lt_cv_path_LD
9139 -done
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)
9146 -else
9147 - AC_MSG_RESULT(ok)
9149 -]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
9150 + test -z "${LDCXX+set}" || LD=$LDCXX
9151 + CC=${CXX-"c++"}
9152 + compiler=$CC
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'
9161 + else
9162 + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
9163 + fi
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'
9180 + LT_PATH_LD
9182 - case $host_os in
9183 - aix*)
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'
9188 - fi
9189 - ;;
9190 - amigaos*)
9191 - # FIXME: we need at least 68020 code to build shared libraries, but
9192 - # adding the `-m68020' flag to GCC prevents building anything better,
9193 - # like `-m68040'.
9194 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
9195 - ;;
9196 - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9197 - # PIC is the default for these OSes.
9198 - ;;
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'
9205 - ;;
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'
9210 - ;;
9211 - *djgpp*)
9212 - # DJGPP does not support shared libraries at all
9213 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
9214 - ;;
9215 - interix[[3-9]]*)
9216 - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9217 - # Instead, we relocate shared libraries at runtime.
9218 - ;;
9219 - sysv4*MP*)
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)
9234 + wlarc='${wl}'
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'
9240 + else
9241 + _LT_TAGVAR(whole_archive_flag_spec, $1)=
9242 + fi
9243 + else
9244 + with_gnu_ld=no
9245 + wlarc=
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'
9254 - ;;
9255 - hpux*)
9256 - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9257 - # not for PA HP-UX.
9258 - case $host_cpu in
9259 - hppa*64*|ia64*)
9260 - ;;
9261 - *)
9262 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
9263 - ;;
9264 - esac
9265 - ;;
9266 - *)
9267 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
9268 - ;;
9269 - esac
9270 - else
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"'
9277 + else
9278 + GXX=no
9279 + with_gnu_ld=no
9280 + wlarc=
9281 + fi
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
9286 case $host_os in
9287 - aix4* | aix5*)
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'
9292 + aix3*)
9293 + # FIXME: insert proper C++ library support
9294 + _LT_TAGVAR(ld_shlibs, $1)=no
9295 + ;;
9296 + aix[[4-9]]*)
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'
9302 + no_entry_flag=""
9303 + else
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
9311 + case $ld_flag in
9312 + *-brtl*)
9313 + aix_use_runtimelinking=yes
9314 + break
9315 + ;;
9316 + esac
9317 + done
9318 + ;;
9319 + esac
9321 + exp_sym_flag='-bexport'
9322 + no_entry_flag='-bnoentry'
9323 + fi
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
9345 + then
9346 + # We have reworked collect2
9348 + else
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)=
9357 + fi
9358 + esac
9359 + shared_flag='-shared'
9360 + if test "$aix_use_runtimelinking" = yes; then
9361 + shared_flag="$shared_flag "'${wl}-G'
9362 + fi
9363 + else
9364 + # not using gcc
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:
9368 + shared_flag='-G'
9369 + else
9370 + if test "$aix_use_runtimelinking" = yes; then
9371 + shared_flag='${wl}-G'
9372 + else
9373 + shared_flag='${wl}-bM:SRE'
9374 + fi
9375 + fi
9376 + fi
9378 + # It seems that -bexpall does not export symbols beginning with
9379 + # underscore (_), so it is better to generate a list of symbols to
9380 + # export.
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
9387 + # executable.
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"
9392 + else
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"
9397 + else
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
9410 + # libraries.
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'
9412 + fi
9413 + fi
9414 + ;;
9416 + beos*)
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'
9422 else
9423 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
9424 + _LT_TAGVAR(ld_shlibs, $1)=no
9428 chorus*)
9429 - case $cc_basename in
9430 - cxch68*)
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
9434 + *)
9435 + # FIXME: insert proper C++ library support
9436 + _LT_TAGVAR(ld_shlibs, $1)=no
9438 - esac
9439 + esac
9440 + ;;
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;
9456 + else
9457 + echo EXPORTS > $output_objdir/$soname.def;
9458 + cat $export_symbols >> $output_objdir/$soname.def;
9459 + fi~
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'
9461 + else
9462 + _LT_TAGVAR(ld_shlibs, $1)=no
9463 + fi
9464 + ;;
9465 + darwin* | rhapsody*)
9466 + _LT_DARWIN_LINKER_FEATURES($1)
9468 - darwin*)
9469 - # PIC is the default on this platform
9470 - # Common symbols not allowed in MH_DYLIB files
9471 - case $cc_basename in
9472 - xlc*)
9473 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
9474 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
9475 - ;;
9476 - esac
9477 - ;;
9479 dgux*)
9480 - case $cc_basename in
9481 - ec++*)
9482 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
9483 + case $cc_basename in
9484 + ec++*)
9485 + # FIXME: insert proper C++ library support
9486 + _LT_TAGVAR(ld_shlibs, $1)=no
9488 - ghcx*)
9489 + ghcx*)
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
9495 - *)
9496 + *)
9497 + # FIXME: insert proper C++ library support
9498 + _LT_TAGVAR(ld_shlibs, $1)=no
9500 - esac
9501 - ;;
9502 + esac
9503 + ;;
9505 + freebsd[[12]]*)
9506 + # C++ shared libraries reported to be fairly broken before
9507 + # switch to ELF
9508 + _LT_TAGVAR(ld_shlibs, $1)=no
9509 + ;;
9511 + freebsd-elf*)
9512 + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
9513 + ;;
9515 freebsd* | dragonfly*)
9516 - # FreeBSD uses GNU C++
9517 - ;;
9518 - hpux9* | hpux10* | hpux11*)
9519 - case $cc_basename in
9520 - CC*)
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'
9525 - fi
9526 + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9527 + # conventions
9528 + _LT_TAGVAR(ld_shlibs, $1)=yes
9529 + ;;
9531 + gnu*)
9532 + ;;
9534 + hpux9*)
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
9544 + CC*)
9545 + # FIXME: insert proper C++ library support
9546 + _LT_TAGVAR(ld_shlibs, $1)=no
9547 + ;;
9548 + aCC*)
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
9557 + # dependencies.
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'
9559 + ;;
9560 + *)
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'
9563 + else
9564 + # FIXME: insert proper C++ library support
9565 + _LT_TAGVAR(ld_shlibs, $1)=no
9566 + fi
9567 + ;;
9568 + esac
9569 + ;;
9571 + hpux10*|hpux11*)
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)=:
9576 + case $host_cpu in
9577 + hppa*64*|ia64*)
9578 + ;;
9579 + *)
9580 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
9581 + ;;
9582 + esac
9583 + fi
9584 + case $host_cpu in
9585 + hppa*64*|ia64*)
9586 + _LT_TAGVAR(hardcode_direct, $1)=no
9587 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
9588 + ;;
9589 + *)
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.
9595 + ;;
9596 + esac
9598 + case $cc_basename in
9599 + CC*)
9600 + # FIXME: insert proper C++ library support
9601 + _LT_TAGVAR(ld_shlibs, $1)=no
9603 - aCC*)
9604 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
9605 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
9606 + aCC*)
9607 case $host_cpu in
9608 - hppa*64*|ia64*)
9609 - # +Z the default
9610 - ;;
9611 - *)
9612 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
9613 - ;;
9614 + hppa*64*)
9615 + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9616 + ;;
9617 + ia64*)
9618 + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9619 + ;;
9620 + *)
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'
9622 + ;;
9623 esac
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
9631 + # dependencies.
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'
9634 - *)
9635 + *)
9636 + if test "$GXX" = yes; then
9637 + if test $with_gnu_ld = no; then
9638 + case $host_cpu in
9639 + hppa*64*)
9640 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9641 + ;;
9642 + ia64*)
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'
9644 + ;;
9645 + *)
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'
9647 + ;;
9648 + esac
9649 + fi
9650 + else
9651 + # FIXME: insert proper C++ library support
9652 + _LT_TAGVAR(ld_shlibs, $1)=no
9653 + fi
9655 - esac
9656 - ;;
9657 - interix*)
9658 - # This is c89, which is MS Visual C++ (no shared libs)
9659 - # Anyone wants to do a port?
9660 - ;;
9661 - irix5* | irix6* | nonstopux*)
9662 - case $cc_basename in
9663 - CC*)
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.
9667 + esac
9668 + ;;
9670 + interix[[3-9]]*)
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'
9683 + ;;
9684 + irix5* | irix6*)
9685 + case $cc_basename in
9686 + CC*)
9687 + # SGI C++
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
9693 + # in the archive.
9694 + _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
9696 - *)
9697 + *)
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'
9701 + else
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'
9703 + fi
9704 + fi
9705 + _LT_TAGVAR(link_all_deplibs, $1)=yes
9707 - esac
9708 - ;;
9709 + esac
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
9713 + ;;
9715 linux* | k*bsd*-gnu)
9716 - case $cc_basename in
9717 - KCC*)
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
9722 + KCC*)
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
9737 + # dependencies.
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'
9747 - icpc* | ecpc*)
9748 + icpc* | ecpc* )
9749 # Intel C++
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'
9753 - ;;
9754 - pgCC*)
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'
9759 - ;;
9760 - cxx*)
9761 - # Compaq C++
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'
9766 + with_gnu_ld=yes
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
9771 + *"Version 7."*)
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'
9774 + ;;
9775 + *) # Version 8.0 or newer
9776 + tmp_idyn=
9777 + case $host_cpu in
9778 + ia64*) tmp_idyn=' -i_dynamic';;
9779 + esac
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'
9782 + ;;
9783 + esac
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'
9789 - *)
9790 - case `$CC -V 2>&1 | sed 5q` in
9791 - *Sun\ C*)
9792 - # Sun C++ 5.9
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 '
9796 + pgCC* | pgcpp*)
9797 + # Portland Group C++ compiler
9798 + case `$CC -V` in
9799 + *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
9800 + _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
9801 + rm -rf $tpldir~
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~
9805 + rm -rf $tpldir~
9806 + $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
9807 + $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
9808 + $RANLIB $oldlib'
9809 + _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
9810 + rm -rf $tpldir~
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~
9814 + rm -rf $tpldir~
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'
9817 + ;;
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'
9822 esac
9823 - ;;
9824 - esac
9825 - ;;
9826 - lynxos*)
9827 - ;;
9828 - m88k*)
9829 - ;;
9830 - mvs*)
9831 - case $cc_basename in
9832 - cxx*)
9833 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
9834 - ;;
9835 - *)
9836 - ;;
9837 - esac
9838 - ;;
9839 - netbsd*)
9840 - ;;
9841 - osf3* | osf4* | osf5*)
9842 - case $cc_basename in
9843 - KCC*)
9844 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
9845 - ;;
9846 - RCC*)
9847 - # Rational C++ 2.4.1
9848 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
9849 - ;;
9850 - cxx*)
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'
9857 - ;;
9858 - *)
9859 - ;;
9860 - esac
9861 - ;;
9862 - psos*)
9863 - ;;
9864 - solaris*)
9865 - case $cc_basename in
9866 - CC*)
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 '
9871 - ;;
9872 - gcx*)
9873 - # Green Hills C++ Compiler
9874 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
9875 - ;;
9876 - *)
9877 - ;;
9878 - esac
9879 - ;;
9880 - sunos4*)
9881 - case $cc_basename in
9882 - CC*)
9883 - # Sun C++ 4.x
9884 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
9885 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
9886 - ;;
9887 - lcc*)
9888 - # Lucid
9889 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
9890 - ;;
9891 - *)
9892 - ;;
9893 - esac
9894 - ;;
9895 - tandem*)
9896 - case $cc_basename in
9897 - NCC*)
9898 - # NonStop-UX NCC 3.20
9899 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
9900 - ;;
9901 - *)
9902 - ;;
9903 - esac
9904 - ;;
9905 - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9906 - case $cc_basename in
9907 - CC*)
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'
9911 - ;;
9912 - esac
9913 - ;;
9914 - vxworks*)
9915 - ;;
9916 - *)
9917 - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
9918 - ;;
9919 - esac
9920 - fi
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'
9927 - case $host_os in
9928 - aix*)
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'
9933 - fi
9934 - ;;
9936 - amigaos*)
9937 - # FIXME: we need at least 68020 code to build shared libraries, but
9938 - # adding the `-m68020' flag to GCC prevents building anything better,
9939 - # like `-m68040'.
9940 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
9941 - ;;
9943 - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9944 - # PIC is the default for these OSes.
9945 - ;;
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'
9953 - ;;
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'
9959 - ;;
9961 - interix[[3-9]]*)
9962 - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9963 - # Instead, we relocate shared libraries at runtime.
9964 - ;;
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'
9968 + ;;
9969 + cxx*)
9970 + # Compaq C++
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'
9974 - msdosdjgpp*)
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
9978 - enable_shared=no
9979 - ;;
9980 + runpath_var=LD_RUN_PATH
9981 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
9982 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
9984 - sysv4*MP*)
9985 - if test -d /usr/nec; then
9986 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
9987 - fi
9988 - ;;
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
9996 + # dependencies.
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'
9998 + ;;
9999 + xl*)
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'
10009 + fi
10010 + ;;
10011 + *)
10012 + case `$CC -V 2>&1 | sed 5q` in
10013 + *Sun\ C*)
10014 + # Sun C++ 5.9
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'
10032 + ;;
10033 + esac
10034 + ;;
10035 + esac
10036 + ;;
10038 - hpux*)
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
10042 - hppa*64*|ia64*)
10043 - # +Z the default
10044 + lynxos*)
10045 + # FIXME: insert proper C++ library support
10046 + _LT_TAGVAR(ld_shlibs, $1)=no
10048 - *)
10049 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
10051 + m88k*)
10052 + # FIXME: insert proper C++ library support
10053 + _LT_TAGVAR(ld_shlibs, $1)=no
10055 - esac
10056 - ;;
10058 - *)
10059 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
10060 - ;;
10061 - esac
10062 - else
10063 - # PORTME Check for flag to pass linker flags through the system compiler.
10064 - case $host_os in
10065 - aix*)
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'
10070 - else
10071 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
10072 - fi
10073 - ;;
10074 - darwin*)
10075 - # PIC is the default on this platform
10076 - # Common symbols not allowed in MH_DYLIB files
10077 - case $cc_basename in
10078 - xlc*)
10079 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
10080 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
10081 - ;;
10082 - esac
10083 - ;;
10084 + mvs*)
10085 + case $cc_basename in
10086 + cxx*)
10087 + # FIXME: insert proper C++ library support
10088 + _LT_TAGVAR(ld_shlibs, $1)=no
10089 + ;;
10090 + *)
10091 + # FIXME: insert proper C++ library support
10092 + _LT_TAGVAR(ld_shlibs, $1)=no
10093 + ;;
10094 + esac
10095 + ;;
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'
10101 - ;;
10102 + netbsd*)
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'
10105 + wlarc=
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
10109 + fi
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::"'
10112 + ;;
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
10119 - hppa*64*|ia64*)
10120 - # +Z the default
10121 + *nto* | *qnx*)
10122 + _LT_TAGVAR(ld_shlibs, $1)=yes
10124 - *)
10125 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
10127 + openbsd2*)
10128 + # C++ shared libraries are fairly broken
10129 + _LT_TAGVAR(ld_shlibs, $1)=no
10130 + ;;
10132 + openbsd*)
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'
10143 + fi
10144 + output_verbose_link_cmd=echo
10145 + else
10146 + _LT_TAGVAR(ld_shlibs, $1)=no
10147 + fi
10149 - esac
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'
10152 - ;;
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'
10158 - ;;
10159 + osf3* | osf4* | osf5*)
10160 + case $cc_basename in
10161 + KCC*)
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.
10174 + case $host in
10175 + osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
10176 + *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
10177 + esac
10178 + ;;
10179 + RCC*)
10180 + # Rational C++ 2.4.1
10181 + # FIXME: insert proper C++ library support
10182 + _LT_TAGVAR(ld_shlibs, $1)=no
10183 + ;;
10184 + cxx*)
10185 + case $host in
10186 + osf3*)
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'
10190 + ;;
10191 + *)
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~
10197 + $RM $lib.exp'
10198 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
10199 + ;;
10200 + esac
10202 - newsos6)
10203 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
10204 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
10205 - ;;
10206 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
10208 - linux* | k*bsd*-gnu)
10209 - case $cc_basename in
10210 - icc* | ecc*)
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
10221 + # dependencies.
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'
10223 + ;;
10224 + *)
10225 + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10226 + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
10227 + case $host in
10228 + osf3*)
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'
10230 + ;;
10231 + *)
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'
10233 + ;;
10234 + esac
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"'
10244 + else
10245 + # FIXME: insert proper C++ library support
10246 + _LT_TAGVAR(ld_shlibs, $1)=no
10247 + fi
10248 + ;;
10249 + esac
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'
10258 + psos*)
10259 + # FIXME: insert proper C++ library support
10260 + _LT_TAGVAR(ld_shlibs, $1)=no
10262 - ccc*)
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'
10267 + sunos4*)
10268 + case $cc_basename in
10269 + CC*)
10270 + # Sun C++ 4.x
10271 + # FIXME: insert proper C++ library support
10272 + _LT_TAGVAR(ld_shlibs, $1)=no
10273 + ;;
10274 + lcc*)
10275 + # Lucid
10276 + # FIXME: insert proper C++ library support
10277 + _LT_TAGVAR(ld_shlibs, $1)=no
10278 + ;;
10279 + *)
10280 + # FIXME: insert proper C++ library support
10281 + _LT_TAGVAR(ld_shlibs, $1)=no
10282 + ;;
10283 + esac
10285 - como)
10286 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-lopt='
10288 + solaris*)
10289 + case $cc_basename in
10290 + CC*)
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
10300 + case $host_os in
10301 + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
10302 + *)
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'
10307 + ;;
10308 + esac
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'
10318 + ;;
10319 + gcx*)
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'
10325 + ;;
10326 + *)
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"'
10339 + else
10340 + # g++ 2.7 appears to require `-G' NOT `-shared' on this
10341 + # platform.
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"'
10350 + fi
10352 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
10353 + case $host_os in
10354 + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
10355 + *)
10356 + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10357 + ;;
10358 + esac
10359 + fi
10360 + ;;
10361 + esac
10363 - *)
10364 - case `$CC -V 2>&1 | sed 5q` in
10365 - *Sun\ C*)
10366 - # Sun C 5.9
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
10378 + CC*)
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'
10382 - *Sun\ F*)
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)=''
10387 + *)
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'
10391 - esac
10392 - ;;
10393 esac
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'
10400 - ;;
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
10407 + # as -z defs.
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'
10418 - rdos*)
10419 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
10420 + case $cc_basename in
10421 + CC*)
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'
10424 + ;;
10425 + *)
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'
10428 + ;;
10429 + esac
10432 - solaris*)
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 ';;
10438 + tandem*)
10439 + case $cc_basename in
10440 + NCC*)
10441 + # NonStop-UX NCC 3.20
10442 + # FIXME: insert proper C++ library support
10443 + _LT_TAGVAR(ld_shlibs, $1)=no
10444 + ;;
10445 + *)
10446 + # FIXME: insert proper C++ library support
10447 + _LT_TAGVAR(ld_shlibs, $1)=no
10448 + ;;
10449 + esac
10450 + ;;
10452 + vxworks*)
10453 + # FIXME: insert proper C++ library support
10454 + _LT_TAGVAR(ld_shlibs, $1)=no
10455 + ;;
10458 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
10459 - esac
10460 - ;;
10461 + # FIXME: insert proper C++ library support
10462 + _LT_TAGVAR(ld_shlibs, $1)=no
10463 + ;;
10464 + esac
10466 - sunos4*)
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'
10470 - ;;
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'
10478 - ;;
10479 + _LT_TAGVAR(GCC, $1)="$GXX"
10480 + _LT_TAGVAR(LD, $1)="$LD"
10482 - sysv4*MP*)
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'
10486 - fi
10487 - ;;
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)
10500 + _LT_CONFIG($1)
10501 + fi # test -n "$compiler"
10503 + CC=$lt_save_CC
10504 + LDCXX=$LD
10505 + LD=$lt_save_LD
10506 + GCC=$lt_save_GCC
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'
10518 - ;;
10519 +AC_LANG_POP
10520 +])# _LT_LANG_CXX_CONFIG
10522 - unicos*)
10523 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
10524 - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
10525 - ;;
10527 - uts4*)
10528 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
10529 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
10530 - ;;
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)=
10546 - *)
10547 - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
10548 - ;;
10549 - esac
10550 - fi
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
10557 +int a;
10558 +void foo (void) { a = 0; }
10559 +_LT_EOF
10560 +], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
10561 +class Foo
10563 +public:
10564 + Foo (void) { a = 0; }
10565 +private:
10566 + int a;
10568 +_LT_EOF
10569 +], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
10570 + subroutine foo
10571 + implicit none
10572 + integer*4 a
10573 + a=0
10574 + return
10575 + end
10576 +_LT_EOF
10577 +], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
10578 + subroutine foo
10579 + implicit none
10580 + integer a
10581 + a=0
10582 + return
10583 + end
10584 +_LT_EOF
10585 +], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
10586 +public class foo {
10587 + private int a;
10588 + public void bar (void) {
10589 + a = 0;
10592 +_LT_EOF
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
10609 - "" | " "*) ;;
10610 - *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
10611 - esac],
10612 - [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
10613 - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
10615 -case $host_os in
10616 - # For platforms which do not support PIC, -DPIC is meaningless:
10617 - *djgpp*)
10618 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
10619 - ;;
10620 - *)
10621 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
10622 - ;;
10623 -esac
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,
10635 - [],
10636 - [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
10638 + for p in `eval "$output_verbose_link_cmd"`; do
10639 + case $p in
10641 + -L* | -R* | -l*)
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
10646 + prev=$p
10647 + continue
10648 + else
10649 + prev=
10650 + fi
10652 + if test "$pre_test_object_deps_done" = no; then
10653 + case $p in
10654 + -L* | -R*)
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}"
10660 + else
10661 + _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
10662 + fi
10663 + ;;
10664 + # The "-l" case would never come before the object being
10665 + # linked, so don't bother handling this case.
10666 + esac
10667 + else
10668 + if test -z "$_LT_TAGVAR(postdeps, $1)"; then
10669 + _LT_TAGVAR(postdeps, $1)="${prev}${p}"
10670 + else
10671 + _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
10672 + fi
10673 + fi
10674 + ;;
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'
10684 - case $host_os in
10685 - aix4* | aix5*)
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'
10690 - else
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'
10692 - fi
10693 - ;;
10694 - pw32*)
10695 - _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
10696 - ;;
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'
10699 - ;;
10700 - *)
10701 - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10702 - ;;
10703 - esac
10704 -],[
10705 - runpath_var=
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])
10743 - case $host_os in
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
10749 - with_gnu_ld=no
10750 - fi
10751 - ;;
10752 - interix*)
10753 - # we just hope/assume this is gcc and not c89 (= MSVC++)
10754 - with_gnu_ld=yes
10755 - ;;
10756 - openbsd*)
10757 - with_gnu_ld=no
10758 - ;;
10759 - esac
10760 + *.$objext)
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
10765 + continue
10766 + fi
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
10771 - wlarc='${wl}'
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"
10775 + else
10776 + _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
10777 + fi
10778 + else
10779 + if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
10780 + _LT_TAGVAR(postdep_objects, $1)="$p"
10781 + else
10782 + _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
10783 + fi
10784 + fi
10785 + ;;
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'
10798 - else
10799 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
10800 - fi
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 ;;
10808 esac
10809 + done
10811 - # See if GNU ld supports shared libraries.
10812 - case $host_os in
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
10817 - cat <<EOF 1>&2
10818 + # Clean up.
10819 + rm -f a.out a.exe
10820 +else
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
10831 -EOF
10832 - fi
10833 - ;;
10834 +# PORTME: override above test on systems where it is broken
10835 +m4_if([$1], [CXX],
10836 +[case $host_os in
10837 +interix[[3-9]]*)
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)=
10843 + ;;
10845 - amigaos*)
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
10855 - # them.
10856 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
10857 - ;;
10858 +linux*)
10859 + case `$CC -V 2>&1 | sed 5q` in
10860 + *Sun\ C*)
10861 + # Sun C++ 5.9
10863 - beos*)
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'
10869 - else
10870 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
10871 - fi
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
10880 + esac
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'
10892 + fi
10893 + ;;
10894 + esac
10895 + ;;
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;
10903 - else
10904 - echo EXPORTS > $output_objdir/$soname.def;
10905 - cat $export_symbols >> $output_objdir/$soname.def;
10906 - fi~
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'
10908 - else
10909 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
10910 - fi
10911 +solaris*)
10912 + case $cc_basename in
10913 + CC*)
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
10922 + esac
10924 - interix[[3-9]]*)
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'
10937 - ;;
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'
10943 + fi
10944 + ;;
10945 + esac
10946 + ;;
10947 +esac
10950 - gnu* | linux* | k*bsd*-gnu)
10951 - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10952 - tmp_addflag=
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'
10957 - ;;
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' ;;
10967 - esac
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' ;;
10974 - *)
10975 - tmp_sharedflag='-shared' ;;
10976 - esac
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 ;;
10980 +esac
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
10999 +# _LT_PROG_F77
11000 +# ------------
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])
11006 +AC_PROG_F77
11007 +if test -z "$F77" || test "X$F77" = "Xno"; then
11008 + _lt_disable_F77=yes
11010 +popdef([AC_MSG_ERROR])
11011 +])# _LT_PROG_F77
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'
11018 - fi
11019 - else
11020 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
11021 - fi
11022 - ;;
11023 +dnl aclocal-1.4 backwards compatibility:
11024 +dnl AC_DEFUN([_LT_PROG_F77], [])
11026 - netbsd*)
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'
11029 - wlarc=
11030 - else
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'
11033 - fi
11034 - ;;
11036 - solaris*)
11037 - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
11038 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
11039 - cat <<EOF 1>&2
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
11076 -EOF
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'
11080 - else
11081 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
11082 - fi
11083 - ;;
11084 +# Source file extension for f77 test sources.
11085 +ac_ext=f
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.
11093 +objext=o
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="\
11109 + subroutine t
11110 + return
11111 + end
11114 -_LT_EOF
11115 - ;;
11116 - *)
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'
11121 - else
11122 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
11123 - fi
11124 - ;;
11125 - esac
11126 - ;;
11127 + # Code to be used in simple link tests
11128 + lt_simple_link_test_code="\
11129 + program t
11130 + end
11133 - sunos4*)
11134 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11135 - wlarc=
11136 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
11137 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
11138 - ;;
11139 + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11140 + _LT_TAG_COMPILER
11142 - *)
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'
11146 - else
11147 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
11148 - fi
11149 - ;;
11150 - esac
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.
11156 + lt_save_CC="$CC"
11157 + lt_save_GCC=$GCC
11158 + CC=${F77-"f77"}
11159 + compiler=$CC
11160 + _LT_TAGVAR(compiler, $1)=$CC
11161 + _LT_CC_BASENAME([$compiler])
11162 + GCC=$G77
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
11168 - runpath_var=
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)=
11172 - fi
11173 - else
11174 - # PORTME fill in a description of your system's linker (not GNU ld)
11175 - case $host_os in
11176 - aix3*)
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
11187 - fi
11188 - ;;
11189 + AC_MSG_CHECKING([whether to build shared libraries])
11190 + test "$can_build_shared" = "no" && enable_shared=no
11192 - aix4* | aix5*)
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'
11198 - no_entry_flag=""
11199 - else
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'
11204 - else
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.
11208 + case $host_os in
11209 + aix3*)
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'
11214 + fi
11215 + ;;
11216 + aix[[4-9]]*)
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
11229 - break
11230 - fi
11231 - done
11232 - ;;
11233 - esac
11234 + ;;
11235 + esac
11236 + AC_MSG_RESULT([$enable_shared])
11238 - exp_sym_flag='-bexport'
11239 - no_entry_flag='-bnoentry'
11240 - fi
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)
11260 + _LT_CONFIG($1)
11261 + fi # test -n "$compiler"
11263 + GCC=$lt_save_GCC
11264 + CC="$lt_save_CC"
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.
11272 +AC_LANG_POP
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
11287 - then
11288 - # We have reworked collect2
11290 - else
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)=
11299 - fi
11300 - ;;
11301 - esac
11302 - shared_flag='-shared'
11303 - if test "$aix_use_runtimelinking" = yes; then
11304 - shared_flag="$shared_flag "'${wl}-G'
11305 - fi
11306 - else
11307 - # not using gcc
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:
11311 - shared_flag='-G'
11312 - else
11313 - if test "$aix_use_runtimelinking" = yes; then
11314 - shared_flag='${wl}-G'
11315 - else
11316 - shared_flag='${wl}-bM:SRE'
11317 - fi
11318 - fi
11319 - fi
11320 +# _LT_PROG_FC
11321 +# -----------
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])
11327 +AC_PROG_FC
11328 +if test -z "$FC" || test "X$FC" = "Xno"; then
11329 + _lt_disable_FC=yes
11331 +popdef([AC_MSG_ERROR])
11332 +])# _LT_PROG_FC
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"
11345 - else
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"
11350 - else
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'
11363 - fi
11364 - fi
11365 - ;;
11366 +dnl aclocal-1.4 backwards compatibility:
11367 +dnl AC_DEFUN([_LT_PROG_FC], [])
11369 - amigaos*)
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
11375 - ;;
11377 - bsdi[[45]]*)
11378 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
11379 - ;;
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.
11418 - libext=lib
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
11429 - ;;
11430 +# Source file extension for fc test sources.
11431 +ac_ext=${ac_fc_srcext-f}
11433 - darwin* | rhapsody*)
11434 - case $host_os in
11435 - rhapsody* | darwin1.[[012]])
11436 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
11437 - ;;
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'
11441 - else
11442 - case ${MACOSX_DEPLOYMENT_TARGET} in
11443 - 10.[[012]])
11444 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11445 - ;;
11446 - 10.*)
11447 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
11448 - ;;
11449 - esac
11450 - fi
11451 - ;;
11452 - esac
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}'
11466 - else
11467 - case $cc_basename in
11468 - xlc*)
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}'
11475 - ;;
11476 - *)
11477 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
11478 - ;;
11479 - esac
11480 - fi
11481 - ;;
11482 +# Object file extension for compiled fc test sources.
11483 +objext=o
11484 +_LT_TAGVAR(objext, $1)=$objext
11486 - dgux*)
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
11490 - ;;
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="\
11498 + subroutine t
11499 + return
11500 + end
11503 - freebsd1*)
11504 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
11505 - ;;
11506 + # Code to be used in simple link tests
11507 + lt_simple_link_test_code="\
11508 + program t
11509 + end
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
11515 - # extra space).
11516 - freebsd2.2*)
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
11521 - ;;
11522 + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11523 + _LT_TAG_COMPILER
11525 - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11526 - freebsd2*)
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
11531 - ;;
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.
11537 + lt_save_CC="$CC"
11538 + lt_save_GCC=$GCC
11539 + CC=${FC-"f95"}
11540 + compiler=$CC
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
11549 - ;;
11550 + _LT_TAGVAR(compiler, $1)=$CC
11551 + _LT_CC_BASENAME([$compiler])
11553 - hpux9*)
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'
11556 - else
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'
11558 - fi
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'
11570 - ;;
11571 + AC_MSG_CHECKING([whether to build shared libraries])
11572 + test "$can_build_shared" = "no" && enable_shared=no
11574 - hpux10*)
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'
11577 - else
11578 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11579 - fi
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.
11585 + case $host_os in
11586 + aix3*)
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'
11591 + fi
11592 + ;;
11593 + aix[[4-9]]*)
11594 + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11595 + test "$enable_shared" = yes && enable_static=no
11596 + fi
11597 + ;;
11598 + esac
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)
11623 + _LT_CONFIG($1)
11624 + fi # test -n "$compiler"
11626 + GCC=$lt_save_GCC
11627 + CC="$lt_save_CC"
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
11633 - fi
11634 - ;;
11635 +AC_LANG_POP
11636 +])# _LT_LANG_FC_CONFIG
11638 - hpux11*)
11639 - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11640 - case $host_cpu in
11641 - hppa*64*)
11642 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11643 - ;;
11644 - ia64*)
11645 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11646 - ;;
11647 - *)
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'
11649 - ;;
11650 - esac
11651 - else
11652 - case $host_cpu in
11653 - hppa*64*)
11654 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11655 - ;;
11656 - ia64*)
11657 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11658 - ;;
11659 - *)
11660 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11661 - ;;
11662 - esac
11663 - fi
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
11669 - hppa*64*|ia64*)
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
11673 - ;;
11674 - *)
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
11684 +AC_LANG_SAVE
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
11689 - ;;
11690 - esac
11691 - fi
11692 - ;;
11693 +# Source file extension for Java test sources.
11694 +ac_ext=java
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'
11699 - else
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'
11702 - fi
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
11706 - ;;
11707 +# Object file extension for compiled Java test sources.
11708 +objext=o
11709 +_LT_TAGVAR(objext, $1)=$objext
11711 - netbsd*)
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
11714 - else
11715 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11716 - fi
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
11720 - ;;
11721 +# Code to be used in simple compile tests
11722 +lt_simple_compile_test_code="class foo {}"
11724 - newsos6)
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
11730 - ;;
11731 +# Code to be used in simple link tests
11732 +lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
11734 - openbsd*)
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'
11743 - else
11744 - case $host_os in
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'
11748 - ;;
11749 - *)
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'
11752 - ;;
11753 - esac
11754 - fi
11755 - else
11756 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
11757 - fi
11758 - ;;
11759 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11760 +_LT_TAG_COMPILER
11762 - os2*)
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'
11768 - ;;
11769 +# save warnings/boilerplate of simple test code
11770 +_LT_COMPILER_BOILERPLATE
11771 +_LT_LINKER_BOILERPLATE
11773 - osf3*)
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'
11777 - else
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'
11780 - fi
11781 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
11782 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
11783 - ;;
11784 +# Allow CC to be a program name with arguments.
11785 +lt_save_CC="$CC"
11786 +lt_save_GCC=$GCC
11787 +GCC=yes
11788 +CC=${GCJ-"gcj"}
11789 +compiler=$CC
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'
11799 - else
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'
11809 - fi
11810 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
11811 - ;;
11812 +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
11814 - solaris*)
11815 - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
11816 - if test "$GCC" = yes; then
11817 - wlarc='${wl}'
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'
11821 - else
11822 - wlarc=''
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'
11826 - fi
11827 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
11828 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
11829 - case $host_os in
11830 - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
11831 - *)
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'
11838 - else
11839 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
11840 - fi
11841 - ;;
11842 - esac
11843 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
11844 - ;;
11845 +## CAVEAT EMPTOR:
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)
11857 - sunos4*)
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'
11862 - else
11863 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11864 - fi
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
11869 - ;;
11870 + _LT_CONFIG($1)
11873 - sysv4)
11874 - case $host_vendor in
11875 - sni)
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???
11878 - ;;
11879 - siemens)
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
11885 - ;;
11886 - motorola)
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
11889 - ;;
11890 - esac
11891 - runpath_var='LD_RUN_PATH'
11892 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
11893 - ;;
11894 +AC_LANG_RESTORE
11896 - sysv4.3*)
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'
11900 - ;;
11901 +GCC=$lt_save_GCC
11902 +CC="$lt_save_CC"
11903 +])# _LT_LANG_GCJ_CONFIG
11905 - sysv4*MP*)
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
11912 - fi
11913 - ;;
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
11927 +AC_LANG_SAVE
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'
11932 - else
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'
11935 - fi
11936 - ;;
11937 +# Source file extension for RC test sources.
11938 +ac_ext=rc
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
11946 - # as -z defs.
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.
11957 +objext=o
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'
11963 - else
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'
11966 - fi
11967 - ;;
11968 +# Code to be used in simple compile tests
11969 +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
11971 - uts4*)
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
11975 - ;;
11976 +# Code to be used in simple link tests
11977 +lt_simple_link_test_code="$lt_simple_compile_test_code"
11979 - *)
11980 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
11981 - ;;
11982 - esac
11983 - fi
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.
11988 +_LT_TAG_COMPILER
11991 -# Do we need to explicitly link libc?
11993 -case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
11994 -x|xyes)
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
12003 - *'~'*)
12004 - # FIXME: we may have to deal with multi-command sequences.
12005 - ;;
12006 - '$CC '*)
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])
12011 - $rm conftest*
12012 - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12013 +# Allow CC to be a program name with arguments.
12014 +lt_save_CC="$CC"
12015 +lt_save_GCC=$GCC
12016 +GCC=
12017 +CC=${RC-"windres"}
12018 +compiler=$CC
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
12024 - soname=conftest
12025 - lib=conftest
12026 - libobjs=conftest.$ac_objext
12027 - deplibs=
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
12031 - linker_flags=-v
12032 - verstring=
12033 - output_objdir=.
12034 - libname=conftest
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)
12038 - then
12039 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
12040 - else
12041 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
12042 - fi
12043 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
12044 - else
12045 - cat conftest.err 1>&5
12046 - fi
12047 - $rm conftest*
12048 - AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
12049 - ;;
12050 - esac
12051 - fi
12052 - ;;
12053 -esac
12054 -])# AC_LIBTOOL_PROG_LD_SHLIBS
12055 +if test -n "$compiler"; then
12057 + _LT_CONFIG($1)
12060 +GCC=$lt_save_GCC
12061 +AC_LANG_RESTORE
12062 +CC="$lt_save_CC"
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__
12078 -# # endif
12079 -# #endif
12081 -# #ifdef __cplusplus
12082 -# extern "C" {
12083 -# #endif
12084 -# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
12085 -# #ifdef __cplusplus
12086 -# }
12087 -# #endif
12089 -# #ifdef __CYGWIN__
12090 -# #include <cygwin/cygwin_dll.h>
12091 -# DECLARE_CYGWIN_DLL( DllMain );
12092 -# #endif
12093 -# HINSTANCE __hDllInstance_base;
12095 -# BOOL APIENTRY
12096 -# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
12097 -# {
12098 -# __hDllInstance_base = hInst;
12099 -# return TRUE;
12100 -# }
12101 -# /* ltdll.c ends here */
12102 -])# _LT_AC_FILE_LTDLL_C
12104 +# LT_PROG_GCJ
12105 +# -----------
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])])
12117 +# Old name:
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], [])
12123 -# old names
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)
12139 +# LT_PROG_RC
12140 +# ----------
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)
12148 +# Old name:
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.
12156 +# _LT_DECL_EGREP
12157 +# --------------
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
12168 +AC_SUBST([GREP])
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'
12177 -else
12178 - as_executable_p='test -f'
12180 -])])# _AS_TEST_PREPARE
12182 -# AS_EXECUTABLE_P
12183 -# ---------------
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
12190 +# _LT_DECL_SED
12191 +# ------------
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],
12195 +[AC_PROG_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])
12201 +])# _LT_DECL_SED
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 ############################################################
12210 -# LT_AC_PROG_SED
12211 -# --------------
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"
12228 done
12229 @@ -6585,4 +7045,266 @@
12230 SED=$lt_cv_path_SED
12231 AC_SUBST([SED])
12232 AC_MSG_RESULT([$SED])
12233 +])#AC_PROG_SED
12234 +])#m4_ifndef
12236 +# Old name:
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
12249 +xsi_shell=no
12250 +( _lt_dummy="a/b/c"
12251 + test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12252 + = c,a/b,, \
12253 + && eval 'test $(( 1 + 1 )) -eq 2 \
12254 + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12255 + && xsi_shell=yes
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
12268 + lt_unset=unset
12269 +else
12270 + lt_unset=false
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'
12280 + ;;
12281 + *) # EBCDIC based system
12282 + lt_SP2NL='tr \100 \n'
12283 + lt_NL2SP='tr \r\n \100\100'
12284 + ;;
12285 +esac
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
12296 + yes)
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.
12302 +func_dirname ()
12304 + case ${1} in
12305 + */*) func_dirname_result="${1%/*}${2}" ;;
12306 + * ) func_dirname_result="${3}" ;;
12307 + esac
12310 +# func_basename file
12311 +func_basename ()
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
12318 +# call:
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 ()
12330 + case ${1} in
12331 + */*) func_dirname_result="${1%/*}${2}" ;;
12332 + * ) func_dirname_result="${3}" ;;
12333 + esac
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).
12342 +func_stripname ()
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}"}
12351 +# func_opt_split
12352 +func_opt_split ()
12354 + func_opt_split_opt=${1%%=*}
12355 + func_opt_split_arg=${1#*=}
12358 +# func_lo2o object
12359 +func_lo2o ()
12361 + case ${1} in
12362 + *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
12363 + *) func_lo2o_result=${1} ;;
12364 + esac
12367 +# func_xform libobj-or-source
12368 +func_xform ()
12370 + func_xform_result=${1%.*}.lo
12373 +# func_arith arithmetic-term...
12374 +func_arith ()
12376 + func_arith_result=$(( $[*] ))
12379 +# func_len string
12380 +# STRING may not start with a hyphen.
12381 +func_len ()
12383 + func_len_result=${#1}
12386 +_LT_EOF
12387 + ;;
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.
12394 +func_dirname ()
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}"
12400 + else
12401 + func_dirname_result="$func_dirname_result${2}"
12402 + fi
12405 +# func_basename file
12406 +func_basename ()
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
12421 +func_stripname ()
12423 + case ${2} in
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}\$%%"`;;
12428 + esac
12431 +# sed scripts:
12432 +my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
12433 +my_sed_long_arg='1s/^-[[^=]]*=//'
12435 +# func_opt_split
12436 +func_opt_split ()
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
12443 +func_lo2o ()
12445 + func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
12448 +# func_xform libobj-or-source
12449 +func_xform ()
12451 + func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
12454 +# func_arith arithmetic-term...
12455 +func_arith ()
12457 + func_arith_result=`expr "$[@]"`
12460 +# func_len string
12461 +# STRING may not start with a hyphen.
12462 +func_len ()
12464 + func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
12467 +_LT_EOF
12468 +esac
12470 +case $lt_shell_append in
12471 + yes)
12472 + cat << \_LT_EOF >> "$cfgfile"
12474 +# func_append var value
12475 +# Append VALUE to the end of shell variable VAR.
12476 +func_append ()
12478 + eval "$[1]+=\$[2]"
12480 +_LT_EOF
12481 + ;;
12482 + *)
12483 + cat << \_LT_EOF >> "$cfgfile"
12485 +# func_append var value
12486 +# Append VALUE to the end of shell variable VAR.
12487 +func_append ()
12489 + eval "$[1]=\$$[1]\$[2]"
12492 +_LT_EOF
12493 + ;;
12494 + esac
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],
12517 - [],
12518 - [m4_define([AC_PROVIDE_IFELSE],
12519 - [m4_ifdef([AC_PROVIDE_$1],
12520 - [$2], [$3])])])
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
12561 -# AC_PROG_LIBTOOL
12562 -# ---------------
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
12570 - ])])
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
12575 -])])
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],
12602 + 63)])],
12603 + [$2])])
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],
12617 +[case `pwd` in
12618 + *\ * | *\ *)
12619 + AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
12620 +esac
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
12644 +dnl Parse OPTIONS
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
12660 +_LT_SETUP
12662 +# Only expand once:
12663 +m4_define([LT_INIT])
12664 +])# LT_INIT
12666 +# Old names:
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
12687 + case $cc_temp in
12688 + compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
12689 + distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
12690 + \-*) ;;
12691 + *) break;;
12692 + esac
12693 +done
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],
12703 +[: ${CP="cp -f"}
12704 +: ${MV="mv -f"}
12705 +: ${RM="rm -f"}
12706 +])# _LT_FILEUTILS_DEFAULTS
12709 +# _LT_SETUP
12710 +# ---------
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
12717 +dnl
12718 +_LT_DECL([], [build_alias], [0], [The build system])dnl
12719 +_LT_DECL([], [build], [0])dnl
12720 +_LT_DECL([], [build_os], [0])dnl
12721 +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
12729 +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
12741 +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
12762 -AC_LIBTOOL_OBJDIR
12763 +_LT_CHECK_OBJDIR
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
12770 case $host_os in
12771 aix3*)
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'
12794 -# Constants:
12795 -rm="rm -f"
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').
12804 libext=a
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"
12814 old_CC="$CC"
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
12841 - case $host_os in
12842 - openbsd*)
12843 - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
12844 - ;;
12845 - *)
12846 - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
12847 - ;;
12848 - esac
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
12857 file_magic*)
12858 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12859 - AC_PATH_MAGIC
12860 + _LT_PATH_MAGIC
12863 esac
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])
12875 +_LT_LANG_C_CONFIG
12876 +_LT_LANG_DEFAULT_CONFIG
12877 +_LT_CONFIG_COMMANDS
12878 +])# _LT_SETUP
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
12888 -tagname=
12889 -AC_LIBTOOL_LANG_C_CONFIG
12890 -_LT_AC_TAGCONFIG
12891 -])# AC_LIBTOOL_SETUP
12892 +# _LT_PROG_LTMAIN
12893 +# ---------------
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'
12916 +# label.
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],
12923 +[m4_ifval([$1],
12924 + [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
12925 + [$1
12926 +])])])
12928 +# Initialize.
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],
12936 +[m4_ifval([$1],
12937 + [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
12938 + [$1
12939 +])])])
12941 +# Initialize.
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],
12962 +[m4_ifval([$1], [
12963 +m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
12964 + [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
12965 +)])
12967 -# Allow CC to be a program name with arguments.
12968 -compiler=$CC
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
12977 - case $cc_temp in
12978 - compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
12979 - distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
12980 - \-*) ;;
12981 - *) break;;
12982 - esac
12983 -done
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])
13001 + m4_ifval([$4],
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`
13018 -$rm conftest*
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],
13035 +[m4_case([$#],
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`
13053 -$rm conftest*
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], [[, ]])),
13083 + m4_if([$2], [],
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/,/^$/ {
13105 - /^0/ {
13106 - s/^0 *\(.*\)$/\1/
13109 - }'
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"`
13114 -fi],[])
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)])
13133 -AC_DIVERT_POP
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}
13157 -case X$ECHO in
13158 -X*--fallback-echo)
13159 - # Remove one level of quotation (which was required for Make).
13160 - ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
13161 - ;;
13162 -esac
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
13171 -echo=${ECHO-echo}
13172 -if test "X[$]1" = X--no-reexec; then
13173 - # Discard the --no-reexec flag, and continue.
13174 - shift
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!
13181 -else
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
13188 - shift
13189 - cat <<EOF
13190 -[$]*
13191 -EOF
13192 - exit 0
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
13226 - then
13227 - break
13228 - fi
13229 - done
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
13246 -else
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
13260 - echo="$dir/echo"
13261 - break
13262 - fi
13263 - done
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.
13277 - echo='print -r'
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+"[$]@"}
13286 - else
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"
13301 - export 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"
13308 - else
13309 - # maybe with a smaller string...
13310 - prev=:
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
13314 - then
13315 - break
13316 - fi
13317 - prev="$cmd"
13318 - done
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+"[$]@"}
13327 - else
13328 - # Oops. We lost completely, so just stick with echo.
13329 - echo=echo
13330 - fi
13331 - fi
13332 - fi
13333 - fi
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.
13339 -ECHO=$echo
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
13365 -AC_SUBST(ECHO)
13366 -])])# _LT_AC_PROG_ECHO_BACKSLASH
13368 +# Initialize.
13369 +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
13372 -# _LT_AC_LOCK
13373 -# -----------
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.
13385 -case $host in
13386 -ia64-*-hpux*)
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
13391 - *ELF-32*)
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
13397 +LTCC='$LTCC'
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\\"\\\`\\\\\\""
13408 - *ELF-64*)
13409 - HPUX_IA64_MODE="64"
13410 + *)
13411 + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13413 esac
13414 - fi
13415 - rm -rf conftest*
13416 - ;;
13417 -*-*-irix6*)
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
13423 - *32-bit*)
13424 - LD="${LD-ld} -melf32bsmip"
13425 - ;;
13426 - *N32*)
13427 - LD="${LD-ld} -melf32bmipn32"
13428 +done
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\\"\\\`\\\\\\""
13437 - *64-bit*)
13438 - LD="${LD-ld} -melf64bmip"
13439 + *)
13440 + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13442 esac
13443 - else
13444 - case `/usr/bin/file conftest.$ac_objext` in
13445 - *32-bit*)
13446 - LD="${LD-ld} -32"
13447 - ;;
13448 - *N32*)
13449 - LD="${LD-ld} -n32"
13450 - ;;
13451 - *64-bit*)
13452 - LD="${LD-ld} -64"
13453 - ;;
13454 - esac
13455 - fi
13456 - fi
13457 - rm -rf conftest*
13458 - ;;
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
13466 - *32-bit*)
13467 - case $host in
13468 - x86_64-*kfreebsd*-gnu)
13469 - LD="${LD-ld} -m elf_i386_fbsd"
13470 - ;;
13471 - x86_64-*linux*)
13472 - LD="${LD-ld} -m elf_i386"
13473 - ;;
13474 - ppc64-*linux*|powerpc64-*linux*)
13475 - LD="${LD-ld} -m elf32ppclinux"
13476 - ;;
13477 - s390x-*linux*)
13478 - LD="${LD-ld} -m elf_s390"
13479 - ;;
13480 - sparc64-*linux*)
13481 - LD="${LD-ld} -m elf32_sparc"
13482 - ;;
13483 - esac
13484 - ;;
13485 - *64-bit*)
13486 - case $host in
13487 - x86_64-*kfreebsd*-gnu)
13488 - LD="${LD-ld} -m elf_x86_64_fbsd"
13489 - ;;
13490 - x86_64-*linux*)
13491 - LD="${LD-ld} -m elf_x86_64"
13492 - ;;
13493 - ppc*-*linux*|powerpc*-*linux*)
13494 - LD="${LD-ld} -m elf64ppc"
13495 - ;;
13496 - s390*-*linux*)
13497 - LD="${LD-ld} -m elf64_s390"
13498 - ;;
13499 - sparc*-*linux*)
13500 - LD="${LD-ld} -m elf64_sparc"
13501 - ;;
13502 - esac
13503 - ;;
13504 - esac
13505 - fi
13506 - rm -rf conftest*
13507 - ;;
13509 -*-*-sco3.2v5*)
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,
13514 - [AC_LANG_PUSH(C)
13515 - AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
13516 - AC_LANG_POP])
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"
13520 - fi
13521 - ;;
13522 -sparc*-*solaris*)
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
13527 - *64-bit*)
13528 - case $lt_cv_prog_gnu_ld in
13529 - yes*) LD="${LD-ld} -m elf64_sparc" ;;
13530 - *) LD="${LD-ld} -64" ;;
13531 - esac
13532 - ;;
13533 - esac
13534 - fi
13535 - rm -rf conftest*
13536 - ;;
13537 +done
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.
13545 +case \$lt_ECHO in
13546 +*'\\\[$]0 --fallback-echo"')dnl "
13547 + lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
13549 - ])
13550 esac
13552 -need_locks="$enable_libtool_lock"
13553 +_LT_OUTPUT_LIBTOOL_INIT
13556 -])# _LT_AC_LOCK
13558 +# LT_OUTPUT
13559 +# ---------
13560 +# This macro allows early generation of the libtool script (before
13561 +# AC_OUTPUT is called), incase it is used in configure for compilation
13562 +# tests.
13563 +AC_DEFUN([LT_OUTPUT],
13564 +[: ${CONFIG_LT=./config.lt}
13565 +AC_MSG_NOTICE([creating $CONFIG_LT])
13566 +cat >"$CONFIG_LT" <<_LTEOF
13567 +#! $SHELL
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}
13573 +_LTEOF
13575 +cat >>"$CONFIG_LT" <<\_LTEOF
13576 +AS_SHELL_SANITIZE
13577 +_AS_PREPARE
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],
13586 - [$2=no
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)
13601 - ac_status=$?
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
13610 - $2=yes
13611 - fi
13612 - fi
13613 - $rm conftest*
13615 +exec AS_MESSAGE_FD>&1
13616 +exec AS_MESSAGE_LOG_FD>>config.log
13618 + echo
13619 + AS_BOX([Running $as_me.])
13620 +} >&AS_MESSAGE_LOG_FD
13622 +lt_cl_help="\
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
13625 +generated.
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>."
13636 +lt_cl_version="\
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])
13647 -else
13648 - ifelse([$6], , :, [$6])
13650 -])# AC_LIBTOOL_COMPILER_OPTION
13651 +while test $[#] != 0
13653 + case $[1] in
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 )
13659 + debug=: ;;
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],
13673 - [$2=no
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
13686 - $2=yes
13687 - fi
13688 - else
13689 - $2=yes
13690 - fi
13691 - fi
13692 - $rm conftest*
13693 - LDFLAGS="$save_LDFLAGS"
13695 + *) AC_MSG_ERROR([unrecognized argument: $[1]
13696 +Try \`$[0] --help' for more information.]) ;;
13697 + esac
13698 + shift
13699 +done
13701 -if test x"[$]$2" = xyes; then
13702 - ifelse([$4], , :, [$4])
13703 -else
13704 - ifelse([$5], , :, [$5])
13705 +if $lt_cl_silent; then
13706 + exec AS_MESSAGE_FD>/dev/null
13708 -])# AC_LIBTOOL_LINKER_OPTION
13709 +_LTEOF
13711 +cat >>"$CONFIG_LT" <<_LTEOF
13712 +_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
13713 +_LTEOF
13715 +cat >>"$CONFIG_LT" <<\_LTEOF
13716 +AC_MSG_NOTICE([creating $ofile])
13717 +_LT_OUTPUT_LIBTOOL_COMMANDS
13718 +AS_EXIT(0)
13719 +_LTEOF
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
13727 + lt_cl_success=:
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)
13735 +])# LT_OUTPUT
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
13743 - i=0
13744 - teststring="ABCD"
13746 - case $build_os in
13747 - msdosdjgpp*)
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
13753 - ;;
13754 +# _LT_CONFIG(TAG)
13755 +# ---------------
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
13769 + fi
13771 - gnu*)
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;
13776 - ;;
13777 + cfgfile="${ofile}T"
13778 + trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13779 + $RM "$cfgfile"
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;
13790 - ;;
13791 + cat <<_LT_EOF >> "$cfgfile"
13792 +#! $SHELL
13794 - amigaos*)
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;
13798 - ;;
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.
13804 +_LT_COPYING
13805 +_LT_LIBTOOL_TAGS
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`
13813 - else
13814 - lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13815 - fi
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`
13819 - ;;
13820 +# ### BEGIN LIBTOOL CONFIG
13821 +_LT_LIBTOOL_CONFIG_VARS
13822 +_LT_LIBTOOL_TAG_VARS
13823 +# ### END LIBTOOL CONFIG
13825 - interix*)
13826 - # We know the value 262144 and hardcode it with a safety zone (like BSD)
13827 - lt_cv_sys_max_cmd_len=196608
13828 - ;;
13829 +_LT_EOF
13831 - osf*)
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 ;;
13841 - esac
13842 - fi
13843 - ;;
13844 - sco3.2v5*)
13845 - lt_cv_sys_max_cmd_len=102400
13846 - ;;
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/.*[[ ]]//'`
13851 - else
13852 - lt_cv_sys_max_cmd_len=32768
13853 - fi
13854 - ;;
13855 - *)
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`
13860 - else
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
13867 - do
13868 - i=`expr $i + 1`
13869 - teststring=$teststring$teststring
13870 - done
13871 - 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`
13876 - fi
13877 + case $host_os in
13878 + aix3*)
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
13884 + COLLECT_NAMES=
13885 + export COLLECT_NAMES
13887 +_LT_EOF
13889 esac
13891 -if test -n $lt_cv_sys_max_cmd_len ; then
13892 - AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
13893 -else
13894 - AC_MSG_RESULT(none)
13896 -])# AC_LIBTOOL_SYS_MAX_CMD_LEN
13898 + _LT_PROG_LTMAIN
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 :
13920 - [$4]
13921 -else
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)
13930 -#if HAVE_DLFCN_H
13931 -#include <dlfcn.h>
13932 -#endif
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
13945 +_LT_EOF
13946 +])dnl /m4_if
13948 +[m4_if([$1], [], [
13949 + PACKAGE='$PACKAGE'
13950 + VERSION='$VERSION'
13951 + TIMESTAMP='$TIMESTAMP'
13952 + RM='$RM'
13953 + ofile='$ofile'], [])
13954 +])dnl /_LT_CONFIG_SAVE_COMMANDS
13955 +])# _LT_CONFIG
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
13972 -#else
13973 -# ifdef DL_GLOBAL
13974 -# define LT_DLGLOBAL DL_GLOBAL
13975 -# else
13976 -# define LT_DLGLOBAL 0
13977 -# endif
13978 -#endif
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
13983 -# ifdef RTLD_LAZY
13984 -# define LT_DLLAZY_OR_NOW RTLD_LAZY
13985 -# else
13986 -# ifdef DL_LAZY
13987 -# define LT_DLLAZY_OR_NOW DL_LAZY
13988 -# else
13989 -# ifdef RTLD_NOW
13990 -# define LT_DLLAZY_OR_NOW RTLD_NOW
13991 -# else
13992 -# ifdef DL_NOW
13993 -# define LT_DLLAZY_OR_NOW DL_NOW
13994 -# else
13995 -# define LT_DLLAZY_OR_NOW 0
13996 -# endif
13997 -# endif
13998 -# endif
13999 -# endif
14000 -#endif
14001 +# LT_LANG(LANG)
14002 +# -------------
14003 +# Enable libtool support for the given language if not already enabled.
14004 +AC_DEFUN([LT_LANG],
14005 +[AC_BEFORE([$0], [LT_OUTPUT])dnl
14006 +m4_case([$1],
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],
14014 + [_LT_LANG($1)],
14015 + [m4_fatal([$0: unsupported language: "$1"])])])dnl
14016 +])# LT_LANG
14018 -#ifdef __cplusplus
14019 -extern "C" void exit (int);
14020 -#endif
14022 -void fnord() { int i=42;}
14023 -int main ()
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
14035 +])# _LT_LANG
14037 - if (self)
14039 - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14040 - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14041 - /* dlclose (self); */
14043 - else
14044 - puts (dlerror ());
14046 - exit (status);
14048 -EOF
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
14051 - lt_status=$?
14052 - case x$lt_status in
14053 - x$lt_dlno_uscore) $1 ;;
14054 - x$lt_dlneed_uscore) $2 ;;
14055 - x$lt_dlunknown|x*) $3 ;;
14056 - esac
14057 - else :
14058 - # compilation failed
14059 - $3
14060 - fi
14062 -rm -fr conftest*
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],
14068 + [LT_LANG(CXX)],
14069 + [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
14071 +AC_PROVIDE_IFELSE([AC_PROG_F77],
14072 + [LT_LANG(F77)],
14073 + [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
14075 +AC_PROVIDE_IFELSE([AC_PROG_FC],
14076 + [LT_LANG(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],
14082 + [LT_LANG(GCJ)],
14083 + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
14084 + [LT_LANG(GCJ)],
14085 + [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
14086 + [LT_LANG(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],
14095 + [LT_LANG(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
14119 -else
14120 - lt_cv_dlopen=no
14121 - lt_cv_dlopen_libs=
14122 +# _LT_TAG_COMPILER
14123 +# ----------------
14124 +m4_defun([_LT_TAG_COMPILER],
14125 +[AC_REQUIRE([AC_PROG_CC])dnl
14127 - case $host_os in
14128 - beos*)
14129 - lt_cv_dlopen="load_add_on"
14130 - lt_cv_dlopen_libs=
14131 - lt_cv_dlopen_self=yes
14132 - ;;
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
14138 - mingw* | pw32*)
14139 - lt_cv_dlopen="LoadLibrary"
14140 - lt_cv_dlopen_libs=
14141 - ;;
14142 +# If no C compiler was specified, use CC.
14143 +LTCC=${LTCC-"$CC"}
14145 - cygwin*)
14146 - lt_cv_dlopen="dlopen"
14147 - lt_cv_dlopen_libs=
14148 - ;;
14149 +# If no C compiler flags were specified, use CFLAGS.
14150 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14152 - darwin*)
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
14159 - ])
14160 - ;;
14161 +# Allow CC to be a program name with arguments.
14162 +compiler=$CC
14163 +])# _LT_TAG_COMPILER
14165 - *)
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"])
14178 - ])
14179 - ])
14180 - ])
14181 - ])
14182 - ])
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`
14194 +$RM conftest*
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`
14208 +$RM -r conftest*
14209 +])# _LT_LINKER_BOILERPLATE
14211 +# _LT_REQUIRED_DARWIN_CHECKS
14212 +# -------------------------
14213 +m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
14214 + case $host_os in
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
14238 + # link flags.
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
14245 + _lt_result=$?
14246 + if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14247 + lt_cv_apple_cc_single_mod=yes
14248 + else
14249 + cat conftest.err >&AS_MESSAGE_LOG_FD
14250 + fi
14251 + rm -rf libconftest.dylib*
14252 + rm -f conftest.*
14253 + fi])
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"
14264 + ])
14265 + case $host_os in
14266 + rhapsody* | darwin1.[[012]])
14267 + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14268 + darwin1.*)
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' ;;
14277 + 10.[[012]]*)
14278 + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14279 + 10.*)
14280 + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14281 + esac
14282 + ;;
14283 + esac
14284 + if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14285 + _lt_dar_single_mod='$single_module'
14286 + fi
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'
14289 + else
14290 + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14291 + fi
14292 + if test "$DSYMUTIL" != ":"; then
14293 + _lt_dsymutil='~$DSYMUTIL $lib || :'
14294 + else
14295 + _lt_dsymutil=
14296 + fi
14298 esac
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}"
14327 + fi
14328 +],[])
14329 else
14330 - enable_dlopen=no
14331 + _LT_TAGVAR(ld_shlibs, $1)=no
14335 - case $lt_cv_dlopen in
14336 - dlopen)
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/,/^$/ {
14352 + /^0/ {
14353 + s/^0 *\(.*\)$/\1/
14356 + }'
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"`
14361 +fi],[])
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)])
14377 +AC_DIVERT_POP
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)
14385 - ])
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)
14394 - ])
14395 - fi
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],
14401 +[_LT_SHELL_INIT([
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"
14408 - ;;
14409 - esac
14410 +case X$lt_ECHO in
14411 +X*--fallback-echo)
14412 + # Remove one level of quotation (which was required for Make).
14413 + ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
14414 + ;;
14415 +esac
14417 - case $lt_cv_dlopen_self in
14418 - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14419 - *) enable_dlopen_self=unknown ;;
14420 - esac
14421 +ECHO=${lt_ECHO-echo}
14422 +if test "X[$]1" = X--no-reexec; then
14423 + # Discard the --no-reexec flag, and continue.
14424 + shift
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!
14431 +else
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 ;;
14439 - esac
14440 +if test "X[$]1" = X--fallback-echo; then
14441 + # used as fallback echo
14442 + shift
14443 + cat <<_LT_EOF
14444 +[$]*
14445 +_LT_EOF
14446 + exit 0
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
14464 - mkdir conftest
14465 - cd conftest
14466 - mkdir out
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
14475 + then
14476 + break
14477 + fi
14478 + done
14479 + fi
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
14486 + else
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
14500 + ECHO="$dir/echo"
14501 + break
14502 + fi
14503 + done
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.
14512 + ECHO='print -r'
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+"[$]@"}
14521 + else
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"
14536 + export 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"
14543 + else
14544 + # maybe with a smaller string...
14545 + prev=:
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
14549 + then
14550 + break
14551 + fi
14552 + prev="$cmd"
14553 + done
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+"[$]@"}
14559 + else
14560 + # Oops. We lost completely, so just stick with echo.
14561 + ECHO=echo
14562 + fi
14563 + fi
14564 + fi
14565 + fi
14566 + fi
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.
14571 +lt_ECHO=$ECHO
14572 +if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
14573 + lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
14576 +AC_SUBST(lt_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
14584 +# _LT_ENABLE_LOCK
14585 +# ---------------
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.
14594 +case $host in
14595 +ia64-*-hpux*)
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
14600 + *ELF-32*)
14601 + HPUX_IA64_MODE="32"
14602 + ;;
14603 + *ELF-64*)
14604 + HPUX_IA64_MODE="64"
14605 + ;;
14606 + esac
14607 + fi
14608 + rm -rf conftest*
14609 + ;;
14610 +*-*-irix6*)
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
14616 + *32-bit*)
14617 + LD="${LD-ld} -melf32bsmip"
14618 + ;;
14619 + *N32*)
14620 + LD="${LD-ld} -melf32bmipn32"
14621 + ;;
14622 + *64-bit*)
14623 + LD="${LD-ld} -melf64bmip"
14624 + ;;
14625 + esac
14626 + else
14627 + case `/usr/bin/file conftest.$ac_objext` in
14628 + *32-bit*)
14629 + LD="${LD-ld} -32"
14630 + ;;
14631 + *N32*)
14632 + LD="${LD-ld} -n32"
14633 + ;;
14634 + *64-bit*)
14635 + LD="${LD-ld} -64"
14636 + ;;
14637 + esac
14638 + fi
14639 + fi
14640 + rm -rf conftest*
14641 + ;;
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
14649 + *32-bit*)
14650 + case $host in
14651 + x86_64-*kfreebsd*-gnu)
14652 + LD="${LD-ld} -m elf_i386_fbsd"
14653 + ;;
14654 + x86_64-*linux*)
14655 + LD="${LD-ld} -m elf_i386"
14656 + ;;
14657 + ppc64-*linux*|powerpc64-*linux*)
14658 + LD="${LD-ld} -m elf32ppclinux"
14659 + ;;
14660 + s390x-*linux*)
14661 + LD="${LD-ld} -m elf_s390"
14662 + ;;
14663 + sparc64-*linux*)
14664 + LD="${LD-ld} -m elf32_sparc"
14665 + ;;
14666 + esac
14667 + ;;
14668 + *64-bit*)
14669 + case $host in
14670 + x86_64-*kfreebsd*-gnu)
14671 + LD="${LD-ld} -m elf_x86_64_fbsd"
14672 + ;;
14673 + x86_64-*linux*)
14674 + LD="${LD-ld} -m elf_x86_64"
14675 + ;;
14676 + ppc*-*linux*|powerpc*-*linux*)
14677 + LD="${LD-ld} -m elf64ppc"
14678 + ;;
14679 + s390*-*linux*|s390*-*tpf*)
14680 + LD="${LD-ld} -m elf64_s390"
14681 + ;;
14682 + sparc*-*linux*)
14683 + LD="${LD-ld} -m elf64_sparc"
14684 + ;;
14685 + esac
14686 + ;;
14687 + esac
14688 + fi
14689 + rm -rf conftest*
14690 + ;;
14692 +*-*-sco3.2v5*)
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,
14697 + [AC_LANG_PUSH(C)
14698 + AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
14699 + AC_LANG_POP])
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"
14703 + fi
14704 + ;;
14705 +sparc*-*solaris*)
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
14710 + *64-bit*)
14711 + case $lt_cv_prog_gnu_ld in
14712 + yes*) LD="${LD-ld} -m elf64_sparc" ;;
14713 + *)
14714 + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14715 + LD="${LD-ld} -64"
14716 + fi
14717 + ;;
14718 + esac
14719 + ;;
14720 + esac
14721 + fi
14722 + rm -rf conftest*
14723 + ;;
14724 +esac
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
14754 + case $host_os in
14755 + openbsd*)
14756 + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14757 + ;;
14758 + *)
14759 + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14760 + ;;
14761 + esac
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],
14779 + [$2=no
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)
14795 ac_status=$?
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
14800 - then
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
14812 + $2=yes
14815 - chmod u+w . 2>&AS_MESSAGE_LOG_FD
14816 - $rm conftest*
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
14821 - cd ..
14822 - rmdir conftest
14823 - $rm conftest*
14824 + $RM conftest*
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])
14839 - hard_links=yes
14840 - $rm conftest*
14841 - ln conftest.a conftest.b 2>/dev/null && hard_links=no
14842 - touch conftest.a
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])
14848 - need_locks=warn
14849 - fi
14850 +if test x"[$]$2" = xyes; then
14851 + m4_if([$5], , :, [$5])
14852 else
14853 - need_locks=no
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
14868 -else
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
14875 +# Old name:
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],
14898 + [$2=no
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
14911 + $2=yes
14912 + fi
14913 + else
14914 + $2=yes
14915 + fi
14916 + fi
14917 + $RM -r conftest*
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
14930 - else
14931 - # We can link without hardcoding, and we can hardcode nonexisting dirs.
14932 - _LT_AC_TAGVAR(hardcode_action, $1)=immediate
14933 - fi
14934 +if test x"[$]$2" = xyes; then
14935 + m4_if([$4], , :, [$4])
14936 else
14937 - # We cannot hardcode anything, or else we can only hardcode existing
14938 - # directories.
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
14954 +# Old name:
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],
14963 -[striplib=
14964 -old_striplib=
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])
14970 -else
14971 -# FIXME - insert some real tests, host_os isn't really good enough
14972 - case $host_os in
14973 - darwin*)
14974 - if test -n "$STRIP" ; then
14975 - striplib="$STRIP -x"
14976 - old_striplib="$STRIP -S"
14977 - AC_MSG_RESULT([yes])
14978 - else
14979 - AC_MSG_RESULT([no])
14981 - ;;
14982 - *)
14983 - AC_MSG_RESULT([no])
14984 +# LT_CMD_MAX_LEN
14985 +#---------------
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
14991 + i=0
14992 + teststring="ABCD"
14994 + case $build_os in
14995 + msdosdjgpp*)
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
15002 - esac
15004 -])# AC_LIBTOOL_SYS_LIB_STRIP
15006 + gnu*)
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;
15011 + ;;
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'
15021 -soname_spec=
15022 -shrext_cmds=".so"
15023 -postinstall_cmds=
15024 -postuninstall_cmds=
15025 -finish_cmds=
15026 -finish_eval=
15027 -shlibpath_var=
15028 -shlibpath_overrides_runpath=unknown
15029 -version_type=none
15030 -dynamic_linker="$host_os ld.so"
15031 -sys_lib_dlsearch_path_spec="/lib /usr/lib"
15032 -m4_if($1,[],[
15033 -if test "$GCC" = yes; then
15034 - case $host_os in
15035 - darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
15036 - *) lt_awk_arg="/^libraries:/" ;;
15037 - esac
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'`
15045 - else
15046 - lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15047 - fi
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"
15055 - else
15056 - test -d "$lt_sys_path" && \
15057 - lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15058 - fi
15059 - done
15060 - lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
15061 -BEGIN {RS=" "; FS="/|\n";} {
15062 - lt_foo="";
15063 - lt_count=0;
15064 - for (lt_i = NF; lt_i > 0; lt_i--) {
15065 - if ($lt_i != "" && $lt_i != ".") {
15066 - if ($lt_i == "..") {
15067 - lt_count++;
15068 - } else {
15069 - if (lt_count == 0) {
15070 - lt_foo="/" $lt_i lt_foo;
15071 - } else {
15072 - lt_count--;
15077 - if (lt_foo != "") { lt_freq[[lt_foo]]++; }
15078 - if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
15079 -}'`
15080 - sys_lib_search_path_spec=`echo $lt_search_path_spec`
15081 -else
15082 - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15083 -fi])
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;
15095 + ;;
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
15100 + amigaos*)
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;
15104 + ;;
15106 -case $host_os in
15107 -aix3*)
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`
15117 + else
15118 + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
15119 + fi
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`
15123 + ;;
15125 - # AIX 3 has no versioning support, so we append a major version to the name.
15126 - soname_spec='${libname}${release}${shared_ext}$major'
15127 - ;;
15128 + interix*)
15129 + # We know the value 262144 and hardcode it with a safety zone (like BSD)
15130 + lt_cv_sys_max_cmd_len=196608
15131 + ;;
15133 -aix4* | aix5*)
15134 - version_type=linux
15135 - need_lib_prefix=no
15136 - need_version=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
15142 - else
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.
15148 - case $host_os in
15149 - aix4 | aix4.[[01]] | aix4.[[01]].*)
15150 - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15151 - echo ' yes '
15152 - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15154 - else
15155 - can_build_shared=no
15156 - fi
15157 - ;;
15158 - esac
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}'
15167 + osf*)
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 ;;
15177 + esac
15178 + fi
15179 + ;;
15180 + sco3.2v5*)
15181 + lt_cv_sys_max_cmd_len=102400
15182 + ;;
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/.*[[ ]]//'`
15187 else
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
15195 - fi
15196 - ;;
15197 + ;;
15198 + *)
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`
15203 + else
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
15208 + done
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
15212 + # we can't tell.
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
15216 + do
15217 + i=`expr $i + 1`
15218 + teststring=$teststring$teststring
15219 + done
15220 + # Only check the string length outside the loop.
15221 + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
15222 + teststring=
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`
15227 + fi
15228 + ;;
15229 + esac
15231 +if test -n $lt_cv_sys_max_cmd_len ; then
15232 + AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
15233 +else
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
15241 -amigaos*)
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'
15245 - ;;
15246 +# Old name:
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], [])
15251 -beos*)
15252 - library_names_spec='${libname}${shared_ext}'
15253 - dynamic_linker="$host_os ld.so"
15254 - shlibpath_var=LIBRARY_PATH
15255 - ;;
15257 -bsdi[[45]]*)
15258 - version_type=linux
15259 - need_version=no
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
15269 - ;;
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"
15279 - need_version=no
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~
15294 - $rm \$dlpath'
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 :
15302 + [$4]
15303 +else
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"
15310 - case $host_os in
15311 - cygwin*)
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"
15315 - ;;
15316 - mingw*)
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'`
15328 - else
15329 - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15330 - fi
15331 - ;;
15332 - pw32*)
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}'
15335 - ;;
15336 - esac
15337 - ;;
15338 +#if HAVE_DLFCN_H
15339 +#include <dlfcn.h>
15340 +#endif
15342 - *)
15343 - library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
15344 - ;;
15345 - esac
15346 - dynamic_linker='Win32 ld.exe'
15347 - # FIXME: first we should search . and the directory the executable is in
15348 - shlibpath_var=PATH
15349 - ;;
15350 +#include <stdio.h>
15352 -darwin* | rhapsody*)
15353 - dynamic_linker="$host_os dyld"
15354 - version_type=darwin
15355 - need_lib_prefix=no
15356 - need_version=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`'
15362 - m4_if([$1], [],[
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'
15365 - ;;
15366 +#ifdef RTLD_GLOBAL
15367 +# define LT_DLGLOBAL RTLD_GLOBAL
15368 +#else
15369 +# ifdef DL_GLOBAL
15370 +# define LT_DLGLOBAL DL_GLOBAL
15371 +# else
15372 +# define LT_DLGLOBAL 0
15373 +# endif
15374 +#endif
15376 -dgux*)
15377 - version_type=linux
15378 - need_lib_prefix=no
15379 - need_version=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
15383 - ;;
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
15387 +# ifdef RTLD_LAZY
15388 +# define LT_DLLAZY_OR_NOW RTLD_LAZY
15389 +# else
15390 +# ifdef DL_LAZY
15391 +# define LT_DLLAZY_OR_NOW DL_LAZY
15392 +# else
15393 +# ifdef RTLD_NOW
15394 +# define LT_DLLAZY_OR_NOW RTLD_NOW
15395 +# else
15396 +# ifdef DL_NOW
15397 +# define LT_DLLAZY_OR_NOW DL_NOW
15398 +# else
15399 +# define LT_DLLAZY_OR_NOW 0
15400 +# endif
15401 +# endif
15402 +# endif
15403 +# endif
15404 +#endif
15406 -freebsd1*)
15407 - dynamic_linker=no
15408 - ;;
15409 +#ifdef __cplusplus
15410 +extern "C" void exit (int);
15411 +#endif
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;}
15419 +int main ()
15421 + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15422 + int status = $lt_dlunknown;
15424 + if (self)
15426 + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15427 + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15428 + /* dlclose (self); */
15430 else
15431 - case $host_os in
15432 - freebsd[[123]]*) objformat=aout ;;
15433 - *) objformat=elf ;;
15434 + puts (dlerror ());
15436 + exit (status);
15438 +_LT_EOF
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
15441 + lt_status=$?
15442 + case x$lt_status in
15443 + x$lt_dlno_uscore) $1 ;;
15444 + x$lt_dlneed_uscore) $2 ;;
15445 + x$lt_dlunknown|x*) $3 ;;
15446 esac
15447 + else :
15448 + # compilation failed
15449 + $3
15451 - version_type=freebsd-$objformat
15452 - case $version_type in
15453 - freebsd-elf*)
15454 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15455 - need_version=no
15456 - need_lib_prefix=no
15457 - ;;
15458 - freebsd-*)
15459 - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15460 - need_version=yes
15461 - ;;
15462 - esac
15463 - shlibpath_var=LD_LIBRARY_PATH
15465 +rm -fr conftest*
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
15477 +else
15478 + lt_cv_dlopen=no
15479 + lt_cv_dlopen_libs=
15481 case $host_os in
15482 - freebsd2*)
15483 - shlibpath_overrides_runpath=yes
15484 - ;;
15485 - freebsd3.[[01]]* | freebsdelf3.[[01]]*)
15486 - shlibpath_overrides_runpath=yes
15487 - hardcode_into_libs=yes
15488 - ;;
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
15493 + beos*)
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
15502 + mingw* | pw32*)
15503 + lt_cv_dlopen="LoadLibrary"
15504 + lt_cv_dlopen_libs=
15506 - esac
15507 - ;;
15509 -gnu*)
15510 - version_type=linux
15511 - need_lib_prefix=no
15512 - need_version=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
15517 - ;;
15518 + cygwin*)
15519 + lt_cv_dlopen="dlopen"
15520 + lt_cv_dlopen_libs=
15521 + ;;
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
15528 - need_version=no
15529 - case $host_cpu in
15530 - ia64*)
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"
15540 - else
15541 - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15542 - fi
15543 - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15544 + darwin*)
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
15551 + ])
15553 - hppa*64*)
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
15563 - ;;
15564 - *)
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'
15572 + *)
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"])
15585 + ])
15586 + ])
15587 + ])
15588 + ])
15589 + ])
15591 esac
15592 - # HP-UX runs *really* slowly unless shared libraries are mode 555.
15593 - postinstall_cmds='chmod 555 $lib'
15594 - ;;
15596 -interix[[3-9]]*)
15597 - version_type=linux
15598 - need_lib_prefix=no
15599 - need_version=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
15606 - ;;
15607 + if test "x$lt_cv_dlopen" != xno; then
15608 + enable_dlopen=yes
15609 + else
15610 + enable_dlopen=no
15611 + fi
15613 -irix5* | irix6* | nonstopux*)
15614 - case $host_os in
15615 - nonstopux*) version_type=nonstopux ;;
15616 - *)
15617 - if test "$lt_cv_prog_gnu_ld" = yes; then
15618 - version_type=linux
15619 - else
15620 - version_type=irix
15621 - fi ;;
15622 - esac
15623 - need_lib_prefix=no
15624 - need_version=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}'
15627 - case $host_os in
15628 - irix5* | nonstopux*)
15629 - libsuff= shlibsuff=
15630 - ;;
15631 - *)
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;;
15640 - esac
15641 + case $lt_cv_dlopen in
15642 + dlopen)
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)
15657 + ])
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)
15666 + ])
15667 + fi
15669 + CPPFLAGS="$save_CPPFLAGS"
15670 + LDFLAGS="$save_LDFLAGS"
15671 + LIBS="$save_LIBS"
15673 esac
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
15679 - ;;
15681 -# No shared lib support for Linux oldld, aout, or coff.
15682 -linux*oldld* | linux*aout* | linux*coff*)
15683 - dynamic_linker=no
15684 - ;;
15685 + case $lt_cv_dlopen_self in
15686 + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15687 + *) enable_dlopen_self=unknown ;;
15688 + esac
15690 -# This must be Linux ELF.
15691 -linux* | k*bsd*-gnu)
15692 - version_type=linux
15693 - need_lib_prefix=no
15694 - need_version=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 ;;
15707 + esac
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
15717 +# Old name:
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"
15726 - fi
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'
15735 - ;;
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
15748 + mkdir conftest
15749 + cd conftest
15750 + mkdir out
15751 + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15753 -netbsd*)
15754 - version_type=sunos
15755 - need_lib_prefix=no
15756 - need_version=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'
15761 - else
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'
15765 - fi
15766 - shlibpath_var=LD_LIBRARY_PATH
15767 - shlibpath_overrides_runpath=yes
15768 - hardcode_into_libs=yes
15769 - ;;
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)
15781 + ac_status=$?
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
15785 + then
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
15792 + fi
15793 + fi
15794 + chmod u+w . 2>&AS_MESSAGE_LOG_FD
15795 + $RM conftest*
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
15800 + cd ..
15801 + $RM -r conftest
15802 + $RM conftest*
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
15808 -newsos6)
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
15813 - ;;
15815 -nto-qnx*)
15816 - version_type=linux
15817 - need_lib_prefix=no
15818 - need_version=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
15823 - ;;
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])
15832 -openbsd*)
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.
15837 - case $host_os in
15838 - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15839 - *) need_version=no ;;
15840 - esac
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
15845 - case $host_os in
15846 - openbsd2.[[89]] | openbsd2.[[89]].*)
15847 - shlibpath_overrides_runpath=no
15848 - ;;
15849 - *)
15850 - shlibpath_overrides_runpath=yes
15851 - ;;
15852 - esac
15853 - else
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])
15859 + hard_links=yes
15860 + $RM conftest*
15861 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
15862 + touch conftest.a
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])
15868 + need_locks=warn
15870 - ;;
15871 +else
15872 + need_locks=no
15874 +_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
15875 +])# _LT_COMPILER_FILE_LOCKS
15877 -os2*)
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
15884 - ;;
15886 -osf3* | osf4* | osf5*)
15887 - version_type=osf
15888 - need_lib_prefix=no
15889 - need_version=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"
15895 - ;;
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
15904 +else
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
15917 -rdos*)
15918 - dynamic_linker=no
15919 - ;;
15921 -solaris*)
15922 - version_type=linux
15923 - need_lib_prefix=no
15924 - need_version=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'
15932 - ;;
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
15943 -sunos4*)
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
15960 + else
15961 + # We can link without hardcoding, and we can hardcode nonexisting dirs.
15962 + _LT_TAGVAR(hardcode_action, $1)=immediate
15964 - need_version=yes
15965 - ;;
15966 +else
15967 + # We cannot hardcode anything, or else we can only hardcode existing
15968 + # directories.
15969 + _LT_TAGVAR(hardcode_action, $1)=unsupported
15971 +AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
15973 -sysv4 | sysv4.3*)
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
15979 - sni)
15980 - shlibpath_overrides_runpath=no
15981 - need_lib_prefix=no
15982 - export_dynamic_flag_spec='${wl}-Blargedynsym'
15983 - runpath_var=LD_RUN_PATH
15984 - ;;
15985 - siemens)
15986 - need_lib_prefix=no
15987 - ;;
15988 - motorola)
15989 - need_lib_prefix=no
15990 - need_version=no
15991 - shlibpath_overrides_runpath=no
15992 - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15993 - ;;
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])
16012 +striplib=
16013 +old_striplib=
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])
16019 +else
16020 +# FIXME - insert some real tests, host_os isn't really good enough
16021 + case $host_os in
16022 + darwin*)
16023 + if test -n "$STRIP" ; then
16024 + striplib="$STRIP -x"
16025 + old_striplib="$STRIP -S"
16026 + AC_MSG_RESULT([yes])
16027 + else
16028 + AC_MSG_RESULT([no])
16029 + fi
16030 + ;;
16031 + *)
16032 + AC_MSG_RESULT([no])
16033 + ;;
16034 esac
16035 - ;;
16037 +_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
16038 +_LT_DECL([], [striplib], [1])
16039 +])# _LT_CMD_STRIPLIB
16041 -sysv4*MP*)
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])
16057 +m4_if([$1],
16058 + [], [
16059 +if test "$GCC" = yes; then
16060 + case $host_os in
16061 + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16062 + *) lt_awk_arg="/^libraries:/" ;;
16063 + esac
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'`
16071 + else
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"
16081 + else
16082 + test -d "$lt_sys_path" && \
16083 + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16084 + fi
16085 + done
16086 + lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
16087 +BEGIN {RS=" "; FS="/|\n";} {
16088 + lt_foo="";
16089 + lt_count=0;
16090 + for (lt_i = NF; lt_i > 0; lt_i--) {
16091 + if ($lt_i != "" && $lt_i != ".") {
16092 + if ($lt_i == "..") {
16093 + lt_count++;
16094 + } else {
16095 + if (lt_count == 0) {
16096 + lt_foo="/" $lt_i lt_foo;
16097 + } else {
16098 + lt_count--;
16103 + if (lt_foo != "") { lt_freq[[lt_foo]]++; }
16104 + if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
16105 +}'`
16106 + sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
16107 +else
16108 + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16109 +fi])
16110 +library_names_spec=
16111 +libname_spec='lib$name'
16112 +soname_spec=
16113 +shrext_cmds=".so"
16114 +postinstall_cmds=
16115 +postuninstall_cmds=
16116 +finish_cmds=
16117 +finish_eval=
16118 +shlibpath_var=
16119 +shlibpath_overrides_runpath=unknown
16120 +version_type=none
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
16130 +case $host_os in
16131 +aix3*)
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
16142 +aix[[4-9]]*)
16143 + version_type=linux
16144 need_lib_prefix=no
16145 need_version=no
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
16157 else
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.
16165 case $host_os in
16166 - sco3.2v5*)
16167 - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16168 - ;;
16169 + aix4 | aix4.[[01]] | aix4.[[01]].*)
16170 + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16171 + echo ' yes '
16172 + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16174 + else
16175 + can_build_shared=no
16176 + fi
16177 + ;;
16178 esac
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}'
16187 + else
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'
16192 + fi
16193 + shlibpath_var=LIBPATH
16195 - sys_lib_dlsearch_path_spec='/usr/lib'
16198 -uts4*)
16199 +amigaos*)
16200 + case $host_cpu in
16201 + powerpc)
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}'
16205 + ;;
16206 + m68k)
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'
16210 + ;;
16211 + esac
16212 + ;;
16214 +beos*)
16215 + library_names_spec='${libname}${shared_ext}'
16216 + dynamic_linker="$host_os ld.so"
16217 + shlibpath_var=LIBRARY_PATH
16218 + ;;
16220 +bsdi[[45]]*)
16221 version_type=linux
16222 + need_version=no
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
16236 - ;;
16237 -esac
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"
16249 + need_version=no
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 \$?;
16264 + fi'
16265 + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16266 + dlpath=$dir/\$dldll~
16267 + $RM \$dlpath'
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])
16282 - fi
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])
16288 - else
16289 - AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
16290 - fi
16291 - fi
16292 - if test -z "$LTCFLAGS"; then
16293 - eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
16294 - fi
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
16305 - "") ;;
16306 - *) AC_MSG_ERROR([invalid tag name: $tagname])
16307 - ;;
16308 + case $host_os in
16309 + cygwin*)
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"
16313 + ;;
16314 + mingw*)
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'`
16326 + else
16327 + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16328 + fi
16329 + ;;
16330 + pw32*)
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}'
16333 + ;;
16334 esac
16335 + ;;
16337 - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
16338 - then
16339 - AC_MSG_ERROR([tag name \"$tagname\" already exists])
16340 - fi
16342 - # Update the list of available tags.
16343 - if test -n "$tagname"; then
16344 - echo appending configuration tag \"$tagname\" to $ofile
16346 - case $tagname in
16347 - CXX)
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
16352 - else
16353 - tagname=""
16354 - fi
16355 - ;;
16357 - F77)
16358 - if test -n "$F77" && test "X$F77" != "Xno"; then
16359 - AC_LIBTOOL_LANG_F77_CONFIG
16360 - else
16361 - tagname=""
16362 - fi
16363 - ;;
16365 - GCJ)
16366 - if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16367 - AC_LIBTOOL_LANG_GCJ_CONFIG
16368 - else
16369 - tagname=""
16370 - fi
16371 - ;;
16372 + *)
16373 + library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
16374 + ;;
16375 + esac
16376 + dynamic_linker='Win32 ld.exe'
16377 + # FIXME: first we should search . and the directory the executable is in
16378 + shlibpath_var=PATH
16379 + ;;
16381 - RC)
16382 - AC_LIBTOOL_LANG_RC_CONFIG
16383 - ;;
16384 +darwin* | rhapsody*)
16385 + dynamic_linker="$host_os dyld"
16386 + version_type=darwin
16387 + need_lib_prefix=no
16388 + need_version=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`'
16394 +m4_if([$1], [],[
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'
16397 + ;;
16399 - *)
16400 - AC_MSG_ERROR([Unsupported tag name: $tagname])
16401 - ;;
16402 - esac
16403 +dgux*)
16404 + version_type=linux
16405 + need_lib_prefix=no
16406 + need_version=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
16410 + ;;
16412 - # Append the new tag name to the list of available tags.
16413 - if test -n "$tagname" ; then
16414 - available_tags="$available_tags $tagname"
16415 - fi
16416 - fi
16417 - done
16418 - IFS="$lt_save_ifs"
16419 +freebsd1*)
16420 + dynamic_linker=no
16421 + ;;
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`
16432 else
16433 - rm -f "${ofile}T"
16434 - AC_MSG_ERROR([unable to update list of available tagged configurations.])
16435 + case $host_os in
16436 + freebsd[[123]]*) objformat=aout ;;
16437 + *) objformat=elf ;;
16438 + esac
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 ;;
16473 - *)
16474 - 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
16481 - fi
16482 - done
16483 - IFS="$lt_save_ifs"
16484 + version_type=freebsd-$objformat
16485 + case $version_type in
16486 + freebsd-elf*)
16487 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16488 + need_version=no
16489 + need_lib_prefix=no
16490 + ;;
16491 + freebsd-*)
16492 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16493 + need_version=yes
16495 - esac],
16496 - [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
16497 -])# AC_ENABLE_SHARED
16498 + esac
16499 + shlibpath_var=LD_LIBRARY_PATH
16500 + case $host_os in
16501 + freebsd2*)
16502 + shlibpath_overrides_runpath=yes
16503 + ;;
16504 + freebsd3.[[01]]* | freebsdelf3.[[01]]*)
16505 + shlibpath_overrides_runpath=yes
16506 + hardcode_into_libs=yes
16507 + ;;
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
16512 + ;;
16513 + *) # from 4.6 on, and DragonFly
16514 + shlibpath_overrides_runpath=yes
16515 + hardcode_into_libs=yes
16516 + ;;
16517 + esac
16518 + ;;
16520 +gnu*)
16521 + version_type=linux
16522 + need_lib_prefix=no
16523 + need_version=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
16528 + ;;
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
16542 + need_version=no
16543 + case $host_cpu in
16544 + ia64*)
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"
16554 + else
16555 + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16556 + fi
16557 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16558 + ;;
16559 + hppa*64*)
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
16569 + ;;
16570 + *)
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'
16577 + ;;
16578 + esac
16579 + # HP-UX runs *really* slowly unless shared libraries are mode 555.
16580 + postinstall_cmds='chmod 555 $lib'
16581 + ;;
16583 +interix[[3-9]]*)
16584 + version_type=linux
16585 + need_lib_prefix=no
16586 + need_version=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
16593 + ;;
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*)
16609 + case $host_os in
16610 + nonstopux*) version_type=nonstopux ;;
16612 - enable_static=no
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
16619 - fi
16620 - done
16621 - IFS="$lt_save_ifs"
16622 - ;;
16623 - esac],
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
16628 + else
16629 + version_type=irix
16630 + fi ;;
16631 + esac
16632 + need_lib_prefix=no
16633 + need_version=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}'
16636 + case $host_os in
16637 + irix5* | nonstopux*)
16638 + libsuff= shlibsuff=
16639 + ;;
16640 + *)
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;;
16649 + esac
16650 + ;;
16651 + esac
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
16657 + ;;
16659 +# No shared lib support for Linux oldld, aout, or coff.
16660 +linux*oldld* | linux*aout* | linux*coff*)
16661 + dynamic_linker=no
16662 + ;;
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
16675 + need_version=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 ;;
16710 - *)
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
16718 - fi
16719 - done
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"
16725 + fi
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'
16734 + ;;
16736 +netbsd*)
16737 + version_type=sunos
16738 + need_lib_prefix=no
16739 + need_version=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'
16744 + else
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'
16748 + fi
16749 + shlibpath_var=LD_LIBRARY_PATH
16750 + shlibpath_overrides_runpath=yes
16751 + hardcode_into_libs=yes
16752 + ;;
16754 +newsos6)
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
16759 + ;;
16761 +*nto* | *qnx*)
16762 + version_type=qnx
16763 + need_lib_prefix=no
16764 + need_version=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'
16771 + ;;
16773 +openbsd*)
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.
16778 + case $host_os in
16779 + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16780 + *) need_version=no ;;
16781 + esac
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
16786 + case $host_os in
16787 + openbsd2.[[89]] | openbsd2.[[89]].*)
16788 + shlibpath_overrides_runpath=no
16789 + ;;
16790 + *)
16791 + shlibpath_overrides_runpath=yes
16792 + ;;
16793 + esac
16794 + else
16795 + shlibpath_overrides_runpath=yes
16796 + fi
16797 + ;;
16799 +os2*)
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
16806 + ;;
16808 +osf3* | osf4* | osf5*)
16809 + version_type=osf
16810 + need_lib_prefix=no
16811 + need_version=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"
16817 + ;;
16819 +rdos*)
16820 + dynamic_linker=no
16821 + ;;
16823 +solaris*)
16824 + version_type=linux
16825 + need_lib_prefix=no
16826 + need_version=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'
16834 + ;;
16836 +sunos4*)
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
16844 + fi
16845 + need_version=yes
16846 + ;;
16848 +sysv4 | sysv4.3*)
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
16854 + sni)
16855 + shlibpath_overrides_runpath=no
16856 + need_lib_prefix=no
16857 + runpath_var=LD_RUN_PATH
16858 + ;;
16859 + siemens)
16860 + need_lib_prefix=no
16861 + ;;
16862 + motorola)
16863 + need_lib_prefix=no
16864 + need_version=no
16865 + shlibpath_overrides_runpath=no
16866 + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16868 - esac],
16869 - [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
16870 -])# AC_ENABLE_FAST_INSTALL
16871 + esac
16872 + ;;
16874 +sysv4*MP*)
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
16880 + fi
16881 + ;;
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
16893 + need_version=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'
16901 + else
16902 + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16903 + case $host_os in
16904 + sco3.2v5*)
16905 + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16906 + ;;
16907 + esac
16908 + fi
16909 + sys_lib_dlsearch_path_spec='/usr/lib'
16910 + ;;
16912 +tpf*)
16913 + # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16914 + version_type=linux
16915 + need_lib_prefix=no
16916 + need_version=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
16921 + ;;
16923 +uts4*)
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
16928 + ;;
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
16940 + ;;
16941 +esac
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"
16957 -# AC_PROG_EGREP
16958 -# -------------
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'
16966 - fi])
16967 - EGREP=$ac_cv_prog_egrep
16968 - AC_SUBST([EGREP])
16969 -])])
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
16995 + not shown]])
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
17024 IFS="$lt_save_ifs"
17025 test -z "$ac_dir" && ac_dir=.
17026 @@ -2115,7 +2755,7 @@
17027 $EGREP "$file_magic_regex" > /dev/null; then
17029 else
17030 - cat <<EOF 1>&2
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
17039 -EOF
17040 +_LT_EOF
17041 fi ;;
17042 esac
17044 @@ -2143,37 +2783,47 @@
17045 else
17046 AC_MSG_RESULT(no)
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
17053 +# Old name:
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], [])
17058 -# AC_PATH_MAGIC
17059 -# -------------
17061 +# _LT_PATH_MAGIC
17062 +# --------------
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)
17072 else
17073 MAGIC_CMD=:
17076 -])# AC_PATH_MAGIC
17077 +])# _LT_PATH_MAGIC
17080 -# AC_PROG_LD
17081 +# LT_PATH_LD
17082 # ----------
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
17105 ac_prog=ld
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%/%"`
17118 done
17119 test -z "$LD" && LD="$ac_prog"
17121 @@ -2242,15 +2892,24 @@
17122 AC_MSG_RESULT(no)
17124 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
17125 -AC_PROG_LD_GNU
17126 -])# AC_PROG_LD
17127 +_LT_PATH_LD_GNU
17128 +AC_SUBST([LD])
17130 +_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
17131 +])# LT_PATH_LD
17133 -# AC_PROG_LD_GNU
17134 -# --------------
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,
17138 +# Old names:
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], [])
17146 +# _LT_PATH_LD_GNU
17147 +#- --------------
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 @@
17155 esac])
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 -# ----------------------
17163 +# _LT_CMD_RELOAD
17164 +# --------------
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 @@
17175 esac
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.
17199 case $host_os in
17200 -aix4* | aix5*)
17201 +aix[[4-9]]*)
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
17211 case $host_cpu in
17212 i*86 )
17213 # Not sure whether the presence of OpenBSD here was a mistake.
17214 @@ -2408,7 +3070,7 @@
17217 netbsd*)
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)$'
17221 else
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
17227 -nto-qnx*)
17228 - lt_cv_deplibs_check_method=unknown
17229 +*nto* | *qnx*)
17230 + lt_cv_deplibs_check_method=pass_all
17233 openbsd*)
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)$'
17237 else
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
17245 + ;;
17247 sysv4 | sysv4.3*)
17248 case $host_vendor in
17249 motorola)
17250 @@ -2472,7 +3138,7 @@
17251 esac
17254 -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17255 +tpf*)
17256 lt_cv_deplibs_check_method=pass_all
17258 esac
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
17271 -# AC_PROG_NM
17273 +# LT_PATH_NM
17274 # ----------
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 @@
17286 done
17287 IFS="$lt_save_ifs"
17288 done
17289 - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
17290 + : ${lt_cv_path_NM=no}
17291 fi])
17292 -NM="$lt_cv_path_NM"
17293 -])# AC_PROG_NM
17294 +if test "$lt_cv_path_NM" != "no"; then
17295 + NM="$lt_cv_path_NM"
17296 +else
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
17301 + NM="$DUMPBIN"
17302 + fi
17304 +test -z "$NM" && NM=nm
17305 +AC_SUBST([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"
17321 + fi
17322 + rm -f conftest*])
17323 +])# LT_PATH_NM
17325 +# Old names:
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], [])
17332 -# AC_CHECK_LIBM
17333 -# -------------
17335 +# LT_LIB_M
17336 +# --------
17337 # check for math library
17338 -AC_DEFUN([AC_CHECK_LIBM],
17339 +AC_DEFUN([LT_LIB_M],
17340 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
17341 LIBM=
17342 case $host in
17343 @@ -2553,3986 +3260,3739 @@
17344 AC_CHECK_LIB(m, cos, LIBM="-lm")
17346 esac
17347 -])# AC_CHECK_LIBM
17348 +AC_SUBST([LIBM])
17349 +])# LT_LIB_M
17351 +# Old name:
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
17366 -# the Makefiles.
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" ;;
17373 - esac
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])
17403 - else
17404 - enable_ltdl_install=yes
17405 - fi
17406 - ])
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'])
17411 - else
17412 - ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
17413 - LIBLTDL="-lltdl"
17414 - LTDLINCL=
17415 - fi
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'
17424 -# AC_LIBTOOL_CXX
17425 -# --------------
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
17440 -# _LT_AC_LANG_CXX
17441 -# ---------------
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
17469 - AC_PROG_CXXCPP
17471 -])# _LT_AC_PROG_CXXCPP
17473 -# AC_LIBTOOL_F77
17474 -# --------------
17475 -# enable support for Fortran 77 libraries
17476 -AC_DEFUN([AC_LIBTOOL_F77],
17477 -[AC_REQUIRE([_LT_AC_LANG_F77])
17478 -])# AC_LIBTOOL_F77
17481 -# _LT_AC_LANG_F77
17482 -# ---------------
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
17489 -# AC_LIBTOOL_GCJ
17490 -# --------------
17491 -# enable support for GCJ libraries
17492 -AC_DEFUN([AC_LIBTOOL_GCJ],
17493 -[AC_REQUIRE([_LT_AC_LANG_GCJ])
17494 -])# AC_LIBTOOL_GCJ
17497 -# _LT_AC_LANG_GCJ
17498 -# ---------------
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
17510 -# AC_LIBTOOL_RC
17511 -# -------------
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])
17516 -])# AC_LIBTOOL_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],
17526 -[lt_save_CC="$CC"
17527 -AC_LANG_PUSH(C)
17529 -# Source file extension for C test sources.
17530 -ac_ext=c
17532 -# Object file extension for compiled C test sources.
17533 -objext=o
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?!! ;)]
17550 -## CAVEAT EMPTOR:
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.
17578 case $host_os in
17579 -aix3*)
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'
17584 - fi
17585 +aix*)
17586 + symcode='[[BCDT]]'
17589 -aix4* | aix5*)
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]]'
17594 + ;;
17595 +hpux*)
17596 + if test "$host_cpu" = ia64; then
17597 + symcode='[[ABCDEGRST]]'
17599 - ;;
17600 + ;;
17601 +irix* | nonstopux*)
17602 + symcode='[[BCDEGRST]]'
17603 + ;;
17604 +osf*)
17605 + symcode='[[BCDEGQRST]]'
17606 + ;;
17607 +solaris*)
17608 + symcode='[[BDRT]]'
17609 + ;;
17610 +sco3.2v5*)
17611 + symcode='[[DT]]'
17612 + ;;
17613 +sysv4.2uw2*)
17614 + symcode='[[DT]]'
17615 + ;;
17616 +sysv5* | sco5v6* | unixware* | OpenUNIX*)
17617 + symcode='[[ABDT]]'
17618 + ;;
17619 +sysv4)
17620 + symcode='[[DFNSTU]]'
17621 + ;;
17622 esac
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)
17632 -AC_LANG_POP
17633 -CC="$lt_save_CC"
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]]' ;;
17671 +esac
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.
17685 -ac_ext=cpp
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.
17691 -objext=o
17692 -_LT_AC_TAGVAR(objext, $1)=$objext
17693 +# Handle CRLF in mingw tool chain
17694 +opt_cr=
17695 +case $build_os in
17696 +mingw*)
17697 + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
17698 + ;;
17699 +esac
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]"
17730 + else
17731 + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
17732 + fi
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.
17738 + pipe_works=no
17740 -# Allow CC to be a program name with arguments.
17741 -lt_save_CC=$CC
17742 -lt_save_LD=$LD
17743 -lt_save_GCC=$GCC
17744 -GCC=$GXX
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
17749 -else
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
17754 -else
17755 - $as_unset lt_cv_path_LD
17757 -test -z "${LDCXX+set}" || LD=$LDCXX
17758 -CC=${CXX-"c++"}
17759 -compiler=$CC
17760 -_LT_AC_TAGVAR(compiler, $1)=$CC
17761 -_LT_CC_BASENAME([$compiler])
17762 + rm -f conftest*
17763 + cat > conftest.$ac_ext <<_LT_EOF
17764 +#ifdef __cplusplus
17765 +extern "C" {
17766 +#endif
17767 +char nm_test_var;
17768 +void nm_test_func(void);
17769 +void nm_test_func(void){}
17770 +#ifdef __cplusplus
17772 +#endif
17773 +int main(){nm_test_var='a';nm_test_func();return(0);}
17774 +_LT_EOF
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'
17780 -else
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"
17790 + else
17791 + rm -f "$nlist"T
17792 + fi
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
17801 +extern "C" {
17802 +#endif
17804 - AC_PROG_LD
17805 +_LT_EOF
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. */
17819 +const struct {
17820 + const char *name;
17821 + void *address;
17823 +lt__PROGRAM__LTX_preloaded_symbols[[]] =
17825 + { "@PROGRAM@", (void *) 0 },
17826 +_LT_EOF
17827 + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
17828 + cat <<\_LT_EOF >> conftest.$ac_ext
17829 + {0, (void *) 0}
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)
17835 - wlarc='${wl}'
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;
17841 +#endif
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
17849 +#endif
17850 +_LT_EOF
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
17858 + pipe_works=yes
17859 + fi
17860 + LIBS="$lt_save_LIBS"
17861 + CFLAGS="$lt_save_CFLAGS"
17862 + else
17863 + echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
17864 + fi
17865 + else
17866 + echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
17867 + fi
17868 else
17869 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
17870 + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
17872 else
17873 - with_gnu_ld=no
17874 - wlarc=
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
17894 + break
17895 + else
17896 + lt_cv_sys_global_symbol_pipe=
17897 + fi
17898 +done
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)
17905 else
17906 - GXX=no
17907 - with_gnu_ld=no
17908 - wlarc=
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
17915 -case $host_os in
17916 - aix3*)
17917 - # FIXME: insert proper C++ library support
17918 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
17919 - ;;
17920 - aix4* | aix5*)
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'
17926 - no_entry_flag=""
17927 - else
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
17946 - case $ld_flag in
17947 - *-brtl*)
17948 - aix_use_runtimelinking=yes
17949 - break
17950 - ;;
17951 - esac
17952 - done
17953 - ;;
17954 - esac
17956 - exp_sym_flag='-bexport'
17957 - no_entry_flag='-bnoentry'
17958 - fi
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
17991 - then
17992 - # We have reworked collect2
17994 - else
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)=
18003 - fi
18004 - ;;
18005 - esac
18006 - shared_flag='-shared'
18007 - if test "$aix_use_runtimelinking" = yes; then
18008 - shared_flag="$shared_flag "'${wl}-G'
18009 - fi
18010 - else
18011 - # not using gcc
18012 + case $host_os in
18013 + aix*)
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:
18018 - shared_flag='-G'
18019 - else
18020 - if test "$aix_use_runtimelinking" = yes; then
18021 - shared_flag='${wl}-G'
18022 - else
18023 - shared_flag='${wl}-bM:SRE'
18024 - fi
18025 + # AIX 5 now supports IA64 processor
18026 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
18028 - fi
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"
18040 + ;;
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"
18043 - else
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"
18048 - else
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'
18061 - fi
18062 - fi
18063 - ;;
18065 - beos*)
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'
18071 - else
18072 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
18073 - fi
18074 - ;;
18076 - chorus*)
18077 - case $cc_basename in
18078 - *)
18079 - # FIXME: insert proper C++ library support
18080 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
18081 - ;;
18082 - esac
18083 - ;;
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;
18099 - else
18100 - echo EXPORTS > $output_objdir/$soname.def;
18101 - cat $export_symbols >> $output_objdir/$soname.def;
18102 - fi~
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'
18104 - else
18105 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
18106 - fi
18107 - ;;
18108 - darwin* | rhapsody*)
18109 - case $host_os in
18110 - rhapsody* | darwin1.[[012]])
18111 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
18112 - ;;
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'
18116 - else
18117 - case ${MACOSX_DEPLOYMENT_TARGET} in
18118 - 10.[[012]])
18119 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18120 - ;;
18121 - 10.*)
18122 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
18123 - ;;
18124 - esac
18125 - fi
18126 - ;;
18127 - esac
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
18140 - fi
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'
18143 - else
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'
18145 - fi
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}'
18150 - else
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}'
18152 - fi
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}'
18154 - else
18155 - case $cc_basename in
18156 - xlc*)
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}'
18163 - ;;
18164 - *)
18165 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
18166 - ;;
18167 - esac
18168 - fi
18169 + amigaos*)
18170 + case $host_cpu in
18171 + powerpc)
18172 + # see comment about AmigaOS4 .so support
18173 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
18174 + ;;
18175 + m68k)
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'
18181 + esac
18182 + ;;
18184 - dgux*)
18185 - case $cc_basename in
18186 - ec++*)
18187 - # FIXME: insert proper C++ library support
18188 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
18189 - ;;
18190 - ghcx*)
18191 - # Green Hills C++ Compiler
18192 - # FIXME: insert proper C++ library support
18193 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
18194 - ;;
18195 - *)
18196 - # FIXME: insert proper C++ library support
18197 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
18198 - ;;
18199 - esac
18200 - ;;
18201 - freebsd[[12]]*)
18202 - # C++ shared libraries reported to be fairly broken before switch to ELF
18203 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
18204 - ;;
18205 - freebsd-elf*)
18206 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
18207 - ;;
18208 - freebsd* | dragonfly*)
18209 - # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18210 - # conventions
18211 - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
18212 - ;;
18213 - gnu*)
18214 - ;;
18215 - hpux9*)
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
18225 - CC*)
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.
18231 - aCC*)
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
18240 - # dependencies.
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'])
18250 - *)
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'
18253 - else
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'
18260 + ;;
18261 + *djgpp*)
18262 + # DJGPP does not support shared libraries at all
18263 + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
18264 + ;;
18265 + interix[[3-9]]*)
18266 + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18267 + # Instead, we relocate shared libraries at runtime.
18268 + ;;
18269 + sysv4*MP*)
18270 + if test -d /usr/nec; then
18271 + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
18274 - esac
18275 - ;;
18276 - hpux10*|hpux11*)
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)=:
18281 + hpux*)
18282 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18283 + # not for PA HP-UX.
18284 case $host_cpu in
18285 - hppa*64*|ia64*) ;;
18286 + hppa*64*|ia64*)
18287 + ;;
18289 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
18290 - ;;
18291 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
18292 + ;;
18293 esac
18294 - fi
18295 - case $host_cpu in
18296 - hppa*64*|ia64*)
18297 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
18298 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
18299 + ;;
18300 + *qnx* | *nto*)
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'
18312 esac
18314 - case $cc_basename in
18315 - CC*)
18316 - # FIXME: insert proper C++ library support
18317 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
18318 + else
18319 + case $host_os in
18320 + aix[[4-9]]*)
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'
18325 + else
18326 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
18327 + fi
18329 - aCC*)
18330 - case $host_cpu in
18331 - hppa*64*)
18332 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18333 - ;;
18334 - ia64*)
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'
18336 - ;;
18337 - *)
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'
18339 + chorus*)
18340 + case $cc_basename in
18341 + cxch68*)
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"
18345 esac
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
18353 - # dependencies.
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'
18356 - *)
18357 - if test "$GXX" = yes; then
18358 - if test $with_gnu_ld = no; then
18359 + dgux*)
18360 + case $cc_basename in
18361 + ec++*)
18362 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
18363 + ;;
18364 + ghcx*)
18365 + # Green Hills C++ Compiler
18366 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
18367 + ;;
18368 + *)
18369 + ;;
18370 + esac
18371 + ;;
18372 + freebsd* | dragonfly*)
18373 + # FreeBSD uses GNU C++
18374 + ;;
18375 + hpux9* | hpux10* | hpux11*)
18376 + case $cc_basename in
18377 + CC*)
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'
18382 + fi
18383 + ;;
18384 + aCC*)
18385 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
18386 + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
18387 case $host_cpu in
18388 - hppa*64*)
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'
18390 - ;;
18391 - ia64*)
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'
18393 + hppa*64*|ia64*)
18394 + # +Z the default
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'
18400 esac
18401 - fi
18402 - else
18403 - # FIXME: insert proper C++ library support
18404 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
18405 - fi
18406 - ;;
18407 - esac
18408 - ;;
18409 - interix[[3-9]]*)
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'
18422 - ;;
18423 - irix5* | irix6*)
18424 - case $cc_basename in
18425 - CC*)
18426 - # SGI C++
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'
18434 + ;;
18435 + *)
18436 + ;;
18437 + esac
18439 - *)
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'
18443 - else
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'
18445 - fi
18446 - fi
18447 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
18448 + interix*)
18449 + # This is c89, which is MS Visual C++ (no shared libs)
18450 + # Anyone wants to do a port?
18452 - esac
18453 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
18454 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
18455 - ;;
18456 - linux* | k*bsd*-gnu)
18457 - case $cc_basename in
18458 - KCC*)
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
18473 - # dependencies.
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'
18482 - ;;
18483 - icpc*)
18484 - # Intel C++
18485 - with_gnu_ld=yes
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
18490 - *"Version 7."*)
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'
18493 - ;;
18494 - *) # Version 8.0 or newer
18495 - tmp_idyn=
18496 - case $host_cpu in
18497 - ia64*) tmp_idyn=' -i_dynamic';;
18498 - esac
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'
18501 - ;;
18502 + irix5* | irix6* | nonstopux*)
18503 + case $cc_basename in
18504 + CC*)
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.
18508 + ;;
18509 + *)
18510 + ;;
18511 esac
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'
18516 - ;;
18517 - pgCC*)
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'
18525 - ;;
18526 - cxx*)
18527 - # Compaq C++
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
18542 - # dependencies.
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'
18545 - *)
18546 - case `$CC -V 2>&1 | sed 5q` in
18547 - *Sun\ C*)
18548 - # Sun C++ 5.9
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'
18565 - ;;
18566 + linux* | k*bsd*-gnu)
18567 + case $cc_basename in
18568 + KCC*)
18569 + # KAI C++ Compiler
18570 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
18571 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
18572 + ;;
18573 + icpc* | ecpc* )
18574 + # Intel C++
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'
18578 + ;;
18579 + pgCC* | pgcpp*)
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'
18584 + ;;
18585 + cxx*)
18586 + # Compaq C++
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'
18591 + ;;
18592 + xlc* | xlC*)
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'
18597 + ;;
18598 + *)
18599 + case `$CC -V 2>&1 | sed 5q` in
18600 + *Sun\ C*)
18601 + # Sun C++ 5.9
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 '
18605 + ;;
18606 + esac
18607 + ;;
18608 esac
18610 - esac
18611 - ;;
18612 - lynxos*)
18613 - # FIXME: insert proper C++ library support
18614 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
18615 - ;;
18616 - m88k*)
18617 - # FIXME: insert proper C++ library support
18618 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
18619 - ;;
18620 - mvs*)
18621 - case $cc_basename in
18622 - cxx*)
18623 - # FIXME: insert proper C++ library support
18624 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
18625 - ;;
18626 - *)
18627 - # FIXME: insert proper C++ library support
18628 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
18629 - ;;
18630 - esac
18631 - ;;
18632 - netbsd*)
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'
18635 - wlarc=
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
18639 - fi
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::"'
18642 - ;;
18643 - openbsd2*)
18644 - # C++ shared libraries are fairly broken
18645 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
18646 - ;;
18647 - openbsd*)
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'
18657 - fi
18658 - output_verbose_link_cmd='echo'
18659 - else
18660 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
18661 - fi
18662 - ;;
18663 - osf3*)
18664 - case $cc_basename in
18665 - KCC*)
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'
18680 - ;;
18681 - RCC*)
18682 - # Rational C++ 2.4.1
18683 - # FIXME: insert proper C++ library support
18684 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
18685 - ;;
18686 - cxx*)
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
18700 - # dependencies.
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'
18702 + lynxos*)
18704 - *)
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"'
18717 - else
18718 - # FIXME: insert proper C++ library support
18719 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
18720 - fi
18721 + m88k*)
18723 - esac
18724 - ;;
18725 - osf4* | osf5*)
18726 - case $cc_basename in
18727 - KCC*)
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'
18741 - ;;
18742 - RCC*)
18743 - # Rational C++ 2.4.1
18744 - # FIXME: insert proper C++ library support
18745 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
18746 - ;;
18747 - cxx*)
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~
18753 - $rm $lib.exp'
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
18765 - # dependencies.
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'
18767 + mvs*)
18768 + case $cc_basename in
18769 + cxx*)
18770 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
18771 + ;;
18772 + *)
18773 + ;;
18774 + esac
18776 - *)
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"'
18789 - else
18790 - # FIXME: insert proper C++ library support
18791 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
18792 - fi
18793 + netbsd*)
18795 - esac
18796 - ;;
18797 - psos*)
18798 - # FIXME: insert proper C++ library support
18799 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
18800 - ;;
18801 - sunos4*)
18802 - case $cc_basename in
18803 - CC*)
18804 - # Sun C++ 4.x
18805 - # FIXME: insert proper C++ library support
18806 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
18807 - ;;
18808 - lcc*)
18809 - # Lucid
18810 - # FIXME: insert proper C++ library support
18811 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
18812 + *qnx* | *nto*)
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'
18816 + ;;
18817 + osf3* | osf4* | osf5*)
18818 + case $cc_basename in
18819 + KCC*)
18820 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
18821 + ;;
18822 + RCC*)
18823 + # Rational C++ 2.4.1
18824 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
18825 + ;;
18826 + cxx*)
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'
18833 + ;;
18834 + *)
18835 + ;;
18836 + esac
18838 - *)
18839 - # FIXME: insert proper C++ library support
18840 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
18841 + psos*)
18843 - esac
18844 - ;;
18845 - solaris*)
18846 - case $cc_basename in
18847 - CC*)
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
18857 - case $host_os in
18858 - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
18859 + solaris*)
18860 + case $cc_basename in
18861 + CC*)
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 '
18866 + ;;
18867 + gcx*)
18868 + # Green Hills C++ Compiler
18869 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
18870 + ;;
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'
18877 esac
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'
18887 - ;;
18888 - gcx*)
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'
18895 - *)
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\""
18908 - else
18909 - # g++ 2.7 appears to require `-G' NOT `-shared' on this
18910 - # platform.
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\""
18919 - fi
18921 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
18922 - case $host_os in
18923 - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
18924 + sunos4*)
18925 + case $cc_basename in
18926 + CC*)
18927 + # Sun C++ 4.x
18928 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
18929 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
18930 + ;;
18931 + lcc*)
18932 + # Lucid
18933 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
18934 + ;;
18936 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18938 - esac
18939 - fi
18940 - ;;
18941 - esac
18942 - ;;
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
18950 - CC*)
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'
18953 - ;;
18954 - *)
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'
18957 - ;;
18958 - esac
18959 - ;;
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
18966 - # as -z defs.
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
18987 - CC*)
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'
18990 + esac
18992 - *)
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
18997 + CC*)
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'
19001 + ;;
19002 + esac
19004 - esac
19005 - ;;
19006 - tandem*)
19007 - case $cc_basename in
19008 - NCC*)
19009 - # NonStop-UX NCC 3.20
19010 - # FIXME: insert proper C++ library support
19011 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
19012 + tandem*)
19013 + case $cc_basename in
19014 + NCC*)
19015 + # NonStop-UX NCC 3.20
19016 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
19017 + ;;
19018 + *)
19019 + ;;
19020 + esac
19022 - *)
19023 - # FIXME: insert proper C++ library support
19024 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
19025 + vxworks*)
19027 - esac
19028 - ;;
19029 - vxworks*)
19030 - # FIXME: insert proper C++ library support
19031 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
19032 - ;;
19033 - *)
19034 - # FIXME: insert proper C++ library support
19035 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
19036 - ;;
19037 -esac
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"
19044 -## CAVEAT EMPTOR:
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)
19058 -AC_LANG_POP
19059 -CC=$lt_save_CC
19060 -LDCXX=$LD
19061 -LD=$lt_save_LD
19062 -GCC=$lt_save_GCC
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
19084 -int a;
19085 -void foo (void) { a = 0; }
19086 -EOF
19087 -],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
19088 -class Foo
19090 -public:
19091 - Foo (void) { a = 0; }
19092 -private:
19093 - int a;
19095 -EOF
19096 -],[$1],[F77],[cat > conftest.$ac_ext <<EOF
19097 - subroutine foo
19098 - implicit none
19099 - integer*4 a
19100 - a=0
19101 - return
19102 - end
19103 -EOF
19104 -],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
19105 -public class foo {
19106 - private int a;
19107 - public void bar (void) {
19108 - a = 0;
19111 -EOF
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
19129 - case $p in
19131 - -L* | -R* | -l*)
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
19136 - prev=$p
19137 - continue
19138 - else
19139 - prev=
19140 - fi
19142 - if test "$pre_test_object_deps_done" = no; then
19143 - case $p in
19144 - -L* | -R*)
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}"
19150 - else
19151 - _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
19152 - fi
19153 - ;;
19154 - # The "-l" case would never come before the object being
19155 - # linked, so don't bother handling this case.
19156 - esac
19157 - else
19158 - if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
19159 - _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
19160 - else
19161 - _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
19162 - fi
19163 - fi
19164 - ;;
19166 - *.$objext)
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
19171 - continue
19172 - fi
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"
19177 - else
19178 - _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
19179 - fi
19180 - else
19181 - if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
19182 - _LT_AC_TAGVAR(postdep_objects, $1)="$p"
19183 - else
19184 - _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
19185 - fi
19186 - fi
19187 - ;;
19189 - *) ;; # Ignore the rest.
19191 - esac
19192 - done
19194 - # Clean up.
19195 - rm -f a.out a.exe
19196 -else
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],
19204 -[case $host_os in
19205 -interix[[3-9]]*)
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)=
19211 - ;;
19213 -linux*)
19214 - case `$CC -V 2>&1 | sed 5q` in
19215 - *Sun\ C*)
19216 - # Sun C++ 5.9
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
19225 - ;;
19226 - esac
19227 - if test "$solaris_use_stlport4" != yes; then
19228 - _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
19229 - fi
19230 - ;;
19231 - esac
19232 - ;;
19234 -solaris*)
19235 - case $cc_basename in
19236 - CC*)
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
19244 - ;;
19245 - esac
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'
19252 - fi
19253 - ;;
19254 - esac
19255 - ;;
19256 -esac
19259 -case " $_LT_AC_TAGVAR(postdeps, $1) " in
19260 -*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
19261 -esac
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.
19294 -ac_ext=f
19296 -# Object file extension for compiled f77 test sources.
19297 -objext=o
19298 -_LT_AC_TAGVAR(objext, $1)=$objext
19300 -# Code to be used in simple compile tests
19301 -lt_simple_compile_test_code="\
19302 - subroutine t
19303 - return
19304 - end
19307 -# Code to be used in simple link tests
19308 -lt_simple_link_test_code="\
19309 - program t
19310 - end
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.
19321 -lt_save_CC="$CC"
19322 -CC=${F77-"f77"}
19323 -compiler=$CC
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.
19335 -case $host_os in
19336 -aix3*)
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'
19341 - fi
19342 - ;;
19343 -aix4* | aix5*)
19344 - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
19345 - test "$enable_shared" = yes && enable_static=no
19346 - fi
19347 - ;;
19348 -esac
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)
19368 -AC_LANG_POP
19369 -CC="$lt_save_CC"
19370 -])# AC_LIBTOOL_LANG_F77_CONFIG
19372 + *)
19373 + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
19374 + ;;
19375 + esac
19376 + fi
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],
19390 -[AC_LANG_SAVE
19391 + case $host_os in
19392 + aix*)
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'
19397 + fi
19398 + ;;
19400 -# Source file extension for Java test sources.
19401 -ac_ext=java
19402 + amigaos*)
19403 + case $host_cpu in
19404 + powerpc)
19405 + # see comment about AmigaOS4 .so support
19406 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
19407 + ;;
19408 + m68k)
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'
19413 + ;;
19414 + esac
19415 + ;;
19417 -# Object file extension for compiled Java test sources.
19418 -objext=o
19419 -_LT_AC_TAGVAR(objext, $1)=$objext
19420 + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19421 + # PIC is the default for these OSes.
19422 + ;;
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'])
19433 + ;;
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'
19441 + ;;
19443 -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19444 -_LT_AC_SYS_COMPILER
19445 + hpux*)
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
19449 + hppa*64*|ia64*)
19450 + # +Z the default
19451 + ;;
19452 + *)
19453 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
19454 + ;;
19455 + esac
19456 + ;;
19458 -# save warnings/boilerplate of simple test code
19459 -_LT_COMPILER_BOILERPLATE
19460 -_LT_LINKER_BOILERPLATE
19461 + interix[[3-9]]*)
19462 + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19463 + # Instead, we relocate shared libraries at runtime.
19464 + ;;
19466 -# Allow CC to be a program name with arguments.
19467 -lt_save_CC="$CC"
19468 -CC=${GCJ-"gcj"}
19469 -compiler=$CC
19470 -_LT_AC_TAGVAR(compiler, $1)=$CC
19471 -_LT_CC_BASENAME([$compiler])
19472 + msdosdjgpp*)
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
19476 + enable_shared=no
19477 + ;;
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
19481 + *nto* | *qnx*)
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'
19485 + ;;
19487 -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
19488 + sysv4*MP*)
19489 + if test -d /usr/nec; then
19490 + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
19491 + fi
19492 + ;;
19494 -## CAVEAT EMPTOR:
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)
19505 + *)
19506 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
19507 + ;;
19508 + esac
19509 + else
19510 + # PORTME Check for flag to pass linker flags through the system compiler.
19511 + case $host_os in
19512 + aix*)
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'
19517 + else
19518 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
19519 + fi
19520 + ;;
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'])
19528 + ;;
19530 -AC_LANG_RESTORE
19531 -CC="$lt_save_CC"
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
19538 + hppa*64*|ia64*)
19539 + # +Z the default
19540 + ;;
19541 + *)
19542 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
19543 + ;;
19544 + esac
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'
19547 + ;;
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'
19553 + ;;
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],
19562 -[AC_LANG_SAVE
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'
19569 + ;;
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'
19576 + ;;
19577 + ccc*)
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'
19581 + ;;
19582 + xl*)
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'
19587 + ;;
19588 + *)
19589 + case `$CC -V 2>&1 | sed 5q` in
19590 + *Sun\ C*)
19591 + # Sun C 5.9
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,'
19595 + ;;
19596 + *Sun\ F*)
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)=''
19601 + ;;
19602 + esac
19603 + ;;
19604 + esac
19605 + ;;
19607 -# Source file extension for RC test sources.
19608 -ac_ext=rc
19609 + newsos6)
19610 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
19611 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
19612 + ;;
19614 -# Object file extension for compiled RC test sources.
19615 -objext=o
19616 -_LT_AC_TAGVAR(objext, $1)=$objext
19617 + *nto* | *qnx*)
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'
19621 + ;;
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'
19629 + ;;
19631 -# Code to be used in simple link tests
19632 -lt_simple_link_test_code="$lt_simple_compile_test_code"
19633 + rdos*)
19634 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
19635 + ;;
19637 -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19638 -_LT_AC_SYS_COMPILER
19639 + solaris*)
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 ';;
19645 + *)
19646 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
19647 + esac
19648 + ;;
19650 -# save warnings/boilerplate of simple test code
19651 -_LT_COMPILER_BOILERPLATE
19652 -_LT_LINKER_BOILERPLATE
19653 + sunos4*)
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'
19657 + ;;
19659 -# Allow CC to be a program name with arguments.
19660 -lt_save_CC="$CC"
19661 -CC=${RC-"windres"}
19662 -compiler=$CC
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'
19670 + ;;
19672 -AC_LIBTOOL_CONFIG($1)
19673 + sysv4*MP*)
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'
19677 + fi
19678 + ;;
19680 -AC_LANG_RESTORE
19681 -CC="$lt_save_CC"
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'
19687 + ;;
19689 + unicos*)
19690 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
19691 + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
19692 + ;;
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
19710 - fi
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
19760 - case $var in
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\"\`\\\""
19775 + uts4*)
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
19784 esac
19785 - done
19787 - case $lt_echo in
19788 - *'\[$]0 --fallback-echo"')
19789 - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
19790 + fi
19792 +case $host_os in
19793 + # For platforms which do not support PIC, -DPIC is meaningless:
19794 + *djgpp*)
19795 + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
19797 - esac
19799 -ifelse([$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"
19807 -ifelse([$1], [],
19808 -[#! $SHELL
19809 + *)
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],[])])"
19811 + ;;
19812 +esac
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
19842 + "" | " "*) ;;
19843 + *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
19844 + esac],
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.
19863 -SED=$lt_SED
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.
19873 -available_tags=
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.
19881 -SHELL=$lt_SHELL
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
19900 -host=$host
19901 -host_os=$host_os
19903 -# The build system.
19904 -build_alias=$build_alias
19905 -build=$build
19906 -build_os=$build_os
19908 -# An echo program that does not interpret backslashes.
19909 -echo=$lt_echo
19911 -# The archiver.
19912 -AR=$lt_AR
19913 -AR_FLAGS=$lt_AR_FLAGS
19915 -# A C compiler.
19916 -LTCC=$lt_LTCC
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)
19927 -# An ERE matcher.
19928 -EGREP=$lt_EGREP
19930 -# The linker used to build libraries.
19931 -LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
19933 -# Whether we need hard or soft links.
19934 -LN_S=$lt_LN_S
19936 -# A BSD-compatible nm program.
19937 -NM=$lt_NM
19939 -# A symbol stripping program
19940 -STRIP=$lt_STRIP
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,
19954 + [],
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.
19961 -AS="$AS"
19963 -# The name of the directory that contains temporary libtool files.
19964 -objdir=$objdir
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'
19979 + case $host_os in
19980 + aix[[4-9]]*)
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'
19985 + else
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'
19987 + fi
19988 + ;;
19989 + pw32*)
19990 + _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
19991 + ;;
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'
19994 + ;;
19995 + *)
19996 + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19997 + ;;
19998 + esac
19999 + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
20000 +], [
20001 + runpath_var=
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
20046 + case $host_os in
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
20052 + with_gnu_ld=no
20053 + fi
20054 + ;;
20055 + interix*)
20056 + # we just hope/assume this is gcc and not c89 (= MSVC++)
20057 + with_gnu_ld=yes
20058 + ;;
20059 + openbsd*)
20060 + with_gnu_ld=no
20061 + ;;
20062 + esac
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
20069 + wlarc='${wl}'
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'
20082 + else
20083 + _LT_TAGVAR(whole_archive_flag_spec, $1)=
20084 + fi
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 ;;
20092 + esac
20094 -# Old archive suffix (normally "a").
20095 -libext="$libext"
20096 + # See if GNU ld supports shared libraries.
20097 + case $host_os in
20098 + aix[[3-9]]*)
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 "").
20113 -exeext="$exeext"
20114 +_LT_EOF
20115 + fi
20116 + ;;
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
20121 + amigaos*)
20122 + case $host_cpu in
20123 + powerpc)
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)=''
20127 + ;;
20128 + m68k)
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
20132 + ;;
20133 + esac
20134 + ;;
20136 -# What is the maximum length of a command?
20137 -max_cmd_len=$lt_cv_sys_max_cmd_len
20138 + beos*)
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'
20144 + else
20145 + _LT_TAGVAR(ld_shlibs, $1)=no
20146 + fi
20147 + ;;
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;
20168 + else
20169 + echo EXPORTS > $output_objdir/$soname.def;
20170 + cat $export_symbols >> $output_objdir/$soname.def;
20171 + fi~
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'
20173 + else
20174 + _LT_TAGVAR(ld_shlibs, $1)=no
20175 + fi
20176 + ;;
20178 -# Do we need the lib prefix for modules?
20179 -need_lib_prefix=$need_lib_prefix
20180 + interix[[3-9]]*)
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'
20193 + ;;
20195 -# Do we need a version for libraries?
20196 -need_version=$need_version
20197 + gnu* | linux* | tpf* | k*bsd*-gnu)
20198 + tmp_diet=no
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)
20202 + esac
20203 + fi
20204 + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
20205 + && test "$tmp_diet" = no
20206 + then
20207 + tmp_addflag=
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'
20213 + ;;
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'
20225 + tmp_addflag= ;;
20226 + esac
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' ;;
20234 + esac
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'
20244 + fi
20246 -# Whether dlopen of programs is supported.
20247 -dlopen_self=$enable_dlopen_self
20248 + case $cc_basename in
20249 + xlf*)
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'
20260 + fi
20261 + ;;
20262 + esac
20263 + else
20264 + _LT_TAGVAR(ld_shlibs, $1)=no
20265 + fi
20266 + ;;
20268 -# Whether dlopen of statically linked programs is supported.
20269 -dlopen_self_static=$enable_dlopen_self_static
20270 + netbsd*)
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'
20273 + wlarc=
20274 + else
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'
20277 + fi
20278 + ;;
20280 -# Compiler flag to prevent dynamic linking.
20281 -link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
20282 + solaris*)
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)
20298 +_LT_EOF
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'
20302 + else
20303 + _LT_TAGVAR(ld_shlibs, $1)=no
20304 + fi
20305 + ;;
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
20326 +_LT_EOF
20327 + ;;
20328 + *)
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'
20337 + else
20338 + _LT_TAGVAR(ld_shlibs, $1)=no
20339 + fi
20340 + ;;
20341 + esac
20342 + ;;
20344 -# Format of library name prefix.
20345 -libname_spec=$lt_libname_spec
20346 + sunos4*)
20347 + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20348 + wlarc=
20349 + _LT_TAGVAR(hardcode_direct, $1)=yes
20350 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
20351 + ;;
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
20356 + *)
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'
20360 + else
20361 + _LT_TAGVAR(ld_shlibs, $1)=no
20362 + fi
20363 + ;;
20364 + esac
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
20369 + runpath_var=
20370 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
20371 + _LT_TAGVAR(export_dynamic_flag_spec, $1)=
20372 + _LT_TAGVAR(whole_archive_flag_spec, $1)=
20373 + fi
20374 + else
20375 + # PORTME fill in a description of your system's linker (not GNU ld)
20376 + case $host_os in
20377 + aix3*)
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
20388 + fi
20389 + ;;
20391 -# Commands used to build and install an old-style archive.
20392 -RANLIB=$lt_RANLIB
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
20396 + aix[[4-9]]*)
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'
20402 + no_entry_flag=""
20403 + else
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'
20408 + else
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'
20410 + fi
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
20422 + break
20423 + fi
20424 + done
20425 + ;;
20426 + esac
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'
20432 + fi
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
20465 + then
20466 + # We have reworked collect2
20468 + else
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)=
20477 + fi
20478 + ;;
20479 + esac
20480 + shared_flag='-shared'
20481 + if test "$aix_use_runtimelinking" = yes; then
20482 + shared_flag="$shared_flag "'${wl}-G'
20483 + fi
20484 + else
20485 + # not using gcc
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:
20489 + shared_flag='-G'
20490 + else
20491 + if test "$aix_use_runtimelinking" = yes; then
20492 + shared_flag='${wl}-G'
20493 + else
20494 + shared_flag='${wl}-bM:SRE'
20495 + fi
20496 + fi
20497 + fi
20499 -# Dependencies to place before the objects being linked to create a
20500 -# shared library.
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"
20514 + else
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"
20519 + else
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'
20533 + fi
20534 + fi
20535 + ;;
20537 -# Dependencies to place after the objects being linked to create a
20538 -# shared library.
20539 -postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
20540 + amigaos*)
20541 + case $host_cpu in
20542 + powerpc)
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)=''
20546 + ;;
20547 + m68k)
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
20551 + ;;
20552 + esac
20553 + ;;
20555 -# Dependencies to place before the objects being linked to create a
20556 -# shared library.
20557 -predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
20558 + bsdi[[45]]*)
20559 + _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
20560 + ;;
20562 -# Dependencies to place after the objects being linked to create a
20563 -# shared library.
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.
20573 + libext=lib
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
20584 + ;;
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)
20591 + ;;
20593 -# Method to check whether dependent libraries are shared objects.
20594 -deplibs_check_method=$lt_deplibs_check_method
20595 + dgux*)
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
20599 + ;;
20601 -# Command to use when deplibs_check_method == file_magic.
20602 -file_magic_cmd=$lt_file_magic_cmd
20603 + freebsd1*)
20604 + _LT_TAGVAR(ld_shlibs, $1)=no
20605 + ;;
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
20612 + # extra space).
20613 + freebsd2.2*)
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
20618 + ;;
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.
20623 + freebsd2*)
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
20628 + ;;
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
20638 + ;;
20640 -# Same as above, but a single script fragment to be evaled but not shown.
20641 -finish_eval=$lt_finish_eval
20642 + hpux9*)
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'
20645 + else
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'
20647 + fi
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'
20658 + ;;
20660 -# Transform the output of nm in a proper C declaration
20661 -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20662 + hpux10*)
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'
20665 + else
20666 + _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
20667 + fi
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
20678 + fi
20679 + ;;
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
20683 + hpux11*)
20684 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
20685 + case $host_cpu in
20686 + hppa*64*)
20687 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20688 + ;;
20689 + ia64*)
20690 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
20691 + ;;
20692 + *)
20693 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20694 + ;;
20695 + esac
20696 + else
20697 + case $host_cpu in
20698 + hppa*64*)
20699 + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20700 + ;;
20701 + ia64*)
20702 + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
20703 + ;;
20704 + *)
20705 + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20706 + ;;
20707 + esac
20708 + fi
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
20716 + hppa*64*|ia64*)
20717 + _LT_TAGVAR(hardcode_direct, $1)=no
20718 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
20719 + ;;
20720 + *)
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
20730 + ;;
20731 + esac
20732 + fi
20733 + ;;
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"
20749 + else
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'
20752 + fi
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
20758 + ;;
20760 -# How to hardcode a shared library path into an executable.
20761 -hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
20762 + netbsd*)
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
20765 + else
20766 + _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
20767 + fi
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
20771 + ;;
20773 -# Whether we should hardcode library paths into libraries.
20774 -hardcode_into_libs=$hardcode_into_libs
20775 + newsos6)
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
20781 + ;;
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)
20786 + *nto* | *qnx*)
20787 + ;;
20789 -# If ld is used when linking, flag to hardcode \$libdir into
20790 -# a binary during linking. This must work even if \$libdir does
20791 -# not exist.
20792 -hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
20793 + openbsd*)
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'
20803 + else
20804 + case $host_os in
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'
20808 + ;;
20809 + *)
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'
20812 + ;;
20813 + esac
20814 + fi
20815 + else
20816 + _LT_TAGVAR(ld_shlibs, $1)=no
20817 + fi
20818 + ;;
20820 -# Whether we need a single -rpath flag with a separated argument.
20821 -hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
20822 + os2*)
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'
20828 + ;;
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)
20833 + osf3*)
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'
20837 + else
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'
20840 + fi
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)=:
20844 + ;;
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'
20854 + else
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'
20865 + fi
20866 + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
20867 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
20868 + ;;
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)
20873 + solaris*)
20874 + _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
20875 + if test "$GCC" = yes; then
20876 + wlarc='${wl}'
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'
20880 + else
20881 + case `$CC -V 2>&1` in
20882 + *"Compilers 5.0"*)
20883 + wlarc=''
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'
20887 + ;;
20888 + *)
20889 + wlarc='${wl}'
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'
20893 + ;;
20894 + esac
20895 + fi
20896 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
20897 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
20898 + case $host_os in
20899 + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
20900 + *)
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'
20907 + else
20908 + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
20909 + fi
20910 + ;;
20911 + esac
20912 + _LT_TAGVAR(link_all_deplibs, $1)=yes
20913 + ;;
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"
20918 + sunos4*)
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'
20923 + else
20924 + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
20925 + fi
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
20930 + ;;
20932 -# Whether libtool must link a program against all its dependency libraries.
20933 -link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
20934 + sysv4)
20935 + case $host_vendor in
20936 + sni)
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???
20939 + ;;
20940 + siemens)
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
20946 + ;;
20947 + motorola)
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
20950 + ;;
20951 + esac
20952 + runpath_var='LD_RUN_PATH'
20953 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
20954 + ;;
20956 -# Compile-time system search path for libraries
20957 -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20958 + sysv4.3*)
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'
20962 + ;;
20964 -# Run-time system search path for libraries
20965 -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20966 + sysv4*MP*)
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
20973 + fi
20974 + ;;
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'
20989 + else
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'
20992 + fi
20993 + ;;
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
21003 + # as -z defs.
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'
21019 + else
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'
21022 + fi
21023 + ;;
21025 -# Symbols that should not be listed in the preloaded symbols.
21026 -exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
21027 + uts4*)
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
21031 + ;;
21033 -# Symbols that must always be exported.
21034 -include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
21035 + *)
21036 + _LT_TAGVAR(ld_shlibs, $1)=no
21037 + ;;
21038 + esac
21040 -ifelse([$1],[],
21041 -[# ### END LIBTOOL CONFIG],
21042 -[# ### END LIBTOOL TAG CONFIG: $tagname])
21043 + if test x$host_vendor = xsni; then
21044 + case $host in
21045 + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21046 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
21047 + ;;
21048 + esac
21049 + fi
21050 + fi
21052 +AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
21053 +test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
21055 -__EOF__
21056 +_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
21058 -ifelse([$1],[], [
21059 - case $host_os in
21060 - aix3*)
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
21071 - COLLECT_NAMES=
21072 - export COLLECT_NAMES
21074 -EOF
21075 - ;;
21076 - esac
21078 +# Do we need to explicitly link libc?
21080 +case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
21081 +x|xyes)
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
21092 + *'~'*)
21093 + # FIXME: we may have to deal with multi-command sequences.
21094 + ;;
21095 + '$CC '*)
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])
21100 + $RM conftest*
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"
21107 -else
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
21115 + soname=conftest
21116 + lib=conftest
21117 + libobjs=conftest.$ac_objext
21118 + deplibs=
21119 + wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
21120 + pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
21121 + compiler_flags=-v
21122 + linker_flags=-v
21123 + verstring=
21124 + output_objdir=.
21125 + libname=conftest
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)
21129 + then
21130 + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
21131 + else
21132 + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
21133 + fi
21134 + _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
21135 + else
21136 + cat conftest.err 1>&5
21137 + fi
21138 + $RM conftest*
21139 + AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
21140 + ;;
21141 + esac
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
21151 + ;;
21152 +esac
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
21207 + against it])
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
21248 +lt_save_CC="$CC"
21249 +AC_LANG_PUSH(C)
21251 +# Source file extension for C test sources.
21252 +ac_ext=c
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.
21268 +objext=o
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'"
21283 +_LT_TAG_COMPILER
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.
21295 -case $host_os in
21296 -aix*)
21297 - symcode='[[BCDT]]'
21298 - ;;
21299 -cygwin* | mingw* | pw32*)
21300 - symcode='[[ABCDGISTW]]'
21301 - ;;
21302 -hpux*) # Its linker distinguishes data from code symbols
21303 - if test "$host_cpu" = ia64; then
21304 - symcode='[[ABCDEGRST]]'
21305 - fi
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'"
21308 - ;;
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'"
21314 - fi
21315 - ;;
21316 -irix* | nonstopux*)
21317 - symcode='[[BCDEGRST]]'
21318 - ;;
21319 -osf*)
21320 - symcode='[[BCDEGQRST]]'
21321 - ;;
21322 -solaris*)
21323 - symcode='[[BDRT]]'
21324 - ;;
21325 -sco3.2v5*)
21326 - symcode='[[DT]]'
21327 - ;;
21328 -sysv4.2uw2*)
21329 - symcode='[[DT]]'
21330 - ;;
21331 -sysv5* | sco5v6* | unixware* | OpenUNIX*)
21332 - symcode='[[ABDT]]'
21333 - ;;
21334 -sysv4)
21335 - symcode='[[DFNSTU]]'
21336 - ;;
21337 -esac
21338 +## CAVEAT EMPTOR:
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
21351 + _LT_CMD_STRIPLIB
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
21358 -opt_cr=
21359 -case $build_os in
21360 -mingw*)
21361 - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
21362 - ;;
21363 -esac
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]]' ;;
21371 -esac
21372 + # On AIX, shared libraries and static libraries use the same namespace, and
21373 + # are all built from PIC.
21374 + case $host_os in
21375 + aix3*)
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'
21380 + fi
21381 + ;;
21383 -# Try without a prefix undercore, then with it.
21384 -for ac_symprfx in "" "_"; do
21385 + aix[[4-9]]*)
21386 + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21387 + test "$enable_shared" = yes && enable_static=no
21388 + fi
21389 + ;;
21390 + esac
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'"
21402 + _LT_CONFIG($1)
21404 +AC_LANG_POP
21405 +CC="$lt_save_CC"
21406 +])# _LT_LANG_C_CONFIG
21408 - # Check to see that the pipe works correctly.
21409 - pipe_works=no
21411 - rm -f conftest*
21412 - cat > conftest.$ac_ext <<EOF
21413 -#ifdef __cplusplus
21414 -extern "C" {
21415 -#endif
21416 -char nm_test_var;
21417 -void nm_test_func(){}
21418 -#ifdef __cplusplus
21420 -#endif
21421 -int main(){nm_test_var='a';nm_test_func();return(0);}
21422 -EOF
21423 +# _LT_PROG_CXX
21424 +# ------------
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])
21430 +AC_PROG_CXX
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
21434 + AC_PROG_CXXCPP
21435 +else
21436 + _lt_caught_CXX_error=yes
21438 +popdef([AC_MSG_ERROR])
21439 +])# _LT_PROG_CXX
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"
21448 - else
21449 - rm -f "$nlist"T
21450 - fi
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
21459 -extern "C" {
21460 -#endif
21462 -EOF
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
21475 +AC_LANG_PUSH(C++)
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 *
21502 -#else
21503 -# define lt_ptr_t char *
21504 -# define const
21505 -#endif
21506 +# Source file extension for C++ test sources.
21507 +ac_ext=cpp
21509 -/* The mapping between symbol names and symbols. */
21510 -const struct {
21511 - const char *name;
21512 - lt_ptr_t address;
21514 -lt_preloaded_symbols[[]] =
21516 -EOF
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.
21522 +objext=o
21523 +_LT_TAGVAR(objext, $1)=$objext
21525 -#ifdef __cplusplus
21527 -#endif
21528 -EOF
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
21536 - pipe_works=yes
21537 - fi
21538 - LIBS="$lt_save_LIBS"
21539 - CFLAGS="$lt_save_CFLAGS"
21540 - else
21541 - echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
21542 - fi
21543 - else
21544 - echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
21545 - fi
21546 - else
21547 - echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
21548 - fi
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.
21561 + _LT_TAG_COMPILER
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.
21568 + lt_save_CC=$CC
21569 + lt_save_LD=$LD
21570 + lt_save_GCC=$GCC
21571 + GCC=$GXX
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
21576 else
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
21585 - break
21586 + if test -n "${lt_cv_path_LDCXX+set}"; then
21587 + lt_cv_path_LD=$lt_cv_path_LDCXX
21588 else
21589 - lt_cv_sys_global_symbol_pipe=
21590 + $as_unset lt_cv_path_LD
21592 -done
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)
21599 -else
21600 - AC_MSG_RESULT(ok)
21602 -]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
21603 + test -z "${LDCXX+set}" || LD=$LDCXX
21604 + CC=${CXX-"c++"}
21605 + compiler=$CC
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'
21614 + else
21615 + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
21616 + fi
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'
21633 + LT_PATH_LD
21635 - case $host_os in
21636 - aix*)
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'
21641 - fi
21642 - ;;
21643 - amigaos*)
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'
21648 - ;;
21649 - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21650 - # PIC is the default for these OSes.
21651 - ;;
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'
21658 - ;;
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'
21663 - ;;
21664 - *djgpp*)
21665 - # DJGPP does not support shared libraries at all
21666 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
21667 - ;;
21668 - interix[[3-9]]*)
21669 - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21670 - # Instead, we relocate shared libraries at runtime.
21671 - ;;
21672 - sysv4*MP*)
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)
21687 + wlarc='${wl}'
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'
21693 + else
21694 + _LT_TAGVAR(whole_archive_flag_spec, $1)=
21695 + fi
21696 + else
21697 + with_gnu_ld=no
21698 + wlarc=
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'
21707 - ;;
21708 - hpux*)
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
21712 - hppa*64*|ia64*)
21713 - ;;
21714 - *)
21715 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
21716 - ;;
21717 - esac
21718 - ;;
21719 - *)
21720 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
21721 - ;;
21722 - esac
21723 - else
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"'
21730 + else
21731 + GXX=no
21732 + with_gnu_ld=no
21733 + wlarc=
21734 + fi
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
21739 case $host_os in
21740 - aix4* | aix5*)
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'
21745 + aix3*)
21746 + # FIXME: insert proper C++ library support
21747 + _LT_TAGVAR(ld_shlibs, $1)=no
21748 + ;;
21749 + aix[[4-9]]*)
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'
21755 + no_entry_flag=""
21756 + else
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
21764 + case $ld_flag in
21765 + *-brtl*)
21766 + aix_use_runtimelinking=yes
21767 + break
21768 + ;;
21769 + esac
21770 + done
21771 + ;;
21772 + esac
21774 + exp_sym_flag='-bexport'
21775 + no_entry_flag='-bnoentry'
21776 + fi
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
21798 + then
21799 + # We have reworked collect2
21801 + else
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)=
21810 + fi
21811 + esac
21812 + shared_flag='-shared'
21813 + if test "$aix_use_runtimelinking" = yes; then
21814 + shared_flag="$shared_flag "'${wl}-G'
21815 + fi
21816 + else
21817 + # not using gcc
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:
21821 + shared_flag='-G'
21822 + else
21823 + if test "$aix_use_runtimelinking" = yes; then
21824 + shared_flag='${wl}-G'
21825 + else
21826 + shared_flag='${wl}-bM:SRE'
21827 + fi
21828 + fi
21829 + fi
21831 + # It seems that -bexpall does not export symbols beginning with
21832 + # underscore (_), so it is better to generate a list of symbols to
21833 + # export.
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
21840 + # executable.
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"
21845 + else
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"
21850 + else
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
21863 + # libraries.
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'
21865 + fi
21866 + fi
21867 + ;;
21869 + beos*)
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'
21875 else
21876 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
21877 + _LT_TAGVAR(ld_shlibs, $1)=no
21881 chorus*)
21882 - case $cc_basename in
21883 - cxch68*)
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
21887 + *)
21888 + # FIXME: insert proper C++ library support
21889 + _LT_TAGVAR(ld_shlibs, $1)=no
21891 - esac
21892 + esac
21893 + ;;
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;
21909 + else
21910 + echo EXPORTS > $output_objdir/$soname.def;
21911 + cat $export_symbols >> $output_objdir/$soname.def;
21912 + fi~
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'
21914 + else
21915 + _LT_TAGVAR(ld_shlibs, $1)=no
21916 + fi
21917 + ;;
21918 + darwin* | rhapsody*)
21919 + _LT_DARWIN_LINKER_FEATURES($1)
21921 - darwin*)
21922 - # PIC is the default on this platform
21923 - # Common symbols not allowed in MH_DYLIB files
21924 - case $cc_basename in
21925 - xlc*)
21926 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
21927 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
21928 - ;;
21929 - esac
21930 - ;;
21932 dgux*)
21933 - case $cc_basename in
21934 - ec++*)
21935 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
21936 + case $cc_basename in
21937 + ec++*)
21938 + # FIXME: insert proper C++ library support
21939 + _LT_TAGVAR(ld_shlibs, $1)=no
21941 - ghcx*)
21942 + ghcx*)
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
21948 - *)
21949 + *)
21950 + # FIXME: insert proper C++ library support
21951 + _LT_TAGVAR(ld_shlibs, $1)=no
21953 - esac
21954 - ;;
21955 + esac
21956 + ;;
21958 + freebsd[[12]]*)
21959 + # C++ shared libraries reported to be fairly broken before
21960 + # switch to ELF
21961 + _LT_TAGVAR(ld_shlibs, $1)=no
21962 + ;;
21964 + freebsd-elf*)
21965 + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
21966 + ;;
21968 freebsd* | dragonfly*)
21969 - # FreeBSD uses GNU C++
21970 - ;;
21971 - hpux9* | hpux10* | hpux11*)
21972 - case $cc_basename in
21973 - CC*)
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'
21978 - fi
21979 + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
21980 + # conventions
21981 + _LT_TAGVAR(ld_shlibs, $1)=yes
21982 + ;;
21984 + gnu*)
21985 + ;;
21987 + hpux9*)
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
21997 + CC*)
21998 + # FIXME: insert proper C++ library support
21999 + _LT_TAGVAR(ld_shlibs, $1)=no
22000 + ;;
22001 + aCC*)
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
22010 + # dependencies.
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'
22012 + ;;
22013 + *)
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'
22016 + else
22017 + # FIXME: insert proper C++ library support
22018 + _LT_TAGVAR(ld_shlibs, $1)=no
22019 + fi
22020 + ;;
22021 + esac
22022 + ;;
22024 + hpux10*|hpux11*)
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
22030 + hppa*64*|ia64*)
22031 + ;;
22032 + *)
22033 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
22034 + ;;
22035 + esac
22036 + fi
22037 + case $host_cpu in
22038 + hppa*64*|ia64*)
22039 + _LT_TAGVAR(hardcode_direct, $1)=no
22040 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
22041 + ;;
22042 + *)
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.
22048 + ;;
22049 + esac
22051 + case $cc_basename in
22052 + CC*)
22053 + # FIXME: insert proper C++ library support
22054 + _LT_TAGVAR(ld_shlibs, $1)=no
22056 - aCC*)
22057 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
22058 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
22059 + aCC*)
22060 case $host_cpu in
22061 - hppa*64*|ia64*)
22062 - # +Z the default
22063 - ;;
22064 - *)
22065 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
22066 - ;;
22067 + hppa*64*)
22068 + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22069 + ;;
22070 + ia64*)
22071 + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22072 + ;;
22073 + *)
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'
22075 + ;;
22076 esac
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
22084 + # dependencies.
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'
22087 - *)
22088 + *)
22089 + if test "$GXX" = yes; then
22090 + if test $with_gnu_ld = no; then
22091 + case $host_cpu in
22092 + hppa*64*)
22093 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22094 + ;;
22095 + ia64*)
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'
22097 + ;;
22098 + *)
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'
22100 + ;;
22101 + esac
22102 + fi
22103 + else
22104 + # FIXME: insert proper C++ library support
22105 + _LT_TAGVAR(ld_shlibs, $1)=no
22106 + fi
22108 - esac
22109 - ;;
22110 - interix*)
22111 - # This is c89, which is MS Visual C++ (no shared libs)
22112 - # Anyone wants to do a port?
22113 - ;;
22114 - irix5* | irix6* | nonstopux*)
22115 - case $cc_basename in
22116 - CC*)
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.
22120 + esac
22121 + ;;
22123 + interix[[3-9]]*)
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'
22136 + ;;
22137 + irix5* | irix6*)
22138 + case $cc_basename in
22139 + CC*)
22140 + # SGI C++
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'
22149 - *)
22150 + *)
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'
22154 + else
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'
22156 + fi
22157 + fi
22158 + _LT_TAGVAR(link_all_deplibs, $1)=yes
22160 - esac
22161 - ;;
22162 + esac
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
22166 + ;;
22168 linux* | k*bsd*-gnu)
22169 - case $cc_basename in
22170 - KCC*)
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
22175 + KCC*)
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
22190 + # dependencies.
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'
22200 - icpc* | ecpc*)
22201 + icpc* | ecpc* )
22202 # Intel C++
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'
22206 - ;;
22207 - pgCC*)
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'
22212 - ;;
22213 - cxx*)
22214 - # Compaq C++
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'
22219 + with_gnu_ld=yes
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
22224 + *"Version 7."*)
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'
22227 + ;;
22228 + *) # Version 8.0 or newer
22229 + tmp_idyn=
22230 + case $host_cpu in
22231 + ia64*) tmp_idyn=' -i_dynamic';;
22232 + esac
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'
22235 + ;;
22236 + esac
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'
22242 - *)
22243 - case `$CC -V 2>&1 | sed 5q` in
22244 - *Sun\ C*)
22245 - # Sun C++ 5.9
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 '
22249 + pgCC* | pgcpp*)
22250 + # Portland Group C++ compiler
22251 + case `$CC -V` in
22252 + *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
22253 + _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
22254 + rm -rf $tpldir~
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~
22258 + rm -rf $tpldir~
22259 + $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
22260 + $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
22261 + $RANLIB $oldlib'
22262 + _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
22263 + rm -rf $tpldir~
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~
22267 + rm -rf $tpldir~
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'
22270 + ;;
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'
22275 esac
22276 - ;;
22277 - esac
22278 - ;;
22279 - lynxos*)
22280 - ;;
22281 - m88k*)
22282 - ;;
22283 - mvs*)
22284 - case $cc_basename in
22285 - cxx*)
22286 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
22287 - ;;
22288 - *)
22289 - ;;
22290 - esac
22291 - ;;
22292 - netbsd*)
22293 - ;;
22294 - osf3* | osf4* | osf5*)
22295 - case $cc_basename in
22296 - KCC*)
22297 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
22298 - ;;
22299 - RCC*)
22300 - # Rational C++ 2.4.1
22301 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
22302 - ;;
22303 - cxx*)
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'
22310 - ;;
22311 - *)
22312 - ;;
22313 - esac
22314 - ;;
22315 - psos*)
22316 - ;;
22317 - solaris*)
22318 - case $cc_basename in
22319 - CC*)
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 '
22324 - ;;
22325 - gcx*)
22326 - # Green Hills C++ Compiler
22327 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
22328 - ;;
22329 - *)
22330 - ;;
22331 - esac
22332 - ;;
22333 - sunos4*)
22334 - case $cc_basename in
22335 - CC*)
22336 - # Sun C++ 4.x
22337 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
22338 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
22339 - ;;
22340 - lcc*)
22341 - # Lucid
22342 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
22343 - ;;
22344 - *)
22345 - ;;
22346 - esac
22347 - ;;
22348 - tandem*)
22349 - case $cc_basename in
22350 - NCC*)
22351 - # NonStop-UX NCC 3.20
22352 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
22353 - ;;
22354 - *)
22355 - ;;
22356 - esac
22357 - ;;
22358 - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
22359 - case $cc_basename in
22360 - CC*)
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'
22364 - ;;
22365 - esac
22366 - ;;
22367 - vxworks*)
22368 - ;;
22369 - *)
22370 - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
22371 - ;;
22372 - esac
22373 - fi
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'
22380 - case $host_os in
22381 - aix*)
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'
22386 - fi
22387 - ;;
22389 - amigaos*)
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'
22394 - ;;
22396 - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
22397 - # PIC is the default for these OSes.
22398 - ;;
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'
22406 - ;;
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'
22412 - ;;
22414 - interix[[3-9]]*)
22415 - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
22416 - # Instead, we relocate shared libraries at runtime.
22417 - ;;
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'
22421 + ;;
22422 + cxx*)
22423 + # Compaq C++
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'
22427 - msdosdjgpp*)
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
22431 - enable_shared=no
22432 - ;;
22433 + runpath_var=LD_RUN_PATH
22434 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
22435 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
22437 - sysv4*MP*)
22438 - if test -d /usr/nec; then
22439 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
22440 - fi
22441 - ;;
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
22449 + # dependencies.
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'
22451 + ;;
22452 + xl*)
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'
22462 + fi
22463 + ;;
22464 + *)
22465 + case `$CC -V 2>&1 | sed 5q` in
22466 + *Sun\ C*)
22467 + # Sun C++ 5.9
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'
22485 + ;;
22486 + esac
22487 + ;;
22488 + esac
22489 + ;;
22491 - hpux*)
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
22495 - hppa*64*|ia64*)
22496 - # +Z the default
22497 + lynxos*)
22498 + # FIXME: insert proper C++ library support
22499 + _LT_TAGVAR(ld_shlibs, $1)=no
22501 - *)
22502 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
22504 + m88k*)
22505 + # FIXME: insert proper C++ library support
22506 + _LT_TAGVAR(ld_shlibs, $1)=no
22508 - esac
22509 - ;;
22511 - *)
22512 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
22513 - ;;
22514 - esac
22515 - else
22516 - # PORTME Check for flag to pass linker flags through the system compiler.
22517 - case $host_os in
22518 - aix*)
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'
22523 - else
22524 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
22525 - fi
22526 - ;;
22527 - darwin*)
22528 - # PIC is the default on this platform
22529 - # Common symbols not allowed in MH_DYLIB files
22530 - case $cc_basename in
22531 - xlc*)
22532 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
22533 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
22534 - ;;
22535 - esac
22536 - ;;
22537 + mvs*)
22538 + case $cc_basename in
22539 + cxx*)
22540 + # FIXME: insert proper C++ library support
22541 + _LT_TAGVAR(ld_shlibs, $1)=no
22542 + ;;
22543 + *)
22544 + # FIXME: insert proper C++ library support
22545 + _LT_TAGVAR(ld_shlibs, $1)=no
22546 + ;;
22547 + esac
22548 + ;;
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'
22554 - ;;
22555 + netbsd*)
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'
22558 + wlarc=
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
22562 + fi
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::"'
22565 + ;;
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
22572 - hppa*64*|ia64*)
22573 - # +Z the default
22574 + *nto* | *qnx*)
22575 + _LT_TAGVAR(ld_shlibs, $1)=yes
22577 - *)
22578 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
22580 + openbsd2*)
22581 + # C++ shared libraries are fairly broken
22582 + _LT_TAGVAR(ld_shlibs, $1)=no
22583 + ;;
22585 + openbsd*)
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'
22596 + fi
22597 + output_verbose_link_cmd=echo
22598 + else
22599 + _LT_TAGVAR(ld_shlibs, $1)=no
22600 + fi
22602 - esac
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'
22605 - ;;
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'
22611 - ;;
22612 + osf3* | osf4* | osf5*)
22613 + case $cc_basename in
22614 + KCC*)
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.
22627 + case $host in
22628 + osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
22629 + *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
22630 + esac
22631 + ;;
22632 + RCC*)
22633 + # Rational C++ 2.4.1
22634 + # FIXME: insert proper C++ library support
22635 + _LT_TAGVAR(ld_shlibs, $1)=no
22636 + ;;
22637 + cxx*)
22638 + case $host in
22639 + osf3*)
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'
22643 + ;;
22644 + *)
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~
22650 + $RM $lib.exp'
22651 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
22652 + ;;
22653 + esac
22655 - newsos6)
22656 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
22657 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
22658 - ;;
22659 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
22661 - linux* | k*bsd*-gnu)
22662 - case $cc_basename in
22663 - icc* | ecc*)
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
22674 + # dependencies.
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'
22676 + ;;
22677 + *)
22678 + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
22679 + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
22680 + case $host in
22681 + osf3*)
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'
22683 + ;;
22684 + *)
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'
22686 + ;;
22687 + esac
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"'
22697 + else
22698 + # FIXME: insert proper C++ library support
22699 + _LT_TAGVAR(ld_shlibs, $1)=no
22700 + fi
22701 + ;;
22702 + esac
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'
22711 + psos*)
22712 + # FIXME: insert proper C++ library support
22713 + _LT_TAGVAR(ld_shlibs, $1)=no
22715 - ccc*)
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'
22720 + sunos4*)
22721 + case $cc_basename in
22722 + CC*)
22723 + # Sun C++ 4.x
22724 + # FIXME: insert proper C++ library support
22725 + _LT_TAGVAR(ld_shlibs, $1)=no
22726 + ;;
22727 + lcc*)
22728 + # Lucid
22729 + # FIXME: insert proper C++ library support
22730 + _LT_TAGVAR(ld_shlibs, $1)=no
22731 + ;;
22732 + *)
22733 + # FIXME: insert proper C++ library support
22734 + _LT_TAGVAR(ld_shlibs, $1)=no
22735 + ;;
22736 + esac
22738 - como)
22739 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-lopt='
22741 + solaris*)
22742 + case $cc_basename in
22743 + CC*)
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
22753 + case $host_os in
22754 + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
22755 + *)
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'
22760 + ;;
22761 + esac
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'
22771 + ;;
22772 + gcx*)
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'
22778 + ;;
22779 + *)
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"'
22792 + else
22793 + # g++ 2.7 appears to require `-G' NOT `-shared' on this
22794 + # platform.
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"'
22803 + fi
22805 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
22806 + case $host_os in
22807 + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
22808 + *)
22809 + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
22810 + ;;
22811 + esac
22812 + fi
22813 + ;;
22814 + esac
22816 - *)
22817 - case `$CC -V 2>&1 | sed 5q` in
22818 - *Sun\ C*)
22819 - # Sun C 5.9
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
22831 + CC*)
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'
22835 - *Sun\ F*)
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)=''
22840 + *)
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'
22844 - esac
22845 - ;;
22846 esac
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'
22853 - ;;
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
22860 + # as -z defs.
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'
22871 - rdos*)
22872 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
22873 + case $cc_basename in
22874 + CC*)
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'
22877 + ;;
22878 + *)
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'
22881 + ;;
22882 + esac
22885 - solaris*)
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 ';;
22891 + tandem*)
22892 + case $cc_basename in
22893 + NCC*)
22894 + # NonStop-UX NCC 3.20
22895 + # FIXME: insert proper C++ library support
22896 + _LT_TAGVAR(ld_shlibs, $1)=no
22897 + ;;
22898 + *)
22899 + # FIXME: insert proper C++ library support
22900 + _LT_TAGVAR(ld_shlibs, $1)=no
22901 + ;;
22902 + esac
22903 + ;;
22905 + vxworks*)
22906 + # FIXME: insert proper C++ library support
22907 + _LT_TAGVAR(ld_shlibs, $1)=no
22908 + ;;
22911 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
22912 - esac
22913 - ;;
22914 + # FIXME: insert proper C++ library support
22915 + _LT_TAGVAR(ld_shlibs, $1)=no
22916 + ;;
22917 + esac
22919 - sunos4*)
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'
22923 - ;;
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'
22931 - ;;
22932 + _LT_TAGVAR(GCC, $1)="$GXX"
22933 + _LT_TAGVAR(LD, $1)="$LD"
22935 - sysv4*MP*)
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'
22939 - fi
22940 - ;;
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)
22953 + _LT_CONFIG($1)
22954 + fi # test -n "$compiler"
22956 + CC=$lt_save_CC
22957 + LDCXX=$LD
22958 + LD=$lt_save_LD
22959 + GCC=$lt_save_GCC
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'
22971 - ;;
22972 +AC_LANG_POP
22973 +])# _LT_LANG_CXX_CONFIG
22975 - unicos*)
22976 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
22977 - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
22978 - ;;
22980 - uts4*)
22981 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
22982 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
22983 - ;;
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)=
22999 - *)
23000 - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
23001 - ;;
23002 - esac
23003 - fi
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
23010 +int a;
23011 +void foo (void) { a = 0; }
23012 +_LT_EOF
23013 +], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
23014 +class Foo
23016 +public:
23017 + Foo (void) { a = 0; }
23018 +private:
23019 + int a;
23021 +_LT_EOF
23022 +], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
23023 + subroutine foo
23024 + implicit none
23025 + integer*4 a
23026 + a=0
23027 + return
23028 + end
23029 +_LT_EOF
23030 +], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
23031 + subroutine foo
23032 + implicit none
23033 + integer a
23034 + a=0
23035 + return
23036 + end
23037 +_LT_EOF
23038 +], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
23039 +public class foo {
23040 + private int a;
23041 + public void bar (void) {
23042 + a = 0;
23045 +_LT_EOF
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
23062 - "" | " "*) ;;
23063 - *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
23064 - esac],
23065 - [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
23066 - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
23068 -case $host_os in
23069 - # For platforms which do not support PIC, -DPIC is meaningless:
23070 - *djgpp*)
23071 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
23072 - ;;
23073 - *)
23074 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
23075 - ;;
23076 -esac
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,
23088 - [],
23089 - [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
23091 + for p in `eval "$output_verbose_link_cmd"`; do
23092 + case $p in
23094 + -L* | -R* | -l*)
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
23099 + prev=$p
23100 + continue
23101 + else
23102 + prev=
23103 + fi
23105 + if test "$pre_test_object_deps_done" = no; then
23106 + case $p in
23107 + -L* | -R*)
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}"
23113 + else
23114 + _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
23115 + fi
23116 + ;;
23117 + # The "-l" case would never come before the object being
23118 + # linked, so don't bother handling this case.
23119 + esac
23120 + else
23121 + if test -z "$_LT_TAGVAR(postdeps, $1)"; then
23122 + _LT_TAGVAR(postdeps, $1)="${prev}${p}"
23123 + else
23124 + _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
23125 + fi
23126 + fi
23127 + ;;
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'
23137 - case $host_os in
23138 - aix4* | aix5*)
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'
23143 - else
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'
23145 - fi
23146 - ;;
23147 - pw32*)
23148 - _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
23149 - ;;
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'
23152 - ;;
23153 - *)
23154 - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23155 - ;;
23156 - esac
23157 -],[
23158 - runpath_var=
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])
23196 - case $host_os in
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
23202 - with_gnu_ld=no
23203 - fi
23204 - ;;
23205 - interix*)
23206 - # we just hope/assume this is gcc and not c89 (= MSVC++)
23207 - with_gnu_ld=yes
23208 - ;;
23209 - openbsd*)
23210 - with_gnu_ld=no
23211 - ;;
23212 - esac
23213 + *.$objext)
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
23218 + continue
23219 + fi
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
23224 - wlarc='${wl}'
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"
23228 + else
23229 + _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
23230 + fi
23231 + else
23232 + if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
23233 + _LT_TAGVAR(postdep_objects, $1)="$p"
23234 + else
23235 + _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
23236 + fi
23237 + fi
23238 + ;;
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'
23251 - else
23252 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
23253 - fi
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 ;;
23261 esac
23262 + done
23264 - # See if GNU ld supports shared libraries.
23265 - case $host_os in
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
23270 - cat <<EOF 1>&2
23271 + # Clean up.
23272 + rm -f a.out a.exe
23273 +else
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
23284 -EOF
23285 - fi
23286 - ;;
23287 +# PORTME: override above test on systems where it is broken
23288 +m4_if([$1], [CXX],
23289 +[case $host_os in
23290 +interix[[3-9]]*)
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)=
23296 + ;;
23298 - amigaos*)
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
23308 - # them.
23309 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
23310 - ;;
23311 +linux*)
23312 + case `$CC -V 2>&1 | sed 5q` in
23313 + *Sun\ C*)
23314 + # Sun C++ 5.9
23316 - beos*)
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'
23322 - else
23323 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
23324 - fi
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
23333 + esac
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'
23345 + fi
23346 + ;;
23347 + esac
23348 + ;;
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;
23356 - else
23357 - echo EXPORTS > $output_objdir/$soname.def;
23358 - cat $export_symbols >> $output_objdir/$soname.def;
23359 - fi~
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'
23361 - else
23362 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
23363 - fi
23364 +solaris*)
23365 + case $cc_basename in
23366 + CC*)
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
23375 + esac
23377 - interix[[3-9]]*)
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'
23390 - ;;
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'
23396 + fi
23397 + ;;
23398 + esac
23399 + ;;
23400 +esac
23403 - gnu* | linux* | k*bsd*-gnu)
23404 - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23405 - tmp_addflag=
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'
23410 - ;;
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' ;;
23420 - esac
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' ;;
23427 - *)
23428 - tmp_sharedflag='-shared' ;;
23429 - esac
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 ;;
23433 +esac
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
23452 +# _LT_PROG_F77
23453 +# ------------
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])
23459 +AC_PROG_F77
23460 +if test -z "$F77" || test "X$F77" = "Xno"; then
23461 + _lt_disable_F77=yes
23463 +popdef([AC_MSG_ERROR])
23464 +])# _LT_PROG_F77
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'
23471 - fi
23472 - else
23473 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
23474 - fi
23475 - ;;
23476 +dnl aclocal-1.4 backwards compatibility:
23477 +dnl AC_DEFUN([_LT_PROG_F77], [])
23479 - netbsd*)
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'
23482 - wlarc=
23483 - else
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'
23486 - fi
23487 - ;;
23489 - solaris*)
23490 - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
23491 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
23492 - cat <<EOF 1>&2
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
23529 -EOF
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'
23533 - else
23534 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
23535 - fi
23536 - ;;
23537 +# Source file extension for f77 test sources.
23538 +ac_ext=f
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.
23546 +objext=o
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="\
23562 + subroutine t
23563 + return
23564 + end
23567 -_LT_EOF
23568 - ;;
23569 - *)
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'
23574 - else
23575 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
23576 - fi
23577 - ;;
23578 - esac
23579 - ;;
23580 + # Code to be used in simple link tests
23581 + lt_simple_link_test_code="\
23582 + program t
23583 + end
23586 - sunos4*)
23587 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23588 - wlarc=
23589 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
23590 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
23591 - ;;
23592 + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23593 + _LT_TAG_COMPILER
23595 - *)
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'
23599 - else
23600 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
23601 - fi
23602 - ;;
23603 - esac
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.
23609 + lt_save_CC="$CC"
23610 + lt_save_GCC=$GCC
23611 + CC=${F77-"f77"}
23612 + compiler=$CC
23613 + _LT_TAGVAR(compiler, $1)=$CC
23614 + _LT_CC_BASENAME([$compiler])
23615 + GCC=$G77
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
23621 - runpath_var=
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)=
23625 - fi
23626 - else
23627 - # PORTME fill in a description of your system's linker (not GNU ld)
23628 - case $host_os in
23629 - aix3*)
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
23640 - fi
23641 - ;;
23642 + AC_MSG_CHECKING([whether to build shared libraries])
23643 + test "$can_build_shared" = "no" && enable_shared=no
23645 - aix4* | aix5*)
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'
23651 - no_entry_flag=""
23652 - else
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'
23657 - else
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.
23661 + case $host_os in
23662 + aix3*)
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'
23667 + fi
23668 + ;;
23669 + aix[[4-9]]*)
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
23682 - break
23683 - fi
23684 - done
23685 - ;;
23686 - esac
23687 + ;;
23688 + esac
23689 + AC_MSG_RESULT([$enable_shared])
23691 - exp_sym_flag='-bexport'
23692 - no_entry_flag='-bnoentry'
23693 - fi
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)
23713 + _LT_CONFIG($1)
23714 + fi # test -n "$compiler"
23716 + GCC=$lt_save_GCC
23717 + CC="$lt_save_CC"
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.
23725 +AC_LANG_POP
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
23740 - then
23741 - # We have reworked collect2
23743 - else
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)=
23752 - fi
23753 - ;;
23754 - esac
23755 - shared_flag='-shared'
23756 - if test "$aix_use_runtimelinking" = yes; then
23757 - shared_flag="$shared_flag "'${wl}-G'
23758 - fi
23759 - else
23760 - # not using gcc
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:
23764 - shared_flag='-G'
23765 - else
23766 - if test "$aix_use_runtimelinking" = yes; then
23767 - shared_flag='${wl}-G'
23768 - else
23769 - shared_flag='${wl}-bM:SRE'
23770 - fi
23771 - fi
23772 - fi
23773 +# _LT_PROG_FC
23774 +# -----------
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])
23780 +AC_PROG_FC
23781 +if test -z "$FC" || test "X$FC" = "Xno"; then
23782 + _lt_disable_FC=yes
23784 +popdef([AC_MSG_ERROR])
23785 +])# _LT_PROG_FC
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"
23798 - else
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"
23803 - else
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'
23816 - fi
23817 - fi
23818 - ;;
23819 +dnl aclocal-1.4 backwards compatibility:
23820 +dnl AC_DEFUN([_LT_PROG_FC], [])
23822 - amigaos*)
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
23828 - ;;
23830 - bsdi[[45]]*)
23831 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
23832 - ;;
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.
23871 - libext=lib
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
23882 - ;;
23883 +# Source file extension for fc test sources.
23884 +ac_ext=${ac_fc_srcext-f}
23886 - darwin* | rhapsody*)
23887 - case $host_os in
23888 - rhapsody* | darwin1.[[012]])
23889 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
23890 - ;;
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'
23894 - else
23895 - case ${MACOSX_DEPLOYMENT_TARGET} in
23896 - 10.[[012]])
23897 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
23898 - ;;
23899 - 10.*)
23900 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
23901 - ;;
23902 - esac
23903 - fi
23904 - ;;
23905 - esac
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}'
23919 - else
23920 - case $cc_basename in
23921 - xlc*)
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}'
23928 - ;;
23929 - *)
23930 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
23931 - ;;
23932 - esac
23933 - fi
23934 - ;;
23935 +# Object file extension for compiled fc test sources.
23936 +objext=o
23937 +_LT_TAGVAR(objext, $1)=$objext
23939 - dgux*)
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
23943 - ;;
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="\
23951 + subroutine t
23952 + return
23953 + end
23956 - freebsd1*)
23957 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
23958 - ;;
23959 + # Code to be used in simple link tests
23960 + lt_simple_link_test_code="\
23961 + program t
23962 + end
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
23968 - # extra space).
23969 - freebsd2.2*)
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
23974 - ;;
23975 + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23976 + _LT_TAG_COMPILER
23978 - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
23979 - freebsd2*)
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
23984 - ;;
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.
23990 + lt_save_CC="$CC"
23991 + lt_save_GCC=$GCC
23992 + CC=${FC-"f95"}
23993 + compiler=$CC
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
24002 - ;;
24003 + _LT_TAGVAR(compiler, $1)=$CC
24004 + _LT_CC_BASENAME([$compiler])
24006 - hpux9*)
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'
24009 - else
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'
24011 - fi
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'
24023 - ;;
24024 + AC_MSG_CHECKING([whether to build shared libraries])
24025 + test "$can_build_shared" = "no" && enable_shared=no
24027 - hpux10*)
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'
24030 - else
24031 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24032 - fi
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.
24038 + case $host_os in
24039 + aix3*)
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'
24044 + fi
24045 + ;;
24046 + aix[[4-9]]*)
24047 + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
24048 + test "$enable_shared" = yes && enable_static=no
24049 + fi
24050 + ;;
24051 + esac
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)
24076 + _LT_CONFIG($1)
24077 + fi # test -n "$compiler"
24079 + GCC=$lt_save_GCC
24080 + CC="$lt_save_CC"
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
24086 - fi
24087 - ;;
24088 +AC_LANG_POP
24089 +])# _LT_LANG_FC_CONFIG
24091 - hpux11*)
24092 - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24093 - case $host_cpu in
24094 - hppa*64*)
24095 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24096 - ;;
24097 - ia64*)
24098 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24099 - ;;
24100 - *)
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'
24102 - ;;
24103 - esac
24104 - else
24105 - case $host_cpu in
24106 - hppa*64*)
24107 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24108 - ;;
24109 - ia64*)
24110 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24111 - ;;
24112 - *)
24113 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24114 - ;;
24115 - esac
24116 - fi
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
24122 - hppa*64*|ia64*)
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
24126 - ;;
24127 - *)
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
24137 +AC_LANG_SAVE
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
24142 - ;;
24143 - esac
24144 - fi
24145 - ;;
24146 +# Source file extension for Java test sources.
24147 +ac_ext=java
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'
24152 - else
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'
24155 - fi
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
24159 - ;;
24160 +# Object file extension for compiled Java test sources.
24161 +objext=o
24162 +_LT_TAGVAR(objext, $1)=$objext
24164 - netbsd*)
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
24167 - else
24168 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
24169 - fi
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
24173 - ;;
24174 +# Code to be used in simple compile tests
24175 +lt_simple_compile_test_code="class foo {}"
24177 - newsos6)
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
24183 - ;;
24184 +# Code to be used in simple link tests
24185 +lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
24187 - openbsd*)
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'
24196 - else
24197 - case $host_os in
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'
24201 - ;;
24202 - *)
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'
24205 - ;;
24206 - esac
24207 - fi
24208 - else
24209 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
24210 - fi
24211 - ;;
24212 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
24213 +_LT_TAG_COMPILER
24215 - os2*)
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'
24221 - ;;
24222 +# save warnings/boilerplate of simple test code
24223 +_LT_COMPILER_BOILERPLATE
24224 +_LT_LINKER_BOILERPLATE
24226 - osf3*)
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'
24230 - else
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'
24233 - fi
24234 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
24235 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
24236 - ;;
24237 +# Allow CC to be a program name with arguments.
24238 +lt_save_CC="$CC"
24239 +lt_save_GCC=$GCC
24240 +GCC=yes
24241 +CC=${GCJ-"gcj"}
24242 +compiler=$CC
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'
24252 - else
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'
24262 - fi
24263 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
24264 - ;;
24265 +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
24267 - solaris*)
24268 - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
24269 - if test "$GCC" = yes; then
24270 - wlarc='${wl}'
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'
24274 - else
24275 - wlarc=''
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'
24279 - fi
24280 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
24281 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
24282 - case $host_os in
24283 - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
24284 - *)
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'
24291 - else
24292 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
24293 - fi
24294 - ;;
24295 - esac
24296 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
24297 - ;;
24298 +## CAVEAT EMPTOR:
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)
24310 - sunos4*)
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'
24315 - else
24316 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
24317 - fi
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
24322 - ;;
24323 + _LT_CONFIG($1)
24326 - sysv4)
24327 - case $host_vendor in
24328 - sni)
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???
24331 - ;;
24332 - siemens)
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
24338 - ;;
24339 - motorola)
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
24342 - ;;
24343 - esac
24344 - runpath_var='LD_RUN_PATH'
24345 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
24346 - ;;
24347 +AC_LANG_RESTORE
24349 - sysv4.3*)
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'
24353 - ;;
24354 +GCC=$lt_save_GCC
24355 +CC="$lt_save_CC"
24356 +])# _LT_LANG_GCJ_CONFIG
24358 - sysv4*MP*)
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
24365 - fi
24366 - ;;
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
24380 +AC_LANG_SAVE
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'
24385 - else
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'
24388 - fi
24389 - ;;
24390 +# Source file extension for RC test sources.
24391 +ac_ext=rc
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
24399 - # as -z defs.
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.
24410 +objext=o
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'
24416 - else
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'
24419 - fi
24420 - ;;
24421 +# Code to be used in simple compile tests
24422 +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
24424 - uts4*)
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
24428 - ;;
24429 +# Code to be used in simple link tests
24430 +lt_simple_link_test_code="$lt_simple_compile_test_code"
24432 - *)
24433 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
24434 - ;;
24435 - esac
24436 - fi
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.
24441 +_LT_TAG_COMPILER
24444 -# Do we need to explicitly link libc?
24446 -case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
24447 -x|xyes)
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
24456 - *'~'*)
24457 - # FIXME: we may have to deal with multi-command sequences.
24458 - ;;
24459 - '$CC '*)
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])
24464 - $rm conftest*
24465 - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
24466 +# Allow CC to be a program name with arguments.
24467 +lt_save_CC="$CC"
24468 +lt_save_GCC=$GCC
24469 +GCC=
24470 +CC=${RC-"windres"}
24471 +compiler=$CC
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
24477 - soname=conftest
24478 - lib=conftest
24479 - libobjs=conftest.$ac_objext
24480 - deplibs=
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
24484 - linker_flags=-v
24485 - verstring=
24486 - output_objdir=.
24487 - libname=conftest
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)
24491 - then
24492 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
24493 - else
24494 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
24495 - fi
24496 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
24497 - else
24498 - cat conftest.err 1>&5
24499 - fi
24500 - $rm conftest*
24501 - AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
24502 - ;;
24503 - esac
24504 - fi
24505 - ;;
24506 -esac
24507 -])# AC_LIBTOOL_PROG_LD_SHLIBS
24508 +if test -n "$compiler"; then
24510 + _LT_CONFIG($1)
24513 +GCC=$lt_save_GCC
24514 +AC_LANG_RESTORE
24515 +CC="$lt_save_CC"
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__
24531 -# # endif
24532 -# #endif
24534 -# #ifdef __cplusplus
24535 -# extern "C" {
24536 -# #endif
24537 -# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
24538 -# #ifdef __cplusplus
24539 -# }
24540 -# #endif
24542 -# #ifdef __CYGWIN__
24543 -# #include <cygwin/cygwin_dll.h>
24544 -# DECLARE_CYGWIN_DLL( DllMain );
24545 -# #endif
24546 -# HINSTANCE __hDllInstance_base;
24548 -# BOOL APIENTRY
24549 -# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
24550 -# {
24551 -# __hDllInstance_base = hInst;
24552 -# return TRUE;
24553 -# }
24554 -# /* ltdll.c ends here */
24555 -])# _LT_AC_FILE_LTDLL_C
24557 +# LT_PROG_GCJ
24558 +# -----------
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])])
24570 +# Old name:
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], [])
24576 -# old names
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)
24592 +# LT_PROG_RC
24593 +# ----------
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)
24601 +# Old name:
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.
24609 +# _LT_DECL_EGREP
24610 +# --------------
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
24621 +AC_SUBST([GREP])
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'
24630 -else
24631 - as_executable_p='test -f'
24633 -])])# _AS_TEST_PREPARE
24635 -# AS_EXECUTABLE_P
24636 -# ---------------
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
24643 +# _LT_DECL_SED
24644 +# ------------
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],
24648 +[AC_PROG_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])
24654 +])# _LT_DECL_SED
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 ############################################################
24663 -# LT_AC_PROG_SED
24664 -# --------------
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"
24681 done
24682 @@ -6585,4 +7045,266 @@
24683 SED=$lt_cv_path_SED
24684 AC_SUBST([SED])
24685 AC_MSG_RESULT([$SED])
24686 +])#AC_PROG_SED
24687 +])#m4_ifndef
24689 +# Old name:
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
24702 +xsi_shell=no
24703 +( _lt_dummy="a/b/c"
24704 + test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
24705 + = c,a/b,, \
24706 + && eval 'test $(( 1 + 1 )) -eq 2 \
24707 + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
24708 + && xsi_shell=yes
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
24721 + lt_unset=unset
24722 +else
24723 + lt_unset=false
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'
24733 + ;;
24734 + *) # EBCDIC based system
24735 + lt_SP2NL='tr \100 \n'
24736 + lt_NL2SP='tr \r\n \100\100'
24737 + ;;
24738 +esac
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
24749 + yes)
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.
24755 +func_dirname ()
24757 + case ${1} in
24758 + */*) func_dirname_result="${1%/*}${2}" ;;
24759 + * ) func_dirname_result="${3}" ;;
24760 + esac
24763 +# func_basename file
24764 +func_basename ()
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
24771 +# call:
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 ()
24783 + case ${1} in
24784 + */*) func_dirname_result="${1%/*}${2}" ;;
24785 + * ) func_dirname_result="${3}" ;;
24786 + esac
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).
24795 +func_stripname ()
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}"}
24804 +# func_opt_split
24805 +func_opt_split ()
24807 + func_opt_split_opt=${1%%=*}
24808 + func_opt_split_arg=${1#*=}
24811 +# func_lo2o object
24812 +func_lo2o ()
24814 + case ${1} in
24815 + *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
24816 + *) func_lo2o_result=${1} ;;
24817 + esac
24820 +# func_xform libobj-or-source
24821 +func_xform ()
24823 + func_xform_result=${1%.*}.lo
24826 +# func_arith arithmetic-term...
24827 +func_arith ()
24829 + func_arith_result=$(( $[*] ))
24832 +# func_len string
24833 +# STRING may not start with a hyphen.
24834 +func_len ()
24836 + func_len_result=${#1}
24839 +_LT_EOF
24840 + ;;
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.
24847 +func_dirname ()
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}"
24853 + else
24854 + func_dirname_result="$func_dirname_result${2}"
24855 + fi
24858 +# func_basename file
24859 +func_basename ()
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
24874 +func_stripname ()
24876 + case ${2} in
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}\$%%"`;;
24881 + esac
24884 +# sed scripts:
24885 +my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
24886 +my_sed_long_arg='1s/^-[[^=]]*=//'
24888 +# func_opt_split
24889 +func_opt_split ()
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
24896 +func_lo2o ()
24898 + func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
24901 +# func_xform libobj-or-source
24902 +func_xform ()
24904 + func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
24907 +# func_arith arithmetic-term...
24908 +func_arith ()
24910 + func_arith_result=`expr "$[@]"`
24913 +# func_len string
24914 +# STRING may not start with a hyphen.
24915 +func_len ()
24917 + func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
24920 +_LT_EOF
24921 +esac
24923 +case $lt_shell_append in
24924 + yes)
24925 + cat << \_LT_EOF >> "$cfgfile"
24927 +# func_append var value
24928 +# Append VALUE to the end of shell variable VAR.
24929 +func_append ()
24931 + eval "$[1]+=\$[2]"
24933 +_LT_EOF
24934 + ;;
24935 + *)
24936 + cat << \_LT_EOF >> "$cfgfile"
24938 +# func_append var value
24939 +# Append VALUE to the end of shell variable VAR.
24940 +func_append ()
24942 + eval "$[1]=\$$[1]\$[2]"
24945 +_LT_EOF
24946 + ;;
24947 + esac