| 1 | --- a/libcharset/configure.ac |
| 2 | +++ b/libcharset/configure.ac |
| 3 | @@ -16,17 +16,17 @@ dnl along with the GNU CHARSET Library; |
| 4 | dnl write to the Free Software Foundation, Inc., 51 Franklin Street, |
| 5 | dnl Fifth Floor, Boston, MA 02110-1301, USA. |
| 6 | |
| 7 | -AC_PREREQ(2.13) |
| 8 | +AC_PREREQ(2.61) |
| 9 | +AC_INIT([libcharset],[1.4] ) |
| 10 | +AC_CONFIG_SRCDIR([lib/localcharset.c]) |
| 11 | |
| 12 | -PACKAGE=libcharset |
| 13 | -VERSION=1.4 |
| 14 | - |
| 15 | -AC_INIT(lib/localcharset.c) |
| 16 | AC_CONFIG_AUX_DIR(build-aux) |
| 17 | AC_CONFIG_HEADER(config.h) |
| 18 | AC_PROG_MAKE_SET |
| 19 | -AC_SUBST(PACKAGE) |
| 20 | -AC_SUBST(VERSION) |
| 21 | +dnl AC_SUBST(PACKAGE) |
| 22 | +dnl AC_SUBST(VERSION) |
| 23 | + |
| 24 | +AC_CONFIG_MACRO_DIR([m4]) |
| 25 | |
| 26 | dnl checks for basic programs |
| 27 | |
| 28 | --- a/configure.ac |
| 29 | +++ b/configure.ac |
| 30 | @@ -24,6 +24,8 @@ AM_INIT_AUTOMAKE(libiconv, 1.11) |
| 31 | AC_CONFIG_HEADERS(config.h lib/config.h) |
| 32 | AC_PROG_MAKE_SET |
| 33 | |
| 34 | +AC_CONFIG_MACRO_DIR([m4]) |
| 35 | + |
| 36 | dnl checks for basic programs |
| 37 | |
| 38 | AC_PROG_CC |
| 39 | --- a/libcharset/m4/libtool.m4 |
| 40 | +++ b/libcharset/m4/libtool.m4 |
| 41 | @@ -1,107 +1,186 @@ |
| 42 | # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- |
| 43 | -## Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006 |
| 44 | -## Free Software Foundation, Inc. |
| 45 | -## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
| 46 | -## |
| 47 | -## This file is free software; the Free Software Foundation gives |
| 48 | -## unlimited permission to copy and/or distribute it, with or without |
| 49 | -## modifications, as long as this notice is preserved. |
| 50 | - |
| 51 | -# serial 48 AC_PROG_LIBTOOL |
| 52 | - |
| 53 | - |
| 54 | -# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) |
| 55 | -# ----------------------------------------------------------- |
| 56 | -# If this macro is not defined by Autoconf, define it here. |
| 57 | -m4_ifdef([AC_PROVIDE_IFELSE], |
| 58 | - [], |
| 59 | - [m4_define([AC_PROVIDE_IFELSE], |
| 60 | - [m4_ifdef([AC_PROVIDE_$1], |
| 61 | - [$2], [$3])])]) |
| 62 | +# |
| 63 | +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
| 64 | +# 2006, 2007, 2008 Free Software Foundation, Inc. |
| 65 | +# Written by Gordon Matzigkeit, 1996 |
| 66 | +# |
| 67 | +# This file is free software; the Free Software Foundation gives |
| 68 | +# unlimited permission to copy and/or distribute it, with or without |
| 69 | +# modifications, as long as this notice is preserved. |
| 70 | + |
| 71 | +m4_define([_LT_COPYING], [dnl |
| 72 | +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
| 73 | +# 2006, 2007, 2008 Free Software Foundation, Inc. |
| 74 | +# Written by Gordon Matzigkeit, 1996 |
| 75 | +# |
| 76 | +# This file is part of GNU Libtool. |
| 77 | +# |
| 78 | +# GNU Libtool is free software; you can redistribute it and/or |
| 79 | +# modify it under the terms of the GNU General Public License as |
| 80 | +# published by the Free Software Foundation; either version 2 of |
| 81 | +# the License, or (at your option) any later version. |
| 82 | +# |
| 83 | +# As a special exception to the GNU General Public License, |
| 84 | +# if you distribute this file as part of a program or library that |
| 85 | +# is built using GNU Libtool, you may include this file under the |
| 86 | +# same distribution terms that you use for the rest of that program. |
| 87 | +# |
| 88 | +# GNU Libtool is distributed in the hope that it will be useful, |
| 89 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 90 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 91 | +# GNU General Public License for more details. |
| 92 | +# |
| 93 | +# You should have received a copy of the GNU General Public License |
| 94 | +# along with GNU Libtool; see the file COPYING. If not, a copy |
| 95 | +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or |
| 96 | +# obtained by writing to the Free Software Foundation, Inc., |
| 97 | +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 98 | +]) |
| 99 | |
| 100 | +# serial 56 LT_INIT |
| 101 | |
| 102 | -# AC_PROG_LIBTOOL |
| 103 | -# --------------- |
| 104 | -AC_DEFUN([AC_PROG_LIBTOOL], |
| 105 | -[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl |
| 106 | -dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX |
| 107 | -dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX. |
| 108 | - AC_PROVIDE_IFELSE([AC_PROG_CXX], |
| 109 | - [AC_LIBTOOL_CXX], |
| 110 | - [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX |
| 111 | - ])]) |
| 112 | -dnl And a similar setup for Fortran 77 support |
| 113 | - AC_PROVIDE_IFELSE([AC_PROG_F77], |
| 114 | - [AC_LIBTOOL_F77], |
| 115 | - [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77 |
| 116 | -])]) |
| 117 | - |
| 118 | -dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly. |
| 119 | -dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run |
| 120 | -dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both. |
| 121 | - AC_PROVIDE_IFELSE([AC_PROG_GCJ], |
| 122 | - [AC_LIBTOOL_GCJ], |
| 123 | - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], |
| 124 | - [AC_LIBTOOL_GCJ], |
| 125 | - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ], |
| 126 | - [AC_LIBTOOL_GCJ], |
| 127 | - [ifdef([AC_PROG_GCJ], |
| 128 | - [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])]) |
| 129 | - ifdef([A][M_PROG_GCJ], |
| 130 | - [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])]) |
| 131 | - ifdef([LT_AC_PROG_GCJ], |
| 132 | - [define([LT_AC_PROG_GCJ], |
| 133 | - defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])]) |
| 134 | -])])# AC_PROG_LIBTOOL |
| 135 | |
| 136 | +# LT_PREREQ(VERSION) |
| 137 | +# ------------------ |
| 138 | +# Complain and exit if this libtool version is less that VERSION. |
| 139 | +m4_defun([LT_PREREQ], |
| 140 | +[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, |
| 141 | + [m4_default([$3], |
| 142 | + [m4_fatal([Libtool version $1 or higher is required], |
| 143 | + 63)])], |
| 144 | + [$2])]) |
| 145 | |
| 146 | -# _AC_PROG_LIBTOOL |
| 147 | -# ---------------- |
| 148 | -AC_DEFUN([_AC_PROG_LIBTOOL], |
| 149 | -[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl |
| 150 | -AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl |
| 151 | -AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl |
| 152 | -AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl |
| 153 | + |
| 154 | +# _LT_CHECK_BUILDDIR |
| 155 | +# ------------------ |
| 156 | +# Complain if the absolute build directory name contains unusual characters |
| 157 | +m4_defun([_LT_CHECK_BUILDDIR], |
| 158 | +[case `pwd` in |
| 159 | + *\ * | *\ *) |
| 160 | + AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; |
| 161 | +esac |
| 162 | +]) |
| 163 | + |
| 164 | + |
| 165 | +# LT_INIT([OPTIONS]) |
| 166 | +# ------------------ |
| 167 | +AC_DEFUN([LT_INIT], |
| 168 | +[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT |
| 169 | +AC_BEFORE([$0], [LT_LANG])dnl |
| 170 | +AC_BEFORE([$0], [LT_OUTPUT])dnl |
| 171 | +AC_BEFORE([$0], [LTDL_INIT])dnl |
| 172 | +m4_require([_LT_CHECK_BUILDDIR])dnl |
| 173 | + |
| 174 | +dnl Autoconf doesn't catch unexpanded LT_ macros by default: |
| 175 | +m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl |
| 176 | +m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl |
| 177 | +dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 |
| 178 | +dnl unless we require an AC_DEFUNed macro: |
| 179 | +AC_REQUIRE([LTOPTIONS_VERSION])dnl |
| 180 | +AC_REQUIRE([LTSUGAR_VERSION])dnl |
| 181 | +AC_REQUIRE([LTVERSION_VERSION])dnl |
| 182 | +AC_REQUIRE([LTOBSOLETE_VERSION])dnl |
| 183 | +m4_require([_LT_PROG_LTMAIN])dnl |
| 184 | + |
| 185 | +dnl Parse OPTIONS |
| 186 | +_LT_SET_OPTIONS([$0], [$1]) |
| 187 | |
| 188 | # This can be used to rebuild libtool when needed |
| 189 | -LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
| 190 | +LIBTOOL_DEPS="$ltmain" |
| 191 | |
| 192 | # Always use our own libtool. |
| 193 | -LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
| 194 | +LIBTOOL='$(SHELL) $(top_builddir)' |
| 195 | +LIBTOOL="$LIBTOOL/$host_alias-libtool" |
| 196 | AC_SUBST(LIBTOOL)dnl |
| 197 | |
| 198 | -# Prevent multiple expansion |
| 199 | -define([AC_PROG_LIBTOOL], []) |
| 200 | -])# _AC_PROG_LIBTOOL |
| 201 | +_LT_SETUP |
| 202 | |
| 203 | +# Only expand once: |
| 204 | +m4_define([LT_INIT]) |
| 205 | +])# LT_INIT |
| 206 | + |
| 207 | +# Old names: |
| 208 | +AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT]) |
| 209 | +AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT]) |
| 210 | +dnl aclocal-1.4 backwards compatibility: |
| 211 | +dnl AC_DEFUN([AC_PROG_LIBTOOL], []) |
| 212 | +dnl AC_DEFUN([AM_PROG_LIBTOOL], []) |
| 213 | |
| 214 | -# AC_LIBTOOL_SETUP |
| 215 | -# ---------------- |
| 216 | -AC_DEFUN([AC_LIBTOOL_SETUP], |
| 217 | -[AC_PREREQ(2.50)dnl |
| 218 | -AC_REQUIRE([AC_ENABLE_SHARED])dnl |
| 219 | -AC_REQUIRE([AC_ENABLE_STATIC])dnl |
| 220 | -AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl |
| 221 | -AC_REQUIRE([AC_CANONICAL_HOST])dnl |
| 222 | + |
| 223 | +# _LT_CC_BASENAME(CC) |
| 224 | +# ------------------- |
| 225 | +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. |
| 226 | +m4_defun([_LT_CC_BASENAME], |
| 227 | +[for cc_temp in $1""; do |
| 228 | + case $cc_temp in |
| 229 | + compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; |
| 230 | + distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; |
| 231 | + \-*) ;; |
| 232 | + *) break;; |
| 233 | + esac |
| 234 | +done |
| 235 | +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 236 | +]) |
| 237 | + |
| 238 | + |
| 239 | +# _LT_FILEUTILS_DEFAULTS |
| 240 | +# ---------------------- |
| 241 | +# It is okay to use these file commands and assume they have been set |
| 242 | +# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'. |
| 243 | +m4_defun([_LT_FILEUTILS_DEFAULTS], |
| 244 | +[: ${CP="cp -f"} |
| 245 | +: ${MV="mv -f"} |
| 246 | +: ${RM="rm -f"} |
| 247 | +])# _LT_FILEUTILS_DEFAULTS |
| 248 | + |
| 249 | + |
| 250 | +# _LT_SETUP |
| 251 | +# --------- |
| 252 | +m4_defun([_LT_SETUP], |
| 253 | +[AC_REQUIRE([AC_CANONICAL_HOST])dnl |
| 254 | AC_REQUIRE([AC_CANONICAL_BUILD])dnl |
| 255 | +_LT_DECL([], [host_alias], [0], [The host system])dnl |
| 256 | +_LT_DECL([], [host], [0])dnl |
| 257 | +_LT_DECL([], [host_os], [0])dnl |
| 258 | +dnl |
| 259 | +_LT_DECL([], [build_alias], [0], [The build system])dnl |
| 260 | +_LT_DECL([], [build], [0])dnl |
| 261 | +_LT_DECL([], [build_os], [0])dnl |
| 262 | +dnl |
| 263 | AC_REQUIRE([AC_PROG_CC])dnl |
| 264 | -AC_REQUIRE([AC_PROG_LD])dnl |
| 265 | -AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl |
| 266 | -AC_REQUIRE([AC_PROG_NM])dnl |
| 267 | - |
| 268 | +AC_REQUIRE([LT_PATH_LD])dnl |
| 269 | +AC_REQUIRE([LT_PATH_NM])dnl |
| 270 | +dnl |
| 271 | AC_REQUIRE([AC_PROG_LN_S])dnl |
| 272 | -AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl |
| 273 | -# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
| 274 | -AC_REQUIRE([AC_OBJEXT])dnl |
| 275 | -AC_REQUIRE([AC_EXEEXT])dnl |
| 276 | +test -z "$LN_S" && LN_S="ln -s" |
| 277 | +_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl |
| 278 | dnl |
| 279 | +AC_REQUIRE([LT_CMD_MAX_LEN])dnl |
| 280 | +_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl |
| 281 | +_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl |
| 282 | +dnl |
| 283 | +m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
| 284 | +m4_require([_LT_CHECK_SHELL_FEATURES])dnl |
| 285 | +m4_require([_LT_CMD_RELOAD])dnl |
| 286 | +m4_require([_LT_CHECK_MAGIC_METHOD])dnl |
| 287 | +m4_require([_LT_CMD_OLD_ARCHIVE])dnl |
| 288 | +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl |
| 289 | + |
| 290 | +_LT_CONFIG_LIBTOOL_INIT([ |
| 291 | +# See if we are running on zsh, and set the options which allow our |
| 292 | +# commands through without removal of \ escapes INIT. |
| 293 | +if test -n "\${ZSH_VERSION+set}" ; then |
| 294 | + setopt NO_GLOB_SUBST |
| 295 | +fi |
| 296 | +]) |
| 297 | +if test -n "${ZSH_VERSION+set}" ; then |
| 298 | + setopt NO_GLOB_SUBST |
| 299 | +fi |
| 300 | |
| 301 | -AC_LIBTOOL_SYS_MAX_CMD_LEN |
| 302 | -AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE |
| 303 | -AC_LIBTOOL_OBJDIR |
| 304 | +_LT_CHECK_OBJDIR |
| 305 | |
| 306 | -AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl |
| 307 | -_LT_AC_PROG_ECHO_BACKSLASH |
| 308 | +m4_require([_LT_TAG_COMPILER])dnl |
| 309 | +_LT_PROG_ECHO_BACKSLASH |
| 310 | |
| 311 | case $host_os in |
| 312 | aix3*) |
| 313 | @@ -117,6307 +196,6803 @@ esac |
| 314 | |
| 315 | # Sed substitution that helps us do robust quoting. It backslashifies |
| 316 | # metacharacters that are still active within double-quoted strings. |
| 317 | -Xsed='sed -e 1s/^X//' |
| 318 | -[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'] |
| 319 | +sed_quote_subst='s/\([["`$\\]]\)/\\\1/g' |
| 320 | |
| 321 | # Same as above, but do not quote variable references. |
| 322 | -[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'] |
| 323 | +double_quote_subst='s/\([["`\\]]\)/\\\1/g' |
| 324 | |
| 325 | # Sed substitution to delay expansion of an escaped shell variable in a |
| 326 | # double_quote_subst'ed string. |
| 327 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 328 | |
| 329 | +# Sed substitution to delay expansion of an escaped single quote. |
| 330 | +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' |
| 331 | + |
| 332 | # Sed substitution to avoid accidental globbing in evaled expressions |
| 333 | no_glob_subst='s/\*/\\\*/g' |
| 334 | |
| 335 | -# Constants: |
| 336 | -rm="rm -f" |
| 337 | - |
| 338 | # Global variables: |
| 339 | -default_ofile=libtool |
| 340 | +ofile=${host_alias}-libtool |
| 341 | can_build_shared=yes |
| 342 | |
| 343 | # All known linkers require a `.a' archive for static linking (except MSVC, |
| 344 | # which needs '.lib'). |
| 345 | libext=a |
| 346 | -ltmain="$ac_aux_dir/ltmain.sh" |
| 347 | -ofile="$default_ofile" |
| 348 | -with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 349 | |
| 350 | -AC_CHECK_TOOL(AR, ar, false) |
| 351 | -AC_CHECK_TOOL(RANLIB, ranlib, :) |
| 352 | -AC_CHECK_TOOL(STRIP, strip, :) |
| 353 | +with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 354 | |
| 355 | old_CC="$CC" |
| 356 | old_CFLAGS="$CFLAGS" |
| 357 | |
| 358 | # Set sane defaults for various variables |
| 359 | -test -z "$AR" && AR=ar |
| 360 | -test -z "$AR_FLAGS" && AR_FLAGS=cru |
| 361 | -test -z "$AS" && AS=as |
| 362 | test -z "$CC" && CC=cc |
| 363 | test -z "$LTCC" && LTCC=$CC |
| 364 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
| 365 | -test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 366 | test -z "$LD" && LD=ld |
| 367 | -test -z "$LN_S" && LN_S="ln -s" |
| 368 | -test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 369 | -test -z "$NM" && NM=nm |
| 370 | -test -z "$SED" && SED=sed |
| 371 | -test -z "$OBJDUMP" && OBJDUMP=objdump |
| 372 | -test -z "$RANLIB" && RANLIB=: |
| 373 | -test -z "$STRIP" && STRIP=: |
| 374 | test -z "$ac_objext" && ac_objext=o |
| 375 | |
| 376 | -# Determine commands to create old-style static archives. |
| 377 | -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
| 378 | -old_postinstall_cmds='chmod 644 $oldlib' |
| 379 | -old_postuninstall_cmds= |
| 380 | - |
| 381 | -if test -n "$RANLIB"; then |
| 382 | - case $host_os in |
| 383 | - openbsd*) |
| 384 | - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
| 385 | - ;; |
| 386 | - *) |
| 387 | - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
| 388 | - ;; |
| 389 | - esac |
| 390 | - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
| 391 | -fi |
| 392 | - |
| 393 | _LT_CC_BASENAME([$compiler]) |
| 394 | |
| 395 | # Only perform the check for file, if the check method requires it |
| 396 | +test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 397 | case $deplibs_check_method in |
| 398 | file_magic*) |
| 399 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
| 400 | - AC_PATH_MAGIC |
| 401 | + _LT_PATH_MAGIC |
| 402 | fi |
| 403 | ;; |
| 404 | esac |
| 405 | |
| 406 | -AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no) |
| 407 | -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], |
| 408 | -enable_win32_dll=yes, enable_win32_dll=no) |
| 409 | - |
| 410 | -AC_ARG_ENABLE([libtool-lock], |
| 411 | - [AC_HELP_STRING([--disable-libtool-lock], |
| 412 | - [avoid locking (might break parallel builds)])]) |
| 413 | -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 414 | +# Use C for the default configuration in the libtool script |
| 415 | +LT_SUPPORTED_TAG([CC]) |
| 416 | +_LT_LANG_C_CONFIG |
| 417 | +_LT_LANG_DEFAULT_CONFIG |
| 418 | +_LT_CONFIG_COMMANDS |
| 419 | +])# _LT_SETUP |
| 420 | |
| 421 | -AC_ARG_WITH([pic], |
| 422 | - [AC_HELP_STRING([--with-pic], |
| 423 | - [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], |
| 424 | - [pic_mode="$withval"], |
| 425 | - [pic_mode=default]) |
| 426 | -test -z "$pic_mode" && pic_mode=default |
| 427 | |
| 428 | -# Use C for the default configuration in the libtool script |
| 429 | -tagname= |
| 430 | -AC_LIBTOOL_LANG_C_CONFIG |
| 431 | -_LT_AC_TAGCONFIG |
| 432 | -])# AC_LIBTOOL_SETUP |
| 433 | +# _LT_PROG_LTMAIN |
| 434 | +# --------------- |
| 435 | +# Note that this code is called both from `configure', and `config.status' |
| 436 | +# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, |
| 437 | +# `config.status' has no value for ac_aux_dir unless we are using Automake, |
| 438 | +# so we pass a copy along to make sure it has a sensible value anyway. |
| 439 | +m4_defun([_LT_PROG_LTMAIN], |
| 440 | +[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl |
| 441 | +_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) |
| 442 | +ltmain="$ac_aux_dir/ltmain.sh" |
| 443 | +])# _LT_PROG_LTMAIN |
| 444 | |
| 445 | |
| 446 | -# _LT_AC_SYS_COMPILER |
| 447 | -# ------------------- |
| 448 | -AC_DEFUN([_LT_AC_SYS_COMPILER], |
| 449 | -[AC_REQUIRE([AC_PROG_CC])dnl |
| 450 | +## ------------------------------------- ## |
| 451 | +## Accumulate code for creating libtool. ## |
| 452 | +## ------------------------------------- ## |
| 453 | + |
| 454 | +# So that we can recreate a full libtool script including additional |
| 455 | +# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS |
| 456 | +# in macros and then make a single call at the end using the `libtool' |
| 457 | +# label. |
| 458 | + |
| 459 | + |
| 460 | +# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) |
| 461 | +# ---------------------------------------- |
| 462 | +# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later. |
| 463 | +m4_define([_LT_CONFIG_LIBTOOL_INIT], |
| 464 | +[m4_ifval([$1], |
| 465 | + [m4_append([_LT_OUTPUT_LIBTOOL_INIT], |
| 466 | + [$1 |
| 467 | +])])]) |
| 468 | + |
| 469 | +# Initialize. |
| 470 | +m4_define([_LT_OUTPUT_LIBTOOL_INIT]) |
| 471 | + |
| 472 | + |
| 473 | +# _LT_CONFIG_LIBTOOL([COMMANDS]) |
| 474 | +# ------------------------------ |
| 475 | +# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later. |
| 476 | +m4_define([_LT_CONFIG_LIBTOOL], |
| 477 | +[m4_ifval([$1], |
| 478 | + [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS], |
| 479 | + [$1 |
| 480 | +])])]) |
| 481 | + |
| 482 | +# Initialize. |
| 483 | +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS]) |
| 484 | + |
| 485 | + |
| 486 | +# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS]) |
| 487 | +# ----------------------------------------------------- |
| 488 | +m4_defun([_LT_CONFIG_SAVE_COMMANDS], |
| 489 | +[_LT_CONFIG_LIBTOOL([$1]) |
| 490 | +_LT_CONFIG_LIBTOOL_INIT([$2]) |
| 491 | +]) |
| 492 | |
| 493 | -# If no C compiler was specified, use CC. |
| 494 | -LTCC=${LTCC-"$CC"} |
| 495 | |
| 496 | -# If no C compiler flags were specified, use CFLAGS. |
| 497 | -LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 498 | +# _LT_FORMAT_COMMENT([COMMENT]) |
| 499 | +# ----------------------------- |
| 500 | +# Add leading comment marks to the start of each line, and a trailing |
| 501 | +# full-stop to the whole comment if one is not present already. |
| 502 | +m4_define([_LT_FORMAT_COMMENT], |
| 503 | +[m4_ifval([$1], [ |
| 504 | +m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])], |
| 505 | + [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.]) |
| 506 | +)]) |
| 507 | |
| 508 | -# Allow CC to be a program name with arguments. |
| 509 | -compiler=$CC |
| 510 | -])# _LT_AC_SYS_COMPILER |
| 511 | |
| 512 | |
| 513 | -# _LT_CC_BASENAME(CC) |
| 514 | -# ------------------- |
| 515 | -# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. |
| 516 | -AC_DEFUN([_LT_CC_BASENAME], |
| 517 | -[for cc_temp in $1""; do |
| 518 | - case $cc_temp in |
| 519 | - compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; |
| 520 | - distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; |
| 521 | - \-*) ;; |
| 522 | - *) break;; |
| 523 | - esac |
| 524 | -done |
| 525 | -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 526 | +## ------------------------ ## |
| 527 | +## FIXME: Eliminate VARNAME ## |
| 528 | +## ------------------------ ## |
| 529 | + |
| 530 | + |
| 531 | +# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?]) |
| 532 | +# ------------------------------------------------------------------- |
| 533 | +# CONFIGNAME is the name given to the value in the libtool script. |
| 534 | +# VARNAME is the (base) name used in the configure script. |
| 535 | +# VALUE may be 0, 1 or 2 for a computed quote escaped value based on |
| 536 | +# VARNAME. Any other value will be used directly. |
| 537 | +m4_define([_LT_DECL], |
| 538 | +[lt_if_append_uniq([lt_decl_varnames], [$2], [, ], |
| 539 | + [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name], |
| 540 | + [m4_ifval([$1], [$1], [$2])]) |
| 541 | + lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3]) |
| 542 | + m4_ifval([$4], |
| 543 | + [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])]) |
| 544 | + lt_dict_add_subkey([lt_decl_dict], [$2], |
| 545 | + [tagged?], [m4_ifval([$5], [yes], [no])])]) |
| 546 | ]) |
| 547 | |
| 548 | |
| 549 | -# _LT_COMPILER_BOILERPLATE |
| 550 | -# ------------------------ |
| 551 | -# Check for compiler boilerplate output or warnings with |
| 552 | -# the simple compiler test code. |
| 553 | -AC_DEFUN([_LT_COMPILER_BOILERPLATE], |
| 554 | -[ac_outfile=conftest.$ac_objext |
| 555 | -printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 556 | -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 557 | -_lt_compiler_boilerplate=`cat conftest.err` |
| 558 | -$rm conftest* |
| 559 | -])# _LT_COMPILER_BOILERPLATE |
| 560 | - |
| 561 | +# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION]) |
| 562 | +# -------------------------------------------------------- |
| 563 | +m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])]) |
| 564 | + |
| 565 | + |
| 566 | +# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...]) |
| 567 | +# ------------------------------------------------ |
| 568 | +m4_define([lt_decl_tag_varnames], |
| 569 | +[_lt_decl_filter([tagged?], [yes], $@)]) |
| 570 | + |
| 571 | + |
| 572 | +# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..]) |
| 573 | +# --------------------------------------------------------- |
| 574 | +m4_define([_lt_decl_filter], |
| 575 | +[m4_case([$#], |
| 576 | + [0], [m4_fatal([$0: too few arguments: $#])], |
| 577 | + [1], [m4_fatal([$0: too few arguments: $#: $1])], |
| 578 | + [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)], |
| 579 | + [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)], |
| 580 | + [lt_dict_filter([lt_decl_dict], $@)])[]dnl |
| 581 | +]) |
| 582 | |
| 583 | -# _LT_LINKER_BOILERPLATE |
| 584 | -# ---------------------- |
| 585 | -# Check for linker boilerplate output or warnings with |
| 586 | -# the simple link test code. |
| 587 | -AC_DEFUN([_LT_LINKER_BOILERPLATE], |
| 588 | -[ac_outfile=conftest.$ac_objext |
| 589 | -printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 590 | -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 591 | -_lt_linker_boilerplate=`cat conftest.err` |
| 592 | -$rm conftest* |
| 593 | -])# _LT_LINKER_BOILERPLATE |
| 594 | |
| 595 | +# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...]) |
| 596 | +# -------------------------------------------------- |
| 597 | +m4_define([lt_decl_quote_varnames], |
| 598 | +[_lt_decl_filter([value], [1], $@)]) |
| 599 | + |
| 600 | + |
| 601 | +# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...]) |
| 602 | +# --------------------------------------------------- |
| 603 | +m4_define([lt_decl_dquote_varnames], |
| 604 | +[_lt_decl_filter([value], [2], $@)]) |
| 605 | + |
| 606 | + |
| 607 | +# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...]) |
| 608 | +# --------------------------------------------------- |
| 609 | +m4_define([lt_decl_varnames_tagged], |
| 610 | +[_$0(m4_quote(m4_default([$1], [[, ]])), |
| 611 | + m4_quote(m4_if([$2], [], |
| 612 | + m4_quote(lt_decl_tag_varnames), |
| 613 | + m4_quote(m4_shift($@)))), |
| 614 | + m4_split(m4_normalize(m4_quote(_LT_TAGS))))]) |
| 615 | +m4_define([_lt_decl_varnames_tagged], [lt_combine([$1], [$2], [_], $3)]) |
| 616 | + |
| 617 | + |
| 618 | +# lt_decl_all_varnames([SEPARATOR], [VARNAME1...]) |
| 619 | +# ------------------------------------------------ |
| 620 | +m4_define([lt_decl_all_varnames], |
| 621 | +[_$0(m4_quote(m4_default([$1], [[, ]])), |
| 622 | + m4_if([$2], [], |
| 623 | + m4_quote(lt_decl_varnames), |
| 624 | + m4_quote(m4_shift($@))))[]dnl |
| 625 | +]) |
| 626 | +m4_define([_lt_decl_all_varnames], |
| 627 | +[lt_join($@, lt_decl_varnames_tagged([$1], |
| 628 | + lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl |
| 629 | +]) |
| 630 | |
| 631 | -# _LT_AC_SYS_LIBPATH_AIX |
| 632 | -# ---------------------- |
| 633 | -# Links a minimal program and checks the executable |
| 634 | -# for the system default hardcoded library path. In most cases, |
| 635 | -# this is /usr/lib:/lib, but when the MPI compilers are used |
| 636 | -# the location of the communication and MPI libs are included too. |
| 637 | -# If we don't find anything, use the default library path according |
| 638 | -# to the aix ld manual. |
| 639 | -AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX], |
| 640 | -[AC_LINK_IFELSE(AC_LANG_PROGRAM,[ |
| 641 | -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 642 | -}'` |
| 643 | -# Check for a 64-bit object if we didn't find anything. |
| 644 | -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 645 | -}'`; fi],[]) |
| 646 | -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 647 | -])# _LT_AC_SYS_LIBPATH_AIX |
| 648 | |
| 649 | +# _LT_CONFIG_STATUS_DECLARE([VARNAME]) |
| 650 | +# ------------------------------------ |
| 651 | +# Quote a variable value, and forward it to `config.status' so that its |
| 652 | +# declaration there will have the same value as in `configure'. VARNAME |
| 653 | +# must have a single quote delimited value for this to work. |
| 654 | +m4_define([_LT_CONFIG_STATUS_DECLARE], |
| 655 | +[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`']) |
| 656 | |
| 657 | -# _LT_AC_SHELL_INIT(ARG) |
| 658 | -# ---------------------- |
| 659 | -AC_DEFUN([_LT_AC_SHELL_INIT], |
| 660 | -[ifdef([AC_DIVERSION_NOTICE], |
| 661 | - [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], |
| 662 | - [AC_DIVERT_PUSH(NOTICE)]) |
| 663 | -$1 |
| 664 | -AC_DIVERT_POP |
| 665 | -])# _LT_AC_SHELL_INIT |
| 666 | |
| 667 | +# _LT_CONFIG_STATUS_DECLARATIONS |
| 668 | +# ------------------------------ |
| 669 | +# We delimit libtool config variables with single quotes, so when |
| 670 | +# we write them to config.status, we have to be sure to quote all |
| 671 | +# embedded single quotes properly. In configure, this macro expands |
| 672 | +# each variable declared with _LT_DECL (and _LT_TAGDECL) into: |
| 673 | +# |
| 674 | +# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`' |
| 675 | +m4_defun([_LT_CONFIG_STATUS_DECLARATIONS], |
| 676 | +[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), |
| 677 | + [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) |
| 678 | |
| 679 | -# _LT_AC_PROG_ECHO_BACKSLASH |
| 680 | -# -------------------------- |
| 681 | -# Add some code to the start of the generated configure script which |
| 682 | -# will find an echo command which doesn't interpret backslashes. |
| 683 | -AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH], |
| 684 | -[_LT_AC_SHELL_INIT([ |
| 685 | -# Check that we are running under the correct shell. |
| 686 | -SHELL=${CONFIG_SHELL-/bin/sh} |
| 687 | |
| 688 | -case X$ECHO in |
| 689 | -X*--fallback-echo) |
| 690 | - # Remove one level of quotation (which was required for Make). |
| 691 | - ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` |
| 692 | - ;; |
| 693 | -esac |
| 694 | +# _LT_LIBTOOL_TAGS |
| 695 | +# ---------------- |
| 696 | +# Output comment and list of tags supported by the script |
| 697 | +m4_defun([_LT_LIBTOOL_TAGS], |
| 698 | +[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl |
| 699 | +available_tags="_LT_TAGS"dnl |
| 700 | +]) |
| 701 | |
| 702 | -echo=${ECHO-echo} |
| 703 | -if test "X[$]1" = X--no-reexec; then |
| 704 | - # Discard the --no-reexec flag, and continue. |
| 705 | - shift |
| 706 | -elif test "X[$]1" = X--fallback-echo; then |
| 707 | - # Avoid inline document here, it may be left over |
| 708 | - : |
| 709 | -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then |
| 710 | - # Yippee, $echo works! |
| 711 | - : |
| 712 | -else |
| 713 | - # Restart under the correct shell. |
| 714 | - exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} |
| 715 | -fi |
| 716 | |
| 717 | -if test "X[$]1" = X--fallback-echo; then |
| 718 | - # used as fallback echo |
| 719 | - shift |
| 720 | - cat <<EOF |
| 721 | -[$]* |
| 722 | -EOF |
| 723 | - exit 0 |
| 724 | -fi |
| 725 | +# _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) |
| 726 | +# ----------------------------------- |
| 727 | +# Extract the dictionary values for VARNAME (optionally with TAG) and |
| 728 | +# expand to a commented shell variable setting: |
| 729 | +# |
| 730 | +# # Some comment about what VAR is for. |
| 731 | +# visible_name=$lt_internal_name |
| 732 | +m4_define([_LT_LIBTOOL_DECLARE], |
| 733 | +[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], |
| 734 | + [description])))[]dnl |
| 735 | +m4_pushdef([_libtool_name], |
| 736 | + m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl |
| 737 | +m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])), |
| 738 | + [0], [_libtool_name=[$]$1], |
| 739 | + [1], [_libtool_name=$lt_[]$1], |
| 740 | + [2], [_libtool_name=$lt_[]$1], |
| 741 | + [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl |
| 742 | +m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl |
| 743 | +]) |
| 744 | |
| 745 | -# The HP-UX ksh and POSIX shell print the target directory to stdout |
| 746 | -# if CDPATH is set. |
| 747 | -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 748 | |
| 749 | -if test -z "$ECHO"; then |
| 750 | -if test "X${echo_test_string+set}" != Xset; then |
| 751 | -# find a string as large as possible, as long as the shell can cope with it |
| 752 | - for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do |
| 753 | - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
| 754 | - if (echo_test_string=`eval $cmd`) 2>/dev/null && |
| 755 | - echo_test_string=`eval $cmd` && |
| 756 | - (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
| 757 | - then |
| 758 | - break |
| 759 | - fi |
| 760 | - done |
| 761 | -fi |
| 762 | +# _LT_LIBTOOL_CONFIG_VARS |
| 763 | +# ----------------------- |
| 764 | +# Produce commented declarations of non-tagged libtool config variables |
| 765 | +# suitable for insertion in the LIBTOOL CONFIG section of the `libtool' |
| 766 | +# script. Tagged libtool config variables (even for the LIBTOOL CONFIG |
| 767 | +# section) are produced by _LT_LIBTOOL_TAG_VARS. |
| 768 | +m4_defun([_LT_LIBTOOL_CONFIG_VARS], |
| 769 | +[m4_foreach([_lt_var], |
| 770 | + m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)), |
| 771 | + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])]) |
| 772 | |
| 773 | -if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
| 774 | - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
| 775 | - test "X$echo_testing_string" = "X$echo_test_string"; then |
| 776 | - : |
| 777 | -else |
| 778 | - # The Solaris, AIX, and Digital Unix default echo programs unquote |
| 779 | - # backslashes. This makes it impossible to quote backslashes using |
| 780 | - # echo "$something" | sed 's/\\/\\\\/g' |
| 781 | - # |
| 782 | - # So, first we look for a working echo in the user's PATH. |
| 783 | |
| 784 | - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 785 | - for dir in $PATH /usr/ucb; do |
| 786 | - IFS="$lt_save_ifs" |
| 787 | - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
| 788 | - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
| 789 | - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
| 790 | - test "X$echo_testing_string" = "X$echo_test_string"; then |
| 791 | - echo="$dir/echo" |
| 792 | - break |
| 793 | - fi |
| 794 | - done |
| 795 | - IFS="$lt_save_ifs" |
| 796 | +# _LT_LIBTOOL_TAG_VARS(TAG) |
| 797 | +# ------------------------- |
| 798 | +m4_define([_LT_LIBTOOL_TAG_VARS], |
| 799 | +[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames), |
| 800 | + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])]) |
| 801 | |
| 802 | - if test "X$echo" = Xecho; then |
| 803 | - # We didn't find a better echo, so look for alternatives. |
| 804 | - if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && |
| 805 | - echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && |
| 806 | - test "X$echo_testing_string" = "X$echo_test_string"; then |
| 807 | - # This shell has a builtin print -r that does the trick. |
| 808 | - echo='print -r' |
| 809 | - elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && |
| 810 | - test "X$CONFIG_SHELL" != X/bin/ksh; then |
| 811 | - # If we have ksh, try running configure again with it. |
| 812 | - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
| 813 | - export ORIGINAL_CONFIG_SHELL |
| 814 | - CONFIG_SHELL=/bin/ksh |
| 815 | - export CONFIG_SHELL |
| 816 | - exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} |
| 817 | - else |
| 818 | - # Try using printf. |
| 819 | - echo='printf %s\n' |
| 820 | - if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
| 821 | - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
| 822 | - test "X$echo_testing_string" = "X$echo_test_string"; then |
| 823 | - # Cool, printf works |
| 824 | - : |
| 825 | - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && |
| 826 | - test "X$echo_testing_string" = 'X\t' && |
| 827 | - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 828 | - test "X$echo_testing_string" = "X$echo_test_string"; then |
| 829 | - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
| 830 | - export CONFIG_SHELL |
| 831 | - SHELL="$CONFIG_SHELL" |
| 832 | - export SHELL |
| 833 | - echo="$CONFIG_SHELL [$]0 --fallback-echo" |
| 834 | - elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && |
| 835 | - test "X$echo_testing_string" = 'X\t' && |
| 836 | - echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 837 | - test "X$echo_testing_string" = "X$echo_test_string"; then |
| 838 | - echo="$CONFIG_SHELL [$]0 --fallback-echo" |
| 839 | - else |
| 840 | - # maybe with a smaller string... |
| 841 | - prev=: |
| 842 | |
| 843 | - for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do |
| 844 | - if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null |
| 845 | - then |
| 846 | - break |
| 847 | - fi |
| 848 | - prev="$cmd" |
| 849 | - done |
| 850 | +# _LT_TAGVAR(VARNAME, [TAGNAME]) |
| 851 | +# ------------------------------ |
| 852 | +m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])]) |
| 853 | |
| 854 | - if test "$prev" != 'sed 50q "[$]0"'; then |
| 855 | - echo_test_string=`eval $prev` |
| 856 | - export echo_test_string |
| 857 | - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} |
| 858 | - else |
| 859 | - # Oops. We lost completely, so just stick with echo. |
| 860 | - echo=echo |
| 861 | - fi |
| 862 | - fi |
| 863 | - fi |
| 864 | - fi |
| 865 | -fi |
| 866 | -fi |
| 867 | |
| 868 | -# Copy echo and quote the copy suitably for passing to libtool from |
| 869 | -# the Makefile, instead of quoting the original, which is used later. |
| 870 | -ECHO=$echo |
| 871 | -if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then |
| 872 | - ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" |
| 873 | -fi |
| 874 | +# _LT_CONFIG_COMMANDS |
| 875 | +# ------------------- |
| 876 | +# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of |
| 877 | +# variables for single and double quote escaping we saved from calls |
| 878 | +# to _LT_DECL, we can put quote escaped variables declarations |
| 879 | +# into `config.status', and then the shell code to quote escape them in |
| 880 | +# for loops in `config.status'. Finally, any additional code accumulated |
| 881 | +# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. |
| 882 | +m4_defun([_LT_CONFIG_COMMANDS], |
| 883 | +[AC_PROVIDE_IFELSE([LT_OUTPUT], |
| 884 | + dnl If the libtool generation code has been placed in $CONFIG_LT, |
| 885 | + dnl instead of duplicating it all over again into config.status, |
| 886 | + dnl then we will have config.status run $CONFIG_LT later, so it |
| 887 | + dnl needs to know what name is stored there: |
| 888 | + [AC_CONFIG_COMMANDS([libtool], |
| 889 | + [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])], |
| 890 | + dnl If the libtool generation code is destined for config.status, |
| 891 | + dnl expand the accumulated commands and init code now: |
| 892 | + [AC_CONFIG_COMMANDS([libtool], |
| 893 | + [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])]) |
| 894 | +])#_LT_CONFIG_COMMANDS |
| 895 | |
| 896 | -AC_SUBST(ECHO) |
| 897 | -])])# _LT_AC_PROG_ECHO_BACKSLASH |
| 898 | |
| 899 | +# Initialize. |
| 900 | +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT], |
| 901 | +[ |
| 902 | |
| 903 | -# _LT_AC_LOCK |
| 904 | -# ----------- |
| 905 | -AC_DEFUN([_LT_AC_LOCK], |
| 906 | -[AC_ARG_ENABLE([libtool-lock], |
| 907 | - [AC_HELP_STRING([--disable-libtool-lock], |
| 908 | - [avoid locking (might break parallel builds)])]) |
| 909 | -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 910 | +# The HP-UX ksh and POSIX shell print the target directory to stdout |
| 911 | +# if CDPATH is set. |
| 912 | +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 913 | |
| 914 | -# Some flags need to be propagated to the compiler or linker for good |
| 915 | -# libtool support. |
| 916 | -case $host in |
| 917 | -ia64-*-hpux*) |
| 918 | - # Find out which ABI we are using. |
| 919 | - echo 'int i;' > conftest.$ac_ext |
| 920 | - if AC_TRY_EVAL(ac_compile); then |
| 921 | - case `/usr/bin/file conftest.$ac_objext` in |
| 922 | - *ELF-32*) |
| 923 | - HPUX_IA64_MODE="32" |
| 924 | - ;; |
| 925 | - *ELF-64*) |
| 926 | - HPUX_IA64_MODE="64" |
| 927 | - ;; |
| 928 | - esac |
| 929 | - fi |
| 930 | - rm -rf conftest* |
| 931 | - ;; |
| 932 | -*-*-irix6*) |
| 933 | - # Find out which ABI we are using. |
| 934 | - echo '[#]line __oline__ "configure"' > conftest.$ac_ext |
| 935 | - if AC_TRY_EVAL(ac_compile); then |
| 936 | - if test "$lt_cv_prog_gnu_ld" = yes; then |
| 937 | - case `/usr/bin/file conftest.$ac_objext` in |
| 938 | - *32-bit*) |
| 939 | - LD="${LD-ld} -melf32bsmip" |
| 940 | - ;; |
| 941 | - *N32*) |
| 942 | - LD="${LD-ld} -melf32bmipn32" |
| 943 | +sed_quote_subst='$sed_quote_subst' |
| 944 | +double_quote_subst='$double_quote_subst' |
| 945 | +delay_variable_subst='$delay_variable_subst' |
| 946 | +_LT_CONFIG_STATUS_DECLARATIONS |
| 947 | +LTCC='$LTCC' |
| 948 | +LTCFLAGS='$LTCFLAGS' |
| 949 | +compiler='$compiler_DEFAULT' |
| 950 | + |
| 951 | +# Quote evaled strings. |
| 952 | +for var in lt_decl_all_varnames([[ \ |
| 953 | +]], lt_decl_quote_varnames); do |
| 954 | + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in |
| 955 | + *[[\\\\\\\`\\"\\\$]]*) |
| 956 | + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
| 957 | ;; |
| 958 | - *64-bit*) |
| 959 | - LD="${LD-ld} -melf64bmip" |
| 960 | + *) |
| 961 | + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 962 | ;; |
| 963 | esac |
| 964 | - else |
| 965 | - case `/usr/bin/file conftest.$ac_objext` in |
| 966 | - *32-bit*) |
| 967 | - LD="${LD-ld} -32" |
| 968 | - ;; |
| 969 | - *N32*) |
| 970 | - LD="${LD-ld} -n32" |
| 971 | +done |
| 972 | + |
| 973 | +# Double-quote double-evaled strings. |
| 974 | +for var in lt_decl_all_varnames([[ \ |
| 975 | +]], lt_decl_dquote_varnames); do |
| 976 | + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in |
| 977 | + *[[\\\\\\\`\\"\\\$]]*) |
| 978 | + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
| 979 | ;; |
| 980 | - *64-bit*) |
| 981 | - LD="${LD-ld} -64" |
| 982 | + *) |
| 983 | + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 984 | ;; |
| 985 | esac |
| 986 | - fi |
| 987 | - fi |
| 988 | - rm -rf conftest* |
| 989 | +done |
| 990 | + |
| 991 | +# Fix-up fallback echo if it was mangled by the above quoting rules. |
| 992 | +case \$lt_ECHO in |
| 993 | +*'\\\[$]0 --fallback-echo"')dnl " |
| 994 | + lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\` |
| 995 | ;; |
| 996 | +esac |
| 997 | |
| 998 | -x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
| 999 | - # Find out which ABI we are using. |
| 1000 | - echo 'int i;' > conftest.$ac_ext |
| 1001 | - if AC_TRY_EVAL(ac_compile); then |
| 1002 | - case `/usr/bin/file conftest.o` in |
| 1003 | - *32-bit*) |
| 1004 | - case $host in |
| 1005 | - x86_64-*linux*) |
| 1006 | - LD="${LD-ld} -m elf_i386" |
| 1007 | - ;; |
| 1008 | - ppc64-*linux*|powerpc64-*linux*) |
| 1009 | - LD="${LD-ld} -m elf32ppclinux" |
| 1010 | - ;; |
| 1011 | - s390x-*linux*) |
| 1012 | - LD="${LD-ld} -m elf_s390" |
| 1013 | - ;; |
| 1014 | - sparc64-*linux*) |
| 1015 | - LD="${LD-ld} -m elf32_sparc" |
| 1016 | - ;; |
| 1017 | - esac |
| 1018 | - ;; |
| 1019 | - *64-bit*) |
| 1020 | - case $host in |
| 1021 | - x86_64-*linux*) |
| 1022 | - LD="${LD-ld} -m elf_x86_64" |
| 1023 | - ;; |
| 1024 | - ppc*-*linux*|powerpc*-*linux*) |
| 1025 | - LD="${LD-ld} -m elf64ppc" |
| 1026 | - ;; |
| 1027 | - s390*-*linux*) |
| 1028 | - LD="${LD-ld} -m elf64_s390" |
| 1029 | - ;; |
| 1030 | - sparc*-*linux*) |
| 1031 | - LD="${LD-ld} -m elf64_sparc" |
| 1032 | - ;; |
| 1033 | - esac |
| 1034 | - ;; |
| 1035 | - esac |
| 1036 | - fi |
| 1037 | - rm -rf conftest* |
| 1038 | - ;; |
| 1039 | +_LT_OUTPUT_LIBTOOL_INIT |
| 1040 | +]) |
| 1041 | |
| 1042 | -*-*-sco3.2v5*) |
| 1043 | - # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 1044 | - SAVE_CFLAGS="$CFLAGS" |
| 1045 | - CFLAGS="$CFLAGS -belf" |
| 1046 | - AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, |
| 1047 | - [AC_LANG_PUSH(C) |
| 1048 | - AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) |
| 1049 | - AC_LANG_POP]) |
| 1050 | - if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 1051 | - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 1052 | - CFLAGS="$SAVE_CFLAGS" |
| 1053 | - fi |
| 1054 | - ;; |
| 1055 | -sparc*-*solaris*) |
| 1056 | - # Find out which ABI we are using. |
| 1057 | - echo 'int i;' > conftest.$ac_ext |
| 1058 | - if AC_TRY_EVAL(ac_compile); then |
| 1059 | - case `/usr/bin/file conftest.o` in |
| 1060 | - *64-bit*) |
| 1061 | - case $lt_cv_prog_gnu_ld in |
| 1062 | - yes*) LD="${LD-ld} -m elf64_sparc" ;; |
| 1063 | - *) LD="${LD-ld} -64" ;; |
| 1064 | - esac |
| 1065 | - ;; |
| 1066 | - esac |
| 1067 | - fi |
| 1068 | - rm -rf conftest* |
| 1069 | - ;; |
| 1070 | |
| 1071 | -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], |
| 1072 | -[*-*-cygwin* | *-*-mingw* | *-*-pw32*) |
| 1073 | - AC_CHECK_TOOL(DLLTOOL, dlltool, false) |
| 1074 | - AC_CHECK_TOOL(AS, as, false) |
| 1075 | - AC_CHECK_TOOL(OBJDUMP, objdump, false) |
| 1076 | - ;; |
| 1077 | - ]) |
| 1078 | -esac |
| 1079 | +# LT_OUTPUT |
| 1080 | +# --------- |
| 1081 | +# This macro allows early generation of the libtool script (before |
| 1082 | +# AC_OUTPUT is called), incase it is used in configure for compilation |
| 1083 | +# tests. |
| 1084 | +AC_DEFUN([LT_OUTPUT], |
| 1085 | +[: ${CONFIG_LT=./config.lt} |
| 1086 | +AC_MSG_NOTICE([creating $CONFIG_LT]) |
| 1087 | +cat >"$CONFIG_LT" <<_LTEOF |
| 1088 | +#! $SHELL |
| 1089 | +# Generated by $as_me. |
| 1090 | +# Run this file to recreate a libtool stub with the current configuration. |
| 1091 | + |
| 1092 | +lt_cl_silent=false |
| 1093 | +SHELL=\${CONFIG_SHELL-$SHELL} |
| 1094 | +_LTEOF |
| 1095 | + |
| 1096 | +cat >>"$CONFIG_LT" <<\_LTEOF |
| 1097 | +AS_SHELL_SANITIZE |
| 1098 | +_AS_PREPARE |
| 1099 | |
| 1100 | -need_locks="$enable_libtool_lock" |
| 1101 | +exec AS_MESSAGE_FD>&1 |
| 1102 | +exec AS_MESSAGE_LOG_FD>>config.log |
| 1103 | +{ |
| 1104 | + echo |
| 1105 | + AS_BOX([Running $as_me.]) |
| 1106 | +} >&AS_MESSAGE_LOG_FD |
| 1107 | + |
| 1108 | +lt_cl_help="\ |
| 1109 | +\`$as_me' creates a local libtool stub from the current configuration, |
| 1110 | +for use in further configure time tests before the real libtool is |
| 1111 | +generated. |
| 1112 | + |
| 1113 | +Usage: $[0] [[OPTIONS]] |
| 1114 | + |
| 1115 | + -h, --help print this help, then exit |
| 1116 | + -V, --version print version number, then exit |
| 1117 | + -q, --quiet do not print progress messages |
| 1118 | + -d, --debug don't remove temporary files |
| 1119 | + |
| 1120 | +Report bugs to <bug-libtool@gnu.org>." |
| 1121 | + |
| 1122 | +lt_cl_version="\ |
| 1123 | +m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl |
| 1124 | +m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) |
| 1125 | +configured by $[0], generated by m4_PACKAGE_STRING. |
| 1126 | + |
| 1127 | +Copyright (C) 2008 Free Software Foundation, Inc. |
| 1128 | +This config.lt script is free software; the Free Software Foundation |
| 1129 | +gives unlimited permision to copy, distribute and modify it." |
| 1130 | |
| 1131 | -])# _LT_AC_LOCK |
| 1132 | +while test $[#] != 0 |
| 1133 | +do |
| 1134 | + case $[1] in |
| 1135 | + --version | --v* | -V ) |
| 1136 | + echo "$lt_cl_version"; exit 0 ;; |
| 1137 | + --help | --h* | -h ) |
| 1138 | + echo "$lt_cl_help"; exit 0 ;; |
| 1139 | + --debug | --d* | -d ) |
| 1140 | + debug=: ;; |
| 1141 | + --quiet | --q* | --silent | --s* | -q ) |
| 1142 | + lt_cl_silent=: ;; |
| 1143 | |
| 1144 | + -*) AC_MSG_ERROR([unrecognized option: $[1] |
| 1145 | +Try \`$[0] --help' for more information.]) ;; |
| 1146 | |
| 1147 | -# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, |
| 1148 | -# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) |
| 1149 | -# ---------------------------------------------------------------- |
| 1150 | -# Check whether the given compiler option works |
| 1151 | -AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], |
| 1152 | -[AC_REQUIRE([LT_AC_PROG_SED]) |
| 1153 | -AC_CACHE_CHECK([$1], [$2], |
| 1154 | - [$2=no |
| 1155 | - ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) |
| 1156 | - printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 1157 | - lt_compiler_flag="$3" |
| 1158 | - # Insert the option either (1) after the last *FLAGS variable, or |
| 1159 | - # (2) before a word containing "conftest.", or (3) at the end. |
| 1160 | - # Note that $ac_compile itself does not contain backslashes and begins |
| 1161 | - # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 1162 | - # The option is referenced via a variable to avoid confusing sed. |
| 1163 | - lt_compile=`echo "$ac_compile" | $SED \ |
| 1164 | - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 1165 | - -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ |
| 1166 | - -e 's:$: $lt_compiler_flag:'` |
| 1167 | - (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) |
| 1168 | - (eval "$lt_compile" 2>conftest.err) |
| 1169 | - ac_status=$? |
| 1170 | - cat conftest.err >&AS_MESSAGE_LOG_FD |
| 1171 | - echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD |
| 1172 | - if (exit $ac_status) && test -s "$ac_outfile"; then |
| 1173 | - # The compiler can only warn and ignore the option if not recognized |
| 1174 | - # So say no if there are warnings other than the usual output. |
| 1175 | - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 1176 | - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 1177 | - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 1178 | - $2=yes |
| 1179 | - fi |
| 1180 | - fi |
| 1181 | - $rm conftest* |
| 1182 | -]) |
| 1183 | + *) AC_MSG_ERROR([unrecognized argument: $[1] |
| 1184 | +Try \`$[0] --help' for more information.]) ;; |
| 1185 | + esac |
| 1186 | + shift |
| 1187 | +done |
| 1188 | |
| 1189 | -if test x"[$]$2" = xyes; then |
| 1190 | - ifelse([$5], , :, [$5]) |
| 1191 | -else |
| 1192 | - ifelse([$6], , :, [$6]) |
| 1193 | +if $lt_cl_silent; then |
| 1194 | + exec AS_MESSAGE_FD>/dev/null |
| 1195 | fi |
| 1196 | -])# AC_LIBTOOL_COMPILER_OPTION |
| 1197 | - |
| 1198 | - |
| 1199 | -# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, |
| 1200 | -# [ACTION-SUCCESS], [ACTION-FAILURE]) |
| 1201 | -# ------------------------------------------------------------ |
| 1202 | -# Check whether the given compiler option works |
| 1203 | -AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], |
| 1204 | -[AC_CACHE_CHECK([$1], [$2], |
| 1205 | - [$2=no |
| 1206 | - save_LDFLAGS="$LDFLAGS" |
| 1207 | - LDFLAGS="$LDFLAGS $3" |
| 1208 | - printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 1209 | - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 1210 | - # The linker can only warn and ignore the option if not recognized |
| 1211 | - # So say no if there are warnings |
| 1212 | - if test -s conftest.err; then |
| 1213 | - # Append any errors to the config.log. |
| 1214 | - cat conftest.err 1>&AS_MESSAGE_LOG_FD |
| 1215 | - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 1216 | - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 1217 | - if diff conftest.exp conftest.er2 >/dev/null; then |
| 1218 | - $2=yes |
| 1219 | - fi |
| 1220 | - else |
| 1221 | - $2=yes |
| 1222 | - fi |
| 1223 | - fi |
| 1224 | - $rm conftest* |
| 1225 | - LDFLAGS="$save_LDFLAGS" |
| 1226 | -]) |
| 1227 | +_LTEOF |
| 1228 | |
| 1229 | -if test x"[$]$2" = xyes; then |
| 1230 | - ifelse([$4], , :, [$4]) |
| 1231 | -else |
| 1232 | - ifelse([$5], , :, [$5]) |
| 1233 | +cat >>"$CONFIG_LT" <<_LTEOF |
| 1234 | +_LT_OUTPUT_LIBTOOL_COMMANDS_INIT |
| 1235 | +_LTEOF |
| 1236 | + |
| 1237 | +cat >>"$CONFIG_LT" <<\_LTEOF |
| 1238 | +AC_MSG_NOTICE([creating $ofile]) |
| 1239 | +_LT_OUTPUT_LIBTOOL_COMMANDS |
| 1240 | +AS_EXIT(0) |
| 1241 | +_LTEOF |
| 1242 | +chmod +x "$CONFIG_LT" |
| 1243 | + |
| 1244 | +# configure is writing to config.log, but config.lt does its own redirection, |
| 1245 | +# appending to config.log, which fails on DOS, as config.log is still kept |
| 1246 | +# open by configure. Here we exec the FD to /dev/null, effectively closing |
| 1247 | +# config.log, so it can be properly (re)opened and appended to by config.lt. |
| 1248 | +if test "$no_create" != yes; then |
| 1249 | + lt_cl_success=: |
| 1250 | + test "$silent" = yes && |
| 1251 | + lt_config_lt_args="$lt_config_lt_args --quiet" |
| 1252 | + exec AS_MESSAGE_LOG_FD>/dev/null |
| 1253 | + $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false |
| 1254 | + exec AS_MESSAGE_LOG_FD>>config.log |
| 1255 | + $lt_cl_success || AS_EXIT(1) |
| 1256 | fi |
| 1257 | -])# AC_LIBTOOL_LINKER_OPTION |
| 1258 | - |
| 1259 | +])# LT_OUTPUT |
| 1260 | |
| 1261 | -# AC_LIBTOOL_SYS_MAX_CMD_LEN |
| 1262 | -# -------------------------- |
| 1263 | -AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], |
| 1264 | -[# find the maximum length of command line arguments |
| 1265 | -AC_MSG_CHECKING([the maximum length of command line arguments]) |
| 1266 | -AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl |
| 1267 | - i=0 |
| 1268 | - teststring="ABCD" |
| 1269 | |
| 1270 | - case $build_os in |
| 1271 | - msdosdjgpp*) |
| 1272 | - # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 1273 | - # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 1274 | - # during glob expansion). Even if it were fixed, the result of this |
| 1275 | - # check would be larger than it should be. |
| 1276 | - lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 1277 | - ;; |
| 1278 | +# _LT_CONFIG(TAG) |
| 1279 | +# --------------- |
| 1280 | +# If TAG is the built-in tag, create an initial libtool script with a |
| 1281 | +# default configuration from the untagged config vars. Otherwise add code |
| 1282 | +# to config.status for appending the configuration named by TAG from the |
| 1283 | +# matching tagged config vars. |
| 1284 | +m4_defun([_LT_CONFIG], |
| 1285 | +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
| 1286 | +_LT_CONFIG_SAVE_COMMANDS([ |
| 1287 | + m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl |
| 1288 | + m4_if(_LT_TAG, [C], [ |
| 1289 | + # See if we are running on zsh, and set the options which allow our |
| 1290 | + # commands through without removal of \ escapes. |
| 1291 | + if test -n "${ZSH_VERSION+set}" ; then |
| 1292 | + setopt NO_GLOB_SUBST |
| 1293 | + fi |
| 1294 | |
| 1295 | - gnu*) |
| 1296 | - # Under GNU Hurd, this test is not required because there is |
| 1297 | - # no limit to the length of command line arguments. |
| 1298 | - # Libtool will interpret -1 as no limit whatsoever |
| 1299 | - lt_cv_sys_max_cmd_len=-1; |
| 1300 | - ;; |
| 1301 | + cfgfile="${ofile}T" |
| 1302 | + trap "$RM \"$cfgfile\"; exit 1" 1 2 15 |
| 1303 | + $RM "$cfgfile" |
| 1304 | |
| 1305 | - cygwin* | mingw*) |
| 1306 | - # On Win9x/ME, this test blows up -- it succeeds, but takes |
| 1307 | - # about 5 minutes as the teststring grows exponentially. |
| 1308 | - # Worse, since 9x/ME are not pre-emptively multitasking, |
| 1309 | - # you end up with a "frozen" computer, even though with patience |
| 1310 | - # the test eventually succeeds (with a max line length of 256k). |
| 1311 | - # Instead, let's just punt: use the minimum linelength reported by |
| 1312 | - # all of the supported platforms: 8192 (on NT/2K/XP). |
| 1313 | - lt_cv_sys_max_cmd_len=8192; |
| 1314 | - ;; |
| 1315 | + cat <<_LT_EOF >> "$cfgfile" |
| 1316 | +#! $SHELL |
| 1317 | |
| 1318 | - amigaos*) |
| 1319 | - # On AmigaOS with pdksh, this test takes hours, literally. |
| 1320 | - # So we just punt and use a minimum line length of 8192. |
| 1321 | - lt_cv_sys_max_cmd_len=8192; |
| 1322 | - ;; |
| 1323 | +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
| 1324 | +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
| 1325 | +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 1326 | +# NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 1327 | +# |
| 1328 | +_LT_COPYING |
| 1329 | +_LT_LIBTOOL_TAGS |
| 1330 | |
| 1331 | - netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
| 1332 | - # This has been around since 386BSD, at least. Likely further. |
| 1333 | - if test -x /sbin/sysctl; then |
| 1334 | - lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 1335 | - elif test -x /usr/sbin/sysctl; then |
| 1336 | - lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| 1337 | - else |
| 1338 | - lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
| 1339 | - fi |
| 1340 | - # And add a safety zone |
| 1341 | - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 1342 | - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 1343 | - ;; |
| 1344 | +# ### BEGIN LIBTOOL CONFIG |
| 1345 | +_LT_LIBTOOL_CONFIG_VARS |
| 1346 | +_LT_LIBTOOL_TAG_VARS |
| 1347 | +# ### END LIBTOOL CONFIG |
| 1348 | |
| 1349 | - interix*) |
| 1350 | - # We know the value 262144 and hardcode it with a safety zone (like BSD) |
| 1351 | - lt_cv_sys_max_cmd_len=196608 |
| 1352 | - ;; |
| 1353 | +_LT_EOF |
| 1354 | |
| 1355 | - osf*) |
| 1356 | - # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
| 1357 | - # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
| 1358 | - # nice to cause kernel panics so lets avoid the loop below. |
| 1359 | - # First set a reasonable default. |
| 1360 | - lt_cv_sys_max_cmd_len=16384 |
| 1361 | - # |
| 1362 | - if test -x /sbin/sysconfig; then |
| 1363 | - case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
| 1364 | - *1*) lt_cv_sys_max_cmd_len=-1 ;; |
| 1365 | - esac |
| 1366 | - fi |
| 1367 | - ;; |
| 1368 | - sco3.2v5*) |
| 1369 | - lt_cv_sys_max_cmd_len=102400 |
| 1370 | - ;; |
| 1371 | - sysv5* | sco5v6* | sysv4.2uw2*) |
| 1372 | - kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
| 1373 | - if test -n "$kargmax"; then |
| 1374 | - lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` |
| 1375 | - else |
| 1376 | - lt_cv_sys_max_cmd_len=32768 |
| 1377 | - fi |
| 1378 | - ;; |
| 1379 | - *) |
| 1380 | - # If test is not a shell built-in, we'll probably end up computing a |
| 1381 | - # maximum length that is only half of the actual maximum length, but |
| 1382 | - # we can't tell. |
| 1383 | - SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| 1384 | - while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \ |
| 1385 | - = "XX$teststring") >/dev/null 2>&1 && |
| 1386 | - new_result=`expr "X$teststring" : ".*" 2>&1` && |
| 1387 | - lt_cv_sys_max_cmd_len=$new_result && |
| 1388 | - test $i != 17 # 1/2 MB should be enough |
| 1389 | - do |
| 1390 | - i=`expr $i + 1` |
| 1391 | - teststring=$teststring$teststring |
| 1392 | - done |
| 1393 | - teststring= |
| 1394 | - # Add a significant safety factor because C++ compilers can tack on massive |
| 1395 | - # amounts of additional arguments before passing them to the linker. |
| 1396 | - # It appears as though 1/2 is a usable value. |
| 1397 | - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 1398 | + case $host_os in |
| 1399 | + aix3*) |
| 1400 | + cat <<\_LT_EOF >> "$cfgfile" |
| 1401 | +# AIX sometimes has problems with the GCC collect2 program. For some |
| 1402 | +# reason, if we set the COLLECT_NAMES environment variable, the problems |
| 1403 | +# vanish in a puff of smoke. |
| 1404 | +if test "X${COLLECT_NAMES+set}" != Xset; then |
| 1405 | + COLLECT_NAMES= |
| 1406 | + export COLLECT_NAMES |
| 1407 | +fi |
| 1408 | +_LT_EOF |
| 1409 | ;; |
| 1410 | esac |
| 1411 | -]) |
| 1412 | -if test -n $lt_cv_sys_max_cmd_len ; then |
| 1413 | - AC_MSG_RESULT($lt_cv_sys_max_cmd_len) |
| 1414 | -else |
| 1415 | - AC_MSG_RESULT(none) |
| 1416 | -fi |
| 1417 | -])# AC_LIBTOOL_SYS_MAX_CMD_LEN |
| 1418 | |
| 1419 | + _LT_PROG_LTMAIN |
| 1420 | |
| 1421 | -# _LT_AC_CHECK_DLFCN |
| 1422 | -# ------------------ |
| 1423 | -AC_DEFUN([_LT_AC_CHECK_DLFCN], |
| 1424 | -[AC_CHECK_HEADERS(dlfcn.h)dnl |
| 1425 | -])# _LT_AC_CHECK_DLFCN |
| 1426 | + # We use sed instead of cat because bash on DJGPP gets confused if |
| 1427 | + # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 1428 | + # text mode, it properly converts lines to CR/LF. This bash problem |
| 1429 | + # is reportedly fixed, but why not run on old versions too? |
| 1430 | + sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ |
| 1431 | + || (rm -f "$cfgfile"; exit 1) |
| 1432 | |
| 1433 | + _LT_PROG_XSI_SHELLFNS |
| 1434 | |
| 1435 | -# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, |
| 1436 | -# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) |
| 1437 | -# --------------------------------------------------------------------- |
| 1438 | -AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], |
| 1439 | -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl |
| 1440 | -if test "$cross_compiling" = yes; then : |
| 1441 | - [$4] |
| 1442 | -else |
| 1443 | - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 1444 | - lt_status=$lt_dlunknown |
| 1445 | - cat > conftest.$ac_ext <<EOF |
| 1446 | -[#line __oline__ "configure" |
| 1447 | -#include "confdefs.h" |
| 1448 | + sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ |
| 1449 | + || (rm -f "$cfgfile"; exit 1) |
| 1450 | |
| 1451 | -#if HAVE_DLFCN_H |
| 1452 | -#include <dlfcn.h> |
| 1453 | -#endif |
| 1454 | + mv -f "$cfgfile" "$ofile" || |
| 1455 | + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
| 1456 | + chmod +x "$ofile" |
| 1457 | +], |
| 1458 | +[cat <<_LT_EOF >> "$ofile" |
| 1459 | |
| 1460 | -#include <stdio.h> |
| 1461 | +dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded |
| 1462 | +dnl in a comment (ie after a #). |
| 1463 | +# ### BEGIN LIBTOOL TAG CONFIG: $1 |
| 1464 | +_LT_LIBTOOL_TAG_VARS(_LT_TAG) |
| 1465 | +# ### END LIBTOOL TAG CONFIG: $1 |
| 1466 | +_LT_EOF |
| 1467 | +])dnl /m4_if |
| 1468 | +], |
| 1469 | +[m4_if([$1], [], [ |
| 1470 | + PACKAGE='$PACKAGE' |
| 1471 | + VERSION='$VERSION' |
| 1472 | + TIMESTAMP='$TIMESTAMP' |
| 1473 | + RM='$RM' |
| 1474 | + ofile='$ofile'], []) |
| 1475 | +])dnl /_LT_CONFIG_SAVE_COMMANDS |
| 1476 | +])# _LT_CONFIG |
| 1477 | + |
| 1478 | + |
| 1479 | +# LT_SUPPORTED_TAG(TAG) |
| 1480 | +# --------------------- |
| 1481 | +# Trace this macro to discover what tags are supported by the libtool |
| 1482 | +# --tag option, using: |
| 1483 | +# autoconf --trace 'LT_SUPPORTED_TAG:$1' |
| 1484 | +AC_DEFUN([LT_SUPPORTED_TAG], []) |
| 1485 | + |
| 1486 | + |
| 1487 | +# C support is built-in for now |
| 1488 | +m4_define([_LT_LANG_C_enabled], []) |
| 1489 | +m4_define([_LT_TAGS], []) |
| 1490 | |
| 1491 | -#ifdef RTLD_GLOBAL |
| 1492 | -# define LT_DLGLOBAL RTLD_GLOBAL |
| 1493 | -#else |
| 1494 | -# ifdef DL_GLOBAL |
| 1495 | -# define LT_DLGLOBAL DL_GLOBAL |
| 1496 | -# else |
| 1497 | -# define LT_DLGLOBAL 0 |
| 1498 | -# endif |
| 1499 | -#endif |
| 1500 | |
| 1501 | -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 1502 | - find out it does not work in some platform. */ |
| 1503 | -#ifndef LT_DLLAZY_OR_NOW |
| 1504 | -# ifdef RTLD_LAZY |
| 1505 | -# define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 1506 | -# else |
| 1507 | -# ifdef DL_LAZY |
| 1508 | -# define LT_DLLAZY_OR_NOW DL_LAZY |
| 1509 | -# else |
| 1510 | -# ifdef RTLD_NOW |
| 1511 | -# define LT_DLLAZY_OR_NOW RTLD_NOW |
| 1512 | -# else |
| 1513 | -# ifdef DL_NOW |
| 1514 | -# define LT_DLLAZY_OR_NOW DL_NOW |
| 1515 | -# else |
| 1516 | -# define LT_DLLAZY_OR_NOW 0 |
| 1517 | -# endif |
| 1518 | -# endif |
| 1519 | -# endif |
| 1520 | -# endif |
| 1521 | -#endif |
| 1522 | +# LT_LANG(LANG) |
| 1523 | +# ------------- |
| 1524 | +# Enable libtool support for the given language if not already enabled. |
| 1525 | +AC_DEFUN([LT_LANG], |
| 1526 | +[AC_BEFORE([$0], [LT_OUTPUT])dnl |
| 1527 | +m4_case([$1], |
| 1528 | + [C], [_LT_LANG(C)], |
| 1529 | + [C++], [_LT_LANG(CXX)], |
| 1530 | + [Java], [_LT_LANG(GCJ)], |
| 1531 | + [Fortran 77], [_LT_LANG(F77)], |
| 1532 | + [Fortran], [_LT_LANG(FC)], |
| 1533 | + [Windows Resource], [_LT_LANG(RC)], |
| 1534 | + [m4_ifdef([_LT_LANG_]$1[_CONFIG], |
| 1535 | + [_LT_LANG($1)], |
| 1536 | + [m4_fatal([$0: unsupported language: "$1"])])])dnl |
| 1537 | +])# LT_LANG |
| 1538 | |
| 1539 | -#ifdef __cplusplus |
| 1540 | -extern "C" void exit (int); |
| 1541 | -#endif |
| 1542 | |
| 1543 | -void fnord() { int i=42;} |
| 1544 | -int main () |
| 1545 | -{ |
| 1546 | - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 1547 | - int status = $lt_dlunknown; |
| 1548 | - |
| 1549 | - if (self) |
| 1550 | - { |
| 1551 | - if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 1552 | - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 1553 | - /* dlclose (self); */ |
| 1554 | - } |
| 1555 | - else |
| 1556 | - puts (dlerror ()); |
| 1557 | +# _LT_LANG(LANGNAME) |
| 1558 | +# ------------------ |
| 1559 | +m4_defun([_LT_LANG], |
| 1560 | +[m4_ifdef([_LT_LANG_]$1[_enabled], [], |
| 1561 | + [LT_SUPPORTED_TAG([$1])dnl |
| 1562 | + m4_append([_LT_TAGS], [$1 ])dnl |
| 1563 | + m4_define([_LT_LANG_]$1[_enabled], [])dnl |
| 1564 | + _LT_LANG_$1_CONFIG($1)])dnl |
| 1565 | +])# _LT_LANG |
| 1566 | |
| 1567 | - exit (status); |
| 1568 | -}] |
| 1569 | -EOF |
| 1570 | - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then |
| 1571 | - (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null |
| 1572 | - lt_status=$? |
| 1573 | - case x$lt_status in |
| 1574 | - x$lt_dlno_uscore) $1 ;; |
| 1575 | - x$lt_dlneed_uscore) $2 ;; |
| 1576 | - x$lt_dlunknown|x*) $3 ;; |
| 1577 | - esac |
| 1578 | - else : |
| 1579 | - # compilation failed |
| 1580 | - $3 |
| 1581 | - fi |
| 1582 | -fi |
| 1583 | -rm -fr conftest* |
| 1584 | -])# _LT_AC_TRY_DLOPEN_SELF |
| 1585 | |
| 1586 | +# _LT_LANG_DEFAULT_CONFIG |
| 1587 | +# ----------------------- |
| 1588 | +m4_defun([_LT_LANG_DEFAULT_CONFIG], |
| 1589 | +[AC_PROVIDE_IFELSE([AC_PROG_CXX], |
| 1590 | + [LT_LANG(CXX)], |
| 1591 | + [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])]) |
| 1592 | + |
| 1593 | +AC_PROVIDE_IFELSE([AC_PROG_F77], |
| 1594 | + [LT_LANG(F77)], |
| 1595 | + [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])]) |
| 1596 | + |
| 1597 | +AC_PROVIDE_IFELSE([AC_PROG_FC], |
| 1598 | + [LT_LANG(FC)], |
| 1599 | + [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])]) |
| 1600 | + |
| 1601 | +dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal |
| 1602 | +dnl pulling things in needlessly. |
| 1603 | +AC_PROVIDE_IFELSE([AC_PROG_GCJ], |
| 1604 | + [LT_LANG(GCJ)], |
| 1605 | + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], |
| 1606 | + [LT_LANG(GCJ)], |
| 1607 | + [AC_PROVIDE_IFELSE([LT_PROG_GCJ], |
| 1608 | + [LT_LANG(GCJ)], |
| 1609 | + [m4_ifdef([AC_PROG_GCJ], |
| 1610 | + [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])]) |
| 1611 | + m4_ifdef([A][M_PROG_GCJ], |
| 1612 | + [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) |
| 1613 | + m4_ifdef([LT_PROG_GCJ], |
| 1614 | + [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) |
| 1615 | + |
| 1616 | +AC_PROVIDE_IFELSE([LT_PROG_RC], |
| 1617 | + [LT_LANG(RC)], |
| 1618 | + [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) |
| 1619 | +])# _LT_LANG_DEFAULT_CONFIG |
| 1620 | + |
| 1621 | +# Obsolete macros: |
| 1622 | +AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) |
| 1623 | +AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) |
| 1624 | +AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) |
| 1625 | +AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) |
| 1626 | +dnl aclocal-1.4 backwards compatibility: |
| 1627 | +dnl AC_DEFUN([AC_LIBTOOL_CXX], []) |
| 1628 | +dnl AC_DEFUN([AC_LIBTOOL_F77], []) |
| 1629 | +dnl AC_DEFUN([AC_LIBTOOL_FC], []) |
| 1630 | +dnl AC_DEFUN([AC_LIBTOOL_GCJ], []) |
| 1631 | |
| 1632 | -# AC_LIBTOOL_DLOPEN_SELF |
| 1633 | -# ---------------------- |
| 1634 | -AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], |
| 1635 | -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl |
| 1636 | -if test "x$enable_dlopen" != xyes; then |
| 1637 | - enable_dlopen=unknown |
| 1638 | - enable_dlopen_self=unknown |
| 1639 | - enable_dlopen_self_static=unknown |
| 1640 | -else |
| 1641 | - lt_cv_dlopen=no |
| 1642 | - lt_cv_dlopen_libs= |
| 1643 | |
| 1644 | - case $host_os in |
| 1645 | - beos*) |
| 1646 | - lt_cv_dlopen="load_add_on" |
| 1647 | - lt_cv_dlopen_libs= |
| 1648 | - lt_cv_dlopen_self=yes |
| 1649 | - ;; |
| 1650 | +# _LT_TAG_COMPILER |
| 1651 | +# ---------------- |
| 1652 | +m4_defun([_LT_TAG_COMPILER], |
| 1653 | +[AC_REQUIRE([AC_PROG_CC])dnl |
| 1654 | |
| 1655 | - mingw* | pw32*) |
| 1656 | - lt_cv_dlopen="LoadLibrary" |
| 1657 | - lt_cv_dlopen_libs= |
| 1658 | - ;; |
| 1659 | +_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl |
| 1660 | +_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl |
| 1661 | +_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl |
| 1662 | +_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl |
| 1663 | |
| 1664 | - cygwin*) |
| 1665 | - lt_cv_dlopen="dlopen" |
| 1666 | - lt_cv_dlopen_libs= |
| 1667 | - ;; |
| 1668 | +# If no C compiler was specified, use CC. |
| 1669 | +LTCC=${LTCC-"$CC"} |
| 1670 | |
| 1671 | - darwin*) |
| 1672 | - # if libdl is installed we need to link against it |
| 1673 | - AC_CHECK_LIB([dl], [dlopen], |
| 1674 | - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ |
| 1675 | - lt_cv_dlopen="dyld" |
| 1676 | - lt_cv_dlopen_libs= |
| 1677 | - lt_cv_dlopen_self=yes |
| 1678 | - ]) |
| 1679 | - ;; |
| 1680 | +# If no C compiler flags were specified, use CFLAGS. |
| 1681 | +LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 1682 | |
| 1683 | - *) |
| 1684 | - AC_CHECK_FUNC([shl_load], |
| 1685 | - [lt_cv_dlopen="shl_load"], |
| 1686 | - [AC_CHECK_LIB([dld], [shl_load], |
| 1687 | - [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"], |
| 1688 | - [AC_CHECK_FUNC([dlopen], |
| 1689 | - [lt_cv_dlopen="dlopen"], |
| 1690 | - [AC_CHECK_LIB([dl], [dlopen], |
| 1691 | - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], |
| 1692 | - [AC_CHECK_LIB([svld], [dlopen], |
| 1693 | - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], |
| 1694 | - [AC_CHECK_LIB([dld], [dld_link], |
| 1695 | - [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"]) |
| 1696 | - ]) |
| 1697 | - ]) |
| 1698 | - ]) |
| 1699 | - ]) |
| 1700 | - ]) |
| 1701 | - ;; |
| 1702 | - esac |
| 1703 | +# Allow CC to be a program name with arguments. |
| 1704 | +compiler=$CC |
| 1705 | +])# _LT_TAG_COMPILER |
| 1706 | |
| 1707 | - if test "x$lt_cv_dlopen" != xno; then |
| 1708 | - enable_dlopen=yes |
| 1709 | - else |
| 1710 | - enable_dlopen=no |
| 1711 | - fi |
| 1712 | |
| 1713 | - case $lt_cv_dlopen in |
| 1714 | - dlopen) |
| 1715 | - save_CPPFLAGS="$CPPFLAGS" |
| 1716 | - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 1717 | +# _LT_COMPILER_BOILERPLATE |
| 1718 | +# ------------------------ |
| 1719 | +# Check for compiler boilerplate output or warnings with |
| 1720 | +# the simple compiler test code. |
| 1721 | +m4_defun([_LT_COMPILER_BOILERPLATE], |
| 1722 | +[m4_require([_LT_DECL_SED])dnl |
| 1723 | +ac_outfile=conftest.$ac_objext |
| 1724 | +echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 1725 | +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 1726 | +_lt_compiler_boilerplate=`cat conftest.err` |
| 1727 | +$RM conftest* |
| 1728 | +])# _LT_COMPILER_BOILERPLATE |
| 1729 | |
| 1730 | - save_LDFLAGS="$LDFLAGS" |
| 1731 | - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 1732 | |
| 1733 | - save_LIBS="$LIBS" |
| 1734 | - LIBS="$lt_cv_dlopen_libs $LIBS" |
| 1735 | +# _LT_LINKER_BOILERPLATE |
| 1736 | +# ---------------------- |
| 1737 | +# Check for linker boilerplate output or warnings with |
| 1738 | +# the simple link test code. |
| 1739 | +m4_defun([_LT_LINKER_BOILERPLATE], |
| 1740 | +[m4_require([_LT_DECL_SED])dnl |
| 1741 | +ac_outfile=conftest.$ac_objext |
| 1742 | +echo "$lt_simple_link_test_code" >conftest.$ac_ext |
| 1743 | +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 1744 | +_lt_linker_boilerplate=`cat conftest.err` |
| 1745 | +$RM -r conftest* |
| 1746 | +])# _LT_LINKER_BOILERPLATE |
| 1747 | |
| 1748 | - AC_CACHE_CHECK([whether a program can dlopen itself], |
| 1749 | - lt_cv_dlopen_self, [dnl |
| 1750 | - _LT_AC_TRY_DLOPEN_SELF( |
| 1751 | - lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, |
| 1752 | - lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) |
| 1753 | +# _LT_REQUIRED_DARWIN_CHECKS |
| 1754 | +# ------------------------- |
| 1755 | +m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[ |
| 1756 | + case $host_os in |
| 1757 | + rhapsody* | darwin*) |
| 1758 | + AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) |
| 1759 | + AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) |
| 1760 | + AC_CHECK_TOOL([LIPO], [lipo], [:]) |
| 1761 | + AC_CHECK_TOOL([OTOOL], [otool], [:]) |
| 1762 | + AC_CHECK_TOOL([OTOOL64], [otool64], [:]) |
| 1763 | + _LT_DECL([], [DSYMUTIL], [1], |
| 1764 | + [Tool to manipulate archived DWARF debug symbol files on Mac OS X]) |
| 1765 | + _LT_DECL([], [NMEDIT], [1], |
| 1766 | + [Tool to change global to local symbols on Mac OS X]) |
| 1767 | + _LT_DECL([], [LIPO], [1], |
| 1768 | + [Tool to manipulate fat objects and archives on Mac OS X]) |
| 1769 | + _LT_DECL([], [OTOOL], [1], |
| 1770 | + [ldd/readelf like tool for Mach-O binaries on Mac OS X]) |
| 1771 | + _LT_DECL([], [OTOOL64], [1], |
| 1772 | + [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4]) |
| 1773 | + |
| 1774 | + AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], |
| 1775 | + [lt_cv_apple_cc_single_mod=no |
| 1776 | + if test -z "${LT_MULTI_MODULE}"; then |
| 1777 | + # By default we will add the -single_module flag. You can override |
| 1778 | + # by either setting the environment variable LT_MULTI_MODULE |
| 1779 | + # non-empty at configure time, or by adding -multi_module to the |
| 1780 | + # link flags. |
| 1781 | + rm -rf libconftest.dylib* |
| 1782 | + echo "int foo(void){return 1;}" > conftest.c |
| 1783 | + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 1784 | +-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD |
| 1785 | + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 1786 | + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err |
| 1787 | + _lt_result=$? |
| 1788 | + if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then |
| 1789 | + lt_cv_apple_cc_single_mod=yes |
| 1790 | + else |
| 1791 | + cat conftest.err >&AS_MESSAGE_LOG_FD |
| 1792 | + fi |
| 1793 | + rm -rf libconftest.dylib* |
| 1794 | + rm -f conftest.* |
| 1795 | + fi]) |
| 1796 | + AC_CACHE_CHECK([for -exported_symbols_list linker flag], |
| 1797 | + [lt_cv_ld_exported_symbols_list], |
| 1798 | + [lt_cv_ld_exported_symbols_list=no |
| 1799 | + save_LDFLAGS=$LDFLAGS |
| 1800 | + echo "_main" > conftest.sym |
| 1801 | + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" |
| 1802 | + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], |
| 1803 | + [lt_cv_ld_exported_symbols_list=yes], |
| 1804 | + [lt_cv_ld_exported_symbols_list=no]) |
| 1805 | + LDFLAGS="$save_LDFLAGS" |
| 1806 | ]) |
| 1807 | - |
| 1808 | - if test "x$lt_cv_dlopen_self" = xyes; then |
| 1809 | - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
| 1810 | - AC_CACHE_CHECK([whether a statically linked program can dlopen itself], |
| 1811 | - lt_cv_dlopen_self_static, [dnl |
| 1812 | - _LT_AC_TRY_DLOPEN_SELF( |
| 1813 | - lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, |
| 1814 | - lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) |
| 1815 | - ]) |
| 1816 | + case $host_os in |
| 1817 | + rhapsody* | darwin1.[[012]]) |
| 1818 | + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; |
| 1819 | + darwin1.*) |
| 1820 | + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
| 1821 | + darwin*) # darwin 5.x on |
| 1822 | + # if running on 10.5 or later, the deployment target defaults |
| 1823 | + # to the OS version, if on x86, and 10.4, the deployment |
| 1824 | + # target defaults to 10.4. Don't you love it? |
| 1825 | + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in |
| 1826 | + 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) |
| 1827 | + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
| 1828 | + 10.[[012]]*) |
| 1829 | + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
| 1830 | + 10.*) |
| 1831 | + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
| 1832 | + esac |
| 1833 | + ;; |
| 1834 | + esac |
| 1835 | + if test "$lt_cv_apple_cc_single_mod" = "yes"; then |
| 1836 | + _lt_dar_single_mod='$single_module' |
| 1837 | + fi |
| 1838 | + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then |
| 1839 | + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' |
| 1840 | + else |
| 1841 | + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 1842 | + fi |
| 1843 | + if test "$DSYMUTIL" != ":"; then |
| 1844 | + _lt_dsymutil='~$DSYMUTIL $lib || :' |
| 1845 | + else |
| 1846 | + _lt_dsymutil= |
| 1847 | fi |
| 1848 | - |
| 1849 | - CPPFLAGS="$save_CPPFLAGS" |
| 1850 | - LDFLAGS="$save_LDFLAGS" |
| 1851 | - LIBS="$save_LIBS" |
| 1852 | ;; |
| 1853 | esac |
| 1854 | +]) |
| 1855 | |
| 1856 | - case $lt_cv_dlopen_self in |
| 1857 | - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 1858 | - *) enable_dlopen_self=unknown ;; |
| 1859 | - esac |
| 1860 | |
| 1861 | - case $lt_cv_dlopen_self_static in |
| 1862 | - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 1863 | - *) enable_dlopen_self_static=unknown ;; |
| 1864 | - esac |
| 1865 | -fi |
| 1866 | -])# AC_LIBTOOL_DLOPEN_SELF |
| 1867 | +# _LT_DARWIN_LINKER_FEATURES |
| 1868 | +# -------------------------- |
| 1869 | +# Checks for linker and compiler features on darwin |
| 1870 | +m4_defun([_LT_DARWIN_LINKER_FEATURES], |
| 1871 | +[ |
| 1872 | + m4_require([_LT_REQUIRED_DARWIN_CHECKS]) |
| 1873 | + _LT_TAGVAR(archive_cmds_need_lc, $1)=no |
| 1874 | + _LT_TAGVAR(hardcode_direct, $1)=no |
| 1875 | + _LT_TAGVAR(hardcode_automatic, $1)=yes |
| 1876 | + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
| 1877 | + _LT_TAGVAR(whole_archive_flag_spec, $1)='' |
| 1878 | + _LT_TAGVAR(link_all_deplibs, $1)=yes |
| 1879 | + _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined" |
| 1880 | + if test "$GCC" = "yes"; then |
| 1881 | + output_verbose_link_cmd=echo |
| 1882 | + _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}" |
| 1883 | + _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
| 1884 | + _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}" |
| 1885 | + _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}" |
| 1886 | + m4_if([$1], [CXX], |
| 1887 | +[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then |
| 1888 | + _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}" |
| 1889 | + _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}" |
| 1890 | + fi |
| 1891 | +],[]) |
| 1892 | + else |
| 1893 | + _LT_TAGVAR(ld_shlibs, $1)=no |
| 1894 | + fi |
| 1895 | +]) |
| 1896 | |
| 1897 | +# _LT_SYS_MODULE_PATH_AIX |
| 1898 | +# ----------------------- |
| 1899 | +# Links a minimal program and checks the executable |
| 1900 | +# for the system default hardcoded library path. In most cases, |
| 1901 | +# this is /usr/lib:/lib, but when the MPI compilers are used |
| 1902 | +# the location of the communication and MPI libs are included too. |
| 1903 | +# If we don't find anything, use the default library path according |
| 1904 | +# to the aix ld manual. |
| 1905 | +m4_defun([_LT_SYS_MODULE_PATH_AIX], |
| 1906 | +[m4_require([_LT_DECL_SED])dnl |
| 1907 | +AC_LINK_IFELSE(AC_LANG_PROGRAM,[ |
| 1908 | +lt_aix_libpath_sed=' |
| 1909 | + /Import File Strings/,/^$/ { |
| 1910 | + /^0/ { |
| 1911 | + s/^0 *\(.*\)$/\1/ |
| 1912 | + p |
| 1913 | + } |
| 1914 | + }' |
| 1915 | +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 1916 | +# Check for a 64-bit object if we didn't find anything. |
| 1917 | +if test -z "$aix_libpath"; then |
| 1918 | + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 1919 | +fi],[]) |
| 1920 | +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 1921 | +])# _LT_SYS_MODULE_PATH_AIX |
| 1922 | |
| 1923 | -# AC_LIBTOOL_PROG_CC_C_O([TAGNAME]) |
| 1924 | -# --------------------------------- |
| 1925 | -# Check to see if options -c and -o are simultaneously supported by compiler |
| 1926 | -AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O], |
| 1927 | -[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl |
| 1928 | -AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], |
| 1929 | - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)], |
| 1930 | - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no |
| 1931 | - $rm -r conftest 2>/dev/null |
| 1932 | - mkdir conftest |
| 1933 | - cd conftest |
| 1934 | - mkdir out |
| 1935 | - printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 1936 | |
| 1937 | - lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 1938 | - # Insert the option either (1) after the last *FLAGS variable, or |
| 1939 | - # (2) before a word containing "conftest.", or (3) at the end. |
| 1940 | - # Note that $ac_compile itself does not contain backslashes and begins |
| 1941 | - # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 1942 | - lt_compile=`echo "$ac_compile" | $SED \ |
| 1943 | - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 1944 | - -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ |
| 1945 | - -e 's:$: $lt_compiler_flag:'` |
| 1946 | - (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) |
| 1947 | - (eval "$lt_compile" 2>out/conftest.err) |
| 1948 | - ac_status=$? |
| 1949 | - cat out/conftest.err >&AS_MESSAGE_LOG_FD |
| 1950 | - echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD |
| 1951 | - if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 1952 | - then |
| 1953 | - # The compiler can only warn and ignore the option if not recognized |
| 1954 | - # So say no if there are warnings |
| 1955 | - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 1956 | - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 1957 | - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 1958 | - _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes |
| 1959 | - fi |
| 1960 | - fi |
| 1961 | - chmod u+w . 2>&AS_MESSAGE_LOG_FD |
| 1962 | - $rm conftest* |
| 1963 | - # SGI C++ compiler will create directory out/ii_files/ for |
| 1964 | - # template instantiation |
| 1965 | - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 1966 | - $rm out/* && rmdir out |
| 1967 | - cd .. |
| 1968 | - rmdir conftest |
| 1969 | - $rm conftest* |
| 1970 | -]) |
| 1971 | -])# AC_LIBTOOL_PROG_CC_C_O |
| 1972 | +# _LT_SHELL_INIT(ARG) |
| 1973 | +# ------------------- |
| 1974 | +m4_define([_LT_SHELL_INIT], |
| 1975 | +[ifdef([AC_DIVERSION_NOTICE], |
| 1976 | + [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], |
| 1977 | + [AC_DIVERT_PUSH(NOTICE)]) |
| 1978 | +$1 |
| 1979 | +AC_DIVERT_POP |
| 1980 | +])# _LT_SHELL_INIT |
| 1981 | |
| 1982 | |
| 1983 | -# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME]) |
| 1984 | -# ----------------------------------------- |
| 1985 | -# Check to see if we can do hard links to lock some files if needed |
| 1986 | -AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], |
| 1987 | -[AC_REQUIRE([_LT_AC_LOCK])dnl |
| 1988 | +# _LT_PROG_ECHO_BACKSLASH |
| 1989 | +# ----------------------- |
| 1990 | +# Add some code to the start of the generated configure script which |
| 1991 | +# will find an echo command which doesn't interpret backslashes. |
| 1992 | +m4_defun([_LT_PROG_ECHO_BACKSLASH], |
| 1993 | +[_LT_SHELL_INIT([ |
| 1994 | +# Check that we are running under the correct shell. |
| 1995 | +SHELL=${CONFIG_SHELL-/bin/sh} |
| 1996 | |
| 1997 | -hard_links="nottested" |
| 1998 | -if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then |
| 1999 | - # do not overwrite the value of need_locks provided by the user |
| 2000 | - AC_MSG_CHECKING([if we can lock with hard links]) |
| 2001 | - hard_links=yes |
| 2002 | - $rm conftest* |
| 2003 | - ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 2004 | - touch conftest.a |
| 2005 | - ln conftest.a conftest.b 2>&5 || hard_links=no |
| 2006 | - ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 2007 | - AC_MSG_RESULT([$hard_links]) |
| 2008 | - if test "$hard_links" = no; then |
| 2009 | - AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) |
| 2010 | - need_locks=warn |
| 2011 | - fi |
| 2012 | +case X$lt_ECHO in |
| 2013 | +X*--fallback-echo) |
| 2014 | + # Remove one level of quotation (which was required for Make). |
| 2015 | + ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` |
| 2016 | + ;; |
| 2017 | +esac |
| 2018 | + |
| 2019 | +ECHO=${lt_ECHO-echo} |
| 2020 | +if test "X[$]1" = X--no-reexec; then |
| 2021 | + # Discard the --no-reexec flag, and continue. |
| 2022 | + shift |
| 2023 | +elif test "X[$]1" = X--fallback-echo; then |
| 2024 | + # Avoid inline document here, it may be left over |
| 2025 | + : |
| 2026 | +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then |
| 2027 | + # Yippee, $ECHO works! |
| 2028 | + : |
| 2029 | else |
| 2030 | - need_locks=no |
| 2031 | + # Restart under the correct shell. |
| 2032 | + exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} |
| 2033 | fi |
| 2034 | -])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS |
| 2035 | |
| 2036 | - |
| 2037 | -# AC_LIBTOOL_OBJDIR |
| 2038 | -# ----------------- |
| 2039 | -AC_DEFUN([AC_LIBTOOL_OBJDIR], |
| 2040 | -[AC_CACHE_CHECK([for objdir], [lt_cv_objdir], |
| 2041 | -[rm -f .libs 2>/dev/null |
| 2042 | -mkdir .libs 2>/dev/null |
| 2043 | -if test -d .libs; then |
| 2044 | - lt_cv_objdir=.libs |
| 2045 | -else |
| 2046 | - # MS-DOS does not allow filenames that begin with a dot. |
| 2047 | - lt_cv_objdir=_libs |
| 2048 | +if test "X[$]1" = X--fallback-echo; then |
| 2049 | + # used as fallback echo |
| 2050 | + shift |
| 2051 | + cat <<_LT_EOF |
| 2052 | +[$]* |
| 2053 | +_LT_EOF |
| 2054 | + exit 0 |
| 2055 | fi |
| 2056 | -rmdir .libs 2>/dev/null]) |
| 2057 | -objdir=$lt_cv_objdir |
| 2058 | -])# AC_LIBTOOL_OBJDIR |
| 2059 | |
| 2060 | +# The HP-UX ksh and POSIX shell print the target directory to stdout |
| 2061 | +# if CDPATH is set. |
| 2062 | +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 2063 | |
| 2064 | -# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME]) |
| 2065 | -# ---------------------------------------------- |
| 2066 | -# Check hardcoding attributes. |
| 2067 | -AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], |
| 2068 | -[AC_MSG_CHECKING([how to hardcode library paths into programs]) |
| 2069 | -_LT_AC_TAGVAR(hardcode_action, $1)= |
| 2070 | -if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \ |
| 2071 | - test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \ |
| 2072 | - test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then |
| 2073 | - |
| 2074 | - # We can hardcode non-existant directories. |
| 2075 | - if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no && |
| 2076 | - # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 2077 | - # have to relink, otherwise we might link with an installed library |
| 2078 | - # when we should be linking with a yet-to-be-installed one |
| 2079 | - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no && |
| 2080 | - test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then |
| 2081 | - # Linking always hardcodes the temporary library directory. |
| 2082 | - _LT_AC_TAGVAR(hardcode_action, $1)=relink |
| 2083 | - else |
| 2084 | - # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 2085 | - _LT_AC_TAGVAR(hardcode_action, $1)=immediate |
| 2086 | +if test -z "$lt_ECHO"; then |
| 2087 | + if test "X${echo_test_string+set}" != Xset; then |
| 2088 | + # find a string as large as possible, as long as the shell can cope with it |
| 2089 | + for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do |
| 2090 | + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
| 2091 | + if { echo_test_string=`eval $cmd`; } 2>/dev/null && |
| 2092 | + { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null |
| 2093 | + then |
| 2094 | + break |
| 2095 | + fi |
| 2096 | + done |
| 2097 | fi |
| 2098 | -else |
| 2099 | - # We cannot hardcode anything, or else we can only hardcode existing |
| 2100 | - # directories. |
| 2101 | - _LT_AC_TAGVAR(hardcode_action, $1)=unsupported |
| 2102 | -fi |
| 2103 | -AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)]) |
| 2104 | |
| 2105 | -if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then |
| 2106 | - # Fast installation is not supported |
| 2107 | - enable_fast_install=no |
| 2108 | -elif test "$shlibpath_overrides_runpath" = yes || |
| 2109 | - test "$enable_shared" = no; then |
| 2110 | - # Fast installation is not necessary |
| 2111 | - enable_fast_install=needless |
| 2112 | -fi |
| 2113 | -])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH |
| 2114 | + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && |
| 2115 | + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && |
| 2116 | + test "X$echo_testing_string" = "X$echo_test_string"; then |
| 2117 | + : |
| 2118 | + else |
| 2119 | + # The Solaris, AIX, and Digital Unix default echo programs unquote |
| 2120 | + # backslashes. This makes it impossible to quote backslashes using |
| 2121 | + # echo "$something" | sed 's/\\/\\\\/g' |
| 2122 | + # |
| 2123 | + # So, first we look for a working echo in the user's PATH. |
| 2124 | |
| 2125 | + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 2126 | + for dir in $PATH /usr/ucb; do |
| 2127 | + IFS="$lt_save_ifs" |
| 2128 | + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
| 2129 | + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
| 2130 | + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
| 2131 | + test "X$echo_testing_string" = "X$echo_test_string"; then |
| 2132 | + ECHO="$dir/echo" |
| 2133 | + break |
| 2134 | + fi |
| 2135 | + done |
| 2136 | + IFS="$lt_save_ifs" |
| 2137 | |
| 2138 | -# AC_LIBTOOL_SYS_LIB_STRIP |
| 2139 | -# ------------------------ |
| 2140 | -AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP], |
| 2141 | -[striplib= |
| 2142 | -old_striplib= |
| 2143 | -AC_MSG_CHECKING([whether stripping libraries is possible]) |
| 2144 | -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 2145 | - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 2146 | - test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 2147 | - AC_MSG_RESULT([yes]) |
| 2148 | -else |
| 2149 | -# FIXME - insert some real tests, host_os isn't really good enough |
| 2150 | - case $host_os in |
| 2151 | - darwin*) |
| 2152 | - if test -n "$STRIP" ; then |
| 2153 | - striplib="$STRIP -x" |
| 2154 | - AC_MSG_RESULT([yes]) |
| 2155 | - else |
| 2156 | - AC_MSG_RESULT([no]) |
| 2157 | -fi |
| 2158 | - ;; |
| 2159 | - *) |
| 2160 | - AC_MSG_RESULT([no]) |
| 2161 | - ;; |
| 2162 | - esac |
| 2163 | -fi |
| 2164 | -])# AC_LIBTOOL_SYS_LIB_STRIP |
| 2165 | + if test "X$ECHO" = Xecho; then |
| 2166 | + # We didn't find a better echo, so look for alternatives. |
| 2167 | + if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && |
| 2168 | + echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && |
| 2169 | + test "X$echo_testing_string" = "X$echo_test_string"; then |
| 2170 | + # This shell has a builtin print -r that does the trick. |
| 2171 | + ECHO='print -r' |
| 2172 | + elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && |
| 2173 | + test "X$CONFIG_SHELL" != X/bin/ksh; then |
| 2174 | + # If we have ksh, try running configure again with it. |
| 2175 | + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
| 2176 | + export ORIGINAL_CONFIG_SHELL |
| 2177 | + CONFIG_SHELL=/bin/ksh |
| 2178 | + export CONFIG_SHELL |
| 2179 | + exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} |
| 2180 | + else |
| 2181 | + # Try using printf. |
| 2182 | + ECHO='printf %s\n' |
| 2183 | + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && |
| 2184 | + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && |
| 2185 | + test "X$echo_testing_string" = "X$echo_test_string"; then |
| 2186 | + # Cool, printf works |
| 2187 | + : |
| 2188 | + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && |
| 2189 | + test "X$echo_testing_string" = 'X\t' && |
| 2190 | + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 2191 | + test "X$echo_testing_string" = "X$echo_test_string"; then |
| 2192 | + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
| 2193 | + export CONFIG_SHELL |
| 2194 | + SHELL="$CONFIG_SHELL" |
| 2195 | + export SHELL |
| 2196 | + ECHO="$CONFIG_SHELL [$]0 --fallback-echo" |
| 2197 | + elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && |
| 2198 | + test "X$echo_testing_string" = 'X\t' && |
| 2199 | + echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 2200 | + test "X$echo_testing_string" = "X$echo_test_string"; then |
| 2201 | + ECHO="$CONFIG_SHELL [$]0 --fallback-echo" |
| 2202 | + else |
| 2203 | + # maybe with a smaller string... |
| 2204 | + prev=: |
| 2205 | |
| 2206 | + for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do |
| 2207 | + if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null |
| 2208 | + then |
| 2209 | + break |
| 2210 | + fi |
| 2211 | + prev="$cmd" |
| 2212 | + done |
| 2213 | |
| 2214 | -# AC_LIBTOOL_SYS_DYNAMIC_LINKER |
| 2215 | -# ----------------------------- |
| 2216 | -# PORTME Fill in your ld.so characteristics |
| 2217 | -AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER], |
| 2218 | -[AC_MSG_CHECKING([dynamic linker characteristics]) |
| 2219 | -library_names_spec= |
| 2220 | -libname_spec='lib$name' |
| 2221 | -soname_spec= |
| 2222 | -shrext_cmds=".so" |
| 2223 | -postinstall_cmds= |
| 2224 | -postuninstall_cmds= |
| 2225 | -finish_cmds= |
| 2226 | -finish_eval= |
| 2227 | -shlibpath_var= |
| 2228 | -shlibpath_overrides_runpath=unknown |
| 2229 | -version_type=none |
| 2230 | -dynamic_linker="$host_os ld.so" |
| 2231 | -sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 2232 | -if test "$GCC" = yes; then |
| 2233 | - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 2234 | - if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 2235 | - # if the path contains ";" then we assume it to be the separator |
| 2236 | - # otherwise default to the standard path separator (i.e. ":") - it is |
| 2237 | - # assumed that no part of a normal pathname contains ";" but that should |
| 2238 | - # okay in the real world where ";" in dirpaths is itself problematic. |
| 2239 | - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 2240 | - else |
| 2241 | - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 2242 | + if test "$prev" != 'sed 50q "[$]0"'; then |
| 2243 | + echo_test_string=`eval $prev` |
| 2244 | + export echo_test_string |
| 2245 | + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} |
| 2246 | + else |
| 2247 | + # Oops. We lost completely, so just stick with echo. |
| 2248 | + ECHO=echo |
| 2249 | + fi |
| 2250 | + fi |
| 2251 | + fi |
| 2252 | + fi |
| 2253 | fi |
| 2254 | -else |
| 2255 | - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 2256 | fi |
| 2257 | -need_lib_prefix=unknown |
| 2258 | -hardcode_into_libs=no |
| 2259 | |
| 2260 | -# when you set need_version to no, make sure it does not cause -set_version |
| 2261 | -# flags to be left without arguments |
| 2262 | -need_version=unknown |
| 2263 | +# Copy echo and quote the copy suitably for passing to libtool from |
| 2264 | +# the Makefile, instead of quoting the original, which is used later. |
| 2265 | +lt_ECHO=$ECHO |
| 2266 | +if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then |
| 2267 | + lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" |
| 2268 | +fi |
| 2269 | |
| 2270 | -case $host_os in |
| 2271 | -aix3*) |
| 2272 | - version_type=linux |
| 2273 | - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 2274 | - shlibpath_var=LIBPATH |
| 2275 | +AC_SUBST(lt_ECHO) |
| 2276 | +]) |
| 2277 | +_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) |
| 2278 | +_LT_DECL([], [ECHO], [1], |
| 2279 | + [An echo program that does not interpret backslashes]) |
| 2280 | +])# _LT_PROG_ECHO_BACKSLASH |
| 2281 | |
| 2282 | - # AIX 3 has no versioning support, so we append a major version to the name. |
| 2283 | - soname_spec='${libname}${release}${shared_ext}$major' |
| 2284 | - ;; |
| 2285 | |
| 2286 | -aix4* | aix5*) |
| 2287 | - version_type=linux |
| 2288 | - need_lib_prefix=no |
| 2289 | - need_version=no |
| 2290 | - hardcode_into_libs=yes |
| 2291 | - if test "$host_cpu" = ia64; then |
| 2292 | - # AIX 5 supports IA64 |
| 2293 | - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 2294 | - shlibpath_var=LD_LIBRARY_PATH |
| 2295 | - else |
| 2296 | - # With GCC up to 2.95.x, collect2 would create an import file |
| 2297 | - # for dependence libraries. The import file would start with |
| 2298 | - # the line `#! .'. This would cause the generated library to |
| 2299 | - # depend on `.', always an invalid library. This was fixed in |
| 2300 | - # development snapshots of GCC prior to 3.0. |
| 2301 | - case $host_os in |
| 2302 | - aix4 | aix4.[[01]] | aix4.[[01]].*) |
| 2303 | - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 2304 | - echo ' yes ' |
| 2305 | - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 2306 | - : |
| 2307 | - else |
| 2308 | - can_build_shared=no |
| 2309 | - fi |
| 2310 | - ;; |
| 2311 | +# _LT_ENABLE_LOCK |
| 2312 | +# --------------- |
| 2313 | +m4_defun([_LT_ENABLE_LOCK], |
| 2314 | +[AC_ARG_ENABLE([libtool-lock], |
| 2315 | + [AS_HELP_STRING([--disable-libtool-lock], |
| 2316 | + [avoid locking (might break parallel builds)])]) |
| 2317 | +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 2318 | + |
| 2319 | +# Some flags need to be propagated to the compiler or linker for good |
| 2320 | +# libtool support. |
| 2321 | +case $host in |
| 2322 | +ia64-*-hpux*) |
| 2323 | + # Find out which ABI we are using. |
| 2324 | + echo 'int i;' > conftest.$ac_ext |
| 2325 | + if AC_TRY_EVAL(ac_compile); then |
| 2326 | + case `/usr/bin/file conftest.$ac_objext` in |
| 2327 | + *ELF-32*) |
| 2328 | + HPUX_IA64_MODE="32" |
| 2329 | + ;; |
| 2330 | + *ELF-64*) |
| 2331 | + HPUX_IA64_MODE="64" |
| 2332 | + ;; |
| 2333 | esac |
| 2334 | - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 2335 | - # soname into executable. Probably we can add versioning support to |
| 2336 | - # collect2, so additional links can be useful in future. |
| 2337 | - if test "$aix_use_runtimelinking" = yes; then |
| 2338 | - # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 2339 | - # instead of lib<name>.a to let people know that these are not |
| 2340 | - # typical AIX shared libraries. |
| 2341 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 2342 | + fi |
| 2343 | + rm -rf conftest* |
| 2344 | + ;; |
| 2345 | +*-*-irix6*) |
| 2346 | + # Find out which ABI we are using. |
| 2347 | + echo '[#]line __oline__ "configure"' > conftest.$ac_ext |
| 2348 | + if AC_TRY_EVAL(ac_compile); then |
| 2349 | + if test "$lt_cv_prog_gnu_ld" = yes; then |
| 2350 | + case `/usr/bin/file conftest.$ac_objext` in |
| 2351 | + *32-bit*) |
| 2352 | + LD="${LD-ld} -melf32bsmip" |
| 2353 | + ;; |
| 2354 | + *N32*) |
| 2355 | + LD="${LD-ld} -melf32bmipn32" |
| 2356 | + ;; |
| 2357 | + *64-bit*) |
| 2358 | + LD="${LD-ld} -melf64bmip" |
| 2359 | + ;; |
| 2360 | + esac |
| 2361 | else |
| 2362 | - # We preserve .a as extension for shared libraries through AIX4.2 |
| 2363 | - # and later when we are not doing run time linking. |
| 2364 | - library_names_spec='${libname}${release}.a $libname.a' |
| 2365 | - soname_spec='${libname}${release}${shared_ext}$major' |
| 2366 | + case `/usr/bin/file conftest.$ac_objext` in |
| 2367 | + *32-bit*) |
| 2368 | + LD="${LD-ld} -32" |
| 2369 | + ;; |
| 2370 | + *N32*) |
| 2371 | + LD="${LD-ld} -n32" |
| 2372 | + ;; |
| 2373 | + *64-bit*) |
| 2374 | + LD="${LD-ld} -64" |
| 2375 | + ;; |
| 2376 | + esac |
| 2377 | fi |
| 2378 | - shlibpath_var=LIBPATH |
| 2379 | fi |
| 2380 | + rm -rf conftest* |
| 2381 | ;; |
| 2382 | |
| 2383 | -amigaos*) |
| 2384 | - library_names_spec='$libname.ixlibrary $libname.a' |
| 2385 | - # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 2386 | - 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' |
| 2387 | +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ |
| 2388 | +s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
| 2389 | + # Find out which ABI we are using. |
| 2390 | + echo 'int i;' > conftest.$ac_ext |
| 2391 | + if AC_TRY_EVAL(ac_compile); then |
| 2392 | + case `/usr/bin/file conftest.o` in |
| 2393 | + *32-bit*) |
| 2394 | + case $host in |
| 2395 | + x86_64-*kfreebsd*-gnu) |
| 2396 | + LD="${LD-ld} -m elf_i386_fbsd" |
| 2397 | + ;; |
| 2398 | + x86_64-*linux*) |
| 2399 | + LD="${LD-ld} -m elf_i386" |
| 2400 | + ;; |
| 2401 | + ppc64-*linux*|powerpc64-*linux*) |
| 2402 | + LD="${LD-ld} -m elf32ppclinux" |
| 2403 | + ;; |
| 2404 | + s390x-*linux*) |
| 2405 | + LD="${LD-ld} -m elf_s390" |
| 2406 | + ;; |
| 2407 | + sparc64-*linux*) |
| 2408 | + LD="${LD-ld} -m elf32_sparc" |
| 2409 | + ;; |
| 2410 | + esac |
| 2411 | + ;; |
| 2412 | + *64-bit*) |
| 2413 | + case $host in |
| 2414 | + x86_64-*kfreebsd*-gnu) |
| 2415 | + LD="${LD-ld} -m elf_x86_64_fbsd" |
| 2416 | + ;; |
| 2417 | + x86_64-*linux*) |
| 2418 | + LD="${LD-ld} -m elf_x86_64" |
| 2419 | + ;; |
| 2420 | + ppc*-*linux*|powerpc*-*linux*) |
| 2421 | + LD="${LD-ld} -m elf64ppc" |
| 2422 | + ;; |
| 2423 | + s390*-*linux*|s390*-*tpf*) |
| 2424 | + LD="${LD-ld} -m elf64_s390" |
| 2425 | + ;; |
| 2426 | + sparc*-*linux*) |
| 2427 | + LD="${LD-ld} -m elf64_sparc" |
| 2428 | + ;; |
| 2429 | + esac |
| 2430 | + ;; |
| 2431 | + esac |
| 2432 | + fi |
| 2433 | + rm -rf conftest* |
| 2434 | ;; |
| 2435 | |
| 2436 | -beos*) |
| 2437 | - library_names_spec='${libname}${shared_ext}' |
| 2438 | - dynamic_linker="$host_os ld.so" |
| 2439 | - shlibpath_var=LIBRARY_PATH |
| 2440 | +*-*-sco3.2v5*) |
| 2441 | + # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 2442 | + SAVE_CFLAGS="$CFLAGS" |
| 2443 | + CFLAGS="$CFLAGS -belf" |
| 2444 | + AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, |
| 2445 | + [AC_LANG_PUSH(C) |
| 2446 | + AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) |
| 2447 | + AC_LANG_POP]) |
| 2448 | + if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 2449 | + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 2450 | + CFLAGS="$SAVE_CFLAGS" |
| 2451 | + fi |
| 2452 | ;; |
| 2453 | - |
| 2454 | -bsdi[[45]]*) |
| 2455 | - version_type=linux |
| 2456 | - need_version=no |
| 2457 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 2458 | - soname_spec='${libname}${release}${shared_ext}$major' |
| 2459 | - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 2460 | - shlibpath_var=LD_LIBRARY_PATH |
| 2461 | - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 2462 | - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 2463 | - # the default ld.so.conf also contains /usr/contrib/lib and |
| 2464 | - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 2465 | - # libtool to hard-code these into programs |
| 2466 | +sparc*-*solaris*) |
| 2467 | + # Find out which ABI we are using. |
| 2468 | + echo 'int i;' > conftest.$ac_ext |
| 2469 | + if AC_TRY_EVAL(ac_compile); then |
| 2470 | + case `/usr/bin/file conftest.o` in |
| 2471 | + *64-bit*) |
| 2472 | + case $lt_cv_prog_gnu_ld in |
| 2473 | + yes*) LD="${LD-ld} -m elf64_sparc" ;; |
| 2474 | + *) |
| 2475 | + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
| 2476 | + LD="${LD-ld} -64" |
| 2477 | + fi |
| 2478 | + ;; |
| 2479 | + esac |
| 2480 | + ;; |
| 2481 | + esac |
| 2482 | + fi |
| 2483 | + rm -rf conftest* |
| 2484 | ;; |
| 2485 | +esac |
| 2486 | |
| 2487 | -cygwin* | mingw* | pw32*) |
| 2488 | - version_type=windows |
| 2489 | - shrext_cmds=".dll" |
| 2490 | - need_version=no |
| 2491 | - need_lib_prefix=no |
| 2492 | +need_locks="$enable_libtool_lock" |
| 2493 | +])# _LT_ENABLE_LOCK |
| 2494 | |
| 2495 | - case $GCC,$host_os in |
| 2496 | - yes,cygwin* | yes,mingw* | yes,pw32*) |
| 2497 | - library_names_spec='$libname.dll.a' |
| 2498 | - # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 2499 | - postinstall_cmds='base_file=`basename \${file}`~ |
| 2500 | - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 2501 | - dldir=$destdir/`dirname \$dlpath`~ |
| 2502 | - test -d \$dldir || mkdir -p \$dldir~ |
| 2503 | - $install_prog $dir/$dlname \$dldir/$dlname~ |
| 2504 | - chmod a+x \$dldir/$dlname' |
| 2505 | - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 2506 | - dlpath=$dir/\$dldll~ |
| 2507 | - $rm \$dlpath' |
| 2508 | - shlibpath_overrides_runpath=yes |
| 2509 | |
| 2510 | - case $host_os in |
| 2511 | - cygwin*) |
| 2512 | - # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 2513 | - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' |
| 2514 | - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 2515 | - ;; |
| 2516 | - mingw*) |
| 2517 | - # MinGW DLLs use traditional 'lib' prefix |
| 2518 | - soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' |
| 2519 | - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 2520 | - if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then |
| 2521 | - # It is most probably a Windows format PATH printed by |
| 2522 | - # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 2523 | - # path with ; separators, and with drive letters. We can handle the |
| 2524 | - # drive letters (cygwin fileutils understands them), so leave them, |
| 2525 | - # especially as we might pass files found there to a mingw objdump, |
| 2526 | - # which wouldn't understand a cygwinified path. Ahh. |
| 2527 | - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 2528 | - else |
| 2529 | - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 2530 | - fi |
| 2531 | - ;; |
| 2532 | - pw32*) |
| 2533 | - # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 2534 | - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' |
| 2535 | - ;; |
| 2536 | - esac |
| 2537 | - ;; |
| 2538 | +# _LT_CMD_OLD_ARCHIVE |
| 2539 | +# ------------------- |
| 2540 | +m4_defun([_LT_CMD_OLD_ARCHIVE], |
| 2541 | +[AC_CHECK_TOOL(AR, ar, false) |
| 2542 | +test -z "$AR" && AR=ar |
| 2543 | +test -z "$AR_FLAGS" && AR_FLAGS=cru |
| 2544 | +_LT_DECL([], [AR], [1], [The archiver]) |
| 2545 | +_LT_DECL([], [AR_FLAGS], [1]) |
| 2546 | + |
| 2547 | +AC_CHECK_TOOL(STRIP, strip, :) |
| 2548 | +test -z "$STRIP" && STRIP=: |
| 2549 | +_LT_DECL([], [STRIP], [1], [A symbol stripping program]) |
| 2550 | + |
| 2551 | +AC_CHECK_TOOL(RANLIB, ranlib, :) |
| 2552 | +test -z "$RANLIB" && RANLIB=: |
| 2553 | +_LT_DECL([], [RANLIB], [1], |
| 2554 | + [Commands used to install an old-style archive]) |
| 2555 | + |
| 2556 | +# Determine commands to create old-style static archives. |
| 2557 | +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
| 2558 | +old_postinstall_cmds='chmod 644 $oldlib' |
| 2559 | +old_postuninstall_cmds= |
| 2560 | |
| 2561 | +if test -n "$RANLIB"; then |
| 2562 | + case $host_os in |
| 2563 | + openbsd*) |
| 2564 | + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
| 2565 | + ;; |
| 2566 | *) |
| 2567 | - library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 2568 | + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
| 2569 | ;; |
| 2570 | esac |
| 2571 | - dynamic_linker='Win32 ld.exe' |
| 2572 | - # FIXME: first we should search . and the directory the executable is in |
| 2573 | - shlibpath_var=PATH |
| 2574 | - ;; |
| 2575 | + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
| 2576 | +fi |
| 2577 | +_LT_DECL([], [old_postinstall_cmds], [2]) |
| 2578 | +_LT_DECL([], [old_postuninstall_cmds], [2]) |
| 2579 | +_LT_TAGDECL([], [old_archive_cmds], [2], |
| 2580 | + [Commands used to build an old-style archive]) |
| 2581 | +])# _LT_CMD_OLD_ARCHIVE |
| 2582 | |
| 2583 | -darwin* | rhapsody*) |
| 2584 | - dynamic_linker="$host_os dyld" |
| 2585 | - version_type=darwin |
| 2586 | - need_lib_prefix=no |
| 2587 | - need_version=no |
| 2588 | - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 2589 | - soname_spec='${libname}${release}${major}$shared_ext' |
| 2590 | - shlibpath_overrides_runpath=yes |
| 2591 | - shlibpath_var=DYLD_LIBRARY_PATH |
| 2592 | - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
| 2593 | - # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 2594 | - if test "$GCC" = yes; then |
| 2595 | - sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
| 2596 | - else |
| 2597 | - sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 2598 | - fi |
| 2599 | - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 2600 | - ;; |
| 2601 | |
| 2602 | -dgux*) |
| 2603 | - version_type=linux |
| 2604 | - need_lib_prefix=no |
| 2605 | - need_version=no |
| 2606 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 2607 | - soname_spec='${libname}${release}${shared_ext}$major' |
| 2608 | - shlibpath_var=LD_LIBRARY_PATH |
| 2609 | - ;; |
| 2610 | +# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, |
| 2611 | +# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) |
| 2612 | +# ---------------------------------------------------------------- |
| 2613 | +# Check whether the given compiler option works |
| 2614 | +AC_DEFUN([_LT_COMPILER_OPTION], |
| 2615 | +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
| 2616 | +m4_require([_LT_DECL_SED])dnl |
| 2617 | +AC_CACHE_CHECK([$1], [$2], |
| 2618 | + [$2=no |
| 2619 | + m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) |
| 2620 | + echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 2621 | + lt_compiler_flag="$3" |
| 2622 | + # Insert the option either (1) after the last *FLAGS variable, or |
| 2623 | + # (2) before a word containing "conftest.", or (3) at the end. |
| 2624 | + # Note that $ac_compile itself does not contain backslashes and begins |
| 2625 | + # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 2626 | + # The option is referenced via a variable to avoid confusing sed. |
| 2627 | + lt_compile=`echo "$ac_compile" | $SED \ |
| 2628 | + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 2629 | + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ |
| 2630 | + -e 's:$: $lt_compiler_flag:'` |
| 2631 | + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) |
| 2632 | + (eval "$lt_compile" 2>conftest.err) |
| 2633 | + ac_status=$? |
| 2634 | + cat conftest.err >&AS_MESSAGE_LOG_FD |
| 2635 | + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD |
| 2636 | + if (exit $ac_status) && test -s "$ac_outfile"; then |
| 2637 | + # The compiler can only warn and ignore the option if not recognized |
| 2638 | + # So say no if there are warnings other than the usual output. |
| 2639 | + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 2640 | + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 2641 | + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 2642 | + $2=yes |
| 2643 | + fi |
| 2644 | + fi |
| 2645 | + $RM conftest* |
| 2646 | +]) |
| 2647 | |
| 2648 | -freebsd1*) |
| 2649 | - dynamic_linker=no |
| 2650 | - ;; |
| 2651 | +if test x"[$]$2" = xyes; then |
| 2652 | + m4_if([$5], , :, [$5]) |
| 2653 | +else |
| 2654 | + m4_if([$6], , :, [$6]) |
| 2655 | +fi |
| 2656 | +])# _LT_COMPILER_OPTION |
| 2657 | |
| 2658 | -kfreebsd*-gnu) |
| 2659 | - version_type=linux |
| 2660 | - need_lib_prefix=no |
| 2661 | - need_version=no |
| 2662 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 2663 | - soname_spec='${libname}${release}${shared_ext}$major' |
| 2664 | - shlibpath_var=LD_LIBRARY_PATH |
| 2665 | - shlibpath_overrides_runpath=no |
| 2666 | - hardcode_into_libs=yes |
| 2667 | - dynamic_linker='GNU ld.so' |
| 2668 | - ;; |
| 2669 | +# Old name: |
| 2670 | +AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION]) |
| 2671 | +dnl aclocal-1.4 backwards compatibility: |
| 2672 | +dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], []) |
| 2673 | |
| 2674 | -freebsd* | dragonfly*) |
| 2675 | - # DragonFly does not have aout. When/if they implement a new |
| 2676 | - # versioning mechanism, adjust this. |
| 2677 | - if test -x /usr/bin/objformat; then |
| 2678 | - objformat=`/usr/bin/objformat` |
| 2679 | - else |
| 2680 | - case $host_os in |
| 2681 | - freebsd[[123]]*) objformat=aout ;; |
| 2682 | - *) objformat=elf ;; |
| 2683 | - esac |
| 2684 | - fi |
| 2685 | - version_type=freebsd-$objformat |
| 2686 | - case $version_type in |
| 2687 | - freebsd-elf*) |
| 2688 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 2689 | - need_version=no |
| 2690 | - need_lib_prefix=no |
| 2691 | - ;; |
| 2692 | - freebsd-*) |
| 2693 | - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 2694 | - need_version=yes |
| 2695 | - ;; |
| 2696 | - esac |
| 2697 | - shlibpath_var=LD_LIBRARY_PATH |
| 2698 | - case $host_os in |
| 2699 | - freebsd2*) |
| 2700 | - shlibpath_overrides_runpath=yes |
| 2701 | - ;; |
| 2702 | - freebsd3.[[01]]* | freebsdelf3.[[01]]*) |
| 2703 | - shlibpath_overrides_runpath=yes |
| 2704 | - hardcode_into_libs=yes |
| 2705 | + |
| 2706 | +# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, |
| 2707 | +# [ACTION-SUCCESS], [ACTION-FAILURE]) |
| 2708 | +# ---------------------------------------------------- |
| 2709 | +# Check whether the given linker option works |
| 2710 | +AC_DEFUN([_LT_LINKER_OPTION], |
| 2711 | +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
| 2712 | +m4_require([_LT_DECL_SED])dnl |
| 2713 | +AC_CACHE_CHECK([$1], [$2], |
| 2714 | + [$2=no |
| 2715 | + save_LDFLAGS="$LDFLAGS" |
| 2716 | + LDFLAGS="$LDFLAGS $3" |
| 2717 | + echo "$lt_simple_link_test_code" > conftest.$ac_ext |
| 2718 | + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 2719 | + # The linker can only warn and ignore the option if not recognized |
| 2720 | + # So say no if there are warnings |
| 2721 | + if test -s conftest.err; then |
| 2722 | + # Append any errors to the config.log. |
| 2723 | + cat conftest.err 1>&AS_MESSAGE_LOG_FD |
| 2724 | + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 2725 | + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 2726 | + if diff conftest.exp conftest.er2 >/dev/null; then |
| 2727 | + $2=yes |
| 2728 | + fi |
| 2729 | + else |
| 2730 | + $2=yes |
| 2731 | + fi |
| 2732 | + fi |
| 2733 | + $RM -r conftest* |
| 2734 | + LDFLAGS="$save_LDFLAGS" |
| 2735 | +]) |
| 2736 | + |
| 2737 | +if test x"[$]$2" = xyes; then |
| 2738 | + m4_if([$4], , :, [$4]) |
| 2739 | +else |
| 2740 | + m4_if([$5], , :, [$5]) |
| 2741 | +fi |
| 2742 | +])# _LT_LINKER_OPTION |
| 2743 | + |
| 2744 | +# Old name: |
| 2745 | +AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION]) |
| 2746 | +dnl aclocal-1.4 backwards compatibility: |
| 2747 | +dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], []) |
| 2748 | + |
| 2749 | + |
| 2750 | +# LT_CMD_MAX_LEN |
| 2751 | +#--------------- |
| 2752 | +AC_DEFUN([LT_CMD_MAX_LEN], |
| 2753 | +[AC_REQUIRE([AC_CANONICAL_HOST])dnl |
| 2754 | +# find the maximum length of command line arguments |
| 2755 | +AC_MSG_CHECKING([the maximum length of command line arguments]) |
| 2756 | +AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl |
| 2757 | + i=0 |
| 2758 | + teststring="ABCD" |
| 2759 | + |
| 2760 | + case $build_os in |
| 2761 | + msdosdjgpp*) |
| 2762 | + # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 2763 | + # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 2764 | + # during glob expansion). Even if it were fixed, the result of this |
| 2765 | + # check would be larger than it should be. |
| 2766 | + lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 2767 | ;; |
| 2768 | - freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ |
| 2769 | - freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) |
| 2770 | - shlibpath_overrides_runpath=no |
| 2771 | - hardcode_into_libs=yes |
| 2772 | + |
| 2773 | + gnu*) |
| 2774 | + # Under GNU Hurd, this test is not required because there is |
| 2775 | + # no limit to the length of command line arguments. |
| 2776 | + # Libtool will interpret -1 as no limit whatsoever |
| 2777 | + lt_cv_sys_max_cmd_len=-1; |
| 2778 | ;; |
| 2779 | - freebsd*) # from 4.6 on |
| 2780 | - shlibpath_overrides_runpath=yes |
| 2781 | - hardcode_into_libs=yes |
| 2782 | + |
| 2783 | + cygwin* | mingw*) |
| 2784 | + # On Win9x/ME, this test blows up -- it succeeds, but takes |
| 2785 | + # about 5 minutes as the teststring grows exponentially. |
| 2786 | + # Worse, since 9x/ME are not pre-emptively multitasking, |
| 2787 | + # you end up with a "frozen" computer, even though with patience |
| 2788 | + # the test eventually succeeds (with a max line length of 256k). |
| 2789 | + # Instead, let's just punt: use the minimum linelength reported by |
| 2790 | + # all of the supported platforms: 8192 (on NT/2K/XP). |
| 2791 | + lt_cv_sys_max_cmd_len=8192; |
| 2792 | ;; |
| 2793 | - esac |
| 2794 | - ;; |
| 2795 | |
| 2796 | -gnu*) |
| 2797 | - version_type=linux |
| 2798 | - need_lib_prefix=no |
| 2799 | - need_version=no |
| 2800 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 2801 | - soname_spec='${libname}${release}${shared_ext}$major' |
| 2802 | - shlibpath_var=LD_LIBRARY_PATH |
| 2803 | - hardcode_into_libs=yes |
| 2804 | - ;; |
| 2805 | + amigaos*) |
| 2806 | + # On AmigaOS with pdksh, this test takes hours, literally. |
| 2807 | + # So we just punt and use a minimum line length of 8192. |
| 2808 | + lt_cv_sys_max_cmd_len=8192; |
| 2809 | + ;; |
| 2810 | |
| 2811 | -hpux9* | hpux10* | hpux11*) |
| 2812 | - # Give a soname corresponding to the major version so that dld.sl refuses to |
| 2813 | - # link against other versions. |
| 2814 | - version_type=sunos |
| 2815 | - need_lib_prefix=no |
| 2816 | - need_version=no |
| 2817 | - case $host_cpu in |
| 2818 | - ia64*) |
| 2819 | - shrext_cmds='.so' |
| 2820 | - hardcode_into_libs=yes |
| 2821 | - dynamic_linker="$host_os dld.so" |
| 2822 | - shlibpath_var=LD_LIBRARY_PATH |
| 2823 | - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 2824 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 2825 | - soname_spec='${libname}${release}${shared_ext}$major' |
| 2826 | - if test "X$HPUX_IA64_MODE" = X32; then |
| 2827 | - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 2828 | + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
| 2829 | + # This has been around since 386BSD, at least. Likely further. |
| 2830 | + if test -x /sbin/sysctl; then |
| 2831 | + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 2832 | + elif test -x /usr/sbin/sysctl; then |
| 2833 | + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| 2834 | else |
| 2835 | - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 2836 | + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
| 2837 | fi |
| 2838 | - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 2839 | - ;; |
| 2840 | - hppa*64*) |
| 2841 | - shrext_cmds='.sl' |
| 2842 | - hardcode_into_libs=yes |
| 2843 | - dynamic_linker="$host_os dld.sl" |
| 2844 | - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 2845 | - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 2846 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 2847 | - soname_spec='${libname}${release}${shared_ext}$major' |
| 2848 | - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 2849 | - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 2850 | - ;; |
| 2851 | - *) |
| 2852 | - shrext_cmds='.sl' |
| 2853 | - dynamic_linker="$host_os dld.sl" |
| 2854 | - shlibpath_var=SHLIB_PATH |
| 2855 | - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 2856 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 2857 | - soname_spec='${libname}${release}${shared_ext}$major' |
| 2858 | + # And add a safety zone |
| 2859 | + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 2860 | + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 2861 | ;; |
| 2862 | - esac |
| 2863 | - # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 2864 | - postinstall_cmds='chmod 555 $lib' |
| 2865 | - ;; |
| 2866 | |
| 2867 | -interix3*) |
| 2868 | - version_type=linux |
| 2869 | - need_lib_prefix=no |
| 2870 | - need_version=no |
| 2871 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 2872 | - soname_spec='${libname}${release}${shared_ext}$major' |
| 2873 | - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 2874 | - shlibpath_var=LD_LIBRARY_PATH |
| 2875 | - shlibpath_overrides_runpath=no |
| 2876 | - hardcode_into_libs=yes |
| 2877 | - ;; |
| 2878 | + interix*) |
| 2879 | + # We know the value 262144 and hardcode it with a safety zone (like BSD) |
| 2880 | + lt_cv_sys_max_cmd_len=196608 |
| 2881 | + ;; |
| 2882 | |
| 2883 | -irix5* | irix6* | nonstopux*) |
| 2884 | - case $host_os in |
| 2885 | - nonstopux*) version_type=nonstopux ;; |
| 2886 | - *) |
| 2887 | - if test "$lt_cv_prog_gnu_ld" = yes; then |
| 2888 | - version_type=linux |
| 2889 | - else |
| 2890 | - version_type=irix |
| 2891 | - fi ;; |
| 2892 | - esac |
| 2893 | - need_lib_prefix=no |
| 2894 | - need_version=no |
| 2895 | - soname_spec='${libname}${release}${shared_ext}$major' |
| 2896 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 2897 | - case $host_os in |
| 2898 | - irix5* | nonstopux*) |
| 2899 | - libsuff= shlibsuff= |
| 2900 | + osf*) |
| 2901 | + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
| 2902 | + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
| 2903 | + # nice to cause kernel panics so lets avoid the loop below. |
| 2904 | + # First set a reasonable default. |
| 2905 | + lt_cv_sys_max_cmd_len=16384 |
| 2906 | + # |
| 2907 | + if test -x /sbin/sysconfig; then |
| 2908 | + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
| 2909 | + *1*) lt_cv_sys_max_cmd_len=-1 ;; |
| 2910 | + esac |
| 2911 | + fi |
| 2912 | + ;; |
| 2913 | + sco3.2v5*) |
| 2914 | + lt_cv_sys_max_cmd_len=102400 |
| 2915 | + ;; |
| 2916 | + sysv5* | sco5v6* | sysv4.2uw2*) |
| 2917 | + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
| 2918 | + if test -n "$kargmax"; then |
| 2919 | + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` |
| 2920 | + else |
| 2921 | + lt_cv_sys_max_cmd_len=32768 |
| 2922 | + fi |
| 2923 | ;; |
| 2924 | *) |
| 2925 | - case $LD in # libtool.m4 will add one of these switches to LD |
| 2926 | - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 2927 | - libsuff= shlibsuff= libmagic=32-bit;; |
| 2928 | - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 2929 | - libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 2930 | - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 2931 | - libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 2932 | - *) libsuff= shlibsuff= libmagic=never-match;; |
| 2933 | - esac |
| 2934 | + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
| 2935 | + if test -n "$lt_cv_sys_max_cmd_len"; then |
| 2936 | + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 2937 | + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 2938 | + else |
| 2939 | + # Make teststring a little bigger before we do anything with it. |
| 2940 | + # a 1K string should be a reasonable start. |
| 2941 | + for i in 1 2 3 4 5 6 7 8 ; do |
| 2942 | + teststring=$teststring$teststring |
| 2943 | + done |
| 2944 | + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| 2945 | + # If test is not a shell built-in, we'll probably end up computing a |
| 2946 | + # maximum length that is only half of the actual maximum length, but |
| 2947 | + # we can't tell. |
| 2948 | + while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ |
| 2949 | + = "XX$teststring$teststring"; } >/dev/null 2>&1 && |
| 2950 | + test $i != 17 # 1/2 MB should be enough |
| 2951 | + do |
| 2952 | + i=`expr $i + 1` |
| 2953 | + teststring=$teststring$teststring |
| 2954 | + done |
| 2955 | + # Only check the string length outside the loop. |
| 2956 | + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` |
| 2957 | + teststring= |
| 2958 | + # Add a significant safety factor because C++ compilers can tack on |
| 2959 | + # massive amounts of additional arguments before passing them to the |
| 2960 | + # linker. It appears as though 1/2 is a usable value. |
| 2961 | + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 2962 | + fi |
| 2963 | ;; |
| 2964 | esac |
| 2965 | - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 2966 | - shlibpath_overrides_runpath=no |
| 2967 | - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 2968 | - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 2969 | - hardcode_into_libs=yes |
| 2970 | - ;; |
| 2971 | +]) |
| 2972 | +if test -n $lt_cv_sys_max_cmd_len ; then |
| 2973 | + AC_MSG_RESULT($lt_cv_sys_max_cmd_len) |
| 2974 | +else |
| 2975 | + AC_MSG_RESULT(none) |
| 2976 | +fi |
| 2977 | +max_cmd_len=$lt_cv_sys_max_cmd_len |
| 2978 | +_LT_DECL([], [max_cmd_len], [0], |
| 2979 | + [What is the maximum length of a command?]) |
| 2980 | +])# LT_CMD_MAX_LEN |
| 2981 | |
| 2982 | -# No shared lib support for Linux oldld, aout, or coff. |
| 2983 | -linux*oldld* | linux*aout* | linux*coff*) |
| 2984 | - dynamic_linker=no |
| 2985 | - ;; |
| 2986 | +# Old name: |
| 2987 | +AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN]) |
| 2988 | +dnl aclocal-1.4 backwards compatibility: |
| 2989 | +dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], []) |
| 2990 | |
| 2991 | -# This must be Linux ELF. |
| 2992 | -linux*) |
| 2993 | - version_type=linux |
| 2994 | - need_lib_prefix=no |
| 2995 | - need_version=no |
| 2996 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 2997 | - soname_spec='${libname}${release}${shared_ext}$major' |
| 2998 | - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 2999 | - shlibpath_var=LD_LIBRARY_PATH |
| 3000 | - shlibpath_overrides_runpath=no |
| 3001 | - # This implies no fast_install, which is unacceptable. |
| 3002 | - # Some rework will be needed to allow for fast_install |
| 3003 | - # before this can be enabled. |
| 3004 | - hardcode_into_libs=yes |
| 3005 | |
| 3006 | - # Append ld.so.conf contents to the search path |
| 3007 | - if test -f /etc/ld.so.conf; then |
| 3008 | - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
| 3009 | - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 3010 | - fi |
| 3011 | +# _LT_HEADER_DLFCN |
| 3012 | +# ---------------- |
| 3013 | +m4_defun([_LT_HEADER_DLFCN], |
| 3014 | +[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl |
| 3015 | +])# _LT_HEADER_DLFCN |
| 3016 | |
| 3017 | - # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 3018 | - # powerpc, because MkLinux only supported shared libraries with the |
| 3019 | - # GNU dynamic linker. Since this was broken with cross compilers, |
| 3020 | - # most powerpc-linux boxes support dynamic linking these days and |
| 3021 | - # people can always --disable-shared, the test was removed, and we |
| 3022 | - # assume the GNU/Linux dynamic linker is in use. |
| 3023 | - dynamic_linker='GNU/Linux ld.so' |
| 3024 | - ;; |
| 3025 | |
| 3026 | -knetbsd*-gnu) |
| 3027 | - version_type=linux |
| 3028 | - need_lib_prefix=no |
| 3029 | - need_version=no |
| 3030 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 3031 | - soname_spec='${libname}${release}${shared_ext}$major' |
| 3032 | - shlibpath_var=LD_LIBRARY_PATH |
| 3033 | - shlibpath_overrides_runpath=no |
| 3034 | - hardcode_into_libs=yes |
| 3035 | - dynamic_linker='GNU ld.so' |
| 3036 | - ;; |
| 3037 | +# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, |
| 3038 | +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) |
| 3039 | +# ---------------------------------------------------------------- |
| 3040 | +m4_defun([_LT_TRY_DLOPEN_SELF], |
| 3041 | +[m4_require([_LT_HEADER_DLFCN])dnl |
| 3042 | +if test "$cross_compiling" = yes; then : |
| 3043 | + [$4] |
| 3044 | +else |
| 3045 | + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 3046 | + lt_status=$lt_dlunknown |
| 3047 | + cat > conftest.$ac_ext <<_LT_EOF |
| 3048 | +[#line __oline__ "configure" |
| 3049 | +#include "confdefs.h" |
| 3050 | |
| 3051 | -netbsd*) |
| 3052 | - version_type=sunos |
| 3053 | - need_lib_prefix=no |
| 3054 | - need_version=no |
| 3055 | - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 3056 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 3057 | - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 3058 | - dynamic_linker='NetBSD (a.out) ld.so' |
| 3059 | - else |
| 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 | - dynamic_linker='NetBSD ld.elf_so' |
| 3063 | - fi |
| 3064 | - shlibpath_var=LD_LIBRARY_PATH |
| 3065 | - shlibpath_overrides_runpath=yes |
| 3066 | - hardcode_into_libs=yes |
| 3067 | - ;; |
| 3068 | +#if HAVE_DLFCN_H |
| 3069 | +#include <dlfcn.h> |
| 3070 | +#endif |
| 3071 | |
| 3072 | -newsos6) |
| 3073 | - version_type=linux |
| 3074 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 3075 | - shlibpath_var=LD_LIBRARY_PATH |
| 3076 | - shlibpath_overrides_runpath=yes |
| 3077 | - ;; |
| 3078 | +#include <stdio.h> |
| 3079 | |
| 3080 | -nto-qnx*) |
| 3081 | - version_type=linux |
| 3082 | - need_lib_prefix=no |
| 3083 | - need_version=no |
| 3084 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 3085 | - soname_spec='${libname}${release}${shared_ext}$major' |
| 3086 | - shlibpath_var=LD_LIBRARY_PATH |
| 3087 | - shlibpath_overrides_runpath=yes |
| 3088 | - ;; |
| 3089 | +#ifdef RTLD_GLOBAL |
| 3090 | +# define LT_DLGLOBAL RTLD_GLOBAL |
| 3091 | +#else |
| 3092 | +# ifdef DL_GLOBAL |
| 3093 | +# define LT_DLGLOBAL DL_GLOBAL |
| 3094 | +# else |
| 3095 | +# define LT_DLGLOBAL 0 |
| 3096 | +# endif |
| 3097 | +#endif |
| 3098 | |
| 3099 | -openbsd*) |
| 3100 | - version_type=sunos |
| 3101 | - sys_lib_dlsearch_path_spec="/usr/lib" |
| 3102 | - need_lib_prefix=no |
| 3103 | - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 3104 | - case $host_os in |
| 3105 | - openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 3106 | - *) need_version=no ;; |
| 3107 | - esac |
| 3108 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 3109 | - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 3110 | - shlibpath_var=LD_LIBRARY_PATH |
| 3111 | - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 3112 | - case $host_os in |
| 3113 | - openbsd2.[[89]] | openbsd2.[[89]].*) |
| 3114 | - shlibpath_overrides_runpath=no |
| 3115 | - ;; |
| 3116 | - *) |
| 3117 | - shlibpath_overrides_runpath=yes |
| 3118 | - ;; |
| 3119 | - esac |
| 3120 | +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 3121 | + find out it does not work in some platform. */ |
| 3122 | +#ifndef LT_DLLAZY_OR_NOW |
| 3123 | +# ifdef RTLD_LAZY |
| 3124 | +# define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 3125 | +# else |
| 3126 | +# ifdef DL_LAZY |
| 3127 | +# define LT_DLLAZY_OR_NOW DL_LAZY |
| 3128 | +# else |
| 3129 | +# ifdef RTLD_NOW |
| 3130 | +# define LT_DLLAZY_OR_NOW RTLD_NOW |
| 3131 | +# else |
| 3132 | +# ifdef DL_NOW |
| 3133 | +# define LT_DLLAZY_OR_NOW DL_NOW |
| 3134 | +# else |
| 3135 | +# define LT_DLLAZY_OR_NOW 0 |
| 3136 | +# endif |
| 3137 | +# endif |
| 3138 | +# endif |
| 3139 | +# endif |
| 3140 | +#endif |
| 3141 | + |
| 3142 | +#ifdef __cplusplus |
| 3143 | +extern "C" void exit (int); |
| 3144 | +#endif |
| 3145 | + |
| 3146 | +void fnord() { int i=42;} |
| 3147 | +int main () |
| 3148 | +{ |
| 3149 | + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 3150 | + int status = $lt_dlunknown; |
| 3151 | + |
| 3152 | + if (self) |
| 3153 | + { |
| 3154 | + if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 3155 | + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 3156 | + /* dlclose (self); */ |
| 3157 | + } |
| 3158 | else |
| 3159 | - shlibpath_overrides_runpath=yes |
| 3160 | + puts (dlerror ()); |
| 3161 | + |
| 3162 | + exit (status); |
| 3163 | +}] |
| 3164 | +_LT_EOF |
| 3165 | + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then |
| 3166 | + (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null |
| 3167 | + lt_status=$? |
| 3168 | + case x$lt_status in |
| 3169 | + x$lt_dlno_uscore) $1 ;; |
| 3170 | + x$lt_dlneed_uscore) $2 ;; |
| 3171 | + x$lt_dlunknown|x*) $3 ;; |
| 3172 | + esac |
| 3173 | + else : |
| 3174 | + # compilation failed |
| 3175 | + $3 |
| 3176 | fi |
| 3177 | - ;; |
| 3178 | +fi |
| 3179 | +rm -fr conftest* |
| 3180 | +])# _LT_TRY_DLOPEN_SELF |
| 3181 | |
| 3182 | -os2*) |
| 3183 | - libname_spec='$name' |
| 3184 | - shrext_cmds=".dll" |
| 3185 | - need_lib_prefix=no |
| 3186 | - library_names_spec='$libname${shared_ext} $libname.a' |
| 3187 | - dynamic_linker='OS/2 ld.exe' |
| 3188 | - shlibpath_var=LIBPATH |
| 3189 | - ;; |
| 3190 | |
| 3191 | -osf3* | osf4* | osf5*) |
| 3192 | - version_type=osf |
| 3193 | - need_lib_prefix=no |
| 3194 | - need_version=no |
| 3195 | - soname_spec='${libname}${release}${shared_ext}$major' |
| 3196 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 3197 | - shlibpath_var=LD_LIBRARY_PATH |
| 3198 | - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 3199 | - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 3200 | - ;; |
| 3201 | +# LT_SYS_DLOPEN_SELF |
| 3202 | +# ------------------ |
| 3203 | +AC_DEFUN([LT_SYS_DLOPEN_SELF], |
| 3204 | +[m4_require([_LT_HEADER_DLFCN])dnl |
| 3205 | +if test "x$enable_dlopen" != xyes; then |
| 3206 | + enable_dlopen=unknown |
| 3207 | + enable_dlopen_self=unknown |
| 3208 | + enable_dlopen_self_static=unknown |
| 3209 | +else |
| 3210 | + lt_cv_dlopen=no |
| 3211 | + lt_cv_dlopen_libs= |
| 3212 | |
| 3213 | -solaris*) |
| 3214 | - version_type=linux |
| 3215 | - need_lib_prefix=no |
| 3216 | - need_version=no |
| 3217 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 3218 | - soname_spec='${libname}${release}${shared_ext}$major' |
| 3219 | - shlibpath_var=LD_LIBRARY_PATH |
| 3220 | - shlibpath_overrides_runpath=yes |
| 3221 | - hardcode_into_libs=yes |
| 3222 | - # ldd complains unless libraries are executable |
| 3223 | - postinstall_cmds='chmod +x $lib' |
| 3224 | - ;; |
| 3225 | + case $host_os in |
| 3226 | + beos*) |
| 3227 | + lt_cv_dlopen="load_add_on" |
| 3228 | + lt_cv_dlopen_libs= |
| 3229 | + lt_cv_dlopen_self=yes |
| 3230 | + ;; |
| 3231 | |
| 3232 | -sunos4*) |
| 3233 | - version_type=sunos |
| 3234 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 3235 | - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 3236 | - shlibpath_var=LD_LIBRARY_PATH |
| 3237 | - shlibpath_overrides_runpath=yes |
| 3238 | - if test "$with_gnu_ld" = yes; then |
| 3239 | - need_lib_prefix=no |
| 3240 | - fi |
| 3241 | - need_version=yes |
| 3242 | - ;; |
| 3243 | + mingw* | pw32*) |
| 3244 | + lt_cv_dlopen="LoadLibrary" |
| 3245 | + lt_cv_dlopen_libs= |
| 3246 | + ;; |
| 3247 | |
| 3248 | -sysv4 | sysv4.3*) |
| 3249 | - version_type=linux |
| 3250 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 3251 | - soname_spec='${libname}${release}${shared_ext}$major' |
| 3252 | - shlibpath_var=LD_LIBRARY_PATH |
| 3253 | - case $host_vendor in |
| 3254 | - sni) |
| 3255 | - shlibpath_overrides_runpath=no |
| 3256 | - need_lib_prefix=no |
| 3257 | - export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 3258 | - runpath_var=LD_RUN_PATH |
| 3259 | - ;; |
| 3260 | - siemens) |
| 3261 | - need_lib_prefix=no |
| 3262 | - ;; |
| 3263 | - motorola) |
| 3264 | - need_lib_prefix=no |
| 3265 | - need_version=no |
| 3266 | - shlibpath_overrides_runpath=no |
| 3267 | - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 3268 | - ;; |
| 3269 | - esac |
| 3270 | - ;; |
| 3271 | + cygwin*) |
| 3272 | + lt_cv_dlopen="dlopen" |
| 3273 | + lt_cv_dlopen_libs= |
| 3274 | + ;; |
| 3275 | |
| 3276 | -sysv4*MP*) |
| 3277 | - if test -d /usr/nec ;then |
| 3278 | - version_type=linux |
| 3279 | - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 3280 | - soname_spec='$libname${shared_ext}.$major' |
| 3281 | - shlibpath_var=LD_LIBRARY_PATH |
| 3282 | - fi |
| 3283 | - ;; |
| 3284 | + darwin*) |
| 3285 | + # if libdl is installed we need to link against it |
| 3286 | + AC_CHECK_LIB([dl], [dlopen], |
| 3287 | + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ |
| 3288 | + lt_cv_dlopen="dyld" |
| 3289 | + lt_cv_dlopen_libs= |
| 3290 | + lt_cv_dlopen_self=yes |
| 3291 | + ]) |
| 3292 | + ;; |
| 3293 | |
| 3294 | -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 3295 | - version_type=freebsd-elf |
| 3296 | - need_lib_prefix=no |
| 3297 | - need_version=no |
| 3298 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 3299 | - soname_spec='${libname}${release}${shared_ext}$major' |
| 3300 | - shlibpath_var=LD_LIBRARY_PATH |
| 3301 | - hardcode_into_libs=yes |
| 3302 | - if test "$with_gnu_ld" = yes; then |
| 3303 | - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 3304 | - shlibpath_overrides_runpath=no |
| 3305 | + *) |
| 3306 | + AC_CHECK_FUNC([shl_load], |
| 3307 | + [lt_cv_dlopen="shl_load"], |
| 3308 | + [AC_CHECK_LIB([dld], [shl_load], |
| 3309 | + [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"], |
| 3310 | + [AC_CHECK_FUNC([dlopen], |
| 3311 | + [lt_cv_dlopen="dlopen"], |
| 3312 | + [AC_CHECK_LIB([dl], [dlopen], |
| 3313 | + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], |
| 3314 | + [AC_CHECK_LIB([svld], [dlopen], |
| 3315 | + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], |
| 3316 | + [AC_CHECK_LIB([dld], [dld_link], |
| 3317 | + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"]) |
| 3318 | + ]) |
| 3319 | + ]) |
| 3320 | + ]) |
| 3321 | + ]) |
| 3322 | + ]) |
| 3323 | + ;; |
| 3324 | + esac |
| 3325 | + |
| 3326 | + if test "x$lt_cv_dlopen" != xno; then |
| 3327 | + enable_dlopen=yes |
| 3328 | else |
| 3329 | - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 3330 | - shlibpath_overrides_runpath=yes |
| 3331 | - case $host_os in |
| 3332 | - sco3.2v5*) |
| 3333 | - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 3334 | - ;; |
| 3335 | - esac |
| 3336 | + enable_dlopen=no |
| 3337 | fi |
| 3338 | - sys_lib_dlsearch_path_spec='/usr/lib' |
| 3339 | - ;; |
| 3340 | - |
| 3341 | -uts4*) |
| 3342 | - version_type=linux |
| 3343 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 3344 | - soname_spec='${libname}${release}${shared_ext}$major' |
| 3345 | - shlibpath_var=LD_LIBRARY_PATH |
| 3346 | - ;; |
| 3347 | - |
| 3348 | -*) |
| 3349 | - dynamic_linker=no |
| 3350 | - ;; |
| 3351 | -esac |
| 3352 | -AC_MSG_RESULT([$dynamic_linker]) |
| 3353 | -test "$dynamic_linker" = no && can_build_shared=no |
| 3354 | - |
| 3355 | -variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 3356 | -if test "$GCC" = yes; then |
| 3357 | - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 3358 | -fi |
| 3359 | -])# AC_LIBTOOL_SYS_DYNAMIC_LINKER |
| 3360 | - |
| 3361 | |
| 3362 | -# _LT_AC_TAGCONFIG |
| 3363 | -# ---------------- |
| 3364 | -AC_DEFUN([_LT_AC_TAGCONFIG], |
| 3365 | -[AC_ARG_WITH([tags], |
| 3366 | - [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@], |
| 3367 | - [include additional configurations @<:@automatic@:>@])], |
| 3368 | - [tagnames="$withval"]) |
| 3369 | - |
| 3370 | -if test -f "$ltmain" && test -n "$tagnames"; then |
| 3371 | - if test ! -f "${ofile}"; then |
| 3372 | - AC_MSG_WARN([output file `$ofile' does not exist]) |
| 3373 | - fi |
| 3374 | + case $lt_cv_dlopen in |
| 3375 | + dlopen) |
| 3376 | + save_CPPFLAGS="$CPPFLAGS" |
| 3377 | + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 3378 | |
| 3379 | - if test -z "$LTCC"; then |
| 3380 | - eval "`$SHELL ${ofile} --config | grep '^LTCC='`" |
| 3381 | - if test -z "$LTCC"; then |
| 3382 | - AC_MSG_WARN([output file `$ofile' does not look like a libtool script]) |
| 3383 | - else |
| 3384 | - AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile']) |
| 3385 | - fi |
| 3386 | - fi |
| 3387 | - if test -z "$LTCFLAGS"; then |
| 3388 | - eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" |
| 3389 | - fi |
| 3390 | + save_LDFLAGS="$LDFLAGS" |
| 3391 | + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 3392 | |
| 3393 | - # Extract list of available tagged configurations in $ofile. |
| 3394 | - # Note that this assumes the entire list is on one line. |
| 3395 | - available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
| 3396 | + save_LIBS="$LIBS" |
| 3397 | + LIBS="$lt_cv_dlopen_libs $LIBS" |
| 3398 | |
| 3399 | - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 3400 | - for tagname in $tagnames; do |
| 3401 | - IFS="$lt_save_ifs" |
| 3402 | - # Check whether tagname contains only valid characters |
| 3403 | - case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in |
| 3404 | - "") ;; |
| 3405 | - *) AC_MSG_ERROR([invalid tag name: $tagname]) |
| 3406 | - ;; |
| 3407 | - esac |
| 3408 | + AC_CACHE_CHECK([whether a program can dlopen itself], |
| 3409 | + lt_cv_dlopen_self, [dnl |
| 3410 | + _LT_TRY_DLOPEN_SELF( |
| 3411 | + lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, |
| 3412 | + lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) |
| 3413 | + ]) |
| 3414 | |
| 3415 | - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null |
| 3416 | - then |
| 3417 | - AC_MSG_ERROR([tag name \"$tagname\" already exists]) |
| 3418 | + if test "x$lt_cv_dlopen_self" = xyes; then |
| 3419 | + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
| 3420 | + AC_CACHE_CHECK([whether a statically linked program can dlopen itself], |
| 3421 | + lt_cv_dlopen_self_static, [dnl |
| 3422 | + _LT_TRY_DLOPEN_SELF( |
| 3423 | + lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, |
| 3424 | + lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) |
| 3425 | + ]) |
| 3426 | fi |
| 3427 | |
| 3428 | - # Update the list of available tags. |
| 3429 | - if test -n "$tagname"; then |
| 3430 | - echo appending configuration tag \"$tagname\" to $ofile |
| 3431 | - |
| 3432 | - case $tagname in |
| 3433 | - CXX) |
| 3434 | - if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 3435 | - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 3436 | - (test "X$CXX" != "Xg++"))) ; then |
| 3437 | - AC_LIBTOOL_LANG_CXX_CONFIG |
| 3438 | - else |
| 3439 | - tagname="" |
| 3440 | - fi |
| 3441 | - ;; |
| 3442 | - |
| 3443 | - F77) |
| 3444 | - if test -n "$F77" && test "X$F77" != "Xno"; then |
| 3445 | - AC_LIBTOOL_LANG_F77_CONFIG |
| 3446 | - else |
| 3447 | - tagname="" |
| 3448 | - fi |
| 3449 | - ;; |
| 3450 | - |
| 3451 | - GCJ) |
| 3452 | - if test -n "$GCJ" && test "X$GCJ" != "Xno"; then |
| 3453 | - AC_LIBTOOL_LANG_GCJ_CONFIG |
| 3454 | - else |
| 3455 | - tagname="" |
| 3456 | - fi |
| 3457 | - ;; |
| 3458 | - |
| 3459 | - RC) |
| 3460 | - AC_LIBTOOL_LANG_RC_CONFIG |
| 3461 | - ;; |
| 3462 | - |
| 3463 | - *) |
| 3464 | - AC_MSG_ERROR([Unsupported tag name: $tagname]) |
| 3465 | - ;; |
| 3466 | - esac |
| 3467 | + CPPFLAGS="$save_CPPFLAGS" |
| 3468 | + LDFLAGS="$save_LDFLAGS" |
| 3469 | + LIBS="$save_LIBS" |
| 3470 | + ;; |
| 3471 | + esac |
| 3472 | |
| 3473 | - # Append the new tag name to the list of available tags. |
| 3474 | - if test -n "$tagname" ; then |
| 3475 | - available_tags="$available_tags $tagname" |
| 3476 | - fi |
| 3477 | - fi |
| 3478 | - done |
| 3479 | - IFS="$lt_save_ifs" |
| 3480 | + case $lt_cv_dlopen_self in |
| 3481 | + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 3482 | + *) enable_dlopen_self=unknown ;; |
| 3483 | + esac |
| 3484 | |
| 3485 | - # Now substitute the updated list of available tags. |
| 3486 | - if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then |
| 3487 | - mv "${ofile}T" "$ofile" |
| 3488 | - chmod +x "$ofile" |
| 3489 | - else |
| 3490 | - rm -f "${ofile}T" |
| 3491 | - AC_MSG_ERROR([unable to update list of available tagged configurations.]) |
| 3492 | - fi |
| 3493 | + case $lt_cv_dlopen_self_static in |
| 3494 | + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 3495 | + *) enable_dlopen_self_static=unknown ;; |
| 3496 | + esac |
| 3497 | fi |
| 3498 | -])# _LT_AC_TAGCONFIG |
| 3499 | +_LT_DECL([dlopen_support], [enable_dlopen], [0], |
| 3500 | + [Whether dlopen is supported]) |
| 3501 | +_LT_DECL([dlopen_self], [enable_dlopen_self], [0], |
| 3502 | + [Whether dlopen of programs is supported]) |
| 3503 | +_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0], |
| 3504 | + [Whether dlopen of statically linked programs is supported]) |
| 3505 | +])# LT_SYS_DLOPEN_SELF |
| 3506 | + |
| 3507 | +# Old name: |
| 3508 | +AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF]) |
| 3509 | +dnl aclocal-1.4 backwards compatibility: |
| 3510 | +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], []) |
| 3511 | |
| 3512 | |
| 3513 | -# AC_LIBTOOL_DLOPEN |
| 3514 | -# ----------------- |
| 3515 | -# enable checks for dlopen support |
| 3516 | -AC_DEFUN([AC_LIBTOOL_DLOPEN], |
| 3517 | - [AC_BEFORE([$0],[AC_LIBTOOL_SETUP]) |
| 3518 | -])# AC_LIBTOOL_DLOPEN |
| 3519 | +# _LT_COMPILER_C_O([TAGNAME]) |
| 3520 | +# --------------------------- |
| 3521 | +# Check to see if options -c and -o are simultaneously supported by compiler. |
| 3522 | +# This macro does not hard code the compiler like AC_PROG_CC_C_O. |
| 3523 | +m4_defun([_LT_COMPILER_C_O], |
| 3524 | +[m4_require([_LT_DECL_SED])dnl |
| 3525 | +m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
| 3526 | +m4_require([_LT_TAG_COMPILER])dnl |
| 3527 | +AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], |
| 3528 | + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)], |
| 3529 | + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no |
| 3530 | + $RM -r conftest 2>/dev/null |
| 3531 | + mkdir conftest |
| 3532 | + cd conftest |
| 3533 | + mkdir out |
| 3534 | + echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 3535 | |
| 3536 | + lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 3537 | + # Insert the option either (1) after the last *FLAGS variable, or |
| 3538 | + # (2) before a word containing "conftest.", or (3) at the end. |
| 3539 | + # Note that $ac_compile itself does not contain backslashes and begins |
| 3540 | + # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 3541 | + lt_compile=`echo "$ac_compile" | $SED \ |
| 3542 | + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 3543 | + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ |
| 3544 | + -e 's:$: $lt_compiler_flag:'` |
| 3545 | + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) |
| 3546 | + (eval "$lt_compile" 2>out/conftest.err) |
| 3547 | + ac_status=$? |
| 3548 | + cat out/conftest.err >&AS_MESSAGE_LOG_FD |
| 3549 | + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD |
| 3550 | + if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 3551 | + then |
| 3552 | + # The compiler can only warn and ignore the option if not recognized |
| 3553 | + # So say no if there are warnings |
| 3554 | + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 3555 | + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 3556 | + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 3557 | + _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes |
| 3558 | + fi |
| 3559 | + fi |
| 3560 | + chmod u+w . 2>&AS_MESSAGE_LOG_FD |
| 3561 | + $RM conftest* |
| 3562 | + # SGI C++ compiler will create directory out/ii_files/ for |
| 3563 | + # template instantiation |
| 3564 | + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 3565 | + $RM out/* && rmdir out |
| 3566 | + cd .. |
| 3567 | + $RM -r conftest |
| 3568 | + $RM conftest* |
| 3569 | +]) |
| 3570 | +_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1], |
| 3571 | + [Does compiler simultaneously support -c and -o options?]) |
| 3572 | +])# _LT_COMPILER_C_O |
| 3573 | |
| 3574 | -# AC_LIBTOOL_WIN32_DLL |
| 3575 | -# -------------------- |
| 3576 | -# declare package support for building win32 DLLs |
| 3577 | -AC_DEFUN([AC_LIBTOOL_WIN32_DLL], |
| 3578 | -[AC_BEFORE([$0], [AC_LIBTOOL_SETUP]) |
| 3579 | -])# AC_LIBTOOL_WIN32_DLL |
| 3580 | |
| 3581 | +# _LT_COMPILER_FILE_LOCKS([TAGNAME]) |
| 3582 | +# ---------------------------------- |
| 3583 | +# Check to see if we can do hard links to lock some files if needed |
| 3584 | +m4_defun([_LT_COMPILER_FILE_LOCKS], |
| 3585 | +[m4_require([_LT_ENABLE_LOCK])dnl |
| 3586 | +m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
| 3587 | +_LT_COMPILER_C_O([$1]) |
| 3588 | |
| 3589 | -# AC_ENABLE_SHARED([DEFAULT]) |
| 3590 | -# --------------------------- |
| 3591 | -# implement the --enable-shared flag |
| 3592 | -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. |
| 3593 | -AC_DEFUN([AC_ENABLE_SHARED], |
| 3594 | -[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl |
| 3595 | -AC_ARG_ENABLE([shared], |
| 3596 | - [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@], |
| 3597 | - [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])], |
| 3598 | - [p=${PACKAGE-default} |
| 3599 | - case $enableval in |
| 3600 | - yes) enable_shared=yes ;; |
| 3601 | - no) enable_shared=no ;; |
| 3602 | - *) |
| 3603 | - enable_shared=no |
| 3604 | - # Look at the argument we got. We use all the common list separators. |
| 3605 | - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 3606 | - for pkg in $enableval; do |
| 3607 | - IFS="$lt_save_ifs" |
| 3608 | - if test "X$pkg" = "X$p"; then |
| 3609 | - enable_shared=yes |
| 3610 | - fi |
| 3611 | - done |
| 3612 | - IFS="$lt_save_ifs" |
| 3613 | - ;; |
| 3614 | - esac], |
| 3615 | - [enable_shared=]AC_ENABLE_SHARED_DEFAULT) |
| 3616 | -])# AC_ENABLE_SHARED |
| 3617 | - |
| 3618 | - |
| 3619 | -# AC_DISABLE_SHARED |
| 3620 | -# ----------------- |
| 3621 | -# set the default shared flag to --disable-shared |
| 3622 | -AC_DEFUN([AC_DISABLE_SHARED], |
| 3623 | -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl |
| 3624 | -AC_ENABLE_SHARED(no) |
| 3625 | -])# AC_DISABLE_SHARED |
| 3626 | - |
| 3627 | - |
| 3628 | -# AC_ENABLE_STATIC([DEFAULT]) |
| 3629 | -# --------------------------- |
| 3630 | -# implement the --enable-static flag |
| 3631 | -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. |
| 3632 | -AC_DEFUN([AC_ENABLE_STATIC], |
| 3633 | -[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl |
| 3634 | -AC_ARG_ENABLE([static], |
| 3635 | - [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@], |
| 3636 | - [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])], |
| 3637 | - [p=${PACKAGE-default} |
| 3638 | - case $enableval in |
| 3639 | - yes) enable_static=yes ;; |
| 3640 | - no) enable_static=no ;; |
| 3641 | - *) |
| 3642 | - enable_static=no |
| 3643 | - # Look at the argument we got. We use all the common list separators. |
| 3644 | - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 3645 | - for pkg in $enableval; do |
| 3646 | - IFS="$lt_save_ifs" |
| 3647 | - if test "X$pkg" = "X$p"; then |
| 3648 | - enable_static=yes |
| 3649 | - fi |
| 3650 | - done |
| 3651 | - IFS="$lt_save_ifs" |
| 3652 | - ;; |
| 3653 | - esac], |
| 3654 | - [enable_static=]AC_ENABLE_STATIC_DEFAULT) |
| 3655 | -])# AC_ENABLE_STATIC |
| 3656 | - |
| 3657 | - |
| 3658 | -# AC_DISABLE_STATIC |
| 3659 | -# ----------------- |
| 3660 | -# set the default static flag to --disable-static |
| 3661 | -AC_DEFUN([AC_DISABLE_STATIC], |
| 3662 | -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl |
| 3663 | -AC_ENABLE_STATIC(no) |
| 3664 | -])# AC_DISABLE_STATIC |
| 3665 | - |
| 3666 | - |
| 3667 | -# AC_ENABLE_FAST_INSTALL([DEFAULT]) |
| 3668 | -# --------------------------------- |
| 3669 | -# implement the --enable-fast-install flag |
| 3670 | -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. |
| 3671 | -AC_DEFUN([AC_ENABLE_FAST_INSTALL], |
| 3672 | -[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl |
| 3673 | -AC_ARG_ENABLE([fast-install], |
| 3674 | - [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], |
| 3675 | - [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], |
| 3676 | - [p=${PACKAGE-default} |
| 3677 | - case $enableval in |
| 3678 | - yes) enable_fast_install=yes ;; |
| 3679 | - no) enable_fast_install=no ;; |
| 3680 | - *) |
| 3681 | - enable_fast_install=no |
| 3682 | - # Look at the argument we got. We use all the common list separators. |
| 3683 | - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 3684 | - for pkg in $enableval; do |
| 3685 | - IFS="$lt_save_ifs" |
| 3686 | - if test "X$pkg" = "X$p"; then |
| 3687 | - enable_fast_install=yes |
| 3688 | - fi |
| 3689 | - done |
| 3690 | - IFS="$lt_save_ifs" |
| 3691 | - ;; |
| 3692 | - esac], |
| 3693 | - [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT) |
| 3694 | -])# AC_ENABLE_FAST_INSTALL |
| 3695 | - |
| 3696 | - |
| 3697 | -# AC_DISABLE_FAST_INSTALL |
| 3698 | -# ----------------------- |
| 3699 | -# set the default to --disable-fast-install |
| 3700 | -AC_DEFUN([AC_DISABLE_FAST_INSTALL], |
| 3701 | -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl |
| 3702 | -AC_ENABLE_FAST_INSTALL(no) |
| 3703 | -])# AC_DISABLE_FAST_INSTALL |
| 3704 | - |
| 3705 | - |
| 3706 | -# AC_LIBTOOL_PICMODE([MODE]) |
| 3707 | -# -------------------------- |
| 3708 | -# implement the --with-pic flag |
| 3709 | -# MODE is either `yes' or `no'. If omitted, it defaults to `both'. |
| 3710 | -AC_DEFUN([AC_LIBTOOL_PICMODE], |
| 3711 | -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl |
| 3712 | -pic_mode=ifelse($#,1,$1,default) |
| 3713 | -])# AC_LIBTOOL_PICMODE |
| 3714 | - |
| 3715 | - |
| 3716 | -# AC_PROG_EGREP |
| 3717 | -# ------------- |
| 3718 | -# This is predefined starting with Autoconf 2.54, so this conditional |
| 3719 | -# definition can be removed once we require Autoconf 2.54 or later. |
| 3720 | -m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP], |
| 3721 | -[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep], |
| 3722 | - [if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
| 3723 | - then ac_cv_prog_egrep='grep -E' |
| 3724 | - else ac_cv_prog_egrep='egrep' |
| 3725 | - fi]) |
| 3726 | - EGREP=$ac_cv_prog_egrep |
| 3727 | - AC_SUBST([EGREP]) |
| 3728 | -])]) |
| 3729 | - |
| 3730 | - |
| 3731 | -# AC_PATH_TOOL_PREFIX |
| 3732 | -# ------------------- |
| 3733 | -# find a file program which can recognise shared library |
| 3734 | -AC_DEFUN([AC_PATH_TOOL_PREFIX], |
| 3735 | -[AC_REQUIRE([AC_PROG_EGREP])dnl |
| 3736 | -AC_MSG_CHECKING([for $1]) |
| 3737 | -AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, |
| 3738 | -[case $MAGIC_CMD in |
| 3739 | -[[\\/*] | ?:[\\/]*]) |
| 3740 | - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 3741 | - ;; |
| 3742 | -*) |
| 3743 | - lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 3744 | - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 3745 | -dnl $ac_dummy forces splitting on constant user-supplied paths. |
| 3746 | -dnl POSIX.2 word splitting is done only on the output of word expansions, |
| 3747 | -dnl not every word. This closes a longstanding sh security hole. |
| 3748 | - ac_dummy="ifelse([$2], , $PATH, [$2])" |
| 3749 | - for ac_dir in $ac_dummy; do |
| 3750 | - IFS="$lt_save_ifs" |
| 3751 | - test -z "$ac_dir" && ac_dir=. |
| 3752 | - if test -f $ac_dir/$1; then |
| 3753 | - lt_cv_path_MAGIC_CMD="$ac_dir/$1" |
| 3754 | - if test -n "$file_magic_test_file"; then |
| 3755 | - case $deplibs_check_method in |
| 3756 | - "file_magic "*) |
| 3757 | - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
| 3758 | - MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 3759 | - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 3760 | - $EGREP "$file_magic_regex" > /dev/null; then |
| 3761 | - : |
| 3762 | - else |
| 3763 | - cat <<EOF 1>&2 |
| 3764 | +hard_links="nottested" |
| 3765 | +if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then |
| 3766 | + # do not overwrite the value of need_locks provided by the user |
| 3767 | + AC_MSG_CHECKING([if we can lock with hard links]) |
| 3768 | + hard_links=yes |
| 3769 | + $RM conftest* |
| 3770 | + ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 3771 | + touch conftest.a |
| 3772 | + ln conftest.a conftest.b 2>&5 || hard_links=no |
| 3773 | + ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 3774 | + AC_MSG_RESULT([$hard_links]) |
| 3775 | + if test "$hard_links" = no; then |
| 3776 | + AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) |
| 3777 | + need_locks=warn |
| 3778 | + fi |
| 3779 | +else |
| 3780 | + need_locks=no |
| 3781 | +fi |
| 3782 | +_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?]) |
| 3783 | +])# _LT_COMPILER_FILE_LOCKS |
| 3784 | |
| 3785 | -*** Warning: the command libtool uses to detect shared libraries, |
| 3786 | -*** $file_magic_cmd, produces output that libtool cannot recognize. |
| 3787 | -*** The result is that libtool may fail to recognize shared libraries |
| 3788 | -*** as such. This will affect the creation of libtool libraries that |
| 3789 | -*** depend on shared libraries, but programs linked with such libtool |
| 3790 | -*** libraries will work regardless of this problem. Nevertheless, you |
| 3791 | -*** may want to report the problem to your system manager and/or to |
| 3792 | -*** bug-libtool@gnu.org |
| 3793 | |
| 3794 | -EOF |
| 3795 | - fi ;; |
| 3796 | - esac |
| 3797 | - fi |
| 3798 | - break |
| 3799 | - fi |
| 3800 | - done |
| 3801 | - IFS="$lt_save_ifs" |
| 3802 | - MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 3803 | - ;; |
| 3804 | -esac]) |
| 3805 | -MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 3806 | -if test -n "$MAGIC_CMD"; then |
| 3807 | - AC_MSG_RESULT($MAGIC_CMD) |
| 3808 | +# _LT_CHECK_OBJDIR |
| 3809 | +# ---------------- |
| 3810 | +m4_defun([_LT_CHECK_OBJDIR], |
| 3811 | +[AC_CACHE_CHECK([for objdir], [lt_cv_objdir], |
| 3812 | +[rm -f .libs 2>/dev/null |
| 3813 | +mkdir .libs 2>/dev/null |
| 3814 | +if test -d .libs; then |
| 3815 | + lt_cv_objdir=.libs |
| 3816 | else |
| 3817 | - AC_MSG_RESULT(no) |
| 3818 | + # MS-DOS does not allow filenames that begin with a dot. |
| 3819 | + lt_cv_objdir=_libs |
| 3820 | fi |
| 3821 | -])# AC_PATH_TOOL_PREFIX |
| 3822 | +rmdir .libs 2>/dev/null]) |
| 3823 | +objdir=$lt_cv_objdir |
| 3824 | +_LT_DECL([], [objdir], [0], |
| 3825 | + [The name of the directory that contains temporary libtool files])dnl |
| 3826 | +m4_pattern_allow([LT_OBJDIR])dnl |
| 3827 | +AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/", |
| 3828 | + [Define to the sub-directory in which libtool stores uninstalled libraries.]) |
| 3829 | +])# _LT_CHECK_OBJDIR |
| 3830 | |
| 3831 | |
| 3832 | -# AC_PATH_MAGIC |
| 3833 | -# ------------- |
| 3834 | -# find a file program which can recognise a shared library |
| 3835 | -AC_DEFUN([AC_PATH_MAGIC], |
| 3836 | -[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) |
| 3837 | -if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 3838 | - if test -n "$ac_tool_prefix"; then |
| 3839 | - AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) |
| 3840 | +# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME]) |
| 3841 | +# -------------------------------------- |
| 3842 | +# Check hardcoding attributes. |
| 3843 | +m4_defun([_LT_LINKER_HARDCODE_LIBPATH], |
| 3844 | +[AC_MSG_CHECKING([how to hardcode library paths into programs]) |
| 3845 | +_LT_TAGVAR(hardcode_action, $1)= |
| 3846 | +if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" || |
| 3847 | + test -n "$_LT_TAGVAR(runpath_var, $1)" || |
| 3848 | + test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then |
| 3849 | + |
| 3850 | + # We can hardcode non-existent directories. |
| 3851 | + if test "$_LT_TAGVAR(hardcode_direct, $1)" != no && |
| 3852 | + # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 3853 | + # have to relink, otherwise we might link with an installed library |
| 3854 | + # when we should be linking with a yet-to-be-installed one |
| 3855 | + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no && |
| 3856 | + test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then |
| 3857 | + # Linking always hardcodes the temporary library directory. |
| 3858 | + _LT_TAGVAR(hardcode_action, $1)=relink |
| 3859 | else |
| 3860 | - MAGIC_CMD=: |
| 3861 | + # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 3862 | + _LT_TAGVAR(hardcode_action, $1)=immediate |
| 3863 | fi |
| 3864 | +else |
| 3865 | + # We cannot hardcode anything, or else we can only hardcode existing |
| 3866 | + # directories. |
| 3867 | + _LT_TAGVAR(hardcode_action, $1)=unsupported |
| 3868 | +fi |
| 3869 | +AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)]) |
| 3870 | + |
| 3871 | +if test "$_LT_TAGVAR(hardcode_action, $1)" = relink || |
| 3872 | + test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then |
| 3873 | + # Fast installation is not supported |
| 3874 | + enable_fast_install=no |
| 3875 | +elif test "$shlibpath_overrides_runpath" = yes || |
| 3876 | + test "$enable_shared" = no; then |
| 3877 | + # Fast installation is not necessary |
| 3878 | + enable_fast_install=needless |
| 3879 | fi |
| 3880 | -])# AC_PATH_MAGIC |
| 3881 | +_LT_TAGDECL([], [hardcode_action], [0], |
| 3882 | + [How to hardcode a shared library path into an executable]) |
| 3883 | +])# _LT_LINKER_HARDCODE_LIBPATH |
| 3884 | |
| 3885 | |
| 3886 | -# AC_PROG_LD |
| 3887 | -# ---------- |
| 3888 | -# find the pathname to the GNU or non-GNU linker |
| 3889 | -AC_DEFUN([AC_PROG_LD], |
| 3890 | -[AC_ARG_WITH([gnu-ld], |
| 3891 | - [AC_HELP_STRING([--with-gnu-ld], |
| 3892 | - [assume the C compiler uses GNU ld @<:@default=no@:>@])], |
| 3893 | - [test "$withval" = no || with_gnu_ld=yes], |
| 3894 | - [with_gnu_ld=no]) |
| 3895 | -AC_REQUIRE([LT_AC_PROG_SED])dnl |
| 3896 | -AC_REQUIRE([AC_PROG_CC])dnl |
| 3897 | -AC_REQUIRE([AC_CANONICAL_HOST])dnl |
| 3898 | -AC_REQUIRE([AC_CANONICAL_BUILD])dnl |
| 3899 | -ac_prog=ld |
| 3900 | -if test "$GCC" = yes; then |
| 3901 | - # Check if gcc -print-prog-name=ld gives a path. |
| 3902 | - AC_MSG_CHECKING([for ld used by $CC]) |
| 3903 | - case $host in |
| 3904 | - *-*-mingw*) |
| 3905 | - # gcc leaves a trailing carriage return which upsets mingw |
| 3906 | - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 3907 | - *) |
| 3908 | - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 3909 | - esac |
| 3910 | - case $ac_prog in |
| 3911 | - # Accept absolute paths. |
| 3912 | - [[\\/]]* | ?:[[\\/]]*) |
| 3913 | - re_direlt='/[[^/]][[^/]]*/\.\./' |
| 3914 | - # Canonicalize the pathname of ld |
| 3915 | - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
| 3916 | - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 3917 | - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
| 3918 | - done |
| 3919 | - test -z "$LD" && LD="$ac_prog" |
| 3920 | - ;; |
| 3921 | - "") |
| 3922 | - # If it fails, then pretend we aren't using GCC. |
| 3923 | - ac_prog=ld |
| 3924 | +# _LT_CMD_STRIPLIB |
| 3925 | +# ---------------- |
| 3926 | +m4_defun([_LT_CMD_STRIPLIB], |
| 3927 | +[m4_require([_LT_DECL_EGREP]) |
| 3928 | +striplib= |
| 3929 | +old_striplib= |
| 3930 | +AC_MSG_CHECKING([whether stripping libraries is possible]) |
| 3931 | +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
| 3932 | + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 3933 | + test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 3934 | + AC_MSG_RESULT([yes]) |
| 3935 | +else |
| 3936 | +# FIXME - insert some real tests, host_os isn't really good enough |
| 3937 | + case $host_os in |
| 3938 | + darwin*) |
| 3939 | + if test -n "$STRIP" ; then |
| 3940 | + striplib="$STRIP -x" |
| 3941 | + old_striplib="$STRIP -S" |
| 3942 | + AC_MSG_RESULT([yes]) |
| 3943 | + else |
| 3944 | + AC_MSG_RESULT([no]) |
| 3945 | + fi |
| 3946 | ;; |
| 3947 | *) |
| 3948 | - # If it is relative, then search for the first ld in PATH. |
| 3949 | - with_gnu_ld=unknown |
| 3950 | + AC_MSG_RESULT([no]) |
| 3951 | ;; |
| 3952 | esac |
| 3953 | -elif test "$with_gnu_ld" = yes; then |
| 3954 | - AC_MSG_CHECKING([for GNU ld]) |
| 3955 | -else |
| 3956 | - AC_MSG_CHECKING([for non-GNU ld]) |
| 3957 | fi |
| 3958 | -AC_CACHE_VAL(lt_cv_path_LD, |
| 3959 | -[if test -z "$LD"; then |
| 3960 | - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 3961 | - for ac_dir in $PATH; do |
| 3962 | - IFS="$lt_save_ifs" |
| 3963 | - test -z "$ac_dir" && ac_dir=. |
| 3964 | - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 3965 | - lt_cv_path_LD="$ac_dir/$ac_prog" |
| 3966 | - # Check to see if the program is GNU ld. I'd rather use --version, |
| 3967 | - # but apparently some variants of GNU ld only accept -v. |
| 3968 | - # Break only if it was the GNU/non-GNU ld that we prefer. |
| 3969 | - case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 3970 | - *GNU* | *'with BFD'*) |
| 3971 | - test "$with_gnu_ld" != no && break |
| 3972 | - ;; |
| 3973 | - *) |
| 3974 | - test "$with_gnu_ld" != yes && break |
| 3975 | - ;; |
| 3976 | - esac |
| 3977 | +_LT_DECL([], [old_striplib], [1], [Commands to strip libraries]) |
| 3978 | +_LT_DECL([], [striplib], [1]) |
| 3979 | +])# _LT_CMD_STRIPLIB |
| 3980 | + |
| 3981 | + |
| 3982 | +# _LT_SYS_DYNAMIC_LINKER([TAG]) |
| 3983 | +# ----------------------------- |
| 3984 | +# PORTME Fill in your ld.so characteristics |
| 3985 | +m4_defun([_LT_SYS_DYNAMIC_LINKER], |
| 3986 | +[AC_REQUIRE([AC_CANONICAL_HOST])dnl |
| 3987 | +m4_require([_LT_DECL_EGREP])dnl |
| 3988 | +m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
| 3989 | +m4_require([_LT_DECL_SED])dnl |
| 3990 | +AC_MSG_CHECKING([dynamic linker characteristics]) |
| 3991 | +m4_if([$1], |
| 3992 | + [], [ |
| 3993 | +if test "$GCC" = yes; then |
| 3994 | + case $host_os in |
| 3995 | + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; |
| 3996 | + *) lt_awk_arg="/^libraries:/" ;; |
| 3997 | + esac |
| 3998 | + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 3999 | + if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then |
| 4000 | + # if the path contains ";" then we assume it to be the separator |
| 4001 | + # otherwise default to the standard path separator (i.e. ":") - it is |
| 4002 | + # assumed that no part of a normal pathname contains ";" but that should |
| 4003 | + # okay in the real world where ";" in dirpaths is itself problematic. |
| 4004 | + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` |
| 4005 | + else |
| 4006 | + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 4007 | + fi |
| 4008 | + # Ok, now we have the path, separated by spaces, we can step through it |
| 4009 | + # and add multilib dir if necessary. |
| 4010 | + lt_tmp_lt_search_path_spec= |
| 4011 | + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
| 4012 | + for lt_sys_path in $lt_search_path_spec; do |
| 4013 | + if test -d "$lt_sys_path/$lt_multi_os_dir"; then |
| 4014 | + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" |
| 4015 | + else |
| 4016 | + test -d "$lt_sys_path" && \ |
| 4017 | + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
| 4018 | fi |
| 4019 | done |
| 4020 | - IFS="$lt_save_ifs" |
| 4021 | + lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' |
| 4022 | +BEGIN {RS=" "; FS="/|\n";} { |
| 4023 | + lt_foo=""; |
| 4024 | + lt_count=0; |
| 4025 | + for (lt_i = NF; lt_i > 0; lt_i--) { |
| 4026 | + if ($lt_i != "" && $lt_i != ".") { |
| 4027 | + if ($lt_i == "..") { |
| 4028 | + lt_count++; |
| 4029 | + } else { |
| 4030 | + if (lt_count == 0) { |
| 4031 | + lt_foo="/" $lt_i lt_foo; |
| 4032 | + } else { |
| 4033 | + lt_count--; |
| 4034 | + } |
| 4035 | + } |
| 4036 | + } |
| 4037 | + } |
| 4038 | + if (lt_foo != "") { lt_freq[[lt_foo]]++; } |
| 4039 | + if (lt_freq[[lt_foo]] == 1) { print lt_foo; } |
| 4040 | +}'` |
| 4041 | + sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` |
| 4042 | else |
| 4043 | - lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 4044 | + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 4045 | fi]) |
| 4046 | -LD="$lt_cv_path_LD" |
| 4047 | -if test -n "$LD"; then |
| 4048 | - AC_MSG_RESULT($LD) |
| 4049 | -else |
| 4050 | - AC_MSG_RESULT(no) |
| 4051 | -fi |
| 4052 | -test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) |
| 4053 | -AC_PROG_LD_GNU |
| 4054 | -])# AC_PROG_LD |
| 4055 | +library_names_spec= |
| 4056 | +libname_spec='lib$name' |
| 4057 | +soname_spec= |
| 4058 | +shrext_cmds=".so" |
| 4059 | +postinstall_cmds= |
| 4060 | +postuninstall_cmds= |
| 4061 | +finish_cmds= |
| 4062 | +finish_eval= |
| 4063 | +shlibpath_var= |
| 4064 | +shlibpath_overrides_runpath=unknown |
| 4065 | +version_type=none |
| 4066 | +dynamic_linker="$host_os ld.so" |
| 4067 | +sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 4068 | +need_lib_prefix=unknown |
| 4069 | +hardcode_into_libs=no |
| 4070 | + |
| 4071 | +# when you set need_version to no, make sure it does not cause -set_version |
| 4072 | +# flags to be left without arguments |
| 4073 | +need_version=unknown |
| 4074 | |
| 4075 | +case $host_os in |
| 4076 | +aix3*) |
| 4077 | + version_type=linux |
| 4078 | + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 4079 | + shlibpath_var=LIBPATH |
| 4080 | |
| 4081 | -# AC_PROG_LD_GNU |
| 4082 | -# -------------- |
| 4083 | -AC_DEFUN([AC_PROG_LD_GNU], |
| 4084 | -[AC_REQUIRE([AC_PROG_EGREP])dnl |
| 4085 | -AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, |
| 4086 | -[# I'd rather use --version here, but apparently some GNU lds only accept -v. |
| 4087 | -case `$LD -v 2>&1 </dev/null` in |
| 4088 | -*GNU* | *'with BFD'*) |
| 4089 | - lt_cv_prog_gnu_ld=yes |
| 4090 | + # AIX 3 has no versioning support, so we append a major version to the name. |
| 4091 | + soname_spec='${libname}${release}${shared_ext}$major' |
| 4092 | ;; |
| 4093 | -*) |
| 4094 | - lt_cv_prog_gnu_ld=no |
| 4095 | - ;; |
| 4096 | -esac]) |
| 4097 | -with_gnu_ld=$lt_cv_prog_gnu_ld |
| 4098 | -])# AC_PROG_LD_GNU |
| 4099 | - |
| 4100 | |
| 4101 | -# AC_PROG_LD_RELOAD_FLAG |
| 4102 | -# ---------------------- |
| 4103 | -# find reload flag for linker |
| 4104 | -# -- PORTME Some linkers may need a different reload flag. |
| 4105 | -AC_DEFUN([AC_PROG_LD_RELOAD_FLAG], |
| 4106 | -[AC_CACHE_CHECK([for $LD option to reload object files], |
| 4107 | - lt_cv_ld_reload_flag, |
| 4108 | - [lt_cv_ld_reload_flag='-r']) |
| 4109 | -reload_flag=$lt_cv_ld_reload_flag |
| 4110 | -case $reload_flag in |
| 4111 | -"" | " "*) ;; |
| 4112 | -*) reload_flag=" $reload_flag" ;; |
| 4113 | -esac |
| 4114 | -reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 4115 | -case $host_os in |
| 4116 | - darwin*) |
| 4117 | - if test "$GCC" = yes; then |
| 4118 | - reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
| 4119 | +aix[[4-9]]*) |
| 4120 | + version_type=linux |
| 4121 | + need_lib_prefix=no |
| 4122 | + need_version=no |
| 4123 | + hardcode_into_libs=yes |
| 4124 | + if test "$host_cpu" = ia64; then |
| 4125 | + # AIX 5 supports IA64 |
| 4126 | + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 4127 | + shlibpath_var=LD_LIBRARY_PATH |
| 4128 | + else |
| 4129 | + # With GCC up to 2.95.x, collect2 would create an import file |
| 4130 | + # for dependence libraries. The import file would start with |
| 4131 | + # the line `#! .'. This would cause the generated library to |
| 4132 | + # depend on `.', always an invalid library. This was fixed in |
| 4133 | + # development snapshots of GCC prior to 3.0. |
| 4134 | + case $host_os in |
| 4135 | + aix4 | aix4.[[01]] | aix4.[[01]].*) |
| 4136 | + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 4137 | + echo ' yes ' |
| 4138 | + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then |
| 4139 | + : |
| 4140 | + else |
| 4141 | + can_build_shared=no |
| 4142 | + fi |
| 4143 | + ;; |
| 4144 | + esac |
| 4145 | + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 4146 | + # soname into executable. Probably we can add versioning support to |
| 4147 | + # collect2, so additional links can be useful in future. |
| 4148 | + if test "$aix_use_runtimelinking" = yes; then |
| 4149 | + # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 4150 | + # instead of lib<name>.a to let people know that these are not |
| 4151 | + # typical AIX shared libraries. |
| 4152 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 4153 | else |
| 4154 | - reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 4155 | + # We preserve .a as extension for shared libraries through AIX4.2 |
| 4156 | + # and later when we are not doing run time linking. |
| 4157 | + library_names_spec='${libname}${release}.a $libname.a' |
| 4158 | + soname_spec='${libname}${release}${shared_ext}$major' |
| 4159 | fi |
| 4160 | - ;; |
| 4161 | -esac |
| 4162 | -])# AC_PROG_LD_RELOAD_FLAG |
| 4163 | - |
| 4164 | - |
| 4165 | -# AC_DEPLIBS_CHECK_METHOD |
| 4166 | -# ----------------------- |
| 4167 | -# how to check for library dependencies |
| 4168 | -# -- PORTME fill in with the dynamic library characteristics |
| 4169 | -AC_DEFUN([AC_DEPLIBS_CHECK_METHOD], |
| 4170 | -[AC_CACHE_CHECK([how to recognise dependent libraries], |
| 4171 | -lt_cv_deplibs_check_method, |
| 4172 | -[lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 4173 | -lt_cv_file_magic_test_file= |
| 4174 | -lt_cv_deplibs_check_method='unknown' |
| 4175 | -# Need to set the preceding variable on all platforms that support |
| 4176 | -# interlibrary dependencies. |
| 4177 | -# 'none' -- dependencies not supported. |
| 4178 | -# `unknown' -- same as none, but documents that we really don't know. |
| 4179 | -# 'pass_all' -- all dependencies passed with no checks. |
| 4180 | -# 'test_compile' -- check by making test program. |
| 4181 | -# 'file_magic [[regex]]' -- check by looking for files in library path |
| 4182 | -# which responds to the $file_magic_cmd with a given extended regex. |
| 4183 | -# If you have `file' or equivalent on your system and you're not sure |
| 4184 | -# whether `pass_all' will *always* work, you probably want this one. |
| 4185 | + shlibpath_var=LIBPATH |
| 4186 | + fi |
| 4187 | + ;; |
| 4188 | |
| 4189 | -case $host_os in |
| 4190 | -aix4* | aix5*) |
| 4191 | - lt_cv_deplibs_check_method=pass_all |
| 4192 | +amigaos*) |
| 4193 | + case $host_cpu in |
| 4194 | + powerpc) |
| 4195 | + # Since July 2007 AmigaOS4 officially supports .so libraries. |
| 4196 | + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
| 4197 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 4198 | + ;; |
| 4199 | + m68k) |
| 4200 | + library_names_spec='$libname.ixlibrary $libname.a' |
| 4201 | + # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 4202 | + 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' |
| 4203 | + ;; |
| 4204 | + esac |
| 4205 | ;; |
| 4206 | |
| 4207 | beos*) |
| 4208 | - lt_cv_deplibs_check_method=pass_all |
| 4209 | + library_names_spec='${libname}${shared_ext}' |
| 4210 | + dynamic_linker="$host_os ld.so" |
| 4211 | + shlibpath_var=LIBRARY_PATH |
| 4212 | ;; |
| 4213 | |
| 4214 | bsdi[[45]]*) |
| 4215 | - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' |
| 4216 | - lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 4217 | - lt_cv_file_magic_test_file=/shlib/libc.so |
| 4218 | - ;; |
| 4219 | - |
| 4220 | -cygwin*) |
| 4221 | - # func_win32_libid is a shell function defined in ltmain.sh |
| 4222 | - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 4223 | - lt_cv_file_magic_cmd='func_win32_libid' |
| 4224 | + version_type=linux |
| 4225 | + need_version=no |
| 4226 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 4227 | + soname_spec='${libname}${release}${shared_ext}$major' |
| 4228 | + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 4229 | + shlibpath_var=LD_LIBRARY_PATH |
| 4230 | + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 4231 | + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 4232 | + # the default ld.so.conf also contains /usr/contrib/lib and |
| 4233 | + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 4234 | + # libtool to hard-code these into programs |
| 4235 | ;; |
| 4236 | |
| 4237 | -mingw* | pw32*) |
| 4238 | - # Base MSYS/MinGW do not provide the 'file' command needed by |
| 4239 | - # func_win32_libid shell function, so use a weaker test based on 'objdump'. |
| 4240 | - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
| 4241 | - lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 4242 | - ;; |
| 4243 | +cygwin* | mingw* | pw32*) |
| 4244 | + version_type=windows |
| 4245 | + shrext_cmds=".dll" |
| 4246 | + need_version=no |
| 4247 | + need_lib_prefix=no |
| 4248 | |
| 4249 | -darwin* | rhapsody*) |
| 4250 | - lt_cv_deplibs_check_method=pass_all |
| 4251 | - ;; |
| 4252 | + case $GCC,$host_os in |
| 4253 | + yes,cygwin* | yes,mingw* | yes,pw32*) |
| 4254 | + library_names_spec='$libname.dll.a' |
| 4255 | + # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 4256 | + postinstall_cmds='base_file=`basename \${file}`~ |
| 4257 | + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
| 4258 | + dldir=$destdir/`dirname \$dlpath`~ |
| 4259 | + test -d \$dldir || mkdir -p \$dldir~ |
| 4260 | + $install_prog $dir/$dlname \$dldir/$dlname~ |
| 4261 | + chmod a+x \$dldir/$dlname~ |
| 4262 | + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
| 4263 | + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
| 4264 | + fi' |
| 4265 | + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 4266 | + dlpath=$dir/\$dldll~ |
| 4267 | + $RM \$dlpath' |
| 4268 | + shlibpath_overrides_runpath=yes |
| 4269 | |
| 4270 | -freebsd* | kfreebsd*-gnu | dragonfly*) |
| 4271 | - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 4272 | - case $host_cpu in |
| 4273 | - i*86 ) |
| 4274 | - # Not sure whether the presence of OpenBSD here was a mistake. |
| 4275 | - # Let's accept both of them until this is cleared up. |
| 4276 | - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' |
| 4277 | - lt_cv_file_magic_cmd=/usr/bin/file |
| 4278 | - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 4279 | + case $host_os in |
| 4280 | + cygwin*) |
| 4281 | + # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 4282 | + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' |
| 4283 | + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 4284 | + ;; |
| 4285 | + mingw*) |
| 4286 | + # MinGW DLLs use traditional 'lib' prefix |
| 4287 | + soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' |
| 4288 | + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 4289 | + if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then |
| 4290 | + # It is most probably a Windows format PATH printed by |
| 4291 | + # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 4292 | + # path with ; separators, and with drive letters. We can handle the |
| 4293 | + # drive letters (cygwin fileutils understands them), so leave them, |
| 4294 | + # especially as we might pass files found there to a mingw objdump, |
| 4295 | + # which wouldn't understand a cygwinified path. Ahh. |
| 4296 | + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 4297 | + else |
| 4298 | + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 4299 | + fi |
| 4300 | + ;; |
| 4301 | + pw32*) |
| 4302 | + # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 4303 | + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' |
| 4304 | ;; |
| 4305 | esac |
| 4306 | - else |
| 4307 | - lt_cv_deplibs_check_method=pass_all |
| 4308 | - fi |
| 4309 | - ;; |
| 4310 | - |
| 4311 | -gnu*) |
| 4312 | - lt_cv_deplibs_check_method=pass_all |
| 4313 | - ;; |
| 4314 | - |
| 4315 | -hpux10.20* | hpux11*) |
| 4316 | - lt_cv_file_magic_cmd=/usr/bin/file |
| 4317 | - case $host_cpu in |
| 4318 | - ia64*) |
| 4319 | - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' |
| 4320 | - lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 4321 | - ;; |
| 4322 | - hppa*64*) |
| 4323 | - [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'] |
| 4324 | - lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 4325 | ;; |
| 4326 | + |
| 4327 | *) |
| 4328 | - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' |
| 4329 | - lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 4330 | + library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 4331 | ;; |
| 4332 | esac |
| 4333 | + dynamic_linker='Win32 ld.exe' |
| 4334 | + # FIXME: first we should search . and the directory the executable is in |
| 4335 | + shlibpath_var=PATH |
| 4336 | ;; |
| 4337 | |
| 4338 | -interix3*) |
| 4339 | - # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
| 4340 | - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' |
| 4341 | - ;; |
| 4342 | - |
| 4343 | -irix5* | irix6* | nonstopux*) |
| 4344 | - case $LD in |
| 4345 | - *-32|*"-32 ") libmagic=32-bit;; |
| 4346 | - *-n32|*"-n32 ") libmagic=N32;; |
| 4347 | - *-64|*"-64 ") libmagic=64-bit;; |
| 4348 | - *) libmagic=never-match;; |
| 4349 | - esac |
| 4350 | - lt_cv_deplibs_check_method=pass_all |
| 4351 | - ;; |
| 4352 | - |
| 4353 | -# This must be Linux ELF. |
| 4354 | -linux*) |
| 4355 | - lt_cv_deplibs_check_method=pass_all |
| 4356 | - ;; |
| 4357 | - |
| 4358 | -netbsd*) |
| 4359 | - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 4360 | - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' |
| 4361 | - else |
| 4362 | - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' |
| 4363 | - fi |
| 4364 | +darwin* | rhapsody*) |
| 4365 | + dynamic_linker="$host_os dyld" |
| 4366 | + version_type=darwin |
| 4367 | + need_lib_prefix=no |
| 4368 | + need_version=no |
| 4369 | + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 4370 | + soname_spec='${libname}${release}${major}$shared_ext' |
| 4371 | + shlibpath_overrides_runpath=yes |
| 4372 | + shlibpath_var=DYLD_LIBRARY_PATH |
| 4373 | + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
| 4374 | +m4_if([$1], [],[ |
| 4375 | + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) |
| 4376 | + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 4377 | ;; |
| 4378 | |
| 4379 | -newos6*) |
| 4380 | - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' |
| 4381 | - lt_cv_file_magic_cmd=/usr/bin/file |
| 4382 | - lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 4383 | +dgux*) |
| 4384 | + version_type=linux |
| 4385 | + need_lib_prefix=no |
| 4386 | + need_version=no |
| 4387 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 4388 | + soname_spec='${libname}${release}${shared_ext}$major' |
| 4389 | + shlibpath_var=LD_LIBRARY_PATH |
| 4390 | ;; |
| 4391 | |
| 4392 | -nto-qnx*) |
| 4393 | - lt_cv_deplibs_check_method=unknown |
| 4394 | +freebsd1*) |
| 4395 | + dynamic_linker=no |
| 4396 | ;; |
| 4397 | |
| 4398 | -openbsd*) |
| 4399 | - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 4400 | - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' |
| 4401 | +freebsd* | dragonfly*) |
| 4402 | + # DragonFly does not have aout. When/if they implement a new |
| 4403 | + # versioning mechanism, adjust this. |
| 4404 | + if test -x /usr/bin/objformat; then |
| 4405 | + objformat=`/usr/bin/objformat` |
| 4406 | else |
| 4407 | - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' |
| 4408 | + case $host_os in |
| 4409 | + freebsd[[123]]*) objformat=aout ;; |
| 4410 | + *) objformat=elf ;; |
| 4411 | + esac |
| 4412 | fi |
| 4413 | - ;; |
| 4414 | - |
| 4415 | -osf3* | osf4* | osf5*) |
| 4416 | - lt_cv_deplibs_check_method=pass_all |
| 4417 | - ;; |
| 4418 | - |
| 4419 | -solaris*) |
| 4420 | - lt_cv_deplibs_check_method=pass_all |
| 4421 | - ;; |
| 4422 | - |
| 4423 | -sysv4 | sysv4.3*) |
| 4424 | - case $host_vendor in |
| 4425 | - motorola) |
| 4426 | - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]' |
| 4427 | - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 4428 | - ;; |
| 4429 | - ncr) |
| 4430 | - lt_cv_deplibs_check_method=pass_all |
| 4431 | - ;; |
| 4432 | - sequent) |
| 4433 | - lt_cv_file_magic_cmd='/bin/file' |
| 4434 | - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' |
| 4435 | + version_type=freebsd-$objformat |
| 4436 | + case $version_type in |
| 4437 | + freebsd-elf*) |
| 4438 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 4439 | + need_version=no |
| 4440 | + need_lib_prefix=no |
| 4441 | + ;; |
| 4442 | + freebsd-*) |
| 4443 | + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 4444 | + need_version=yes |
| 4445 | + ;; |
| 4446 | + esac |
| 4447 | + shlibpath_var=LD_LIBRARY_PATH |
| 4448 | + case $host_os in |
| 4449 | + freebsd2*) |
| 4450 | + shlibpath_overrides_runpath=yes |
| 4451 | ;; |
| 4452 | - sni) |
| 4453 | - lt_cv_file_magic_cmd='/bin/file' |
| 4454 | - lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" |
| 4455 | - lt_cv_file_magic_test_file=/lib/libc.so |
| 4456 | + freebsd3.[[01]]* | freebsdelf3.[[01]]*) |
| 4457 | + shlibpath_overrides_runpath=yes |
| 4458 | + hardcode_into_libs=yes |
| 4459 | ;; |
| 4460 | - siemens) |
| 4461 | - lt_cv_deplibs_check_method=pass_all |
| 4462 | + freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ |
| 4463 | + freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) |
| 4464 | + shlibpath_overrides_runpath=no |
| 4465 | + hardcode_into_libs=yes |
| 4466 | ;; |
| 4467 | - pc) |
| 4468 | - lt_cv_deplibs_check_method=pass_all |
| 4469 | + *) # from 4.6 on, and DragonFly |
| 4470 | + shlibpath_overrides_runpath=yes |
| 4471 | + hardcode_into_libs=yes |
| 4472 | ;; |
| 4473 | esac |
| 4474 | ;; |
| 4475 | |
| 4476 | -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 4477 | - lt_cv_deplibs_check_method=pass_all |
| 4478 | +gnu*) |
| 4479 | + version_type=linux |
| 4480 | + need_lib_prefix=no |
| 4481 | + need_version=no |
| 4482 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 4483 | + soname_spec='${libname}${release}${shared_ext}$major' |
| 4484 | + shlibpath_var=LD_LIBRARY_PATH |
| 4485 | + hardcode_into_libs=yes |
| 4486 | ;; |
| 4487 | -esac |
| 4488 | -]) |
| 4489 | -file_magic_cmd=$lt_cv_file_magic_cmd |
| 4490 | -deplibs_check_method=$lt_cv_deplibs_check_method |
| 4491 | -test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 4492 | -])# AC_DEPLIBS_CHECK_METHOD |
| 4493 | |
| 4494 | - |
| 4495 | -# AC_PROG_NM |
| 4496 | -# ---------- |
| 4497 | -# find the pathname to a BSD-compatible name lister |
| 4498 | -AC_DEFUN([AC_PROG_NM], |
| 4499 | -[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM, |
| 4500 | -[if test -n "$NM"; then |
| 4501 | - # Let the user override the test. |
| 4502 | - lt_cv_path_NM="$NM" |
| 4503 | -else |
| 4504 | - lt_nm_to_check="${ac_tool_prefix}nm" |
| 4505 | - if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 4506 | - lt_nm_to_check="$lt_nm_to_check nm" |
| 4507 | - fi |
| 4508 | - for lt_tmp_nm in $lt_nm_to_check; do |
| 4509 | - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 4510 | - for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 4511 | - IFS="$lt_save_ifs" |
| 4512 | - test -z "$ac_dir" && ac_dir=. |
| 4513 | - tmp_nm="$ac_dir/$lt_tmp_nm" |
| 4514 | - if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 4515 | - # Check to see if the nm accepts a BSD-compat flag. |
| 4516 | - # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 4517 | - # nm: unknown option "B" ignored |
| 4518 | - # Tru64's nm complains that /dev/null is an invalid object file |
| 4519 | - case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 4520 | - */dev/null* | *'Invalid file or object type'*) |
| 4521 | - lt_cv_path_NM="$tmp_nm -B" |
| 4522 | - break |
| 4523 | - ;; |
| 4524 | - *) |
| 4525 | - case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 4526 | - */dev/null*) |
| 4527 | - lt_cv_path_NM="$tmp_nm -p" |
| 4528 | - break |
| 4529 | - ;; |
| 4530 | - *) |
| 4531 | - lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 4532 | - continue # so that we can try to find one that supports BSD flags |
| 4533 | - ;; |
| 4534 | - esac |
| 4535 | - ;; |
| 4536 | - esac |
| 4537 | - fi |
| 4538 | - done |
| 4539 | - IFS="$lt_save_ifs" |
| 4540 | - done |
| 4541 | - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
| 4542 | -fi]) |
| 4543 | -NM="$lt_cv_path_NM" |
| 4544 | -])# AC_PROG_NM |
| 4545 | - |
| 4546 | - |
| 4547 | -# AC_CHECK_LIBM |
| 4548 | -# ------------- |
| 4549 | -# check for math library |
| 4550 | -AC_DEFUN([AC_CHECK_LIBM], |
| 4551 | -[AC_REQUIRE([AC_CANONICAL_HOST])dnl |
| 4552 | -LIBM= |
| 4553 | -case $host in |
| 4554 | -*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) |
| 4555 | - # These system don't have libm, or don't need it |
| 4556 | - ;; |
| 4557 | -*-ncr-sysv4.3*) |
| 4558 | - AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") |
| 4559 | - AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") |
| 4560 | - ;; |
| 4561 | -*) |
| 4562 | - AC_CHECK_LIB(m, cos, LIBM="-lm") |
| 4563 | +hpux9* | hpux10* | hpux11*) |
| 4564 | + # Give a soname corresponding to the major version so that dld.sl refuses to |
| 4565 | + # link against other versions. |
| 4566 | + version_type=sunos |
| 4567 | + need_lib_prefix=no |
| 4568 | + need_version=no |
| 4569 | + case $host_cpu in |
| 4570 | + ia64*) |
| 4571 | + shrext_cmds='.so' |
| 4572 | + hardcode_into_libs=yes |
| 4573 | + dynamic_linker="$host_os dld.so" |
| 4574 | + shlibpath_var=LD_LIBRARY_PATH |
| 4575 | + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 4576 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 4577 | + soname_spec='${libname}${release}${shared_ext}$major' |
| 4578 | + if test "X$HPUX_IA64_MODE" = X32; then |
| 4579 | + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 4580 | + else |
| 4581 | + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 4582 | + fi |
| 4583 | + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 4584 | + ;; |
| 4585 | + hppa*64*) |
| 4586 | + shrext_cmds='.sl' |
| 4587 | + hardcode_into_libs=yes |
| 4588 | + dynamic_linker="$host_os dld.sl" |
| 4589 | + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 4590 | + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 4591 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 4592 | + soname_spec='${libname}${release}${shared_ext}$major' |
| 4593 | + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 4594 | + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 4595 | + ;; |
| 4596 | + *) |
| 4597 | + shrext_cmds='.sl' |
| 4598 | + dynamic_linker="$host_os dld.sl" |
| 4599 | + shlibpath_var=SHLIB_PATH |
| 4600 | + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 4601 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 4602 | + soname_spec='${libname}${release}${shared_ext}$major' |
| 4603 | + ;; |
| 4604 | + esac |
| 4605 | + # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 4606 | + postinstall_cmds='chmod 555 $lib' |
| 4607 | ;; |
| 4608 | -esac |
| 4609 | -])# AC_CHECK_LIBM |
| 4610 | |
| 4611 | +interix[[3-9]]*) |
| 4612 | + version_type=linux |
| 4613 | + need_lib_prefix=no |
| 4614 | + need_version=no |
| 4615 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 4616 | + soname_spec='${libname}${release}${shared_ext}$major' |
| 4617 | + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 4618 | + shlibpath_var=LD_LIBRARY_PATH |
| 4619 | + shlibpath_overrides_runpath=no |
| 4620 | + hardcode_into_libs=yes |
| 4621 | + ;; |
| 4622 | |
| 4623 | -# AC_LIBLTDL_CONVENIENCE([DIRECTORY]) |
| 4624 | -# ----------------------------------- |
| 4625 | -# sets LIBLTDL to the link flags for the libltdl convenience library and |
| 4626 | -# LTDLINCL to the include flags for the libltdl header and adds |
| 4627 | -# --enable-ltdl-convenience to the configure arguments. Note that |
| 4628 | -# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, |
| 4629 | -# it is assumed to be `libltdl'. LIBLTDL will be prefixed with |
| 4630 | -# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/' |
| 4631 | -# (note the single quotes!). If your package is not flat and you're not |
| 4632 | -# using automake, define top_builddir and top_srcdir appropriately in |
| 4633 | -# the Makefiles. |
| 4634 | -AC_DEFUN([AC_LIBLTDL_CONVENIENCE], |
| 4635 | -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl |
| 4636 | - case $enable_ltdl_convenience in |
| 4637 | - no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;; |
| 4638 | - "") enable_ltdl_convenience=yes |
| 4639 | - ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; |
| 4640 | +irix5* | irix6* | nonstopux*) |
| 4641 | + case $host_os in |
| 4642 | + nonstopux*) version_type=nonstopux ;; |
| 4643 | + *) |
| 4644 | + if test "$lt_cv_prog_gnu_ld" = yes; then |
| 4645 | + version_type=linux |
| 4646 | + else |
| 4647 | + version_type=irix |
| 4648 | + fi ;; |
| 4649 | esac |
| 4650 | - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la |
| 4651 | - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) |
| 4652 | - # For backwards non-gettext consistent compatibility... |
| 4653 | - INCLTDL="$LTDLINCL" |
| 4654 | -])# AC_LIBLTDL_CONVENIENCE |
| 4655 | - |
| 4656 | - |
| 4657 | -# AC_LIBLTDL_INSTALLABLE([DIRECTORY]) |
| 4658 | -# ----------------------------------- |
| 4659 | -# sets LIBLTDL to the link flags for the libltdl installable library and |
| 4660 | -# LTDLINCL to the include flags for the libltdl header and adds |
| 4661 | -# --enable-ltdl-install to the configure arguments. Note that |
| 4662 | -# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, |
| 4663 | -# and an installed libltdl is not found, it is assumed to be `libltdl'. |
| 4664 | -# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with |
| 4665 | -# '${top_srcdir}/' (note the single quotes!). If your package is not |
| 4666 | -# flat and you're not using automake, define top_builddir and top_srcdir |
| 4667 | -# appropriately in the Makefiles. |
| 4668 | -# In the future, this macro may have to be called after AC_PROG_LIBTOOL. |
| 4669 | -AC_DEFUN([AC_LIBLTDL_INSTALLABLE], |
| 4670 | -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl |
| 4671 | - AC_CHECK_LIB(ltdl, lt_dlinit, |
| 4672 | - [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no], |
| 4673 | - [if test x"$enable_ltdl_install" = xno; then |
| 4674 | - AC_MSG_WARN([libltdl not installed, but installation disabled]) |
| 4675 | - else |
| 4676 | - enable_ltdl_install=yes |
| 4677 | - fi |
| 4678 | - ]) |
| 4679 | - if test x"$enable_ltdl_install" = x"yes"; then |
| 4680 | - ac_configure_args="$ac_configure_args --enable-ltdl-install" |
| 4681 | - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la |
| 4682 | - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) |
| 4683 | - else |
| 4684 | - ac_configure_args="$ac_configure_args --enable-ltdl-install=no" |
| 4685 | - LIBLTDL="-lltdl" |
| 4686 | - LTDLINCL= |
| 4687 | - fi |
| 4688 | - # For backwards non-gettext consistent compatibility... |
| 4689 | - INCLTDL="$LTDLINCL" |
| 4690 | -])# AC_LIBLTDL_INSTALLABLE |
| 4691 | + need_lib_prefix=no |
| 4692 | + need_version=no |
| 4693 | + soname_spec='${libname}${release}${shared_ext}$major' |
| 4694 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 4695 | + case $host_os in |
| 4696 | + irix5* | nonstopux*) |
| 4697 | + libsuff= shlibsuff= |
| 4698 | + ;; |
| 4699 | + *) |
| 4700 | + case $LD in # libtool.m4 will add one of these switches to LD |
| 4701 | + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 4702 | + libsuff= shlibsuff= libmagic=32-bit;; |
| 4703 | + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 4704 | + libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 4705 | + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 4706 | + libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 4707 | + *) libsuff= shlibsuff= libmagic=never-match;; |
| 4708 | + esac |
| 4709 | + ;; |
| 4710 | + esac |
| 4711 | + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 4712 | + shlibpath_overrides_runpath=no |
| 4713 | + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 4714 | + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 4715 | + hardcode_into_libs=yes |
| 4716 | + ;; |
| 4717 | |
| 4718 | +# No shared lib support for Linux oldld, aout, or coff. |
| 4719 | +linux*oldld* | linux*aout* | linux*coff*) |
| 4720 | + dynamic_linker=no |
| 4721 | + ;; |
| 4722 | |
| 4723 | -# AC_LIBTOOL_CXX |
| 4724 | -# -------------- |
| 4725 | -# enable support for C++ libraries |
| 4726 | -AC_DEFUN([AC_LIBTOOL_CXX], |
| 4727 | -[AC_REQUIRE([_LT_AC_LANG_CXX]) |
| 4728 | -])# AC_LIBTOOL_CXX |
| 4729 | +# This must be Linux ELF. |
| 4730 | +linux* | k*bsd*-gnu) |
| 4731 | + version_type=linux |
| 4732 | + need_lib_prefix=no |
| 4733 | + need_version=no |
| 4734 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 4735 | + soname_spec='${libname}${release}${shared_ext}$major' |
| 4736 | + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 4737 | + shlibpath_var=LD_LIBRARY_PATH |
| 4738 | + shlibpath_overrides_runpath=no |
| 4739 | + # Some binutils ld are patched to set DT_RUNPATH |
| 4740 | + save_LDFLAGS=$LDFLAGS |
| 4741 | + save_libdir=$libdir |
| 4742 | + eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ |
| 4743 | + LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" |
| 4744 | + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], |
| 4745 | + [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null], |
| 4746 | + [shlibpath_overrides_runpath=yes])]) |
| 4747 | + LDFLAGS=$save_LDFLAGS |
| 4748 | + libdir=$save_libdir |
| 4749 | |
| 4750 | + # This implies no fast_install, which is unacceptable. |
| 4751 | + # Some rework will be needed to allow for fast_install |
| 4752 | + # before this can be enabled. |
| 4753 | + hardcode_into_libs=yes |
| 4754 | |
| 4755 | -# _LT_AC_LANG_CXX |
| 4756 | -# --------------- |
| 4757 | -AC_DEFUN([_LT_AC_LANG_CXX], |
| 4758 | -[AC_REQUIRE([AC_PROG_CXX]) |
| 4759 | -AC_REQUIRE([_LT_AC_PROG_CXXCPP]) |
| 4760 | -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX]) |
| 4761 | -])# _LT_AC_LANG_CXX |
| 4762 | + # Append ld.so.conf contents to the search path |
| 4763 | + if test -f /etc/ld.so.conf; then |
| 4764 | + 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' ' '` |
| 4765 | + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 4766 | + fi |
| 4767 | |
| 4768 | -# _LT_AC_PROG_CXXCPP |
| 4769 | -# ------------------ |
| 4770 | -AC_DEFUN([_LT_AC_PROG_CXXCPP], |
| 4771 | -[ |
| 4772 | -AC_REQUIRE([AC_PROG_CXX]) |
| 4773 | -if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 4774 | - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 4775 | - (test "X$CXX" != "Xg++"))) ; then |
| 4776 | - AC_PROG_CXXCPP |
| 4777 | -fi |
| 4778 | -])# _LT_AC_PROG_CXXCPP |
| 4779 | - |
| 4780 | -# AC_LIBTOOL_F77 |
| 4781 | -# -------------- |
| 4782 | -# enable support for Fortran 77 libraries |
| 4783 | -AC_DEFUN([AC_LIBTOOL_F77], |
| 4784 | -[AC_REQUIRE([_LT_AC_LANG_F77]) |
| 4785 | -])# AC_LIBTOOL_F77 |
| 4786 | - |
| 4787 | - |
| 4788 | -# _LT_AC_LANG_F77 |
| 4789 | -# --------------- |
| 4790 | -AC_DEFUN([_LT_AC_LANG_F77], |
| 4791 | -[AC_REQUIRE([AC_PROG_F77]) |
| 4792 | -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77]) |
| 4793 | -])# _LT_AC_LANG_F77 |
| 4794 | - |
| 4795 | - |
| 4796 | -# AC_LIBTOOL_GCJ |
| 4797 | -# -------------- |
| 4798 | -# enable support for GCJ libraries |
| 4799 | -AC_DEFUN([AC_LIBTOOL_GCJ], |
| 4800 | -[AC_REQUIRE([_LT_AC_LANG_GCJ]) |
| 4801 | -])# AC_LIBTOOL_GCJ |
| 4802 | - |
| 4803 | - |
| 4804 | -# _LT_AC_LANG_GCJ |
| 4805 | -# --------------- |
| 4806 | -AC_DEFUN([_LT_AC_LANG_GCJ], |
| 4807 | -[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[], |
| 4808 | - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[], |
| 4809 | - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[], |
| 4810 | - [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])], |
| 4811 | - [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])], |
| 4812 | - [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])]) |
| 4813 | -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ]) |
| 4814 | -])# _LT_AC_LANG_GCJ |
| 4815 | - |
| 4816 | - |
| 4817 | -# AC_LIBTOOL_RC |
| 4818 | -# ------------- |
| 4819 | -# enable support for Windows resource files |
| 4820 | -AC_DEFUN([AC_LIBTOOL_RC], |
| 4821 | -[AC_REQUIRE([LT_AC_PROG_RC]) |
| 4822 | -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC]) |
| 4823 | -])# AC_LIBTOOL_RC |
| 4824 | + # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 4825 | + # powerpc, because MkLinux only supported shared libraries with the |
| 4826 | + # GNU dynamic linker. Since this was broken with cross compilers, |
| 4827 | + # most powerpc-linux boxes support dynamic linking these days and |
| 4828 | + # people can always --disable-shared, the test was removed, and we |
| 4829 | + # assume the GNU/Linux dynamic linker is in use. |
| 4830 | + dynamic_linker='GNU/Linux ld.so' |
| 4831 | + ;; |
| 4832 | |
| 4833 | +netbsd*) |
| 4834 | + version_type=sunos |
| 4835 | + need_lib_prefix=no |
| 4836 | + need_version=no |
| 4837 | + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 4838 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 4839 | + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 4840 | + dynamic_linker='NetBSD (a.out) ld.so' |
| 4841 | + else |
| 4842 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 4843 | + soname_spec='${libname}${release}${shared_ext}$major' |
| 4844 | + dynamic_linker='NetBSD ld.elf_so' |
| 4845 | + fi |
| 4846 | + shlibpath_var=LD_LIBRARY_PATH |
| 4847 | + shlibpath_overrides_runpath=yes |
| 4848 | + hardcode_into_libs=yes |
| 4849 | + ;; |
| 4850 | |
| 4851 | -# AC_LIBTOOL_LANG_C_CONFIG |
| 4852 | -# ------------------------ |
| 4853 | -# Ensure that the configuration vars for the C compiler are |
| 4854 | -# suitably defined. Those variables are subsequently used by |
| 4855 | -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. |
| 4856 | -AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG]) |
| 4857 | -AC_DEFUN([_LT_AC_LANG_C_CONFIG], |
| 4858 | -[lt_save_CC="$CC" |
| 4859 | -AC_LANG_PUSH(C) |
| 4860 | +newsos6) |
| 4861 | + version_type=linux |
| 4862 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 4863 | + shlibpath_var=LD_LIBRARY_PATH |
| 4864 | + shlibpath_overrides_runpath=yes |
| 4865 | + ;; |
| 4866 | |
| 4867 | -# Source file extension for C test sources. |
| 4868 | -ac_ext=c |
| 4869 | +*nto* | *qnx*) |
| 4870 | + version_type=qnx |
| 4871 | + need_lib_prefix=no |
| 4872 | + need_version=no |
| 4873 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 4874 | + soname_spec='${libname}${release}${shared_ext}$major' |
| 4875 | + shlibpath_var=LD_LIBRARY_PATH |
| 4876 | + shlibpath_overrides_runpath=no |
| 4877 | + hardcode_into_libs=yes |
| 4878 | + dynamic_linker='ldqnx.so' |
| 4879 | + ;; |
| 4880 | |
| 4881 | -# Object file extension for compiled C test sources. |
| 4882 | -objext=o |
| 4883 | -_LT_AC_TAGVAR(objext, $1)=$objext |
| 4884 | +openbsd*) |
| 4885 | + version_type=sunos |
| 4886 | + sys_lib_dlsearch_path_spec="/usr/lib" |
| 4887 | + need_lib_prefix=no |
| 4888 | + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 4889 | + case $host_os in |
| 4890 | + openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 4891 | + *) need_version=no ;; |
| 4892 | + esac |
| 4893 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 4894 | + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 4895 | + shlibpath_var=LD_LIBRARY_PATH |
| 4896 | + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 4897 | + case $host_os in |
| 4898 | + openbsd2.[[89]] | openbsd2.[[89]].*) |
| 4899 | + shlibpath_overrides_runpath=no |
| 4900 | + ;; |
| 4901 | + *) |
| 4902 | + shlibpath_overrides_runpath=yes |
| 4903 | + ;; |
| 4904 | + esac |
| 4905 | + else |
| 4906 | + shlibpath_overrides_runpath=yes |
| 4907 | + fi |
| 4908 | + ;; |
| 4909 | |
| 4910 | -# Code to be used in simple compile tests |
| 4911 | -lt_simple_compile_test_code="int some_variable = 0;\n" |
| 4912 | +os2*) |
| 4913 | + libname_spec='$name' |
| 4914 | + shrext_cmds=".dll" |
| 4915 | + need_lib_prefix=no |
| 4916 | + library_names_spec='$libname${shared_ext} $libname.a' |
| 4917 | + dynamic_linker='OS/2 ld.exe' |
| 4918 | + shlibpath_var=LIBPATH |
| 4919 | + ;; |
| 4920 | |
| 4921 | -# Code to be used in simple link tests |
| 4922 | -lt_simple_link_test_code='int main(){return(0);}\n' |
| 4923 | +osf3* | osf4* | osf5*) |
| 4924 | + version_type=osf |
| 4925 | + need_lib_prefix=no |
| 4926 | + need_version=no |
| 4927 | + soname_spec='${libname}${release}${shared_ext}$major' |
| 4928 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 4929 | + shlibpath_var=LD_LIBRARY_PATH |
| 4930 | + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 4931 | + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 4932 | + ;; |
| 4933 | |
| 4934 | -_LT_AC_SYS_COMPILER |
| 4935 | +rdos*) |
| 4936 | + dynamic_linker=no |
| 4937 | + ;; |
| 4938 | |
| 4939 | -# save warnings/boilerplate of simple test code |
| 4940 | -_LT_COMPILER_BOILERPLATE |
| 4941 | -_LT_LINKER_BOILERPLATE |
| 4942 | +solaris*) |
| 4943 | + version_type=linux |
| 4944 | + need_lib_prefix=no |
| 4945 | + need_version=no |
| 4946 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 4947 | + soname_spec='${libname}${release}${shared_ext}$major' |
| 4948 | + shlibpath_var=LD_LIBRARY_PATH |
| 4949 | + shlibpath_overrides_runpath=yes |
| 4950 | + hardcode_into_libs=yes |
| 4951 | + # ldd complains unless libraries are executable |
| 4952 | + postinstall_cmds='chmod +x $lib' |
| 4953 | + ;; |
| 4954 | |
| 4955 | -## CAVEAT EMPTOR: |
| 4956 | -## There is no encapsulation within the following macros, do not change |
| 4957 | -## the running order or otherwise move them around unless you know exactly |
| 4958 | -## what you are doing... |
| 4959 | -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) |
| 4960 | -AC_LIBTOOL_PROG_COMPILER_PIC($1) |
| 4961 | -AC_LIBTOOL_PROG_CC_C_O($1) |
| 4962 | -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) |
| 4963 | -AC_LIBTOOL_PROG_LD_SHLIBS($1) |
| 4964 | -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) |
| 4965 | -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) |
| 4966 | -AC_LIBTOOL_SYS_LIB_STRIP |
| 4967 | -AC_LIBTOOL_DLOPEN_SELF |
| 4968 | - |
| 4969 | -# Report which library types will actually be built |
| 4970 | -AC_MSG_CHECKING([if libtool supports shared libraries]) |
| 4971 | -AC_MSG_RESULT([$can_build_shared]) |
| 4972 | +sunos4*) |
| 4973 | + version_type=sunos |
| 4974 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 4975 | + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 4976 | + shlibpath_var=LD_LIBRARY_PATH |
| 4977 | + shlibpath_overrides_runpath=yes |
| 4978 | + if test "$with_gnu_ld" = yes; then |
| 4979 | + need_lib_prefix=no |
| 4980 | + fi |
| 4981 | + need_version=yes |
| 4982 | + ;; |
| 4983 | |
| 4984 | -AC_MSG_CHECKING([whether to build shared libraries]) |
| 4985 | -test "$can_build_shared" = "no" && enable_shared=no |
| 4986 | +sysv4 | sysv4.3*) |
| 4987 | + version_type=linux |
| 4988 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 4989 | + soname_spec='${libname}${release}${shared_ext}$major' |
| 4990 | + shlibpath_var=LD_LIBRARY_PATH |
| 4991 | + case $host_vendor in |
| 4992 | + sni) |
| 4993 | + shlibpath_overrides_runpath=no |
| 4994 | + need_lib_prefix=no |
| 4995 | + runpath_var=LD_RUN_PATH |
| 4996 | + ;; |
| 4997 | + siemens) |
| 4998 | + need_lib_prefix=no |
| 4999 | + ;; |
| 5000 | + motorola) |
| 5001 | + need_lib_prefix=no |
| 5002 | + need_version=no |
| 5003 | + shlibpath_overrides_runpath=no |
| 5004 | + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 5005 | + ;; |
| 5006 | + esac |
| 5007 | + ;; |
| 5008 | |
| 5009 | -# On AIX, shared libraries and static libraries use the same namespace, and |
| 5010 | -# are all built from PIC. |
| 5011 | -case $host_os in |
| 5012 | -aix3*) |
| 5013 | - test "$enable_shared" = yes && enable_static=no |
| 5014 | - if test -n "$RANLIB"; then |
| 5015 | - archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 5016 | - postinstall_cmds='$RANLIB $lib' |
| 5017 | +sysv4*MP*) |
| 5018 | + if test -d /usr/nec ;then |
| 5019 | + version_type=linux |
| 5020 | + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 5021 | + soname_spec='$libname${shared_ext}.$major' |
| 5022 | + shlibpath_var=LD_LIBRARY_PATH |
| 5023 | fi |
| 5024 | ;; |
| 5025 | |
| 5026 | -aix4* | aix5*) |
| 5027 | - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 5028 | - test "$enable_shared" = yes && enable_static=no |
| 5029 | +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 5030 | + version_type=freebsd-elf |
| 5031 | + need_lib_prefix=no |
| 5032 | + need_version=no |
| 5033 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 5034 | + soname_spec='${libname}${release}${shared_ext}$major' |
| 5035 | + shlibpath_var=LD_LIBRARY_PATH |
| 5036 | + shlibpath_overrides_runpath=yes |
| 5037 | + hardcode_into_libs=yes |
| 5038 | + if test "$with_gnu_ld" = yes; then |
| 5039 | + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 5040 | + else |
| 5041 | + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 5042 | + case $host_os in |
| 5043 | + sco3.2v5*) |
| 5044 | + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 5045 | + ;; |
| 5046 | + esac |
| 5047 | fi |
| 5048 | - ;; |
| 5049 | -esac |
| 5050 | -AC_MSG_RESULT([$enable_shared]) |
| 5051 | - |
| 5052 | -AC_MSG_CHECKING([whether to build static libraries]) |
| 5053 | -# Make sure either enable_shared or enable_static is yes. |
| 5054 | -test "$enable_shared" = yes || enable_static=yes |
| 5055 | -AC_MSG_RESULT([$enable_static]) |
| 5056 | - |
| 5057 | -AC_LIBTOOL_CONFIG($1) |
| 5058 | - |
| 5059 | -AC_LANG_POP |
| 5060 | -CC="$lt_save_CC" |
| 5061 | -])# AC_LIBTOOL_LANG_C_CONFIG |
| 5062 | - |
| 5063 | - |
| 5064 | -# AC_LIBTOOL_LANG_CXX_CONFIG |
| 5065 | -# -------------------------- |
| 5066 | -# Ensure that the configuration vars for the C compiler are |
| 5067 | -# suitably defined. Those variables are subsequently used by |
| 5068 | -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. |
| 5069 | -AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)]) |
| 5070 | -AC_DEFUN([_LT_AC_LANG_CXX_CONFIG], |
| 5071 | -[AC_LANG_PUSH(C++) |
| 5072 | -AC_REQUIRE([AC_PROG_CXX]) |
| 5073 | -AC_REQUIRE([_LT_AC_PROG_CXXCPP]) |
| 5074 | - |
| 5075 | -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
| 5076 | -_LT_AC_TAGVAR(allow_undefined_flag, $1)= |
| 5077 | -_LT_AC_TAGVAR(always_export_symbols, $1)=no |
| 5078 | -_LT_AC_TAGVAR(archive_expsym_cmds, $1)= |
| 5079 | -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= |
| 5080 | -_LT_AC_TAGVAR(hardcode_direct, $1)=no |
| 5081 | -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= |
| 5082 | -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= |
| 5083 | -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)= |
| 5084 | -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no |
| 5085 | -_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
| 5086 | -_LT_AC_TAGVAR(hardcode_automatic, $1)=no |
| 5087 | -_LT_AC_TAGVAR(module_cmds, $1)= |
| 5088 | -_LT_AC_TAGVAR(module_expsym_cmds, $1)= |
| 5089 | -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown |
| 5090 | -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds |
| 5091 | -_LT_AC_TAGVAR(no_undefined_flag, $1)= |
| 5092 | -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)= |
| 5093 | -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no |
| 5094 | - |
| 5095 | -# Dependencies to place before and after the object being linked: |
| 5096 | -_LT_AC_TAGVAR(predep_objects, $1)= |
| 5097 | -_LT_AC_TAGVAR(postdep_objects, $1)= |
| 5098 | -_LT_AC_TAGVAR(predeps, $1)= |
| 5099 | -_LT_AC_TAGVAR(postdeps, $1)= |
| 5100 | -_LT_AC_TAGVAR(compiler_lib_search_path, $1)= |
| 5101 | - |
| 5102 | -# Source file extension for C++ test sources. |
| 5103 | -ac_ext=cpp |
| 5104 | - |
| 5105 | -# Object file extension for compiled C++ test sources. |
| 5106 | -objext=o |
| 5107 | -_LT_AC_TAGVAR(objext, $1)=$objext |
| 5108 | - |
| 5109 | -# Code to be used in simple compile tests |
| 5110 | -lt_simple_compile_test_code="int some_variable = 0;\n" |
| 5111 | + sys_lib_dlsearch_path_spec='/usr/lib' |
| 5112 | + ;; |
| 5113 | |
| 5114 | -# Code to be used in simple link tests |
| 5115 | -lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n' |
| 5116 | +tpf*) |
| 5117 | + # TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
| 5118 | + version_type=linux |
| 5119 | + need_lib_prefix=no |
| 5120 | + need_version=no |
| 5121 | + library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 5122 | + shlibpath_var=LD_LIBRARY_PATH |
| 5123 | + shlibpath_overrides_runpath=no |
| 5124 | + hardcode_into_libs=yes |
| 5125 | + ;; |
| 5126 | |
| 5127 | -# ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 5128 | -_LT_AC_SYS_COMPILER |
| 5129 | +uts4*) |
| 5130 | + version_type=linux |
| 5131 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 5132 | + soname_spec='${libname}${release}${shared_ext}$major' |
| 5133 | + shlibpath_var=LD_LIBRARY_PATH |
| 5134 | + ;; |
| 5135 | |
| 5136 | -# save warnings/boilerplate of simple test code |
| 5137 | -_LT_COMPILER_BOILERPLATE |
| 5138 | -_LT_LINKER_BOILERPLATE |
| 5139 | +*) |
| 5140 | + dynamic_linker=no |
| 5141 | + ;; |
| 5142 | +esac |
| 5143 | +AC_MSG_RESULT([$dynamic_linker]) |
| 5144 | +test "$dynamic_linker" = no && can_build_shared=no |
| 5145 | |
| 5146 | -# Allow CC to be a program name with arguments. |
| 5147 | -lt_save_CC=$CC |
| 5148 | -lt_save_LD=$LD |
| 5149 | -lt_save_GCC=$GCC |
| 5150 | -GCC=$GXX |
| 5151 | -lt_save_with_gnu_ld=$with_gnu_ld |
| 5152 | -lt_save_path_LD=$lt_cv_path_LD |
| 5153 | -if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
| 5154 | - lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
| 5155 | -else |
| 5156 | - $as_unset lt_cv_prog_gnu_ld |
| 5157 | +variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 5158 | +if test "$GCC" = yes; then |
| 5159 | + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 5160 | fi |
| 5161 | -if test -n "${lt_cv_path_LDCXX+set}"; then |
| 5162 | - lt_cv_path_LD=$lt_cv_path_LDCXX |
| 5163 | -else |
| 5164 | - $as_unset lt_cv_path_LD |
| 5165 | + |
| 5166 | +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
| 5167 | + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" |
| 5168 | fi |
| 5169 | -test -z "${LDCXX+set}" || LD=$LDCXX |
| 5170 | -CC=${CXX-"c++"} |
| 5171 | -compiler=$CC |
| 5172 | -_LT_AC_TAGVAR(compiler, $1)=$CC |
| 5173 | -_LT_CC_BASENAME([$compiler]) |
| 5174 | - |
| 5175 | -# We don't want -fno-exception wen compiling C++ code, so set the |
| 5176 | -# no_builtin_flag separately |
| 5177 | -if test "$GXX" = yes; then |
| 5178 | - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' |
| 5179 | -else |
| 5180 | - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= |
| 5181 | +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
| 5182 | + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" |
| 5183 | fi |
| 5184 | |
| 5185 | -if test "$GXX" = yes; then |
| 5186 | - # Set up default GNU C++ configuration |
| 5187 | - |
| 5188 | - AC_PROG_LD |
| 5189 | - |
| 5190 | - # Check if GNU C++ uses GNU ld as the underlying linker, since the |
| 5191 | - # archiving commands below assume that GNU ld is being used. |
| 5192 | - if test "$with_gnu_ld" = yes; then |
| 5193 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 5194 | - _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' |
| 5195 | - |
| 5196 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' |
| 5197 | - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
| 5198 | - |
| 5199 | - # If archive_cmds runs LD, not CC, wlarc should be empty |
| 5200 | - # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
| 5201 | - # investigate it a little bit more. (MM) |
| 5202 | - wlarc='${wl}' |
| 5203 | - |
| 5204 | - # ancient GNU ld didn't support --whole-archive et. al. |
| 5205 | - if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ |
| 5206 | - grep 'no-whole-archive' > /dev/null; then |
| 5207 | - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 5208 | - else |
| 5209 | - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= |
| 5210 | - fi |
| 5211 | - else |
| 5212 | - with_gnu_ld=no |
| 5213 | - wlarc= |
| 5214 | - |
| 5215 | - # A generic and very simple default shared library creation |
| 5216 | - # command for GNU C++ for the case where it uses the native |
| 5217 | - # linker, instead of GNU ld. If possible, this setting should |
| 5218 | - # overridden to take advantage of the native linker features on |
| 5219 | - # the platform it is being used on. |
| 5220 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 5221 | - fi |
| 5222 | - |
| 5223 | - # Commands to make compiler produce verbose output that lists |
| 5224 | - # what "hidden" libraries, object files and flags are used when |
| 5225 | - # linking a shared library. |
| 5226 | - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 5227 | - |
| 5228 | -else |
| 5229 | - GXX=no |
| 5230 | - with_gnu_ld=no |
| 5231 | - wlarc= |
| 5232 | -fi |
| 5233 | +_LT_DECL([], [variables_saved_for_relink], [1], |
| 5234 | + [Variables whose values should be saved in libtool wrapper scripts and |
| 5235 | + restored at link time]) |
| 5236 | +_LT_DECL([], [need_lib_prefix], [0], |
| 5237 | + [Do we need the "lib" prefix for modules?]) |
| 5238 | +_LT_DECL([], [need_version], [0], [Do we need a version for libraries?]) |
| 5239 | +_LT_DECL([], [version_type], [0], [Library versioning type]) |
| 5240 | +_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable]) |
| 5241 | +_LT_DECL([], [shlibpath_var], [0],[Shared library path variable]) |
| 5242 | +_LT_DECL([], [shlibpath_overrides_runpath], [0], |
| 5243 | + [Is shlibpath searched before the hard-coded library search path?]) |
| 5244 | +_LT_DECL([], [libname_spec], [1], [Format of library name prefix]) |
| 5245 | +_LT_DECL([], [library_names_spec], [1], |
| 5246 | + [[List of archive names. First name is the real one, the rest are links. |
| 5247 | + The last name is the one that the linker finds with -lNAME]]) |
| 5248 | +_LT_DECL([], [soname_spec], [1], |
| 5249 | + [[The coded name of the library, if different from the real name]]) |
| 5250 | +_LT_DECL([], [postinstall_cmds], [2], |
| 5251 | + [Command to use after installation of a shared archive]) |
| 5252 | +_LT_DECL([], [postuninstall_cmds], [2], |
| 5253 | + [Command to use after uninstallation of a shared archive]) |
| 5254 | +_LT_DECL([], [finish_cmds], [2], |
| 5255 | + [Commands used to finish a libtool library installation in a directory]) |
| 5256 | +_LT_DECL([], [finish_eval], [1], |
| 5257 | + [[As "finish_cmds", except a single script fragment to be evaled but |
| 5258 | + not shown]]) |
| 5259 | +_LT_DECL([], [hardcode_into_libs], [0], |
| 5260 | + [Whether we should hardcode library paths into libraries]) |
| 5261 | +_LT_DECL([], [sys_lib_search_path_spec], [2], |
| 5262 | + [Compile-time system search path for libraries]) |
| 5263 | +_LT_DECL([], [sys_lib_dlsearch_path_spec], [2], |
| 5264 | + [Run-time system search path for libraries]) |
| 5265 | +])# _LT_SYS_DYNAMIC_LINKER |
| 5266 | |
| 5267 | -# PORTME: fill in a description of your system's C++ link characteristics |
| 5268 | -AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) |
| 5269 | -_LT_AC_TAGVAR(ld_shlibs, $1)=yes |
| 5270 | -case $host_os in |
| 5271 | - aix3*) |
| 5272 | - # FIXME: insert proper C++ library support |
| 5273 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 5274 | - ;; |
| 5275 | - aix4* | aix5*) |
| 5276 | - if test "$host_cpu" = ia64; then |
| 5277 | - # On IA64, the linker does run time linking by default, so we don't |
| 5278 | - # have to do anything special. |
| 5279 | - aix_use_runtimelinking=no |
| 5280 | - exp_sym_flag='-Bexport' |
| 5281 | - no_entry_flag="" |
| 5282 | - else |
| 5283 | - aix_use_runtimelinking=no |
| 5284 | |
| 5285 | - # Test if we are trying to use run time linking or normal |
| 5286 | - # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 5287 | - # need to do runtime linking. |
| 5288 | - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) |
| 5289 | - for ld_flag in $LDFLAGS; do |
| 5290 | - case $ld_flag in |
| 5291 | - *-brtl*) |
| 5292 | - aix_use_runtimelinking=yes |
| 5293 | - break |
| 5294 | - ;; |
| 5295 | - esac |
| 5296 | - done |
| 5297 | - ;; |
| 5298 | - esac |
| 5299 | - |
| 5300 | - exp_sym_flag='-bexport' |
| 5301 | - no_entry_flag='-bnoentry' |
| 5302 | - fi |
| 5303 | +# _LT_PATH_TOOL_PREFIX(TOOL) |
| 5304 | +# -------------------------- |
| 5305 | +# find a file program which can recognize shared library |
| 5306 | +AC_DEFUN([_LT_PATH_TOOL_PREFIX], |
| 5307 | +[m4_require([_LT_DECL_EGREP])dnl |
| 5308 | +AC_MSG_CHECKING([for $1]) |
| 5309 | +AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, |
| 5310 | +[case $MAGIC_CMD in |
| 5311 | +[[\\/*] | ?:[\\/]*]) |
| 5312 | + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 5313 | + ;; |
| 5314 | +*) |
| 5315 | + lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 5316 | + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 5317 | +dnl $ac_dummy forces splitting on constant user-supplied paths. |
| 5318 | +dnl POSIX.2 word splitting is done only on the output of word expansions, |
| 5319 | +dnl not every word. This closes a longstanding sh security hole. |
| 5320 | + ac_dummy="m4_if([$2], , $PATH, [$2])" |
| 5321 | + for ac_dir in $ac_dummy; do |
| 5322 | + IFS="$lt_save_ifs" |
| 5323 | + test -z "$ac_dir" && ac_dir=. |
| 5324 | + if test -f $ac_dir/$1; then |
| 5325 | + lt_cv_path_MAGIC_CMD="$ac_dir/$1" |
| 5326 | + if test -n "$file_magic_test_file"; then |
| 5327 | + case $deplibs_check_method in |
| 5328 | + "file_magic "*) |
| 5329 | + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
| 5330 | + MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 5331 | + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 5332 | + $EGREP "$file_magic_regex" > /dev/null; then |
| 5333 | + : |
| 5334 | + else |
| 5335 | + cat <<_LT_EOF 1>&2 |
| 5336 | |
| 5337 | - # When large executables or shared objects are built, AIX ld can |
| 5338 | - # have problems creating the table of contents. If linking a library |
| 5339 | - # or program results in "error TOC overflow" add -mminimal-toc to |
| 5340 | - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 5341 | - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 5342 | - |
| 5343 | - _LT_AC_TAGVAR(archive_cmds, $1)='' |
| 5344 | - _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
| 5345 | - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' |
| 5346 | - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
| 5347 | +*** Warning: the command libtool uses to detect shared libraries, |
| 5348 | +*** $file_magic_cmd, produces output that libtool cannot recognize. |
| 5349 | +*** The result is that libtool may fail to recognize shared libraries |
| 5350 | +*** as such. This will affect the creation of libtool libraries that |
| 5351 | +*** depend on shared libraries, but programs linked with such libtool |
| 5352 | +*** libraries will work regardless of this problem. Nevertheless, you |
| 5353 | +*** may want to report the problem to your system manager and/or to |
| 5354 | +*** bug-libtool@gnu.org |
| 5355 | |
| 5356 | - if test "$GXX" = yes; then |
| 5357 | - case $host_os in aix4.[[012]]|aix4.[[012]].*) |
| 5358 | - # We only want to do this on AIX 4.2 and lower, the check |
| 5359 | - # below for broken collect2 doesn't work under 4.3+ |
| 5360 | - collect2name=`${CC} -print-prog-name=collect2` |
| 5361 | - if test -f "$collect2name" && \ |
| 5362 | - strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 5363 | - then |
| 5364 | - # We have reworked collect2 |
| 5365 | - _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
| 5366 | - else |
| 5367 | - # We have old collect2 |
| 5368 | - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported |
| 5369 | - # It fails to find uninstalled libraries when the uninstalled |
| 5370 | - # path is not listed in the libpath. Setting hardcode_minus_L |
| 5371 | - # to unsupported forces relinking |
| 5372 | - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
| 5373 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| 5374 | - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= |
| 5375 | - fi |
| 5376 | - ;; |
| 5377 | - esac |
| 5378 | - shared_flag='-shared' |
| 5379 | - if test "$aix_use_runtimelinking" = yes; then |
| 5380 | - shared_flag="$shared_flag "'${wl}-G' |
| 5381 | - fi |
| 5382 | - else |
| 5383 | - # not using gcc |
| 5384 | - if test "$host_cpu" = ia64; then |
| 5385 | - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 5386 | - # chokes on -Wl,-G. The following line is correct: |
| 5387 | - shared_flag='-G' |
| 5388 | - else |
| 5389 | - if test "$aix_use_runtimelinking" = yes; then |
| 5390 | - shared_flag='${wl}-G' |
| 5391 | - else |
| 5392 | - shared_flag='${wl}-bM:SRE' |
| 5393 | - fi |
| 5394 | +_LT_EOF |
| 5395 | + fi ;; |
| 5396 | + esac |
| 5397 | fi |
| 5398 | + break |
| 5399 | fi |
| 5400 | + done |
| 5401 | + IFS="$lt_save_ifs" |
| 5402 | + MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 5403 | + ;; |
| 5404 | +esac]) |
| 5405 | +MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 5406 | +if test -n "$MAGIC_CMD"; then |
| 5407 | + AC_MSG_RESULT($MAGIC_CMD) |
| 5408 | +else |
| 5409 | + AC_MSG_RESULT(no) |
| 5410 | +fi |
| 5411 | +_LT_DECL([], [MAGIC_CMD], [0], |
| 5412 | + [Used to examine libraries when file_magic_cmd begins with "file"])dnl |
| 5413 | +])# _LT_PATH_TOOL_PREFIX |
| 5414 | |
| 5415 | - # It seems that -bexpall does not export symbols beginning with |
| 5416 | - # underscore (_), so it is better to generate a list of symbols to export. |
| 5417 | - _LT_AC_TAGVAR(always_export_symbols, $1)=yes |
| 5418 | - if test "$aix_use_runtimelinking" = yes; then |
| 5419 | - # Warning - without using the other runtime loading flags (-brtl), |
| 5420 | - # -berok will link without error, but may produce a broken library. |
| 5421 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' |
| 5422 | - # Determine the default libpath from the value encoded in an empty executable. |
| 5423 | - _LT_AC_SYS_LIBPATH_AIX |
| 5424 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 5425 | +# Old name: |
| 5426 | +AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX]) |
| 5427 | +dnl aclocal-1.4 backwards compatibility: |
| 5428 | +dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], []) |
| 5429 | |
| 5430 | - _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" |
| 5431 | - else |
| 5432 | - if test "$host_cpu" = ia64; then |
| 5433 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' |
| 5434 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" |
| 5435 | - _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" |
| 5436 | - else |
| 5437 | - # Determine the default libpath from the value encoded in an empty executable. |
| 5438 | - _LT_AC_SYS_LIBPATH_AIX |
| 5439 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 5440 | - # Warning - without using the other run time loading flags, |
| 5441 | - # -berok will link without error, but may produce a broken library. |
| 5442 | - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' |
| 5443 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' |
| 5444 | - # Exported symbols can be pulled into shared objects from archives |
| 5445 | - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience' |
| 5446 | - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes |
| 5447 | - # This is similar to how AIX traditionally builds its shared libraries. |
| 5448 | - _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' |
| 5449 | - fi |
| 5450 | - fi |
| 5451 | - ;; |
| 5452 | |
| 5453 | - beos*) |
| 5454 | - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 5455 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported |
| 5456 | - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 5457 | - # support --undefined. This deserves some investigation. FIXME |
| 5458 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 5459 | - else |
| 5460 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 5461 | - fi |
| 5462 | - ;; |
| 5463 | +# _LT_PATH_MAGIC |
| 5464 | +# -------------- |
| 5465 | +# find a file program which can recognize a shared library |
| 5466 | +m4_defun([_LT_PATH_MAGIC], |
| 5467 | +[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) |
| 5468 | +if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 5469 | + if test -n "$ac_tool_prefix"; then |
| 5470 | + _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) |
| 5471 | + else |
| 5472 | + MAGIC_CMD=: |
| 5473 | + fi |
| 5474 | +fi |
| 5475 | +])# _LT_PATH_MAGIC |
| 5476 | |
| 5477 | - chorus*) |
| 5478 | - case $cc_basename in |
| 5479 | - *) |
| 5480 | - # FIXME: insert proper C++ library support |
| 5481 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 5482 | - ;; |
| 5483 | - esac |
| 5484 | - ;; |
| 5485 | |
| 5486 | - cygwin* | mingw* | pw32*) |
| 5487 | - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, |
| 5488 | - # as there is no search path for DLLs. |
| 5489 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| 5490 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported |
| 5491 | - _LT_AC_TAGVAR(always_export_symbols, $1)=no |
| 5492 | - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
| 5493 | - |
| 5494 | - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
| 5495 | - _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' |
| 5496 | - # If the export-symbols file already is a .def file (1st line |
| 5497 | - # is EXPORTS), use it as is; otherwise, prepend... |
| 5498 | - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 5499 | - cp $export_symbols $output_objdir/$soname.def; |
| 5500 | - else |
| 5501 | - echo EXPORTS > $output_objdir/$soname.def; |
| 5502 | - cat $export_symbols >> $output_objdir/$soname.def; |
| 5503 | - fi~ |
| 5504 | - $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' |
| 5505 | - else |
| 5506 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 5507 | - fi |
| 5508 | - ;; |
| 5509 | - darwin* | rhapsody*) |
| 5510 | - case $host_os in |
| 5511 | - rhapsody* | darwin1.[[012]]) |
| 5512 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' |
| 5513 | - ;; |
| 5514 | - *) # Darwin 1.3 on |
| 5515 | - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 5516 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 5517 | - else |
| 5518 | - case ${MACOSX_DEPLOYMENT_TARGET} in |
| 5519 | - 10.[[012]]) |
| 5520 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 5521 | - ;; |
| 5522 | - 10.*) |
| 5523 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' |
| 5524 | - ;; |
| 5525 | - esac |
| 5526 | - fi |
| 5527 | - ;; |
| 5528 | - esac |
| 5529 | - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
| 5530 | - _LT_AC_TAGVAR(hardcode_direct, $1)=no |
| 5531 | - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes |
| 5532 | - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
| 5533 | - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' |
| 5534 | - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
| 5535 | - |
| 5536 | - if test "$GXX" = yes ; then |
| 5537 | - lt_int_apple_cc_single_mod=no |
| 5538 | - output_verbose_link_cmd='echo' |
| 5539 | - if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then |
| 5540 | - lt_int_apple_cc_single_mod=yes |
| 5541 | - fi |
| 5542 | - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 5543 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 5544 | - else |
| 5545 | - _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' |
| 5546 | - fi |
| 5547 | - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 5548 | - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 5549 | - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 5550 | - _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}' |
| 5551 | - else |
| 5552 | - _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}' |
| 5553 | - fi |
| 5554 | - _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}' |
| 5555 | - else |
| 5556 | - case $cc_basename in |
| 5557 | - xlc*) |
| 5558 | - output_verbose_link_cmd='echo' |
| 5559 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 5560 | - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 5561 | - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 5562 | - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 5563 | - _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}' |
| 5564 | - ;; |
| 5565 | - *) |
| 5566 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 5567 | - ;; |
| 5568 | - esac |
| 5569 | - fi |
| 5570 | - ;; |
| 5571 | +# LT_PATH_LD |
| 5572 | +# ---------- |
| 5573 | +# find the pathname to the GNU or non-GNU linker |
| 5574 | +AC_DEFUN([LT_PATH_LD], |
| 5575 | +[AC_REQUIRE([AC_PROG_CC])dnl |
| 5576 | +AC_REQUIRE([AC_CANONICAL_HOST])dnl |
| 5577 | +AC_REQUIRE([AC_CANONICAL_BUILD])dnl |
| 5578 | +m4_require([_LT_DECL_SED])dnl |
| 5579 | +m4_require([_LT_DECL_EGREP])dnl |
| 5580 | |
| 5581 | - dgux*) |
| 5582 | - case $cc_basename in |
| 5583 | - ec++*) |
| 5584 | - # FIXME: insert proper C++ library support |
| 5585 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 5586 | - ;; |
| 5587 | - ghcx*) |
| 5588 | - # Green Hills C++ Compiler |
| 5589 | - # FIXME: insert proper C++ library support |
| 5590 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 5591 | - ;; |
| 5592 | - *) |
| 5593 | - # FIXME: insert proper C++ library support |
| 5594 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 5595 | - ;; |
| 5596 | - esac |
| 5597 | - ;; |
| 5598 | - freebsd[[12]]*) |
| 5599 | - # C++ shared libraries reported to be fairly broken before switch to ELF |
| 5600 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 5601 | - ;; |
| 5602 | - freebsd-elf*) |
| 5603 | - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
| 5604 | - ;; |
| 5605 | - freebsd* | kfreebsd*-gnu | dragonfly*) |
| 5606 | - # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
| 5607 | - # conventions |
| 5608 | - _LT_AC_TAGVAR(ld_shlibs, $1)=yes |
| 5609 | - ;; |
| 5610 | - gnu*) |
| 5611 | - ;; |
| 5612 | - hpux9*) |
| 5613 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
| 5614 | - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| 5615 | - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
| 5616 | - _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
| 5617 | - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, |
| 5618 | - # but as the default |
| 5619 | - # location of the library. |
| 5620 | - |
| 5621 | - case $cc_basename in |
| 5622 | - CC*) |
| 5623 | - # FIXME: insert proper C++ library support |
| 5624 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 5625 | - ;; |
| 5626 | - aCC*) |
| 5627 | - _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' |
| 5628 | - # Commands to make compiler produce verbose output that lists |
| 5629 | - # what "hidden" libraries, object files and flags are used when |
| 5630 | - # linking a shared library. |
| 5631 | - # |
| 5632 | - # There doesn't appear to be a way to prevent this compiler from |
| 5633 | - # explicitly linking system object files so we need to strip them |
| 5634 | - # from the output so that they don't get included in the library |
| 5635 | - # dependencies. |
| 5636 | - 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' |
| 5637 | - ;; |
| 5638 | - *) |
| 5639 | - if test "$GXX" = yes; then |
| 5640 | - _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' |
| 5641 | - else |
| 5642 | - # FIXME: insert proper C++ library support |
| 5643 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 5644 | - fi |
| 5645 | - ;; |
| 5646 | - esac |
| 5647 | - ;; |
| 5648 | - hpux10*|hpux11*) |
| 5649 | - if test $with_gnu_ld = no; then |
| 5650 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
| 5651 | - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| 5652 | +AC_ARG_WITH([gnu-ld], |
| 5653 | + [AS_HELP_STRING([--with-gnu-ld], |
| 5654 | + [assume the C compiler uses GNU ld @<:@default=no@:>@])], |
| 5655 | + [test "$withval" = no || with_gnu_ld=yes], |
| 5656 | + [with_gnu_ld=no])dnl |
| 5657 | |
| 5658 | - case $host_cpu in |
| 5659 | - hppa*64*|ia64*) |
| 5660 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' |
| 5661 | - ;; |
| 5662 | - *) |
| 5663 | - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
| 5664 | - ;; |
| 5665 | - esac |
| 5666 | - fi |
| 5667 | - case $host_cpu in |
| 5668 | - hppa*64*|ia64*) |
| 5669 | - _LT_AC_TAGVAR(hardcode_direct, $1)=no |
| 5670 | - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 5671 | - ;; |
| 5672 | - *) |
| 5673 | - _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
| 5674 | - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, |
| 5675 | - # but as the default |
| 5676 | - # location of the library. |
| 5677 | +ac_prog=ld |
| 5678 | +if test "$GCC" = yes; then |
| 5679 | + # Check if gcc -print-prog-name=ld gives a path. |
| 5680 | + AC_MSG_CHECKING([for ld used by $CC]) |
| 5681 | + case $host in |
| 5682 | + *-*-mingw*) |
| 5683 | + # gcc leaves a trailing carriage return which upsets mingw |
| 5684 | + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 5685 | + *) |
| 5686 | + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 5687 | + esac |
| 5688 | + case $ac_prog in |
| 5689 | + # Accept absolute paths. |
| 5690 | + [[\\/]]* | ?:[[\\/]]*) |
| 5691 | + re_direlt='/[[^/]][[^/]]*/\.\./' |
| 5692 | + # Canonicalize the pathname of ld |
| 5693 | + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
| 5694 | + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
| 5695 | + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
| 5696 | + done |
| 5697 | + test -z "$LD" && LD="$ac_prog" |
| 5698 | ;; |
| 5699 | - esac |
| 5700 | - |
| 5701 | - case $cc_basename in |
| 5702 | - CC*) |
| 5703 | - # FIXME: insert proper C++ library support |
| 5704 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 5705 | - ;; |
| 5706 | - aCC*) |
| 5707 | - case $host_cpu in |
| 5708 | - hppa*64*) |
| 5709 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 5710 | - ;; |
| 5711 | - ia64*) |
| 5712 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 5713 | - ;; |
| 5714 | - *) |
| 5715 | - _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' |
| 5716 | - ;; |
| 5717 | - esac |
| 5718 | - # Commands to make compiler produce verbose output that lists |
| 5719 | - # what "hidden" libraries, object files and flags are used when |
| 5720 | - # linking a shared library. |
| 5721 | - # |
| 5722 | - # There doesn't appear to be a way to prevent this compiler from |
| 5723 | - # explicitly linking system object files so we need to strip them |
| 5724 | - # from the output so that they don't get included in the library |
| 5725 | - # dependencies. |
| 5726 | - 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' |
| 5727 | - ;; |
| 5728 | - *) |
| 5729 | - if test "$GXX" = yes; then |
| 5730 | - if test $with_gnu_ld = no; then |
| 5731 | - case $host_cpu in |
| 5732 | - hppa*64*) |
| 5733 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 5734 | - ;; |
| 5735 | - ia64*) |
| 5736 | - _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' |
| 5737 | - ;; |
| 5738 | - *) |
| 5739 | - _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' |
| 5740 | - ;; |
| 5741 | - esac |
| 5742 | - fi |
| 5743 | - else |
| 5744 | - # FIXME: insert proper C++ library support |
| 5745 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 5746 | - fi |
| 5747 | - ;; |
| 5748 | - esac |
| 5749 | - ;; |
| 5750 | - interix3*) |
| 5751 | - _LT_AC_TAGVAR(hardcode_direct, $1)=no |
| 5752 | - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 5753 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
| 5754 | - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
| 5755 | - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 5756 | - # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 5757 | - # default) and relocated if they conflict, which is a slow very memory |
| 5758 | - # consuming and fragmenting process. To avoid this, we pick a random, |
| 5759 | - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 5760 | - # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 5761 | - _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' |
| 5762 | - _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' |
| 5763 | - ;; |
| 5764 | - irix5* | irix6*) |
| 5765 | - case $cc_basename in |
| 5766 | - CC*) |
| 5767 | - # SGI C++ |
| 5768 | - _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' |
| 5769 | - |
| 5770 | - # Archives containing C++ object files must be created using |
| 5771 | - # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
| 5772 | - # necessary to make sure instantiated templates are included |
| 5773 | - # in the archive. |
| 5774 | - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' |
| 5775 | - ;; |
| 5776 | - *) |
| 5777 | - if test "$GXX" = yes; then |
| 5778 | - if test "$with_gnu_ld" = no; then |
| 5779 | - _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' |
| 5780 | - else |
| 5781 | - _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' |
| 5782 | - fi |
| 5783 | - fi |
| 5784 | - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
| 5785 | - ;; |
| 5786 | - esac |
| 5787 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
| 5788 | - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| 5789 | + "") |
| 5790 | + # If it fails, then pretend we aren't using GCC. |
| 5791 | + ac_prog=ld |
| 5792 | ;; |
| 5793 | - linux*) |
| 5794 | - case $cc_basename in |
| 5795 | - KCC*) |
| 5796 | - # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 5797 | - |
| 5798 | - # KCC will only create a shared library if the output file |
| 5799 | - # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 5800 | - # to its proper name (with version) after linking. |
| 5801 | - _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' |
| 5802 | - _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' |
| 5803 | - # Commands to make compiler produce verbose output that lists |
| 5804 | - # what "hidden" libraries, object files and flags are used when |
| 5805 | - # linking a shared library. |
| 5806 | - # |
| 5807 | - # There doesn't appear to be a way to prevent this compiler from |
| 5808 | - # explicitly linking system object files so we need to strip them |
| 5809 | - # from the output so that they don't get included in the library |
| 5810 | - # dependencies. |
| 5811 | - 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' |
| 5812 | - |
| 5813 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir' |
| 5814 | - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
| 5815 | - |
| 5816 | - # Archives containing C++ object files must be created using |
| 5817 | - # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 5818 | - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' |
| 5819 | - ;; |
| 5820 | - icpc*) |
| 5821 | - # Intel C++ |
| 5822 | - with_gnu_ld=yes |
| 5823 | - # version 8.0 and above of icpc choke on multiply defined symbols |
| 5824 | - # if we add $predep_objects and $postdep_objects, however 7.1 and |
| 5825 | - # earlier do not add the objects themselves. |
| 5826 | - case `$CC -V 2>&1` in |
| 5827 | - *"Version 7."*) |
| 5828 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 5829 | - _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' |
| 5830 | - ;; |
| 5831 | - *) # Version 8.0 or newer |
| 5832 | - tmp_idyn= |
| 5833 | - case $host_cpu in |
| 5834 | - ia64*) tmp_idyn=' -i_dynamic';; |
| 5835 | - esac |
| 5836 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 5837 | - _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' |
| 5838 | - ;; |
| 5839 | - esac |
| 5840 | - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
| 5841 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
| 5842 | - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
| 5843 | - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 5844 | - ;; |
| 5845 | - pgCC*) |
| 5846 | - # Portland Group C++ compiler |
| 5847 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
| 5848 | - _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' |
| 5849 | - |
| 5850 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' |
| 5851 | - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
| 5852 | - _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' |
| 5853 | - ;; |
| 5854 | - cxx*) |
| 5855 | - # Compaq C++ |
| 5856 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 5857 | - _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' |
| 5858 | - |
| 5859 | - runpath_var=LD_RUN_PATH |
| 5860 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' |
| 5861 | - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| 5862 | - |
| 5863 | - # Commands to make compiler produce verbose output that lists |
| 5864 | - # what "hidden" libraries, object files and flags are used when |
| 5865 | - # linking a shared library. |
| 5866 | - # |
| 5867 | - # There doesn't appear to be a way to prevent this compiler from |
| 5868 | - # explicitly linking system object files so we need to strip them |
| 5869 | - # from the output so that they don't get included in the library |
| 5870 | - # dependencies. |
| 5871 | - 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' |
| 5872 | - ;; |
| 5873 | - *) |
| 5874 | - case `$CC -V 2>&1 | sed 5q` in |
| 5875 | - *Sun\ C*) |
| 5876 | - # Sun C++ 5.9 |
| 5877 | - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' |
| 5878 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 5879 | - _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' |
| 5880 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
| 5881 | - _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' |
| 5882 | - |
| 5883 | - # Not sure whether something based on |
| 5884 | - # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 |
| 5885 | - # would be better. |
| 5886 | - output_verbose_link_cmd='echo' |
| 5887 | - |
| 5888 | - # Archives containing C++ object files must be created using |
| 5889 | - # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 5890 | - # necessary to make sure instantiated templates are included |
| 5891 | - # in the archive. |
| 5892 | - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' |
| 5893 | - ;; |
| 5894 | - esac |
| 5895 | - ;; |
| 5896 | - esac |
| 5897 | + *) |
| 5898 | + # If it is relative, then search for the first ld in PATH. |
| 5899 | + with_gnu_ld=unknown |
| 5900 | ;; |
| 5901 | - lynxos*) |
| 5902 | - # FIXME: insert proper C++ library support |
| 5903 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 5904 | - ;; |
| 5905 | - m88k*) |
| 5906 | - # FIXME: insert proper C++ library support |
| 5907 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 5908 | - ;; |
| 5909 | - mvs*) |
| 5910 | - case $cc_basename in |
| 5911 | - cxx*) |
| 5912 | - # FIXME: insert proper C++ library support |
| 5913 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 5914 | + esac |
| 5915 | +elif test "$with_gnu_ld" = yes; then |
| 5916 | + AC_MSG_CHECKING([for GNU ld]) |
| 5917 | +else |
| 5918 | + AC_MSG_CHECKING([for non-GNU ld]) |
| 5919 | +fi |
| 5920 | +AC_CACHE_VAL(lt_cv_path_LD, |
| 5921 | +[if test -z "$LD"; then |
| 5922 | + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 5923 | + for ac_dir in $PATH; do |
| 5924 | + IFS="$lt_save_ifs" |
| 5925 | + test -z "$ac_dir" && ac_dir=. |
| 5926 | + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 5927 | + lt_cv_path_LD="$ac_dir/$ac_prog" |
| 5928 | + # Check to see if the program is GNU ld. I'd rather use --version, |
| 5929 | + # but apparently some variants of GNU ld only accept -v. |
| 5930 | + # Break only if it was the GNU/non-GNU ld that we prefer. |
| 5931 | + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 5932 | + *GNU* | *'with BFD'*) |
| 5933 | + test "$with_gnu_ld" != no && break |
| 5934 | ;; |
| 5935 | *) |
| 5936 | - # FIXME: insert proper C++ library support |
| 5937 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 5938 | + test "$with_gnu_ld" != yes && break |
| 5939 | ;; |
| 5940 | - esac |
| 5941 | - ;; |
| 5942 | - netbsd*) |
| 5943 | - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 5944 | - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
| 5945 | - wlarc= |
| 5946 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
| 5947 | - _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
| 5948 | - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 5949 | - fi |
| 5950 | - # Workaround some broken pre-1.5 toolchains |
| 5951 | - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
| 5952 | - ;; |
| 5953 | - openbsd2*) |
| 5954 | - # C++ shared libraries are fairly broken |
| 5955 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 5956 | - ;; |
| 5957 | - openbsd*) |
| 5958 | - _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
| 5959 | - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 5960 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 5961 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
| 5962 | - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 5963 | - _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' |
| 5964 | - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
| 5965 | - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 5966 | + esac |
| 5967 | fi |
| 5968 | - output_verbose_link_cmd='echo' |
| 5969 | - ;; |
| 5970 | - osf3*) |
| 5971 | - case $cc_basename in |
| 5972 | - KCC*) |
| 5973 | - # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 5974 | - |
| 5975 | - # KCC will only create a shared library if the output file |
| 5976 | - # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 5977 | - # to its proper name (with version) after linking. |
| 5978 | - _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' |
| 5979 | - |
| 5980 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
| 5981 | - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| 5982 | - |
| 5983 | - # Archives containing C++ object files must be created using |
| 5984 | - # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 5985 | - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' |
| 5986 | - |
| 5987 | - ;; |
| 5988 | - RCC*) |
| 5989 | - # Rational C++ 2.4.1 |
| 5990 | - # FIXME: insert proper C++ library support |
| 5991 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 5992 | - ;; |
| 5993 | - cxx*) |
| 5994 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
| 5995 | - _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' |
| 5996 | - |
| 5997 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
| 5998 | - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| 5999 | - |
| 6000 | - # Commands to make compiler produce verbose output that lists |
| 6001 | - # what "hidden" libraries, object files and flags are used when |
| 6002 | - # linking a shared library. |
| 6003 | - # |
| 6004 | - # There doesn't appear to be a way to prevent this compiler from |
| 6005 | - # explicitly linking system object files so we need to strip them |
| 6006 | - # from the output so that they don't get included in the library |
| 6007 | - # dependencies. |
| 6008 | - 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' |
| 6009 | - ;; |
| 6010 | - *) |
| 6011 | - if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 6012 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
| 6013 | - _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' |
| 6014 | - |
| 6015 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
| 6016 | - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| 6017 | - |
| 6018 | - # Commands to make compiler produce verbose output that lists |
| 6019 | - # what "hidden" libraries, object files and flags are used when |
| 6020 | - # linking a shared library. |
| 6021 | - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 6022 | + done |
| 6023 | + IFS="$lt_save_ifs" |
| 6024 | +else |
| 6025 | + lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 6026 | +fi]) |
| 6027 | +LD="$lt_cv_path_LD" |
| 6028 | +if test -n "$LD"; then |
| 6029 | + AC_MSG_RESULT($LD) |
| 6030 | +else |
| 6031 | + AC_MSG_RESULT(no) |
| 6032 | +fi |
| 6033 | +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) |
| 6034 | +_LT_PATH_LD_GNU |
| 6035 | +AC_SUBST([LD]) |
| 6036 | |
| 6037 | - else |
| 6038 | - # FIXME: insert proper C++ library support |
| 6039 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 6040 | - fi |
| 6041 | - ;; |
| 6042 | - esac |
| 6043 | - ;; |
| 6044 | - osf4* | osf5*) |
| 6045 | - case $cc_basename in |
| 6046 | - KCC*) |
| 6047 | - # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 6048 | - |
| 6049 | - # KCC will only create a shared library if the output file |
| 6050 | - # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 6051 | - # to its proper name (with version) after linking. |
| 6052 | - _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' |
| 6053 | - |
| 6054 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
| 6055 | - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| 6056 | - |
| 6057 | - # Archives containing C++ object files must be created using |
| 6058 | - # the KAI C++ compiler. |
| 6059 | - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' |
| 6060 | - ;; |
| 6061 | - RCC*) |
| 6062 | - # Rational C++ 2.4.1 |
| 6063 | - # FIXME: insert proper C++ library support |
| 6064 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 6065 | - ;; |
| 6066 | - cxx*) |
| 6067 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' |
| 6068 | - _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' |
| 6069 | - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
| 6070 | - echo "-hidden">> $lib.exp~ |
| 6071 | - $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~ |
| 6072 | - $rm $lib.exp' |
| 6073 | - |
| 6074 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' |
| 6075 | - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| 6076 | - |
| 6077 | - # Commands to make compiler produce verbose output that lists |
| 6078 | - # what "hidden" libraries, object files and flags are used when |
| 6079 | - # linking a shared library. |
| 6080 | - # |
| 6081 | - # There doesn't appear to be a way to prevent this compiler from |
| 6082 | - # explicitly linking system object files so we need to strip them |
| 6083 | - # from the output so that they don't get included in the library |
| 6084 | - # dependencies. |
| 6085 | - 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' |
| 6086 | - ;; |
| 6087 | - *) |
| 6088 | - if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 6089 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
| 6090 | - _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' |
| 6091 | - |
| 6092 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
| 6093 | - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| 6094 | - |
| 6095 | - # Commands to make compiler produce verbose output that lists |
| 6096 | - # what "hidden" libraries, object files and flags are used when |
| 6097 | - # linking a shared library. |
| 6098 | - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 6099 | +_LT_TAGDECL([], [LD], [1], [The linker used to build libraries]) |
| 6100 | +])# LT_PATH_LD |
| 6101 | |
| 6102 | - else |
| 6103 | - # FIXME: insert proper C++ library support |
| 6104 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 6105 | - fi |
| 6106 | - ;; |
| 6107 | - esac |
| 6108 | - ;; |
| 6109 | - psos*) |
| 6110 | - # FIXME: insert proper C++ library support |
| 6111 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 6112 | - ;; |
| 6113 | - sunos4*) |
| 6114 | - case $cc_basename in |
| 6115 | - CC*) |
| 6116 | - # Sun C++ 4.x |
| 6117 | - # FIXME: insert proper C++ library support |
| 6118 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 6119 | - ;; |
| 6120 | - lcc*) |
| 6121 | - # Lucid |
| 6122 | - # FIXME: insert proper C++ library support |
| 6123 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 6124 | - ;; |
| 6125 | - *) |
| 6126 | - # FIXME: insert proper C++ library support |
| 6127 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 6128 | - ;; |
| 6129 | - esac |
| 6130 | +# Old names: |
| 6131 | +AU_ALIAS([AM_PROG_LD], [LT_PATH_LD]) |
| 6132 | +AU_ALIAS([AC_PROG_LD], [LT_PATH_LD]) |
| 6133 | +dnl aclocal-1.4 backwards compatibility: |
| 6134 | +dnl AC_DEFUN([AM_PROG_LD], []) |
| 6135 | +dnl AC_DEFUN([AC_PROG_LD], []) |
| 6136 | + |
| 6137 | + |
| 6138 | +# _LT_PATH_LD_GNU |
| 6139 | +#- -------------- |
| 6140 | +m4_defun([_LT_PATH_LD_GNU], |
| 6141 | +[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, |
| 6142 | +[# I'd rather use --version here, but apparently some GNU lds only accept -v. |
| 6143 | +case `$LD -v 2>&1 </dev/null` in |
| 6144 | +*GNU* | *'with BFD'*) |
| 6145 | + lt_cv_prog_gnu_ld=yes |
| 6146 | + ;; |
| 6147 | +*) |
| 6148 | + lt_cv_prog_gnu_ld=no |
| 6149 | + ;; |
| 6150 | +esac]) |
| 6151 | +with_gnu_ld=$lt_cv_prog_gnu_ld |
| 6152 | +])# _LT_PATH_LD_GNU |
| 6153 | + |
| 6154 | + |
| 6155 | +# _LT_CMD_RELOAD |
| 6156 | +# -------------- |
| 6157 | +# find reload flag for linker |
| 6158 | +# -- PORTME Some linkers may need a different reload flag. |
| 6159 | +m4_defun([_LT_CMD_RELOAD], |
| 6160 | +[AC_CACHE_CHECK([for $LD option to reload object files], |
| 6161 | + lt_cv_ld_reload_flag, |
| 6162 | + [lt_cv_ld_reload_flag='-r']) |
| 6163 | +reload_flag=$lt_cv_ld_reload_flag |
| 6164 | +case $reload_flag in |
| 6165 | +"" | " "*) ;; |
| 6166 | +*) reload_flag=" $reload_flag" ;; |
| 6167 | +esac |
| 6168 | +reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 6169 | +case $host_os in |
| 6170 | + darwin*) |
| 6171 | + if test "$GCC" = yes; then |
| 6172 | + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
| 6173 | + else |
| 6174 | + reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 6175 | + fi |
| 6176 | ;; |
| 6177 | - solaris*) |
| 6178 | - case $cc_basename in |
| 6179 | - CC*) |
| 6180 | - # Sun C++ 4.2, 5.x and Centerline C++ |
| 6181 | - _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes |
| 6182 | - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' |
| 6183 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 6184 | - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 6185 | - $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' |
| 6186 | - |
| 6187 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
| 6188 | - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 6189 | - case $host_os in |
| 6190 | - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; |
| 6191 | - *) |
| 6192 | - # The C++ compiler is used as linker so we must use $wl |
| 6193 | - # flag to pass the commands to the underlying system |
| 6194 | - # linker. We must also pass each convience library through |
| 6195 | - # to the system linker between allextract/defaultextract. |
| 6196 | - # The C++ compiler will combine linker options so we |
| 6197 | - # cannot just pass the convience library names through |
| 6198 | - # without $wl. |
| 6199 | - # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 6200 | - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' |
| 6201 | - ;; |
| 6202 | - esac |
| 6203 | - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
| 6204 | +esac |
| 6205 | +_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl |
| 6206 | +_LT_DECL([], [reload_cmds], [2])dnl |
| 6207 | +])# _LT_CMD_RELOAD |
| 6208 | |
| 6209 | - output_verbose_link_cmd='echo' |
| 6210 | |
| 6211 | - # Archives containing C++ object files must be created using |
| 6212 | - # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 6213 | - # necessary to make sure instantiated templates are included |
| 6214 | - # in the archive. |
| 6215 | - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' |
| 6216 | - ;; |
| 6217 | - gcx*) |
| 6218 | - # Green Hills C++ Compiler |
| 6219 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 6220 | +# _LT_CHECK_MAGIC_METHOD |
| 6221 | +# ---------------------- |
| 6222 | +# how to check for library dependencies |
| 6223 | +# -- PORTME fill in with the dynamic library characteristics |
| 6224 | +m4_defun([_LT_CHECK_MAGIC_METHOD], |
| 6225 | +[m4_require([_LT_DECL_EGREP]) |
| 6226 | +AC_CACHE_CHECK([how to recognize dependent libraries], |
| 6227 | +lt_cv_deplibs_check_method, |
| 6228 | +[lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 6229 | +lt_cv_file_magic_test_file= |
| 6230 | +lt_cv_deplibs_check_method='unknown' |
| 6231 | +# Need to set the preceding variable on all platforms that support |
| 6232 | +# interlibrary dependencies. |
| 6233 | +# 'none' -- dependencies not supported. |
| 6234 | +# `unknown' -- same as none, but documents that we really don't know. |
| 6235 | +# 'pass_all' -- all dependencies passed with no checks. |
| 6236 | +# 'test_compile' -- check by making test program. |
| 6237 | +# 'file_magic [[regex]]' -- check by looking for files in library path |
| 6238 | +# which responds to the $file_magic_cmd with a given extended regex. |
| 6239 | +# If you have `file' or equivalent on your system and you're not sure |
| 6240 | +# whether `pass_all' will *always* work, you probably want this one. |
| 6241 | |
| 6242 | - # The C++ compiler must be used to create the archive. |
| 6243 | - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
| 6244 | - ;; |
| 6245 | - *) |
| 6246 | - # GNU C++ compiler with Solaris linker |
| 6247 | - if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 6248 | - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' |
| 6249 | - if $CC --version | grep -v '^2\.7' > /dev/null; then |
| 6250 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 6251 | - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 6252 | - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
| 6253 | +case $host_os in |
| 6254 | +aix[[4-9]]*) |
| 6255 | + lt_cv_deplibs_check_method=pass_all |
| 6256 | + ;; |
| 6257 | |
| 6258 | - # Commands to make compiler produce verbose output that lists |
| 6259 | - # what "hidden" libraries, object files and flags are used when |
| 6260 | - # linking a shared library. |
| 6261 | - output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
| 6262 | - else |
| 6263 | - # g++ 2.7 appears to require `-G' NOT `-shared' on this |
| 6264 | - # platform. |
| 6265 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 6266 | - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 6267 | - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
| 6268 | +beos*) |
| 6269 | + lt_cv_deplibs_check_method=pass_all |
| 6270 | + ;; |
| 6271 | |
| 6272 | - # Commands to make compiler produce verbose output that lists |
| 6273 | - # what "hidden" libraries, object files and flags are used when |
| 6274 | - # linking a shared library. |
| 6275 | - output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
| 6276 | - fi |
| 6277 | +bsdi[[45]]*) |
| 6278 | + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' |
| 6279 | + lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 6280 | + lt_cv_file_magic_test_file=/shlib/libc.so |
| 6281 | + ;; |
| 6282 | |
| 6283 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' |
| 6284 | - fi |
| 6285 | - ;; |
| 6286 | - esac |
| 6287 | - ;; |
| 6288 | - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) |
| 6289 | - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' |
| 6290 | - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
| 6291 | - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 6292 | - runpath_var='LD_RUN_PATH' |
| 6293 | - |
| 6294 | - case $cc_basename in |
| 6295 | - CC*) |
| 6296 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 6297 | - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 6298 | - ;; |
| 6299 | - *) |
| 6300 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 6301 | - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 6302 | - ;; |
| 6303 | - esac |
| 6304 | - ;; |
| 6305 | - sysv5* | sco3.2v5* | sco5v6*) |
| 6306 | - # Note: We can NOT use -z defs as we might desire, because we do not |
| 6307 | - # link with -lc, and that would cause any symbols used from libc to |
| 6308 | - # always be unresolved, which means just about no library would |
| 6309 | - # ever link correctly. If we're not using GNU ld we use -z text |
| 6310 | - # though, which does catch some bad symbols but isn't as heavy-handed |
| 6311 | - # as -z defs. |
| 6312 | - # For security reasons, it is highly recommended that you always |
| 6313 | - # use absolute paths for naming shared libraries, and exclude the |
| 6314 | - # DT_RUNPATH tag from executables and libraries. But doing so |
| 6315 | - # requires that you compile everything twice, which is a pain. |
| 6316 | - # So that behaviour is only enabled if SCOABSPATH is set to a |
| 6317 | - # non-empty value in the environment. Most likely only useful for |
| 6318 | - # creating official distributions of packages. |
| 6319 | - # This is a hack until libtool officially supports absolute path |
| 6320 | - # names for shared libraries. |
| 6321 | - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' |
| 6322 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' |
| 6323 | - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
| 6324 | - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 6325 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 6326 | - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' |
| 6327 | - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
| 6328 | - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' |
| 6329 | - runpath_var='LD_RUN_PATH' |
| 6330 | - |
| 6331 | - case $cc_basename in |
| 6332 | - CC*) |
| 6333 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 6334 | - _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' |
| 6335 | - ;; |
| 6336 | - *) |
| 6337 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 6338 | - _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' |
| 6339 | - ;; |
| 6340 | - esac |
| 6341 | - ;; |
| 6342 | - tandem*) |
| 6343 | - case $cc_basename in |
| 6344 | - NCC*) |
| 6345 | - # NonStop-UX NCC 3.20 |
| 6346 | - # FIXME: insert proper C++ library support |
| 6347 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 6348 | - ;; |
| 6349 | - *) |
| 6350 | - # FIXME: insert proper C++ library support |
| 6351 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 6352 | - ;; |
| 6353 | +cygwin*) |
| 6354 | + # func_win32_libid is a shell function defined in ltmain.sh |
| 6355 | + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 6356 | + lt_cv_file_magic_cmd='func_win32_libid' |
| 6357 | + ;; |
| 6358 | + |
| 6359 | +mingw* | pw32*) |
| 6360 | + # Base MSYS/MinGW do not provide the 'file' command needed by |
| 6361 | + # func_win32_libid shell function, so use a weaker test based on 'objdump', |
| 6362 | + # unless we find 'file', for example because we are cross-compiling. |
| 6363 | + if ( file / ) >/dev/null 2>&1; then |
| 6364 | + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 6365 | + lt_cv_file_magic_cmd='func_win32_libid' |
| 6366 | + else |
| 6367 | + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
| 6368 | + lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 6369 | + fi |
| 6370 | + ;; |
| 6371 | + |
| 6372 | +darwin* | rhapsody*) |
| 6373 | + lt_cv_deplibs_check_method=pass_all |
| 6374 | + ;; |
| 6375 | + |
| 6376 | +freebsd* | dragonfly*) |
| 6377 | + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
| 6378 | + case $host_cpu in |
| 6379 | + i*86 ) |
| 6380 | + # Not sure whether the presence of OpenBSD here was a mistake. |
| 6381 | + # Let's accept both of them until this is cleared up. |
| 6382 | + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' |
| 6383 | + lt_cv_file_magic_cmd=/usr/bin/file |
| 6384 | + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 6385 | + ;; |
| 6386 | esac |
| 6387 | + else |
| 6388 | + lt_cv_deplibs_check_method=pass_all |
| 6389 | + fi |
| 6390 | + ;; |
| 6391 | + |
| 6392 | +gnu*) |
| 6393 | + lt_cv_deplibs_check_method=pass_all |
| 6394 | + ;; |
| 6395 | + |
| 6396 | +hpux10.20* | hpux11*) |
| 6397 | + lt_cv_file_magic_cmd=/usr/bin/file |
| 6398 | + case $host_cpu in |
| 6399 | + ia64*) |
| 6400 | + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' |
| 6401 | + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 6402 | ;; |
| 6403 | - vxworks*) |
| 6404 | - # FIXME: insert proper C++ library support |
| 6405 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 6406 | + hppa*64*) |
| 6407 | + [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'] |
| 6408 | + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 6409 | ;; |
| 6410 | *) |
| 6411 | - # FIXME: insert proper C++ library support |
| 6412 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 6413 | + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' |
| 6414 | + lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 6415 | ;; |
| 6416 | -esac |
| 6417 | -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) |
| 6418 | -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no |
| 6419 | + esac |
| 6420 | + ;; |
| 6421 | |
| 6422 | -_LT_AC_TAGVAR(GCC, $1)="$GXX" |
| 6423 | -_LT_AC_TAGVAR(LD, $1)="$LD" |
| 6424 | +interix[[3-9]]*) |
| 6425 | + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
| 6426 | + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' |
| 6427 | + ;; |
| 6428 | |
| 6429 | -## CAVEAT EMPTOR: |
| 6430 | -## There is no encapsulation within the following macros, do not change |
| 6431 | -## the running order or otherwise move them around unless you know exactly |
| 6432 | -## what you are doing... |
| 6433 | -AC_LIBTOOL_POSTDEP_PREDEP($1) |
| 6434 | -AC_LIBTOOL_PROG_COMPILER_PIC($1) |
| 6435 | -AC_LIBTOOL_PROG_CC_C_O($1) |
| 6436 | -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) |
| 6437 | -AC_LIBTOOL_PROG_LD_SHLIBS($1) |
| 6438 | -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) |
| 6439 | -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) |
| 6440 | +irix5* | irix6* | nonstopux*) |
| 6441 | + case $LD in |
| 6442 | + *-32|*"-32 ") libmagic=32-bit;; |
| 6443 | + *-n32|*"-n32 ") libmagic=N32;; |
| 6444 | + *-64|*"-64 ") libmagic=64-bit;; |
| 6445 | + *) libmagic=never-match;; |
| 6446 | + esac |
| 6447 | + lt_cv_deplibs_check_method=pass_all |
| 6448 | + ;; |
| 6449 | |
| 6450 | -AC_LIBTOOL_CONFIG($1) |
| 6451 | +# This must be Linux ELF. |
| 6452 | +linux* | k*bsd*-gnu) |
| 6453 | + lt_cv_deplibs_check_method=pass_all |
| 6454 | + ;; |
| 6455 | |
| 6456 | -AC_LANG_POP |
| 6457 | -CC=$lt_save_CC |
| 6458 | -LDCXX=$LD |
| 6459 | -LD=$lt_save_LD |
| 6460 | -GCC=$lt_save_GCC |
| 6461 | -with_gnu_ldcxx=$with_gnu_ld |
| 6462 | -with_gnu_ld=$lt_save_with_gnu_ld |
| 6463 | -lt_cv_path_LDCXX=$lt_cv_path_LD |
| 6464 | -lt_cv_path_LD=$lt_save_path_LD |
| 6465 | -lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
| 6466 | -lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
| 6467 | -])# AC_LIBTOOL_LANG_CXX_CONFIG |
| 6468 | +netbsd*) |
| 6469 | + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
| 6470 | + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' |
| 6471 | + else |
| 6472 | + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' |
| 6473 | + fi |
| 6474 | + ;; |
| 6475 | |
| 6476 | -# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME]) |
| 6477 | -# ------------------------------------ |
| 6478 | -# Figure out "hidden" library dependencies from verbose |
| 6479 | -# compiler output when linking a shared library. |
| 6480 | -# Parse the compiler output and extract the necessary |
| 6481 | -# objects, libraries and library flags. |
| 6482 | -AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[ |
| 6483 | -dnl we can't use the lt_simple_compile_test_code here, |
| 6484 | -dnl because it contains code intended for an executable, |
| 6485 | -dnl not a library. It's possible we should let each |
| 6486 | -dnl tag define a new lt_????_link_test_code variable, |
| 6487 | -dnl but it's only used here... |
| 6488 | -ifelse([$1],[],[cat > conftest.$ac_ext <<EOF |
| 6489 | -int a; |
| 6490 | -void foo (void) { a = 0; } |
| 6491 | -EOF |
| 6492 | -],[$1],[CXX],[cat > conftest.$ac_ext <<EOF |
| 6493 | -class Foo |
| 6494 | -{ |
| 6495 | -public: |
| 6496 | - Foo (void) { a = 0; } |
| 6497 | -private: |
| 6498 | - int a; |
| 6499 | -}; |
| 6500 | -EOF |
| 6501 | -],[$1],[F77],[cat > conftest.$ac_ext <<EOF |
| 6502 | - subroutine foo |
| 6503 | - implicit none |
| 6504 | - integer*4 a |
| 6505 | - a=0 |
| 6506 | - return |
| 6507 | - end |
| 6508 | -EOF |
| 6509 | -],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF |
| 6510 | -public class foo { |
| 6511 | - private int a; |
| 6512 | - public void bar (void) { |
| 6513 | - a = 0; |
| 6514 | - } |
| 6515 | -}; |
| 6516 | -EOF |
| 6517 | -]) |
| 6518 | -dnl Parse the compiler output and extract the necessary |
| 6519 | -dnl objects, libraries and library flags. |
| 6520 | -if AC_TRY_EVAL(ac_compile); then |
| 6521 | - # Parse the compiler output and extract the necessary |
| 6522 | - # objects, libraries and library flags. |
| 6523 | +newos6*) |
| 6524 | + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' |
| 6525 | + lt_cv_file_magic_cmd=/usr/bin/file |
| 6526 | + lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 6527 | + ;; |
| 6528 | |
| 6529 | - # Sentinel used to keep track of whether or not we are before |
| 6530 | - # the conftest object file. |
| 6531 | - pre_test_object_deps_done=no |
| 6532 | +*nto* | *qnx*) |
| 6533 | + lt_cv_deplibs_check_method=pass_all |
| 6534 | + ;; |
| 6535 | |
| 6536 | - # The `*' in the case matches for architectures that use `case' in |
| 6537 | - # $output_verbose_cmd can trigger glob expansion during the loop |
| 6538 | - # eval without this substitution. |
| 6539 | - output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` |
| 6540 | +openbsd*) |
| 6541 | + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 6542 | + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' |
| 6543 | + else |
| 6544 | + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' |
| 6545 | + fi |
| 6546 | + ;; |
| 6547 | |
| 6548 | - for p in `eval $output_verbose_link_cmd`; do |
| 6549 | - case $p in |
| 6550 | +osf3* | osf4* | osf5*) |
| 6551 | + lt_cv_deplibs_check_method=pass_all |
| 6552 | + ;; |
| 6553 | |
| 6554 | - -L* | -R* | -l*) |
| 6555 | - # Some compilers place space between "-{L,R}" and the path. |
| 6556 | - # Remove the space. |
| 6557 | - if test $p = "-L" \ |
| 6558 | - || test $p = "-R"; then |
| 6559 | - prev=$p |
| 6560 | - continue |
| 6561 | - else |
| 6562 | - prev= |
| 6563 | - fi |
| 6564 | +rdos*) |
| 6565 | + lt_cv_deplibs_check_method=pass_all |
| 6566 | + ;; |
| 6567 | + |
| 6568 | +solaris*) |
| 6569 | + lt_cv_deplibs_check_method=pass_all |
| 6570 | + ;; |
| 6571 | + |
| 6572 | +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 6573 | + lt_cv_deplibs_check_method=pass_all |
| 6574 | + ;; |
| 6575 | + |
| 6576 | +sysv4 | sysv4.3*) |
| 6577 | + case $host_vendor in |
| 6578 | + motorola) |
| 6579 | + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]' |
| 6580 | + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 6581 | + ;; |
| 6582 | + ncr) |
| 6583 | + lt_cv_deplibs_check_method=pass_all |
| 6584 | + ;; |
| 6585 | + sequent) |
| 6586 | + lt_cv_file_magic_cmd='/bin/file' |
| 6587 | + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' |
| 6588 | + ;; |
| 6589 | + sni) |
| 6590 | + lt_cv_file_magic_cmd='/bin/file' |
| 6591 | + lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" |
| 6592 | + lt_cv_file_magic_test_file=/lib/libc.so |
| 6593 | + ;; |
| 6594 | + siemens) |
| 6595 | + lt_cv_deplibs_check_method=pass_all |
| 6596 | + ;; |
| 6597 | + pc) |
| 6598 | + lt_cv_deplibs_check_method=pass_all |
| 6599 | + ;; |
| 6600 | + esac |
| 6601 | + ;; |
| 6602 | + |
| 6603 | +tpf*) |
| 6604 | + lt_cv_deplibs_check_method=pass_all |
| 6605 | + ;; |
| 6606 | +esac |
| 6607 | +]) |
| 6608 | +file_magic_cmd=$lt_cv_file_magic_cmd |
| 6609 | +deplibs_check_method=$lt_cv_deplibs_check_method |
| 6610 | +test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 6611 | + |
| 6612 | +_LT_DECL([], [deplibs_check_method], [1], |
| 6613 | + [Method to check whether dependent libraries are shared objects]) |
| 6614 | +_LT_DECL([], [file_magic_cmd], [1], |
| 6615 | + [Command to use when deplibs_check_method == "file_magic"]) |
| 6616 | +])# _LT_CHECK_MAGIC_METHOD |
| 6617 | + |
| 6618 | + |
| 6619 | +# LT_PATH_NM |
| 6620 | +# ---------- |
| 6621 | +# find the pathname to a BSD- or MS-compatible name lister |
| 6622 | +AC_DEFUN([LT_PATH_NM], |
| 6623 | +[AC_REQUIRE([AC_PROG_CC])dnl |
| 6624 | +AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM, |
| 6625 | +[if test -n "$NM"; then |
| 6626 | + # Let the user override the test. |
| 6627 | + lt_cv_path_NM="$NM" |
| 6628 | +else |
| 6629 | + lt_nm_to_check="${ac_tool_prefix}nm" |
| 6630 | + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 6631 | + lt_nm_to_check="$lt_nm_to_check nm" |
| 6632 | + fi |
| 6633 | + for lt_tmp_nm in $lt_nm_to_check; do |
| 6634 | + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 6635 | + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 6636 | + IFS="$lt_save_ifs" |
| 6637 | + test -z "$ac_dir" && ac_dir=. |
| 6638 | + tmp_nm="$ac_dir/$lt_tmp_nm" |
| 6639 | + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 6640 | + # Check to see if the nm accepts a BSD-compat flag. |
| 6641 | + # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 6642 | + # nm: unknown option "B" ignored |
| 6643 | + # Tru64's nm complains that /dev/null is an invalid object file |
| 6644 | + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 6645 | + */dev/null* | *'Invalid file or object type'*) |
| 6646 | + lt_cv_path_NM="$tmp_nm -B" |
| 6647 | + break |
| 6648 | + ;; |
| 6649 | + *) |
| 6650 | + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 6651 | + */dev/null*) |
| 6652 | + lt_cv_path_NM="$tmp_nm -p" |
| 6653 | + break |
| 6654 | + ;; |
| 6655 | + *) |
| 6656 | + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 6657 | + continue # so that we can try to find one that supports BSD flags |
| 6658 | + ;; |
| 6659 | + esac |
| 6660 | + ;; |
| 6661 | + esac |
| 6662 | + fi |
| 6663 | + done |
| 6664 | + IFS="$lt_save_ifs" |
| 6665 | + done |
| 6666 | + : ${lt_cv_path_NM=no} |
| 6667 | +fi]) |
| 6668 | +if test "$lt_cv_path_NM" != "no"; then |
| 6669 | + NM="$lt_cv_path_NM" |
| 6670 | +else |
| 6671 | + # Didn't find any BSD compatible name lister, look for dumpbin. |
| 6672 | + AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :) |
| 6673 | + AC_SUBST([DUMPBIN]) |
| 6674 | + if test "$DUMPBIN" != ":"; then |
| 6675 | + NM="$DUMPBIN" |
| 6676 | + fi |
| 6677 | +fi |
| 6678 | +test -z "$NM" && NM=nm |
| 6679 | +AC_SUBST([NM]) |
| 6680 | +_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl |
| 6681 | + |
| 6682 | +AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], |
| 6683 | + [lt_cv_nm_interface="BSD nm" |
| 6684 | + echo "int some_variable = 0;" > conftest.$ac_ext |
| 6685 | + (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD) |
| 6686 | + (eval "$ac_compile" 2>conftest.err) |
| 6687 | + cat conftest.err >&AS_MESSAGE_LOG_FD |
| 6688 | + (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD) |
| 6689 | + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
| 6690 | + cat conftest.err >&AS_MESSAGE_LOG_FD |
| 6691 | + (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD) |
| 6692 | + cat conftest.out >&AS_MESSAGE_LOG_FD |
| 6693 | + if $GREP 'External.*some_variable' conftest.out > /dev/null; then |
| 6694 | + lt_cv_nm_interface="MS dumpbin" |
| 6695 | + fi |
| 6696 | + rm -f conftest*]) |
| 6697 | +])# LT_PATH_NM |
| 6698 | + |
| 6699 | +# Old names: |
| 6700 | +AU_ALIAS([AM_PROG_NM], [LT_PATH_NM]) |
| 6701 | +AU_ALIAS([AC_PROG_NM], [LT_PATH_NM]) |
| 6702 | +dnl aclocal-1.4 backwards compatibility: |
| 6703 | +dnl AC_DEFUN([AM_PROG_NM], []) |
| 6704 | +dnl AC_DEFUN([AC_PROG_NM], []) |
| 6705 | + |
| 6706 | + |
| 6707 | +# LT_LIB_M |
| 6708 | +# -------- |
| 6709 | +# check for math library |
| 6710 | +AC_DEFUN([LT_LIB_M], |
| 6711 | +[AC_REQUIRE([AC_CANONICAL_HOST])dnl |
| 6712 | +LIBM= |
| 6713 | +case $host in |
| 6714 | +*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) |
| 6715 | + # These system don't have libm, or don't need it |
| 6716 | + ;; |
| 6717 | +*-ncr-sysv4.3*) |
| 6718 | + AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") |
| 6719 | + AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") |
| 6720 | + ;; |
| 6721 | +*) |
| 6722 | + AC_CHECK_LIB(m, cos, LIBM="-lm") |
| 6723 | + ;; |
| 6724 | +esac |
| 6725 | +AC_SUBST([LIBM]) |
| 6726 | +])# LT_LIB_M |
| 6727 | + |
| 6728 | +# Old name: |
| 6729 | +AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M]) |
| 6730 | +dnl aclocal-1.4 backwards compatibility: |
| 6731 | +dnl AC_DEFUN([AC_CHECK_LIBM], []) |
| 6732 | + |
| 6733 | + |
| 6734 | +# _LT_COMPILER_NO_RTTI([TAGNAME]) |
| 6735 | +# ------------------------------- |
| 6736 | +m4_defun([_LT_COMPILER_NO_RTTI], |
| 6737 | +[m4_require([_LT_TAG_COMPILER])dnl |
| 6738 | + |
| 6739 | +_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= |
| 6740 | + |
| 6741 | +if test "$GCC" = yes; then |
| 6742 | + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' |
| 6743 | + |
| 6744 | + _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], |
| 6745 | + lt_cv_prog_compiler_rtti_exceptions, |
| 6746 | + [-fno-rtti -fno-exceptions], [], |
| 6747 | + [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) |
| 6748 | +fi |
| 6749 | +_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1], |
| 6750 | + [Compiler flag to turn off builtin functions]) |
| 6751 | +])# _LT_COMPILER_NO_RTTI |
| 6752 | + |
| 6753 | + |
| 6754 | +# _LT_CMD_GLOBAL_SYMBOLS |
| 6755 | +# ---------------------- |
| 6756 | +m4_defun([_LT_CMD_GLOBAL_SYMBOLS], |
| 6757 | +[AC_REQUIRE([AC_CANONICAL_HOST])dnl |
| 6758 | +AC_REQUIRE([AC_PROG_CC])dnl |
| 6759 | +AC_REQUIRE([LT_PATH_NM])dnl |
| 6760 | +AC_REQUIRE([LT_PATH_LD])dnl |
| 6761 | +m4_require([_LT_DECL_SED])dnl |
| 6762 | +m4_require([_LT_DECL_EGREP])dnl |
| 6763 | +m4_require([_LT_TAG_COMPILER])dnl |
| 6764 | + |
| 6765 | +# Check for command to grab the raw symbol name followed by C symbol from nm. |
| 6766 | +AC_MSG_CHECKING([command to parse $NM output from $compiler object]) |
| 6767 | +AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], |
| 6768 | +[ |
| 6769 | +# These are sane defaults that work on at least a few old systems. |
| 6770 | +# [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 6771 | + |
| 6772 | +# Character class describing NM global symbol codes. |
| 6773 | +symcode='[[BCDEGRST]]' |
| 6774 | + |
| 6775 | +# Regexp to match symbols that can be accessed directly from C. |
| 6776 | +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' |
| 6777 | + |
| 6778 | +# Define system-specific variables. |
| 6779 | +case $host_os in |
| 6780 | +aix*) |
| 6781 | + symcode='[[BCDT]]' |
| 6782 | + ;; |
| 6783 | +cygwin* | mingw* | pw32*) |
| 6784 | + symcode='[[ABCDGISTW]]' |
| 6785 | + ;; |
| 6786 | +hpux*) |
| 6787 | + if test "$host_cpu" = ia64; then |
| 6788 | + symcode='[[ABCDEGRST]]' |
| 6789 | + fi |
| 6790 | + ;; |
| 6791 | +irix* | nonstopux*) |
| 6792 | + symcode='[[BCDEGRST]]' |
| 6793 | + ;; |
| 6794 | +osf*) |
| 6795 | + symcode='[[BCDEGQRST]]' |
| 6796 | + ;; |
| 6797 | +solaris*) |
| 6798 | + symcode='[[BDRT]]' |
| 6799 | + ;; |
| 6800 | +sco3.2v5*) |
| 6801 | + symcode='[[DT]]' |
| 6802 | + ;; |
| 6803 | +sysv4.2uw2*) |
| 6804 | + symcode='[[DT]]' |
| 6805 | + ;; |
| 6806 | +sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 6807 | + symcode='[[ABDT]]' |
| 6808 | + ;; |
| 6809 | +sysv4) |
| 6810 | + symcode='[[DFNSTU]]' |
| 6811 | + ;; |
| 6812 | +esac |
| 6813 | + |
| 6814 | +# If we're using GNU nm, then use its standard symbol codes. |
| 6815 | +case `$NM -V 2>&1` in |
| 6816 | +*GNU* | *'with BFD'*) |
| 6817 | + symcode='[[ABCDGIRSTW]]' ;; |
| 6818 | +esac |
| 6819 | + |
| 6820 | +# Transform an extracted symbol line into a proper C declaration. |
| 6821 | +# Some systems (esp. on ia64) link data and code symbols differently, |
| 6822 | +# so use this general approach. |
| 6823 | +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 6824 | + |
| 6825 | +# Transform an extracted symbol line into symbol name and symbol address |
| 6826 | +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'" |
| 6827 | +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'" |
| 6828 | + |
| 6829 | +# Handle CRLF in mingw tool chain |
| 6830 | +opt_cr= |
| 6831 | +case $build_os in |
| 6832 | +mingw*) |
| 6833 | + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 6834 | + ;; |
| 6835 | +esac |
| 6836 | + |
| 6837 | +# Try without a prefix underscore, then with it. |
| 6838 | +for ac_symprfx in "" "_"; do |
| 6839 | + |
| 6840 | + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 6841 | + symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 6842 | + |
| 6843 | + # Write the raw and C identifiers. |
| 6844 | + if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 6845 | + # Fake it for dumpbin and say T for any non-static function |
| 6846 | + # and D for any global variable. |
| 6847 | + # Also find C++ and __fastcall symbols from MSVC++, |
| 6848 | + # which start with @ or ?. |
| 6849 | + lt_cv_sys_global_symbol_pipe="$AWK ['"\ |
| 6850 | +" {last_section=section; section=\$ 3};"\ |
| 6851 | +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
| 6852 | +" \$ 0!~/External *\|/{next};"\ |
| 6853 | +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ |
| 6854 | +" {if(hide[section]) next};"\ |
| 6855 | +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ |
| 6856 | +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ |
| 6857 | +" s[1]~/^[@?]/{print s[1], s[1]; next};"\ |
| 6858 | +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ |
| 6859 | +" ' prfx=^$ac_symprfx]" |
| 6860 | + else |
| 6861 | + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
| 6862 | + fi |
| 6863 | + |
| 6864 | + # Check to see that the pipe works correctly. |
| 6865 | + pipe_works=no |
| 6866 | + |
| 6867 | + rm -f conftest* |
| 6868 | + cat > conftest.$ac_ext <<_LT_EOF |
| 6869 | +#ifdef __cplusplus |
| 6870 | +extern "C" { |
| 6871 | +#endif |
| 6872 | +char nm_test_var; |
| 6873 | +void nm_test_func(void); |
| 6874 | +void nm_test_func(void){} |
| 6875 | +#ifdef __cplusplus |
| 6876 | +} |
| 6877 | +#endif |
| 6878 | +int main(){nm_test_var='a';nm_test_func();return(0);} |
| 6879 | +_LT_EOF |
| 6880 | + |
| 6881 | + if AC_TRY_EVAL(ac_compile); then |
| 6882 | + # Now try to grab the symbols. |
| 6883 | + nlist=conftest.nm |
| 6884 | + if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then |
| 6885 | + # Try sorting and uniquifying the output. |
| 6886 | + if sort "$nlist" | uniq > "$nlist"T; then |
| 6887 | + mv -f "$nlist"T "$nlist" |
| 6888 | + else |
| 6889 | + rm -f "$nlist"T |
| 6890 | + fi |
| 6891 | + |
| 6892 | + # Make sure that we snagged all the symbols we need. |
| 6893 | + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
| 6894 | + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then |
| 6895 | + cat <<_LT_EOF > conftest.$ac_ext |
| 6896 | +#ifdef __cplusplus |
| 6897 | +extern "C" { |
| 6898 | +#endif |
| 6899 | + |
| 6900 | +_LT_EOF |
| 6901 | + # Now generate the symbol file. |
| 6902 | + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' |
| 6903 | + |
| 6904 | + cat <<_LT_EOF >> conftest.$ac_ext |
| 6905 | + |
| 6906 | +/* The mapping between symbol names and symbols. */ |
| 6907 | +const struct { |
| 6908 | + const char *name; |
| 6909 | + void *address; |
| 6910 | +} |
| 6911 | +lt__PROGRAM__LTX_preloaded_symbols[[]] = |
| 6912 | +{ |
| 6913 | + { "@PROGRAM@", (void *) 0 }, |
| 6914 | +_LT_EOF |
| 6915 | + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
| 6916 | + cat <<\_LT_EOF >> conftest.$ac_ext |
| 6917 | + {0, (void *) 0} |
| 6918 | +}; |
| 6919 | + |
| 6920 | +/* This works around a problem in FreeBSD linker */ |
| 6921 | +#ifdef FREEBSD_WORKAROUND |
| 6922 | +static const void *lt_preloaded_setup() { |
| 6923 | + return lt__PROGRAM__LTX_preloaded_symbols; |
| 6924 | +} |
| 6925 | +#endif |
| 6926 | + |
| 6927 | +#ifdef __cplusplus |
| 6928 | +} |
| 6929 | +#endif |
| 6930 | +_LT_EOF |
| 6931 | + # Now try linking the two files. |
| 6932 | + mv conftest.$ac_objext conftstm.$ac_objext |
| 6933 | + lt_save_LIBS="$LIBS" |
| 6934 | + lt_save_CFLAGS="$CFLAGS" |
| 6935 | + LIBS="conftstm.$ac_objext" |
| 6936 | + CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" |
| 6937 | + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then |
| 6938 | + pipe_works=yes |
| 6939 | + fi |
| 6940 | + LIBS="$lt_save_LIBS" |
| 6941 | + CFLAGS="$lt_save_CFLAGS" |
| 6942 | + else |
| 6943 | + echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD |
| 6944 | + fi |
| 6945 | + else |
| 6946 | + echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD |
| 6947 | + fi |
| 6948 | + else |
| 6949 | + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD |
| 6950 | + fi |
| 6951 | + else |
| 6952 | + echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD |
| 6953 | + cat conftest.$ac_ext >&5 |
| 6954 | + fi |
| 6955 | + rm -rf conftest* conftst* |
| 6956 | |
| 6957 | - if test "$pre_test_object_deps_done" = no; then |
| 6958 | - case $p in |
| 6959 | - -L* | -R*) |
| 6960 | - # Internal compiler library paths should come after those |
| 6961 | - # provided the user. The postdeps already come after the |
| 6962 | - # user supplied libs so there is no need to process them. |
| 6963 | - if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then |
| 6964 | - _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}" |
| 6965 | - else |
| 6966 | - _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}" |
| 6967 | - fi |
| 6968 | - ;; |
| 6969 | - # The "-l" case would never come before the object being |
| 6970 | - # linked, so don't bother handling this case. |
| 6971 | - esac |
| 6972 | - else |
| 6973 | - if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then |
| 6974 | - _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}" |
| 6975 | - else |
| 6976 | - _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}" |
| 6977 | - fi |
| 6978 | - fi |
| 6979 | - ;; |
| 6980 | + # Do not use the global_symbol_pipe unless it works. |
| 6981 | + if test "$pipe_works" = yes; then |
| 6982 | + break |
| 6983 | + else |
| 6984 | + lt_cv_sys_global_symbol_pipe= |
| 6985 | + fi |
| 6986 | +done |
| 6987 | +]) |
| 6988 | +if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 6989 | + lt_cv_sys_global_symbol_to_cdecl= |
| 6990 | +fi |
| 6991 | +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
| 6992 | + AC_MSG_RESULT(failed) |
| 6993 | +else |
| 6994 | + AC_MSG_RESULT(ok) |
| 6995 | +fi |
| 6996 | |
| 6997 | - *.$objext) |
| 6998 | - # This assumes that the test object file only shows up |
| 6999 | - # once in the compiler output. |
| 7000 | - if test "$p" = "conftest.$objext"; then |
| 7001 | - pre_test_object_deps_done=yes |
| 7002 | - continue |
| 7003 | - fi |
| 7004 | +_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], |
| 7005 | + [Take the output of nm and produce a listing of raw symbols and C names]) |
| 7006 | +_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], |
| 7007 | + [Transform the output of nm in a proper C declaration]) |
| 7008 | +_LT_DECL([global_symbol_to_c_name_address], |
| 7009 | + [lt_cv_sys_global_symbol_to_c_name_address], [1], |
| 7010 | + [Transform the output of nm in a C name address pair]) |
| 7011 | +_LT_DECL([global_symbol_to_c_name_address_lib_prefix], |
| 7012 | + [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], |
| 7013 | + [Transform the output of nm in a C name address pair when lib prefix is needed]) |
| 7014 | +]) # _LT_CMD_GLOBAL_SYMBOLS |
| 7015 | |
| 7016 | - if test "$pre_test_object_deps_done" = no; then |
| 7017 | - if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then |
| 7018 | - _LT_AC_TAGVAR(predep_objects, $1)="$p" |
| 7019 | - else |
| 7020 | - _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p" |
| 7021 | - fi |
| 7022 | - else |
| 7023 | - if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then |
| 7024 | - _LT_AC_TAGVAR(postdep_objects, $1)="$p" |
| 7025 | - else |
| 7026 | - _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p" |
| 7027 | - fi |
| 7028 | - fi |
| 7029 | - ;; |
| 7030 | |
| 7031 | - *) ;; # Ignore the rest. |
| 7032 | +# _LT_COMPILER_PIC([TAGNAME]) |
| 7033 | +# --------------------------- |
| 7034 | +m4_defun([_LT_COMPILER_PIC], |
| 7035 | +[m4_require([_LT_TAG_COMPILER])dnl |
| 7036 | +_LT_TAGVAR(lt_prog_compiler_wl, $1)= |
| 7037 | +_LT_TAGVAR(lt_prog_compiler_pic, $1)= |
| 7038 | +_LT_TAGVAR(lt_prog_compiler_static, $1)= |
| 7039 | + |
| 7040 | +AC_MSG_CHECKING([for $compiler option to produce PIC]) |
| 7041 | +m4_if([$1], [CXX], [ |
| 7042 | + # C++ specific cases for pic, static, wl, etc. |
| 7043 | + if test "$GXX" = yes; then |
| 7044 | + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 7045 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' |
| 7046 | |
| 7047 | + case $host_os in |
| 7048 | + aix*) |
| 7049 | + # All AIX code is PIC. |
| 7050 | + if test "$host_cpu" = ia64; then |
| 7051 | + # AIX 5 now supports IA64 processor |
| 7052 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 7053 | + fi |
| 7054 | + ;; |
| 7055 | + |
| 7056 | + amigaos*) |
| 7057 | + case $host_cpu in |
| 7058 | + powerpc) |
| 7059 | + # see comment about AmigaOS4 .so support |
| 7060 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
| 7061 | + ;; |
| 7062 | + m68k) |
| 7063 | + # FIXME: we need at least 68020 code to build shared libraries, but |
| 7064 | + # adding the `-m68020' flag to GCC prevents building anything better, |
| 7065 | + # like `-m68040'. |
| 7066 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' |
| 7067 | + ;; |
| 7068 | + esac |
| 7069 | + ;; |
| 7070 | + |
| 7071 | + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 7072 | + # PIC is the default for these OSes. |
| 7073 | + ;; |
| 7074 | + mingw* | cygwin* | os2* | pw32*) |
| 7075 | + # This hack is so that the source file can tell whether it is being |
| 7076 | + # built for inclusion in a dll (and should export symbols for example). |
| 7077 | + # Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 7078 | + # (--disable-auto-import) libraries |
| 7079 | + m4_if([$1], [GCJ], [], |
| 7080 | + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) |
| 7081 | + ;; |
| 7082 | + darwin* | rhapsody*) |
| 7083 | + # PIC is the default on this platform |
| 7084 | + # Common symbols not allowed in MH_DYLIB files |
| 7085 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' |
| 7086 | + ;; |
| 7087 | + *djgpp*) |
| 7088 | + # DJGPP does not support shared libraries at all |
| 7089 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)= |
| 7090 | + ;; |
| 7091 | + interix[[3-9]]*) |
| 7092 | + # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 7093 | + # Instead, we relocate shared libraries at runtime. |
| 7094 | + ;; |
| 7095 | + sysv4*MP*) |
| 7096 | + if test -d /usr/nec; then |
| 7097 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic |
| 7098 | + fi |
| 7099 | + ;; |
| 7100 | + hpux*) |
| 7101 | + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 7102 | + # not for PA HP-UX. |
| 7103 | + case $host_cpu in |
| 7104 | + hppa*64*|ia64*) |
| 7105 | + ;; |
| 7106 | + *) |
| 7107 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
| 7108 | + ;; |
| 7109 | + esac |
| 7110 | + ;; |
| 7111 | + *qnx* | *nto*) |
| 7112 | + # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 7113 | + # it will coredump. |
| 7114 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' |
| 7115 | + ;; |
| 7116 | + *) |
| 7117 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
| 7118 | + ;; |
| 7119 | + esac |
| 7120 | + else |
| 7121 | + case $host_os in |
| 7122 | + aix[[4-9]]*) |
| 7123 | + # All AIX code is PIC. |
| 7124 | + if test "$host_cpu" = ia64; then |
| 7125 | + # AIX 5 now supports IA64 processor |
| 7126 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 7127 | + else |
| 7128 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' |
| 7129 | + fi |
| 7130 | + ;; |
| 7131 | + chorus*) |
| 7132 | + case $cc_basename in |
| 7133 | + cxch68*) |
| 7134 | + # Green Hills C++ Compiler |
| 7135 | + # _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" |
| 7136 | + ;; |
| 7137 | + esac |
| 7138 | + ;; |
| 7139 | + dgux*) |
| 7140 | + case $cc_basename in |
| 7141 | + ec++*) |
| 7142 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 7143 | + ;; |
| 7144 | + ghcx*) |
| 7145 | + # Green Hills C++ Compiler |
| 7146 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
| 7147 | + ;; |
| 7148 | + *) |
| 7149 | + ;; |
| 7150 | + esac |
| 7151 | + ;; |
| 7152 | + freebsd* | dragonfly*) |
| 7153 | + # FreeBSD uses GNU C++ |
| 7154 | + ;; |
| 7155 | + hpux9* | hpux10* | hpux11*) |
| 7156 | + case $cc_basename in |
| 7157 | + CC*) |
| 7158 | + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 7159 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' |
| 7160 | + if test "$host_cpu" != ia64; then |
| 7161 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' |
| 7162 | + fi |
| 7163 | + ;; |
| 7164 | + aCC*) |
| 7165 | + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 7166 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' |
| 7167 | + case $host_cpu in |
| 7168 | + hppa*64*|ia64*) |
| 7169 | + # +Z the default |
| 7170 | + ;; |
| 7171 | + *) |
| 7172 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' |
| 7173 | + ;; |
| 7174 | + esac |
| 7175 | + ;; |
| 7176 | + *) |
| 7177 | + ;; |
| 7178 | + esac |
| 7179 | + ;; |
| 7180 | + interix*) |
| 7181 | + # This is c89, which is MS Visual C++ (no shared libs) |
| 7182 | + # Anyone wants to do a port? |
| 7183 | + ;; |
| 7184 | + irix5* | irix6* | nonstopux*) |
| 7185 | + case $cc_basename in |
| 7186 | + CC*) |
| 7187 | + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 7188 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
| 7189 | + # CC pic flag -KPIC is the default. |
| 7190 | + ;; |
| 7191 | + *) |
| 7192 | + ;; |
| 7193 | + esac |
| 7194 | + ;; |
| 7195 | + linux* | k*bsd*-gnu) |
| 7196 | + case $cc_basename in |
| 7197 | + KCC*) |
| 7198 | + # KAI C++ Compiler |
| 7199 | + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' |
| 7200 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
| 7201 | + ;; |
| 7202 | + icpc* | ecpc* ) |
| 7203 | + # Intel C++ |
| 7204 | + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 7205 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 7206 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' |
| 7207 | + ;; |
| 7208 | + pgCC* | pgcpp*) |
| 7209 | + # Portland Group C++ compiler |
| 7210 | + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 7211 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' |
| 7212 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 7213 | + ;; |
| 7214 | + cxx*) |
| 7215 | + # Compaq C++ |
| 7216 | + # Make sure the PIC flag is empty. It appears that all Alpha |
| 7217 | + # Linux and Compaq Tru64 Unix objects are PIC. |
| 7218 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)= |
| 7219 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
| 7220 | + ;; |
| 7221 | + xlc* | xlC*) |
| 7222 | + # IBM XL 8.0 on PPC |
| 7223 | + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 7224 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' |
| 7225 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' |
| 7226 | + ;; |
| 7227 | + *) |
| 7228 | + case `$CC -V 2>&1 | sed 5q` in |
| 7229 | + *Sun\ C*) |
| 7230 | + # Sun C++ 5.9 |
| 7231 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 7232 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 7233 | + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' |
| 7234 | + ;; |
| 7235 | + esac |
| 7236 | + ;; |
| 7237 | + esac |
| 7238 | + ;; |
| 7239 | + lynxos*) |
| 7240 | + ;; |
| 7241 | + m88k*) |
| 7242 | + ;; |
| 7243 | + mvs*) |
| 7244 | + case $cc_basename in |
| 7245 | + cxx*) |
| 7246 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' |
| 7247 | + ;; |
| 7248 | + *) |
| 7249 | + ;; |
| 7250 | + esac |
| 7251 | + ;; |
| 7252 | + netbsd*) |
| 7253 | + ;; |
| 7254 | + *qnx* | *nto*) |
| 7255 | + # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 7256 | + # it will coredump. |
| 7257 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' |
| 7258 | + ;; |
| 7259 | + osf3* | osf4* | osf5*) |
| 7260 | + case $cc_basename in |
| 7261 | + KCC*) |
| 7262 | + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' |
| 7263 | + ;; |
| 7264 | + RCC*) |
| 7265 | + # Rational C++ 2.4.1 |
| 7266 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
| 7267 | + ;; |
| 7268 | + cxx*) |
| 7269 | + # Digital/Compaq C++ |
| 7270 | + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 7271 | + # Make sure the PIC flag is empty. It appears that all Alpha |
| 7272 | + # Linux and Compaq Tru64 Unix objects are PIC. |
| 7273 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)= |
| 7274 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
| 7275 | + ;; |
| 7276 | + *) |
| 7277 | + ;; |
| 7278 | + esac |
| 7279 | + ;; |
| 7280 | + psos*) |
| 7281 | + ;; |
| 7282 | + solaris*) |
| 7283 | + case $cc_basename in |
| 7284 | + CC*) |
| 7285 | + # Sun C++ 4.2, 5.x and Centerline C++ |
| 7286 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 7287 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 7288 | + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' |
| 7289 | + ;; |
| 7290 | + gcx*) |
| 7291 | + # Green Hills C++ Compiler |
| 7292 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' |
| 7293 | + ;; |
| 7294 | + *) |
| 7295 | + ;; |
| 7296 | + esac |
| 7297 | + ;; |
| 7298 | + sunos4*) |
| 7299 | + case $cc_basename in |
| 7300 | + CC*) |
| 7301 | + # Sun C++ 4.x |
| 7302 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
| 7303 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 7304 | + ;; |
| 7305 | + lcc*) |
| 7306 | + # Lucid |
| 7307 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
| 7308 | + ;; |
| 7309 | + *) |
| 7310 | + ;; |
| 7311 | + esac |
| 7312 | + ;; |
| 7313 | + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 7314 | + case $cc_basename in |
| 7315 | + CC*) |
| 7316 | + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 7317 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 7318 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 7319 | + ;; |
| 7320 | + esac |
| 7321 | + ;; |
| 7322 | + tandem*) |
| 7323 | + case $cc_basename in |
| 7324 | + NCC*) |
| 7325 | + # NonStop-UX NCC 3.20 |
| 7326 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 7327 | + ;; |
| 7328 | + *) |
| 7329 | + ;; |
| 7330 | + esac |
| 7331 | + ;; |
| 7332 | + vxworks*) |
| 7333 | + ;; |
| 7334 | + *) |
| 7335 | + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no |
| 7336 | + ;; |
| 7337 | esac |
| 7338 | - done |
| 7339 | - |
| 7340 | - # Clean up. |
| 7341 | - rm -f a.out a.exe |
| 7342 | -else |
| 7343 | - echo "libtool.m4: error: problem compiling $1 test program" |
| 7344 | -fi |
| 7345 | - |
| 7346 | -$rm -f confest.$objext |
| 7347 | - |
| 7348 | -# PORTME: override above test on systems where it is broken |
| 7349 | -ifelse([$1],[CXX], |
| 7350 | -[case $host_os in |
| 7351 | -interix3*) |
| 7352 | - # Interix 3.5 installs completely hosed .la files for C++, so rather than |
| 7353 | - # hack all around it, let's just trust "g++" to DTRT. |
| 7354 | - _LT_AC_TAGVAR(predep_objects,$1)= |
| 7355 | - _LT_AC_TAGVAR(postdep_objects,$1)= |
| 7356 | - _LT_AC_TAGVAR(postdeps,$1)= |
| 7357 | - ;; |
| 7358 | - |
| 7359 | -linux*) |
| 7360 | - case `$CC -V 2>&1 | sed 5q` in |
| 7361 | - *Sun\ C*) |
| 7362 | - # Sun C++ 5.9 |
| 7363 | - _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun' |
| 7364 | - ;; |
| 7365 | - esac |
| 7366 | - ;; |
| 7367 | - |
| 7368 | -solaris*) |
| 7369 | - case $cc_basename in |
| 7370 | - CC*) |
| 7371 | - # Adding this requires a known-good setup of shared libraries for |
| 7372 | - # Sun compiler versions before 5.6, else PIC objects from an old |
| 7373 | - # archive will be linked into the output, leading to subtle bugs. |
| 7374 | - _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun' |
| 7375 | - ;; |
| 7376 | - esac |
| 7377 | - ;; |
| 7378 | -esac |
| 7379 | -]) |
| 7380 | - |
| 7381 | -case " $_LT_AC_TAGVAR(postdeps, $1) " in |
| 7382 | -*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;; |
| 7383 | -esac |
| 7384 | -])# AC_LIBTOOL_POSTDEP_PREDEP |
| 7385 | - |
| 7386 | -# AC_LIBTOOL_LANG_F77_CONFIG |
| 7387 | -# -------------------------- |
| 7388 | -# Ensure that the configuration vars for the C compiler are |
| 7389 | -# suitably defined. Those variables are subsequently used by |
| 7390 | -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. |
| 7391 | -AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)]) |
| 7392 | -AC_DEFUN([_LT_AC_LANG_F77_CONFIG], |
| 7393 | -[AC_REQUIRE([AC_PROG_F77]) |
| 7394 | -AC_LANG_PUSH(Fortran 77) |
| 7395 | - |
| 7396 | -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
| 7397 | -_LT_AC_TAGVAR(allow_undefined_flag, $1)= |
| 7398 | -_LT_AC_TAGVAR(always_export_symbols, $1)=no |
| 7399 | -_LT_AC_TAGVAR(archive_expsym_cmds, $1)= |
| 7400 | -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= |
| 7401 | -_LT_AC_TAGVAR(hardcode_direct, $1)=no |
| 7402 | -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= |
| 7403 | -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= |
| 7404 | -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)= |
| 7405 | -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no |
| 7406 | -_LT_AC_TAGVAR(hardcode_automatic, $1)=no |
| 7407 | -_LT_AC_TAGVAR(module_cmds, $1)= |
| 7408 | -_LT_AC_TAGVAR(module_expsym_cmds, $1)= |
| 7409 | -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown |
| 7410 | -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds |
| 7411 | -_LT_AC_TAGVAR(no_undefined_flag, $1)= |
| 7412 | -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)= |
| 7413 | -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no |
| 7414 | - |
| 7415 | -# Source file extension for f77 test sources. |
| 7416 | -ac_ext=f |
| 7417 | - |
| 7418 | -# Object file extension for compiled f77 test sources. |
| 7419 | -objext=o |
| 7420 | -_LT_AC_TAGVAR(objext, $1)=$objext |
| 7421 | - |
| 7422 | -# Code to be used in simple compile tests |
| 7423 | -lt_simple_compile_test_code=" subroutine t\n return\n end\n" |
| 7424 | - |
| 7425 | -# Code to be used in simple link tests |
| 7426 | -lt_simple_link_test_code=" program t\n end\n" |
| 7427 | - |
| 7428 | -# ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 7429 | -_LT_AC_SYS_COMPILER |
| 7430 | - |
| 7431 | -# save warnings/boilerplate of simple test code |
| 7432 | -_LT_COMPILER_BOILERPLATE |
| 7433 | -_LT_LINKER_BOILERPLATE |
| 7434 | - |
| 7435 | -# Allow CC to be a program name with arguments. |
| 7436 | -lt_save_CC="$CC" |
| 7437 | -CC=${F77-"f77"} |
| 7438 | -compiler=$CC |
| 7439 | -_LT_AC_TAGVAR(compiler, $1)=$CC |
| 7440 | -_LT_CC_BASENAME([$compiler]) |
| 7441 | - |
| 7442 | -AC_MSG_CHECKING([if libtool supports shared libraries]) |
| 7443 | -AC_MSG_RESULT([$can_build_shared]) |
| 7444 | - |
| 7445 | -AC_MSG_CHECKING([whether to build shared libraries]) |
| 7446 | -test "$can_build_shared" = "no" && enable_shared=no |
| 7447 | - |
| 7448 | -# On AIX, shared libraries and static libraries use the same namespace, and |
| 7449 | -# are all built from PIC. |
| 7450 | -case $host_os in |
| 7451 | -aix3*) |
| 7452 | - test "$enable_shared" = yes && enable_static=no |
| 7453 | - if test -n "$RANLIB"; then |
| 7454 | - archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 7455 | - postinstall_cmds='$RANLIB $lib' |
| 7456 | fi |
| 7457 | - ;; |
| 7458 | -aix4* | aix5*) |
| 7459 | - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 7460 | - test "$enable_shared" = yes && enable_static=no |
| 7461 | - fi |
| 7462 | - ;; |
| 7463 | -esac |
| 7464 | -AC_MSG_RESULT([$enable_shared]) |
| 7465 | - |
| 7466 | -AC_MSG_CHECKING([whether to build static libraries]) |
| 7467 | -# Make sure either enable_shared or enable_static is yes. |
| 7468 | -test "$enable_shared" = yes || enable_static=yes |
| 7469 | -AC_MSG_RESULT([$enable_static]) |
| 7470 | - |
| 7471 | -_LT_AC_TAGVAR(GCC, $1)="$G77" |
| 7472 | -_LT_AC_TAGVAR(LD, $1)="$LD" |
| 7473 | - |
| 7474 | -AC_LIBTOOL_PROG_COMPILER_PIC($1) |
| 7475 | -AC_LIBTOOL_PROG_CC_C_O($1) |
| 7476 | -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) |
| 7477 | -AC_LIBTOOL_PROG_LD_SHLIBS($1) |
| 7478 | -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) |
| 7479 | -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) |
| 7480 | - |
| 7481 | -AC_LIBTOOL_CONFIG($1) |
| 7482 | - |
| 7483 | -AC_LANG_POP |
| 7484 | -CC="$lt_save_CC" |
| 7485 | -])# AC_LIBTOOL_LANG_F77_CONFIG |
| 7486 | - |
| 7487 | - |
| 7488 | -# AC_LIBTOOL_LANG_GCJ_CONFIG |
| 7489 | -# -------------------------- |
| 7490 | -# Ensure that the configuration vars for the C compiler are |
| 7491 | -# suitably defined. Those variables are subsequently used by |
| 7492 | -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. |
| 7493 | -AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)]) |
| 7494 | -AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG], |
| 7495 | -[AC_LANG_SAVE |
| 7496 | - |
| 7497 | -# Source file extension for Java test sources. |
| 7498 | -ac_ext=java |
| 7499 | +], |
| 7500 | +[ |
| 7501 | + if test "$GCC" = yes; then |
| 7502 | + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 7503 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' |
| 7504 | |
| 7505 | -# Object file extension for compiled Java test sources. |
| 7506 | -objext=o |
| 7507 | -_LT_AC_TAGVAR(objext, $1)=$objext |
| 7508 | + case $host_os in |
| 7509 | + aix*) |
| 7510 | + # All AIX code is PIC. |
| 7511 | + if test "$host_cpu" = ia64; then |
| 7512 | + # AIX 5 now supports IA64 processor |
| 7513 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 7514 | + fi |
| 7515 | + ;; |
| 7516 | |
| 7517 | -# Code to be used in simple compile tests |
| 7518 | -lt_simple_compile_test_code="class foo {}\n" |
| 7519 | + amigaos*) |
| 7520 | + case $host_cpu in |
| 7521 | + powerpc) |
| 7522 | + # see comment about AmigaOS4 .so support |
| 7523 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
| 7524 | + ;; |
| 7525 | + m68k) |
| 7526 | + # FIXME: we need at least 68020 code to build shared libraries, but |
| 7527 | + # adding the `-m68020' flag to GCC prevents building anything better, |
| 7528 | + # like `-m68040'. |
| 7529 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' |
| 7530 | + ;; |
| 7531 | + esac |
| 7532 | + ;; |
| 7533 | |
| 7534 | -# Code to be used in simple link tests |
| 7535 | -lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n' |
| 7536 | + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 7537 | + # PIC is the default for these OSes. |
| 7538 | + ;; |
| 7539 | |
| 7540 | -# ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 7541 | -_LT_AC_SYS_COMPILER |
| 7542 | + mingw* | cygwin* | pw32* | os2*) |
| 7543 | + # This hack is so that the source file can tell whether it is being |
| 7544 | + # built for inclusion in a dll (and should export symbols for example). |
| 7545 | + # Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 7546 | + # (--disable-auto-import) libraries |
| 7547 | + m4_if([$1], [GCJ], [], |
| 7548 | + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) |
| 7549 | + ;; |
| 7550 | |
| 7551 | -# save warnings/boilerplate of simple test code |
| 7552 | -_LT_COMPILER_BOILERPLATE |
| 7553 | -_LT_LINKER_BOILERPLATE |
| 7554 | + darwin* | rhapsody*) |
| 7555 | + # PIC is the default on this platform |
| 7556 | + # Common symbols not allowed in MH_DYLIB files |
| 7557 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' |
| 7558 | + ;; |
| 7559 | |
| 7560 | -# Allow CC to be a program name with arguments. |
| 7561 | -lt_save_CC="$CC" |
| 7562 | -CC=${GCJ-"gcj"} |
| 7563 | -compiler=$CC |
| 7564 | -_LT_AC_TAGVAR(compiler, $1)=$CC |
| 7565 | -_LT_CC_BASENAME([$compiler]) |
| 7566 | + hpux*) |
| 7567 | + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 7568 | + # not for PA HP-UX. |
| 7569 | + case $host_cpu in |
| 7570 | + hppa*64*|ia64*) |
| 7571 | + # +Z the default |
| 7572 | + ;; |
| 7573 | + *) |
| 7574 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
| 7575 | + ;; |
| 7576 | + esac |
| 7577 | + ;; |
| 7578 | |
| 7579 | -# GCJ did not exist at the time GCC didn't implicitly link libc in. |
| 7580 | -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
| 7581 | + interix[[3-9]]*) |
| 7582 | + # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 7583 | + # Instead, we relocate shared libraries at runtime. |
| 7584 | + ;; |
| 7585 | |
| 7586 | -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds |
| 7587 | + msdosdjgpp*) |
| 7588 | + # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 7589 | + # on systems that don't support them. |
| 7590 | + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no |
| 7591 | + enable_shared=no |
| 7592 | + ;; |
| 7593 | |
| 7594 | -## CAVEAT EMPTOR: |
| 7595 | -## There is no encapsulation within the following macros, do not change |
| 7596 | -## the running order or otherwise move them around unless you know exactly |
| 7597 | -## what you are doing... |
| 7598 | -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) |
| 7599 | -AC_LIBTOOL_PROG_COMPILER_PIC($1) |
| 7600 | -AC_LIBTOOL_PROG_CC_C_O($1) |
| 7601 | -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) |
| 7602 | -AC_LIBTOOL_PROG_LD_SHLIBS($1) |
| 7603 | -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) |
| 7604 | -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) |
| 7605 | + *nto* | *qnx*) |
| 7606 | + # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 7607 | + # it will coredump. |
| 7608 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' |
| 7609 | + ;; |
| 7610 | |
| 7611 | -AC_LIBTOOL_CONFIG($1) |
| 7612 | + sysv4*MP*) |
| 7613 | + if test -d /usr/nec; then |
| 7614 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic |
| 7615 | + fi |
| 7616 | + ;; |
| 7617 | |
| 7618 | -AC_LANG_RESTORE |
| 7619 | -CC="$lt_save_CC" |
| 7620 | -])# AC_LIBTOOL_LANG_GCJ_CONFIG |
| 7621 | + *) |
| 7622 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
| 7623 | + ;; |
| 7624 | + esac |
| 7625 | + else |
| 7626 | + # PORTME Check for flag to pass linker flags through the system compiler. |
| 7627 | + case $host_os in |
| 7628 | + aix*) |
| 7629 | + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 7630 | + if test "$host_cpu" = ia64; then |
| 7631 | + # AIX 5 now supports IA64 processor |
| 7632 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 7633 | + else |
| 7634 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' |
| 7635 | + fi |
| 7636 | + ;; |
| 7637 | |
| 7638 | + mingw* | cygwin* | pw32* | os2*) |
| 7639 | + # This hack is so that the source file can tell whether it is being |
| 7640 | + # built for inclusion in a dll (and should export symbols for example). |
| 7641 | + m4_if([$1], [GCJ], [], |
| 7642 | + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) |
| 7643 | + ;; |
| 7644 | |
| 7645 | -# AC_LIBTOOL_LANG_RC_CONFIG |
| 7646 | -# ------------------------- |
| 7647 | -# Ensure that the configuration vars for the Windows resource compiler are |
| 7648 | -# suitably defined. Those variables are subsequently used by |
| 7649 | -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. |
| 7650 | -AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)]) |
| 7651 | -AC_DEFUN([_LT_AC_LANG_RC_CONFIG], |
| 7652 | -[AC_LANG_SAVE |
| 7653 | + hpux9* | hpux10* | hpux11*) |
| 7654 | + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 7655 | + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 7656 | + # not for PA HP-UX. |
| 7657 | + case $host_cpu in |
| 7658 | + hppa*64*|ia64*) |
| 7659 | + # +Z the default |
| 7660 | + ;; |
| 7661 | + *) |
| 7662 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' |
| 7663 | + ;; |
| 7664 | + esac |
| 7665 | + # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 7666 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' |
| 7667 | + ;; |
| 7668 | |
| 7669 | -# Source file extension for RC test sources. |
| 7670 | -ac_ext=rc |
| 7671 | + irix5* | irix6* | nonstopux*) |
| 7672 | + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 7673 | + # PIC (with -KPIC) is the default. |
| 7674 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
| 7675 | + ;; |
| 7676 | |
| 7677 | -# Object file extension for compiled RC test sources. |
| 7678 | -objext=o |
| 7679 | -_LT_AC_TAGVAR(objext, $1)=$objext |
| 7680 | + linux* | k*bsd*-gnu) |
| 7681 | + case $cc_basename in |
| 7682 | + icc* | ecc* | ifort*) |
| 7683 | + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 7684 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 7685 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' |
| 7686 | + ;; |
| 7687 | + pgcc* | pgf77* | pgf90* | pgf95*) |
| 7688 | + # Portland Group compilers (*not* the Pentium gcc compiler, |
| 7689 | + # which looks to be a dead project) |
| 7690 | + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 7691 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' |
| 7692 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 7693 | + ;; |
| 7694 | + ccc*) |
| 7695 | + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 7696 | + # All Alpha code is PIC. |
| 7697 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
| 7698 | + ;; |
| 7699 | + xl*) |
| 7700 | + # IBM XL C 8.0/Fortran 10.1 on PPC |
| 7701 | + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 7702 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' |
| 7703 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' |
| 7704 | + ;; |
| 7705 | + *) |
| 7706 | + case `$CC -V 2>&1 | sed 5q` in |
| 7707 | + *Sun\ C*) |
| 7708 | + # Sun C 5.9 |
| 7709 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 7710 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 7711 | + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 7712 | + ;; |
| 7713 | + *Sun\ F*) |
| 7714 | + # Sun Fortran 8.3 passes all unrecognized flags to the linker |
| 7715 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 7716 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 7717 | + _LT_TAGVAR(lt_prog_compiler_wl, $1)='' |
| 7718 | + ;; |
| 7719 | + esac |
| 7720 | + ;; |
| 7721 | + esac |
| 7722 | + ;; |
| 7723 | |
| 7724 | -# Code to be used in simple compile tests |
| 7725 | -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' |
| 7726 | + newsos6) |
| 7727 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 7728 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 7729 | + ;; |
| 7730 | |
| 7731 | -# Code to be used in simple link tests |
| 7732 | -lt_simple_link_test_code="$lt_simple_compile_test_code" |
| 7733 | + *nto* | *qnx*) |
| 7734 | + # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 7735 | + # it will coredump. |
| 7736 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' |
| 7737 | + ;; |
| 7738 | |
| 7739 | -# ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 7740 | -_LT_AC_SYS_COMPILER |
| 7741 | + osf3* | osf4* | osf5*) |
| 7742 | + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 7743 | + # All OSF/1 code is PIC. |
| 7744 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
| 7745 | + ;; |
| 7746 | |
| 7747 | -# save warnings/boilerplate of simple test code |
| 7748 | -_LT_COMPILER_BOILERPLATE |
| 7749 | -_LT_LINKER_BOILERPLATE |
| 7750 | + rdos*) |
| 7751 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
| 7752 | + ;; |
| 7753 | |
| 7754 | -# Allow CC to be a program name with arguments. |
| 7755 | -lt_save_CC="$CC" |
| 7756 | -CC=${RC-"windres"} |
| 7757 | -compiler=$CC |
| 7758 | -_LT_AC_TAGVAR(compiler, $1)=$CC |
| 7759 | -_LT_CC_BASENAME([$compiler]) |
| 7760 | -_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes |
| 7761 | + solaris*) |
| 7762 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 7763 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 7764 | + case $cc_basename in |
| 7765 | + f77* | f90* | f95*) |
| 7766 | + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; |
| 7767 | + *) |
| 7768 | + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; |
| 7769 | + esac |
| 7770 | + ;; |
| 7771 | |
| 7772 | -AC_LIBTOOL_CONFIG($1) |
| 7773 | + sunos4*) |
| 7774 | + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' |
| 7775 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' |
| 7776 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 7777 | + ;; |
| 7778 | |
| 7779 | -AC_LANG_RESTORE |
| 7780 | -CC="$lt_save_CC" |
| 7781 | -])# AC_LIBTOOL_LANG_RC_CONFIG |
| 7782 | + sysv4 | sysv4.2uw2* | sysv4.3*) |
| 7783 | + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 7784 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 7785 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 7786 | + ;; |
| 7787 | + |
| 7788 | + sysv4*MP*) |
| 7789 | + if test -d /usr/nec ;then |
| 7790 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' |
| 7791 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 7792 | + fi |
| 7793 | + ;; |
| 7794 | |
| 7795 | + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 7796 | + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 7797 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 7798 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 7799 | + ;; |
| 7800 | |
| 7801 | -# AC_LIBTOOL_CONFIG([TAGNAME]) |
| 7802 | -# ---------------------------- |
| 7803 | -# If TAGNAME is not passed, then create an initial libtool script |
| 7804 | -# with a default configuration from the untagged config vars. Otherwise |
| 7805 | -# add code to config.status for appending the configuration named by |
| 7806 | -# TAGNAME from the matching tagged config vars. |
| 7807 | -AC_DEFUN([AC_LIBTOOL_CONFIG], |
| 7808 | -[# The else clause should only fire when bootstrapping the |
| 7809 | -# libtool distribution, otherwise you forgot to ship ltmain.sh |
| 7810 | -# with your package, and you will get complaints that there are |
| 7811 | -# no rules to generate ltmain.sh. |
| 7812 | -if test -f "$ltmain"; then |
| 7813 | - # See if we are running on zsh, and set the options which allow our commands through |
| 7814 | - # without removal of \ escapes. |
| 7815 | - if test -n "${ZSH_VERSION+set}" ; then |
| 7816 | - setopt NO_GLOB_SUBST |
| 7817 | - fi |
| 7818 | - # Now quote all the things that may contain metacharacters while being |
| 7819 | - # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 7820 | - # variables and quote the copies for generation of the libtool script. |
| 7821 | - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
| 7822 | - SED SHELL STRIP \ |
| 7823 | - libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 7824 | - old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 7825 | - deplibs_check_method reload_flag reload_cmds need_locks \ |
| 7826 | - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 7827 | - lt_cv_sys_global_symbol_to_c_name_address \ |
| 7828 | - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 7829 | - old_postinstall_cmds old_postuninstall_cmds \ |
| 7830 | - _LT_AC_TAGVAR(compiler, $1) \ |
| 7831 | - _LT_AC_TAGVAR(CC, $1) \ |
| 7832 | - _LT_AC_TAGVAR(LD, $1) \ |
| 7833 | - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \ |
| 7834 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \ |
| 7835 | - _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \ |
| 7836 | - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \ |
| 7837 | - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \ |
| 7838 | - _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \ |
| 7839 | - _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \ |
| 7840 | - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \ |
| 7841 | - _LT_AC_TAGVAR(old_archive_cmds, $1) \ |
| 7842 | - _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \ |
| 7843 | - _LT_AC_TAGVAR(predep_objects, $1) \ |
| 7844 | - _LT_AC_TAGVAR(postdep_objects, $1) \ |
| 7845 | - _LT_AC_TAGVAR(predeps, $1) \ |
| 7846 | - _LT_AC_TAGVAR(postdeps, $1) \ |
| 7847 | - _LT_AC_TAGVAR(compiler_lib_search_path, $1) \ |
| 7848 | - _LT_AC_TAGVAR(archive_cmds, $1) \ |
| 7849 | - _LT_AC_TAGVAR(archive_expsym_cmds, $1) \ |
| 7850 | - _LT_AC_TAGVAR(postinstall_cmds, $1) \ |
| 7851 | - _LT_AC_TAGVAR(postuninstall_cmds, $1) \ |
| 7852 | - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \ |
| 7853 | - _LT_AC_TAGVAR(allow_undefined_flag, $1) \ |
| 7854 | - _LT_AC_TAGVAR(no_undefined_flag, $1) \ |
| 7855 | - _LT_AC_TAGVAR(export_symbols_cmds, $1) \ |
| 7856 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \ |
| 7857 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \ |
| 7858 | - _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \ |
| 7859 | - _LT_AC_TAGVAR(hardcode_automatic, $1) \ |
| 7860 | - _LT_AC_TAGVAR(module_cmds, $1) \ |
| 7861 | - _LT_AC_TAGVAR(module_expsym_cmds, $1) \ |
| 7862 | - _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \ |
| 7863 | - _LT_AC_TAGVAR(exclude_expsyms, $1) \ |
| 7864 | - _LT_AC_TAGVAR(include_expsyms, $1); do |
| 7865 | - |
| 7866 | - case $var in |
| 7867 | - _LT_AC_TAGVAR(old_archive_cmds, $1) | \ |
| 7868 | - _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \ |
| 7869 | - _LT_AC_TAGVAR(archive_cmds, $1) | \ |
| 7870 | - _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \ |
| 7871 | - _LT_AC_TAGVAR(module_cmds, $1) | \ |
| 7872 | - _LT_AC_TAGVAR(module_expsym_cmds, $1) | \ |
| 7873 | - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \ |
| 7874 | - _LT_AC_TAGVAR(export_symbols_cmds, $1) | \ |
| 7875 | - extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 7876 | - postinstall_cmds | postuninstall_cmds | \ |
| 7877 | - old_postinstall_cmds | old_postuninstall_cmds | \ |
| 7878 | - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 7879 | - # Double-quote double-evaled strings. |
| 7880 | - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 7881 | + unicos*) |
| 7882 | + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 7883 | + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no |
| 7884 | + ;; |
| 7885 | + |
| 7886 | + uts4*) |
| 7887 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
| 7888 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 7889 | ;; |
| 7890 | + |
| 7891 | *) |
| 7892 | - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 7893 | + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no |
| 7894 | ;; |
| 7895 | esac |
| 7896 | - done |
| 7897 | - |
| 7898 | - case $lt_echo in |
| 7899 | - *'\[$]0 --fallback-echo"') |
| 7900 | - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'` |
| 7901 | + fi |
| 7902 | +]) |
| 7903 | +case $host_os in |
| 7904 | + # For platforms which do not support PIC, -DPIC is meaningless: |
| 7905 | + *djgpp*) |
| 7906 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)= |
| 7907 | ;; |
| 7908 | - esac |
| 7909 | - |
| 7910 | -ifelse([$1], [], |
| 7911 | - [cfgfile="${ofile}T" |
| 7912 | - trap "$rm \"$cfgfile\"; exit 1" 1 2 15 |
| 7913 | - $rm -f "$cfgfile" |
| 7914 | - AC_MSG_NOTICE([creating $ofile])], |
| 7915 | - [cfgfile="$ofile"]) |
| 7916 | - |
| 7917 | - cat <<__EOF__ >> "$cfgfile" |
| 7918 | -ifelse([$1], [], |
| 7919 | -[#! $SHELL |
| 7920 | + *) |
| 7921 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" |
| 7922 | + ;; |
| 7923 | +esac |
| 7924 | +AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) |
| 7925 | +_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], |
| 7926 | + [How to pass a linker flag through the compiler]) |
| 7927 | |
| 7928 | -# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
| 7929 | -# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
| 7930 | -# NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 7931 | # |
| 7932 | -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 |
| 7933 | -# Free Software Foundation, Inc. |
| 7934 | -# |
| 7935 | -# This file is part of GNU Libtool: |
| 7936 | -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
| 7937 | -# |
| 7938 | -# This program is free software; you can redistribute it and/or modify |
| 7939 | -# it under the terms of the GNU General Public License as published by |
| 7940 | -# the Free Software Foundation; either version 2 of the License, or |
| 7941 | -# (at your option) any later version. |
| 7942 | +# Check to make sure the PIC flag actually works. |
| 7943 | # |
| 7944 | -# This program is distributed in the hope that it will be useful, but |
| 7945 | -# WITHOUT ANY WARRANTY; without even the implied warranty of |
| 7946 | -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 7947 | -# General Public License for more details. |
| 7948 | +if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then |
| 7949 | + _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works], |
| 7950 | + [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)], |
| 7951 | + [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [], |
| 7952 | + [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in |
| 7953 | + "" | " "*) ;; |
| 7954 | + *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;; |
| 7955 | + esac], |
| 7956 | + [_LT_TAGVAR(lt_prog_compiler_pic, $1)= |
| 7957 | + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) |
| 7958 | +fi |
| 7959 | +_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], |
| 7960 | + [Additional compiler flags for building library objects]) |
| 7961 | + |
| 7962 | # |
| 7963 | -# You should have received a copy of the GNU General Public License |
| 7964 | -# along with this program; if not, write to the Free Software |
| 7965 | -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 7966 | +# Check to make sure the static flag actually works. |
| 7967 | # |
| 7968 | -# As a special exception to the GNU General Public License, if you |
| 7969 | -# distribute this file as part of a program that contains a |
| 7970 | -# configuration script generated by Autoconf, you may include it under |
| 7971 | -# the same distribution terms that you use for the rest of that program. |
| 7972 | - |
| 7973 | -# A sed program that does not truncate output. |
| 7974 | -SED=$lt_SED |
| 7975 | - |
| 7976 | -# Sed that helps us avoid accidentally triggering echo(1) options like -n. |
| 7977 | -Xsed="$SED -e 1s/^X//" |
| 7978 | - |
| 7979 | -# The HP-UX ksh and POSIX shell print the target directory to stdout |
| 7980 | -# if CDPATH is set. |
| 7981 | -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 7982 | - |
| 7983 | -# The names of the tagged configurations supported by this script. |
| 7984 | -available_tags= |
| 7985 | - |
| 7986 | -# ### BEGIN LIBTOOL CONFIG], |
| 7987 | -[# ### BEGIN LIBTOOL TAG CONFIG: $tagname]) |
| 7988 | - |
| 7989 | -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 7990 | - |
| 7991 | -# Shell to use when invoking shell scripts. |
| 7992 | -SHELL=$lt_SHELL |
| 7993 | - |
| 7994 | -# Whether or not to build shared libraries. |
| 7995 | -build_libtool_libs=$enable_shared |
| 7996 | - |
| 7997 | -# Whether or not to build static libraries. |
| 7998 | -build_old_libs=$enable_static |
| 7999 | - |
| 8000 | -# Whether or not to add -lc for building shared libraries. |
| 8001 | -build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1) |
| 8002 | - |
| 8003 | -# Whether or not to disallow shared libs when runtime libs are static |
| 8004 | -allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) |
| 8005 | - |
| 8006 | -# Whether or not to optimize for fast installation. |
| 8007 | -fast_install=$enable_fast_install |
| 8008 | - |
| 8009 | -# The host system. |
| 8010 | -host_alias=$host_alias |
| 8011 | -host=$host |
| 8012 | -host_os=$host_os |
| 8013 | +wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\" |
| 8014 | +_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], |
| 8015 | + _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1), |
| 8016 | + $lt_tmp_static_flag, |
| 8017 | + [], |
| 8018 | + [_LT_TAGVAR(lt_prog_compiler_static, $1)=]) |
| 8019 | +_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1], |
| 8020 | + [Compiler flag to prevent dynamic linking]) |
| 8021 | +])# _LT_COMPILER_PIC |
| 8022 | |
| 8023 | -# The build system. |
| 8024 | -build_alias=$build_alias |
| 8025 | -build=$build |
| 8026 | -build_os=$build_os |
| 8027 | |
| 8028 | -# An echo program that does not interpret backslashes. |
| 8029 | -echo=$lt_echo |
| 8030 | +# _LT_LINKER_SHLIBS([TAGNAME]) |
| 8031 | +# ---------------------------- |
| 8032 | +# See if the linker supports building shared libraries. |
| 8033 | +m4_defun([_LT_LINKER_SHLIBS], |
| 8034 | +[AC_REQUIRE([LT_PATH_LD])dnl |
| 8035 | +AC_REQUIRE([LT_PATH_NM])dnl |
| 8036 | +m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
| 8037 | +m4_require([_LT_DECL_EGREP])dnl |
| 8038 | +m4_require([_LT_DECL_SED])dnl |
| 8039 | +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl |
| 8040 | +m4_require([_LT_TAG_COMPILER])dnl |
| 8041 | +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) |
| 8042 | +m4_if([$1], [CXX], [ |
| 8043 | + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 8044 | + case $host_os in |
| 8045 | + aix[[4-9]]*) |
| 8046 | + # If we're using GNU nm, then we don't want the "-C" option. |
| 8047 | + # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 8048 | + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
| 8049 | + _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' |
| 8050 | + else |
| 8051 | + _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' |
| 8052 | + fi |
| 8053 | + ;; |
| 8054 | + pw32*) |
| 8055 | + _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" |
| 8056 | + ;; |
| 8057 | + cygwin* | mingw*) |
| 8058 | + _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' |
| 8059 | + ;; |
| 8060 | + *) |
| 8061 | + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 8062 | + ;; |
| 8063 | + esac |
| 8064 | + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] |
| 8065 | +], [ |
| 8066 | + runpath_var= |
| 8067 | + _LT_TAGVAR(allow_undefined_flag, $1)= |
| 8068 | + _LT_TAGVAR(always_export_symbols, $1)=no |
| 8069 | + _LT_TAGVAR(archive_cmds, $1)= |
| 8070 | + _LT_TAGVAR(archive_expsym_cmds, $1)= |
| 8071 | + _LT_TAGVAR(compiler_needs_object, $1)=no |
| 8072 | + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no |
| 8073 | + _LT_TAGVAR(export_dynamic_flag_spec, $1)= |
| 8074 | + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 8075 | + _LT_TAGVAR(hardcode_automatic, $1)=no |
| 8076 | + _LT_TAGVAR(hardcode_direct, $1)=no |
| 8077 | + _LT_TAGVAR(hardcode_direct_absolute, $1)=no |
| 8078 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= |
| 8079 | + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= |
| 8080 | + _LT_TAGVAR(hardcode_libdir_separator, $1)= |
| 8081 | + _LT_TAGVAR(hardcode_minus_L, $1)=no |
| 8082 | + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
| 8083 | + _LT_TAGVAR(inherit_rpath, $1)=no |
| 8084 | + _LT_TAGVAR(link_all_deplibs, $1)=unknown |
| 8085 | + _LT_TAGVAR(module_cmds, $1)= |
| 8086 | + _LT_TAGVAR(module_expsym_cmds, $1)= |
| 8087 | + _LT_TAGVAR(old_archive_from_new_cmds, $1)= |
| 8088 | + _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)= |
| 8089 | + _LT_TAGVAR(thread_safe_flag_spec, $1)= |
| 8090 | + _LT_TAGVAR(whole_archive_flag_spec, $1)= |
| 8091 | + # include_expsyms should be a list of space-separated symbols to be *always* |
| 8092 | + # included in the symbol list |
| 8093 | + _LT_TAGVAR(include_expsyms, $1)= |
| 8094 | + # exclude_expsyms can be an extended regexp of symbols to exclude |
| 8095 | + # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 8096 | + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 8097 | + # as well as any symbol that contains `d'. |
| 8098 | + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] |
| 8099 | + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 8100 | + # platforms (ab)use it in PIC code, but their linkers get confused if |
| 8101 | + # the symbol is explicitly referenced. Since portable code cannot |
| 8102 | + # rely on this symbol name, it's probably fine to never include it in |
| 8103 | + # preloaded symbol tables. |
| 8104 | + # Exclude shared library initialization/finalization symbols. |
| 8105 | +dnl Note also adjust exclude_expsyms for C++ above. |
| 8106 | + extract_expsyms_cmds= |
| 8107 | |
| 8108 | -# The archiver. |
| 8109 | -AR=$lt_AR |
| 8110 | -AR_FLAGS=$lt_AR_FLAGS |
| 8111 | + case $host_os in |
| 8112 | + cygwin* | mingw* | pw32*) |
| 8113 | + # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 8114 | + # When not using gcc, we currently assume that we are using |
| 8115 | + # Microsoft Visual C++. |
| 8116 | + if test "$GCC" != yes; then |
| 8117 | + with_gnu_ld=no |
| 8118 | + fi |
| 8119 | + ;; |
| 8120 | + interix*) |
| 8121 | + # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 8122 | + with_gnu_ld=yes |
| 8123 | + ;; |
| 8124 | + openbsd*) |
| 8125 | + with_gnu_ld=no |
| 8126 | + ;; |
| 8127 | + esac |
| 8128 | |
| 8129 | -# A C compiler. |
| 8130 | -LTCC=$lt_LTCC |
| 8131 | + _LT_TAGVAR(ld_shlibs, $1)=yes |
| 8132 | + if test "$with_gnu_ld" = yes; then |
| 8133 | + # If archive_cmds runs LD, not CC, wlarc should be empty |
| 8134 | + wlarc='${wl}' |
| 8135 | |
| 8136 | -# LTCC compiler flags. |
| 8137 | -LTCFLAGS=$lt_LTCFLAGS |
| 8138 | + # Set some defaults for GNU ld with shared library support. These |
| 8139 | + # are reset later if shared libraries are not supported. Putting them |
| 8140 | + # here allows them to be overridden if necessary. |
| 8141 | + runpath_var=LD_RUN_PATH |
| 8142 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
| 8143 | + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
| 8144 | + # ancient GNU ld didn't support --whole-archive et. al. |
| 8145 | + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then |
| 8146 | + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 8147 | + else |
| 8148 | + _LT_TAGVAR(whole_archive_flag_spec, $1)= |
| 8149 | + fi |
| 8150 | + supports_anon_versioning=no |
| 8151 | + case `$LD -v 2>&1` in |
| 8152 | + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 8153 | + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 8154 | + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 8155 | + *\ 2.11.*) ;; # other 2.11 versions |
| 8156 | + *) supports_anon_versioning=yes ;; |
| 8157 | + esac |
| 8158 | |
| 8159 | -# A language-specific compiler. |
| 8160 | -CC=$lt_[]_LT_AC_TAGVAR(compiler, $1) |
| 8161 | + # See if GNU ld supports shared libraries. |
| 8162 | + case $host_os in |
| 8163 | + aix[[3-9]]*) |
| 8164 | + # On AIX/PPC, the GNU linker is very broken |
| 8165 | + if test "$host_cpu" != ia64; then |
| 8166 | + _LT_TAGVAR(ld_shlibs, $1)=no |
| 8167 | + cat <<_LT_EOF 1>&2 |
| 8168 | |
| 8169 | -# Is the compiler the GNU C compiler? |
| 8170 | -with_gcc=$_LT_AC_TAGVAR(GCC, $1) |
| 8171 | +*** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 8172 | +*** to be unable to reliably create shared libraries on AIX. |
| 8173 | +*** Therefore, libtool is disabling shared libraries support. If you |
| 8174 | +*** really care for shared libraries, you may want to modify your PATH |
| 8175 | +*** so that a non-GNU linker is found, and then restart. |
| 8176 | |
| 8177 | -# An ERE matcher. |
| 8178 | -EGREP=$lt_EGREP |
| 8179 | +_LT_EOF |
| 8180 | + fi |
| 8181 | + ;; |
| 8182 | |
| 8183 | -# The linker used to build libraries. |
| 8184 | -LD=$lt_[]_LT_AC_TAGVAR(LD, $1) |
| 8185 | + amigaos*) |
| 8186 | + case $host_cpu in |
| 8187 | + powerpc) |
| 8188 | + # see comment about AmigaOS4 .so support |
| 8189 | + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 8190 | + _LT_TAGVAR(archive_expsym_cmds, $1)='' |
| 8191 | + ;; |
| 8192 | + m68k) |
| 8193 | + _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)' |
| 8194 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| 8195 | + _LT_TAGVAR(hardcode_minus_L, $1)=yes |
| 8196 | + ;; |
| 8197 | + esac |
| 8198 | + ;; |
| 8199 | |
| 8200 | -# Whether we need hard or soft links. |
| 8201 | -LN_S=$lt_LN_S |
| 8202 | + beos*) |
| 8203 | + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 8204 | + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported |
| 8205 | + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 8206 | + # support --undefined. This deserves some investigation. FIXME |
| 8207 | + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 8208 | + else |
| 8209 | + _LT_TAGVAR(ld_shlibs, $1)=no |
| 8210 | + fi |
| 8211 | + ;; |
| 8212 | |
| 8213 | -# A BSD-compatible nm program. |
| 8214 | -NM=$lt_NM |
| 8215 | + cygwin* | mingw* | pw32*) |
| 8216 | + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, |
| 8217 | + # as there is no search path for DLLs. |
| 8218 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| 8219 | + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported |
| 8220 | + _LT_TAGVAR(always_export_symbols, $1)=no |
| 8221 | + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
| 8222 | + _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' |
| 8223 | |
| 8224 | -# A symbol stripping program |
| 8225 | -STRIP=$lt_STRIP |
| 8226 | + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
| 8227 | + _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' |
| 8228 | + # If the export-symbols file already is a .def file (1st line |
| 8229 | + # is EXPORTS), use it as is; otherwise, prepend... |
| 8230 | + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 8231 | + cp $export_symbols $output_objdir/$soname.def; |
| 8232 | + else |
| 8233 | + echo EXPORTS > $output_objdir/$soname.def; |
| 8234 | + cat $export_symbols >> $output_objdir/$soname.def; |
| 8235 | + fi~ |
| 8236 | + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 8237 | + else |
| 8238 | + _LT_TAGVAR(ld_shlibs, $1)=no |
| 8239 | + fi |
| 8240 | + ;; |
| 8241 | |
| 8242 | -# Used to examine libraries when file_magic_cmd begins "file" |
| 8243 | -MAGIC_CMD=$MAGIC_CMD |
| 8244 | + interix[[3-9]]*) |
| 8245 | + _LT_TAGVAR(hardcode_direct, $1)=no |
| 8246 | + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 8247 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
| 8248 | + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
| 8249 | + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 8250 | + # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 8251 | + # default) and relocated if they conflict, which is a slow very memory |
| 8252 | + # consuming and fragmenting process. To avoid this, we pick a random, |
| 8253 | + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 8254 | + # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 8255 | + _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' |
| 8256 | + _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' |
| 8257 | + ;; |
| 8258 | |
| 8259 | -# Used on cygwin: DLL creation program. |
| 8260 | -DLLTOOL="$DLLTOOL" |
| 8261 | + gnu* | linux* | tpf* | k*bsd*-gnu) |
| 8262 | + tmp_diet=no |
| 8263 | + if test "$host_os" = linux-dietlibc; then |
| 8264 | + case $cc_basename in |
| 8265 | + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) |
| 8266 | + esac |
| 8267 | + fi |
| 8268 | + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ |
| 8269 | + && test "$tmp_diet" = no |
| 8270 | + then |
| 8271 | + tmp_addflag= |
| 8272 | + tmp_sharedflag='-shared' |
| 8273 | + case $cc_basename,$host_cpu in |
| 8274 | + pgcc*) # Portland Group C compiler |
| 8275 | + _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' |
| 8276 | + tmp_addflag=' $pic_flag' |
| 8277 | + ;; |
| 8278 | + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| 8279 | + _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' |
| 8280 | + tmp_addflag=' $pic_flag -Mnomain' ;; |
| 8281 | + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 8282 | + tmp_addflag=' -i_dynamic' ;; |
| 8283 | + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 8284 | + tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 8285 | + ifc* | ifort*) # Intel Fortran compiler |
| 8286 | + tmp_addflag=' -nofor_main' ;; |
| 8287 | + xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
| 8288 | + tmp_sharedflag='-qmkshrobj' |
| 8289 | + tmp_addflag= ;; |
| 8290 | + esac |
| 8291 | + case `$CC -V 2>&1 | sed 5q` in |
| 8292 | + *Sun\ C*) # Sun C 5.9 |
| 8293 | + _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' |
| 8294 | + _LT_TAGVAR(compiler_needs_object, $1)=yes |
| 8295 | + tmp_sharedflag='-G' ;; |
| 8296 | + *Sun\ F*) # Sun Fortran 8.3 |
| 8297 | + tmp_sharedflag='-G' ;; |
| 8298 | + esac |
| 8299 | + _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 8300 | |
| 8301 | -# Used on cygwin: object dumper. |
| 8302 | -OBJDUMP="$OBJDUMP" |
| 8303 | + if test "x$supports_anon_versioning" = xyes; then |
| 8304 | + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ |
| 8305 | + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 8306 | + echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 8307 | + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 8308 | + fi |
| 8309 | |
| 8310 | -# Used on cygwin: assembler. |
| 8311 | -AS="$AS" |
| 8312 | + case $cc_basename in |
| 8313 | + xlf*) |
| 8314 | + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
| 8315 | + _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' |
| 8316 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= |
| 8317 | + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' |
| 8318 | + _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' |
| 8319 | + if test "x$supports_anon_versioning" = xyes; then |
| 8320 | + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ |
| 8321 | + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 8322 | + echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 8323 | + $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' |
| 8324 | + fi |
| 8325 | + ;; |
| 8326 | + esac |
| 8327 | + else |
| 8328 | + _LT_TAGVAR(ld_shlibs, $1)=no |
| 8329 | + fi |
| 8330 | + ;; |
| 8331 | |
| 8332 | -# The name of the directory that contains temporary libtool files. |
| 8333 | -objdir=$objdir |
| 8334 | + netbsd*) |
| 8335 | + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 8336 | + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 8337 | + wlarc= |
| 8338 | + else |
| 8339 | + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 8340 | + _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' |
| 8341 | + fi |
| 8342 | + ;; |
| 8343 | |
| 8344 | -# How to create reloadable object files. |
| 8345 | -reload_flag=$lt_reload_flag |
| 8346 | -reload_cmds=$lt_reload_cmds |
| 8347 | + solaris*) |
| 8348 | + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then |
| 8349 | + _LT_TAGVAR(ld_shlibs, $1)=no |
| 8350 | + cat <<_LT_EOF 1>&2 |
| 8351 | |
| 8352 | -# How to pass a linker flag through the compiler. |
| 8353 | -wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) |
| 8354 | +*** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 8355 | +*** create shared libraries on Solaris systems. Therefore, libtool |
| 8356 | +*** is disabling shared libraries support. We urge you to upgrade GNU |
| 8357 | +*** binutils to release 2.9.1 or newer. Another option is to modify |
| 8358 | +*** your PATH or compiler configuration so that the native linker is |
| 8359 | +*** used, and then restart. |
| 8360 | |
| 8361 | -# Object file suffix (normally "o"). |
| 8362 | -objext="$ac_objext" |
| 8363 | +_LT_EOF |
| 8364 | + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 8365 | + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 8366 | + _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' |
| 8367 | + else |
| 8368 | + _LT_TAGVAR(ld_shlibs, $1)=no |
| 8369 | + fi |
| 8370 | + ;; |
| 8371 | |
| 8372 | -# Old archive suffix (normally "a"). |
| 8373 | -libext="$libext" |
| 8374 | + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 8375 | + case `$LD -v 2>&1` in |
| 8376 | + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) |
| 8377 | + _LT_TAGVAR(ld_shlibs, $1)=no |
| 8378 | + cat <<_LT_EOF 1>&2 |
| 8379 | |
| 8380 | -# Shared library suffix (normally ".so"). |
| 8381 | -shrext_cmds='$shrext_cmds' |
| 8382 | +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 8383 | +*** reliably create shared libraries on SCO systems. Therefore, libtool |
| 8384 | +*** is disabling shared libraries support. We urge you to upgrade GNU |
| 8385 | +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 8386 | +*** your PATH or compiler configuration so that the native linker is |
| 8387 | +*** used, and then restart. |
| 8388 | |
| 8389 | -# Executable file suffix (normally ""). |
| 8390 | -exeext="$exeext" |
| 8391 | +_LT_EOF |
| 8392 | + ;; |
| 8393 | + *) |
| 8394 | + # For security reasons, it is highly recommended that you always |
| 8395 | + # use absolute paths for naming shared libraries, and exclude the |
| 8396 | + # DT_RUNPATH tag from executables and libraries. But doing so |
| 8397 | + # requires that you compile everything twice, which is a pain. |
| 8398 | + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 8399 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
| 8400 | + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 8401 | + _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' |
| 8402 | + else |
| 8403 | + _LT_TAGVAR(ld_shlibs, $1)=no |
| 8404 | + fi |
| 8405 | + ;; |
| 8406 | + esac |
| 8407 | + ;; |
| 8408 | |
| 8409 | -# Additional compiler flags for building library objects. |
| 8410 | -pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) |
| 8411 | -pic_mode=$pic_mode |
| 8412 | + sunos4*) |
| 8413 | + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 8414 | + wlarc= |
| 8415 | + _LT_TAGVAR(hardcode_direct, $1)=yes |
| 8416 | + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 8417 | + ;; |
| 8418 | |
| 8419 | -# What is the maximum length of a command? |
| 8420 | -max_cmd_len=$lt_cv_sys_max_cmd_len |
| 8421 | + *) |
| 8422 | + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 8423 | + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 8424 | + _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' |
| 8425 | + else |
| 8426 | + _LT_TAGVAR(ld_shlibs, $1)=no |
| 8427 | + fi |
| 8428 | + ;; |
| 8429 | + esac |
| 8430 | |
| 8431 | -# Does compiler simultaneously support -c and -o options? |
| 8432 | -compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) |
| 8433 | + if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then |
| 8434 | + runpath_var= |
| 8435 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= |
| 8436 | + _LT_TAGVAR(export_dynamic_flag_spec, $1)= |
| 8437 | + _LT_TAGVAR(whole_archive_flag_spec, $1)= |
| 8438 | + fi |
| 8439 | + else |
| 8440 | + # PORTME fill in a description of your system's linker (not GNU ld) |
| 8441 | + case $host_os in |
| 8442 | + aix3*) |
| 8443 | + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported |
| 8444 | + _LT_TAGVAR(always_export_symbols, $1)=yes |
| 8445 | + _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' |
| 8446 | + # Note: this linker hardcodes the directories in LIBPATH if there |
| 8447 | + # are no directories specified by -L. |
| 8448 | + _LT_TAGVAR(hardcode_minus_L, $1)=yes |
| 8449 | + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
| 8450 | + # Neither direct hardcoding nor static linking is supported with a |
| 8451 | + # broken collect2. |
| 8452 | + _LT_TAGVAR(hardcode_direct, $1)=unsupported |
| 8453 | + fi |
| 8454 | + ;; |
| 8455 | |
| 8456 | -# Must we lock files when doing compilation? |
| 8457 | -need_locks=$lt_need_locks |
| 8458 | + aix[[4-9]]*) |
| 8459 | + if test "$host_cpu" = ia64; then |
| 8460 | + # On IA64, the linker does run time linking by default, so we don't |
| 8461 | + # have to do anything special. |
| 8462 | + aix_use_runtimelinking=no |
| 8463 | + exp_sym_flag='-Bexport' |
| 8464 | + no_entry_flag="" |
| 8465 | + else |
| 8466 | + # If we're using GNU nm, then we don't want the "-C" option. |
| 8467 | + # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 8468 | + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
| 8469 | + _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' |
| 8470 | + else |
| 8471 | + _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' |
| 8472 | + fi |
| 8473 | + aix_use_runtimelinking=no |
| 8474 | |
| 8475 | -# Do we need the lib prefix for modules? |
| 8476 | -need_lib_prefix=$need_lib_prefix |
| 8477 | + # Test if we are trying to use run time linking or normal |
| 8478 | + # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 8479 | + # need to do runtime linking. |
| 8480 | + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) |
| 8481 | + for ld_flag in $LDFLAGS; do |
| 8482 | + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 8483 | + aix_use_runtimelinking=yes |
| 8484 | + break |
| 8485 | + fi |
| 8486 | + done |
| 8487 | + ;; |
| 8488 | + esac |
| 8489 | |
| 8490 | -# Do we need a version for libraries? |
| 8491 | -need_version=$need_version |
| 8492 | + exp_sym_flag='-bexport' |
| 8493 | + no_entry_flag='-bnoentry' |
| 8494 | + fi |
| 8495 | |
| 8496 | -# Whether dlopen is supported. |
| 8497 | -dlopen_support=$enable_dlopen |
| 8498 | + # When large executables or shared objects are built, AIX ld can |
| 8499 | + # have problems creating the table of contents. If linking a library |
| 8500 | + # or program results in "error TOC overflow" add -mminimal-toc to |
| 8501 | + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 8502 | + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 8503 | |
| 8504 | -# Whether dlopen of programs is supported. |
| 8505 | -dlopen_self=$enable_dlopen_self |
| 8506 | + _LT_TAGVAR(archive_cmds, $1)='' |
| 8507 | + _LT_TAGVAR(hardcode_direct, $1)=yes |
| 8508 | + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes |
| 8509 | + _LT_TAGVAR(hardcode_libdir_separator, $1)=':' |
| 8510 | + _LT_TAGVAR(link_all_deplibs, $1)=yes |
| 8511 | + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' |
| 8512 | |
| 8513 | -# Whether dlopen of statically linked programs is supported. |
| 8514 | -dlopen_self_static=$enable_dlopen_self_static |
| 8515 | + if test "$GCC" = yes; then |
| 8516 | + case $host_os in aix4.[[012]]|aix4.[[012]].*) |
| 8517 | + # We only want to do this on AIX 4.2 and lower, the check |
| 8518 | + # below for broken collect2 doesn't work under 4.3+ |
| 8519 | + collect2name=`${CC} -print-prog-name=collect2` |
| 8520 | + if test -f "$collect2name" && |
| 8521 | + strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
| 8522 | + then |
| 8523 | + # We have reworked collect2 |
| 8524 | + : |
| 8525 | + else |
| 8526 | + # We have old collect2 |
| 8527 | + _LT_TAGVAR(hardcode_direct, $1)=unsupported |
| 8528 | + # It fails to find uninstalled libraries when the uninstalled |
| 8529 | + # path is not listed in the libpath. Setting hardcode_minus_L |
| 8530 | + # to unsupported forces relinking |
| 8531 | + _LT_TAGVAR(hardcode_minus_L, $1)=yes |
| 8532 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| 8533 | + _LT_TAGVAR(hardcode_libdir_separator, $1)= |
| 8534 | + fi |
| 8535 | + ;; |
| 8536 | + esac |
| 8537 | + shared_flag='-shared' |
| 8538 | + if test "$aix_use_runtimelinking" = yes; then |
| 8539 | + shared_flag="$shared_flag "'${wl}-G' |
| 8540 | + fi |
| 8541 | + else |
| 8542 | + # not using gcc |
| 8543 | + if test "$host_cpu" = ia64; then |
| 8544 | + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 8545 | + # chokes on -Wl,-G. The following line is correct: |
| 8546 | + shared_flag='-G' |
| 8547 | + else |
| 8548 | + if test "$aix_use_runtimelinking" = yes; then |
| 8549 | + shared_flag='${wl}-G' |
| 8550 | + else |
| 8551 | + shared_flag='${wl}-bM:SRE' |
| 8552 | + fi |
| 8553 | + fi |
| 8554 | + fi |
| 8555 | |
| 8556 | -# Compiler flag to prevent dynamic linking. |
| 8557 | -link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1) |
| 8558 | + # It seems that -bexpall does not export symbols beginning with |
| 8559 | + # underscore (_), so it is better to generate a list of symbols to export. |
| 8560 | + _LT_TAGVAR(always_export_symbols, $1)=yes |
| 8561 | + if test "$aix_use_runtimelinking" = yes; then |
| 8562 | + # Warning - without using the other runtime loading flags (-brtl), |
| 8563 | + # -berok will link without error, but may produce a broken library. |
| 8564 | + _LT_TAGVAR(allow_undefined_flag, $1)='-berok' |
| 8565 | + # Determine the default libpath from the value encoded in an |
| 8566 | + # empty executable. |
| 8567 | + _LT_SYS_MODULE_PATH_AIX |
| 8568 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 8569 | + _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" |
| 8570 | + else |
| 8571 | + if test "$host_cpu" = ia64; then |
| 8572 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' |
| 8573 | + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" |
| 8574 | + _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" |
| 8575 | + else |
| 8576 | + # Determine the default libpath from the value encoded in an |
| 8577 | + # empty executable. |
| 8578 | + _LT_SYS_MODULE_PATH_AIX |
| 8579 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 8580 | + # Warning - without using the other run time loading flags, |
| 8581 | + # -berok will link without error, but may produce a broken library. |
| 8582 | + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' |
| 8583 | + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' |
| 8584 | + # Exported symbols can be pulled into shared objects from archives |
| 8585 | + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' |
| 8586 | + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes |
| 8587 | + # This is similar to how AIX traditionally builds its shared libraries. |
| 8588 | + _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' |
| 8589 | + fi |
| 8590 | + fi |
| 8591 | + ;; |
| 8592 | |
| 8593 | -# Compiler flag to turn off builtin functions. |
| 8594 | -no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) |
| 8595 | + amigaos*) |
| 8596 | + case $host_cpu in |
| 8597 | + powerpc) |
| 8598 | + # see comment about AmigaOS4 .so support |
| 8599 | + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 8600 | + _LT_TAGVAR(archive_expsym_cmds, $1)='' |
| 8601 | + ;; |
| 8602 | + m68k) |
| 8603 | + _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)' |
| 8604 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| 8605 | + _LT_TAGVAR(hardcode_minus_L, $1)=yes |
| 8606 | + ;; |
| 8607 | + esac |
| 8608 | + ;; |
| 8609 | |
| 8610 | -# Compiler flag to allow reflexive dlopens. |
| 8611 | -export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1) |
| 8612 | + bsdi[[45]]*) |
| 8613 | + _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic |
| 8614 | + ;; |
| 8615 | |
| 8616 | -# Compiler flag to generate shared objects directly from archives. |
| 8617 | -whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1) |
| 8618 | + cygwin* | mingw* | pw32*) |
| 8619 | + # When not using gcc, we currently assume that we are using |
| 8620 | + # Microsoft Visual C++. |
| 8621 | + # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 8622 | + # no search path for DLLs. |
| 8623 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' |
| 8624 | + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported |
| 8625 | + # Tell ltmain to make .lib files, not .a files. |
| 8626 | + libext=lib |
| 8627 | + # Tell ltmain to make .dll files, not .so files. |
| 8628 | + shrext_cmds=".dll" |
| 8629 | + # FIXME: Setting linknames here is a bad hack. |
| 8630 | + _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 8631 | + # The linker will automatically build a .lib file if we build a DLL. |
| 8632 | + _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' |
| 8633 | + # FIXME: Should let the user specify the lib program. |
| 8634 | + _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' |
| 8635 | + _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' |
| 8636 | + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
| 8637 | + ;; |
| 8638 | |
| 8639 | -# Compiler flag to generate thread-safe objects. |
| 8640 | -thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1) |
| 8641 | + darwin* | rhapsody*) |
| 8642 | + _LT_DARWIN_LINKER_FEATURES($1) |
| 8643 | + ;; |
| 8644 | |
| 8645 | -# Library versioning type. |
| 8646 | -version_type=$version_type |
| 8647 | + dgux*) |
| 8648 | + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8649 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| 8650 | + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 8651 | + ;; |
| 8652 | |
| 8653 | -# Format of library name prefix. |
| 8654 | -libname_spec=$lt_libname_spec |
| 8655 | + freebsd1*) |
| 8656 | + _LT_TAGVAR(ld_shlibs, $1)=no |
| 8657 | + ;; |
| 8658 | |
| 8659 | -# List of archive names. First name is the real one, the rest are links. |
| 8660 | -# The last name is the one that the linker finds with -lNAME. |
| 8661 | -library_names_spec=$lt_library_names_spec |
| 8662 | + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 8663 | + # support. Future versions do this automatically, but an explicit c++rt0.o |
| 8664 | + # does not break anything, and helps significantly (at the cost of a little |
| 8665 | + # extra space). |
| 8666 | + freebsd2.2*) |
| 8667 | + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 8668 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
| 8669 | + _LT_TAGVAR(hardcode_direct, $1)=yes |
| 8670 | + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 8671 | + ;; |
| 8672 | |
| 8673 | -# The coded name of the library, if different from the real name. |
| 8674 | -soname_spec=$lt_soname_spec |
| 8675 | + # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 8676 | + freebsd2*) |
| 8677 | + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 8678 | + _LT_TAGVAR(hardcode_direct, $1)=yes |
| 8679 | + _LT_TAGVAR(hardcode_minus_L, $1)=yes |
| 8680 | + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 8681 | + ;; |
| 8682 | |
| 8683 | -# Commands used to build and install an old-style archive. |
| 8684 | -RANLIB=$lt_RANLIB |
| 8685 | -old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1) |
| 8686 | -old_postinstall_cmds=$lt_old_postinstall_cmds |
| 8687 | -old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 8688 | + # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 8689 | + freebsd* | dragonfly*) |
| 8690 | + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 8691 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
| 8692 | + _LT_TAGVAR(hardcode_direct, $1)=yes |
| 8693 | + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 8694 | + ;; |
| 8695 | |
| 8696 | -# Create an old-style archive from a shared archive. |
| 8697 | -old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) |
| 8698 | + hpux9*) |
| 8699 | + if test "$GCC" = yes; then |
| 8700 | + _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' |
| 8701 | + else |
| 8702 | + _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' |
| 8703 | + fi |
| 8704 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
| 8705 | + _LT_TAGVAR(hardcode_libdir_separator, $1)=: |
| 8706 | + _LT_TAGVAR(hardcode_direct, $1)=yes |
| 8707 | |
| 8708 | -# Create a temporary old-style archive to link instead of a shared archive. |
| 8709 | -old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) |
| 8710 | + # hardcode_minus_L: Not really in the search PATH, |
| 8711 | + # but as the default location of the library. |
| 8712 | + _LT_TAGVAR(hardcode_minus_L, $1)=yes |
| 8713 | + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
| 8714 | + ;; |
| 8715 | |
| 8716 | -# Commands used to build and install a shared archive. |
| 8717 | -archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1) |
| 8718 | -archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1) |
| 8719 | -postinstall_cmds=$lt_postinstall_cmds |
| 8720 | -postuninstall_cmds=$lt_postuninstall_cmds |
| 8721 | + hpux10*) |
| 8722 | + if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 8723 | + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 8724 | + else |
| 8725 | + _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 8726 | + fi |
| 8727 | + if test "$with_gnu_ld" = no; then |
| 8728 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
| 8729 | + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' |
| 8730 | + _LT_TAGVAR(hardcode_libdir_separator, $1)=: |
| 8731 | + _LT_TAGVAR(hardcode_direct, $1)=yes |
| 8732 | + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes |
| 8733 | + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
| 8734 | + # hardcode_minus_L: Not really in the search PATH, |
| 8735 | + # but as the default location of the library. |
| 8736 | + _LT_TAGVAR(hardcode_minus_L, $1)=yes |
| 8737 | + fi |
| 8738 | + ;; |
| 8739 | |
| 8740 | -# Commands used to build a loadable module (assumed same as above if empty) |
| 8741 | -module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1) |
| 8742 | -module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1) |
| 8743 | + hpux11*) |
| 8744 | + if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 8745 | + case $host_cpu in |
| 8746 | + hppa*64*) |
| 8747 | + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8748 | + ;; |
| 8749 | + ia64*) |
| 8750 | + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 8751 | + ;; |
| 8752 | + *) |
| 8753 | + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 8754 | + ;; |
| 8755 | + esac |
| 8756 | + else |
| 8757 | + case $host_cpu in |
| 8758 | + hppa*64*) |
| 8759 | + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8760 | + ;; |
| 8761 | + ia64*) |
| 8762 | + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 8763 | + ;; |
| 8764 | + *) |
| 8765 | + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 8766 | + ;; |
| 8767 | + esac |
| 8768 | + fi |
| 8769 | + if test "$with_gnu_ld" = no; then |
| 8770 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
| 8771 | + _LT_TAGVAR(hardcode_libdir_separator, $1)=: |
| 8772 | |
| 8773 | -# Commands to strip libraries. |
| 8774 | -old_striplib=$lt_old_striplib |
| 8775 | -striplib=$lt_striplib |
| 8776 | + case $host_cpu in |
| 8777 | + hppa*64*|ia64*) |
| 8778 | + _LT_TAGVAR(hardcode_direct, $1)=no |
| 8779 | + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 8780 | + ;; |
| 8781 | + *) |
| 8782 | + _LT_TAGVAR(hardcode_direct, $1)=yes |
| 8783 | + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes |
| 8784 | + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
| 8785 | |
| 8786 | -# Dependencies to place before the objects being linked to create a |
| 8787 | -# shared library. |
| 8788 | -predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1) |
| 8789 | + # hardcode_minus_L: Not really in the search PATH, |
| 8790 | + # but as the default location of the library. |
| 8791 | + _LT_TAGVAR(hardcode_minus_L, $1)=yes |
| 8792 | + ;; |
| 8793 | + esac |
| 8794 | + fi |
| 8795 | + ;; |
| 8796 | |
| 8797 | -# Dependencies to place after the objects being linked to create a |
| 8798 | -# shared library. |
| 8799 | -postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1) |
| 8800 | + irix5* | irix6* | nonstopux*) |
| 8801 | + if test "$GCC" = yes; then |
| 8802 | + _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' |
| 8803 | + # Try to use the -exported_symbol ld option, if it does not |
| 8804 | + # work, assume that -exports_file does not work either and |
| 8805 | + # implicitly export all symbols. |
| 8806 | + save_LDFLAGS="$LDFLAGS" |
| 8807 | + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" |
| 8808 | + AC_LINK_IFELSE(int foo(void) {}, |
| 8809 | + _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' |
| 8810 | + ) |
| 8811 | + LDFLAGS="$save_LDFLAGS" |
| 8812 | + else |
| 8813 | + _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' |
| 8814 | + _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' |
| 8815 | + fi |
| 8816 | + _LT_TAGVAR(archive_cmds_need_lc, $1)='no' |
| 8817 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
| 8818 | + _LT_TAGVAR(hardcode_libdir_separator, $1)=: |
| 8819 | + _LT_TAGVAR(inherit_rpath, $1)=yes |
| 8820 | + _LT_TAGVAR(link_all_deplibs, $1)=yes |
| 8821 | + ;; |
| 8822 | |
| 8823 | -# Dependencies to place before the objects being linked to create a |
| 8824 | -# shared library. |
| 8825 | -predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1) |
| 8826 | + netbsd*) |
| 8827 | + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 8828 | + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 8829 | + else |
| 8830 | + _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 8831 | + fi |
| 8832 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
| 8833 | + _LT_TAGVAR(hardcode_direct, $1)=yes |
| 8834 | + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 8835 | + ;; |
| 8836 | |
| 8837 | -# Dependencies to place after the objects being linked to create a |
| 8838 | -# shared library. |
| 8839 | -postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1) |
| 8840 | + newsos6) |
| 8841 | + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8842 | + _LT_TAGVAR(hardcode_direct, $1)=yes |
| 8843 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
| 8844 | + _LT_TAGVAR(hardcode_libdir_separator, $1)=: |
| 8845 | + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 8846 | + ;; |
| 8847 | |
| 8848 | -# The library search path used internally by the compiler when linking |
| 8849 | -# a shared library. |
| 8850 | -compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1) |
| 8851 | + *nto* | *qnx*) |
| 8852 | + ;; |
| 8853 | |
| 8854 | -# Method to check whether dependent libraries are shared objects. |
| 8855 | -deplibs_check_method=$lt_deplibs_check_method |
| 8856 | + openbsd*) |
| 8857 | + if test -f /usr/libexec/ld.so; then |
| 8858 | + _LT_TAGVAR(hardcode_direct, $1)=yes |
| 8859 | + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 8860 | + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes |
| 8861 | + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 8862 | + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 8863 | + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
| 8864 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
| 8865 | + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
| 8866 | + else |
| 8867 | + case $host_os in |
| 8868 | + openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) |
| 8869 | + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 8870 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
| 8871 | + ;; |
| 8872 | + *) |
| 8873 | + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 8874 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
| 8875 | + ;; |
| 8876 | + esac |
| 8877 | + fi |
| 8878 | + else |
| 8879 | + _LT_TAGVAR(ld_shlibs, $1)=no |
| 8880 | + fi |
| 8881 | + ;; |
| 8882 | |
| 8883 | -# Command to use when deplibs_check_method == file_magic. |
| 8884 | -file_magic_cmd=$lt_file_magic_cmd |
| 8885 | + os2*) |
| 8886 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| 8887 | + _LT_TAGVAR(hardcode_minus_L, $1)=yes |
| 8888 | + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported |
| 8889 | + _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' |
| 8890 | + _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 8891 | + ;; |
| 8892 | |
| 8893 | -# Flag that allows shared libraries with undefined symbols to be built. |
| 8894 | -allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1) |
| 8895 | + osf3*) |
| 8896 | + if test "$GCC" = yes; then |
| 8897 | + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
| 8898 | + _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' |
| 8899 | + else |
| 8900 | + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' |
| 8901 | + _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' |
| 8902 | + fi |
| 8903 | + _LT_TAGVAR(archive_cmds_need_lc, $1)='no' |
| 8904 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
| 8905 | + _LT_TAGVAR(hardcode_libdir_separator, $1)=: |
| 8906 | + ;; |
| 8907 | |
| 8908 | -# Flag that forces no undefined symbols. |
| 8909 | -no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1) |
| 8910 | + osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 8911 | + if test "$GCC" = yes; then |
| 8912 | + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
| 8913 | + _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' |
| 8914 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
| 8915 | + else |
| 8916 | + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' |
| 8917 | + _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' |
| 8918 | + _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~ |
| 8919 | + $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' |
| 8920 | |
| 8921 | -# Commands used to finish a libtool library installation in a directory. |
| 8922 | -finish_cmds=$lt_finish_cmds |
| 8923 | + # Both c and cxx compiler support -rpath directly |
| 8924 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' |
| 8925 | + fi |
| 8926 | + _LT_TAGVAR(archive_cmds_need_lc, $1)='no' |
| 8927 | + _LT_TAGVAR(hardcode_libdir_separator, $1)=: |
| 8928 | + ;; |
| 8929 | |
| 8930 | -# Same as above, but a single script fragment to be evaled but not shown. |
| 8931 | -finish_eval=$lt_finish_eval |
| 8932 | + solaris*) |
| 8933 | + _LT_TAGVAR(no_undefined_flag, $1)=' -z defs' |
| 8934 | + if test "$GCC" = yes; then |
| 8935 | + wlarc='${wl}' |
| 8936 | + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8937 | + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 8938 | + $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
| 8939 | + else |
| 8940 | + case `$CC -V 2>&1` in |
| 8941 | + *"Compilers 5.0"*) |
| 8942 | + wlarc='' |
| 8943 | + _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8944 | + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 8945 | + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' |
| 8946 | + ;; |
| 8947 | + *) |
| 8948 | + wlarc='${wl}' |
| 8949 | + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8950 | + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 8951 | + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
| 8952 | + ;; |
| 8953 | + esac |
| 8954 | + fi |
| 8955 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
| 8956 | + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 8957 | + case $host_os in |
| 8958 | + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; |
| 8959 | + *) |
| 8960 | + # The compiler driver will combine and reorder linker options, |
| 8961 | + # but understands `-z linker_flag'. GCC discards it without `$wl', |
| 8962 | + # but is careful enough not to reorder. |
| 8963 | + # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 8964 | + if test "$GCC" = yes; then |
| 8965 | + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
| 8966 | + else |
| 8967 | + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' |
| 8968 | + fi |
| 8969 | + ;; |
| 8970 | + esac |
| 8971 | + _LT_TAGVAR(link_all_deplibs, $1)=yes |
| 8972 | + ;; |
| 8973 | |
| 8974 | -# Take the output of nm and produce a listing of raw symbols and C names. |
| 8975 | -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 8976 | + sunos4*) |
| 8977 | + if test "x$host_vendor" = xsequent; then |
| 8978 | + # Use $CC to link under sequent, because it throws in some extra .o |
| 8979 | + # files that make .init and .fini sections work. |
| 8980 | + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8981 | + else |
| 8982 | + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 8983 | + fi |
| 8984 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| 8985 | + _LT_TAGVAR(hardcode_direct, $1)=yes |
| 8986 | + _LT_TAGVAR(hardcode_minus_L, $1)=yes |
| 8987 | + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 8988 | + ;; |
| 8989 | |
| 8990 | -# Transform the output of nm in a proper C declaration |
| 8991 | -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 8992 | + sysv4) |
| 8993 | + case $host_vendor in |
| 8994 | + sni) |
| 8995 | + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8996 | + _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true??? |
| 8997 | + ;; |
| 8998 | + siemens) |
| 8999 | + ## LD is ld it makes a PLAMLIB |
| 9000 | + ## CC just makes a GrossModule. |
| 9001 | + _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 9002 | + _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' |
| 9003 | + _LT_TAGVAR(hardcode_direct, $1)=no |
| 9004 | + ;; |
| 9005 | + motorola) |
| 9006 | + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9007 | + _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie |
| 9008 | + ;; |
| 9009 | + esac |
| 9010 | + runpath_var='LD_RUN_PATH' |
| 9011 | + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 9012 | + ;; |
| 9013 | |
| 9014 | -# Transform the output of nm in a C name address pair |
| 9015 | -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 9016 | + sysv4.3*) |
| 9017 | + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9018 | + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 9019 | + _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' |
| 9020 | + ;; |
| 9021 | |
| 9022 | -# This is the shared library runtime path variable. |
| 9023 | -runpath_var=$runpath_var |
| 9024 | + sysv4*MP*) |
| 9025 | + if test -d /usr/nec; then |
| 9026 | + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9027 | + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 9028 | + runpath_var=LD_RUN_PATH |
| 9029 | + hardcode_runpath_var=yes |
| 9030 | + _LT_TAGVAR(ld_shlibs, $1)=yes |
| 9031 | + fi |
| 9032 | + ;; |
| 9033 | |
| 9034 | -# This is the shared library path variable. |
| 9035 | -shlibpath_var=$shlibpath_var |
| 9036 | + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) |
| 9037 | + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' |
| 9038 | + _LT_TAGVAR(archive_cmds_need_lc, $1)=no |
| 9039 | + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 9040 | + runpath_var='LD_RUN_PATH' |
| 9041 | |
| 9042 | -# Is shlibpath searched before the hard-coded library search path? |
| 9043 | -shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 9044 | + if test "$GCC" = yes; then |
| 9045 | + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9046 | + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9047 | + else |
| 9048 | + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9049 | + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9050 | + fi |
| 9051 | + ;; |
| 9052 | |
| 9053 | -# How to hardcode a shared library path into an executable. |
| 9054 | -hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1) |
| 9055 | + sysv5* | sco3.2v5* | sco5v6*) |
| 9056 | + # Note: We can NOT use -z defs as we might desire, because we do not |
| 9057 | + # link with -lc, and that would cause any symbols used from libc to |
| 9058 | + # always be unresolved, which means just about no library would |
| 9059 | + # ever link correctly. If we're not using GNU ld we use -z text |
| 9060 | + # though, which does catch some bad symbols but isn't as heavy-handed |
| 9061 | + # as -z defs. |
| 9062 | + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' |
| 9063 | + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' |
| 9064 | + _LT_TAGVAR(archive_cmds_need_lc, $1)=no |
| 9065 | + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 9066 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' |
| 9067 | + _LT_TAGVAR(hardcode_libdir_separator, $1)=':' |
| 9068 | + _LT_TAGVAR(link_all_deplibs, $1)=yes |
| 9069 | + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' |
| 9070 | + runpath_var='LD_RUN_PATH' |
| 9071 | |
| 9072 | -# Whether we should hardcode library paths into libraries. |
| 9073 | -hardcode_into_libs=$hardcode_into_libs |
| 9074 | + if test "$GCC" = yes; then |
| 9075 | + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9076 | + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9077 | + else |
| 9078 | + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9079 | + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9080 | + fi |
| 9081 | + ;; |
| 9082 | |
| 9083 | -# Flag to hardcode \$libdir into a binary during linking. |
| 9084 | -# This must work even if \$libdir does not exist. |
| 9085 | -hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) |
| 9086 | + uts4*) |
| 9087 | + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9088 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| 9089 | + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 9090 | + ;; |
| 9091 | |
| 9092 | -# If ld is used when linking, flag to hardcode \$libdir into |
| 9093 | -# a binary during linking. This must work even if \$libdir does |
| 9094 | -# not exist. |
| 9095 | -hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) |
| 9096 | + *) |
| 9097 | + _LT_TAGVAR(ld_shlibs, $1)=no |
| 9098 | + ;; |
| 9099 | + esac |
| 9100 | |
| 9101 | -# Whether we need a single -rpath flag with a separated argument. |
| 9102 | -hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1) |
| 9103 | + if test x$host_vendor = xsni; then |
| 9104 | + case $host in |
| 9105 | + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 9106 | + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym' |
| 9107 | + ;; |
| 9108 | + esac |
| 9109 | + fi |
| 9110 | + fi |
| 9111 | +]) |
| 9112 | +AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) |
| 9113 | +test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no |
| 9114 | |
| 9115 | -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 9116 | -# resulting binary. |
| 9117 | -hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1) |
| 9118 | +_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld |
| 9119 | |
| 9120 | -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 9121 | -# resulting binary. |
| 9122 | -hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1) |
| 9123 | +_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl |
| 9124 | +_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl |
| 9125 | +_LT_DECL([], [extract_expsyms_cmds], [2], |
| 9126 | + [The commands to extract the exported symbol list from a shared archive]) |
| 9127 | |
| 9128 | -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 9129 | -# the resulting binary. |
| 9130 | -hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1) |
| 9131 | +# |
| 9132 | +# Do we need to explicitly link libc? |
| 9133 | +# |
| 9134 | +case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in |
| 9135 | +x|xyes) |
| 9136 | + # Assume -lc should be added |
| 9137 | + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes |
| 9138 | |
| 9139 | -# Set to yes if building a shared library automatically hardcodes DIR into the library |
| 9140 | -# and all subsequent libraries and executables linked against it. |
| 9141 | -hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1) |
| 9142 | + if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 9143 | + case $_LT_TAGVAR(archive_cmds, $1) in |
| 9144 | + *'~'*) |
| 9145 | + # FIXME: we may have to deal with multi-command sequences. |
| 9146 | + ;; |
| 9147 | + '$CC '*) |
| 9148 | + # Test whether the compiler implicitly links with -lc since on some |
| 9149 | + # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 9150 | + # to ld, don't add -lc before -lgcc. |
| 9151 | + AC_MSG_CHECKING([whether -lc should be explicitly linked in]) |
| 9152 | + $RM conftest* |
| 9153 | + echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 9154 | |
| 9155 | -# Variables whose values should be saved in libtool wrapper scripts and |
| 9156 | -# restored at relink time. |
| 9157 | -variables_saved_for_relink="$variables_saved_for_relink" |
| 9158 | + if AC_TRY_EVAL(ac_compile) 2>conftest.err; then |
| 9159 | + soname=conftest |
| 9160 | + lib=conftest |
| 9161 | + libobjs=conftest.$ac_objext |
| 9162 | + deplibs= |
| 9163 | + wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) |
| 9164 | + pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1) |
| 9165 | + compiler_flags=-v |
| 9166 | + linker_flags=-v |
| 9167 | + verstring= |
| 9168 | + output_objdir=. |
| 9169 | + libname=conftest |
| 9170 | + lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1) |
| 9171 | + _LT_TAGVAR(allow_undefined_flag, $1)= |
| 9172 | + if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) |
| 9173 | + then |
| 9174 | + _LT_TAGVAR(archive_cmds_need_lc, $1)=no |
| 9175 | + else |
| 9176 | + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes |
| 9177 | + fi |
| 9178 | + _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag |
| 9179 | + else |
| 9180 | + cat conftest.err 1>&5 |
| 9181 | + fi |
| 9182 | + $RM conftest* |
| 9183 | + AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)]) |
| 9184 | + ;; |
| 9185 | + esac |
| 9186 | + fi |
| 9187 | + ;; |
| 9188 | +esac |
| 9189 | |
| 9190 | -# Whether libtool must link a program against all its dependency libraries. |
| 9191 | -link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1) |
| 9192 | +_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0], |
| 9193 | + [Whether or not to add -lc for building shared libraries]) |
| 9194 | +_LT_TAGDECL([allow_libtool_libs_with_static_runtimes], |
| 9195 | + [enable_shared_with_static_runtimes], [0], |
| 9196 | + [Whether or not to disallow shared libs when runtime libs are static]) |
| 9197 | +_LT_TAGDECL([], [export_dynamic_flag_spec], [1], |
| 9198 | + [Compiler flag to allow reflexive dlopens]) |
| 9199 | +_LT_TAGDECL([], [whole_archive_flag_spec], [1], |
| 9200 | + [Compiler flag to generate shared objects directly from archives]) |
| 9201 | +_LT_TAGDECL([], [compiler_needs_object], [1], |
| 9202 | + [Whether the compiler copes with passing no objects directly]) |
| 9203 | +_LT_TAGDECL([], [old_archive_from_new_cmds], [2], |
| 9204 | + [Create an old-style archive from a shared archive]) |
| 9205 | +_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2], |
| 9206 | + [Create a temporary old-style archive to link instead of a shared archive]) |
| 9207 | +_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive]) |
| 9208 | +_LT_TAGDECL([], [archive_expsym_cmds], [2]) |
| 9209 | +_LT_TAGDECL([], [module_cmds], [2], |
| 9210 | + [Commands used to build a loadable module if different from building |
| 9211 | + a shared archive.]) |
| 9212 | +_LT_TAGDECL([], [module_expsym_cmds], [2]) |
| 9213 | +_LT_TAGDECL([], [with_gnu_ld], [1], |
| 9214 | + [Whether we are building with GNU ld or not]) |
| 9215 | +_LT_TAGDECL([], [allow_undefined_flag], [1], |
| 9216 | + [Flag that allows shared libraries with undefined symbols to be built]) |
| 9217 | +_LT_TAGDECL([], [no_undefined_flag], [1], |
| 9218 | + [Flag that enforces no undefined symbols]) |
| 9219 | +_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], |
| 9220 | + [Flag to hardcode $libdir into a binary during linking. |
| 9221 | + This must work even if $libdir does not exist]) |
| 9222 | +_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1], |
| 9223 | + [[If ld is used when linking, flag to hardcode $libdir into a binary |
| 9224 | + during linking. This must work even if $libdir does not exist]]) |
| 9225 | +_LT_TAGDECL([], [hardcode_libdir_separator], [1], |
| 9226 | + [Whether we need a single "-rpath" flag with a separated argument]) |
| 9227 | +_LT_TAGDECL([], [hardcode_direct], [0], |
| 9228 | + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes |
| 9229 | + DIR into the resulting binary]) |
| 9230 | +_LT_TAGDECL([], [hardcode_direct_absolute], [0], |
| 9231 | + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes |
| 9232 | + DIR into the resulting binary and the resulting library dependency is |
| 9233 | + "absolute", i.e impossible to change by setting ${shlibpath_var} if the |
| 9234 | + library is relocated]) |
| 9235 | +_LT_TAGDECL([], [hardcode_minus_L], [0], |
| 9236 | + [Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
| 9237 | + into the resulting binary]) |
| 9238 | +_LT_TAGDECL([], [hardcode_shlibpath_var], [0], |
| 9239 | + [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
| 9240 | + into the resulting binary]) |
| 9241 | +_LT_TAGDECL([], [hardcode_automatic], [0], |
| 9242 | + [Set to "yes" if building a shared library automatically hardcodes DIR |
| 9243 | + into the library and all subsequent libraries and executables linked |
| 9244 | + against it]) |
| 9245 | +_LT_TAGDECL([], [inherit_rpath], [0], |
| 9246 | + [Set to yes if linker adds runtime paths of dependent libraries |
| 9247 | + to runtime path list]) |
| 9248 | +_LT_TAGDECL([], [link_all_deplibs], [0], |
| 9249 | + [Whether libtool must link a program against all its dependency libraries]) |
| 9250 | +_LT_TAGDECL([], [fix_srcfile_path], [1], |
| 9251 | + [Fix the shell variable $srcfile for the compiler]) |
| 9252 | +_LT_TAGDECL([], [always_export_symbols], [0], |
| 9253 | + [Set to "yes" if exported symbols are required]) |
| 9254 | +_LT_TAGDECL([], [export_symbols_cmds], [2], |
| 9255 | + [The commands to list exported symbols]) |
| 9256 | +_LT_TAGDECL([], [exclude_expsyms], [1], |
| 9257 | + [Symbols that should not be listed in the preloaded symbols]) |
| 9258 | +_LT_TAGDECL([], [include_expsyms], [1], |
| 9259 | + [Symbols that must always be exported]) |
| 9260 | +_LT_TAGDECL([], [prelink_cmds], [2], |
| 9261 | + [Commands necessary for linking programs (against libraries) with templates]) |
| 9262 | +_LT_TAGDECL([], [file_list_spec], [1], |
| 9263 | + [Specify filename containing input files]) |
| 9264 | +dnl FIXME: Not yet implemented |
| 9265 | +dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1], |
| 9266 | +dnl [Compiler flag to generate thread safe objects]) |
| 9267 | +])# _LT_LINKER_SHLIBS |
| 9268 | |
| 9269 | -# Compile-time system search path for libraries |
| 9270 | -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 9271 | |
| 9272 | -# Run-time system search path for libraries |
| 9273 | -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 9274 | +# _LT_LANG_C_CONFIG([TAG]) |
| 9275 | +# ------------------------ |
| 9276 | +# Ensure that the configuration variables for a C compiler are suitably |
| 9277 | +# defined. These variables are subsequently used by _LT_CONFIG to write |
| 9278 | +# the compiler configuration to `libtool'. |
| 9279 | +m4_defun([_LT_LANG_C_CONFIG], |
| 9280 | +[m4_require([_LT_DECL_EGREP])dnl |
| 9281 | +lt_save_CC="$CC" |
| 9282 | +AC_LANG_PUSH(C) |
| 9283 | |
| 9284 | -# Fix the shell variable \$srcfile for the compiler. |
| 9285 | -fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)" |
| 9286 | +# Source file extension for C test sources. |
| 9287 | +ac_ext=c |
| 9288 | |
| 9289 | -# Set to yes if exported symbols are required. |
| 9290 | -always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1) |
| 9291 | +# Object file extension for compiled C test sources. |
| 9292 | +objext=o |
| 9293 | +_LT_TAGVAR(objext, $1)=$objext |
| 9294 | |
| 9295 | -# The commands to list exported symbols. |
| 9296 | -export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1) |
| 9297 | +# Code to be used in simple compile tests |
| 9298 | +lt_simple_compile_test_code="int some_variable = 0;" |
| 9299 | |
| 9300 | -# The commands to extract the exported symbol list from a shared archive. |
| 9301 | -extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 9302 | +# Code to be used in simple link tests |
| 9303 | +lt_simple_link_test_code='int main(){return(0);}' |
| 9304 | |
| 9305 | -# Symbols that should not be listed in the preloaded symbols. |
| 9306 | -exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1) |
| 9307 | +_LT_TAG_COMPILER |
| 9308 | +# Save the default compiler, since it gets overwritten when the other |
| 9309 | +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. |
| 9310 | +compiler_DEFAULT=$CC |
| 9311 | |
| 9312 | -# Symbols that must always be exported. |
| 9313 | -include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1) |
| 9314 | +# save warnings/boilerplate of simple test code |
| 9315 | +_LT_COMPILER_BOILERPLATE |
| 9316 | +_LT_LINKER_BOILERPLATE |
| 9317 | |
| 9318 | -ifelse([$1],[], |
| 9319 | -[# ### END LIBTOOL CONFIG], |
| 9320 | -[# ### END LIBTOOL TAG CONFIG: $tagname]) |
| 9321 | +## CAVEAT EMPTOR: |
| 9322 | +## There is no encapsulation within the following macros, do not change |
| 9323 | +## the running order or otherwise move them around unless you know exactly |
| 9324 | +## what you are doing... |
| 9325 | +if test -n "$compiler"; then |
| 9326 | + _LT_COMPILER_NO_RTTI($1) |
| 9327 | + _LT_COMPILER_PIC($1) |
| 9328 | + _LT_COMPILER_C_O($1) |
| 9329 | + _LT_COMPILER_FILE_LOCKS($1) |
| 9330 | + _LT_LINKER_SHLIBS($1) |
| 9331 | + _LT_SYS_DYNAMIC_LINKER($1) |
| 9332 | + _LT_LINKER_HARDCODE_LIBPATH($1) |
| 9333 | + LT_SYS_DLOPEN_SELF |
| 9334 | + _LT_CMD_STRIPLIB |
| 9335 | + |
| 9336 | + # Report which library types will actually be built |
| 9337 | + AC_MSG_CHECKING([if libtool supports shared libraries]) |
| 9338 | + AC_MSG_RESULT([$can_build_shared]) |
| 9339 | |
| 9340 | -__EOF__ |
| 9341 | + AC_MSG_CHECKING([whether to build shared libraries]) |
| 9342 | + test "$can_build_shared" = "no" && enable_shared=no |
| 9343 | |
| 9344 | -ifelse([$1],[], [ |
| 9345 | + # On AIX, shared libraries and static libraries use the same namespace, and |
| 9346 | + # are all built from PIC. |
| 9347 | case $host_os in |
| 9348 | aix3*) |
| 9349 | - cat <<\EOF >> "$cfgfile" |
| 9350 | + test "$enable_shared" = yes && enable_static=no |
| 9351 | + if test -n "$RANLIB"; then |
| 9352 | + archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 9353 | + postinstall_cmds='$RANLIB $lib' |
| 9354 | + fi |
| 9355 | + ;; |
| 9356 | |
| 9357 | -# AIX sometimes has problems with the GCC collect2 program. For some |
| 9358 | -# reason, if we set the COLLECT_NAMES environment variable, the problems |
| 9359 | -# vanish in a puff of smoke. |
| 9360 | -if test "X${COLLECT_NAMES+set}" != Xset; then |
| 9361 | - COLLECT_NAMES= |
| 9362 | - export COLLECT_NAMES |
| 9363 | -fi |
| 9364 | -EOF |
| 9365 | + aix[[4-9]]*) |
| 9366 | + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 9367 | + test "$enable_shared" = yes && enable_static=no |
| 9368 | + fi |
| 9369 | ;; |
| 9370 | esac |
| 9371 | + AC_MSG_RESULT([$enable_shared]) |
| 9372 | |
| 9373 | - # We use sed instead of cat because bash on DJGPP gets confused if |
| 9374 | - # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 9375 | - # text mode, it properly converts lines to CR/LF. This bash problem |
| 9376 | - # is reportedly fixed, but why not run on old versions too? |
| 9377 | - sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) |
| 9378 | + AC_MSG_CHECKING([whether to build static libraries]) |
| 9379 | + # Make sure either enable_shared or enable_static is yes. |
| 9380 | + test "$enable_shared" = yes || enable_static=yes |
| 9381 | + AC_MSG_RESULT([$enable_static]) |
| 9382 | |
| 9383 | - mv -f "$cfgfile" "$ofile" || \ |
| 9384 | - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
| 9385 | - chmod +x "$ofile" |
| 9386 | -]) |
| 9387 | -else |
| 9388 | - # If there is no Makefile yet, we rely on a make rule to execute |
| 9389 | - # `config.status --recheck' to rerun these tests and create the |
| 9390 | - # libtool script then. |
| 9391 | - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 9392 | - if test -f "$ltmain_in"; then |
| 9393 | - test -f Makefile && make "$ltmain" |
| 9394 | - fi |
| 9395 | + _LT_CONFIG($1) |
| 9396 | fi |
| 9397 | -])# AC_LIBTOOL_CONFIG |
| 9398 | - |
| 9399 | - |
| 9400 | -# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME]) |
| 9401 | -# ------------------------------------------- |
| 9402 | -AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], |
| 9403 | -[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl |
| 9404 | - |
| 9405 | -_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= |
| 9406 | +AC_LANG_POP |
| 9407 | +CC="$lt_save_CC" |
| 9408 | +])# _LT_LANG_C_CONFIG |
| 9409 | |
| 9410 | -if test "$GCC" = yes; then |
| 9411 | - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' |
| 9412 | |
| 9413 | - AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], |
| 9414 | - lt_cv_prog_compiler_rtti_exceptions, |
| 9415 | - [-fno-rtti -fno-exceptions], [], |
| 9416 | - [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) |
| 9417 | +# _LT_PROG_CXX |
| 9418 | +# ------------ |
| 9419 | +# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++ |
| 9420 | +# compiler, we have our own version here. |
| 9421 | +m4_defun([_LT_PROG_CXX], |
| 9422 | +[ |
| 9423 | +pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes]) |
| 9424 | +AC_PROG_CXX |
| 9425 | +if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 9426 | + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 9427 | + (test "X$CXX" != "Xg++"))) ; then |
| 9428 | + AC_PROG_CXXCPP |
| 9429 | +else |
| 9430 | + _lt_caught_CXX_error=yes |
| 9431 | fi |
| 9432 | -])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI |
| 9433 | +popdef([AC_MSG_ERROR]) |
| 9434 | +])# _LT_PROG_CXX |
| 9435 | |
| 9436 | +dnl aclocal-1.4 backwards compatibility: |
| 9437 | +dnl AC_DEFUN([_LT_PROG_CXX], []) |
| 9438 | |
| 9439 | -# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE |
| 9440 | -# --------------------------------- |
| 9441 | -AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], |
| 9442 | -[AC_REQUIRE([AC_CANONICAL_HOST]) |
| 9443 | -AC_REQUIRE([AC_PROG_NM]) |
| 9444 | -AC_REQUIRE([AC_OBJEXT]) |
| 9445 | -# Check for command to grab the raw symbol name followed by C symbol from nm. |
| 9446 | -AC_MSG_CHECKING([command to parse $NM output from $compiler object]) |
| 9447 | -AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], |
| 9448 | -[ |
| 9449 | -# These are sane defaults that work on at least a few old systems. |
| 9450 | -# [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 9451 | - |
| 9452 | -# Character class describing NM global symbol codes. |
| 9453 | -symcode='[[BCDEGRST]]' |
| 9454 | |
| 9455 | -# Regexp to match symbols that can be accessed directly from C. |
| 9456 | -sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' |
| 9457 | +# _LT_LANG_CXX_CONFIG([TAG]) |
| 9458 | +# -------------------------- |
| 9459 | +# Ensure that the configuration variables for a C++ compiler are suitably |
| 9460 | +# defined. These variables are subsequently used by _LT_CONFIG to write |
| 9461 | +# the compiler configuration to `libtool'. |
| 9462 | +m4_defun([_LT_LANG_CXX_CONFIG], |
| 9463 | +[AC_REQUIRE([_LT_PROG_CXX])dnl |
| 9464 | +m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
| 9465 | +m4_require([_LT_DECL_EGREP])dnl |
| 9466 | + |
| 9467 | +AC_LANG_PUSH(C++) |
| 9468 | +_LT_TAGVAR(archive_cmds_need_lc, $1)=no |
| 9469 | +_LT_TAGVAR(allow_undefined_flag, $1)= |
| 9470 | +_LT_TAGVAR(always_export_symbols, $1)=no |
| 9471 | +_LT_TAGVAR(archive_expsym_cmds, $1)= |
| 9472 | +_LT_TAGVAR(compiler_needs_object, $1)=no |
| 9473 | +_LT_TAGVAR(export_dynamic_flag_spec, $1)= |
| 9474 | +_LT_TAGVAR(hardcode_direct, $1)=no |
| 9475 | +_LT_TAGVAR(hardcode_direct_absolute, $1)=no |
| 9476 | +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= |
| 9477 | +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= |
| 9478 | +_LT_TAGVAR(hardcode_libdir_separator, $1)= |
| 9479 | +_LT_TAGVAR(hardcode_minus_L, $1)=no |
| 9480 | +_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
| 9481 | +_LT_TAGVAR(hardcode_automatic, $1)=no |
| 9482 | +_LT_TAGVAR(inherit_rpath, $1)=no |
| 9483 | +_LT_TAGVAR(module_cmds, $1)= |
| 9484 | +_LT_TAGVAR(module_expsym_cmds, $1)= |
| 9485 | +_LT_TAGVAR(link_all_deplibs, $1)=unknown |
| 9486 | +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds |
| 9487 | +_LT_TAGVAR(no_undefined_flag, $1)= |
| 9488 | +_LT_TAGVAR(whole_archive_flag_spec, $1)= |
| 9489 | +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no |
| 9490 | |
| 9491 | -# Transform an extracted symbol line into a proper C declaration |
| 9492 | -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 9493 | +# Source file extension for C++ test sources. |
| 9494 | +ac_ext=cpp |
| 9495 | |
| 9496 | -# Transform an extracted symbol line into symbol name and symbol address |
| 9497 | -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'" |
| 9498 | +# Object file extension for compiled C++ test sources. |
| 9499 | +objext=o |
| 9500 | +_LT_TAGVAR(objext, $1)=$objext |
| 9501 | |
| 9502 | -# Define system-specific variables. |
| 9503 | -case $host_os in |
| 9504 | -aix*) |
| 9505 | - symcode='[[BCDT]]' |
| 9506 | - ;; |
| 9507 | -cygwin* | mingw* | pw32*) |
| 9508 | - symcode='[[ABCDGISTW]]' |
| 9509 | - ;; |
| 9510 | -hpux*) # Its linker distinguishes data from code symbols |
| 9511 | - if test "$host_cpu" = ia64; then |
| 9512 | - symcode='[[ABCDEGRST]]' |
| 9513 | +# No sense in running all these tests if we already determined that |
| 9514 | +# the CXX compiler isn't working. Some variables (like enable_shared) |
| 9515 | +# are currently assumed to apply to all compilers on this platform, |
| 9516 | +# and will be corrupted by setting them based on a non-working compiler. |
| 9517 | +if test "$_lt_caught_CXX_error" != yes; then |
| 9518 | + # Code to be used in simple compile tests |
| 9519 | + lt_simple_compile_test_code="int some_variable = 0;" |
| 9520 | + |
| 9521 | + # Code to be used in simple link tests |
| 9522 | + lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' |
| 9523 | + |
| 9524 | + # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 9525 | + _LT_TAG_COMPILER |
| 9526 | + |
| 9527 | + # save warnings/boilerplate of simple test code |
| 9528 | + _LT_COMPILER_BOILERPLATE |
| 9529 | + _LT_LINKER_BOILERPLATE |
| 9530 | + |
| 9531 | + # Allow CC to be a program name with arguments. |
| 9532 | + lt_save_CC=$CC |
| 9533 | + lt_save_LD=$LD |
| 9534 | + lt_save_GCC=$GCC |
| 9535 | + GCC=$GXX |
| 9536 | + lt_save_with_gnu_ld=$with_gnu_ld |
| 9537 | + lt_save_path_LD=$lt_cv_path_LD |
| 9538 | + if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
| 9539 | + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
| 9540 | + else |
| 9541 | + $as_unset lt_cv_prog_gnu_ld |
| 9542 | fi |
| 9543 | - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 9544 | - 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'" |
| 9545 | - ;; |
| 9546 | -linux*) |
| 9547 | - if test "$host_cpu" = ia64; then |
| 9548 | - symcode='[[ABCDGIRSTW]]' |
| 9549 | - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 9550 | - lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" |
| 9551 | + if test -n "${lt_cv_path_LDCXX+set}"; then |
| 9552 | + lt_cv_path_LD=$lt_cv_path_LDCXX |
| 9553 | + else |
| 9554 | + $as_unset lt_cv_path_LD |
| 9555 | fi |
| 9556 | - ;; |
| 9557 | -irix* | nonstopux*) |
| 9558 | - symcode='[[BCDEGRST]]' |
| 9559 | - ;; |
| 9560 | -osf*) |
| 9561 | - symcode='[[BCDEGQRST]]' |
| 9562 | - ;; |
| 9563 | -solaris*) |
| 9564 | - symcode='[[BDRT]]' |
| 9565 | - ;; |
| 9566 | -sco3.2v5*) |
| 9567 | - symcode='[[DT]]' |
| 9568 | - ;; |
| 9569 | -sysv4.2uw2*) |
| 9570 | - symcode='[[DT]]' |
| 9571 | - ;; |
| 9572 | -sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 9573 | - symcode='[[ABDT]]' |
| 9574 | - ;; |
| 9575 | -sysv4) |
| 9576 | - symcode='[[DFNSTU]]' |
| 9577 | - ;; |
| 9578 | -esac |
| 9579 | - |
| 9580 | -# Handle CRLF in mingw tool chain |
| 9581 | -opt_cr= |
| 9582 | -case $build_os in |
| 9583 | -mingw*) |
| 9584 | - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 9585 | - ;; |
| 9586 | -esac |
| 9587 | - |
| 9588 | -# If we're using GNU nm, then use its standard symbol codes. |
| 9589 | -case `$NM -V 2>&1` in |
| 9590 | -*GNU* | *'with BFD'*) |
| 9591 | - symcode='[[ABCDGIRSTW]]' ;; |
| 9592 | -esac |
| 9593 | - |
| 9594 | -# Try without a prefix undercore, then with it. |
| 9595 | -for ac_symprfx in "" "_"; do |
| 9596 | - |
| 9597 | - # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 9598 | - symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 9599 | - |
| 9600 | - # Write the raw and C identifiers. |
| 9601 | - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
| 9602 | - |
| 9603 | - # Check to see that the pipe works correctly. |
| 9604 | - pipe_works=no |
| 9605 | - |
| 9606 | - rm -f conftest* |
| 9607 | - cat > conftest.$ac_ext <<EOF |
| 9608 | -#ifdef __cplusplus |
| 9609 | -extern "C" { |
| 9610 | -#endif |
| 9611 | -char nm_test_var; |
| 9612 | -void nm_test_func(){} |
| 9613 | -#ifdef __cplusplus |
| 9614 | -} |
| 9615 | -#endif |
| 9616 | -int main(){nm_test_var='a';nm_test_func();return(0);} |
| 9617 | -EOF |
| 9618 | - |
| 9619 | - if AC_TRY_EVAL(ac_compile); then |
| 9620 | - # Now try to grab the symbols. |
| 9621 | - nlist=conftest.nm |
| 9622 | - if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then |
| 9623 | - # Try sorting and uniquifying the output. |
| 9624 | - if sort "$nlist" | uniq > "$nlist"T; then |
| 9625 | - mv -f "$nlist"T "$nlist" |
| 9626 | - else |
| 9627 | - rm -f "$nlist"T |
| 9628 | - fi |
| 9629 | - |
| 9630 | - # Make sure that we snagged all the symbols we need. |
| 9631 | - if grep ' nm_test_var$' "$nlist" >/dev/null; then |
| 9632 | - if grep ' nm_test_func$' "$nlist" >/dev/null; then |
| 9633 | - cat <<EOF > conftest.$ac_ext |
| 9634 | -#ifdef __cplusplus |
| 9635 | -extern "C" { |
| 9636 | -#endif |
| 9637 | - |
| 9638 | -EOF |
| 9639 | - # Now generate the symbol file. |
| 9640 | - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
| 9641 | - |
| 9642 | - cat <<EOF >> conftest.$ac_ext |
| 9643 | -#if defined (__STDC__) && __STDC__ |
| 9644 | -# define lt_ptr_t void * |
| 9645 | -#else |
| 9646 | -# define lt_ptr_t char * |
| 9647 | -# define const |
| 9648 | -#endif |
| 9649 | - |
| 9650 | -/* The mapping between symbol names and symbols. */ |
| 9651 | -const struct { |
| 9652 | - const char *name; |
| 9653 | - lt_ptr_t address; |
| 9654 | -} |
| 9655 | -lt_preloaded_symbols[[]] = |
| 9656 | -{ |
| 9657 | -EOF |
| 9658 | - $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
| 9659 | - cat <<\EOF >> conftest.$ac_ext |
| 9660 | - {0, (lt_ptr_t) 0} |
| 9661 | -}; |
| 9662 | + test -z "${LDCXX+set}" || LD=$LDCXX |
| 9663 | + CC=${CXX-"c++"} |
| 9664 | + compiler=$CC |
| 9665 | + _LT_TAGVAR(compiler, $1)=$CC |
| 9666 | + _LT_CC_BASENAME([$compiler]) |
| 9667 | |
| 9668 | -#ifdef __cplusplus |
| 9669 | -} |
| 9670 | -#endif |
| 9671 | -EOF |
| 9672 | - # Now try linking the two files. |
| 9673 | - mv conftest.$ac_objext conftstm.$ac_objext |
| 9674 | - lt_save_LIBS="$LIBS" |
| 9675 | - lt_save_CFLAGS="$CFLAGS" |
| 9676 | - LIBS="conftstm.$ac_objext" |
| 9677 | - CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" |
| 9678 | - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then |
| 9679 | - pipe_works=yes |
| 9680 | - fi |
| 9681 | - LIBS="$lt_save_LIBS" |
| 9682 | - CFLAGS="$lt_save_CFLAGS" |
| 9683 | - else |
| 9684 | - echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD |
| 9685 | - fi |
| 9686 | - else |
| 9687 | - echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD |
| 9688 | - fi |
| 9689 | + if test -n "$compiler"; then |
| 9690 | + # We don't want -fno-exception when compiling C++ code, so set the |
| 9691 | + # no_builtin_flag separately |
| 9692 | + if test "$GXX" = yes; then |
| 9693 | + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' |
| 9694 | else |
| 9695 | - echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD |
| 9696 | + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= |
| 9697 | fi |
| 9698 | - else |
| 9699 | - echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD |
| 9700 | - cat conftest.$ac_ext >&5 |
| 9701 | - fi |
| 9702 | - rm -f conftest* conftst* |
| 9703 | - |
| 9704 | - # Do not use the global_symbol_pipe unless it works. |
| 9705 | - if test "$pipe_works" = yes; then |
| 9706 | - break |
| 9707 | - else |
| 9708 | - lt_cv_sys_global_symbol_pipe= |
| 9709 | - fi |
| 9710 | -done |
| 9711 | -]) |
| 9712 | -if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 9713 | - lt_cv_sys_global_symbol_to_cdecl= |
| 9714 | -fi |
| 9715 | -if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
| 9716 | - AC_MSG_RESULT(failed) |
| 9717 | -else |
| 9718 | - AC_MSG_RESULT(ok) |
| 9719 | -fi |
| 9720 | -]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE |
| 9721 | |
| 9722 | + if test "$GXX" = yes; then |
| 9723 | + # Set up default GNU C++ configuration |
| 9724 | |
| 9725 | -# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME]) |
| 9726 | -# --------------------------------------- |
| 9727 | -AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC], |
| 9728 | -[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)= |
| 9729 | -_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= |
| 9730 | -_LT_AC_TAGVAR(lt_prog_compiler_static, $1)= |
| 9731 | + LT_PATH_LD |
| 9732 | |
| 9733 | -AC_MSG_CHECKING([for $compiler option to produce PIC]) |
| 9734 | - ifelse([$1],[CXX],[ |
| 9735 | - # C++ specific cases for pic, static, wl, etc. |
| 9736 | - if test "$GXX" = yes; then |
| 9737 | - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 9738 | - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' |
| 9739 | + # Check if GNU C++ uses GNU ld as the underlying linker, since the |
| 9740 | + # archiving commands below assume that GNU ld is being used. |
| 9741 | + if test "$with_gnu_ld" = yes; then |
| 9742 | + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9743 | + _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' |
| 9744 | + |
| 9745 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
| 9746 | + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
| 9747 | + |
| 9748 | + # If archive_cmds runs LD, not CC, wlarc should be empty |
| 9749 | + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
| 9750 | + # investigate it a little bit more. (MM) |
| 9751 | + wlarc='${wl}' |
| 9752 | + |
| 9753 | + # ancient GNU ld didn't support --whole-archive et. al. |
| 9754 | + if eval "`$CC -print-prog-name=ld` --help 2>&1" | |
| 9755 | + $GREP 'no-whole-archive' > /dev/null; then |
| 9756 | + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 9757 | + else |
| 9758 | + _LT_TAGVAR(whole_archive_flag_spec, $1)= |
| 9759 | + fi |
| 9760 | + else |
| 9761 | + with_gnu_ld=no |
| 9762 | + wlarc= |
| 9763 | |
| 9764 | - case $host_os in |
| 9765 | - aix*) |
| 9766 | - # All AIX code is PIC. |
| 9767 | - if test "$host_cpu" = ia64; then |
| 9768 | - # AIX 5 now supports IA64 processor |
| 9769 | - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 9770 | - fi |
| 9771 | - ;; |
| 9772 | - amigaos*) |
| 9773 | - # FIXME: we need at least 68020 code to build shared libraries, but |
| 9774 | - # adding the `-m68020' flag to GCC prevents building anything better, |
| 9775 | - # like `-m68040'. |
| 9776 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' |
| 9777 | - ;; |
| 9778 | - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 9779 | - # PIC is the default for these OSes. |
| 9780 | - ;; |
| 9781 | - mingw* | cygwin* | os2* | pw32*) |
| 9782 | - # This hack is so that the source file can tell whether it is being |
| 9783 | - # built for inclusion in a dll (and should export symbols for example). |
| 9784 | - # Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 9785 | - # (--disable-auto-import) libraries |
| 9786 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' |
| 9787 | - ;; |
| 9788 | - darwin* | rhapsody*) |
| 9789 | - # PIC is the default on this platform |
| 9790 | - # Common symbols not allowed in MH_DYLIB files |
| 9791 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' |
| 9792 | - ;; |
| 9793 | - *djgpp*) |
| 9794 | - # DJGPP does not support shared libraries at all |
| 9795 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= |
| 9796 | - ;; |
| 9797 | - interix3*) |
| 9798 | - # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 9799 | - # Instead, we relocate shared libraries at runtime. |
| 9800 | - ;; |
| 9801 | - sysv4*MP*) |
| 9802 | - if test -d /usr/nec; then |
| 9803 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic |
| 9804 | + # A generic and very simple default shared library creation |
| 9805 | + # command for GNU C++ for the case where it uses the native |
| 9806 | + # linker, instead of GNU ld. If possible, this setting should |
| 9807 | + # overridden to take advantage of the native linker features on |
| 9808 | + # the platform it is being used on. |
| 9809 | + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 9810 | fi |
| 9811 | - ;; |
| 9812 | - hpux*) |
| 9813 | - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 9814 | - # not for PA HP-UX. |
| 9815 | - case $host_cpu in |
| 9816 | - hppa*64*|ia64*) |
| 9817 | - ;; |
| 9818 | - *) |
| 9819 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
| 9820 | - ;; |
| 9821 | - esac |
| 9822 | - ;; |
| 9823 | - *) |
| 9824 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
| 9825 | - ;; |
| 9826 | - esac |
| 9827 | - else |
| 9828 | + |
| 9829 | + # Commands to make compiler produce verbose output that lists |
| 9830 | + # what "hidden" libraries, object files and flags are used when |
| 9831 | + # linking a shared library. |
| 9832 | + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' |
| 9833 | + |
| 9834 | + else |
| 9835 | + GXX=no |
| 9836 | + with_gnu_ld=no |
| 9837 | + wlarc= |
| 9838 | + fi |
| 9839 | + |
| 9840 | + # PORTME: fill in a description of your system's C++ link characteristics |
| 9841 | + AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) |
| 9842 | + _LT_TAGVAR(ld_shlibs, $1)=yes |
| 9843 | case $host_os in |
| 9844 | - aix4* | aix5*) |
| 9845 | - # All AIX code is PIC. |
| 9846 | - if test "$host_cpu" = ia64; then |
| 9847 | - # AIX 5 now supports IA64 processor |
| 9848 | - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 9849 | + aix3*) |
| 9850 | + # FIXME: insert proper C++ library support |
| 9851 | + _LT_TAGVAR(ld_shlibs, $1)=no |
| 9852 | + ;; |
| 9853 | + aix[[4-9]]*) |
| 9854 | + if test "$host_cpu" = ia64; then |
| 9855 | + # On IA64, the linker does run time linking by default, so we don't |
| 9856 | + # have to do anything special. |
| 9857 | + aix_use_runtimelinking=no |
| 9858 | + exp_sym_flag='-Bexport' |
| 9859 | + no_entry_flag="" |
| 9860 | + else |
| 9861 | + aix_use_runtimelinking=no |
| 9862 | + |
| 9863 | + # Test if we are trying to use run time linking or normal |
| 9864 | + # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 9865 | + # need to do runtime linking. |
| 9866 | + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) |
| 9867 | + for ld_flag in $LDFLAGS; do |
| 9868 | + case $ld_flag in |
| 9869 | + *-brtl*) |
| 9870 | + aix_use_runtimelinking=yes |
| 9871 | + break |
| 9872 | + ;; |
| 9873 | + esac |
| 9874 | + done |
| 9875 | + ;; |
| 9876 | + esac |
| 9877 | + |
| 9878 | + exp_sym_flag='-bexport' |
| 9879 | + no_entry_flag='-bnoentry' |
| 9880 | + fi |
| 9881 | + |
| 9882 | + # When large executables or shared objects are built, AIX ld can |
| 9883 | + # have problems creating the table of contents. If linking a library |
| 9884 | + # or program results in "error TOC overflow" add -mminimal-toc to |
| 9885 | + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 9886 | + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 9887 | + |
| 9888 | + _LT_TAGVAR(archive_cmds, $1)='' |
| 9889 | + _LT_TAGVAR(hardcode_direct, $1)=yes |
| 9890 | + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes |
| 9891 | + _LT_TAGVAR(hardcode_libdir_separator, $1)=':' |
| 9892 | + _LT_TAGVAR(link_all_deplibs, $1)=yes |
| 9893 | + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' |
| 9894 | + |
| 9895 | + if test "$GXX" = yes; then |
| 9896 | + case $host_os in aix4.[[012]]|aix4.[[012]].*) |
| 9897 | + # We only want to do this on AIX 4.2 and lower, the check |
| 9898 | + # below for broken collect2 doesn't work under 4.3+ |
| 9899 | + collect2name=`${CC} -print-prog-name=collect2` |
| 9900 | + if test -f "$collect2name" && |
| 9901 | + strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
| 9902 | + then |
| 9903 | + # We have reworked collect2 |
| 9904 | + : |
| 9905 | + else |
| 9906 | + # We have old collect2 |
| 9907 | + _LT_TAGVAR(hardcode_direct, $1)=unsupported |
| 9908 | + # It fails to find uninstalled libraries when the uninstalled |
| 9909 | + # path is not listed in the libpath. Setting hardcode_minus_L |
| 9910 | + # to unsupported forces relinking |
| 9911 | + _LT_TAGVAR(hardcode_minus_L, $1)=yes |
| 9912 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| 9913 | + _LT_TAGVAR(hardcode_libdir_separator, $1)= |
| 9914 | + fi |
| 9915 | + esac |
| 9916 | + shared_flag='-shared' |
| 9917 | + if test "$aix_use_runtimelinking" = yes; then |
| 9918 | + shared_flag="$shared_flag "'${wl}-G' |
| 9919 | + fi |
| 9920 | + else |
| 9921 | + # not using gcc |
| 9922 | + if test "$host_cpu" = ia64; then |
| 9923 | + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 9924 | + # chokes on -Wl,-G. The following line is correct: |
| 9925 | + shared_flag='-G' |
| 9926 | + else |
| 9927 | + if test "$aix_use_runtimelinking" = yes; then |
| 9928 | + shared_flag='${wl}-G' |
| 9929 | + else |
| 9930 | + shared_flag='${wl}-bM:SRE' |
| 9931 | + fi |
| 9932 | + fi |
| 9933 | + fi |
| 9934 | + |
| 9935 | + # It seems that -bexpall does not export symbols beginning with |
| 9936 | + # underscore (_), so it is better to generate a list of symbols to |
| 9937 | + # export. |
| 9938 | + _LT_TAGVAR(always_export_symbols, $1)=yes |
| 9939 | + if test "$aix_use_runtimelinking" = yes; then |
| 9940 | + # Warning - without using the other runtime loading flags (-brtl), |
| 9941 | + # -berok will link without error, but may produce a broken library. |
| 9942 | + _LT_TAGVAR(allow_undefined_flag, $1)='-berok' |
| 9943 | + # Determine the default libpath from the value encoded in an empty |
| 9944 | + # executable. |
| 9945 | + _LT_SYS_MODULE_PATH_AIX |
| 9946 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 9947 | + |
| 9948 | + _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" |
| 9949 | + else |
| 9950 | + if test "$host_cpu" = ia64; then |
| 9951 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' |
| 9952 | + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" |
| 9953 | + _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" |
| 9954 | + else |
| 9955 | + # Determine the default libpath from the value encoded in an |
| 9956 | + # empty executable. |
| 9957 | + _LT_SYS_MODULE_PATH_AIX |
| 9958 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 9959 | + # Warning - without using the other run time loading flags, |
| 9960 | + # -berok will link without error, but may produce a broken library. |
| 9961 | + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' |
| 9962 | + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' |
| 9963 | + # Exported symbols can be pulled into shared objects from archives |
| 9964 | + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' |
| 9965 | + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes |
| 9966 | + # This is similar to how AIX traditionally builds its shared |
| 9967 | + # libraries. |
| 9968 | + _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' |
| 9969 | + fi |
| 9970 | + fi |
| 9971 | + ;; |
| 9972 | + |
| 9973 | + beos*) |
| 9974 | + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 9975 | + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported |
| 9976 | + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 9977 | + # support --undefined. This deserves some investigation. FIXME |
| 9978 | + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9979 | else |
| 9980 | - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' |
| 9981 | + _LT_TAGVAR(ld_shlibs, $1)=no |
| 9982 | fi |
| 9983 | ;; |
| 9984 | + |
| 9985 | chorus*) |
| 9986 | - case $cc_basename in |
| 9987 | - cxch68*) |
| 9988 | - # Green Hills C++ Compiler |
| 9989 | - # _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" |
| 9990 | + case $cc_basename in |
| 9991 | + *) |
| 9992 | + # FIXME: insert proper C++ library support |
| 9993 | + _LT_TAGVAR(ld_shlibs, $1)=no |
| 9994 | ;; |
| 9995 | - esac |
| 9996 | + esac |
| 9997 | + ;; |
| 9998 | + |
| 9999 | + cygwin* | mingw* | pw32*) |
| 10000 | + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, |
| 10001 | + # as there is no search path for DLLs. |
| 10002 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| 10003 | + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported |
| 10004 | + _LT_TAGVAR(always_export_symbols, $1)=no |
| 10005 | + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
| 10006 | + |
| 10007 | + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
| 10008 | + _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' |
| 10009 | + # If the export-symbols file already is a .def file (1st line |
| 10010 | + # is EXPORTS), use it as is; otherwise, prepend... |
| 10011 | + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 10012 | + cp $export_symbols $output_objdir/$soname.def; |
| 10013 | + else |
| 10014 | + echo EXPORTS > $output_objdir/$soname.def; |
| 10015 | + cat $export_symbols >> $output_objdir/$soname.def; |
| 10016 | + fi~ |
| 10017 | + $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' |
| 10018 | + else |
| 10019 | + _LT_TAGVAR(ld_shlibs, $1)=no |
| 10020 | + fi |
| 10021 | + ;; |
| 10022 | + darwin* | rhapsody*) |
| 10023 | + _LT_DARWIN_LINKER_FEATURES($1) |
| 10024 | ;; |
| 10025 | - darwin*) |
| 10026 | - # PIC is the default on this platform |
| 10027 | - # Common symbols not allowed in MH_DYLIB files |
| 10028 | - case $cc_basename in |
| 10029 | - xlc*) |
| 10030 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' |
| 10031 | - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 10032 | - ;; |
| 10033 | - esac |
| 10034 | - ;; |
| 10035 | + |
| 10036 | dgux*) |
| 10037 | - case $cc_basename in |
| 10038 | - ec++*) |
| 10039 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 10040 | + case $cc_basename in |
| 10041 | + ec++*) |
| 10042 | + # FIXME: insert proper C++ library support |
| 10043 | + _LT_TAGVAR(ld_shlibs, $1)=no |
| 10044 | ;; |
| 10045 | - ghcx*) |
| 10046 | + ghcx*) |
| 10047 | # Green Hills C++ Compiler |
| 10048 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
| 10049 | + # FIXME: insert proper C++ library support |
| 10050 | + _LT_TAGVAR(ld_shlibs, $1)=no |
| 10051 | ;; |
| 10052 | - *) |
| 10053 | + *) |
| 10054 | + # FIXME: insert proper C++ library support |
| 10055 | + _LT_TAGVAR(ld_shlibs, $1)=no |
| 10056 | ;; |
| 10057 | - esac |
| 10058 | - ;; |
| 10059 | - freebsd* | kfreebsd*-gnu | dragonfly*) |
| 10060 | - # FreeBSD uses GNU C++ |
| 10061 | - ;; |
| 10062 | - hpux9* | hpux10* | hpux11*) |
| 10063 | - case $cc_basename in |
| 10064 | - CC*) |
| 10065 | - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 10066 | - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' |
| 10067 | - if test "$host_cpu" != ia64; then |
| 10068 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' |
| 10069 | - fi |
| 10070 | + esac |
| 10071 | + ;; |
| 10072 | + |
| 10073 | + freebsd[[12]]*) |
| 10074 | + # C++ shared libraries reported to be fairly broken before |
| 10075 | + # switch to ELF |
| 10076 | + _LT_TAGVAR(ld_shlibs, $1)=no |
| 10077 | + ;; |
| 10078 | + |
| 10079 | + freebsd-elf*) |
| 10080 | + _LT_TAGVAR(archive_cmds_need_lc, $1)=no |
| 10081 | + ;; |
| 10082 | + |
| 10083 | + freebsd* | dragonfly*) |
| 10084 | + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
| 10085 | + # conventions |
| 10086 | + _LT_TAGVAR(ld_shlibs, $1)=yes |
| 10087 | + ;; |
| 10088 | + |
| 10089 | + gnu*) |
| 10090 | + ;; |
| 10091 | + |
| 10092 | + hpux9*) |
| 10093 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
| 10094 | + _LT_TAGVAR(hardcode_libdir_separator, $1)=: |
| 10095 | + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
| 10096 | + _LT_TAGVAR(hardcode_direct, $1)=yes |
| 10097 | + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, |
| 10098 | + # but as the default |
| 10099 | + # location of the library. |
| 10100 | + |
| 10101 | + case $cc_basename in |
| 10102 | + CC*) |
| 10103 | + # FIXME: insert proper C++ library support |
| 10104 | + _LT_TAGVAR(ld_shlibs, $1)=no |
| 10105 | + ;; |
| 10106 | + aCC*) |
| 10107 | + _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' |
| 10108 | + # Commands to make compiler produce verbose output that lists |
| 10109 | + # what "hidden" libraries, object files and flags are used when |
| 10110 | + # linking a shared library. |
| 10111 | + # |
| 10112 | + # There doesn't appear to be a way to prevent this compiler from |
| 10113 | + # explicitly linking system object files so we need to strip them |
| 10114 | + # from the output so that they don't get included in the library |
| 10115 | + # dependencies. |
| 10116 | + 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' |
| 10117 | + ;; |
| 10118 | + *) |
| 10119 | + if test "$GXX" = yes; then |
| 10120 | + _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' |
| 10121 | + else |
| 10122 | + # FIXME: insert proper C++ library support |
| 10123 | + _LT_TAGVAR(ld_shlibs, $1)=no |
| 10124 | + fi |
| 10125 | + ;; |
| 10126 | + esac |
| 10127 | + ;; |
| 10128 | + |
| 10129 | + hpux10*|hpux11*) |
| 10130 | + if test $with_gnu_ld = no; then |
| 10131 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
| 10132 | + _LT_TAGVAR(hardcode_libdir_separator, $1)=: |
| 10133 | + |
| 10134 | + case $host_cpu in |
| 10135 | + hppa*64*|ia64*) |
| 10136 | + ;; |
| 10137 | + *) |
| 10138 | + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
| 10139 | + ;; |
| 10140 | + esac |
| 10141 | + fi |
| 10142 | + case $host_cpu in |
| 10143 | + hppa*64*|ia64*) |
| 10144 | + _LT_TAGVAR(hardcode_direct, $1)=no |
| 10145 | + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 10146 | + ;; |
| 10147 | + *) |
| 10148 | + _LT_TAGVAR(hardcode_direct, $1)=yes |
| 10149 | + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes |
| 10150 | + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, |
| 10151 | + # but as the default |
| 10152 | + # location of the library. |
| 10153 | + ;; |
| 10154 | + esac |
| 10155 | + |
| 10156 | + case $cc_basename in |
| 10157 | + CC*) |
| 10158 | + # FIXME: insert proper C++ library support |
| 10159 | + _LT_TAGVAR(ld_shlibs, $1)=no |
| 10160 | ;; |
| 10161 | - aCC*) |
| 10162 | - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 10163 | - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' |
| 10164 | + aCC*) |
| 10165 | case $host_cpu in |
| 10166 | - hppa*64*|ia64*) |
| 10167 | - # +Z the default |
| 10168 | - ;; |
| 10169 | - *) |
| 10170 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' |
| 10171 | - ;; |
| 10172 | + hppa*64*) |
| 10173 | + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 10174 | + ;; |
| 10175 | + ia64*) |
| 10176 | + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 10177 | + ;; |
| 10178 | + *) |
| 10179 | + _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' |
| 10180 | + ;; |
| 10181 | esac |
| 10182 | + # Commands to make compiler produce verbose output that lists |
| 10183 | + # what "hidden" libraries, object files and flags are used when |
| 10184 | + # linking a shared library. |
| 10185 | + # |
| 10186 | + # There doesn't appear to be a way to prevent this compiler from |
| 10187 | + # explicitly linking system object files so we need to strip them |
| 10188 | + # from the output so that they don't get included in the library |
| 10189 | + # dependencies. |
| 10190 | + 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' |
| 10191 | ;; |
| 10192 | - *) |
| 10193 | + *) |
| 10194 | + if test "$GXX" = yes; then |
| 10195 | + if test $with_gnu_ld = no; then |
| 10196 | + case $host_cpu in |
| 10197 | + hppa*64*) |
| 10198 | + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 10199 | + ;; |
| 10200 | + ia64*) |
| 10201 | + _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' |
| 10202 | + ;; |
| 10203 | + *) |
| 10204 | + _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' |
| 10205 | + ;; |
| 10206 | + esac |
| 10207 | + fi |
| 10208 | + else |
| 10209 | + # FIXME: insert proper C++ library support |
| 10210 | + _LT_TAGVAR(ld_shlibs, $1)=no |
| 10211 | + fi |
| 10212 | ;; |
| 10213 | - esac |
| 10214 | - ;; |
| 10215 | - interix*) |
| 10216 | - # This is c89, which is MS Visual C++ (no shared libs) |
| 10217 | - # Anyone wants to do a port? |
| 10218 | - ;; |
| 10219 | - irix5* | irix6* | nonstopux*) |
| 10220 | - case $cc_basename in |
| 10221 | - CC*) |
| 10222 | - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 10223 | - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
| 10224 | - # CC pic flag -KPIC is the default. |
| 10225 | + esac |
| 10226 | + ;; |
| 10227 | + |
| 10228 | + interix[[3-9]]*) |
| 10229 | + _LT_TAGVAR(hardcode_direct, $1)=no |
| 10230 | + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 10231 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
| 10232 | + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
| 10233 | + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 10234 | + # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 10235 | + # default) and relocated if they conflict, which is a slow very memory |
| 10236 | + # consuming and fragmenting process. To avoid this, we pick a random, |
| 10237 | + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 10238 | + # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 10239 | + _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' |
| 10240 | + _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' |
| 10241 | + ;; |
| 10242 | + irix5* | irix6*) |
| 10243 | + case $cc_basename in |
| 10244 | + CC*) |
| 10245 | + # SGI C++ |
| 10246 | + _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' |
| 10247 | + |
| 10248 | + # Archives containing C++ object files must be created using |
| 10249 | + # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
| 10250 | + # necessary to make sure instantiated templates are included |
| 10251 | + # in the archive. |
| 10252 | + _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' |
| 10253 | ;; |
| 10254 | - *) |
| 10255 | + *) |
| 10256 | + if test "$GXX" = yes; then |
| 10257 | + if test "$with_gnu_ld" = no; then |
| 10258 | + _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' |
| 10259 | + else |
| 10260 | + _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' |
| 10261 | + fi |
| 10262 | + fi |
| 10263 | + _LT_TAGVAR(link_all_deplibs, $1)=yes |
| 10264 | ;; |
| 10265 | - esac |
| 10266 | - ;; |
| 10267 | - linux*) |
| 10268 | - case $cc_basename in |
| 10269 | - KCC*) |
| 10270 | - # KAI C++ Compiler |
| 10271 | - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' |
| 10272 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
| 10273 | + esac |
| 10274 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
| 10275 | + _LT_TAGVAR(hardcode_libdir_separator, $1)=: |
| 10276 | + _LT_TAGVAR(inherit_rpath, $1)=yes |
| 10277 | + ;; |
| 10278 | + |
| 10279 | + linux* | k*bsd*-gnu) |
| 10280 | + case $cc_basename in |
| 10281 | + KCC*) |
| 10282 | + # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 10283 | + |
| 10284 | + # KCC will only create a shared library if the output file |
| 10285 | + # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 10286 | + # to its proper name (with version) after linking. |
| 10287 | + _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' |
| 10288 | + _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' |
| 10289 | + # Commands to make compiler produce verbose output that lists |
| 10290 | + # what "hidden" libraries, object files and flags are used when |
| 10291 | + # linking a shared library. |
| 10292 | + # |
| 10293 | + # There doesn't appear to be a way to prevent this compiler from |
| 10294 | + # explicitly linking system object files so we need to strip them |
| 10295 | + # from the output so that they don't get included in the library |
| 10296 | + # dependencies. |
| 10297 | + 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' |
| 10298 | + |
| 10299 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
| 10300 | + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
| 10301 | + |
| 10302 | + # Archives containing C++ object files must be created using |
| 10303 | + # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 10304 | + _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' |
| 10305 | ;; |
| 10306 | - icpc* | ecpc*) |
| 10307 | + icpc* | ecpc* ) |
| 10308 | # Intel C++ |
| 10309 | - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 10310 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 10311 | - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' |
| 10312 | - ;; |
| 10313 | - pgCC*) |
| 10314 | - # Portland Group C++ compiler. |
| 10315 | - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 10316 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' |
| 10317 | - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 10318 | - ;; |
| 10319 | - cxx*) |
| 10320 | - # Compaq C++ |
| 10321 | - # Make sure the PIC flag is empty. It appears that all Alpha |
| 10322 | - # Linux and Compaq Tru64 Unix objects are PIC. |
| 10323 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= |
| 10324 | - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
| 10325 | + with_gnu_ld=yes |
| 10326 | + # version 8.0 and above of icpc choke on multiply defined symbols |
| 10327 | + # if we add $predep_objects and $postdep_objects, however 7.1 and |
| 10328 | + # earlier do not add the objects themselves. |
| 10329 | + case `$CC -V 2>&1` in |
| 10330 | + *"Version 7."*) |
| 10331 | + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 10332 | + _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' |
| 10333 | + ;; |
| 10334 | + *) # Version 8.0 or newer |
| 10335 | + tmp_idyn= |
| 10336 | + case $host_cpu in |
| 10337 | + ia64*) tmp_idyn=' -i_dynamic';; |
| 10338 | + esac |
| 10339 | + _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 10340 | + _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' |
| 10341 | + ;; |
| 10342 | + esac |
| 10343 | + _LT_TAGVAR(archive_cmds_need_lc, $1)=no |
| 10344 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
| 10345 | + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
| 10346 | + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 10347 | ;; |
| 10348 | - *) |
| 10349 | - case `$CC -V 2>&1 | sed 5q` in |
| 10350 | - *Sun\ C*) |
| 10351 | - # Sun C++ 5.9 |
| 10352 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 10353 | - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 10354 | - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' |
| 10355 | + pgCC* | pgcpp*) |
| 10356 | + # Portland Group C++ compiler |
| 10357 | + case `$CC -V` in |
| 10358 | + *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*) |
| 10359 | + _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ |
| 10360 | + rm -rf $tpldir~ |
| 10361 | + $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ |
| 10362 | + compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' |
| 10363 | + _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ |
| 10364 | + rm -rf $tpldir~ |
| 10365 | + $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ |
| 10366 | + $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ |
| 10367 | + $RANLIB $oldlib' |
| 10368 | + _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~ |
| 10369 | + rm -rf $tpldir~ |
| 10370 | + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ |
| 10371 | + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
| 10372 | + _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ |
| 10373 | + rm -rf $tpldir~ |
| 10374 | + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ |
| 10375 | + $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' |
| 10376 | + ;; |
| 10377 | + *) # Version 6 will use weak symbols |
| 10378 | + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
| 10379 | + _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' |
| 10380 | ;; |
| 10381 | esac |
| 10382 | - ;; |
| 10383 | - esac |
| 10384 | - ;; |
| 10385 | - lynxos*) |
| 10386 | - ;; |
| 10387 | - m88k*) |
| 10388 | - ;; |
| 10389 | - mvs*) |
| 10390 | - case $cc_basename in |
| 10391 | - cxx*) |
| 10392 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' |
| 10393 | - ;; |
| 10394 | - *) |
| 10395 | - ;; |
| 10396 | - esac |
| 10397 | - ;; |
| 10398 | - netbsd*) |
| 10399 | - ;; |
| 10400 | - osf3* | osf4* | osf5*) |
| 10401 | - case $cc_basename in |
| 10402 | - KCC*) |
| 10403 | - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' |
| 10404 | - ;; |
| 10405 | - RCC*) |
| 10406 | - # Rational C++ 2.4.1 |
| 10407 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
| 10408 | - ;; |
| 10409 | + |
| 10410 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' |
| 10411 | + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
| 10412 | + _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' |
| 10413 | + ;; |
| 10414 | cxx*) |
| 10415 | - # Digital/Compaq C++ |
| 10416 | - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 10417 | - # Make sure the PIC flag is empty. It appears that all Alpha |
| 10418 | - # Linux and Compaq Tru64 Unix objects are PIC. |
| 10419 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= |
| 10420 | - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
| 10421 | - ;; |
| 10422 | - *) |
| 10423 | - ;; |
| 10424 | - esac |
| 10425 | - ;; |
| 10426 | - psos*) |
| 10427 | - ;; |
| 10428 | - solaris*) |
| 10429 | - case $cc_basename in |
| 10430 | - CC*) |
| 10431 | - # Sun C++ 4.2, 5.x and Centerline C++ |
| 10432 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 10433 | - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 10434 | - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' |
| 10435 | - ;; |
| 10436 | - gcx*) |
| 10437 | - # Green Hills C++ Compiler |
| 10438 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' |
| 10439 | - ;; |
| 10440 | - *) |
| 10441 | - ;; |
| 10442 | - esac |
| 10443 | - ;; |
| 10444 | - sunos4*) |
| 10445 | - case $cc_basename in |
| 10446 | - CC*) |
| 10447 | - # Sun C++ 4.x |
| 10448 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
| 10449 | - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 10450 | - ;; |
| 10451 | - lcc*) |
| 10452 | - # Lucid |
| 10453 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
| 10454 | - ;; |
| 10455 | - *) |
| 10456 | + # Compaq C++ |
| 10457 | + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 10458 | + _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' |
| 10459 | + |
| 10460 | + runpath_var=LD_RUN_PATH |
| 10461 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' |
| 10462 | + _LT_TAGVAR(hardcode_libdir_separator, $1)=: |
| 10463 | + |
| 10464 | + # Commands to make compiler produce verbose output that lists |
| 10465 | + # what "hidden" libraries, object files and flags are used when |
| 10466 | + # linking a shared library. |
| 10467 | + # |
| 10468 | + # There doesn't appear to be a way to prevent this compiler from |
| 10469 | + # explicitly linking system object files so we need to strip them |
| 10470 | + # from the output so that they don't get included in the library |
| 10471 | + # dependencies. |
| 10472 | + 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' |
| 10473 | ;; |
| 10474 | - esac |
| 10475 | - ;; |
| 10476 | - tandem*) |
| 10477 | - case $cc_basename in |
| 10478 | - NCC*) |
| 10479 | - # NonStop-UX NCC 3.20 |
| 10480 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 10481 | + xl*) |
| 10482 | + # IBM XL 8.0 on PPC, with GNU ld |
| 10483 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
| 10484 | + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
| 10485 | + _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 10486 | + if test "x$supports_anon_versioning" = xyes; then |
| 10487 | + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ |
| 10488 | + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 10489 | + echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 10490 | + $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 10491 | + fi |
| 10492 | ;; |
| 10493 | *) |
| 10494 | + case `$CC -V 2>&1 | sed 5q` in |
| 10495 | + *Sun\ C*) |
| 10496 | + # Sun C++ 5.9 |
| 10497 | + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' |
| 10498 | + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 10499 | + _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' |
| 10500 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
| 10501 | + _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' |
| 10502 | + _LT_TAGVAR(compiler_needs_object, $1)=yes |
| 10503 | + |
| 10504 | + # Not sure whether something based on |
| 10505 | + # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 |
| 10506 | + # would be better. |
| 10507 | + output_verbose_link_cmd='echo' |
| 10508 | + |
| 10509 | + # Archives containing C++ object files must be created using |
| 10510 | + # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 10511 | + # necessary to make sure instantiated templates are included |
| 10512 | + # in the archive. |
| 10513 | + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' |
| 10514 | + ;; |
| 10515 | + esac |
| 10516 | ;; |
| 10517 | esac |
| 10518 | ;; |
| 10519 | - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 10520 | - case $cc_basename in |
| 10521 | - CC*) |
| 10522 | - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 10523 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 10524 | - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 10525 | + |
| 10526 | + lynxos*) |
| 10527 | + # FIXME: insert proper C++ library support |
| 10528 | + _LT_TAGVAR(ld_shlibs, $1)=no |
| 10529 | + ;; |
| 10530 | + |
| 10531 | + m88k*) |
| 10532 | + # FIXME: insert proper C++ library support |
| 10533 | + _LT_TAGVAR(ld_shlibs, $1)=no |
| 10534 | + ;; |
| 10535 | + |
| 10536 | + mvs*) |
| 10537 | + case $cc_basename in |
| 10538 | + cxx*) |
| 10539 | + # FIXME: insert proper C++ library support |
| 10540 | + _LT_TAGVAR(ld_shlibs, $1)=no |
| 10541 | + ;; |
| 10542 | + *) |
| 10543 | + # FIXME: insert proper C++ library support |
| 10544 | + _LT_TAGVAR(ld_shlibs, $1)=no |
| 10545 | ;; |
| 10546 | esac |
| 10547 | ;; |
| 10548 | - vxworks*) |
| 10549 | + |
| 10550 | + netbsd*) |
| 10551 | + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 10552 | + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
| 10553 | + wlarc= |
| 10554 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
| 10555 | + _LT_TAGVAR(hardcode_direct, $1)=yes |
| 10556 | + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 10557 | + fi |
| 10558 | + # Workaround some broken pre-1.5 toolchains |
| 10559 | + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
| 10560 | ;; |
| 10561 | - *) |
| 10562 | - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no |
| 10563 | + |
| 10564 | + *nto* | *qnx*) |
| 10565 | + _LT_TAGVAR(ld_shlibs, $1)=yes |
| 10566 | ;; |
| 10567 | - esac |
| 10568 | - fi |
| 10569 | -], |
| 10570 | -[ |
| 10571 | - if test "$GCC" = yes; then |
| 10572 | - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 10573 | - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' |
| 10574 | |
| 10575 | - case $host_os in |
| 10576 | - aix*) |
| 10577 | - # All AIX code is PIC. |
| 10578 | - if test "$host_cpu" = ia64; then |
| 10579 | - # AIX 5 now supports IA64 processor |
| 10580 | - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 10581 | - fi |
| 10582 | - ;; |
| 10583 | + openbsd2*) |
| 10584 | + # C++ shared libraries are fairly broken |
| 10585 | + _LT_TAGVAR(ld_shlibs, $1)=no |
| 10586 | + ;; |
| 10587 | + |
| 10588 | + openbsd*) |
| 10589 | + if test -f /usr/libexec/ld.so; then |
| 10590 | + _LT_TAGVAR(hardcode_direct, $1)=yes |
| 10591 | + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 10592 | + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes |
| 10593 | + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 10594 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
| 10595 | + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 10596 | + _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' |
| 10597 | + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
| 10598 | + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 10599 | + fi |
| 10600 | + output_verbose_link_cmd=echo |
| 10601 | + else |
| 10602 | + _LT_TAGVAR(ld_shlibs, $1)=no |
| 10603 | + fi |
| 10604 | + ;; |
| 10605 | |
| 10606 | - amigaos*) |
| 10607 | - # FIXME: we need at least 68020 code to build shared libraries, but |
| 10608 | - # adding the `-m68020' flag to GCC prevents building anything better, |
| 10609 | - # like `-m68040'. |
| 10610 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' |
| 10611 | - ;; |
| 10612 | + osf3* | osf4* | osf5*) |
| 10613 | + case $cc_basename in |
| 10614 | + KCC*) |
| 10615 | + # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 10616 | + |
| 10617 | + # KCC will only create a shared library if the output file |
| 10618 | + # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 10619 | + # to its proper name (with version) after linking. |
| 10620 | + _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' |
| 10621 | + |
| 10622 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
| 10623 | + _LT_TAGVAR(hardcode_libdir_separator, $1)=: |
| 10624 | + |
| 10625 | + # Archives containing C++ object files must be created using |
| 10626 | + # the KAI C++ compiler. |
| 10627 | + case $host in |
| 10628 | + osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; |
| 10629 | + *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;; |
| 10630 | + esac |
| 10631 | + ;; |
| 10632 | + RCC*) |
| 10633 | + # Rational C++ 2.4.1 |
| 10634 | + # FIXME: insert proper C++ library support |
| 10635 | + _LT_TAGVAR(ld_shlibs, $1)=no |
| 10636 | + ;; |
| 10637 | + cxx*) |
| 10638 | + case $host in |
| 10639 | + osf3*) |
| 10640 | + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
| 10641 | + _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' |
| 10642 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
| 10643 | + ;; |
| 10644 | + *) |
| 10645 | + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' |
| 10646 | + _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' |
| 10647 | + _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
| 10648 | + echo "-hidden">> $lib.exp~ |
| 10649 | + $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~ |
| 10650 | + $RM $lib.exp' |
| 10651 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' |
| 10652 | + ;; |
| 10653 | + esac |
| 10654 | |
| 10655 | - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 10656 | - # PIC is the default for these OSes. |
| 10657 | - ;; |
| 10658 | + _LT_TAGVAR(hardcode_libdir_separator, $1)=: |
| 10659 | |
| 10660 | - mingw* | cygwin* | pw32* | os2*) |
| 10661 | - # This hack is so that the source file can tell whether it is being |
| 10662 | - # built for inclusion in a dll (and should export symbols for example). |
| 10663 | - # Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 10664 | - # (--disable-auto-import) libraries |
| 10665 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' |
| 10666 | - ;; |
| 10667 | + # Commands to make compiler produce verbose output that lists |
| 10668 | + # what "hidden" libraries, object files and flags are used when |
| 10669 | + # linking a shared library. |
| 10670 | + # |
| 10671 | + # There doesn't appear to be a way to prevent this compiler from |
| 10672 | + # explicitly linking system object files so we need to strip them |
| 10673 | + # from the output so that they don't get included in the library |
| 10674 | + # dependencies. |
| 10675 | + 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' |
| 10676 | + ;; |
| 10677 | + *) |
| 10678 | + if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 10679 | + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
| 10680 | + case $host in |
| 10681 | + osf3*) |
| 10682 | + _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' |
| 10683 | + ;; |
| 10684 | + *) |
| 10685 | + _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' |
| 10686 | + ;; |
| 10687 | + esac |
| 10688 | + |
| 10689 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
| 10690 | + _LT_TAGVAR(hardcode_libdir_separator, $1)=: |
| 10691 | + |
| 10692 | + # Commands to make compiler produce verbose output that lists |
| 10693 | + # what "hidden" libraries, object files and flags are used when |
| 10694 | + # linking a shared library. |
| 10695 | + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' |
| 10696 | + |
| 10697 | + else |
| 10698 | + # FIXME: insert proper C++ library support |
| 10699 | + _LT_TAGVAR(ld_shlibs, $1)=no |
| 10700 | + fi |
| 10701 | + ;; |
| 10702 | + esac |
| 10703 | + ;; |
| 10704 | |
| 10705 | - darwin* | rhapsody*) |
| 10706 | - # PIC is the default on this platform |
| 10707 | - # Common symbols not allowed in MH_DYLIB files |
| 10708 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' |
| 10709 | - ;; |
| 10710 | + psos*) |
| 10711 | + # FIXME: insert proper C++ library support |
| 10712 | + _LT_TAGVAR(ld_shlibs, $1)=no |
| 10713 | + ;; |
| 10714 | |
| 10715 | - interix3*) |
| 10716 | - # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 10717 | - # Instead, we relocate shared libraries at runtime. |
| 10718 | - ;; |
| 10719 | + sunos4*) |
| 10720 | + case $cc_basename in |
| 10721 | + CC*) |
| 10722 | + # Sun C++ 4.x |
| 10723 | + # FIXME: insert proper C++ library support |
| 10724 | + _LT_TAGVAR(ld_shlibs, $1)=no |
| 10725 | + ;; |
| 10726 | + lcc*) |
| 10727 | + # Lucid |
| 10728 | + # FIXME: insert proper C++ library support |
| 10729 | + _LT_TAGVAR(ld_shlibs, $1)=no |
| 10730 | + ;; |
| 10731 | + *) |
| 10732 | + # FIXME: insert proper C++ library support |
| 10733 | + _LT_TAGVAR(ld_shlibs, $1)=no |
| 10734 | + ;; |
| 10735 | + esac |
| 10736 | + ;; |
| 10737 | |
| 10738 | - msdosdjgpp*) |
| 10739 | - # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 10740 | - # on systems that don't support them. |
| 10741 | - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no |
| 10742 | - enable_shared=no |
| 10743 | - ;; |
| 10744 | + solaris*) |
| 10745 | + case $cc_basename in |
| 10746 | + CC*) |
| 10747 | + # Sun C++ 4.2, 5.x and Centerline C++ |
| 10748 | + _LT_TAGVAR(archive_cmds_need_lc,$1)=yes |
| 10749 | + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' |
| 10750 | + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 10751 | + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 10752 | + $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' |
| 10753 | + |
| 10754 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
| 10755 | + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 10756 | + case $host_os in |
| 10757 | + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; |
| 10758 | + *) |
| 10759 | + # The compiler driver will combine and reorder linker options, |
| 10760 | + # but understands `-z linker_flag'. |
| 10761 | + # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 10762 | + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' |
| 10763 | + ;; |
| 10764 | + esac |
| 10765 | + _LT_TAGVAR(link_all_deplibs, $1)=yes |
| 10766 | |
| 10767 | - sysv4*MP*) |
| 10768 | - if test -d /usr/nec; then |
| 10769 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic |
| 10770 | - fi |
| 10771 | - ;; |
| 10772 | + output_verbose_link_cmd='echo' |
| 10773 | |
| 10774 | - hpux*) |
| 10775 | - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 10776 | - # not for PA HP-UX. |
| 10777 | - case $host_cpu in |
| 10778 | - hppa*64*|ia64*) |
| 10779 | - # +Z the default |
| 10780 | - ;; |
| 10781 | - *) |
| 10782 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
| 10783 | - ;; |
| 10784 | - esac |
| 10785 | - ;; |
| 10786 | + # Archives containing C++ object files must be created using |
| 10787 | + # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 10788 | + # necessary to make sure instantiated templates are included |
| 10789 | + # in the archive. |
| 10790 | + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' |
| 10791 | + ;; |
| 10792 | + gcx*) |
| 10793 | + # Green Hills C++ Compiler |
| 10794 | + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 10795 | |
| 10796 | - *) |
| 10797 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
| 10798 | - ;; |
| 10799 | - esac |
| 10800 | - else |
| 10801 | - # PORTME Check for flag to pass linker flags through the system compiler. |
| 10802 | - case $host_os in |
| 10803 | - aix*) |
| 10804 | - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 10805 | - if test "$host_cpu" = ia64; then |
| 10806 | - # AIX 5 now supports IA64 processor |
| 10807 | - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 10808 | - else |
| 10809 | - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' |
| 10810 | - fi |
| 10811 | - ;; |
| 10812 | - darwin*) |
| 10813 | - # PIC is the default on this platform |
| 10814 | - # Common symbols not allowed in MH_DYLIB files |
| 10815 | - case $cc_basename in |
| 10816 | - xlc*) |
| 10817 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' |
| 10818 | - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 10819 | - ;; |
| 10820 | - esac |
| 10821 | - ;; |
| 10822 | + # The C++ compiler must be used to create the archive. |
| 10823 | + _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
| 10824 | + ;; |
| 10825 | + *) |
| 10826 | + # GNU C++ compiler with Solaris linker |
| 10827 | + if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 10828 | + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' |
| 10829 | + if $CC --version | $GREP -v '^2\.7' > /dev/null; then |
| 10830 | + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 10831 | + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 10832 | + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' |
| 10833 | + |
| 10834 | + # Commands to make compiler produce verbose output that lists |
| 10835 | + # what "hidden" libraries, object files and flags are used when |
| 10836 | + # linking a shared library. |
| 10837 | + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' |
| 10838 | + else |
| 10839 | + # g++ 2.7 appears to require `-G' NOT `-shared' on this |
| 10840 | + # platform. |
| 10841 | + _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 10842 | + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 10843 | + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' |
| 10844 | + |
| 10845 | + # Commands to make compiler produce verbose output that lists |
| 10846 | + # what "hidden" libraries, object files and flags are used when |
| 10847 | + # linking a shared library. |
| 10848 | + output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' |
| 10849 | + fi |
| 10850 | + |
| 10851 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' |
| 10852 | + case $host_os in |
| 10853 | + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; |
| 10854 | + *) |
| 10855 | + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
| 10856 | + ;; |
| 10857 | + esac |
| 10858 | + fi |
| 10859 | + ;; |
| 10860 | + esac |
| 10861 | + ;; |
| 10862 | |
| 10863 | - mingw* | cygwin* | pw32* | os2*) |
| 10864 | - # This hack is so that the source file can tell whether it is being |
| 10865 | - # built for inclusion in a dll (and should export symbols for example). |
| 10866 | - # Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 10867 | - # (--disable-auto-import) libraries |
| 10868 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' |
| 10869 | - ;; |
| 10870 | + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) |
| 10871 | + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' |
| 10872 | + _LT_TAGVAR(archive_cmds_need_lc, $1)=no |
| 10873 | + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 10874 | + runpath_var='LD_RUN_PATH' |
| 10875 | |
| 10876 | - hpux9* | hpux10* | hpux11*) |
| 10877 | - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 10878 | - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 10879 | - # not for PA HP-UX. |
| 10880 | - case $host_cpu in |
| 10881 | - hppa*64*|ia64*) |
| 10882 | - # +Z the default |
| 10883 | - ;; |
| 10884 | - *) |
| 10885 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' |
| 10886 | - ;; |
| 10887 | + case $cc_basename in |
| 10888 | + CC*) |
| 10889 | + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10890 | + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10891 | + ;; |
| 10892 | + *) |
| 10893 | + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10894 | + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10895 | + ;; |
| 10896 | esac |
| 10897 | - # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 10898 | - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' |
| 10899 | ;; |
| 10900 | |
| 10901 | - irix5* | irix6* | nonstopux*) |
| 10902 | - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 10903 | - # PIC (with -KPIC) is the default. |
| 10904 | - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
| 10905 | - ;; |
| 10906 | + sysv5* | sco3.2v5* | sco5v6*) |
| 10907 | + # Note: We can NOT use -z defs as we might desire, because we do not |
| 10908 | + # link with -lc, and that would cause any symbols used from libc to |
| 10909 | + # always be unresolved, which means just about no library would |
| 10910 | + # ever link correctly. If we're not using GNU ld we use -z text |
| 10911 | + # though, which does catch some bad symbols but isn't as heavy-handed |
| 10912 | + # as -z defs. |
| 10913 | + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' |
| 10914 | + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' |
| 10915 | + _LT_TAGVAR(archive_cmds_need_lc, $1)=no |
| 10916 | + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 10917 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' |
| 10918 | + _LT_TAGVAR(hardcode_libdir_separator, $1)=':' |
| 10919 | + _LT_TAGVAR(link_all_deplibs, $1)=yes |
| 10920 | + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' |
| 10921 | + runpath_var='LD_RUN_PATH' |
| 10922 | |
| 10923 | - newsos6) |
| 10924 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 10925 | - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 10926 | + case $cc_basename in |
| 10927 | + CC*) |
| 10928 | + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10929 | + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10930 | + ;; |
| 10931 | + *) |
| 10932 | + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10933 | + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10934 | + ;; |
| 10935 | + esac |
| 10936 | ;; |
| 10937 | |
| 10938 | - linux*) |
| 10939 | - case $cc_basename in |
| 10940 | - icc* | ecc*) |
| 10941 | - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 10942 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 10943 | - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' |
| 10944 | - ;; |
| 10945 | - pgcc* | pgf77* | pgf90* | pgf95*) |
| 10946 | - # Portland Group compilers (*not* the Pentium gcc compiler, |
| 10947 | - # which looks to be a dead project) |
| 10948 | - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 10949 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' |
| 10950 | - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 10951 | - ;; |
| 10952 | - ccc*) |
| 10953 | - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 10954 | - # All Alpha code is PIC. |
| 10955 | - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
| 10956 | + tandem*) |
| 10957 | + case $cc_basename in |
| 10958 | + NCC*) |
| 10959 | + # NonStop-UX NCC 3.20 |
| 10960 | + # FIXME: insert proper C++ library support |
| 10961 | + _LT_TAGVAR(ld_shlibs, $1)=no |
| 10962 | + ;; |
| 10963 | + *) |
| 10964 | + # FIXME: insert proper C++ library support |
| 10965 | + _LT_TAGVAR(ld_shlibs, $1)=no |
| 10966 | + ;; |
| 10967 | + esac |
| 10968 | ;; |
| 10969 | - como) |
| 10970 | - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-lopt=' |
| 10971 | + |
| 10972 | + vxworks*) |
| 10973 | + # FIXME: insert proper C++ library support |
| 10974 | + _LT_TAGVAR(ld_shlibs, $1)=no |
| 10975 | ;; |
| 10976 | + |
| 10977 | *) |
| 10978 | - case `$CC -V 2>&1 | sed 5q` in |
| 10979 | - *Sun\ C*) |
| 10980 | - # Sun C 5.9 |
| 10981 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 10982 | - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 10983 | - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 10984 | - ;; |
| 10985 | - *Sun\ F*) |
| 10986 | - # Sun Fortran 8.3 passes all unrecognized flags to the linker |
| 10987 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 10988 | - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 10989 | - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='' |
| 10990 | - ;; |
| 10991 | - esac |
| 10992 | - ;; |
| 10993 | - esac |
| 10994 | - ;; |
| 10995 | + # FIXME: insert proper C++ library support |
| 10996 | + _LT_TAGVAR(ld_shlibs, $1)=no |
| 10997 | + ;; |
| 10998 | + esac |
| 10999 | |
| 11000 | - osf3* | osf4* | osf5*) |
| 11001 | - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 11002 | - # All OSF/1 code is PIC. |
| 11003 | - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
| 11004 | - ;; |
| 11005 | + AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) |
| 11006 | + test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no |
| 11007 | |
| 11008 | - solaris*) |
| 11009 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 11010 | - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 11011 | - case $cc_basename in |
| 11012 | - f77* | f90* | f95*) |
| 11013 | - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; |
| 11014 | - *) |
| 11015 | - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; |
| 11016 | - esac |
| 11017 | - ;; |
| 11018 | + _LT_TAGVAR(GCC, $1)="$GXX" |
| 11019 | + _LT_TAGVAR(LD, $1)="$LD" |
| 11020 | + |
| 11021 | + ## CAVEAT EMPTOR: |
| 11022 | + ## There is no encapsulation within the following macros, do not change |
| 11023 | + ## the running order or otherwise move them around unless you know exactly |
| 11024 | + ## what you are doing... |
| 11025 | + _LT_SYS_HIDDEN_LIBDEPS($1) |
| 11026 | + _LT_COMPILER_PIC($1) |
| 11027 | + _LT_COMPILER_C_O($1) |
| 11028 | + _LT_COMPILER_FILE_LOCKS($1) |
| 11029 | + _LT_LINKER_SHLIBS($1) |
| 11030 | + _LT_SYS_DYNAMIC_LINKER($1) |
| 11031 | + _LT_LINKER_HARDCODE_LIBPATH($1) |
| 11032 | + |
| 11033 | + _LT_CONFIG($1) |
| 11034 | + fi # test -n "$compiler" |
| 11035 | + |
| 11036 | + CC=$lt_save_CC |
| 11037 | + LDCXX=$LD |
| 11038 | + LD=$lt_save_LD |
| 11039 | + GCC=$lt_save_GCC |
| 11040 | + with_gnu_ld=$lt_save_with_gnu_ld |
| 11041 | + lt_cv_path_LDCXX=$lt_cv_path_LD |
| 11042 | + lt_cv_path_LD=$lt_save_path_LD |
| 11043 | + lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
| 11044 | + lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
| 11045 | +fi # test "$_lt_caught_CXX_error" != yes |
| 11046 | + |
| 11047 | +AC_LANG_POP |
| 11048 | +])# _LT_LANG_CXX_CONFIG |
| 11049 | + |
| 11050 | + |
| 11051 | +# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) |
| 11052 | +# --------------------------------- |
| 11053 | +# Figure out "hidden" library dependencies from verbose |
| 11054 | +# compiler output when linking a shared library. |
| 11055 | +# Parse the compiler output and extract the necessary |
| 11056 | +# objects, libraries and library flags. |
| 11057 | +m4_defun([_LT_SYS_HIDDEN_LIBDEPS], |
| 11058 | +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
| 11059 | +# Dependencies to place before and after the object being linked: |
| 11060 | +_LT_TAGVAR(predep_objects, $1)= |
| 11061 | +_LT_TAGVAR(postdep_objects, $1)= |
| 11062 | +_LT_TAGVAR(predeps, $1)= |
| 11063 | +_LT_TAGVAR(postdeps, $1)= |
| 11064 | +_LT_TAGVAR(compiler_lib_search_path, $1)= |
| 11065 | + |
| 11066 | +dnl we can't use the lt_simple_compile_test_code here, |
| 11067 | +dnl because it contains code intended for an executable, |
| 11068 | +dnl not a library. It's possible we should let each |
| 11069 | +dnl tag define a new lt_????_link_test_code variable, |
| 11070 | +dnl but it's only used here... |
| 11071 | +m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF |
| 11072 | +int a; |
| 11073 | +void foo (void) { a = 0; } |
| 11074 | +_LT_EOF |
| 11075 | +], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF |
| 11076 | +class Foo |
| 11077 | +{ |
| 11078 | +public: |
| 11079 | + Foo (void) { a = 0; } |
| 11080 | +private: |
| 11081 | + int a; |
| 11082 | +}; |
| 11083 | +_LT_EOF |
| 11084 | +], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF |
| 11085 | + subroutine foo |
| 11086 | + implicit none |
| 11087 | + integer*4 a |
| 11088 | + a=0 |
| 11089 | + return |
| 11090 | + end |
| 11091 | +_LT_EOF |
| 11092 | +], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF |
| 11093 | + subroutine foo |
| 11094 | + implicit none |
| 11095 | + integer a |
| 11096 | + a=0 |
| 11097 | + return |
| 11098 | + end |
| 11099 | +_LT_EOF |
| 11100 | +], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF |
| 11101 | +public class foo { |
| 11102 | + private int a; |
| 11103 | + public void bar (void) { |
| 11104 | + a = 0; |
| 11105 | + } |
| 11106 | +}; |
| 11107 | +_LT_EOF |
| 11108 | +]) |
| 11109 | +dnl Parse the compiler output and extract the necessary |
| 11110 | +dnl objects, libraries and library flags. |
| 11111 | +if AC_TRY_EVAL(ac_compile); then |
| 11112 | + # Parse the compiler output and extract the necessary |
| 11113 | + # objects, libraries and library flags. |
| 11114 | + |
| 11115 | + # Sentinel used to keep track of whether or not we are before |
| 11116 | + # the conftest object file. |
| 11117 | + pre_test_object_deps_done=no |
| 11118 | |
| 11119 | - sunos4*) |
| 11120 | - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' |
| 11121 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' |
| 11122 | - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 11123 | - ;; |
| 11124 | + for p in `eval "$output_verbose_link_cmd"`; do |
| 11125 | + case $p in |
| 11126 | |
| 11127 | - sysv4 | sysv4.2uw2* | sysv4.3*) |
| 11128 | - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 11129 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 11130 | - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 11131 | - ;; |
| 11132 | + -L* | -R* | -l*) |
| 11133 | + # Some compilers place space between "-{L,R}" and the path. |
| 11134 | + # Remove the space. |
| 11135 | + if test $p = "-L" || |
| 11136 | + test $p = "-R"; then |
| 11137 | + prev=$p |
| 11138 | + continue |
| 11139 | + else |
| 11140 | + prev= |
| 11141 | + fi |
| 11142 | |
| 11143 | - sysv4*MP*) |
| 11144 | - if test -d /usr/nec ;then |
| 11145 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' |
| 11146 | - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 11147 | - fi |
| 11148 | - ;; |
| 11149 | + if test "$pre_test_object_deps_done" = no; then |
| 11150 | + case $p in |
| 11151 | + -L* | -R*) |
| 11152 | + # Internal compiler library paths should come after those |
| 11153 | + # provided the user. The postdeps already come after the |
| 11154 | + # user supplied libs so there is no need to process them. |
| 11155 | + if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then |
| 11156 | + _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}" |
| 11157 | + else |
| 11158 | + _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}" |
| 11159 | + fi |
| 11160 | + ;; |
| 11161 | + # The "-l" case would never come before the object being |
| 11162 | + # linked, so don't bother handling this case. |
| 11163 | + esac |
| 11164 | + else |
| 11165 | + if test -z "$_LT_TAGVAR(postdeps, $1)"; then |
| 11166 | + _LT_TAGVAR(postdeps, $1)="${prev}${p}" |
| 11167 | + else |
| 11168 | + _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}" |
| 11169 | + fi |
| 11170 | + fi |
| 11171 | + ;; |
| 11172 | |
| 11173 | - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 11174 | - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 11175 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 11176 | - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 11177 | - ;; |
| 11178 | + *.$objext) |
| 11179 | + # This assumes that the test object file only shows up |
| 11180 | + # once in the compiler output. |
| 11181 | + if test "$p" = "conftest.$objext"; then |
| 11182 | + pre_test_object_deps_done=yes |
| 11183 | + continue |
| 11184 | + fi |
| 11185 | |
| 11186 | - unicos*) |
| 11187 | - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 11188 | - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no |
| 11189 | - ;; |
| 11190 | + if test "$pre_test_object_deps_done" = no; then |
| 11191 | + if test -z "$_LT_TAGVAR(predep_objects, $1)"; then |
| 11192 | + _LT_TAGVAR(predep_objects, $1)="$p" |
| 11193 | + else |
| 11194 | + _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p" |
| 11195 | + fi |
| 11196 | + else |
| 11197 | + if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then |
| 11198 | + _LT_TAGVAR(postdep_objects, $1)="$p" |
| 11199 | + else |
| 11200 | + _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p" |
| 11201 | + fi |
| 11202 | + fi |
| 11203 | + ;; |
| 11204 | |
| 11205 | - uts4*) |
| 11206 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
| 11207 | - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 11208 | - ;; |
| 11209 | + *) ;; # Ignore the rest. |
| 11210 | |
| 11211 | - *) |
| 11212 | - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no |
| 11213 | - ;; |
| 11214 | esac |
| 11215 | - fi |
| 11216 | -]) |
| 11217 | -AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)]) |
| 11218 | + done |
| 11219 | |
| 11220 | -# |
| 11221 | -# Check to make sure the PIC flag actually works. |
| 11222 | -# |
| 11223 | -if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then |
| 11224 | - AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works], |
| 11225 | - _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1), |
| 11226 | - [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [], |
| 11227 | - [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in |
| 11228 | - "" | " "*) ;; |
| 11229 | - *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;; |
| 11230 | - esac], |
| 11231 | - [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= |
| 11232 | - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) |
| 11233 | + # Clean up. |
| 11234 | + rm -f a.out a.exe |
| 11235 | +else |
| 11236 | + echo "libtool.m4: error: problem compiling $1 test program" |
| 11237 | fi |
| 11238 | -case $host_os in |
| 11239 | - # For platforms which do not support PIC, -DPIC is meaningless: |
| 11240 | - *djgpp*) |
| 11241 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= |
| 11242 | - ;; |
| 11243 | - *) |
| 11244 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])" |
| 11245 | - ;; |
| 11246 | -esac |
| 11247 | - |
| 11248 | -# |
| 11249 | -# Check to make sure the static flag actually works. |
| 11250 | -# |
| 11251 | -wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\" |
| 11252 | -AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], |
| 11253 | - _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1), |
| 11254 | - $lt_tmp_static_flag, |
| 11255 | - [], |
| 11256 | - [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=]) |
| 11257 | -]) |
| 11258 | |
| 11259 | +$RM -f confest.$objext |
| 11260 | |
| 11261 | -# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME]) |
| 11262 | -# ------------------------------------ |
| 11263 | -# See if the linker supports building shared libraries. |
| 11264 | -AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS], |
| 11265 | -[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) |
| 11266 | -ifelse([$1],[CXX],[ |
| 11267 | - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 11268 | - case $host_os in |
| 11269 | - aix4* | aix5*) |
| 11270 | - # If we're using GNU nm, then we don't want the "-C" option. |
| 11271 | - # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 11272 | - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 11273 | - _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' |
| 11274 | - else |
| 11275 | - _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' |
| 11276 | - fi |
| 11277 | - ;; |
| 11278 | - pw32*) |
| 11279 | - _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" |
| 11280 | - ;; |
| 11281 | - cygwin* | mingw*) |
| 11282 | - _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' |
| 11283 | - ;; |
| 11284 | - *) |
| 11285 | - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 11286 | +# PORTME: override above test on systems where it is broken |
| 11287 | +m4_if([$1], [CXX], |
| 11288 | +[case $host_os in |
| 11289 | +interix[[3-9]]*) |
| 11290 | + # Interix 3.5 installs completely hosed .la files for C++, so rather than |
| 11291 | + # hack all around it, let's just trust "g++" to DTRT. |
| 11292 | + _LT_TAGVAR(predep_objects,$1)= |
| 11293 | + _LT_TAGVAR(postdep_objects,$1)= |
| 11294 | + _LT_TAGVAR(postdeps,$1)= |
| 11295 | ;; |
| 11296 | - esac |
| 11297 | -],[ |
| 11298 | - runpath_var= |
| 11299 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)= |
| 11300 | - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no |
| 11301 | - _LT_AC_TAGVAR(archive_cmds, $1)= |
| 11302 | - _LT_AC_TAGVAR(archive_expsym_cmds, $1)= |
| 11303 | - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)= |
| 11304 | - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)= |
| 11305 | - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= |
| 11306 | - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= |
| 11307 | - _LT_AC_TAGVAR(thread_safe_flag_spec, $1)= |
| 11308 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= |
| 11309 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= |
| 11310 | - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= |
| 11311 | - _LT_AC_TAGVAR(hardcode_direct, $1)=no |
| 11312 | - _LT_AC_TAGVAR(hardcode_minus_L, $1)=no |
| 11313 | - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
| 11314 | - _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown |
| 11315 | - _LT_AC_TAGVAR(hardcode_automatic, $1)=no |
| 11316 | - _LT_AC_TAGVAR(module_cmds, $1)= |
| 11317 | - _LT_AC_TAGVAR(module_expsym_cmds, $1)= |
| 11318 | - _LT_AC_TAGVAR(always_export_symbols, $1)=no |
| 11319 | - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 11320 | - # include_expsyms should be a list of space-separated symbols to be *always* |
| 11321 | - # included in the symbol list |
| 11322 | - _LT_AC_TAGVAR(include_expsyms, $1)= |
| 11323 | - # exclude_expsyms can be an extended regexp of symbols to exclude |
| 11324 | - # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 11325 | - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 11326 | - # as well as any symbol that contains `d'. |
| 11327 | - _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_" |
| 11328 | - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 11329 | - # platforms (ab)use it in PIC code, but their linkers get confused if |
| 11330 | - # the symbol is explicitly referenced. Since portable code cannot |
| 11331 | - # rely on this symbol name, it's probably fine to never include it in |
| 11332 | - # preloaded symbol tables. |
| 11333 | - extract_expsyms_cmds= |
| 11334 | - # Just being paranoid about ensuring that cc_basename is set. |
| 11335 | - _LT_CC_BASENAME([$compiler]) |
| 11336 | - case $host_os in |
| 11337 | - cygwin* | mingw* | pw32*) |
| 11338 | - # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 11339 | - # When not using gcc, we currently assume that we are using |
| 11340 | - # Microsoft Visual C++. |
| 11341 | - if test "$GCC" != yes; then |
| 11342 | - with_gnu_ld=no |
| 11343 | - fi |
| 11344 | - ;; |
| 11345 | - interix*) |
| 11346 | - # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 11347 | - with_gnu_ld=yes |
| 11348 | - ;; |
| 11349 | - openbsd*) |
| 11350 | - with_gnu_ld=no |
| 11351 | - ;; |
| 11352 | - esac |
| 11353 | - |
| 11354 | - _LT_AC_TAGVAR(ld_shlibs, $1)=yes |
| 11355 | - if test "$with_gnu_ld" = yes; then |
| 11356 | - # If archive_cmds runs LD, not CC, wlarc should be empty |
| 11357 | - wlarc='${wl}' |
| 11358 | - |
| 11359 | - # Set some defaults for GNU ld with shared library support. These |
| 11360 | - # are reset later if shared libraries are not supported. Putting them |
| 11361 | - # here allows them to be overridden if necessary. |
| 11362 | - runpath_var=LD_RUN_PATH |
| 11363 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' |
| 11364 | - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
| 11365 | - # ancient GNU ld didn't support --whole-archive et. al. |
| 11366 | - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 11367 | - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 11368 | - else |
| 11369 | - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= |
| 11370 | - fi |
| 11371 | - supports_anon_versioning=no |
| 11372 | - case `$LD -v 2>/dev/null` in |
| 11373 | - *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 11374 | - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 11375 | - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 11376 | - *\ 2.11.*) ;; # other 2.11 versions |
| 11377 | - *) supports_anon_versioning=yes ;; |
| 11378 | - esac |
| 11379 | - |
| 11380 | - # See if GNU ld supports shared libraries. |
| 11381 | - case $host_os in |
| 11382 | - aix3* | aix4* | aix5*) |
| 11383 | - # On AIX/PPC, the GNU linker is very broken |
| 11384 | - if test "$host_cpu" != ia64; then |
| 11385 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 11386 | - cat <<EOF 1>&2 |
| 11387 | - |
| 11388 | -*** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 11389 | -*** to be unable to reliably create shared libraries on AIX. |
| 11390 | -*** Therefore, libtool is disabling shared libraries support. If you |
| 11391 | -*** really care for shared libraries, you may want to modify your PATH |
| 11392 | -*** so that a non-GNU linker is found, and then restart. |
| 11393 | - |
| 11394 | -EOF |
| 11395 | - fi |
| 11396 | - ;; |
| 11397 | |
| 11398 | - amigaos*) |
| 11399 | - _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)' |
| 11400 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| 11401 | - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
| 11402 | - |
| 11403 | - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 11404 | - # that the semantics of dynamic libraries on AmigaOS, at least up |
| 11405 | - # to version 4, is to share data among multiple programs linked |
| 11406 | - # with the same dynamic library. Since this doesn't match the |
| 11407 | - # behavior of shared libraries on other platforms, we can't use |
| 11408 | - # them. |
| 11409 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 11410 | - ;; |
| 11411 | +linux*) |
| 11412 | + case `$CC -V 2>&1 | sed 5q` in |
| 11413 | + *Sun\ C*) |
| 11414 | + # Sun C++ 5.9 |
| 11415 | |
| 11416 | - beos*) |
| 11417 | - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 11418 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported |
| 11419 | - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 11420 | - # support --undefined. This deserves some investigation. FIXME |
| 11421 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 11422 | - else |
| 11423 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 11424 | - fi |
| 11425 | + # The more standards-conforming stlport4 library is |
| 11426 | + # incompatible with the Cstd library. Avoid specifying |
| 11427 | + # it if it's in CXXFLAGS. Ignore libCrun as |
| 11428 | + # -library=stlport4 depends on it. |
| 11429 | + case " $CXX $CXXFLAGS " in |
| 11430 | + *" -library=stlport4 "*) |
| 11431 | + solaris_use_stlport4=yes |
| 11432 | ;; |
| 11433 | + esac |
| 11434 | |
| 11435 | - cygwin* | mingw* | pw32*) |
| 11436 | - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, |
| 11437 | - # as there is no search path for DLLs. |
| 11438 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| 11439 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported |
| 11440 | - _LT_AC_TAGVAR(always_export_symbols, $1)=no |
| 11441 | - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
| 11442 | - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols' |
| 11443 | - |
| 11444 | - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
| 11445 | - _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' |
| 11446 | - # If the export-symbols file already is a .def file (1st line |
| 11447 | - # is EXPORTS), use it as is; otherwise, prepend... |
| 11448 | - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 11449 | - cp $export_symbols $output_objdir/$soname.def; |
| 11450 | - else |
| 11451 | - echo EXPORTS > $output_objdir/$soname.def; |
| 11452 | - cat $export_symbols >> $output_objdir/$soname.def; |
| 11453 | - fi~ |
| 11454 | - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 11455 | - else |
| 11456 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 11457 | - fi |
| 11458 | - ;; |
| 11459 | + if test "$solaris_use_stlport4" != yes; then |
| 11460 | + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' |
| 11461 | + fi |
| 11462 | + ;; |
| 11463 | + esac |
| 11464 | + ;; |
| 11465 | |
| 11466 | - interix3*) |
| 11467 | - _LT_AC_TAGVAR(hardcode_direct, $1)=no |
| 11468 | - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 11469 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
| 11470 | - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
| 11471 | - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 11472 | - # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 11473 | - # default) and relocated if they conflict, which is a slow very memory |
| 11474 | - # consuming and fragmenting process. To avoid this, we pick a random, |
| 11475 | - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 11476 | - # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 11477 | - _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' |
| 11478 | - _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' |
| 11479 | +solaris*) |
| 11480 | + case $cc_basename in |
| 11481 | + CC*) |
| 11482 | + # The more standards-conforming stlport4 library is |
| 11483 | + # incompatible with the Cstd library. Avoid specifying |
| 11484 | + # it if it's in CXXFLAGS. Ignore libCrun as |
| 11485 | + # -library=stlport4 depends on it. |
| 11486 | + case " $CXX $CXXFLAGS " in |
| 11487 | + *" -library=stlport4 "*) |
| 11488 | + solaris_use_stlport4=yes |
| 11489 | ;; |
| 11490 | + esac |
| 11491 | |
| 11492 | - linux*) |
| 11493 | - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 11494 | - tmp_addflag= |
| 11495 | - case $cc_basename,$host_cpu in |
| 11496 | - pgcc*) # Portland Group C compiler |
| 11497 | - _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' |
| 11498 | - tmp_addflag=' $pic_flag' |
| 11499 | - ;; |
| 11500 | - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| 11501 | - _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' |
| 11502 | - tmp_addflag=' $pic_flag -Mnomain' ;; |
| 11503 | - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 11504 | - tmp_addflag=' -i_dynamic' ;; |
| 11505 | - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 11506 | - tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 11507 | - ifc* | ifort*) # Intel Fortran compiler |
| 11508 | - tmp_addflag=' -nofor_main' ;; |
| 11509 | - esac |
| 11510 | - case `$CC -V 2>&1 | sed 5q` in |
| 11511 | - *Sun\ C*) # Sun C 5.9 |
| 11512 | - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive /dev/null' |
| 11513 | - tmp_sharedflag='-G' ;; |
| 11514 | - *Sun\ F*) # Sun Fortran 8.3 |
| 11515 | - tmp_sharedflag='-G' ;; |
| 11516 | - *) |
| 11517 | - tmp_sharedflag='-shared' ;; |
| 11518 | - esac |
| 11519 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 11520 | + # Adding this requires a known-good setup of shared libraries for |
| 11521 | + # Sun compiler versions before 5.6, else PIC objects from an old |
| 11522 | + # archive will be linked into the output, leading to subtle bugs. |
| 11523 | + if test "$solaris_use_stlport4" != yes; then |
| 11524 | + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' |
| 11525 | + fi |
| 11526 | + ;; |
| 11527 | + esac |
| 11528 | + ;; |
| 11529 | +esac |
| 11530 | +]) |
| 11531 | |
| 11532 | - if test $supports_anon_versioning = yes; then |
| 11533 | - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 11534 | - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 11535 | - $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 11536 | - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 11537 | - fi |
| 11538 | - else |
| 11539 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 11540 | - fi |
| 11541 | - ;; |
| 11542 | +case " $_LT_TAGVAR(postdeps, $1) " in |
| 11543 | +*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; |
| 11544 | +esac |
| 11545 | + _LT_TAGVAR(compiler_lib_search_dirs, $1)= |
| 11546 | +if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then |
| 11547 | + _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` |
| 11548 | +fi |
| 11549 | +_LT_TAGDECL([], [compiler_lib_search_dirs], [1], |
| 11550 | + [The directories searched by this compiler when creating a shared library]) |
| 11551 | +_LT_TAGDECL([], [predep_objects], [1], |
| 11552 | + [Dependencies to place before and after the objects being linked to |
| 11553 | + create a shared library]) |
| 11554 | +_LT_TAGDECL([], [postdep_objects], [1]) |
| 11555 | +_LT_TAGDECL([], [predeps], [1]) |
| 11556 | +_LT_TAGDECL([], [postdeps], [1]) |
| 11557 | +_LT_TAGDECL([], [compiler_lib_search_path], [1], |
| 11558 | + [The library search path used internally by the compiler when linking |
| 11559 | + a shared library]) |
| 11560 | +])# _LT_SYS_HIDDEN_LIBDEPS |
| 11561 | + |
| 11562 | + |
| 11563 | +# _LT_PROG_F77 |
| 11564 | +# ------------ |
| 11565 | +# Since AC_PROG_F77 is broken, in that it returns the empty string |
| 11566 | +# if there is no fortran compiler, we have our own version here. |
| 11567 | +m4_defun([_LT_PROG_F77], |
| 11568 | +[ |
| 11569 | +pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes]) |
| 11570 | +AC_PROG_F77 |
| 11571 | +if test -z "$F77" || test "X$F77" = "Xno"; then |
| 11572 | + _lt_disable_F77=yes |
| 11573 | +fi |
| 11574 | +popdef([AC_MSG_ERROR]) |
| 11575 | +])# _LT_PROG_F77 |
| 11576 | |
| 11577 | - netbsd*) |
| 11578 | - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 11579 | - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 11580 | - wlarc= |
| 11581 | - else |
| 11582 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 11583 | - _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' |
| 11584 | - fi |
| 11585 | - ;; |
| 11586 | +dnl aclocal-1.4 backwards compatibility: |
| 11587 | +dnl AC_DEFUN([_LT_PROG_F77], []) |
| 11588 | |
| 11589 | - solaris*) |
| 11590 | - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 11591 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 11592 | - cat <<EOF 1>&2 |
| 11593 | |
| 11594 | -*** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 11595 | -*** create shared libraries on Solaris systems. Therefore, libtool |
| 11596 | -*** is disabling shared libraries support. We urge you to upgrade GNU |
| 11597 | -*** binutils to release 2.9.1 or newer. Another option is to modify |
| 11598 | -*** your PATH or compiler configuration so that the native linker is |
| 11599 | -*** used, and then restart. |
| 11600 | +# _LT_LANG_F77_CONFIG([TAG]) |
| 11601 | +# -------------------------- |
| 11602 | +# Ensure that the configuration variables for a Fortran 77 compiler are |
| 11603 | +# suitably defined. These variables are subsequently used by _LT_CONFIG |
| 11604 | +# to write the compiler configuration to `libtool'. |
| 11605 | +m4_defun([_LT_LANG_F77_CONFIG], |
| 11606 | +[AC_REQUIRE([_LT_PROG_F77])dnl |
| 11607 | +AC_LANG_PUSH(Fortran 77) |
| 11608 | |
| 11609 | -EOF |
| 11610 | - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 11611 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 11612 | - _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' |
| 11613 | - else |
| 11614 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 11615 | - fi |
| 11616 | - ;; |
| 11617 | +_LT_TAGVAR(archive_cmds_need_lc, $1)=no |
| 11618 | +_LT_TAGVAR(allow_undefined_flag, $1)= |
| 11619 | +_LT_TAGVAR(always_export_symbols, $1)=no |
| 11620 | +_LT_TAGVAR(archive_expsym_cmds, $1)= |
| 11621 | +_LT_TAGVAR(export_dynamic_flag_spec, $1)= |
| 11622 | +_LT_TAGVAR(hardcode_direct, $1)=no |
| 11623 | +_LT_TAGVAR(hardcode_direct_absolute, $1)=no |
| 11624 | +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= |
| 11625 | +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= |
| 11626 | +_LT_TAGVAR(hardcode_libdir_separator, $1)= |
| 11627 | +_LT_TAGVAR(hardcode_minus_L, $1)=no |
| 11628 | +_LT_TAGVAR(hardcode_automatic, $1)=no |
| 11629 | +_LT_TAGVAR(inherit_rpath, $1)=no |
| 11630 | +_LT_TAGVAR(module_cmds, $1)= |
| 11631 | +_LT_TAGVAR(module_expsym_cmds, $1)= |
| 11632 | +_LT_TAGVAR(link_all_deplibs, $1)=unknown |
| 11633 | +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds |
| 11634 | +_LT_TAGVAR(no_undefined_flag, $1)= |
| 11635 | +_LT_TAGVAR(whole_archive_flag_spec, $1)= |
| 11636 | +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no |
| 11637 | |
| 11638 | - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 11639 | - case `$LD -v 2>&1` in |
| 11640 | - *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) |
| 11641 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 11642 | - cat <<_LT_EOF 1>&2 |
| 11643 | +# Source file extension for f77 test sources. |
| 11644 | +ac_ext=f |
| 11645 | |
| 11646 | -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 11647 | -*** reliably create shared libraries on SCO systems. Therefore, libtool |
| 11648 | -*** is disabling shared libraries support. We urge you to upgrade GNU |
| 11649 | -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 11650 | -*** your PATH or compiler configuration so that the native linker is |
| 11651 | -*** used, and then restart. |
| 11652 | +# Object file extension for compiled f77 test sources. |
| 11653 | +objext=o |
| 11654 | +_LT_TAGVAR(objext, $1)=$objext |
| 11655 | |
| 11656 | -_LT_EOF |
| 11657 | - ;; |
| 11658 | - *) |
| 11659 | - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 11660 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
| 11661 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
| 11662 | - _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' |
| 11663 | - else |
| 11664 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 11665 | - fi |
| 11666 | - ;; |
| 11667 | - esac |
| 11668 | - ;; |
| 11669 | +# No sense in running all these tests if we already determined that |
| 11670 | +# the F77 compiler isn't working. Some variables (like enable_shared) |
| 11671 | +# are currently assumed to apply to all compilers on this platform, |
| 11672 | +# and will be corrupted by setting them based on a non-working compiler. |
| 11673 | +if test "$_lt_disable_F77" != yes; then |
| 11674 | + # Code to be used in simple compile tests |
| 11675 | + lt_simple_compile_test_code="\ |
| 11676 | + subroutine t |
| 11677 | + return |
| 11678 | + end |
| 11679 | +" |
| 11680 | |
| 11681 | - sunos4*) |
| 11682 | - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 11683 | - wlarc= |
| 11684 | - _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
| 11685 | - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 11686 | - ;; |
| 11687 | + # Code to be used in simple link tests |
| 11688 | + lt_simple_link_test_code="\ |
| 11689 | + program t |
| 11690 | + end |
| 11691 | +" |
| 11692 | |
| 11693 | - *) |
| 11694 | - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 11695 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 11696 | - _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' |
| 11697 | - else |
| 11698 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 11699 | - fi |
| 11700 | - ;; |
| 11701 | - esac |
| 11702 | + # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 11703 | + _LT_TAG_COMPILER |
| 11704 | |
| 11705 | - if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then |
| 11706 | - runpath_var= |
| 11707 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= |
| 11708 | - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= |
| 11709 | - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= |
| 11710 | - fi |
| 11711 | - else |
| 11712 | - # PORTME fill in a description of your system's linker (not GNU ld) |
| 11713 | - case $host_os in |
| 11714 | - aix3*) |
| 11715 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported |
| 11716 | - _LT_AC_TAGVAR(always_export_symbols, $1)=yes |
| 11717 | - _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' |
| 11718 | - # Note: this linker hardcodes the directories in LIBPATH if there |
| 11719 | - # are no directories specified by -L. |
| 11720 | - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
| 11721 | - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
| 11722 | - # Neither direct hardcoding nor static linking is supported with a |
| 11723 | - # broken collect2. |
| 11724 | - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported |
| 11725 | - fi |
| 11726 | - ;; |
| 11727 | + # save warnings/boilerplate of simple test code |
| 11728 | + _LT_COMPILER_BOILERPLATE |
| 11729 | + _LT_LINKER_BOILERPLATE |
| 11730 | + |
| 11731 | + # Allow CC to be a program name with arguments. |
| 11732 | + lt_save_CC="$CC" |
| 11733 | + lt_save_GCC=$GCC |
| 11734 | + CC=${F77-"f77"} |
| 11735 | + compiler=$CC |
| 11736 | + _LT_TAGVAR(compiler, $1)=$CC |
| 11737 | + _LT_CC_BASENAME([$compiler]) |
| 11738 | + GCC=$G77 |
| 11739 | + if test -n "$compiler"; then |
| 11740 | + AC_MSG_CHECKING([if libtool supports shared libraries]) |
| 11741 | + AC_MSG_RESULT([$can_build_shared]) |
| 11742 | |
| 11743 | - aix4* | aix5*) |
| 11744 | - if test "$host_cpu" = ia64; then |
| 11745 | - # On IA64, the linker does run time linking by default, so we don't |
| 11746 | - # have to do anything special. |
| 11747 | - aix_use_runtimelinking=no |
| 11748 | - exp_sym_flag='-Bexport' |
| 11749 | - no_entry_flag="" |
| 11750 | - else |
| 11751 | - # If we're using GNU nm, then we don't want the "-C" option. |
| 11752 | - # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 11753 | - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 11754 | - _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' |
| 11755 | - else |
| 11756 | - _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' |
| 11757 | + AC_MSG_CHECKING([whether to build shared libraries]) |
| 11758 | + test "$can_build_shared" = "no" && enable_shared=no |
| 11759 | + |
| 11760 | + # On AIX, shared libraries and static libraries use the same namespace, and |
| 11761 | + # are all built from PIC. |
| 11762 | + case $host_os in |
| 11763 | + aix3*) |
| 11764 | + test "$enable_shared" = yes && enable_static=no |
| 11765 | + if test -n "$RANLIB"; then |
| 11766 | + archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 11767 | + postinstall_cmds='$RANLIB $lib' |
| 11768 | + fi |
| 11769 | + ;; |
| 11770 | + aix[[4-9]]*) |
| 11771 | + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 11772 | + test "$enable_shared" = yes && enable_static=no |
| 11773 | fi |
| 11774 | - aix_use_runtimelinking=no |
| 11775 | + ;; |
| 11776 | + esac |
| 11777 | + AC_MSG_RESULT([$enable_shared]) |
| 11778 | |
| 11779 | - # Test if we are trying to use run time linking or normal |
| 11780 | - # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 11781 | - # need to do runtime linking. |
| 11782 | - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) |
| 11783 | - for ld_flag in $LDFLAGS; do |
| 11784 | - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 11785 | - aix_use_runtimelinking=yes |
| 11786 | - break |
| 11787 | - fi |
| 11788 | - done |
| 11789 | - ;; |
| 11790 | - esac |
| 11791 | + AC_MSG_CHECKING([whether to build static libraries]) |
| 11792 | + # Make sure either enable_shared or enable_static is yes. |
| 11793 | + test "$enable_shared" = yes || enable_static=yes |
| 11794 | + AC_MSG_RESULT([$enable_static]) |
| 11795 | + |
| 11796 | + _LT_TAGVAR(GCC, $1)="$G77" |
| 11797 | + _LT_TAGVAR(LD, $1)="$LD" |
| 11798 | + |
| 11799 | + ## CAVEAT EMPTOR: |
| 11800 | + ## There is no encapsulation within the following macros, do not change |
| 11801 | + ## the running order or otherwise move them around unless you know exactly |
| 11802 | + ## what you are doing... |
| 11803 | + _LT_COMPILER_PIC($1) |
| 11804 | + _LT_COMPILER_C_O($1) |
| 11805 | + _LT_COMPILER_FILE_LOCKS($1) |
| 11806 | + _LT_LINKER_SHLIBS($1) |
| 11807 | + _LT_SYS_DYNAMIC_LINKER($1) |
| 11808 | + _LT_LINKER_HARDCODE_LIBPATH($1) |
| 11809 | + |
| 11810 | + _LT_CONFIG($1) |
| 11811 | + fi # test -n "$compiler" |
| 11812 | + |
| 11813 | + GCC=$lt_save_GCC |
| 11814 | + CC="$lt_save_CC" |
| 11815 | +fi # test "$_lt_disable_F77" != yes |
| 11816 | |
| 11817 | - exp_sym_flag='-bexport' |
| 11818 | - no_entry_flag='-bnoentry' |
| 11819 | - fi |
| 11820 | +AC_LANG_POP |
| 11821 | +])# _LT_LANG_F77_CONFIG |
| 11822 | |
| 11823 | - # When large executables or shared objects are built, AIX ld can |
| 11824 | - # have problems creating the table of contents. If linking a library |
| 11825 | - # or program results in "error TOC overflow" add -mminimal-toc to |
| 11826 | - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 11827 | - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 11828 | |
| 11829 | - _LT_AC_TAGVAR(archive_cmds, $1)='' |
| 11830 | - _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
| 11831 | - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' |
| 11832 | - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
| 11833 | +# _LT_PROG_FC |
| 11834 | +# ----------- |
| 11835 | +# Since AC_PROG_FC is broken, in that it returns the empty string |
| 11836 | +# if there is no fortran compiler, we have our own version here. |
| 11837 | +m4_defun([_LT_PROG_FC], |
| 11838 | +[ |
| 11839 | +pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes]) |
| 11840 | +AC_PROG_FC |
| 11841 | +if test -z "$FC" || test "X$FC" = "Xno"; then |
| 11842 | + _lt_disable_FC=yes |
| 11843 | +fi |
| 11844 | +popdef([AC_MSG_ERROR]) |
| 11845 | +])# _LT_PROG_FC |
| 11846 | |
| 11847 | - if test "$GCC" = yes; then |
| 11848 | - case $host_os in aix4.[[012]]|aix4.[[012]].*) |
| 11849 | - # We only want to do this on AIX 4.2 and lower, the check |
| 11850 | - # below for broken collect2 doesn't work under 4.3+ |
| 11851 | - collect2name=`${CC} -print-prog-name=collect2` |
| 11852 | - if test -f "$collect2name" && \ |
| 11853 | - strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 11854 | - then |
| 11855 | - # We have reworked collect2 |
| 11856 | - _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
| 11857 | - else |
| 11858 | - # We have old collect2 |
| 11859 | - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported |
| 11860 | - # It fails to find uninstalled libraries when the uninstalled |
| 11861 | - # path is not listed in the libpath. Setting hardcode_minus_L |
| 11862 | - # to unsupported forces relinking |
| 11863 | - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
| 11864 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| 11865 | - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= |
| 11866 | - fi |
| 11867 | - ;; |
| 11868 | - esac |
| 11869 | - shared_flag='-shared' |
| 11870 | - if test "$aix_use_runtimelinking" = yes; then |
| 11871 | - shared_flag="$shared_flag "'${wl}-G' |
| 11872 | - fi |
| 11873 | - else |
| 11874 | - # not using gcc |
| 11875 | - if test "$host_cpu" = ia64; then |
| 11876 | - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 11877 | - # chokes on -Wl,-G. The following line is correct: |
| 11878 | - shared_flag='-G' |
| 11879 | - else |
| 11880 | - if test "$aix_use_runtimelinking" = yes; then |
| 11881 | - shared_flag='${wl}-G' |
| 11882 | - else |
| 11883 | - shared_flag='${wl}-bM:SRE' |
| 11884 | - fi |
| 11885 | - fi |
| 11886 | - fi |
| 11887 | +dnl aclocal-1.4 backwards compatibility: |
| 11888 | +dnl AC_DEFUN([_LT_PROG_FC], []) |
| 11889 | |
| 11890 | - # It seems that -bexpall does not export symbols beginning with |
| 11891 | - # underscore (_), so it is better to generate a list of symbols to export. |
| 11892 | - _LT_AC_TAGVAR(always_export_symbols, $1)=yes |
| 11893 | - if test "$aix_use_runtimelinking" = yes; then |
| 11894 | - # Warning - without using the other runtime loading flags (-brtl), |
| 11895 | - # -berok will link without error, but may produce a broken library. |
| 11896 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' |
| 11897 | - # Determine the default libpath from the value encoded in an empty executable. |
| 11898 | - _LT_AC_SYS_LIBPATH_AIX |
| 11899 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 11900 | - _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" |
| 11901 | - else |
| 11902 | - if test "$host_cpu" = ia64; then |
| 11903 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' |
| 11904 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" |
| 11905 | - _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" |
| 11906 | - else |
| 11907 | - # Determine the default libpath from the value encoded in an empty executable. |
| 11908 | - _LT_AC_SYS_LIBPATH_AIX |
| 11909 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 11910 | - # Warning - without using the other run time loading flags, |
| 11911 | - # -berok will link without error, but may produce a broken library. |
| 11912 | - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' |
| 11913 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' |
| 11914 | - # Exported symbols can be pulled into shared objects from archives |
| 11915 | - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience' |
| 11916 | - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes |
| 11917 | - # This is similar to how AIX traditionally builds its shared libraries. |
| 11918 | - _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' |
| 11919 | - fi |
| 11920 | - fi |
| 11921 | - ;; |
| 11922 | |
| 11923 | - amigaos*) |
| 11924 | - _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)' |
| 11925 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| 11926 | - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
| 11927 | - # see comment about different semantics on the GNU ld section |
| 11928 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 11929 | - ;; |
| 11930 | +# _LT_LANG_FC_CONFIG([TAG]) |
| 11931 | +# ------------------------- |
| 11932 | +# Ensure that the configuration variables for a Fortran compiler are |
| 11933 | +# suitably defined. These variables are subsequently used by _LT_CONFIG |
| 11934 | +# to write the compiler configuration to `libtool'. |
| 11935 | +m4_defun([_LT_LANG_FC_CONFIG], |
| 11936 | +[AC_REQUIRE([_LT_PROG_FC])dnl |
| 11937 | +AC_LANG_PUSH(Fortran) |
| 11938 | + |
| 11939 | +_LT_TAGVAR(archive_cmds_need_lc, $1)=no |
| 11940 | +_LT_TAGVAR(allow_undefined_flag, $1)= |
| 11941 | +_LT_TAGVAR(always_export_symbols, $1)=no |
| 11942 | +_LT_TAGVAR(archive_expsym_cmds, $1)= |
| 11943 | +_LT_TAGVAR(export_dynamic_flag_spec, $1)= |
| 11944 | +_LT_TAGVAR(hardcode_direct, $1)=no |
| 11945 | +_LT_TAGVAR(hardcode_direct_absolute, $1)=no |
| 11946 | +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= |
| 11947 | +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= |
| 11948 | +_LT_TAGVAR(hardcode_libdir_separator, $1)= |
| 11949 | +_LT_TAGVAR(hardcode_minus_L, $1)=no |
| 11950 | +_LT_TAGVAR(hardcode_automatic, $1)=no |
| 11951 | +_LT_TAGVAR(inherit_rpath, $1)=no |
| 11952 | +_LT_TAGVAR(module_cmds, $1)= |
| 11953 | +_LT_TAGVAR(module_expsym_cmds, $1)= |
| 11954 | +_LT_TAGVAR(link_all_deplibs, $1)=unknown |
| 11955 | +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds |
| 11956 | +_LT_TAGVAR(no_undefined_flag, $1)= |
| 11957 | +_LT_TAGVAR(whole_archive_flag_spec, $1)= |
| 11958 | +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no |
| 11959 | |
| 11960 | - bsdi[[45]]*) |
| 11961 | - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic |
| 11962 | - ;; |
| 11963 | +# Source file extension for fc test sources. |
| 11964 | +ac_ext=${ac_fc_srcext-f} |
| 11965 | |
| 11966 | - cygwin* | mingw* | pw32*) |
| 11967 | - # When not using gcc, we currently assume that we are using |
| 11968 | - # Microsoft Visual C++. |
| 11969 | - # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 11970 | - # no search path for DLLs. |
| 11971 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' |
| 11972 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported |
| 11973 | - # Tell ltmain to make .lib files, not .a files. |
| 11974 | - libext=lib |
| 11975 | - # Tell ltmain to make .dll files, not .so files. |
| 11976 | - shrext_cmds=".dll" |
| 11977 | - # FIXME: Setting linknames here is a bad hack. |
| 11978 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 11979 | - # The linker will automatically build a .lib file if we build a DLL. |
| 11980 | - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true' |
| 11981 | - # FIXME: Should let the user specify the lib program. |
| 11982 | - _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 11983 | - _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' |
| 11984 | - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
| 11985 | - ;; |
| 11986 | +# Object file extension for compiled fc test sources. |
| 11987 | +objext=o |
| 11988 | +_LT_TAGVAR(objext, $1)=$objext |
| 11989 | |
| 11990 | - darwin* | rhapsody*) |
| 11991 | - case $host_os in |
| 11992 | - rhapsody* | darwin1.[[012]]) |
| 11993 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' |
| 11994 | - ;; |
| 11995 | - *) # Darwin 1.3 on |
| 11996 | - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 11997 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 11998 | - else |
| 11999 | - case ${MACOSX_DEPLOYMENT_TARGET} in |
| 12000 | - 10.[[012]]) |
| 12001 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 12002 | - ;; |
| 12003 | - 10.*) |
| 12004 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' |
| 12005 | - ;; |
| 12006 | - esac |
| 12007 | - fi |
| 12008 | - ;; |
| 12009 | - esac |
| 12010 | - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
| 12011 | - _LT_AC_TAGVAR(hardcode_direct, $1)=no |
| 12012 | - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes |
| 12013 | - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
| 12014 | - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' |
| 12015 | - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
| 12016 | - if test "$GCC" = yes ; then |
| 12017 | - output_verbose_link_cmd='echo' |
| 12018 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 12019 | - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 12020 | - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 12021 | - _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}' |
| 12022 | - _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}' |
| 12023 | - else |
| 12024 | - case $cc_basename in |
| 12025 | - xlc*) |
| 12026 | - output_verbose_link_cmd='echo' |
| 12027 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 12028 | - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 12029 | - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 12030 | - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 12031 | - _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}' |
| 12032 | - ;; |
| 12033 | - *) |
| 12034 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 12035 | - ;; |
| 12036 | - esac |
| 12037 | - fi |
| 12038 | - ;; |
| 12039 | +# No sense in running all these tests if we already determined that |
| 12040 | +# the FC compiler isn't working. Some variables (like enable_shared) |
| 12041 | +# are currently assumed to apply to all compilers on this platform, |
| 12042 | +# and will be corrupted by setting them based on a non-working compiler. |
| 12043 | +if test "$_lt_disable_FC" != yes; then |
| 12044 | + # Code to be used in simple compile tests |
| 12045 | + lt_simple_compile_test_code="\ |
| 12046 | + subroutine t |
| 12047 | + return |
| 12048 | + end |
| 12049 | +" |
| 12050 | |
| 12051 | - dgux*) |
| 12052 | - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 12053 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| 12054 | - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 12055 | - ;; |
| 12056 | + # Code to be used in simple link tests |
| 12057 | + lt_simple_link_test_code="\ |
| 12058 | + program t |
| 12059 | + end |
| 12060 | +" |
| 12061 | |
| 12062 | - freebsd1*) |
| 12063 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 12064 | - ;; |
| 12065 | + # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 12066 | + _LT_TAG_COMPILER |
| 12067 | |
| 12068 | - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 12069 | - # support. Future versions do this automatically, but an explicit c++rt0.o |
| 12070 | - # does not break anything, and helps significantly (at the cost of a little |
| 12071 | - # extra space). |
| 12072 | - freebsd2.2*) |
| 12073 | - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 12074 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
| 12075 | - _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
| 12076 | - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 12077 | - ;; |
| 12078 | + # save warnings/boilerplate of simple test code |
| 12079 | + _LT_COMPILER_BOILERPLATE |
| 12080 | + _LT_LINKER_BOILERPLATE |
| 12081 | + |
| 12082 | + # Allow CC to be a program name with arguments. |
| 12083 | + lt_save_CC="$CC" |
| 12084 | + lt_save_GCC=$GCC |
| 12085 | + CC=${FC-"f95"} |
| 12086 | + compiler=$CC |
| 12087 | + GCC=$ac_cv_fc_compiler_gnu |
| 12088 | |
| 12089 | - # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 12090 | - freebsd2*) |
| 12091 | - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 12092 | - _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
| 12093 | - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
| 12094 | - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 12095 | - ;; |
| 12096 | + _LT_TAGVAR(compiler, $1)=$CC |
| 12097 | + _LT_CC_BASENAME([$compiler]) |
| 12098 | |
| 12099 | - # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 12100 | - freebsd* | kfreebsd*-gnu | dragonfly*) |
| 12101 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 12102 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
| 12103 | - _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
| 12104 | - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 12105 | - ;; |
| 12106 | + if test -n "$compiler"; then |
| 12107 | + AC_MSG_CHECKING([if libtool supports shared libraries]) |
| 12108 | + AC_MSG_RESULT([$can_build_shared]) |
| 12109 | |
| 12110 | - hpux9*) |
| 12111 | - if test "$GCC" = yes; then |
| 12112 | - _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' |
| 12113 | - else |
| 12114 | - _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' |
| 12115 | - fi |
| 12116 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
| 12117 | - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| 12118 | - _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
| 12119 | + AC_MSG_CHECKING([whether to build shared libraries]) |
| 12120 | + test "$can_build_shared" = "no" && enable_shared=no |
| 12121 | |
| 12122 | - # hardcode_minus_L: Not really in the search PATH, |
| 12123 | - # but as the default location of the library. |
| 12124 | - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
| 12125 | - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
| 12126 | - ;; |
| 12127 | + # On AIX, shared libraries and static libraries use the same namespace, and |
| 12128 | + # are all built from PIC. |
| 12129 | + case $host_os in |
| 12130 | + aix3*) |
| 12131 | + test "$enable_shared" = yes && enable_static=no |
| 12132 | + if test -n "$RANLIB"; then |
| 12133 | + archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 12134 | + postinstall_cmds='$RANLIB $lib' |
| 12135 | + fi |
| 12136 | + ;; |
| 12137 | + aix[[4-9]]*) |
| 12138 | + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 12139 | + test "$enable_shared" = yes && enable_static=no |
| 12140 | + fi |
| 12141 | + ;; |
| 12142 | + esac |
| 12143 | + AC_MSG_RESULT([$enable_shared]) |
| 12144 | |
| 12145 | - hpux10*) |
| 12146 | - if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 12147 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 12148 | - else |
| 12149 | - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 12150 | - fi |
| 12151 | - if test "$with_gnu_ld" = no; then |
| 12152 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
| 12153 | - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| 12154 | + AC_MSG_CHECKING([whether to build static libraries]) |
| 12155 | + # Make sure either enable_shared or enable_static is yes. |
| 12156 | + test "$enable_shared" = yes || enable_static=yes |
| 12157 | + AC_MSG_RESULT([$enable_static]) |
| 12158 | + |
| 12159 | + _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu" |
| 12160 | + _LT_TAGVAR(LD, $1)="$LD" |
| 12161 | + |
| 12162 | + ## CAVEAT EMPTOR: |
| 12163 | + ## There is no encapsulation within the following macros, do not change |
| 12164 | + ## the running order or otherwise move them around unless you know exactly |
| 12165 | + ## what you are doing... |
| 12166 | + _LT_SYS_HIDDEN_LIBDEPS($1) |
| 12167 | + _LT_COMPILER_PIC($1) |
| 12168 | + _LT_COMPILER_C_O($1) |
| 12169 | + _LT_COMPILER_FILE_LOCKS($1) |
| 12170 | + _LT_LINKER_SHLIBS($1) |
| 12171 | + _LT_SYS_DYNAMIC_LINKER($1) |
| 12172 | + _LT_LINKER_HARDCODE_LIBPATH($1) |
| 12173 | + |
| 12174 | + _LT_CONFIG($1) |
| 12175 | + fi # test -n "$compiler" |
| 12176 | + |
| 12177 | + GCC=$lt_save_GCC |
| 12178 | + CC="$lt_save_CC" |
| 12179 | +fi # test "$_lt_disable_FC" != yes |
| 12180 | |
| 12181 | - _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
| 12182 | - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
| 12183 | +AC_LANG_POP |
| 12184 | +])# _LT_LANG_FC_CONFIG |
| 12185 | |
| 12186 | - # hardcode_minus_L: Not really in the search PATH, |
| 12187 | - # but as the default location of the library. |
| 12188 | - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
| 12189 | - fi |
| 12190 | - ;; |
| 12191 | |
| 12192 | - hpux11*) |
| 12193 | - if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 12194 | - case $host_cpu in |
| 12195 | - hppa*64*) |
| 12196 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12197 | - ;; |
| 12198 | - ia64*) |
| 12199 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 12200 | - ;; |
| 12201 | - *) |
| 12202 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 12203 | - ;; |
| 12204 | - esac |
| 12205 | - else |
| 12206 | - case $host_cpu in |
| 12207 | - hppa*64*) |
| 12208 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12209 | - ;; |
| 12210 | - ia64*) |
| 12211 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 12212 | - ;; |
| 12213 | - *) |
| 12214 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 12215 | - ;; |
| 12216 | - esac |
| 12217 | - fi |
| 12218 | - if test "$with_gnu_ld" = no; then |
| 12219 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
| 12220 | - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| 12221 | +# _LT_LANG_GCJ_CONFIG([TAG]) |
| 12222 | +# -------------------------- |
| 12223 | +# Ensure that the configuration variables for the GNU Java Compiler compiler |
| 12224 | +# are suitably defined. These variables are subsequently used by _LT_CONFIG |
| 12225 | +# to write the compiler configuration to `libtool'. |
| 12226 | +m4_defun([_LT_LANG_GCJ_CONFIG], |
| 12227 | +[AC_REQUIRE([LT_PROG_GCJ])dnl |
| 12228 | +AC_LANG_SAVE |
| 12229 | |
| 12230 | - case $host_cpu in |
| 12231 | - hppa*64*|ia64*) |
| 12232 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' |
| 12233 | - _LT_AC_TAGVAR(hardcode_direct, $1)=no |
| 12234 | - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 12235 | - ;; |
| 12236 | - *) |
| 12237 | - _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
| 12238 | - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
| 12239 | +# Source file extension for Java test sources. |
| 12240 | +ac_ext=java |
| 12241 | |
| 12242 | - # hardcode_minus_L: Not really in the search PATH, |
| 12243 | - # but as the default location of the library. |
| 12244 | - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
| 12245 | - ;; |
| 12246 | - esac |
| 12247 | - fi |
| 12248 | - ;; |
| 12249 | +# Object file extension for compiled Java test sources. |
| 12250 | +objext=o |
| 12251 | +_LT_TAGVAR(objext, $1)=$objext |
| 12252 | |
| 12253 | - irix5* | irix6* | nonstopux*) |
| 12254 | - if test "$GCC" = yes; then |
| 12255 | - _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' |
| 12256 | - else |
| 12257 | - _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' |
| 12258 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' |
| 12259 | - fi |
| 12260 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
| 12261 | - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| 12262 | - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
| 12263 | - ;; |
| 12264 | +# Code to be used in simple compile tests |
| 12265 | +lt_simple_compile_test_code="class foo {}" |
| 12266 | |
| 12267 | - netbsd*) |
| 12268 | - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 12269 | - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 12270 | - else |
| 12271 | - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 12272 | - fi |
| 12273 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
| 12274 | - _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
| 12275 | - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 12276 | - ;; |
| 12277 | +# Code to be used in simple link tests |
| 12278 | +lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' |
| 12279 | |
| 12280 | - newsos6) |
| 12281 | - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 12282 | - _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
| 12283 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
| 12284 | - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| 12285 | - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 12286 | - ;; |
| 12287 | +# ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 12288 | +_LT_TAG_COMPILER |
| 12289 | + |
| 12290 | +# save warnings/boilerplate of simple test code |
| 12291 | +_LT_COMPILER_BOILERPLATE |
| 12292 | +_LT_LINKER_BOILERPLATE |
| 12293 | + |
| 12294 | +# Allow CC to be a program name with arguments. |
| 12295 | +lt_save_CC="$CC" |
| 12296 | +lt_save_GCC=$GCC |
| 12297 | +GCC=yes |
| 12298 | +CC=${GCJ-"gcj"} |
| 12299 | +compiler=$CC |
| 12300 | +_LT_TAGVAR(compiler, $1)=$CC |
| 12301 | +_LT_TAGVAR(LD, $1)="$LD" |
| 12302 | +_LT_CC_BASENAME([$compiler]) |
| 12303 | |
| 12304 | - openbsd*) |
| 12305 | - _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
| 12306 | - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 12307 | - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 12308 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 12309 | - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
| 12310 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
| 12311 | - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
| 12312 | - else |
| 12313 | - case $host_os in |
| 12314 | - openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) |
| 12315 | - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 12316 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
| 12317 | - ;; |
| 12318 | - *) |
| 12319 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 12320 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
| 12321 | - ;; |
| 12322 | - esac |
| 12323 | - fi |
| 12324 | - ;; |
| 12325 | +# GCJ did not exist at the time GCC didn't implicitly link libc in. |
| 12326 | +_LT_TAGVAR(archive_cmds_need_lc, $1)=no |
| 12327 | |
| 12328 | - os2*) |
| 12329 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| 12330 | - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
| 12331 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported |
| 12332 | - _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' |
| 12333 | - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 12334 | - ;; |
| 12335 | +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds |
| 12336 | |
| 12337 | - osf3*) |
| 12338 | - if test "$GCC" = yes; then |
| 12339 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
| 12340 | - _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' |
| 12341 | - else |
| 12342 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' |
| 12343 | - _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' |
| 12344 | - fi |
| 12345 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
| 12346 | - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| 12347 | - ;; |
| 12348 | +## CAVEAT EMPTOR: |
| 12349 | +## There is no encapsulation within the following macros, do not change |
| 12350 | +## the running order or otherwise move them around unless you know exactly |
| 12351 | +## what you are doing... |
| 12352 | +if test -n "$compiler"; then |
| 12353 | + _LT_COMPILER_NO_RTTI($1) |
| 12354 | + _LT_COMPILER_PIC($1) |
| 12355 | + _LT_COMPILER_C_O($1) |
| 12356 | + _LT_COMPILER_FILE_LOCKS($1) |
| 12357 | + _LT_LINKER_SHLIBS($1) |
| 12358 | + _LT_LINKER_HARDCODE_LIBPATH($1) |
| 12359 | |
| 12360 | - osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 12361 | - if test "$GCC" = yes; then |
| 12362 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
| 12363 | - _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' |
| 12364 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
| 12365 | - else |
| 12366 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' |
| 12367 | - _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' |
| 12368 | - _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~ |
| 12369 | - $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' |
| 12370 | + _LT_CONFIG($1) |
| 12371 | +fi |
| 12372 | |
| 12373 | - # Both c and cxx compiler support -rpath directly |
| 12374 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' |
| 12375 | - fi |
| 12376 | - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| 12377 | - ;; |
| 12378 | +AC_LANG_RESTORE |
| 12379 | |
| 12380 | - solaris*) |
| 12381 | - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' |
| 12382 | - if test "$GCC" = yes; then |
| 12383 | - wlarc='${wl}' |
| 12384 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12385 | - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 12386 | - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
| 12387 | - else |
| 12388 | - wlarc='' |
| 12389 | - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 12390 | - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 12391 | - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 12392 | - fi |
| 12393 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
| 12394 | - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 12395 | - case $host_os in |
| 12396 | - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; |
| 12397 | - *) |
| 12398 | - # The compiler driver will combine linker options so we |
| 12399 | - # cannot just pass the convience library names through |
| 12400 | - # without $wl, iff we do not link with $LD. |
| 12401 | - # Luckily, gcc supports the same syntax we need for Sun Studio. |
| 12402 | - # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 12403 | - case $wlarc in |
| 12404 | - '') |
| 12405 | - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;; |
| 12406 | - *) |
| 12407 | - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; |
| 12408 | - esac ;; |
| 12409 | - esac |
| 12410 | - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
| 12411 | - ;; |
| 12412 | +GCC=$lt_save_GCC |
| 12413 | +CC="$lt_save_CC" |
| 12414 | +])# _LT_LANG_GCJ_CONFIG |
| 12415 | |
| 12416 | - sunos4*) |
| 12417 | - if test "x$host_vendor" = xsequent; then |
| 12418 | - # Use $CC to link under sequent, because it throws in some extra .o |
| 12419 | - # files that make .init and .fini sections work. |
| 12420 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12421 | - else |
| 12422 | - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 12423 | - fi |
| 12424 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| 12425 | - _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
| 12426 | - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
| 12427 | - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 12428 | - ;; |
| 12429 | |
| 12430 | - sysv4) |
| 12431 | - case $host_vendor in |
| 12432 | - sni) |
| 12433 | - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 12434 | - _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true??? |
| 12435 | - ;; |
| 12436 | - siemens) |
| 12437 | - ## LD is ld it makes a PLAMLIB |
| 12438 | - ## CC just makes a GrossModule. |
| 12439 | - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 12440 | - _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' |
| 12441 | - _LT_AC_TAGVAR(hardcode_direct, $1)=no |
| 12442 | - ;; |
| 12443 | - motorola) |
| 12444 | - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 12445 | - _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie |
| 12446 | - ;; |
| 12447 | - esac |
| 12448 | - runpath_var='LD_RUN_PATH' |
| 12449 | - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 12450 | - ;; |
| 12451 | +# _LT_LANG_RC_CONFIG([TAG]) |
| 12452 | +# ------------------------- |
| 12453 | +# Ensure that the configuration variables for the Windows resource compiler |
| 12454 | +# are suitably defined. These variables are subsequently used by _LT_CONFIG |
| 12455 | +# to write the compiler configuration to `libtool'. |
| 12456 | +m4_defun([_LT_LANG_RC_CONFIG], |
| 12457 | +[AC_REQUIRE([LT_PROG_RC])dnl |
| 12458 | +AC_LANG_SAVE |
| 12459 | |
| 12460 | - sysv4.3*) |
| 12461 | - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 12462 | - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 12463 | - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' |
| 12464 | - ;; |
| 12465 | +# Source file extension for RC test sources. |
| 12466 | +ac_ext=rc |
| 12467 | |
| 12468 | - sysv4*MP*) |
| 12469 | - if test -d /usr/nec; then |
| 12470 | - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 12471 | - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 12472 | - runpath_var=LD_RUN_PATH |
| 12473 | - hardcode_runpath_var=yes |
| 12474 | - _LT_AC_TAGVAR(ld_shlibs, $1)=yes |
| 12475 | - fi |
| 12476 | - ;; |
| 12477 | +# Object file extension for compiled RC test sources. |
| 12478 | +objext=o |
| 12479 | +_LT_TAGVAR(objext, $1)=$objext |
| 12480 | |
| 12481 | - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*) |
| 12482 | - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' |
| 12483 | - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
| 12484 | - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 12485 | - runpath_var='LD_RUN_PATH' |
| 12486 | +# Code to be used in simple compile tests |
| 12487 | +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' |
| 12488 | |
| 12489 | - if test "$GCC" = yes; then |
| 12490 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12491 | - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12492 | - else |
| 12493 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12494 | - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12495 | - fi |
| 12496 | - ;; |
| 12497 | +# Code to be used in simple link tests |
| 12498 | +lt_simple_link_test_code="$lt_simple_compile_test_code" |
| 12499 | |
| 12500 | - sysv5* | sco3.2v5* | sco5v6*) |
| 12501 | - # Note: We can NOT use -z defs as we might desire, because we do not |
| 12502 | - # link with -lc, and that would cause any symbols used from libc to |
| 12503 | - # always be unresolved, which means just about no library would |
| 12504 | - # ever link correctly. If we're not using GNU ld we use -z text |
| 12505 | - # though, which does catch some bad symbols but isn't as heavy-handed |
| 12506 | - # as -z defs. |
| 12507 | - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' |
| 12508 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' |
| 12509 | - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
| 12510 | - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 12511 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 12512 | - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' |
| 12513 | - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
| 12514 | - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' |
| 12515 | - runpath_var='LD_RUN_PATH' |
| 12516 | +# ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 12517 | +_LT_TAG_COMPILER |
| 12518 | |
| 12519 | - if test "$GCC" = yes; then |
| 12520 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12521 | - _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' |
| 12522 | - else |
| 12523 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12524 | - _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' |
| 12525 | - fi |
| 12526 | - ;; |
| 12527 | +# save warnings/boilerplate of simple test code |
| 12528 | +_LT_COMPILER_BOILERPLATE |
| 12529 | +_LT_LINKER_BOILERPLATE |
| 12530 | |
| 12531 | - uts4*) |
| 12532 | - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 12533 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| 12534 | - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 12535 | - ;; |
| 12536 | +# Allow CC to be a program name with arguments. |
| 12537 | +lt_save_CC="$CC" |
| 12538 | +lt_save_GCC=$GCC |
| 12539 | +GCC= |
| 12540 | +CC=${RC-"windres"} |
| 12541 | +compiler=$CC |
| 12542 | +_LT_TAGVAR(compiler, $1)=$CC |
| 12543 | +_LT_CC_BASENAME([$compiler]) |
| 12544 | +_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes |
| 12545 | |
| 12546 | - *) |
| 12547 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 12548 | - ;; |
| 12549 | - esac |
| 12550 | - fi |
| 12551 | -]) |
| 12552 | -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) |
| 12553 | -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no |
| 12554 | +if test -n "$compiler"; then |
| 12555 | + : |
| 12556 | + _LT_CONFIG($1) |
| 12557 | +fi |
| 12558 | |
| 12559 | -# |
| 12560 | -# Do we need to explicitly link libc? |
| 12561 | -# |
| 12562 | -case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in |
| 12563 | -x|xyes) |
| 12564 | - # Assume -lc should be added |
| 12565 | - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes |
| 12566 | +GCC=$lt_save_GCC |
| 12567 | +AC_LANG_RESTORE |
| 12568 | +CC="$lt_save_CC" |
| 12569 | +])# _LT_LANG_RC_CONFIG |
| 12570 | |
| 12571 | - if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 12572 | - case $_LT_AC_TAGVAR(archive_cmds, $1) in |
| 12573 | - *'~'*) |
| 12574 | - # FIXME: we may have to deal with multi-command sequences. |
| 12575 | - ;; |
| 12576 | - '$CC '*) |
| 12577 | - # Test whether the compiler implicitly links with -lc since on some |
| 12578 | - # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 12579 | - # to ld, don't add -lc before -lgcc. |
| 12580 | - AC_MSG_CHECKING([whether -lc should be explicitly linked in]) |
| 12581 | - $rm conftest* |
| 12582 | - printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 12583 | |
| 12584 | - if AC_TRY_EVAL(ac_compile) 2>conftest.err; then |
| 12585 | - soname=conftest |
| 12586 | - lib=conftest |
| 12587 | - libobjs=conftest.$ac_objext |
| 12588 | - deplibs= |
| 12589 | - wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) |
| 12590 | - pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) |
| 12591 | - compiler_flags=-v |
| 12592 | - linker_flags=-v |
| 12593 | - verstring= |
| 12594 | - output_objdir=. |
| 12595 | - libname=conftest |
| 12596 | - lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1) |
| 12597 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)= |
| 12598 | - if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) |
| 12599 | - then |
| 12600 | - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
| 12601 | - else |
| 12602 | - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes |
| 12603 | - fi |
| 12604 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag |
| 12605 | - else |
| 12606 | - cat conftest.err 1>&5 |
| 12607 | - fi |
| 12608 | - $rm conftest* |
| 12609 | - AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)]) |
| 12610 | - ;; |
| 12611 | - esac |
| 12612 | - fi |
| 12613 | - ;; |
| 12614 | -esac |
| 12615 | -])# AC_LIBTOOL_PROG_LD_SHLIBS |
| 12616 | +# LT_PROG_GCJ |
| 12617 | +# ----------- |
| 12618 | +AC_DEFUN([LT_PROG_GCJ], |
| 12619 | +[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ], |
| 12620 | + [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ], |
| 12621 | + [AC_CHECK_TOOL(GCJ, gcj,) |
| 12622 | + test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" |
| 12623 | + AC_SUBST(GCJFLAGS)])])[]dnl |
| 12624 | +]) |
| 12625 | |
| 12626 | +# Old name: |
| 12627 | +AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ]) |
| 12628 | +dnl aclocal-1.4 backwards compatibility: |
| 12629 | +dnl AC_DEFUN([LT_AC_PROG_GCJ], []) |
| 12630 | |
| 12631 | -# _LT_AC_FILE_LTDLL_C |
| 12632 | -# ------------------- |
| 12633 | -# Be careful that the start marker always follows a newline. |
| 12634 | -AC_DEFUN([_LT_AC_FILE_LTDLL_C], [ |
| 12635 | -# /* ltdll.c starts here */ |
| 12636 | -# #define WIN32_LEAN_AND_MEAN |
| 12637 | -# #include <windows.h> |
| 12638 | -# #undef WIN32_LEAN_AND_MEAN |
| 12639 | -# #include <stdio.h> |
| 12640 | -# |
| 12641 | -# #ifndef __CYGWIN__ |
| 12642 | -# # ifdef __CYGWIN32__ |
| 12643 | -# # define __CYGWIN__ __CYGWIN32__ |
| 12644 | -# # endif |
| 12645 | -# #endif |
| 12646 | -# |
| 12647 | -# #ifdef __cplusplus |
| 12648 | -# extern "C" { |
| 12649 | -# #endif |
| 12650 | -# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); |
| 12651 | -# #ifdef __cplusplus |
| 12652 | -# } |
| 12653 | -# #endif |
| 12654 | -# |
| 12655 | -# #ifdef __CYGWIN__ |
| 12656 | -# #include <cygwin/cygwin_dll.h> |
| 12657 | -# DECLARE_CYGWIN_DLL( DllMain ); |
| 12658 | -# #endif |
| 12659 | -# HINSTANCE __hDllInstance_base; |
| 12660 | -# |
| 12661 | -# BOOL APIENTRY |
| 12662 | -# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) |
| 12663 | -# { |
| 12664 | -# __hDllInstance_base = hInst; |
| 12665 | -# return TRUE; |
| 12666 | -# } |
| 12667 | -# /* ltdll.c ends here */ |
| 12668 | -])# _LT_AC_FILE_LTDLL_C |
| 12669 | |
| 12670 | +# LT_PROG_RC |
| 12671 | +# ---------- |
| 12672 | +AC_DEFUN([LT_PROG_RC], |
| 12673 | +[AC_CHECK_TOOL(RC, windres,) |
| 12674 | +]) |
| 12675 | |
| 12676 | -# _LT_AC_TAGVAR(VARNAME, [TAGNAME]) |
| 12677 | -# --------------------------------- |
| 12678 | -AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])]) |
| 12679 | +# Old name: |
| 12680 | +AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC]) |
| 12681 | +dnl aclocal-1.4 backwards compatibility: |
| 12682 | +dnl AC_DEFUN([LT_AC_PROG_RC], []) |
| 12683 | |
| 12684 | |
| 12685 | -# old names |
| 12686 | -AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL]) |
| 12687 | -AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) |
| 12688 | -AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) |
| 12689 | -AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) |
| 12690 | -AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) |
| 12691 | -AC_DEFUN([AM_PROG_LD], [AC_PROG_LD]) |
| 12692 | -AC_DEFUN([AM_PROG_NM], [AC_PROG_NM]) |
| 12693 | - |
| 12694 | -# This is just to silence aclocal about the macro not being used |
| 12695 | -ifelse([AC_DISABLE_FAST_INSTALL]) |
| 12696 | - |
| 12697 | -AC_DEFUN([LT_AC_PROG_GCJ], |
| 12698 | -[AC_CHECK_TOOL(GCJ, gcj, no) |
| 12699 | - test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" |
| 12700 | - AC_SUBST(GCJFLAGS) |
| 12701 | +# _LT_DECL_EGREP |
| 12702 | +# -------------- |
| 12703 | +# If we don't have a new enough Autoconf to choose the best grep |
| 12704 | +# available, choose the one first in the user's PATH. |
| 12705 | +m4_defun([_LT_DECL_EGREP], |
| 12706 | +[AC_REQUIRE([AC_PROG_EGREP])dnl |
| 12707 | +AC_REQUIRE([AC_PROG_FGREP])dnl |
| 12708 | +test -z "$GREP" && GREP=grep |
| 12709 | +_LT_DECL([], [GREP], [1], [A grep program that handles long lines]) |
| 12710 | +_LT_DECL([], [EGREP], [1], [An ERE matcher]) |
| 12711 | +_LT_DECL([], [FGREP], [1], [A literal string matcher]) |
| 12712 | +dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too |
| 12713 | +AC_SUBST([GREP]) |
| 12714 | ]) |
| 12715 | |
| 12716 | -AC_DEFUN([LT_AC_PROG_RC], |
| 12717 | -[AC_CHECK_TOOL(RC, windres, no) |
| 12718 | -]) |
| 12719 | |
| 12720 | +# _LT_DECL_SED |
| 12721 | +# ------------ |
| 12722 | +# Check for a fully-functional sed program, that truncates |
| 12723 | +# as few characters as possible. Prefer GNU sed if found. |
| 12724 | +m4_defun([_LT_DECL_SED], |
| 12725 | +[AC_PROG_SED |
| 12726 | +test -z "$SED" && SED=sed |
| 12727 | +Xsed="$SED -e 1s/^X//" |
| 12728 | +_LT_DECL([], [SED], [1], [A sed program that does not truncate output]) |
| 12729 | +_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"], |
| 12730 | + [Sed that helps us avoid accidentally triggering echo(1) options like -n]) |
| 12731 | +])# _LT_DECL_SED |
| 12732 | + |
| 12733 | +m4_ifndef([AC_PROG_SED], [ |
| 12734 | ############################################################ |
| 12735 | # NOTE: This macro has been submitted for inclusion into # |
| 12736 | # GNU Autoconf as AC_PROG_SED. When it is available in # |
| 12737 | # a released version of Autoconf we should remove this # |
| 12738 | # macro and use it instead. # |
| 12739 | ############################################################ |
| 12740 | -# LT_AC_PROG_SED |
| 12741 | -# -------------- |
| 12742 | -# Check for a fully-functional sed program, that truncates |
| 12743 | -# as few characters as possible. Prefer GNU sed if found. |
| 12744 | -AC_DEFUN([LT_AC_PROG_SED], |
| 12745 | + |
| 12746 | +m4_defun([AC_PROG_SED], |
| 12747 | [AC_MSG_CHECKING([for a sed that does not truncate output]) |
| 12748 | AC_CACHE_VAL(lt_cv_path_SED, |
| 12749 | [# Loop through the user's path and test for sed and gsed. |
| 12750 | @@ -6435,6 +7010,7 @@ do |
| 12751 | done |
| 12752 | done |
| 12753 | done |
| 12754 | +IFS=$as_save_IFS |
| 12755 | lt_ac_max=0 |
| 12756 | lt_ac_count=0 |
| 12757 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
| 12758 | @@ -6467,5 +7043,268 @@ for lt_ac_sed in $lt_ac_sed_list /usr/xp |
| 12759 | done |
| 12760 | ]) |
| 12761 | SED=$lt_cv_path_SED |
| 12762 | +AC_SUBST([SED]) |
| 12763 | AC_MSG_RESULT([$SED]) |
| 12764 | +])#AC_PROG_SED |
| 12765 | +])#m4_ifndef |
| 12766 | + |
| 12767 | +# Old name: |
| 12768 | +AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED]) |
| 12769 | +dnl aclocal-1.4 backwards compatibility: |
| 12770 | +dnl AC_DEFUN([LT_AC_PROG_SED], []) |
| 12771 | + |
| 12772 | + |
| 12773 | +# _LT_CHECK_SHELL_FEATURES |
| 12774 | +# ------------------------ |
| 12775 | +# Find out whether the shell is Bourne or XSI compatible, |
| 12776 | +# or has some other useful features. |
| 12777 | +m4_defun([_LT_CHECK_SHELL_FEATURES], |
| 12778 | +[AC_MSG_CHECKING([whether the shell understands some XSI constructs]) |
| 12779 | +# Try some XSI features |
| 12780 | +xsi_shell=no |
| 12781 | +( _lt_dummy="a/b/c" |
| 12782 | + test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ |
| 12783 | + = c,a/b,, \ |
| 12784 | + && eval 'test $(( 1 + 1 )) -eq 2 \ |
| 12785 | + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ |
| 12786 | + && xsi_shell=yes |
| 12787 | +AC_MSG_RESULT([$xsi_shell]) |
| 12788 | +_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell']) |
| 12789 | + |
| 12790 | +AC_MSG_CHECKING([whether the shell understands "+="]) |
| 12791 | +lt_shell_append=no |
| 12792 | +( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \ |
| 12793 | + >/dev/null 2>&1 \ |
| 12794 | + && lt_shell_append=yes |
| 12795 | +AC_MSG_RESULT([$lt_shell_append]) |
| 12796 | +_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append']) |
| 12797 | + |
| 12798 | +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 12799 | + lt_unset=unset |
| 12800 | +else |
| 12801 | + lt_unset=false |
| 12802 | +fi |
| 12803 | +_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl |
| 12804 | + |
| 12805 | +# test EBCDIC or ASCII |
| 12806 | +case `echo X|tr X '\101'` in |
| 12807 | + A) # ASCII based system |
| 12808 | + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr |
| 12809 | + lt_SP2NL='tr \040 \012' |
| 12810 | + lt_NL2SP='tr \015\012 \040\040' |
| 12811 | + ;; |
| 12812 | + *) # EBCDIC based system |
| 12813 | + lt_SP2NL='tr \100 \n' |
| 12814 | + lt_NL2SP='tr \r\n \100\100' |
| 12815 | + ;; |
| 12816 | +esac |
| 12817 | +_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl |
| 12818 | +_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl |
| 12819 | +])# _LT_CHECK_SHELL_FEATURES |
| 12820 | + |
| 12821 | + |
| 12822 | +# _LT_PROG_XSI_SHELLFNS |
| 12823 | +# --------------------- |
| 12824 | +# Bourne and XSI compatible variants of some useful shell functions. |
| 12825 | +m4_defun([_LT_PROG_XSI_SHELLFNS], |
| 12826 | +[case $xsi_shell in |
| 12827 | + yes) |
| 12828 | + cat << \_LT_EOF >> "$cfgfile" |
| 12829 | + |
| 12830 | +# func_dirname file append nondir_replacement |
| 12831 | +# Compute the dirname of FILE. If nonempty, add APPEND to the result, |
| 12832 | +# otherwise set result to NONDIR_REPLACEMENT. |
| 12833 | +func_dirname () |
| 12834 | +{ |
| 12835 | + case ${1} in |
| 12836 | + */*) func_dirname_result="${1%/*}${2}" ;; |
| 12837 | + * ) func_dirname_result="${3}" ;; |
| 12838 | + esac |
| 12839 | +} |
| 12840 | + |
| 12841 | +# func_basename file |
| 12842 | +func_basename () |
| 12843 | +{ |
| 12844 | + func_basename_result="${1##*/}" |
| 12845 | +} |
| 12846 | + |
| 12847 | +# func_dirname_and_basename file append nondir_replacement |
| 12848 | +# perform func_basename and func_dirname in a single function |
| 12849 | +# call: |
| 12850 | +# dirname: Compute the dirname of FILE. If nonempty, |
| 12851 | +# add APPEND to the result, otherwise set result |
| 12852 | +# to NONDIR_REPLACEMENT. |
| 12853 | +# value returned in "$func_dirname_result" |
| 12854 | +# basename: Compute filename of FILE. |
| 12855 | +# value retuned in "$func_basename_result" |
| 12856 | +# Implementation must be kept synchronized with func_dirname |
| 12857 | +# and func_basename. For efficiency, we do not delegate to |
| 12858 | +# those functions but instead duplicate the functionality here. |
| 12859 | +func_dirname_and_basename () |
| 12860 | +{ |
| 12861 | + case ${1} in |
| 12862 | + */*) func_dirname_result="${1%/*}${2}" ;; |
| 12863 | + * ) func_dirname_result="${3}" ;; |
| 12864 | + esac |
| 12865 | + func_basename_result="${1##*/}" |
| 12866 | +} |
| 12867 | + |
| 12868 | +# func_stripname prefix suffix name |
| 12869 | +# strip PREFIX and SUFFIX off of NAME. |
| 12870 | +# PREFIX and SUFFIX must not contain globbing or regex special |
| 12871 | +# characters, hashes, percent signs, but SUFFIX may contain a leading |
| 12872 | +# dot (in which case that matches only a dot). |
| 12873 | +func_stripname () |
| 12874 | +{ |
| 12875 | + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are |
| 12876 | + # positional parameters, so assign one to ordinary parameter first. |
| 12877 | + func_stripname_result=${3} |
| 12878 | + func_stripname_result=${func_stripname_result#"${1}"} |
| 12879 | + func_stripname_result=${func_stripname_result%"${2}"} |
| 12880 | +} |
| 12881 | + |
| 12882 | +# func_opt_split |
| 12883 | +func_opt_split () |
| 12884 | +{ |
| 12885 | + func_opt_split_opt=${1%%=*} |
| 12886 | + func_opt_split_arg=${1#*=} |
| 12887 | +} |
| 12888 | + |
| 12889 | +# func_lo2o object |
| 12890 | +func_lo2o () |
| 12891 | +{ |
| 12892 | + case ${1} in |
| 12893 | + *.lo) func_lo2o_result=${1%.lo}.${objext} ;; |
| 12894 | + *) func_lo2o_result=${1} ;; |
| 12895 | + esac |
| 12896 | +} |
| 12897 | + |
| 12898 | +# func_xform libobj-or-source |
| 12899 | +func_xform () |
| 12900 | +{ |
| 12901 | + func_xform_result=${1%.*}.lo |
| 12902 | +} |
| 12903 | + |
| 12904 | +# func_arith arithmetic-term... |
| 12905 | +func_arith () |
| 12906 | +{ |
| 12907 | + func_arith_result=$(( $[*] )) |
| 12908 | +} |
| 12909 | + |
| 12910 | +# func_len string |
| 12911 | +# STRING may not start with a hyphen. |
| 12912 | +func_len () |
| 12913 | +{ |
| 12914 | + func_len_result=${#1} |
| 12915 | +} |
| 12916 | + |
| 12917 | +_LT_EOF |
| 12918 | + ;; |
| 12919 | + *) # Bourne compatible functions. |
| 12920 | + cat << \_LT_EOF >> "$cfgfile" |
| 12921 | + |
| 12922 | +# func_dirname file append nondir_replacement |
| 12923 | +# Compute the dirname of FILE. If nonempty, add APPEND to the result, |
| 12924 | +# otherwise set result to NONDIR_REPLACEMENT. |
| 12925 | +func_dirname () |
| 12926 | +{ |
| 12927 | + # Extract subdirectory from the argument. |
| 12928 | + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` |
| 12929 | + if test "X$func_dirname_result" = "X${1}"; then |
| 12930 | + func_dirname_result="${3}" |
| 12931 | + else |
| 12932 | + func_dirname_result="$func_dirname_result${2}" |
| 12933 | + fi |
| 12934 | +} |
| 12935 | + |
| 12936 | +# func_basename file |
| 12937 | +func_basename () |
| 12938 | +{ |
| 12939 | + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` |
| 12940 | +} |
| 12941 | + |
| 12942 | +dnl func_dirname_and_basename |
| 12943 | +dnl A portable version of this function is already defined in general.m4sh |
| 12944 | +dnl so there is no need for it here. |
| 12945 | + |
| 12946 | +# func_stripname prefix suffix name |
| 12947 | +# strip PREFIX and SUFFIX off of NAME. |
| 12948 | +# PREFIX and SUFFIX must not contain globbing or regex special |
| 12949 | +# characters, hashes, percent signs, but SUFFIX may contain a leading |
| 12950 | +# dot (in which case that matches only a dot). |
| 12951 | +# func_strip_suffix prefix name |
| 12952 | +func_stripname () |
| 12953 | +{ |
| 12954 | + case ${2} in |
| 12955 | + .*) func_stripname_result=`$ECHO "X${3}" \ |
| 12956 | + | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; |
| 12957 | + *) func_stripname_result=`$ECHO "X${3}" \ |
| 12958 | + | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; |
| 12959 | + esac |
| 12960 | +} |
| 12961 | + |
| 12962 | +# sed scripts: |
| 12963 | +my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q' |
| 12964 | +my_sed_long_arg='1s/^-[[^=]]*=//' |
| 12965 | + |
| 12966 | +# func_opt_split |
| 12967 | +func_opt_split () |
| 12968 | +{ |
| 12969 | + func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` |
| 12970 | + func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` |
| 12971 | +} |
| 12972 | + |
| 12973 | +# func_lo2o object |
| 12974 | +func_lo2o () |
| 12975 | +{ |
| 12976 | + func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` |
| 12977 | +} |
| 12978 | + |
| 12979 | +# func_xform libobj-or-source |
| 12980 | +func_xform () |
| 12981 | +{ |
| 12982 | + func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'` |
| 12983 | +} |
| 12984 | + |
| 12985 | +# func_arith arithmetic-term... |
| 12986 | +func_arith () |
| 12987 | +{ |
| 12988 | + func_arith_result=`expr "$[@]"` |
| 12989 | +} |
| 12990 | + |
| 12991 | +# func_len string |
| 12992 | +# STRING may not start with a hyphen. |
| 12993 | +func_len () |
| 12994 | +{ |
| 12995 | + func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len` |
| 12996 | +} |
| 12997 | + |
| 12998 | +_LT_EOF |
| 12999 | +esac |
| 13000 | + |
| 13001 | +case $lt_shell_append in |
| 13002 | + yes) |
| 13003 | + cat << \_LT_EOF >> "$cfgfile" |
| 13004 | + |
| 13005 | +# func_append var value |
| 13006 | +# Append VALUE to the end of shell variable VAR. |
| 13007 | +func_append () |
| 13008 | +{ |
| 13009 | + eval "$[1]+=\$[2]" |
| 13010 | +} |
| 13011 | +_LT_EOF |
| 13012 | + ;; |
| 13013 | + *) |
| 13014 | + cat << \_LT_EOF >> "$cfgfile" |
| 13015 | + |
| 13016 | +# func_append var value |
| 13017 | +# Append VALUE to the end of shell variable VAR. |
| 13018 | +func_append () |
| 13019 | +{ |
| 13020 | + eval "$[1]=\$$[1]\$[2]" |
| 13021 | +} |
| 13022 | + |
| 13023 | +_LT_EOF |
| 13024 | + ;; |
| 13025 | + esac |
| 13026 | ]) |
| 13027 | --- a/m4/libtool.m4 |
| 13028 | +++ b/m4/libtool.m4 |
| 13029 | @@ -1,107 +1,186 @@ |
| 13030 | # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- |
| 13031 | -## Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006 |
| 13032 | -## Free Software Foundation, Inc. |
| 13033 | -## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
| 13034 | -## |
| 13035 | -## This file is free software; the Free Software Foundation gives |
| 13036 | -## unlimited permission to copy and/or distribute it, with or without |
| 13037 | -## modifications, as long as this notice is preserved. |
| 13038 | - |
| 13039 | -# serial 48 AC_PROG_LIBTOOL |
| 13040 | - |
| 13041 | - |
| 13042 | -# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) |
| 13043 | -# ----------------------------------------------------------- |
| 13044 | -# If this macro is not defined by Autoconf, define it here. |
| 13045 | -m4_ifdef([AC_PROVIDE_IFELSE], |
| 13046 | - [], |
| 13047 | - [m4_define([AC_PROVIDE_IFELSE], |
| 13048 | - [m4_ifdef([AC_PROVIDE_$1], |
| 13049 | - [$2], [$3])])]) |
| 13050 | +# |
| 13051 | +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
| 13052 | +# 2006, 2007, 2008 Free Software Foundation, Inc. |
| 13053 | +# Written by Gordon Matzigkeit, 1996 |
| 13054 | +# |
| 13055 | +# This file is free software; the Free Software Foundation gives |
| 13056 | +# unlimited permission to copy and/or distribute it, with or without |
| 13057 | +# modifications, as long as this notice is preserved. |
| 13058 | + |
| 13059 | +m4_define([_LT_COPYING], [dnl |
| 13060 | +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
| 13061 | +# 2006, 2007, 2008 Free Software Foundation, Inc. |
| 13062 | +# Written by Gordon Matzigkeit, 1996 |
| 13063 | +# |
| 13064 | +# This file is part of GNU Libtool. |
| 13065 | +# |
| 13066 | +# GNU Libtool is free software; you can redistribute it and/or |
| 13067 | +# modify it under the terms of the GNU General Public License as |
| 13068 | +# published by the Free Software Foundation; either version 2 of |
| 13069 | +# the License, or (at your option) any later version. |
| 13070 | +# |
| 13071 | +# As a special exception to the GNU General Public License, |
| 13072 | +# if you distribute this file as part of a program or library that |
| 13073 | +# is built using GNU Libtool, you may include this file under the |
| 13074 | +# same distribution terms that you use for the rest of that program. |
| 13075 | +# |
| 13076 | +# GNU Libtool is distributed in the hope that it will be useful, |
| 13077 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13078 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13079 | +# GNU General Public License for more details. |
| 13080 | +# |
| 13081 | +# You should have received a copy of the GNU General Public License |
| 13082 | +# along with GNU Libtool; see the file COPYING. If not, a copy |
| 13083 | +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or |
| 13084 | +# obtained by writing to the Free Software Foundation, Inc., |
| 13085 | +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 13086 | +]) |
| 13087 | |
| 13088 | +# serial 56 LT_INIT |
| 13089 | |
| 13090 | -# AC_PROG_LIBTOOL |
| 13091 | -# --------------- |
| 13092 | -AC_DEFUN([AC_PROG_LIBTOOL], |
| 13093 | -[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl |
| 13094 | -dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX |
| 13095 | -dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX. |
| 13096 | - AC_PROVIDE_IFELSE([AC_PROG_CXX], |
| 13097 | - [AC_LIBTOOL_CXX], |
| 13098 | - [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX |
| 13099 | - ])]) |
| 13100 | -dnl And a similar setup for Fortran 77 support |
| 13101 | - AC_PROVIDE_IFELSE([AC_PROG_F77], |
| 13102 | - [AC_LIBTOOL_F77], |
| 13103 | - [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77 |
| 13104 | -])]) |
| 13105 | - |
| 13106 | -dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly. |
| 13107 | -dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run |
| 13108 | -dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both. |
| 13109 | - AC_PROVIDE_IFELSE([AC_PROG_GCJ], |
| 13110 | - [AC_LIBTOOL_GCJ], |
| 13111 | - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], |
| 13112 | - [AC_LIBTOOL_GCJ], |
| 13113 | - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ], |
| 13114 | - [AC_LIBTOOL_GCJ], |
| 13115 | - [ifdef([AC_PROG_GCJ], |
| 13116 | - [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])]) |
| 13117 | - ifdef([A][M_PROG_GCJ], |
| 13118 | - [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])]) |
| 13119 | - ifdef([LT_AC_PROG_GCJ], |
| 13120 | - [define([LT_AC_PROG_GCJ], |
| 13121 | - defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])]) |
| 13122 | -])])# AC_PROG_LIBTOOL |
| 13123 | |
| 13124 | +# LT_PREREQ(VERSION) |
| 13125 | +# ------------------ |
| 13126 | +# Complain and exit if this libtool version is less that VERSION. |
| 13127 | +m4_defun([LT_PREREQ], |
| 13128 | +[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, |
| 13129 | + [m4_default([$3], |
| 13130 | + [m4_fatal([Libtool version $1 or higher is required], |
| 13131 | + 63)])], |
| 13132 | + [$2])]) |
| 13133 | |
| 13134 | -# _AC_PROG_LIBTOOL |
| 13135 | -# ---------------- |
| 13136 | -AC_DEFUN([_AC_PROG_LIBTOOL], |
| 13137 | -[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl |
| 13138 | -AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl |
| 13139 | -AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl |
| 13140 | -AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl |
| 13141 | + |
| 13142 | +# _LT_CHECK_BUILDDIR |
| 13143 | +# ------------------ |
| 13144 | +# Complain if the absolute build directory name contains unusual characters |
| 13145 | +m4_defun([_LT_CHECK_BUILDDIR], |
| 13146 | +[case `pwd` in |
| 13147 | + *\ * | *\ *) |
| 13148 | + AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; |
| 13149 | +esac |
| 13150 | +]) |
| 13151 | + |
| 13152 | + |
| 13153 | +# LT_INIT([OPTIONS]) |
| 13154 | +# ------------------ |
| 13155 | +AC_DEFUN([LT_INIT], |
| 13156 | +[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT |
| 13157 | +AC_BEFORE([$0], [LT_LANG])dnl |
| 13158 | +AC_BEFORE([$0], [LT_OUTPUT])dnl |
| 13159 | +AC_BEFORE([$0], [LTDL_INIT])dnl |
| 13160 | +m4_require([_LT_CHECK_BUILDDIR])dnl |
| 13161 | + |
| 13162 | +dnl Autoconf doesn't catch unexpanded LT_ macros by default: |
| 13163 | +m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl |
| 13164 | +m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl |
| 13165 | +dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 |
| 13166 | +dnl unless we require an AC_DEFUNed macro: |
| 13167 | +AC_REQUIRE([LTOPTIONS_VERSION])dnl |
| 13168 | +AC_REQUIRE([LTSUGAR_VERSION])dnl |
| 13169 | +AC_REQUIRE([LTVERSION_VERSION])dnl |
| 13170 | +AC_REQUIRE([LTOBSOLETE_VERSION])dnl |
| 13171 | +m4_require([_LT_PROG_LTMAIN])dnl |
| 13172 | + |
| 13173 | +dnl Parse OPTIONS |
| 13174 | +_LT_SET_OPTIONS([$0], [$1]) |
| 13175 | |
| 13176 | # This can be used to rebuild libtool when needed |
| 13177 | -LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
| 13178 | +LIBTOOL_DEPS="$ltmain" |
| 13179 | |
| 13180 | # Always use our own libtool. |
| 13181 | -LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
| 13182 | +LIBTOOL='$(SHELL) $(top_builddir)' |
| 13183 | +LIBTOOL="$LIBTOOL/$host_alias-libtool" |
| 13184 | AC_SUBST(LIBTOOL)dnl |
| 13185 | |
| 13186 | -# Prevent multiple expansion |
| 13187 | -define([AC_PROG_LIBTOOL], []) |
| 13188 | -])# _AC_PROG_LIBTOOL |
| 13189 | +_LT_SETUP |
| 13190 | |
| 13191 | +# Only expand once: |
| 13192 | +m4_define([LT_INIT]) |
| 13193 | +])# LT_INIT |
| 13194 | + |
| 13195 | +# Old names: |
| 13196 | +AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT]) |
| 13197 | +AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT]) |
| 13198 | +dnl aclocal-1.4 backwards compatibility: |
| 13199 | +dnl AC_DEFUN([AC_PROG_LIBTOOL], []) |
| 13200 | +dnl AC_DEFUN([AM_PROG_LIBTOOL], []) |
| 13201 | |
| 13202 | -# AC_LIBTOOL_SETUP |
| 13203 | -# ---------------- |
| 13204 | -AC_DEFUN([AC_LIBTOOL_SETUP], |
| 13205 | -[AC_PREREQ(2.50)dnl |
| 13206 | -AC_REQUIRE([AC_ENABLE_SHARED])dnl |
| 13207 | -AC_REQUIRE([AC_ENABLE_STATIC])dnl |
| 13208 | -AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl |
| 13209 | -AC_REQUIRE([AC_CANONICAL_HOST])dnl |
| 13210 | + |
| 13211 | +# _LT_CC_BASENAME(CC) |
| 13212 | +# ------------------- |
| 13213 | +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. |
| 13214 | +m4_defun([_LT_CC_BASENAME], |
| 13215 | +[for cc_temp in $1""; do |
| 13216 | + case $cc_temp in |
| 13217 | + compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; |
| 13218 | + distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; |
| 13219 | + \-*) ;; |
| 13220 | + *) break;; |
| 13221 | + esac |
| 13222 | +done |
| 13223 | +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 13224 | +]) |
| 13225 | + |
| 13226 | + |
| 13227 | +# _LT_FILEUTILS_DEFAULTS |
| 13228 | +# ---------------------- |
| 13229 | +# It is okay to use these file commands and assume they have been set |
| 13230 | +# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'. |
| 13231 | +m4_defun([_LT_FILEUTILS_DEFAULTS], |
| 13232 | +[: ${CP="cp -f"} |
| 13233 | +: ${MV="mv -f"} |
| 13234 | +: ${RM="rm -f"} |
| 13235 | +])# _LT_FILEUTILS_DEFAULTS |
| 13236 | + |
| 13237 | + |
| 13238 | +# _LT_SETUP |
| 13239 | +# --------- |
| 13240 | +m4_defun([_LT_SETUP], |
| 13241 | +[AC_REQUIRE([AC_CANONICAL_HOST])dnl |
| 13242 | AC_REQUIRE([AC_CANONICAL_BUILD])dnl |
| 13243 | +_LT_DECL([], [host_alias], [0], [The host system])dnl |
| 13244 | +_LT_DECL([], [host], [0])dnl |
| 13245 | +_LT_DECL([], [host_os], [0])dnl |
| 13246 | +dnl |
| 13247 | +_LT_DECL([], [build_alias], [0], [The build system])dnl |
| 13248 | +_LT_DECL([], [build], [0])dnl |
| 13249 | +_LT_DECL([], [build_os], [0])dnl |
| 13250 | +dnl |
| 13251 | AC_REQUIRE([AC_PROG_CC])dnl |
| 13252 | -AC_REQUIRE([AC_PROG_LD])dnl |
| 13253 | -AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl |
| 13254 | -AC_REQUIRE([AC_PROG_NM])dnl |
| 13255 | - |
| 13256 | +AC_REQUIRE([LT_PATH_LD])dnl |
| 13257 | +AC_REQUIRE([LT_PATH_NM])dnl |
| 13258 | +dnl |
| 13259 | AC_REQUIRE([AC_PROG_LN_S])dnl |
| 13260 | -AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl |
| 13261 | -# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
| 13262 | -AC_REQUIRE([AC_OBJEXT])dnl |
| 13263 | -AC_REQUIRE([AC_EXEEXT])dnl |
| 13264 | +test -z "$LN_S" && LN_S="ln -s" |
| 13265 | +_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl |
| 13266 | dnl |
| 13267 | +AC_REQUIRE([LT_CMD_MAX_LEN])dnl |
| 13268 | +_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl |
| 13269 | +_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl |
| 13270 | +dnl |
| 13271 | +m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
| 13272 | +m4_require([_LT_CHECK_SHELL_FEATURES])dnl |
| 13273 | +m4_require([_LT_CMD_RELOAD])dnl |
| 13274 | +m4_require([_LT_CHECK_MAGIC_METHOD])dnl |
| 13275 | +m4_require([_LT_CMD_OLD_ARCHIVE])dnl |
| 13276 | +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl |
| 13277 | + |
| 13278 | +_LT_CONFIG_LIBTOOL_INIT([ |
| 13279 | +# See if we are running on zsh, and set the options which allow our |
| 13280 | +# commands through without removal of \ escapes INIT. |
| 13281 | +if test -n "\${ZSH_VERSION+set}" ; then |
| 13282 | + setopt NO_GLOB_SUBST |
| 13283 | +fi |
| 13284 | +]) |
| 13285 | +if test -n "${ZSH_VERSION+set}" ; then |
| 13286 | + setopt NO_GLOB_SUBST |
| 13287 | +fi |
| 13288 | |
| 13289 | -AC_LIBTOOL_SYS_MAX_CMD_LEN |
| 13290 | -AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE |
| 13291 | -AC_LIBTOOL_OBJDIR |
| 13292 | +_LT_CHECK_OBJDIR |
| 13293 | |
| 13294 | -AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl |
| 13295 | -_LT_AC_PROG_ECHO_BACKSLASH |
| 13296 | +m4_require([_LT_TAG_COMPILER])dnl |
| 13297 | +_LT_PROG_ECHO_BACKSLASH |
| 13298 | |
| 13299 | case $host_os in |
| 13300 | aix3*) |
| 13301 | @@ -117,6307 +196,6803 @@ esac |
| 13302 | |
| 13303 | # Sed substitution that helps us do robust quoting. It backslashifies |
| 13304 | # metacharacters that are still active within double-quoted strings. |
| 13305 | -Xsed='sed -e 1s/^X//' |
| 13306 | -[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'] |
| 13307 | +sed_quote_subst='s/\([["`$\\]]\)/\\\1/g' |
| 13308 | |
| 13309 | # Same as above, but do not quote variable references. |
| 13310 | -[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'] |
| 13311 | +double_quote_subst='s/\([["`\\]]\)/\\\1/g' |
| 13312 | |
| 13313 | # Sed substitution to delay expansion of an escaped shell variable in a |
| 13314 | # double_quote_subst'ed string. |
| 13315 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 13316 | |
| 13317 | +# Sed substitution to delay expansion of an escaped single quote. |
| 13318 | +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' |
| 13319 | + |
| 13320 | # Sed substitution to avoid accidental globbing in evaled expressions |
| 13321 | no_glob_subst='s/\*/\\\*/g' |
| 13322 | |
| 13323 | -# Constants: |
| 13324 | -rm="rm -f" |
| 13325 | - |
| 13326 | # Global variables: |
| 13327 | -default_ofile=libtool |
| 13328 | +ofile=${host_alias}-libtool |
| 13329 | can_build_shared=yes |
| 13330 | |
| 13331 | # All known linkers require a `.a' archive for static linking (except MSVC, |
| 13332 | # which needs '.lib'). |
| 13333 | libext=a |
| 13334 | -ltmain="$ac_aux_dir/ltmain.sh" |
| 13335 | -ofile="$default_ofile" |
| 13336 | -with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 13337 | |
| 13338 | -AC_CHECK_TOOL(AR, ar, false) |
| 13339 | -AC_CHECK_TOOL(RANLIB, ranlib, :) |
| 13340 | -AC_CHECK_TOOL(STRIP, strip, :) |
| 13341 | +with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 13342 | |
| 13343 | old_CC="$CC" |
| 13344 | old_CFLAGS="$CFLAGS" |
| 13345 | |
| 13346 | # Set sane defaults for various variables |
| 13347 | -test -z "$AR" && AR=ar |
| 13348 | -test -z "$AR_FLAGS" && AR_FLAGS=cru |
| 13349 | -test -z "$AS" && AS=as |
| 13350 | test -z "$CC" && CC=cc |
| 13351 | test -z "$LTCC" && LTCC=$CC |
| 13352 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
| 13353 | -test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 13354 | test -z "$LD" && LD=ld |
| 13355 | -test -z "$LN_S" && LN_S="ln -s" |
| 13356 | -test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 13357 | -test -z "$NM" && NM=nm |
| 13358 | -test -z "$SED" && SED=sed |
| 13359 | -test -z "$OBJDUMP" && OBJDUMP=objdump |
| 13360 | -test -z "$RANLIB" && RANLIB=: |
| 13361 | -test -z "$STRIP" && STRIP=: |
| 13362 | test -z "$ac_objext" && ac_objext=o |
| 13363 | |
| 13364 | -# Determine commands to create old-style static archives. |
| 13365 | -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
| 13366 | -old_postinstall_cmds='chmod 644 $oldlib' |
| 13367 | -old_postuninstall_cmds= |
| 13368 | - |
| 13369 | -if test -n "$RANLIB"; then |
| 13370 | - case $host_os in |
| 13371 | - openbsd*) |
| 13372 | - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
| 13373 | - ;; |
| 13374 | - *) |
| 13375 | - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
| 13376 | - ;; |
| 13377 | - esac |
| 13378 | - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
| 13379 | -fi |
| 13380 | - |
| 13381 | _LT_CC_BASENAME([$compiler]) |
| 13382 | |
| 13383 | # Only perform the check for file, if the check method requires it |
| 13384 | +test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 13385 | case $deplibs_check_method in |
| 13386 | file_magic*) |
| 13387 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
| 13388 | - AC_PATH_MAGIC |
| 13389 | + _LT_PATH_MAGIC |
| 13390 | fi |
| 13391 | ;; |
| 13392 | esac |
| 13393 | |
| 13394 | -AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no) |
| 13395 | -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], |
| 13396 | -enable_win32_dll=yes, enable_win32_dll=no) |
| 13397 | - |
| 13398 | -AC_ARG_ENABLE([libtool-lock], |
| 13399 | - [AC_HELP_STRING([--disable-libtool-lock], |
| 13400 | - [avoid locking (might break parallel builds)])]) |
| 13401 | -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 13402 | +# Use C for the default configuration in the libtool script |
| 13403 | +LT_SUPPORTED_TAG([CC]) |
| 13404 | +_LT_LANG_C_CONFIG |
| 13405 | +_LT_LANG_DEFAULT_CONFIG |
| 13406 | +_LT_CONFIG_COMMANDS |
| 13407 | +])# _LT_SETUP |
| 13408 | |
| 13409 | -AC_ARG_WITH([pic], |
| 13410 | - [AC_HELP_STRING([--with-pic], |
| 13411 | - [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], |
| 13412 | - [pic_mode="$withval"], |
| 13413 | - [pic_mode=default]) |
| 13414 | -test -z "$pic_mode" && pic_mode=default |
| 13415 | |
| 13416 | -# Use C for the default configuration in the libtool script |
| 13417 | -tagname= |
| 13418 | -AC_LIBTOOL_LANG_C_CONFIG |
| 13419 | -_LT_AC_TAGCONFIG |
| 13420 | -])# AC_LIBTOOL_SETUP |
| 13421 | +# _LT_PROG_LTMAIN |
| 13422 | +# --------------- |
| 13423 | +# Note that this code is called both from `configure', and `config.status' |
| 13424 | +# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, |
| 13425 | +# `config.status' has no value for ac_aux_dir unless we are using Automake, |
| 13426 | +# so we pass a copy along to make sure it has a sensible value anyway. |
| 13427 | +m4_defun([_LT_PROG_LTMAIN], |
| 13428 | +[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl |
| 13429 | +_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) |
| 13430 | +ltmain="$ac_aux_dir/ltmain.sh" |
| 13431 | +])# _LT_PROG_LTMAIN |
| 13432 | |
| 13433 | |
| 13434 | -# _LT_AC_SYS_COMPILER |
| 13435 | -# ------------------- |
| 13436 | -AC_DEFUN([_LT_AC_SYS_COMPILER], |
| 13437 | -[AC_REQUIRE([AC_PROG_CC])dnl |
| 13438 | +## ------------------------------------- ## |
| 13439 | +## Accumulate code for creating libtool. ## |
| 13440 | +## ------------------------------------- ## |
| 13441 | + |
| 13442 | +# So that we can recreate a full libtool script including additional |
| 13443 | +# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS |
| 13444 | +# in macros and then make a single call at the end using the `libtool' |
| 13445 | +# label. |
| 13446 | + |
| 13447 | + |
| 13448 | +# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) |
| 13449 | +# ---------------------------------------- |
| 13450 | +# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later. |
| 13451 | +m4_define([_LT_CONFIG_LIBTOOL_INIT], |
| 13452 | +[m4_ifval([$1], |
| 13453 | + [m4_append([_LT_OUTPUT_LIBTOOL_INIT], |
| 13454 | + [$1 |
| 13455 | +])])]) |
| 13456 | + |
| 13457 | +# Initialize. |
| 13458 | +m4_define([_LT_OUTPUT_LIBTOOL_INIT]) |
| 13459 | + |
| 13460 | + |
| 13461 | +# _LT_CONFIG_LIBTOOL([COMMANDS]) |
| 13462 | +# ------------------------------ |
| 13463 | +# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later. |
| 13464 | +m4_define([_LT_CONFIG_LIBTOOL], |
| 13465 | +[m4_ifval([$1], |
| 13466 | + [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS], |
| 13467 | + [$1 |
| 13468 | +])])]) |
| 13469 | + |
| 13470 | +# Initialize. |
| 13471 | +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS]) |
| 13472 | + |
| 13473 | + |
| 13474 | +# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS]) |
| 13475 | +# ----------------------------------------------------- |
| 13476 | +m4_defun([_LT_CONFIG_SAVE_COMMANDS], |
| 13477 | +[_LT_CONFIG_LIBTOOL([$1]) |
| 13478 | +_LT_CONFIG_LIBTOOL_INIT([$2]) |
| 13479 | +]) |
| 13480 | |
| 13481 | -# If no C compiler was specified, use CC. |
| 13482 | -LTCC=${LTCC-"$CC"} |
| 13483 | |
| 13484 | -# If no C compiler flags were specified, use CFLAGS. |
| 13485 | -LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 13486 | +# _LT_FORMAT_COMMENT([COMMENT]) |
| 13487 | +# ----------------------------- |
| 13488 | +# Add leading comment marks to the start of each line, and a trailing |
| 13489 | +# full-stop to the whole comment if one is not present already. |
| 13490 | +m4_define([_LT_FORMAT_COMMENT], |
| 13491 | +[m4_ifval([$1], [ |
| 13492 | +m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])], |
| 13493 | + [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.]) |
| 13494 | +)]) |
| 13495 | |
| 13496 | -# Allow CC to be a program name with arguments. |
| 13497 | -compiler=$CC |
| 13498 | -])# _LT_AC_SYS_COMPILER |
| 13499 | |
| 13500 | |
| 13501 | -# _LT_CC_BASENAME(CC) |
| 13502 | -# ------------------- |
| 13503 | -# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. |
| 13504 | -AC_DEFUN([_LT_CC_BASENAME], |
| 13505 | -[for cc_temp in $1""; do |
| 13506 | - case $cc_temp in |
| 13507 | - compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; |
| 13508 | - distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; |
| 13509 | - \-*) ;; |
| 13510 | - *) break;; |
| 13511 | - esac |
| 13512 | -done |
| 13513 | -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 13514 | +## ------------------------ ## |
| 13515 | +## FIXME: Eliminate VARNAME ## |
| 13516 | +## ------------------------ ## |
| 13517 | + |
| 13518 | + |
| 13519 | +# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?]) |
| 13520 | +# ------------------------------------------------------------------- |
| 13521 | +# CONFIGNAME is the name given to the value in the libtool script. |
| 13522 | +# VARNAME is the (base) name used in the configure script. |
| 13523 | +# VALUE may be 0, 1 or 2 for a computed quote escaped value based on |
| 13524 | +# VARNAME. Any other value will be used directly. |
| 13525 | +m4_define([_LT_DECL], |
| 13526 | +[lt_if_append_uniq([lt_decl_varnames], [$2], [, ], |
| 13527 | + [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name], |
| 13528 | + [m4_ifval([$1], [$1], [$2])]) |
| 13529 | + lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3]) |
| 13530 | + m4_ifval([$4], |
| 13531 | + [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])]) |
| 13532 | + lt_dict_add_subkey([lt_decl_dict], [$2], |
| 13533 | + [tagged?], [m4_ifval([$5], [yes], [no])])]) |
| 13534 | ]) |
| 13535 | |
| 13536 | |
| 13537 | -# _LT_COMPILER_BOILERPLATE |
| 13538 | -# ------------------------ |
| 13539 | -# Check for compiler boilerplate output or warnings with |
| 13540 | -# the simple compiler test code. |
| 13541 | -AC_DEFUN([_LT_COMPILER_BOILERPLATE], |
| 13542 | -[ac_outfile=conftest.$ac_objext |
| 13543 | -printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 13544 | -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 13545 | -_lt_compiler_boilerplate=`cat conftest.err` |
| 13546 | -$rm conftest* |
| 13547 | -])# _LT_COMPILER_BOILERPLATE |
| 13548 | - |
| 13549 | +# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION]) |
| 13550 | +# -------------------------------------------------------- |
| 13551 | +m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])]) |
| 13552 | + |
| 13553 | + |
| 13554 | +# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...]) |
| 13555 | +# ------------------------------------------------ |
| 13556 | +m4_define([lt_decl_tag_varnames], |
| 13557 | +[_lt_decl_filter([tagged?], [yes], $@)]) |
| 13558 | + |
| 13559 | + |
| 13560 | +# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..]) |
| 13561 | +# --------------------------------------------------------- |
| 13562 | +m4_define([_lt_decl_filter], |
| 13563 | +[m4_case([$#], |
| 13564 | + [0], [m4_fatal([$0: too few arguments: $#])], |
| 13565 | + [1], [m4_fatal([$0: too few arguments: $#: $1])], |
| 13566 | + [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)], |
| 13567 | + [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)], |
| 13568 | + [lt_dict_filter([lt_decl_dict], $@)])[]dnl |
| 13569 | +]) |
| 13570 | |
| 13571 | -# _LT_LINKER_BOILERPLATE |
| 13572 | -# ---------------------- |
| 13573 | -# Check for linker boilerplate output or warnings with |
| 13574 | -# the simple link test code. |
| 13575 | -AC_DEFUN([_LT_LINKER_BOILERPLATE], |
| 13576 | -[ac_outfile=conftest.$ac_objext |
| 13577 | -printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 13578 | -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 13579 | -_lt_linker_boilerplate=`cat conftest.err` |
| 13580 | -$rm conftest* |
| 13581 | -])# _LT_LINKER_BOILERPLATE |
| 13582 | |
| 13583 | +# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...]) |
| 13584 | +# -------------------------------------------------- |
| 13585 | +m4_define([lt_decl_quote_varnames], |
| 13586 | +[_lt_decl_filter([value], [1], $@)]) |
| 13587 | + |
| 13588 | + |
| 13589 | +# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...]) |
| 13590 | +# --------------------------------------------------- |
| 13591 | +m4_define([lt_decl_dquote_varnames], |
| 13592 | +[_lt_decl_filter([value], [2], $@)]) |
| 13593 | + |
| 13594 | + |
| 13595 | +# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...]) |
| 13596 | +# --------------------------------------------------- |
| 13597 | +m4_define([lt_decl_varnames_tagged], |
| 13598 | +[_$0(m4_quote(m4_default([$1], [[, ]])), |
| 13599 | + m4_quote(m4_if([$2], [], |
| 13600 | + m4_quote(lt_decl_tag_varnames), |
| 13601 | + m4_quote(m4_shift($@)))), |
| 13602 | + m4_split(m4_normalize(m4_quote(_LT_TAGS))))]) |
| 13603 | +m4_define([_lt_decl_varnames_tagged], [lt_combine([$1], [$2], [_], $3)]) |
| 13604 | + |
| 13605 | + |
| 13606 | +# lt_decl_all_varnames([SEPARATOR], [VARNAME1...]) |
| 13607 | +# ------------------------------------------------ |
| 13608 | +m4_define([lt_decl_all_varnames], |
| 13609 | +[_$0(m4_quote(m4_default([$1], [[, ]])), |
| 13610 | + m4_if([$2], [], |
| 13611 | + m4_quote(lt_decl_varnames), |
| 13612 | + m4_quote(m4_shift($@))))[]dnl |
| 13613 | +]) |
| 13614 | +m4_define([_lt_decl_all_varnames], |
| 13615 | +[lt_join($@, lt_decl_varnames_tagged([$1], |
| 13616 | + lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl |
| 13617 | +]) |
| 13618 | |
| 13619 | -# _LT_AC_SYS_LIBPATH_AIX |
| 13620 | -# ---------------------- |
| 13621 | -# Links a minimal program and checks the executable |
| 13622 | -# for the system default hardcoded library path. In most cases, |
| 13623 | -# this is /usr/lib:/lib, but when the MPI compilers are used |
| 13624 | -# the location of the communication and MPI libs are included too. |
| 13625 | -# If we don't find anything, use the default library path according |
| 13626 | -# to the aix ld manual. |
| 13627 | -AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX], |
| 13628 | -[AC_LINK_IFELSE(AC_LANG_PROGRAM,[ |
| 13629 | -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 13630 | -}'` |
| 13631 | -# Check for a 64-bit object if we didn't find anything. |
| 13632 | -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 13633 | -}'`; fi],[]) |
| 13634 | -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 13635 | -])# _LT_AC_SYS_LIBPATH_AIX |
| 13636 | |
| 13637 | +# _LT_CONFIG_STATUS_DECLARE([VARNAME]) |
| 13638 | +# ------------------------------------ |
| 13639 | +# Quote a variable value, and forward it to `config.status' so that its |
| 13640 | +# declaration there will have the same value as in `configure'. VARNAME |
| 13641 | +# must have a single quote delimited value for this to work. |
| 13642 | +m4_define([_LT_CONFIG_STATUS_DECLARE], |
| 13643 | +[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`']) |
| 13644 | |
| 13645 | -# _LT_AC_SHELL_INIT(ARG) |
| 13646 | -# ---------------------- |
| 13647 | -AC_DEFUN([_LT_AC_SHELL_INIT], |
| 13648 | -[ifdef([AC_DIVERSION_NOTICE], |
| 13649 | - [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], |
| 13650 | - [AC_DIVERT_PUSH(NOTICE)]) |
| 13651 | -$1 |
| 13652 | -AC_DIVERT_POP |
| 13653 | -])# _LT_AC_SHELL_INIT |
| 13654 | |
| 13655 | +# _LT_CONFIG_STATUS_DECLARATIONS |
| 13656 | +# ------------------------------ |
| 13657 | +# We delimit libtool config variables with single quotes, so when |
| 13658 | +# we write them to config.status, we have to be sure to quote all |
| 13659 | +# embedded single quotes properly. In configure, this macro expands |
| 13660 | +# each variable declared with _LT_DECL (and _LT_TAGDECL) into: |
| 13661 | +# |
| 13662 | +# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`' |
| 13663 | +m4_defun([_LT_CONFIG_STATUS_DECLARATIONS], |
| 13664 | +[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), |
| 13665 | + [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) |
| 13666 | |
| 13667 | -# _LT_AC_PROG_ECHO_BACKSLASH |
| 13668 | -# -------------------------- |
| 13669 | -# Add some code to the start of the generated configure script which |
| 13670 | -# will find an echo command which doesn't interpret backslashes. |
| 13671 | -AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH], |
| 13672 | -[_LT_AC_SHELL_INIT([ |
| 13673 | -# Check that we are running under the correct shell. |
| 13674 | -SHELL=${CONFIG_SHELL-/bin/sh} |
| 13675 | |
| 13676 | -case X$ECHO in |
| 13677 | -X*--fallback-echo) |
| 13678 | - # Remove one level of quotation (which was required for Make). |
| 13679 | - ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` |
| 13680 | - ;; |
| 13681 | -esac |
| 13682 | +# _LT_LIBTOOL_TAGS |
| 13683 | +# ---------------- |
| 13684 | +# Output comment and list of tags supported by the script |
| 13685 | +m4_defun([_LT_LIBTOOL_TAGS], |
| 13686 | +[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl |
| 13687 | +available_tags="_LT_TAGS"dnl |
| 13688 | +]) |
| 13689 | |
| 13690 | -echo=${ECHO-echo} |
| 13691 | -if test "X[$]1" = X--no-reexec; then |
| 13692 | - # Discard the --no-reexec flag, and continue. |
| 13693 | - shift |
| 13694 | -elif test "X[$]1" = X--fallback-echo; then |
| 13695 | - # Avoid inline document here, it may be left over |
| 13696 | - : |
| 13697 | -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then |
| 13698 | - # Yippee, $echo works! |
| 13699 | - : |
| 13700 | -else |
| 13701 | - # Restart under the correct shell. |
| 13702 | - exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} |
| 13703 | -fi |
| 13704 | |
| 13705 | -if test "X[$]1" = X--fallback-echo; then |
| 13706 | - # used as fallback echo |
| 13707 | - shift |
| 13708 | - cat <<EOF |
| 13709 | -[$]* |
| 13710 | -EOF |
| 13711 | - exit 0 |
| 13712 | -fi |
| 13713 | +# _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) |
| 13714 | +# ----------------------------------- |
| 13715 | +# Extract the dictionary values for VARNAME (optionally with TAG) and |
| 13716 | +# expand to a commented shell variable setting: |
| 13717 | +# |
| 13718 | +# # Some comment about what VAR is for. |
| 13719 | +# visible_name=$lt_internal_name |
| 13720 | +m4_define([_LT_LIBTOOL_DECLARE], |
| 13721 | +[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], |
| 13722 | + [description])))[]dnl |
| 13723 | +m4_pushdef([_libtool_name], |
| 13724 | + m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl |
| 13725 | +m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])), |
| 13726 | + [0], [_libtool_name=[$]$1], |
| 13727 | + [1], [_libtool_name=$lt_[]$1], |
| 13728 | + [2], [_libtool_name=$lt_[]$1], |
| 13729 | + [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl |
| 13730 | +m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl |
| 13731 | +]) |
| 13732 | |
| 13733 | -# The HP-UX ksh and POSIX shell print the target directory to stdout |
| 13734 | -# if CDPATH is set. |
| 13735 | -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 13736 | |
| 13737 | -if test -z "$ECHO"; then |
| 13738 | -if test "X${echo_test_string+set}" != Xset; then |
| 13739 | -# find a string as large as possible, as long as the shell can cope with it |
| 13740 | - for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do |
| 13741 | - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
| 13742 | - if (echo_test_string=`eval $cmd`) 2>/dev/null && |
| 13743 | - echo_test_string=`eval $cmd` && |
| 13744 | - (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
| 13745 | - then |
| 13746 | - break |
| 13747 | - fi |
| 13748 | - done |
| 13749 | -fi |
| 13750 | +# _LT_LIBTOOL_CONFIG_VARS |
| 13751 | +# ----------------------- |
| 13752 | +# Produce commented declarations of non-tagged libtool config variables |
| 13753 | +# suitable for insertion in the LIBTOOL CONFIG section of the `libtool' |
| 13754 | +# script. Tagged libtool config variables (even for the LIBTOOL CONFIG |
| 13755 | +# section) are produced by _LT_LIBTOOL_TAG_VARS. |
| 13756 | +m4_defun([_LT_LIBTOOL_CONFIG_VARS], |
| 13757 | +[m4_foreach([_lt_var], |
| 13758 | + m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)), |
| 13759 | + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])]) |
| 13760 | |
| 13761 | -if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
| 13762 | - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
| 13763 | - test "X$echo_testing_string" = "X$echo_test_string"; then |
| 13764 | - : |
| 13765 | -else |
| 13766 | - # The Solaris, AIX, and Digital Unix default echo programs unquote |
| 13767 | - # backslashes. This makes it impossible to quote backslashes using |
| 13768 | - # echo "$something" | sed 's/\\/\\\\/g' |
| 13769 | - # |
| 13770 | - # So, first we look for a working echo in the user's PATH. |
| 13771 | |
| 13772 | - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 13773 | - for dir in $PATH /usr/ucb; do |
| 13774 | - IFS="$lt_save_ifs" |
| 13775 | - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
| 13776 | - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
| 13777 | - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
| 13778 | - test "X$echo_testing_string" = "X$echo_test_string"; then |
| 13779 | - echo="$dir/echo" |
| 13780 | - break |
| 13781 | - fi |
| 13782 | - done |
| 13783 | - IFS="$lt_save_ifs" |
| 13784 | +# _LT_LIBTOOL_TAG_VARS(TAG) |
| 13785 | +# ------------------------- |
| 13786 | +m4_define([_LT_LIBTOOL_TAG_VARS], |
| 13787 | +[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames), |
| 13788 | + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])]) |
| 13789 | |
| 13790 | - if test "X$echo" = Xecho; then |
| 13791 | - # We didn't find a better echo, so look for alternatives. |
| 13792 | - if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && |
| 13793 | - echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && |
| 13794 | - test "X$echo_testing_string" = "X$echo_test_string"; then |
| 13795 | - # This shell has a builtin print -r that does the trick. |
| 13796 | - echo='print -r' |
| 13797 | - elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && |
| 13798 | - test "X$CONFIG_SHELL" != X/bin/ksh; then |
| 13799 | - # If we have ksh, try running configure again with it. |
| 13800 | - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
| 13801 | - export ORIGINAL_CONFIG_SHELL |
| 13802 | - CONFIG_SHELL=/bin/ksh |
| 13803 | - export CONFIG_SHELL |
| 13804 | - exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} |
| 13805 | - else |
| 13806 | - # Try using printf. |
| 13807 | - echo='printf %s\n' |
| 13808 | - if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
| 13809 | - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
| 13810 | - test "X$echo_testing_string" = "X$echo_test_string"; then |
| 13811 | - # Cool, printf works |
| 13812 | - : |
| 13813 | - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && |
| 13814 | - test "X$echo_testing_string" = 'X\t' && |
| 13815 | - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 13816 | - test "X$echo_testing_string" = "X$echo_test_string"; then |
| 13817 | - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
| 13818 | - export CONFIG_SHELL |
| 13819 | - SHELL="$CONFIG_SHELL" |
| 13820 | - export SHELL |
| 13821 | - echo="$CONFIG_SHELL [$]0 --fallback-echo" |
| 13822 | - elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && |
| 13823 | - test "X$echo_testing_string" = 'X\t' && |
| 13824 | - echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 13825 | - test "X$echo_testing_string" = "X$echo_test_string"; then |
| 13826 | - echo="$CONFIG_SHELL [$]0 --fallback-echo" |
| 13827 | - else |
| 13828 | - # maybe with a smaller string... |
| 13829 | - prev=: |
| 13830 | |
| 13831 | - for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do |
| 13832 | - if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null |
| 13833 | - then |
| 13834 | - break |
| 13835 | - fi |
| 13836 | - prev="$cmd" |
| 13837 | - done |
| 13838 | +# _LT_TAGVAR(VARNAME, [TAGNAME]) |
| 13839 | +# ------------------------------ |
| 13840 | +m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])]) |
| 13841 | |
| 13842 | - if test "$prev" != 'sed 50q "[$]0"'; then |
| 13843 | - echo_test_string=`eval $prev` |
| 13844 | - export echo_test_string |
| 13845 | - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} |
| 13846 | - else |
| 13847 | - # Oops. We lost completely, so just stick with echo. |
| 13848 | - echo=echo |
| 13849 | - fi |
| 13850 | - fi |
| 13851 | - fi |
| 13852 | - fi |
| 13853 | -fi |
| 13854 | -fi |
| 13855 | |
| 13856 | -# Copy echo and quote the copy suitably for passing to libtool from |
| 13857 | -# the Makefile, instead of quoting the original, which is used later. |
| 13858 | -ECHO=$echo |
| 13859 | -if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then |
| 13860 | - ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" |
| 13861 | -fi |
| 13862 | +# _LT_CONFIG_COMMANDS |
| 13863 | +# ------------------- |
| 13864 | +# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of |
| 13865 | +# variables for single and double quote escaping we saved from calls |
| 13866 | +# to _LT_DECL, we can put quote escaped variables declarations |
| 13867 | +# into `config.status', and then the shell code to quote escape them in |
| 13868 | +# for loops in `config.status'. Finally, any additional code accumulated |
| 13869 | +# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. |
| 13870 | +m4_defun([_LT_CONFIG_COMMANDS], |
| 13871 | +[AC_PROVIDE_IFELSE([LT_OUTPUT], |
| 13872 | + dnl If the libtool generation code has been placed in $CONFIG_LT, |
| 13873 | + dnl instead of duplicating it all over again into config.status, |
| 13874 | + dnl then we will have config.status run $CONFIG_LT later, so it |
| 13875 | + dnl needs to know what name is stored there: |
| 13876 | + [AC_CONFIG_COMMANDS([libtool], |
| 13877 | + [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])], |
| 13878 | + dnl If the libtool generation code is destined for config.status, |
| 13879 | + dnl expand the accumulated commands and init code now: |
| 13880 | + [AC_CONFIG_COMMANDS([libtool], |
| 13881 | + [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])]) |
| 13882 | +])#_LT_CONFIG_COMMANDS |
| 13883 | |
| 13884 | -AC_SUBST(ECHO) |
| 13885 | -])])# _LT_AC_PROG_ECHO_BACKSLASH |
| 13886 | |
| 13887 | +# Initialize. |
| 13888 | +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT], |
| 13889 | +[ |
| 13890 | |
| 13891 | -# _LT_AC_LOCK |
| 13892 | -# ----------- |
| 13893 | -AC_DEFUN([_LT_AC_LOCK], |
| 13894 | -[AC_ARG_ENABLE([libtool-lock], |
| 13895 | - [AC_HELP_STRING([--disable-libtool-lock], |
| 13896 | - [avoid locking (might break parallel builds)])]) |
| 13897 | -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 13898 | +# The HP-UX ksh and POSIX shell print the target directory to stdout |
| 13899 | +# if CDPATH is set. |
| 13900 | +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 13901 | |
| 13902 | -# Some flags need to be propagated to the compiler or linker for good |
| 13903 | -# libtool support. |
| 13904 | -case $host in |
| 13905 | -ia64-*-hpux*) |
| 13906 | - # Find out which ABI we are using. |
| 13907 | - echo 'int i;' > conftest.$ac_ext |
| 13908 | - if AC_TRY_EVAL(ac_compile); then |
| 13909 | - case `/usr/bin/file conftest.$ac_objext` in |
| 13910 | - *ELF-32*) |
| 13911 | - HPUX_IA64_MODE="32" |
| 13912 | - ;; |
| 13913 | - *ELF-64*) |
| 13914 | - HPUX_IA64_MODE="64" |
| 13915 | - ;; |
| 13916 | - esac |
| 13917 | - fi |
| 13918 | - rm -rf conftest* |
| 13919 | - ;; |
| 13920 | -*-*-irix6*) |
| 13921 | - # Find out which ABI we are using. |
| 13922 | - echo '[#]line __oline__ "configure"' > conftest.$ac_ext |
| 13923 | - if AC_TRY_EVAL(ac_compile); then |
| 13924 | - if test "$lt_cv_prog_gnu_ld" = yes; then |
| 13925 | - case `/usr/bin/file conftest.$ac_objext` in |
| 13926 | - *32-bit*) |
| 13927 | - LD="${LD-ld} -melf32bsmip" |
| 13928 | - ;; |
| 13929 | - *N32*) |
| 13930 | - LD="${LD-ld} -melf32bmipn32" |
| 13931 | +sed_quote_subst='$sed_quote_subst' |
| 13932 | +double_quote_subst='$double_quote_subst' |
| 13933 | +delay_variable_subst='$delay_variable_subst' |
| 13934 | +_LT_CONFIG_STATUS_DECLARATIONS |
| 13935 | +LTCC='$LTCC' |
| 13936 | +LTCFLAGS='$LTCFLAGS' |
| 13937 | +compiler='$compiler_DEFAULT' |
| 13938 | + |
| 13939 | +# Quote evaled strings. |
| 13940 | +for var in lt_decl_all_varnames([[ \ |
| 13941 | +]], lt_decl_quote_varnames); do |
| 13942 | + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in |
| 13943 | + *[[\\\\\\\`\\"\\\$]]*) |
| 13944 | + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
| 13945 | ;; |
| 13946 | - *64-bit*) |
| 13947 | - LD="${LD-ld} -melf64bmip" |
| 13948 | + *) |
| 13949 | + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 13950 | ;; |
| 13951 | esac |
| 13952 | - else |
| 13953 | - case `/usr/bin/file conftest.$ac_objext` in |
| 13954 | - *32-bit*) |
| 13955 | - LD="${LD-ld} -32" |
| 13956 | - ;; |
| 13957 | - *N32*) |
| 13958 | - LD="${LD-ld} -n32" |
| 13959 | +done |
| 13960 | + |
| 13961 | +# Double-quote double-evaled strings. |
| 13962 | +for var in lt_decl_all_varnames([[ \ |
| 13963 | +]], lt_decl_dquote_varnames); do |
| 13964 | + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in |
| 13965 | + *[[\\\\\\\`\\"\\\$]]*) |
| 13966 | + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
| 13967 | ;; |
| 13968 | - *64-bit*) |
| 13969 | - LD="${LD-ld} -64" |
| 13970 | + *) |
| 13971 | + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 13972 | ;; |
| 13973 | esac |
| 13974 | - fi |
| 13975 | - fi |
| 13976 | - rm -rf conftest* |
| 13977 | +done |
| 13978 | + |
| 13979 | +# Fix-up fallback echo if it was mangled by the above quoting rules. |
| 13980 | +case \$lt_ECHO in |
| 13981 | +*'\\\[$]0 --fallback-echo"')dnl " |
| 13982 | + lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\` |
| 13983 | ;; |
| 13984 | +esac |
| 13985 | |
| 13986 | -x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
| 13987 | - # Find out which ABI we are using. |
| 13988 | - echo 'int i;' > conftest.$ac_ext |
| 13989 | - if AC_TRY_EVAL(ac_compile); then |
| 13990 | - case `/usr/bin/file conftest.o` in |
| 13991 | - *32-bit*) |
| 13992 | - case $host in |
| 13993 | - x86_64-*linux*) |
| 13994 | - LD="${LD-ld} -m elf_i386" |
| 13995 | - ;; |
| 13996 | - ppc64-*linux*|powerpc64-*linux*) |
| 13997 | - LD="${LD-ld} -m elf32ppclinux" |
| 13998 | - ;; |
| 13999 | - s390x-*linux*) |
| 14000 | - LD="${LD-ld} -m elf_s390" |
| 14001 | - ;; |
| 14002 | - sparc64-*linux*) |
| 14003 | - LD="${LD-ld} -m elf32_sparc" |
| 14004 | - ;; |
| 14005 | - esac |
| 14006 | - ;; |
| 14007 | - *64-bit*) |
| 14008 | - case $host in |
| 14009 | - x86_64-*linux*) |
| 14010 | - LD="${LD-ld} -m elf_x86_64" |
| 14011 | - ;; |
| 14012 | - ppc*-*linux*|powerpc*-*linux*) |
| 14013 | - LD="${LD-ld} -m elf64ppc" |
| 14014 | - ;; |
| 14015 | - s390*-*linux*) |
| 14016 | - LD="${LD-ld} -m elf64_s390" |
| 14017 | - ;; |
| 14018 | - sparc*-*linux*) |
| 14019 | - LD="${LD-ld} -m elf64_sparc" |
| 14020 | - ;; |
| 14021 | - esac |
| 14022 | - ;; |
| 14023 | - esac |
| 14024 | - fi |
| 14025 | - rm -rf conftest* |
| 14026 | - ;; |
| 14027 | +_LT_OUTPUT_LIBTOOL_INIT |
| 14028 | +]) |
| 14029 | |
| 14030 | -*-*-sco3.2v5*) |
| 14031 | - # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 14032 | - SAVE_CFLAGS="$CFLAGS" |
| 14033 | - CFLAGS="$CFLAGS -belf" |
| 14034 | - AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, |
| 14035 | - [AC_LANG_PUSH(C) |
| 14036 | - AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) |
| 14037 | - AC_LANG_POP]) |
| 14038 | - if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 14039 | - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 14040 | - CFLAGS="$SAVE_CFLAGS" |
| 14041 | - fi |
| 14042 | - ;; |
| 14043 | -sparc*-*solaris*) |
| 14044 | - # Find out which ABI we are using. |
| 14045 | - echo 'int i;' > conftest.$ac_ext |
| 14046 | - if AC_TRY_EVAL(ac_compile); then |
| 14047 | - case `/usr/bin/file conftest.o` in |
| 14048 | - *64-bit*) |
| 14049 | - case $lt_cv_prog_gnu_ld in |
| 14050 | - yes*) LD="${LD-ld} -m elf64_sparc" ;; |
| 14051 | - *) LD="${LD-ld} -64" ;; |
| 14052 | - esac |
| 14053 | - ;; |
| 14054 | - esac |
| 14055 | - fi |
| 14056 | - rm -rf conftest* |
| 14057 | - ;; |
| 14058 | |
| 14059 | -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], |
| 14060 | -[*-*-cygwin* | *-*-mingw* | *-*-pw32*) |
| 14061 | - AC_CHECK_TOOL(DLLTOOL, dlltool, false) |
| 14062 | - AC_CHECK_TOOL(AS, as, false) |
| 14063 | - AC_CHECK_TOOL(OBJDUMP, objdump, false) |
| 14064 | - ;; |
| 14065 | - ]) |
| 14066 | -esac |
| 14067 | +# LT_OUTPUT |
| 14068 | +# --------- |
| 14069 | +# This macro allows early generation of the libtool script (before |
| 14070 | +# AC_OUTPUT is called), incase it is used in configure for compilation |
| 14071 | +# tests. |
| 14072 | +AC_DEFUN([LT_OUTPUT], |
| 14073 | +[: ${CONFIG_LT=./config.lt} |
| 14074 | +AC_MSG_NOTICE([creating $CONFIG_LT]) |
| 14075 | +cat >"$CONFIG_LT" <<_LTEOF |
| 14076 | +#! $SHELL |
| 14077 | +# Generated by $as_me. |
| 14078 | +# Run this file to recreate a libtool stub with the current configuration. |
| 14079 | + |
| 14080 | +lt_cl_silent=false |
| 14081 | +SHELL=\${CONFIG_SHELL-$SHELL} |
| 14082 | +_LTEOF |
| 14083 | + |
| 14084 | +cat >>"$CONFIG_LT" <<\_LTEOF |
| 14085 | +AS_SHELL_SANITIZE |
| 14086 | +_AS_PREPARE |
| 14087 | |
| 14088 | -need_locks="$enable_libtool_lock" |
| 14089 | +exec AS_MESSAGE_FD>&1 |
| 14090 | +exec AS_MESSAGE_LOG_FD>>config.log |
| 14091 | +{ |
| 14092 | + echo |
| 14093 | + AS_BOX([Running $as_me.]) |
| 14094 | +} >&AS_MESSAGE_LOG_FD |
| 14095 | + |
| 14096 | +lt_cl_help="\ |
| 14097 | +\`$as_me' creates a local libtool stub from the current configuration, |
| 14098 | +for use in further configure time tests before the real libtool is |
| 14099 | +generated. |
| 14100 | + |
| 14101 | +Usage: $[0] [[OPTIONS]] |
| 14102 | + |
| 14103 | + -h, --help print this help, then exit |
| 14104 | + -V, --version print version number, then exit |
| 14105 | + -q, --quiet do not print progress messages |
| 14106 | + -d, --debug don't remove temporary files |
| 14107 | + |
| 14108 | +Report bugs to <bug-libtool@gnu.org>." |
| 14109 | + |
| 14110 | +lt_cl_version="\ |
| 14111 | +m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl |
| 14112 | +m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) |
| 14113 | +configured by $[0], generated by m4_PACKAGE_STRING. |
| 14114 | + |
| 14115 | +Copyright (C) 2008 Free Software Foundation, Inc. |
| 14116 | +This config.lt script is free software; the Free Software Foundation |
| 14117 | +gives unlimited permision to copy, distribute and modify it." |
| 14118 | |
| 14119 | -])# _LT_AC_LOCK |
| 14120 | +while test $[#] != 0 |
| 14121 | +do |
| 14122 | + case $[1] in |
| 14123 | + --version | --v* | -V ) |
| 14124 | + echo "$lt_cl_version"; exit 0 ;; |
| 14125 | + --help | --h* | -h ) |
| 14126 | + echo "$lt_cl_help"; exit 0 ;; |
| 14127 | + --debug | --d* | -d ) |
| 14128 | + debug=: ;; |
| 14129 | + --quiet | --q* | --silent | --s* | -q ) |
| 14130 | + lt_cl_silent=: ;; |
| 14131 | |
| 14132 | + -*) AC_MSG_ERROR([unrecognized option: $[1] |
| 14133 | +Try \`$[0] --help' for more information.]) ;; |
| 14134 | |
| 14135 | -# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, |
| 14136 | -# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) |
| 14137 | -# ---------------------------------------------------------------- |
| 14138 | -# Check whether the given compiler option works |
| 14139 | -AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], |
| 14140 | -[AC_REQUIRE([LT_AC_PROG_SED]) |
| 14141 | -AC_CACHE_CHECK([$1], [$2], |
| 14142 | - [$2=no |
| 14143 | - ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) |
| 14144 | - printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 14145 | - lt_compiler_flag="$3" |
| 14146 | - # Insert the option either (1) after the last *FLAGS variable, or |
| 14147 | - # (2) before a word containing "conftest.", or (3) at the end. |
| 14148 | - # Note that $ac_compile itself does not contain backslashes and begins |
| 14149 | - # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 14150 | - # The option is referenced via a variable to avoid confusing sed. |
| 14151 | - lt_compile=`echo "$ac_compile" | $SED \ |
| 14152 | - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 14153 | - -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ |
| 14154 | - -e 's:$: $lt_compiler_flag:'` |
| 14155 | - (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) |
| 14156 | - (eval "$lt_compile" 2>conftest.err) |
| 14157 | - ac_status=$? |
| 14158 | - cat conftest.err >&AS_MESSAGE_LOG_FD |
| 14159 | - echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD |
| 14160 | - if (exit $ac_status) && test -s "$ac_outfile"; then |
| 14161 | - # The compiler can only warn and ignore the option if not recognized |
| 14162 | - # So say no if there are warnings other than the usual output. |
| 14163 | - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 14164 | - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 14165 | - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 14166 | - $2=yes |
| 14167 | - fi |
| 14168 | - fi |
| 14169 | - $rm conftest* |
| 14170 | -]) |
| 14171 | + *) AC_MSG_ERROR([unrecognized argument: $[1] |
| 14172 | +Try \`$[0] --help' for more information.]) ;; |
| 14173 | + esac |
| 14174 | + shift |
| 14175 | +done |
| 14176 | |
| 14177 | -if test x"[$]$2" = xyes; then |
| 14178 | - ifelse([$5], , :, [$5]) |
| 14179 | -else |
| 14180 | - ifelse([$6], , :, [$6]) |
| 14181 | +if $lt_cl_silent; then |
| 14182 | + exec AS_MESSAGE_FD>/dev/null |
| 14183 | fi |
| 14184 | -])# AC_LIBTOOL_COMPILER_OPTION |
| 14185 | - |
| 14186 | - |
| 14187 | -# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, |
| 14188 | -# [ACTION-SUCCESS], [ACTION-FAILURE]) |
| 14189 | -# ------------------------------------------------------------ |
| 14190 | -# Check whether the given compiler option works |
| 14191 | -AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], |
| 14192 | -[AC_CACHE_CHECK([$1], [$2], |
| 14193 | - [$2=no |
| 14194 | - save_LDFLAGS="$LDFLAGS" |
| 14195 | - LDFLAGS="$LDFLAGS $3" |
| 14196 | - printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 14197 | - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 14198 | - # The linker can only warn and ignore the option if not recognized |
| 14199 | - # So say no if there are warnings |
| 14200 | - if test -s conftest.err; then |
| 14201 | - # Append any errors to the config.log. |
| 14202 | - cat conftest.err 1>&AS_MESSAGE_LOG_FD |
| 14203 | - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 14204 | - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 14205 | - if diff conftest.exp conftest.er2 >/dev/null; then |
| 14206 | - $2=yes |
| 14207 | - fi |
| 14208 | - else |
| 14209 | - $2=yes |
| 14210 | - fi |
| 14211 | - fi |
| 14212 | - $rm conftest* |
| 14213 | - LDFLAGS="$save_LDFLAGS" |
| 14214 | -]) |
| 14215 | +_LTEOF |
| 14216 | |
| 14217 | -if test x"[$]$2" = xyes; then |
| 14218 | - ifelse([$4], , :, [$4]) |
| 14219 | -else |
| 14220 | - ifelse([$5], , :, [$5]) |
| 14221 | +cat >>"$CONFIG_LT" <<_LTEOF |
| 14222 | +_LT_OUTPUT_LIBTOOL_COMMANDS_INIT |
| 14223 | +_LTEOF |
| 14224 | + |
| 14225 | +cat >>"$CONFIG_LT" <<\_LTEOF |
| 14226 | +AC_MSG_NOTICE([creating $ofile]) |
| 14227 | +_LT_OUTPUT_LIBTOOL_COMMANDS |
| 14228 | +AS_EXIT(0) |
| 14229 | +_LTEOF |
| 14230 | +chmod +x "$CONFIG_LT" |
| 14231 | + |
| 14232 | +# configure is writing to config.log, but config.lt does its own redirection, |
| 14233 | +# appending to config.log, which fails on DOS, as config.log is still kept |
| 14234 | +# open by configure. Here we exec the FD to /dev/null, effectively closing |
| 14235 | +# config.log, so it can be properly (re)opened and appended to by config.lt. |
| 14236 | +if test "$no_create" != yes; then |
| 14237 | + lt_cl_success=: |
| 14238 | + test "$silent" = yes && |
| 14239 | + lt_config_lt_args="$lt_config_lt_args --quiet" |
| 14240 | + exec AS_MESSAGE_LOG_FD>/dev/null |
| 14241 | + $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false |
| 14242 | + exec AS_MESSAGE_LOG_FD>>config.log |
| 14243 | + $lt_cl_success || AS_EXIT(1) |
| 14244 | fi |
| 14245 | -])# AC_LIBTOOL_LINKER_OPTION |
| 14246 | - |
| 14247 | +])# LT_OUTPUT |
| 14248 | |
| 14249 | -# AC_LIBTOOL_SYS_MAX_CMD_LEN |
| 14250 | -# -------------------------- |
| 14251 | -AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], |
| 14252 | -[# find the maximum length of command line arguments |
| 14253 | -AC_MSG_CHECKING([the maximum length of command line arguments]) |
| 14254 | -AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl |
| 14255 | - i=0 |
| 14256 | - teststring="ABCD" |
| 14257 | |
| 14258 | - case $build_os in |
| 14259 | - msdosdjgpp*) |
| 14260 | - # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 14261 | - # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 14262 | - # during glob expansion). Even if it were fixed, the result of this |
| 14263 | - # check would be larger than it should be. |
| 14264 | - lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 14265 | - ;; |
| 14266 | +# _LT_CONFIG(TAG) |
| 14267 | +# --------------- |
| 14268 | +# If TAG is the built-in tag, create an initial libtool script with a |
| 14269 | +# default configuration from the untagged config vars. Otherwise add code |
| 14270 | +# to config.status for appending the configuration named by TAG from the |
| 14271 | +# matching tagged config vars. |
| 14272 | +m4_defun([_LT_CONFIG], |
| 14273 | +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
| 14274 | +_LT_CONFIG_SAVE_COMMANDS([ |
| 14275 | + m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl |
| 14276 | + m4_if(_LT_TAG, [C], [ |
| 14277 | + # See if we are running on zsh, and set the options which allow our |
| 14278 | + # commands through without removal of \ escapes. |
| 14279 | + if test -n "${ZSH_VERSION+set}" ; then |
| 14280 | + setopt NO_GLOB_SUBST |
| 14281 | + fi |
| 14282 | |
| 14283 | - gnu*) |
| 14284 | - # Under GNU Hurd, this test is not required because there is |
| 14285 | - # no limit to the length of command line arguments. |
| 14286 | - # Libtool will interpret -1 as no limit whatsoever |
| 14287 | - lt_cv_sys_max_cmd_len=-1; |
| 14288 | - ;; |
| 14289 | + cfgfile="${ofile}T" |
| 14290 | + trap "$RM \"$cfgfile\"; exit 1" 1 2 15 |
| 14291 | + $RM "$cfgfile" |
| 14292 | |
| 14293 | - cygwin* | mingw*) |
| 14294 | - # On Win9x/ME, this test blows up -- it succeeds, but takes |
| 14295 | - # about 5 minutes as the teststring grows exponentially. |
| 14296 | - # Worse, since 9x/ME are not pre-emptively multitasking, |
| 14297 | - # you end up with a "frozen" computer, even though with patience |
| 14298 | - # the test eventually succeeds (with a max line length of 256k). |
| 14299 | - # Instead, let's just punt: use the minimum linelength reported by |
| 14300 | - # all of the supported platforms: 8192 (on NT/2K/XP). |
| 14301 | - lt_cv_sys_max_cmd_len=8192; |
| 14302 | - ;; |
| 14303 | + cat <<_LT_EOF >> "$cfgfile" |
| 14304 | +#! $SHELL |
| 14305 | |
| 14306 | - amigaos*) |
| 14307 | - # On AmigaOS with pdksh, this test takes hours, literally. |
| 14308 | - # So we just punt and use a minimum line length of 8192. |
| 14309 | - lt_cv_sys_max_cmd_len=8192; |
| 14310 | - ;; |
| 14311 | +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
| 14312 | +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
| 14313 | +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 14314 | +# NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 14315 | +# |
| 14316 | +_LT_COPYING |
| 14317 | +_LT_LIBTOOL_TAGS |
| 14318 | |
| 14319 | - netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
| 14320 | - # This has been around since 386BSD, at least. Likely further. |
| 14321 | - if test -x /sbin/sysctl; then |
| 14322 | - lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 14323 | - elif test -x /usr/sbin/sysctl; then |
| 14324 | - lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| 14325 | - else |
| 14326 | - lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
| 14327 | - fi |
| 14328 | - # And add a safety zone |
| 14329 | - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 14330 | - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 14331 | - ;; |
| 14332 | +# ### BEGIN LIBTOOL CONFIG |
| 14333 | +_LT_LIBTOOL_CONFIG_VARS |
| 14334 | +_LT_LIBTOOL_TAG_VARS |
| 14335 | +# ### END LIBTOOL CONFIG |
| 14336 | |
| 14337 | - interix*) |
| 14338 | - # We know the value 262144 and hardcode it with a safety zone (like BSD) |
| 14339 | - lt_cv_sys_max_cmd_len=196608 |
| 14340 | - ;; |
| 14341 | +_LT_EOF |
| 14342 | |
| 14343 | - osf*) |
| 14344 | - # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
| 14345 | - # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
| 14346 | - # nice to cause kernel panics so lets avoid the loop below. |
| 14347 | - # First set a reasonable default. |
| 14348 | - lt_cv_sys_max_cmd_len=16384 |
| 14349 | - # |
| 14350 | - if test -x /sbin/sysconfig; then |
| 14351 | - case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
| 14352 | - *1*) lt_cv_sys_max_cmd_len=-1 ;; |
| 14353 | - esac |
| 14354 | - fi |
| 14355 | - ;; |
| 14356 | - sco3.2v5*) |
| 14357 | - lt_cv_sys_max_cmd_len=102400 |
| 14358 | - ;; |
| 14359 | - sysv5* | sco5v6* | sysv4.2uw2*) |
| 14360 | - kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
| 14361 | - if test -n "$kargmax"; then |
| 14362 | - lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` |
| 14363 | - else |
| 14364 | - lt_cv_sys_max_cmd_len=32768 |
| 14365 | - fi |
| 14366 | - ;; |
| 14367 | - *) |
| 14368 | - # If test is not a shell built-in, we'll probably end up computing a |
| 14369 | - # maximum length that is only half of the actual maximum length, but |
| 14370 | - # we can't tell. |
| 14371 | - SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| 14372 | - while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \ |
| 14373 | - = "XX$teststring") >/dev/null 2>&1 && |
| 14374 | - new_result=`expr "X$teststring" : ".*" 2>&1` && |
| 14375 | - lt_cv_sys_max_cmd_len=$new_result && |
| 14376 | - test $i != 17 # 1/2 MB should be enough |
| 14377 | - do |
| 14378 | - i=`expr $i + 1` |
| 14379 | - teststring=$teststring$teststring |
| 14380 | - done |
| 14381 | - teststring= |
| 14382 | - # Add a significant safety factor because C++ compilers can tack on massive |
| 14383 | - # amounts of additional arguments before passing them to the linker. |
| 14384 | - # It appears as though 1/2 is a usable value. |
| 14385 | - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 14386 | + case $host_os in |
| 14387 | + aix3*) |
| 14388 | + cat <<\_LT_EOF >> "$cfgfile" |
| 14389 | +# AIX sometimes has problems with the GCC collect2 program. For some |
| 14390 | +# reason, if we set the COLLECT_NAMES environment variable, the problems |
| 14391 | +# vanish in a puff of smoke. |
| 14392 | +if test "X${COLLECT_NAMES+set}" != Xset; then |
| 14393 | + COLLECT_NAMES= |
| 14394 | + export COLLECT_NAMES |
| 14395 | +fi |
| 14396 | +_LT_EOF |
| 14397 | ;; |
| 14398 | esac |
| 14399 | -]) |
| 14400 | -if test -n $lt_cv_sys_max_cmd_len ; then |
| 14401 | - AC_MSG_RESULT($lt_cv_sys_max_cmd_len) |
| 14402 | -else |
| 14403 | - AC_MSG_RESULT(none) |
| 14404 | -fi |
| 14405 | -])# AC_LIBTOOL_SYS_MAX_CMD_LEN |
| 14406 | |
| 14407 | + _LT_PROG_LTMAIN |
| 14408 | |
| 14409 | -# _LT_AC_CHECK_DLFCN |
| 14410 | -# ------------------ |
| 14411 | -AC_DEFUN([_LT_AC_CHECK_DLFCN], |
| 14412 | -[AC_CHECK_HEADERS(dlfcn.h)dnl |
| 14413 | -])# _LT_AC_CHECK_DLFCN |
| 14414 | + # We use sed instead of cat because bash on DJGPP gets confused if |
| 14415 | + # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 14416 | + # text mode, it properly converts lines to CR/LF. This bash problem |
| 14417 | + # is reportedly fixed, but why not run on old versions too? |
| 14418 | + sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ |
| 14419 | + || (rm -f "$cfgfile"; exit 1) |
| 14420 | |
| 14421 | + _LT_PROG_XSI_SHELLFNS |
| 14422 | |
| 14423 | -# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, |
| 14424 | -# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) |
| 14425 | -# --------------------------------------------------------------------- |
| 14426 | -AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], |
| 14427 | -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl |
| 14428 | -if test "$cross_compiling" = yes; then : |
| 14429 | - [$4] |
| 14430 | -else |
| 14431 | - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 14432 | - lt_status=$lt_dlunknown |
| 14433 | - cat > conftest.$ac_ext <<EOF |
| 14434 | -[#line __oline__ "configure" |
| 14435 | -#include "confdefs.h" |
| 14436 | + sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ |
| 14437 | + || (rm -f "$cfgfile"; exit 1) |
| 14438 | |
| 14439 | -#if HAVE_DLFCN_H |
| 14440 | -#include <dlfcn.h> |
| 14441 | -#endif |
| 14442 | + mv -f "$cfgfile" "$ofile" || |
| 14443 | + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
| 14444 | + chmod +x "$ofile" |
| 14445 | +], |
| 14446 | +[cat <<_LT_EOF >> "$ofile" |
| 14447 | |
| 14448 | -#include <stdio.h> |
| 14449 | +dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded |
| 14450 | +dnl in a comment (ie after a #). |
| 14451 | +# ### BEGIN LIBTOOL TAG CONFIG: $1 |
| 14452 | +_LT_LIBTOOL_TAG_VARS(_LT_TAG) |
| 14453 | +# ### END LIBTOOL TAG CONFIG: $1 |
| 14454 | +_LT_EOF |
| 14455 | +])dnl /m4_if |
| 14456 | +], |
| 14457 | +[m4_if([$1], [], [ |
| 14458 | + PACKAGE='$PACKAGE' |
| 14459 | + VERSION='$VERSION' |
| 14460 | + TIMESTAMP='$TIMESTAMP' |
| 14461 | + RM='$RM' |
| 14462 | + ofile='$ofile'], []) |
| 14463 | +])dnl /_LT_CONFIG_SAVE_COMMANDS |
| 14464 | +])# _LT_CONFIG |
| 14465 | + |
| 14466 | + |
| 14467 | +# LT_SUPPORTED_TAG(TAG) |
| 14468 | +# --------------------- |
| 14469 | +# Trace this macro to discover what tags are supported by the libtool |
| 14470 | +# --tag option, using: |
| 14471 | +# autoconf --trace 'LT_SUPPORTED_TAG:$1' |
| 14472 | +AC_DEFUN([LT_SUPPORTED_TAG], []) |
| 14473 | + |
| 14474 | + |
| 14475 | +# C support is built-in for now |
| 14476 | +m4_define([_LT_LANG_C_enabled], []) |
| 14477 | +m4_define([_LT_TAGS], []) |
| 14478 | |
| 14479 | -#ifdef RTLD_GLOBAL |
| 14480 | -# define LT_DLGLOBAL RTLD_GLOBAL |
| 14481 | -#else |
| 14482 | -# ifdef DL_GLOBAL |
| 14483 | -# define LT_DLGLOBAL DL_GLOBAL |
| 14484 | -# else |
| 14485 | -# define LT_DLGLOBAL 0 |
| 14486 | -# endif |
| 14487 | -#endif |
| 14488 | |
| 14489 | -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 14490 | - find out it does not work in some platform. */ |
| 14491 | -#ifndef LT_DLLAZY_OR_NOW |
| 14492 | -# ifdef RTLD_LAZY |
| 14493 | -# define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 14494 | -# else |
| 14495 | -# ifdef DL_LAZY |
| 14496 | -# define LT_DLLAZY_OR_NOW DL_LAZY |
| 14497 | -# else |
| 14498 | -# ifdef RTLD_NOW |
| 14499 | -# define LT_DLLAZY_OR_NOW RTLD_NOW |
| 14500 | -# else |
| 14501 | -# ifdef DL_NOW |
| 14502 | -# define LT_DLLAZY_OR_NOW DL_NOW |
| 14503 | -# else |
| 14504 | -# define LT_DLLAZY_OR_NOW 0 |
| 14505 | -# endif |
| 14506 | -# endif |
| 14507 | -# endif |
| 14508 | -# endif |
| 14509 | -#endif |
| 14510 | +# LT_LANG(LANG) |
| 14511 | +# ------------- |
| 14512 | +# Enable libtool support for the given language if not already enabled. |
| 14513 | +AC_DEFUN([LT_LANG], |
| 14514 | +[AC_BEFORE([$0], [LT_OUTPUT])dnl |
| 14515 | +m4_case([$1], |
| 14516 | + [C], [_LT_LANG(C)], |
| 14517 | + [C++], [_LT_LANG(CXX)], |
| 14518 | + [Java], [_LT_LANG(GCJ)], |
| 14519 | + [Fortran 77], [_LT_LANG(F77)], |
| 14520 | + [Fortran], [_LT_LANG(FC)], |
| 14521 | + [Windows Resource], [_LT_LANG(RC)], |
| 14522 | + [m4_ifdef([_LT_LANG_]$1[_CONFIG], |
| 14523 | + [_LT_LANG($1)], |
| 14524 | + [m4_fatal([$0: unsupported language: "$1"])])])dnl |
| 14525 | +])# LT_LANG |
| 14526 | |
| 14527 | -#ifdef __cplusplus |
| 14528 | -extern "C" void exit (int); |
| 14529 | -#endif |
| 14530 | |
| 14531 | -void fnord() { int i=42;} |
| 14532 | -int main () |
| 14533 | -{ |
| 14534 | - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 14535 | - int status = $lt_dlunknown; |
| 14536 | - |
| 14537 | - if (self) |
| 14538 | - { |
| 14539 | - if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 14540 | - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 14541 | - /* dlclose (self); */ |
| 14542 | - } |
| 14543 | - else |
| 14544 | - puts (dlerror ()); |
| 14545 | +# _LT_LANG(LANGNAME) |
| 14546 | +# ------------------ |
| 14547 | +m4_defun([_LT_LANG], |
| 14548 | +[m4_ifdef([_LT_LANG_]$1[_enabled], [], |
| 14549 | + [LT_SUPPORTED_TAG([$1])dnl |
| 14550 | + m4_append([_LT_TAGS], [$1 ])dnl |
| 14551 | + m4_define([_LT_LANG_]$1[_enabled], [])dnl |
| 14552 | + _LT_LANG_$1_CONFIG($1)])dnl |
| 14553 | +])# _LT_LANG |
| 14554 | |
| 14555 | - exit (status); |
| 14556 | -}] |
| 14557 | -EOF |
| 14558 | - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then |
| 14559 | - (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null |
| 14560 | - lt_status=$? |
| 14561 | - case x$lt_status in |
| 14562 | - x$lt_dlno_uscore) $1 ;; |
| 14563 | - x$lt_dlneed_uscore) $2 ;; |
| 14564 | - x$lt_dlunknown|x*) $3 ;; |
| 14565 | - esac |
| 14566 | - else : |
| 14567 | - # compilation failed |
| 14568 | - $3 |
| 14569 | - fi |
| 14570 | -fi |
| 14571 | -rm -fr conftest* |
| 14572 | -])# _LT_AC_TRY_DLOPEN_SELF |
| 14573 | |
| 14574 | +# _LT_LANG_DEFAULT_CONFIG |
| 14575 | +# ----------------------- |
| 14576 | +m4_defun([_LT_LANG_DEFAULT_CONFIG], |
| 14577 | +[AC_PROVIDE_IFELSE([AC_PROG_CXX], |
| 14578 | + [LT_LANG(CXX)], |
| 14579 | + [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])]) |
| 14580 | + |
| 14581 | +AC_PROVIDE_IFELSE([AC_PROG_F77], |
| 14582 | + [LT_LANG(F77)], |
| 14583 | + [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])]) |
| 14584 | + |
| 14585 | +AC_PROVIDE_IFELSE([AC_PROG_FC], |
| 14586 | + [LT_LANG(FC)], |
| 14587 | + [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])]) |
| 14588 | + |
| 14589 | +dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal |
| 14590 | +dnl pulling things in needlessly. |
| 14591 | +AC_PROVIDE_IFELSE([AC_PROG_GCJ], |
| 14592 | + [LT_LANG(GCJ)], |
| 14593 | + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], |
| 14594 | + [LT_LANG(GCJ)], |
| 14595 | + [AC_PROVIDE_IFELSE([LT_PROG_GCJ], |
| 14596 | + [LT_LANG(GCJ)], |
| 14597 | + [m4_ifdef([AC_PROG_GCJ], |
| 14598 | + [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])]) |
| 14599 | + m4_ifdef([A][M_PROG_GCJ], |
| 14600 | + [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) |
| 14601 | + m4_ifdef([LT_PROG_GCJ], |
| 14602 | + [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) |
| 14603 | + |
| 14604 | +AC_PROVIDE_IFELSE([LT_PROG_RC], |
| 14605 | + [LT_LANG(RC)], |
| 14606 | + [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) |
| 14607 | +])# _LT_LANG_DEFAULT_CONFIG |
| 14608 | + |
| 14609 | +# Obsolete macros: |
| 14610 | +AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) |
| 14611 | +AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) |
| 14612 | +AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) |
| 14613 | +AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) |
| 14614 | +dnl aclocal-1.4 backwards compatibility: |
| 14615 | +dnl AC_DEFUN([AC_LIBTOOL_CXX], []) |
| 14616 | +dnl AC_DEFUN([AC_LIBTOOL_F77], []) |
| 14617 | +dnl AC_DEFUN([AC_LIBTOOL_FC], []) |
| 14618 | +dnl AC_DEFUN([AC_LIBTOOL_GCJ], []) |
| 14619 | |
| 14620 | -# AC_LIBTOOL_DLOPEN_SELF |
| 14621 | -# ---------------------- |
| 14622 | -AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], |
| 14623 | -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl |
| 14624 | -if test "x$enable_dlopen" != xyes; then |
| 14625 | - enable_dlopen=unknown |
| 14626 | - enable_dlopen_self=unknown |
| 14627 | - enable_dlopen_self_static=unknown |
| 14628 | -else |
| 14629 | - lt_cv_dlopen=no |
| 14630 | - lt_cv_dlopen_libs= |
| 14631 | |
| 14632 | - case $host_os in |
| 14633 | - beos*) |
| 14634 | - lt_cv_dlopen="load_add_on" |
| 14635 | - lt_cv_dlopen_libs= |
| 14636 | - lt_cv_dlopen_self=yes |
| 14637 | - ;; |
| 14638 | +# _LT_TAG_COMPILER |
| 14639 | +# ---------------- |
| 14640 | +m4_defun([_LT_TAG_COMPILER], |
| 14641 | +[AC_REQUIRE([AC_PROG_CC])dnl |
| 14642 | |
| 14643 | - mingw* | pw32*) |
| 14644 | - lt_cv_dlopen="LoadLibrary" |
| 14645 | - lt_cv_dlopen_libs= |
| 14646 | - ;; |
| 14647 | +_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl |
| 14648 | +_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl |
| 14649 | +_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl |
| 14650 | +_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl |
| 14651 | |
| 14652 | - cygwin*) |
| 14653 | - lt_cv_dlopen="dlopen" |
| 14654 | - lt_cv_dlopen_libs= |
| 14655 | - ;; |
| 14656 | +# If no C compiler was specified, use CC. |
| 14657 | +LTCC=${LTCC-"$CC"} |
| 14658 | |
| 14659 | - darwin*) |
| 14660 | - # if libdl is installed we need to link against it |
| 14661 | - AC_CHECK_LIB([dl], [dlopen], |
| 14662 | - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ |
| 14663 | - lt_cv_dlopen="dyld" |
| 14664 | - lt_cv_dlopen_libs= |
| 14665 | - lt_cv_dlopen_self=yes |
| 14666 | - ]) |
| 14667 | - ;; |
| 14668 | +# If no C compiler flags were specified, use CFLAGS. |
| 14669 | +LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 14670 | |
| 14671 | - *) |
| 14672 | - AC_CHECK_FUNC([shl_load], |
| 14673 | - [lt_cv_dlopen="shl_load"], |
| 14674 | - [AC_CHECK_LIB([dld], [shl_load], |
| 14675 | - [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"], |
| 14676 | - [AC_CHECK_FUNC([dlopen], |
| 14677 | - [lt_cv_dlopen="dlopen"], |
| 14678 | - [AC_CHECK_LIB([dl], [dlopen], |
| 14679 | - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], |
| 14680 | - [AC_CHECK_LIB([svld], [dlopen], |
| 14681 | - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], |
| 14682 | - [AC_CHECK_LIB([dld], [dld_link], |
| 14683 | - [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"]) |
| 14684 | - ]) |
| 14685 | - ]) |
| 14686 | - ]) |
| 14687 | - ]) |
| 14688 | - ]) |
| 14689 | - ;; |
| 14690 | - esac |
| 14691 | +# Allow CC to be a program name with arguments. |
| 14692 | +compiler=$CC |
| 14693 | +])# _LT_TAG_COMPILER |
| 14694 | |
| 14695 | - if test "x$lt_cv_dlopen" != xno; then |
| 14696 | - enable_dlopen=yes |
| 14697 | - else |
| 14698 | - enable_dlopen=no |
| 14699 | - fi |
| 14700 | |
| 14701 | - case $lt_cv_dlopen in |
| 14702 | - dlopen) |
| 14703 | - save_CPPFLAGS="$CPPFLAGS" |
| 14704 | - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 14705 | +# _LT_COMPILER_BOILERPLATE |
| 14706 | +# ------------------------ |
| 14707 | +# Check for compiler boilerplate output or warnings with |
| 14708 | +# the simple compiler test code. |
| 14709 | +m4_defun([_LT_COMPILER_BOILERPLATE], |
| 14710 | +[m4_require([_LT_DECL_SED])dnl |
| 14711 | +ac_outfile=conftest.$ac_objext |
| 14712 | +echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 14713 | +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 14714 | +_lt_compiler_boilerplate=`cat conftest.err` |
| 14715 | +$RM conftest* |
| 14716 | +])# _LT_COMPILER_BOILERPLATE |
| 14717 | |
| 14718 | - save_LDFLAGS="$LDFLAGS" |
| 14719 | - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 14720 | |
| 14721 | - save_LIBS="$LIBS" |
| 14722 | - LIBS="$lt_cv_dlopen_libs $LIBS" |
| 14723 | +# _LT_LINKER_BOILERPLATE |
| 14724 | +# ---------------------- |
| 14725 | +# Check for linker boilerplate output or warnings with |
| 14726 | +# the simple link test code. |
| 14727 | +m4_defun([_LT_LINKER_BOILERPLATE], |
| 14728 | +[m4_require([_LT_DECL_SED])dnl |
| 14729 | +ac_outfile=conftest.$ac_objext |
| 14730 | +echo "$lt_simple_link_test_code" >conftest.$ac_ext |
| 14731 | +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 14732 | +_lt_linker_boilerplate=`cat conftest.err` |
| 14733 | +$RM -r conftest* |
| 14734 | +])# _LT_LINKER_BOILERPLATE |
| 14735 | |
| 14736 | - AC_CACHE_CHECK([whether a program can dlopen itself], |
| 14737 | - lt_cv_dlopen_self, [dnl |
| 14738 | - _LT_AC_TRY_DLOPEN_SELF( |
| 14739 | - lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, |
| 14740 | - lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) |
| 14741 | +# _LT_REQUIRED_DARWIN_CHECKS |
| 14742 | +# ------------------------- |
| 14743 | +m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[ |
| 14744 | + case $host_os in |
| 14745 | + rhapsody* | darwin*) |
| 14746 | + AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) |
| 14747 | + AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) |
| 14748 | + AC_CHECK_TOOL([LIPO], [lipo], [:]) |
| 14749 | + AC_CHECK_TOOL([OTOOL], [otool], [:]) |
| 14750 | + AC_CHECK_TOOL([OTOOL64], [otool64], [:]) |
| 14751 | + _LT_DECL([], [DSYMUTIL], [1], |
| 14752 | + [Tool to manipulate archived DWARF debug symbol files on Mac OS X]) |
| 14753 | + _LT_DECL([], [NMEDIT], [1], |
| 14754 | + [Tool to change global to local symbols on Mac OS X]) |
| 14755 | + _LT_DECL([], [LIPO], [1], |
| 14756 | + [Tool to manipulate fat objects and archives on Mac OS X]) |
| 14757 | + _LT_DECL([], [OTOOL], [1], |
| 14758 | + [ldd/readelf like tool for Mach-O binaries on Mac OS X]) |
| 14759 | + _LT_DECL([], [OTOOL64], [1], |
| 14760 | + [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4]) |
| 14761 | + |
| 14762 | + AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], |
| 14763 | + [lt_cv_apple_cc_single_mod=no |
| 14764 | + if test -z "${LT_MULTI_MODULE}"; then |
| 14765 | + # By default we will add the -single_module flag. You can override |
| 14766 | + # by either setting the environment variable LT_MULTI_MODULE |
| 14767 | + # non-empty at configure time, or by adding -multi_module to the |
| 14768 | + # link flags. |
| 14769 | + rm -rf libconftest.dylib* |
| 14770 | + echo "int foo(void){return 1;}" > conftest.c |
| 14771 | + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 14772 | +-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD |
| 14773 | + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 14774 | + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err |
| 14775 | + _lt_result=$? |
| 14776 | + if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then |
| 14777 | + lt_cv_apple_cc_single_mod=yes |
| 14778 | + else |
| 14779 | + cat conftest.err >&AS_MESSAGE_LOG_FD |
| 14780 | + fi |
| 14781 | + rm -rf libconftest.dylib* |
| 14782 | + rm -f conftest.* |
| 14783 | + fi]) |
| 14784 | + AC_CACHE_CHECK([for -exported_symbols_list linker flag], |
| 14785 | + [lt_cv_ld_exported_symbols_list], |
| 14786 | + [lt_cv_ld_exported_symbols_list=no |
| 14787 | + save_LDFLAGS=$LDFLAGS |
| 14788 | + echo "_main" > conftest.sym |
| 14789 | + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" |
| 14790 | + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], |
| 14791 | + [lt_cv_ld_exported_symbols_list=yes], |
| 14792 | + [lt_cv_ld_exported_symbols_list=no]) |
| 14793 | + LDFLAGS="$save_LDFLAGS" |
| 14794 | ]) |
| 14795 | - |
| 14796 | - if test "x$lt_cv_dlopen_self" = xyes; then |
| 14797 | - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
| 14798 | - AC_CACHE_CHECK([whether a statically linked program can dlopen itself], |
| 14799 | - lt_cv_dlopen_self_static, [dnl |
| 14800 | - _LT_AC_TRY_DLOPEN_SELF( |
| 14801 | - lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, |
| 14802 | - lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) |
| 14803 | - ]) |
| 14804 | + case $host_os in |
| 14805 | + rhapsody* | darwin1.[[012]]) |
| 14806 | + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; |
| 14807 | + darwin1.*) |
| 14808 | + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
| 14809 | + darwin*) # darwin 5.x on |
| 14810 | + # if running on 10.5 or later, the deployment target defaults |
| 14811 | + # to the OS version, if on x86, and 10.4, the deployment |
| 14812 | + # target defaults to 10.4. Don't you love it? |
| 14813 | + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in |
| 14814 | + 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) |
| 14815 | + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
| 14816 | + 10.[[012]]*) |
| 14817 | + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
| 14818 | + 10.*) |
| 14819 | + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
| 14820 | + esac |
| 14821 | + ;; |
| 14822 | + esac |
| 14823 | + if test "$lt_cv_apple_cc_single_mod" = "yes"; then |
| 14824 | + _lt_dar_single_mod='$single_module' |
| 14825 | + fi |
| 14826 | + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then |
| 14827 | + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' |
| 14828 | + else |
| 14829 | + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 14830 | + fi |
| 14831 | + if test "$DSYMUTIL" != ":"; then |
| 14832 | + _lt_dsymutil='~$DSYMUTIL $lib || :' |
| 14833 | + else |
| 14834 | + _lt_dsymutil= |
| 14835 | fi |
| 14836 | - |
| 14837 | - CPPFLAGS="$save_CPPFLAGS" |
| 14838 | - LDFLAGS="$save_LDFLAGS" |
| 14839 | - LIBS="$save_LIBS" |
| 14840 | ;; |
| 14841 | esac |
| 14842 | +]) |
| 14843 | |
| 14844 | - case $lt_cv_dlopen_self in |
| 14845 | - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 14846 | - *) enable_dlopen_self=unknown ;; |
| 14847 | - esac |
| 14848 | |
| 14849 | - case $lt_cv_dlopen_self_static in |
| 14850 | - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 14851 | - *) enable_dlopen_self_static=unknown ;; |
| 14852 | - esac |
| 14853 | -fi |
| 14854 | -])# AC_LIBTOOL_DLOPEN_SELF |
| 14855 | +# _LT_DARWIN_LINKER_FEATURES |
| 14856 | +# -------------------------- |
| 14857 | +# Checks for linker and compiler features on darwin |
| 14858 | +m4_defun([_LT_DARWIN_LINKER_FEATURES], |
| 14859 | +[ |
| 14860 | + m4_require([_LT_REQUIRED_DARWIN_CHECKS]) |
| 14861 | + _LT_TAGVAR(archive_cmds_need_lc, $1)=no |
| 14862 | + _LT_TAGVAR(hardcode_direct, $1)=no |
| 14863 | + _LT_TAGVAR(hardcode_automatic, $1)=yes |
| 14864 | + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
| 14865 | + _LT_TAGVAR(whole_archive_flag_spec, $1)='' |
| 14866 | + _LT_TAGVAR(link_all_deplibs, $1)=yes |
| 14867 | + _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined" |
| 14868 | + if test "$GCC" = "yes"; then |
| 14869 | + output_verbose_link_cmd=echo |
| 14870 | + _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}" |
| 14871 | + _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
| 14872 | + _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}" |
| 14873 | + _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}" |
| 14874 | + m4_if([$1], [CXX], |
| 14875 | +[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then |
| 14876 | + _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}" |
| 14877 | + _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}" |
| 14878 | + fi |
| 14879 | +],[]) |
| 14880 | + else |
| 14881 | + _LT_TAGVAR(ld_shlibs, $1)=no |
| 14882 | + fi |
| 14883 | +]) |
| 14884 | |
| 14885 | +# _LT_SYS_MODULE_PATH_AIX |
| 14886 | +# ----------------------- |
| 14887 | +# Links a minimal program and checks the executable |
| 14888 | +# for the system default hardcoded library path. In most cases, |
| 14889 | +# this is /usr/lib:/lib, but when the MPI compilers are used |
| 14890 | +# the location of the communication and MPI libs are included too. |
| 14891 | +# If we don't find anything, use the default library path according |
| 14892 | +# to the aix ld manual. |
| 14893 | +m4_defun([_LT_SYS_MODULE_PATH_AIX], |
| 14894 | +[m4_require([_LT_DECL_SED])dnl |
| 14895 | +AC_LINK_IFELSE(AC_LANG_PROGRAM,[ |
| 14896 | +lt_aix_libpath_sed=' |
| 14897 | + /Import File Strings/,/^$/ { |
| 14898 | + /^0/ { |
| 14899 | + s/^0 *\(.*\)$/\1/ |
| 14900 | + p |
| 14901 | + } |
| 14902 | + }' |
| 14903 | +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 14904 | +# Check for a 64-bit object if we didn't find anything. |
| 14905 | +if test -z "$aix_libpath"; then |
| 14906 | + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 14907 | +fi],[]) |
| 14908 | +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 14909 | +])# _LT_SYS_MODULE_PATH_AIX |
| 14910 | |
| 14911 | -# AC_LIBTOOL_PROG_CC_C_O([TAGNAME]) |
| 14912 | -# --------------------------------- |
| 14913 | -# Check to see if options -c and -o are simultaneously supported by compiler |
| 14914 | -AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O], |
| 14915 | -[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl |
| 14916 | -AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], |
| 14917 | - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)], |
| 14918 | - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no |
| 14919 | - $rm -r conftest 2>/dev/null |
| 14920 | - mkdir conftest |
| 14921 | - cd conftest |
| 14922 | - mkdir out |
| 14923 | - printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 14924 | |
| 14925 | - lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 14926 | - # Insert the option either (1) after the last *FLAGS variable, or |
| 14927 | - # (2) before a word containing "conftest.", or (3) at the end. |
| 14928 | - # Note that $ac_compile itself does not contain backslashes and begins |
| 14929 | - # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 14930 | - lt_compile=`echo "$ac_compile" | $SED \ |
| 14931 | - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 14932 | - -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ |
| 14933 | - -e 's:$: $lt_compiler_flag:'` |
| 14934 | - (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) |
| 14935 | - (eval "$lt_compile" 2>out/conftest.err) |
| 14936 | - ac_status=$? |
| 14937 | - cat out/conftest.err >&AS_MESSAGE_LOG_FD |
| 14938 | - echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD |
| 14939 | - if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 14940 | - then |
| 14941 | - # The compiler can only warn and ignore the option if not recognized |
| 14942 | - # So say no if there are warnings |
| 14943 | - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 14944 | - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 14945 | - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 14946 | - _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes |
| 14947 | - fi |
| 14948 | - fi |
| 14949 | - chmod u+w . 2>&AS_MESSAGE_LOG_FD |
| 14950 | - $rm conftest* |
| 14951 | - # SGI C++ compiler will create directory out/ii_files/ for |
| 14952 | - # template instantiation |
| 14953 | - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 14954 | - $rm out/* && rmdir out |
| 14955 | - cd .. |
| 14956 | - rmdir conftest |
| 14957 | - $rm conftest* |
| 14958 | -]) |
| 14959 | -])# AC_LIBTOOL_PROG_CC_C_O |
| 14960 | +# _LT_SHELL_INIT(ARG) |
| 14961 | +# ------------------- |
| 14962 | +m4_define([_LT_SHELL_INIT], |
| 14963 | +[ifdef([AC_DIVERSION_NOTICE], |
| 14964 | + [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], |
| 14965 | + [AC_DIVERT_PUSH(NOTICE)]) |
| 14966 | +$1 |
| 14967 | +AC_DIVERT_POP |
| 14968 | +])# _LT_SHELL_INIT |
| 14969 | |
| 14970 | |
| 14971 | -# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME]) |
| 14972 | -# ----------------------------------------- |
| 14973 | -# Check to see if we can do hard links to lock some files if needed |
| 14974 | -AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], |
| 14975 | -[AC_REQUIRE([_LT_AC_LOCK])dnl |
| 14976 | +# _LT_PROG_ECHO_BACKSLASH |
| 14977 | +# ----------------------- |
| 14978 | +# Add some code to the start of the generated configure script which |
| 14979 | +# will find an echo command which doesn't interpret backslashes. |
| 14980 | +m4_defun([_LT_PROG_ECHO_BACKSLASH], |
| 14981 | +[_LT_SHELL_INIT([ |
| 14982 | +# Check that we are running under the correct shell. |
| 14983 | +SHELL=${CONFIG_SHELL-/bin/sh} |
| 14984 | |
| 14985 | -hard_links="nottested" |
| 14986 | -if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then |
| 14987 | - # do not overwrite the value of need_locks provided by the user |
| 14988 | - AC_MSG_CHECKING([if we can lock with hard links]) |
| 14989 | - hard_links=yes |
| 14990 | - $rm conftest* |
| 14991 | - ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 14992 | - touch conftest.a |
| 14993 | - ln conftest.a conftest.b 2>&5 || hard_links=no |
| 14994 | - ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 14995 | - AC_MSG_RESULT([$hard_links]) |
| 14996 | - if test "$hard_links" = no; then |
| 14997 | - AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) |
| 14998 | - need_locks=warn |
| 14999 | - fi |
| 15000 | +case X$lt_ECHO in |
| 15001 | +X*--fallback-echo) |
| 15002 | + # Remove one level of quotation (which was required for Make). |
| 15003 | + ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` |
| 15004 | + ;; |
| 15005 | +esac |
| 15006 | + |
| 15007 | +ECHO=${lt_ECHO-echo} |
| 15008 | +if test "X[$]1" = X--no-reexec; then |
| 15009 | + # Discard the --no-reexec flag, and continue. |
| 15010 | + shift |
| 15011 | +elif test "X[$]1" = X--fallback-echo; then |
| 15012 | + # Avoid inline document here, it may be left over |
| 15013 | + : |
| 15014 | +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then |
| 15015 | + # Yippee, $ECHO works! |
| 15016 | + : |
| 15017 | else |
| 15018 | - need_locks=no |
| 15019 | + # Restart under the correct shell. |
| 15020 | + exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} |
| 15021 | fi |
| 15022 | -])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS |
| 15023 | |
| 15024 | - |
| 15025 | -# AC_LIBTOOL_OBJDIR |
| 15026 | -# ----------------- |
| 15027 | -AC_DEFUN([AC_LIBTOOL_OBJDIR], |
| 15028 | -[AC_CACHE_CHECK([for objdir], [lt_cv_objdir], |
| 15029 | -[rm -f .libs 2>/dev/null |
| 15030 | -mkdir .libs 2>/dev/null |
| 15031 | -if test -d .libs; then |
| 15032 | - lt_cv_objdir=.libs |
| 15033 | -else |
| 15034 | - # MS-DOS does not allow filenames that begin with a dot. |
| 15035 | - lt_cv_objdir=_libs |
| 15036 | +if test "X[$]1" = X--fallback-echo; then |
| 15037 | + # used as fallback echo |
| 15038 | + shift |
| 15039 | + cat <<_LT_EOF |
| 15040 | +[$]* |
| 15041 | +_LT_EOF |
| 15042 | + exit 0 |
| 15043 | fi |
| 15044 | -rmdir .libs 2>/dev/null]) |
| 15045 | -objdir=$lt_cv_objdir |
| 15046 | -])# AC_LIBTOOL_OBJDIR |
| 15047 | |
| 15048 | +# The HP-UX ksh and POSIX shell print the target directory to stdout |
| 15049 | +# if CDPATH is set. |
| 15050 | +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 15051 | |
| 15052 | -# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME]) |
| 15053 | -# ---------------------------------------------- |
| 15054 | -# Check hardcoding attributes. |
| 15055 | -AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], |
| 15056 | -[AC_MSG_CHECKING([how to hardcode library paths into programs]) |
| 15057 | -_LT_AC_TAGVAR(hardcode_action, $1)= |
| 15058 | -if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \ |
| 15059 | - test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \ |
| 15060 | - test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then |
| 15061 | - |
| 15062 | - # We can hardcode non-existant directories. |
| 15063 | - if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no && |
| 15064 | - # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 15065 | - # have to relink, otherwise we might link with an installed library |
| 15066 | - # when we should be linking with a yet-to-be-installed one |
| 15067 | - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no && |
| 15068 | - test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then |
| 15069 | - # Linking always hardcodes the temporary library directory. |
| 15070 | - _LT_AC_TAGVAR(hardcode_action, $1)=relink |
| 15071 | - else |
| 15072 | - # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 15073 | - _LT_AC_TAGVAR(hardcode_action, $1)=immediate |
| 15074 | +if test -z "$lt_ECHO"; then |
| 15075 | + if test "X${echo_test_string+set}" != Xset; then |
| 15076 | + # find a string as large as possible, as long as the shell can cope with it |
| 15077 | + for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do |
| 15078 | + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
| 15079 | + if { echo_test_string=`eval $cmd`; } 2>/dev/null && |
| 15080 | + { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null |
| 15081 | + then |
| 15082 | + break |
| 15083 | + fi |
| 15084 | + done |
| 15085 | fi |
| 15086 | -else |
| 15087 | - # We cannot hardcode anything, or else we can only hardcode existing |
| 15088 | - # directories. |
| 15089 | - _LT_AC_TAGVAR(hardcode_action, $1)=unsupported |
| 15090 | -fi |
| 15091 | -AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)]) |
| 15092 | |
| 15093 | -if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then |
| 15094 | - # Fast installation is not supported |
| 15095 | - enable_fast_install=no |
| 15096 | -elif test "$shlibpath_overrides_runpath" = yes || |
| 15097 | - test "$enable_shared" = no; then |
| 15098 | - # Fast installation is not necessary |
| 15099 | - enable_fast_install=needless |
| 15100 | -fi |
| 15101 | -])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH |
| 15102 | + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && |
| 15103 | + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && |
| 15104 | + test "X$echo_testing_string" = "X$echo_test_string"; then |
| 15105 | + : |
| 15106 | + else |
| 15107 | + # The Solaris, AIX, and Digital Unix default echo programs unquote |
| 15108 | + # backslashes. This makes it impossible to quote backslashes using |
| 15109 | + # echo "$something" | sed 's/\\/\\\\/g' |
| 15110 | + # |
| 15111 | + # So, first we look for a working echo in the user's PATH. |
| 15112 | |
| 15113 | + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 15114 | + for dir in $PATH /usr/ucb; do |
| 15115 | + IFS="$lt_save_ifs" |
| 15116 | + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
| 15117 | + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
| 15118 | + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
| 15119 | + test "X$echo_testing_string" = "X$echo_test_string"; then |
| 15120 | + ECHO="$dir/echo" |
| 15121 | + break |
| 15122 | + fi |
| 15123 | + done |
| 15124 | + IFS="$lt_save_ifs" |
| 15125 | |
| 15126 | -# AC_LIBTOOL_SYS_LIB_STRIP |
| 15127 | -# ------------------------ |
| 15128 | -AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP], |
| 15129 | -[striplib= |
| 15130 | -old_striplib= |
| 15131 | -AC_MSG_CHECKING([whether stripping libraries is possible]) |
| 15132 | -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 15133 | - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 15134 | - test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 15135 | - AC_MSG_RESULT([yes]) |
| 15136 | -else |
| 15137 | -# FIXME - insert some real tests, host_os isn't really good enough |
| 15138 | - case $host_os in |
| 15139 | - darwin*) |
| 15140 | - if test -n "$STRIP" ; then |
| 15141 | - striplib="$STRIP -x" |
| 15142 | - AC_MSG_RESULT([yes]) |
| 15143 | - else |
| 15144 | - AC_MSG_RESULT([no]) |
| 15145 | -fi |
| 15146 | - ;; |
| 15147 | - *) |
| 15148 | - AC_MSG_RESULT([no]) |
| 15149 | - ;; |
| 15150 | - esac |
| 15151 | -fi |
| 15152 | -])# AC_LIBTOOL_SYS_LIB_STRIP |
| 15153 | + if test "X$ECHO" = Xecho; then |
| 15154 | + # We didn't find a better echo, so look for alternatives. |
| 15155 | + if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && |
| 15156 | + echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && |
| 15157 | + test "X$echo_testing_string" = "X$echo_test_string"; then |
| 15158 | + # This shell has a builtin print -r that does the trick. |
| 15159 | + ECHO='print -r' |
| 15160 | + elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && |
| 15161 | + test "X$CONFIG_SHELL" != X/bin/ksh; then |
| 15162 | + # If we have ksh, try running configure again with it. |
| 15163 | + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
| 15164 | + export ORIGINAL_CONFIG_SHELL |
| 15165 | + CONFIG_SHELL=/bin/ksh |
| 15166 | + export CONFIG_SHELL |
| 15167 | + exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} |
| 15168 | + else |
| 15169 | + # Try using printf. |
| 15170 | + ECHO='printf %s\n' |
| 15171 | + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && |
| 15172 | + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && |
| 15173 | + test "X$echo_testing_string" = "X$echo_test_string"; then |
| 15174 | + # Cool, printf works |
| 15175 | + : |
| 15176 | + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && |
| 15177 | + test "X$echo_testing_string" = 'X\t' && |
| 15178 | + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 15179 | + test "X$echo_testing_string" = "X$echo_test_string"; then |
| 15180 | + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
| 15181 | + export CONFIG_SHELL |
| 15182 | + SHELL="$CONFIG_SHELL" |
| 15183 | + export SHELL |
| 15184 | + ECHO="$CONFIG_SHELL [$]0 --fallback-echo" |
| 15185 | + elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && |
| 15186 | + test "X$echo_testing_string" = 'X\t' && |
| 15187 | + echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 15188 | + test "X$echo_testing_string" = "X$echo_test_string"; then |
| 15189 | + ECHO="$CONFIG_SHELL [$]0 --fallback-echo" |
| 15190 | + else |
| 15191 | + # maybe with a smaller string... |
| 15192 | + prev=: |
| 15193 | |
| 15194 | + for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do |
| 15195 | + if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null |
| 15196 | + then |
| 15197 | + break |
| 15198 | + fi |
| 15199 | + prev="$cmd" |
| 15200 | + done |
| 15201 | |
| 15202 | -# AC_LIBTOOL_SYS_DYNAMIC_LINKER |
| 15203 | -# ----------------------------- |
| 15204 | -# PORTME Fill in your ld.so characteristics |
| 15205 | -AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER], |
| 15206 | -[AC_MSG_CHECKING([dynamic linker characteristics]) |
| 15207 | -library_names_spec= |
| 15208 | -libname_spec='lib$name' |
| 15209 | -soname_spec= |
| 15210 | -shrext_cmds=".so" |
| 15211 | -postinstall_cmds= |
| 15212 | -postuninstall_cmds= |
| 15213 | -finish_cmds= |
| 15214 | -finish_eval= |
| 15215 | -shlibpath_var= |
| 15216 | -shlibpath_overrides_runpath=unknown |
| 15217 | -version_type=none |
| 15218 | -dynamic_linker="$host_os ld.so" |
| 15219 | -sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 15220 | -if test "$GCC" = yes; then |
| 15221 | - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 15222 | - if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 15223 | - # if the path contains ";" then we assume it to be the separator |
| 15224 | - # otherwise default to the standard path separator (i.e. ":") - it is |
| 15225 | - # assumed that no part of a normal pathname contains ";" but that should |
| 15226 | - # okay in the real world where ";" in dirpaths is itself problematic. |
| 15227 | - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 15228 | - else |
| 15229 | - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 15230 | + if test "$prev" != 'sed 50q "[$]0"'; then |
| 15231 | + echo_test_string=`eval $prev` |
| 15232 | + export echo_test_string |
| 15233 | + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} |
| 15234 | + else |
| 15235 | + # Oops. We lost completely, so just stick with echo. |
| 15236 | + ECHO=echo |
| 15237 | + fi |
| 15238 | + fi |
| 15239 | + fi |
| 15240 | + fi |
| 15241 | fi |
| 15242 | -else |
| 15243 | - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 15244 | fi |
| 15245 | -need_lib_prefix=unknown |
| 15246 | -hardcode_into_libs=no |
| 15247 | |
| 15248 | -# when you set need_version to no, make sure it does not cause -set_version |
| 15249 | -# flags to be left without arguments |
| 15250 | -need_version=unknown |
| 15251 | +# Copy echo and quote the copy suitably for passing to libtool from |
| 15252 | +# the Makefile, instead of quoting the original, which is used later. |
| 15253 | +lt_ECHO=$ECHO |
| 15254 | +if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then |
| 15255 | + lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" |
| 15256 | +fi |
| 15257 | |
| 15258 | -case $host_os in |
| 15259 | -aix3*) |
| 15260 | - version_type=linux |
| 15261 | - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 15262 | - shlibpath_var=LIBPATH |
| 15263 | +AC_SUBST(lt_ECHO) |
| 15264 | +]) |
| 15265 | +_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) |
| 15266 | +_LT_DECL([], [ECHO], [1], |
| 15267 | + [An echo program that does not interpret backslashes]) |
| 15268 | +])# _LT_PROG_ECHO_BACKSLASH |
| 15269 | |
| 15270 | - # AIX 3 has no versioning support, so we append a major version to the name. |
| 15271 | - soname_spec='${libname}${release}${shared_ext}$major' |
| 15272 | - ;; |
| 15273 | |
| 15274 | -aix4* | aix5*) |
| 15275 | - version_type=linux |
| 15276 | - need_lib_prefix=no |
| 15277 | - need_version=no |
| 15278 | - hardcode_into_libs=yes |
| 15279 | - if test "$host_cpu" = ia64; then |
| 15280 | - # AIX 5 supports IA64 |
| 15281 | - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 15282 | - shlibpath_var=LD_LIBRARY_PATH |
| 15283 | - else |
| 15284 | - # With GCC up to 2.95.x, collect2 would create an import file |
| 15285 | - # for dependence libraries. The import file would start with |
| 15286 | - # the line `#! .'. This would cause the generated library to |
| 15287 | - # depend on `.', always an invalid library. This was fixed in |
| 15288 | - # development snapshots of GCC prior to 3.0. |
| 15289 | - case $host_os in |
| 15290 | - aix4 | aix4.[[01]] | aix4.[[01]].*) |
| 15291 | - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 15292 | - echo ' yes ' |
| 15293 | - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 15294 | - : |
| 15295 | - else |
| 15296 | - can_build_shared=no |
| 15297 | - fi |
| 15298 | - ;; |
| 15299 | +# _LT_ENABLE_LOCK |
| 15300 | +# --------------- |
| 15301 | +m4_defun([_LT_ENABLE_LOCK], |
| 15302 | +[AC_ARG_ENABLE([libtool-lock], |
| 15303 | + [AS_HELP_STRING([--disable-libtool-lock], |
| 15304 | + [avoid locking (might break parallel builds)])]) |
| 15305 | +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 15306 | + |
| 15307 | +# Some flags need to be propagated to the compiler or linker for good |
| 15308 | +# libtool support. |
| 15309 | +case $host in |
| 15310 | +ia64-*-hpux*) |
| 15311 | + # Find out which ABI we are using. |
| 15312 | + echo 'int i;' > conftest.$ac_ext |
| 15313 | + if AC_TRY_EVAL(ac_compile); then |
| 15314 | + case `/usr/bin/file conftest.$ac_objext` in |
| 15315 | + *ELF-32*) |
| 15316 | + HPUX_IA64_MODE="32" |
| 15317 | + ;; |
| 15318 | + *ELF-64*) |
| 15319 | + HPUX_IA64_MODE="64" |
| 15320 | + ;; |
| 15321 | esac |
| 15322 | - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 15323 | - # soname into executable. Probably we can add versioning support to |
| 15324 | - # collect2, so additional links can be useful in future. |
| 15325 | - if test "$aix_use_runtimelinking" = yes; then |
| 15326 | - # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 15327 | - # instead of lib<name>.a to let people know that these are not |
| 15328 | - # typical AIX shared libraries. |
| 15329 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15330 | + fi |
| 15331 | + rm -rf conftest* |
| 15332 | + ;; |
| 15333 | +*-*-irix6*) |
| 15334 | + # Find out which ABI we are using. |
| 15335 | + echo '[#]line __oline__ "configure"' > conftest.$ac_ext |
| 15336 | + if AC_TRY_EVAL(ac_compile); then |
| 15337 | + if test "$lt_cv_prog_gnu_ld" = yes; then |
| 15338 | + case `/usr/bin/file conftest.$ac_objext` in |
| 15339 | + *32-bit*) |
| 15340 | + LD="${LD-ld} -melf32bsmip" |
| 15341 | + ;; |
| 15342 | + *N32*) |
| 15343 | + LD="${LD-ld} -melf32bmipn32" |
| 15344 | + ;; |
| 15345 | + *64-bit*) |
| 15346 | + LD="${LD-ld} -melf64bmip" |
| 15347 | + ;; |
| 15348 | + esac |
| 15349 | else |
| 15350 | - # We preserve .a as extension for shared libraries through AIX4.2 |
| 15351 | - # and later when we are not doing run time linking. |
| 15352 | - library_names_spec='${libname}${release}.a $libname.a' |
| 15353 | - soname_spec='${libname}${release}${shared_ext}$major' |
| 15354 | + case `/usr/bin/file conftest.$ac_objext` in |
| 15355 | + *32-bit*) |
| 15356 | + LD="${LD-ld} -32" |
| 15357 | + ;; |
| 15358 | + *N32*) |
| 15359 | + LD="${LD-ld} -n32" |
| 15360 | + ;; |
| 15361 | + *64-bit*) |
| 15362 | + LD="${LD-ld} -64" |
| 15363 | + ;; |
| 15364 | + esac |
| 15365 | fi |
| 15366 | - shlibpath_var=LIBPATH |
| 15367 | fi |
| 15368 | + rm -rf conftest* |
| 15369 | ;; |
| 15370 | |
| 15371 | -amigaos*) |
| 15372 | - library_names_spec='$libname.ixlibrary $libname.a' |
| 15373 | - # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 15374 | - 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' |
| 15375 | +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ |
| 15376 | +s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
| 15377 | + # Find out which ABI we are using. |
| 15378 | + echo 'int i;' > conftest.$ac_ext |
| 15379 | + if AC_TRY_EVAL(ac_compile); then |
| 15380 | + case `/usr/bin/file conftest.o` in |
| 15381 | + *32-bit*) |
| 15382 | + case $host in |
| 15383 | + x86_64-*kfreebsd*-gnu) |
| 15384 | + LD="${LD-ld} -m elf_i386_fbsd" |
| 15385 | + ;; |
| 15386 | + x86_64-*linux*) |
| 15387 | + LD="${LD-ld} -m elf_i386" |
| 15388 | + ;; |
| 15389 | + ppc64-*linux*|powerpc64-*linux*) |
| 15390 | + LD="${LD-ld} -m elf32ppclinux" |
| 15391 | + ;; |
| 15392 | + s390x-*linux*) |
| 15393 | + LD="${LD-ld} -m elf_s390" |
| 15394 | + ;; |
| 15395 | + sparc64-*linux*) |
| 15396 | + LD="${LD-ld} -m elf32_sparc" |
| 15397 | + ;; |
| 15398 | + esac |
| 15399 | + ;; |
| 15400 | + *64-bit*) |
| 15401 | + case $host in |
| 15402 | + x86_64-*kfreebsd*-gnu) |
| 15403 | + LD="${LD-ld} -m elf_x86_64_fbsd" |
| 15404 | + ;; |
| 15405 | + x86_64-*linux*) |
| 15406 | + LD="${LD-ld} -m elf_x86_64" |
| 15407 | + ;; |
| 15408 | + ppc*-*linux*|powerpc*-*linux*) |
| 15409 | + LD="${LD-ld} -m elf64ppc" |
| 15410 | + ;; |
| 15411 | + s390*-*linux*|s390*-*tpf*) |
| 15412 | + LD="${LD-ld} -m elf64_s390" |
| 15413 | + ;; |
| 15414 | + sparc*-*linux*) |
| 15415 | + LD="${LD-ld} -m elf64_sparc" |
| 15416 | + ;; |
| 15417 | + esac |
| 15418 | + ;; |
| 15419 | + esac |
| 15420 | + fi |
| 15421 | + rm -rf conftest* |
| 15422 | ;; |
| 15423 | |
| 15424 | -beos*) |
| 15425 | - library_names_spec='${libname}${shared_ext}' |
| 15426 | - dynamic_linker="$host_os ld.so" |
| 15427 | - shlibpath_var=LIBRARY_PATH |
| 15428 | +*-*-sco3.2v5*) |
| 15429 | + # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 15430 | + SAVE_CFLAGS="$CFLAGS" |
| 15431 | + CFLAGS="$CFLAGS -belf" |
| 15432 | + AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, |
| 15433 | + [AC_LANG_PUSH(C) |
| 15434 | + AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) |
| 15435 | + AC_LANG_POP]) |
| 15436 | + if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 15437 | + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 15438 | + CFLAGS="$SAVE_CFLAGS" |
| 15439 | + fi |
| 15440 | ;; |
| 15441 | - |
| 15442 | -bsdi[[45]]*) |
| 15443 | - version_type=linux |
| 15444 | - need_version=no |
| 15445 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15446 | - soname_spec='${libname}${release}${shared_ext}$major' |
| 15447 | - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 15448 | - shlibpath_var=LD_LIBRARY_PATH |
| 15449 | - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 15450 | - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 15451 | - # the default ld.so.conf also contains /usr/contrib/lib and |
| 15452 | - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 15453 | - # libtool to hard-code these into programs |
| 15454 | +sparc*-*solaris*) |
| 15455 | + # Find out which ABI we are using. |
| 15456 | + echo 'int i;' > conftest.$ac_ext |
| 15457 | + if AC_TRY_EVAL(ac_compile); then |
| 15458 | + case `/usr/bin/file conftest.o` in |
| 15459 | + *64-bit*) |
| 15460 | + case $lt_cv_prog_gnu_ld in |
| 15461 | + yes*) LD="${LD-ld} -m elf64_sparc" ;; |
| 15462 | + *) |
| 15463 | + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
| 15464 | + LD="${LD-ld} -64" |
| 15465 | + fi |
| 15466 | + ;; |
| 15467 | + esac |
| 15468 | + ;; |
| 15469 | + esac |
| 15470 | + fi |
| 15471 | + rm -rf conftest* |
| 15472 | ;; |
| 15473 | +esac |
| 15474 | |
| 15475 | -cygwin* | mingw* | pw32*) |
| 15476 | - version_type=windows |
| 15477 | - shrext_cmds=".dll" |
| 15478 | - need_version=no |
| 15479 | - need_lib_prefix=no |
| 15480 | +need_locks="$enable_libtool_lock" |
| 15481 | +])# _LT_ENABLE_LOCK |
| 15482 | |
| 15483 | - case $GCC,$host_os in |
| 15484 | - yes,cygwin* | yes,mingw* | yes,pw32*) |
| 15485 | - library_names_spec='$libname.dll.a' |
| 15486 | - # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 15487 | - postinstall_cmds='base_file=`basename \${file}`~ |
| 15488 | - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 15489 | - dldir=$destdir/`dirname \$dlpath`~ |
| 15490 | - test -d \$dldir || mkdir -p \$dldir~ |
| 15491 | - $install_prog $dir/$dlname \$dldir/$dlname~ |
| 15492 | - chmod a+x \$dldir/$dlname' |
| 15493 | - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 15494 | - dlpath=$dir/\$dldll~ |
| 15495 | - $rm \$dlpath' |
| 15496 | - shlibpath_overrides_runpath=yes |
| 15497 | |
| 15498 | - case $host_os in |
| 15499 | - cygwin*) |
| 15500 | - # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 15501 | - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' |
| 15502 | - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 15503 | - ;; |
| 15504 | - mingw*) |
| 15505 | - # MinGW DLLs use traditional 'lib' prefix |
| 15506 | - soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' |
| 15507 | - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 15508 | - if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then |
| 15509 | - # It is most probably a Windows format PATH printed by |
| 15510 | - # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 15511 | - # path with ; separators, and with drive letters. We can handle the |
| 15512 | - # drive letters (cygwin fileutils understands them), so leave them, |
| 15513 | - # especially as we might pass files found there to a mingw objdump, |
| 15514 | - # which wouldn't understand a cygwinified path. Ahh. |
| 15515 | - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 15516 | - else |
| 15517 | - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 15518 | - fi |
| 15519 | - ;; |
| 15520 | - pw32*) |
| 15521 | - # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 15522 | - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' |
| 15523 | - ;; |
| 15524 | - esac |
| 15525 | - ;; |
| 15526 | +# _LT_CMD_OLD_ARCHIVE |
| 15527 | +# ------------------- |
| 15528 | +m4_defun([_LT_CMD_OLD_ARCHIVE], |
| 15529 | +[AC_CHECK_TOOL(AR, ar, false) |
| 15530 | +test -z "$AR" && AR=ar |
| 15531 | +test -z "$AR_FLAGS" && AR_FLAGS=cru |
| 15532 | +_LT_DECL([], [AR], [1], [The archiver]) |
| 15533 | +_LT_DECL([], [AR_FLAGS], [1]) |
| 15534 | + |
| 15535 | +AC_CHECK_TOOL(STRIP, strip, :) |
| 15536 | +test -z "$STRIP" && STRIP=: |
| 15537 | +_LT_DECL([], [STRIP], [1], [A symbol stripping program]) |
| 15538 | + |
| 15539 | +AC_CHECK_TOOL(RANLIB, ranlib, :) |
| 15540 | +test -z "$RANLIB" && RANLIB=: |
| 15541 | +_LT_DECL([], [RANLIB], [1], |
| 15542 | + [Commands used to install an old-style archive]) |
| 15543 | + |
| 15544 | +# Determine commands to create old-style static archives. |
| 15545 | +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
| 15546 | +old_postinstall_cmds='chmod 644 $oldlib' |
| 15547 | +old_postuninstall_cmds= |
| 15548 | |
| 15549 | +if test -n "$RANLIB"; then |
| 15550 | + case $host_os in |
| 15551 | + openbsd*) |
| 15552 | + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
| 15553 | + ;; |
| 15554 | *) |
| 15555 | - library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 15556 | + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
| 15557 | ;; |
| 15558 | esac |
| 15559 | - dynamic_linker='Win32 ld.exe' |
| 15560 | - # FIXME: first we should search . and the directory the executable is in |
| 15561 | - shlibpath_var=PATH |
| 15562 | - ;; |
| 15563 | + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
| 15564 | +fi |
| 15565 | +_LT_DECL([], [old_postinstall_cmds], [2]) |
| 15566 | +_LT_DECL([], [old_postuninstall_cmds], [2]) |
| 15567 | +_LT_TAGDECL([], [old_archive_cmds], [2], |
| 15568 | + [Commands used to build an old-style archive]) |
| 15569 | +])# _LT_CMD_OLD_ARCHIVE |
| 15570 | |
| 15571 | -darwin* | rhapsody*) |
| 15572 | - dynamic_linker="$host_os dyld" |
| 15573 | - version_type=darwin |
| 15574 | - need_lib_prefix=no |
| 15575 | - need_version=no |
| 15576 | - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 15577 | - soname_spec='${libname}${release}${major}$shared_ext' |
| 15578 | - shlibpath_overrides_runpath=yes |
| 15579 | - shlibpath_var=DYLD_LIBRARY_PATH |
| 15580 | - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
| 15581 | - # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 15582 | - if test "$GCC" = yes; then |
| 15583 | - sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
| 15584 | - else |
| 15585 | - sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 15586 | - fi |
| 15587 | - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 15588 | - ;; |
| 15589 | |
| 15590 | -dgux*) |
| 15591 | - version_type=linux |
| 15592 | - need_lib_prefix=no |
| 15593 | - need_version=no |
| 15594 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 15595 | - soname_spec='${libname}${release}${shared_ext}$major' |
| 15596 | - shlibpath_var=LD_LIBRARY_PATH |
| 15597 | - ;; |
| 15598 | +# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, |
| 15599 | +# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) |
| 15600 | +# ---------------------------------------------------------------- |
| 15601 | +# Check whether the given compiler option works |
| 15602 | +AC_DEFUN([_LT_COMPILER_OPTION], |
| 15603 | +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
| 15604 | +m4_require([_LT_DECL_SED])dnl |
| 15605 | +AC_CACHE_CHECK([$1], [$2], |
| 15606 | + [$2=no |
| 15607 | + m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) |
| 15608 | + echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 15609 | + lt_compiler_flag="$3" |
| 15610 | + # Insert the option either (1) after the last *FLAGS variable, or |
| 15611 | + # (2) before a word containing "conftest.", or (3) at the end. |
| 15612 | + # Note that $ac_compile itself does not contain backslashes and begins |
| 15613 | + # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 15614 | + # The option is referenced via a variable to avoid confusing sed. |
| 15615 | + lt_compile=`echo "$ac_compile" | $SED \ |
| 15616 | + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 15617 | + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ |
| 15618 | + -e 's:$: $lt_compiler_flag:'` |
| 15619 | + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) |
| 15620 | + (eval "$lt_compile" 2>conftest.err) |
| 15621 | + ac_status=$? |
| 15622 | + cat conftest.err >&AS_MESSAGE_LOG_FD |
| 15623 | + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD |
| 15624 | + if (exit $ac_status) && test -s "$ac_outfile"; then |
| 15625 | + # The compiler can only warn and ignore the option if not recognized |
| 15626 | + # So say no if there are warnings other than the usual output. |
| 15627 | + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 15628 | + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 15629 | + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 15630 | + $2=yes |
| 15631 | + fi |
| 15632 | + fi |
| 15633 | + $RM conftest* |
| 15634 | +]) |
| 15635 | |
| 15636 | -freebsd1*) |
| 15637 | - dynamic_linker=no |
| 15638 | - ;; |
| 15639 | +if test x"[$]$2" = xyes; then |
| 15640 | + m4_if([$5], , :, [$5]) |
| 15641 | +else |
| 15642 | + m4_if([$6], , :, [$6]) |
| 15643 | +fi |
| 15644 | +])# _LT_COMPILER_OPTION |
| 15645 | |
| 15646 | -kfreebsd*-gnu) |
| 15647 | - version_type=linux |
| 15648 | - need_lib_prefix=no |
| 15649 | - need_version=no |
| 15650 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 15651 | - soname_spec='${libname}${release}${shared_ext}$major' |
| 15652 | - shlibpath_var=LD_LIBRARY_PATH |
| 15653 | - shlibpath_overrides_runpath=no |
| 15654 | - hardcode_into_libs=yes |
| 15655 | - dynamic_linker='GNU ld.so' |
| 15656 | - ;; |
| 15657 | +# Old name: |
| 15658 | +AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION]) |
| 15659 | +dnl aclocal-1.4 backwards compatibility: |
| 15660 | +dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], []) |
| 15661 | |
| 15662 | -freebsd* | dragonfly*) |
| 15663 | - # DragonFly does not have aout. When/if they implement a new |
| 15664 | - # versioning mechanism, adjust this. |
| 15665 | - if test -x /usr/bin/objformat; then |
| 15666 | - objformat=`/usr/bin/objformat` |
| 15667 | - else |
| 15668 | - case $host_os in |
| 15669 | - freebsd[[123]]*) objformat=aout ;; |
| 15670 | - *) objformat=elf ;; |
| 15671 | - esac |
| 15672 | - fi |
| 15673 | - version_type=freebsd-$objformat |
| 15674 | - case $version_type in |
| 15675 | - freebsd-elf*) |
| 15676 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 15677 | - need_version=no |
| 15678 | - need_lib_prefix=no |
| 15679 | - ;; |
| 15680 | - freebsd-*) |
| 15681 | - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 15682 | - need_version=yes |
| 15683 | - ;; |
| 15684 | - esac |
| 15685 | - shlibpath_var=LD_LIBRARY_PATH |
| 15686 | - case $host_os in |
| 15687 | - freebsd2*) |
| 15688 | - shlibpath_overrides_runpath=yes |
| 15689 | - ;; |
| 15690 | - freebsd3.[[01]]* | freebsdelf3.[[01]]*) |
| 15691 | - shlibpath_overrides_runpath=yes |
| 15692 | - hardcode_into_libs=yes |
| 15693 | + |
| 15694 | +# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, |
| 15695 | +# [ACTION-SUCCESS], [ACTION-FAILURE]) |
| 15696 | +# ---------------------------------------------------- |
| 15697 | +# Check whether the given linker option works |
| 15698 | +AC_DEFUN([_LT_LINKER_OPTION], |
| 15699 | +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
| 15700 | +m4_require([_LT_DECL_SED])dnl |
| 15701 | +AC_CACHE_CHECK([$1], [$2], |
| 15702 | + [$2=no |
| 15703 | + save_LDFLAGS="$LDFLAGS" |
| 15704 | + LDFLAGS="$LDFLAGS $3" |
| 15705 | + echo "$lt_simple_link_test_code" > conftest.$ac_ext |
| 15706 | + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 15707 | + # The linker can only warn and ignore the option if not recognized |
| 15708 | + # So say no if there are warnings |
| 15709 | + if test -s conftest.err; then |
| 15710 | + # Append any errors to the config.log. |
| 15711 | + cat conftest.err 1>&AS_MESSAGE_LOG_FD |
| 15712 | + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 15713 | + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 15714 | + if diff conftest.exp conftest.er2 >/dev/null; then |
| 15715 | + $2=yes |
| 15716 | + fi |
| 15717 | + else |
| 15718 | + $2=yes |
| 15719 | + fi |
| 15720 | + fi |
| 15721 | + $RM -r conftest* |
| 15722 | + LDFLAGS="$save_LDFLAGS" |
| 15723 | +]) |
| 15724 | + |
| 15725 | +if test x"[$]$2" = xyes; then |
| 15726 | + m4_if([$4], , :, [$4]) |
| 15727 | +else |
| 15728 | + m4_if([$5], , :, [$5]) |
| 15729 | +fi |
| 15730 | +])# _LT_LINKER_OPTION |
| 15731 | + |
| 15732 | +# Old name: |
| 15733 | +AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION]) |
| 15734 | +dnl aclocal-1.4 backwards compatibility: |
| 15735 | +dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], []) |
| 15736 | + |
| 15737 | + |
| 15738 | +# LT_CMD_MAX_LEN |
| 15739 | +#--------------- |
| 15740 | +AC_DEFUN([LT_CMD_MAX_LEN], |
| 15741 | +[AC_REQUIRE([AC_CANONICAL_HOST])dnl |
| 15742 | +# find the maximum length of command line arguments |
| 15743 | +AC_MSG_CHECKING([the maximum length of command line arguments]) |
| 15744 | +AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl |
| 15745 | + i=0 |
| 15746 | + teststring="ABCD" |
| 15747 | + |
| 15748 | + case $build_os in |
| 15749 | + msdosdjgpp*) |
| 15750 | + # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 15751 | + # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 15752 | + # during glob expansion). Even if it were fixed, the result of this |
| 15753 | + # check would be larger than it should be. |
| 15754 | + lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 15755 | ;; |
| 15756 | - freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ |
| 15757 | - freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) |
| 15758 | - shlibpath_overrides_runpath=no |
| 15759 | - hardcode_into_libs=yes |
| 15760 | + |
| 15761 | + gnu*) |
| 15762 | + # Under GNU Hurd, this test is not required because there is |
| 15763 | + # no limit to the length of command line arguments. |
| 15764 | + # Libtool will interpret -1 as no limit whatsoever |
| 15765 | + lt_cv_sys_max_cmd_len=-1; |
| 15766 | ;; |
| 15767 | - freebsd*) # from 4.6 on |
| 15768 | - shlibpath_overrides_runpath=yes |
| 15769 | - hardcode_into_libs=yes |
| 15770 | + |
| 15771 | + cygwin* | mingw*) |
| 15772 | + # On Win9x/ME, this test blows up -- it succeeds, but takes |
| 15773 | + # about 5 minutes as the teststring grows exponentially. |
| 15774 | + # Worse, since 9x/ME are not pre-emptively multitasking, |
| 15775 | + # you end up with a "frozen" computer, even though with patience |
| 15776 | + # the test eventually succeeds (with a max line length of 256k). |
| 15777 | + # Instead, let's just punt: use the minimum linelength reported by |
| 15778 | + # all of the supported platforms: 8192 (on NT/2K/XP). |
| 15779 | + lt_cv_sys_max_cmd_len=8192; |
| 15780 | ;; |
| 15781 | - esac |
| 15782 | - ;; |
| 15783 | |
| 15784 | -gnu*) |
| 15785 | - version_type=linux |
| 15786 | - need_lib_prefix=no |
| 15787 | - need_version=no |
| 15788 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 15789 | - soname_spec='${libname}${release}${shared_ext}$major' |
| 15790 | - shlibpath_var=LD_LIBRARY_PATH |
| 15791 | - hardcode_into_libs=yes |
| 15792 | - ;; |
| 15793 | + amigaos*) |
| 15794 | + # On AmigaOS with pdksh, this test takes hours, literally. |
| 15795 | + # So we just punt and use a minimum line length of 8192. |
| 15796 | + lt_cv_sys_max_cmd_len=8192; |
| 15797 | + ;; |
| 15798 | |
| 15799 | -hpux9* | hpux10* | hpux11*) |
| 15800 | - # Give a soname corresponding to the major version so that dld.sl refuses to |
| 15801 | - # link against other versions. |
| 15802 | - version_type=sunos |
| 15803 | - need_lib_prefix=no |
| 15804 | - need_version=no |
| 15805 | - case $host_cpu in |
| 15806 | - ia64*) |
| 15807 | - shrext_cmds='.so' |
| 15808 | - hardcode_into_libs=yes |
| 15809 | - dynamic_linker="$host_os dld.so" |
| 15810 | - shlibpath_var=LD_LIBRARY_PATH |
| 15811 | - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 15812 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15813 | - soname_spec='${libname}${release}${shared_ext}$major' |
| 15814 | - if test "X$HPUX_IA64_MODE" = X32; then |
| 15815 | - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 15816 | + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
| 15817 | + # This has been around since 386BSD, at least. Likely further. |
| 15818 | + if test -x /sbin/sysctl; then |
| 15819 | + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 15820 | + elif test -x /usr/sbin/sysctl; then |
| 15821 | + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| 15822 | else |
| 15823 | - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 15824 | + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
| 15825 | fi |
| 15826 | - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 15827 | - ;; |
| 15828 | - hppa*64*) |
| 15829 | - shrext_cmds='.sl' |
| 15830 | - hardcode_into_libs=yes |
| 15831 | - dynamic_linker="$host_os dld.sl" |
| 15832 | - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 15833 | - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 15834 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15835 | - soname_spec='${libname}${release}${shared_ext}$major' |
| 15836 | - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 15837 | - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 15838 | - ;; |
| 15839 | - *) |
| 15840 | - shrext_cmds='.sl' |
| 15841 | - dynamic_linker="$host_os dld.sl" |
| 15842 | - shlibpath_var=SHLIB_PATH |
| 15843 | - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 15844 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15845 | - soname_spec='${libname}${release}${shared_ext}$major' |
| 15846 | + # And add a safety zone |
| 15847 | + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 15848 | + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 15849 | ;; |
| 15850 | - esac |
| 15851 | - # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 15852 | - postinstall_cmds='chmod 555 $lib' |
| 15853 | - ;; |
| 15854 | |
| 15855 | -interix3*) |
| 15856 | - version_type=linux |
| 15857 | - need_lib_prefix=no |
| 15858 | - need_version=no |
| 15859 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 15860 | - soname_spec='${libname}${release}${shared_ext}$major' |
| 15861 | - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 15862 | - shlibpath_var=LD_LIBRARY_PATH |
| 15863 | - shlibpath_overrides_runpath=no |
| 15864 | - hardcode_into_libs=yes |
| 15865 | - ;; |
| 15866 | + interix*) |
| 15867 | + # We know the value 262144 and hardcode it with a safety zone (like BSD) |
| 15868 | + lt_cv_sys_max_cmd_len=196608 |
| 15869 | + ;; |
| 15870 | |
| 15871 | -irix5* | irix6* | nonstopux*) |
| 15872 | - case $host_os in |
| 15873 | - nonstopux*) version_type=nonstopux ;; |
| 15874 | - *) |
| 15875 | - if test "$lt_cv_prog_gnu_ld" = yes; then |
| 15876 | - version_type=linux |
| 15877 | - else |
| 15878 | - version_type=irix |
| 15879 | - fi ;; |
| 15880 | - esac |
| 15881 | - need_lib_prefix=no |
| 15882 | - need_version=no |
| 15883 | - soname_spec='${libname}${release}${shared_ext}$major' |
| 15884 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 15885 | - case $host_os in |
| 15886 | - irix5* | nonstopux*) |
| 15887 | - libsuff= shlibsuff= |
| 15888 | + osf*) |
| 15889 | + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
| 15890 | + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
| 15891 | + # nice to cause kernel panics so lets avoid the loop below. |
| 15892 | + # First set a reasonable default. |
| 15893 | + lt_cv_sys_max_cmd_len=16384 |
| 15894 | + # |
| 15895 | + if test -x /sbin/sysconfig; then |
| 15896 | + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
| 15897 | + *1*) lt_cv_sys_max_cmd_len=-1 ;; |
| 15898 | + esac |
| 15899 | + fi |
| 15900 | + ;; |
| 15901 | + sco3.2v5*) |
| 15902 | + lt_cv_sys_max_cmd_len=102400 |
| 15903 | + ;; |
| 15904 | + sysv5* | sco5v6* | sysv4.2uw2*) |
| 15905 | + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
| 15906 | + if test -n "$kargmax"; then |
| 15907 | + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` |
| 15908 | + else |
| 15909 | + lt_cv_sys_max_cmd_len=32768 |
| 15910 | + fi |
| 15911 | ;; |
| 15912 | *) |
| 15913 | - case $LD in # libtool.m4 will add one of these switches to LD |
| 15914 | - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 15915 | - libsuff= shlibsuff= libmagic=32-bit;; |
| 15916 | - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 15917 | - libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 15918 | - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 15919 | - libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 15920 | - *) libsuff= shlibsuff= libmagic=never-match;; |
| 15921 | - esac |
| 15922 | + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
| 15923 | + if test -n "$lt_cv_sys_max_cmd_len"; then |
| 15924 | + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 15925 | + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 15926 | + else |
| 15927 | + # Make teststring a little bigger before we do anything with it. |
| 15928 | + # a 1K string should be a reasonable start. |
| 15929 | + for i in 1 2 3 4 5 6 7 8 ; do |
| 15930 | + teststring=$teststring$teststring |
| 15931 | + done |
| 15932 | + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| 15933 | + # If test is not a shell built-in, we'll probably end up computing a |
| 15934 | + # maximum length that is only half of the actual maximum length, but |
| 15935 | + # we can't tell. |
| 15936 | + while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ |
| 15937 | + = "XX$teststring$teststring"; } >/dev/null 2>&1 && |
| 15938 | + test $i != 17 # 1/2 MB should be enough |
| 15939 | + do |
| 15940 | + i=`expr $i + 1` |
| 15941 | + teststring=$teststring$teststring |
| 15942 | + done |
| 15943 | + # Only check the string length outside the loop. |
| 15944 | + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` |
| 15945 | + teststring= |
| 15946 | + # Add a significant safety factor because C++ compilers can tack on |
| 15947 | + # massive amounts of additional arguments before passing them to the |
| 15948 | + # linker. It appears as though 1/2 is a usable value. |
| 15949 | + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 15950 | + fi |
| 15951 | ;; |
| 15952 | esac |
| 15953 | - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 15954 | - shlibpath_overrides_runpath=no |
| 15955 | - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 15956 | - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 15957 | - hardcode_into_libs=yes |
| 15958 | - ;; |
| 15959 | +]) |
| 15960 | +if test -n $lt_cv_sys_max_cmd_len ; then |
| 15961 | + AC_MSG_RESULT($lt_cv_sys_max_cmd_len) |
| 15962 | +else |
| 15963 | + AC_MSG_RESULT(none) |
| 15964 | +fi |
| 15965 | +max_cmd_len=$lt_cv_sys_max_cmd_len |
| 15966 | +_LT_DECL([], [max_cmd_len], [0], |
| 15967 | + [What is the maximum length of a command?]) |
| 15968 | +])# LT_CMD_MAX_LEN |
| 15969 | |
| 15970 | -# No shared lib support for Linux oldld, aout, or coff. |
| 15971 | -linux*oldld* | linux*aout* | linux*coff*) |
| 15972 | - dynamic_linker=no |
| 15973 | - ;; |
| 15974 | +# Old name: |
| 15975 | +AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN]) |
| 15976 | +dnl aclocal-1.4 backwards compatibility: |
| 15977 | +dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], []) |
| 15978 | |
| 15979 | -# This must be Linux ELF. |
| 15980 | -linux*) |
| 15981 | - version_type=linux |
| 15982 | - need_lib_prefix=no |
| 15983 | - need_version=no |
| 15984 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15985 | - soname_spec='${libname}${release}${shared_ext}$major' |
| 15986 | - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 15987 | - shlibpath_var=LD_LIBRARY_PATH |
| 15988 | - shlibpath_overrides_runpath=no |
| 15989 | - # This implies no fast_install, which is unacceptable. |
| 15990 | - # Some rework will be needed to allow for fast_install |
| 15991 | - # before this can be enabled. |
| 15992 | - hardcode_into_libs=yes |
| 15993 | |
| 15994 | - # Append ld.so.conf contents to the search path |
| 15995 | - if test -f /etc/ld.so.conf; then |
| 15996 | - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
| 15997 | - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 15998 | - fi |
| 15999 | +# _LT_HEADER_DLFCN |
| 16000 | +# ---------------- |
| 16001 | +m4_defun([_LT_HEADER_DLFCN], |
| 16002 | +[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl |
| 16003 | +])# _LT_HEADER_DLFCN |
| 16004 | |
| 16005 | - # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 16006 | - # powerpc, because MkLinux only supported shared libraries with the |
| 16007 | - # GNU dynamic linker. Since this was broken with cross compilers, |
| 16008 | - # most powerpc-linux boxes support dynamic linking these days and |
| 16009 | - # people can always --disable-shared, the test was removed, and we |
| 16010 | - # assume the GNU/Linux dynamic linker is in use. |
| 16011 | - dynamic_linker='GNU/Linux ld.so' |
| 16012 | - ;; |
| 16013 | |
| 16014 | -knetbsd*-gnu) |
| 16015 | - version_type=linux |
| 16016 | - need_lib_prefix=no |
| 16017 | - need_version=no |
| 16018 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 16019 | - soname_spec='${libname}${release}${shared_ext}$major' |
| 16020 | - shlibpath_var=LD_LIBRARY_PATH |
| 16021 | - shlibpath_overrides_runpath=no |
| 16022 | - hardcode_into_libs=yes |
| 16023 | - dynamic_linker='GNU ld.so' |
| 16024 | - ;; |
| 16025 | +# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, |
| 16026 | +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) |
| 16027 | +# ---------------------------------------------------------------- |
| 16028 | +m4_defun([_LT_TRY_DLOPEN_SELF], |
| 16029 | +[m4_require([_LT_HEADER_DLFCN])dnl |
| 16030 | +if test "$cross_compiling" = yes; then : |
| 16031 | + [$4] |
| 16032 | +else |
| 16033 | + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 16034 | + lt_status=$lt_dlunknown |
| 16035 | + cat > conftest.$ac_ext <<_LT_EOF |
| 16036 | +[#line __oline__ "configure" |
| 16037 | +#include "confdefs.h" |
| 16038 | |
| 16039 | -netbsd*) |
| 16040 | - version_type=sunos |
| 16041 | - need_lib_prefix=no |
| 16042 | - need_version=no |
| 16043 | - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 16044 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 16045 | - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 16046 | - dynamic_linker='NetBSD (a.out) ld.so' |
| 16047 | - else |
| 16048 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 16049 | - soname_spec='${libname}${release}${shared_ext}$major' |
| 16050 | - dynamic_linker='NetBSD ld.elf_so' |
| 16051 | - fi |
| 16052 | - shlibpath_var=LD_LIBRARY_PATH |
| 16053 | - shlibpath_overrides_runpath=yes |
| 16054 | - hardcode_into_libs=yes |
| 16055 | - ;; |
| 16056 | +#if HAVE_DLFCN_H |
| 16057 | +#include <dlfcn.h> |
| 16058 | +#endif |
| 16059 | |
| 16060 | -newsos6) |
| 16061 | - version_type=linux |
| 16062 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16063 | - shlibpath_var=LD_LIBRARY_PATH |
| 16064 | - shlibpath_overrides_runpath=yes |
| 16065 | - ;; |
| 16066 | +#include <stdio.h> |
| 16067 | |
| 16068 | -nto-qnx*) |
| 16069 | - version_type=linux |
| 16070 | - need_lib_prefix=no |
| 16071 | - need_version=no |
| 16072 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16073 | - soname_spec='${libname}${release}${shared_ext}$major' |
| 16074 | - shlibpath_var=LD_LIBRARY_PATH |
| 16075 | - shlibpath_overrides_runpath=yes |
| 16076 | - ;; |
| 16077 | +#ifdef RTLD_GLOBAL |
| 16078 | +# define LT_DLGLOBAL RTLD_GLOBAL |
| 16079 | +#else |
| 16080 | +# ifdef DL_GLOBAL |
| 16081 | +# define LT_DLGLOBAL DL_GLOBAL |
| 16082 | +# else |
| 16083 | +# define LT_DLGLOBAL 0 |
| 16084 | +# endif |
| 16085 | +#endif |
| 16086 | |
| 16087 | -openbsd*) |
| 16088 | - version_type=sunos |
| 16089 | - sys_lib_dlsearch_path_spec="/usr/lib" |
| 16090 | - need_lib_prefix=no |
| 16091 | - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 16092 | - case $host_os in |
| 16093 | - openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 16094 | - *) need_version=no ;; |
| 16095 | - esac |
| 16096 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 16097 | - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 16098 | - shlibpath_var=LD_LIBRARY_PATH |
| 16099 | - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 16100 | - case $host_os in |
| 16101 | - openbsd2.[[89]] | openbsd2.[[89]].*) |
| 16102 | - shlibpath_overrides_runpath=no |
| 16103 | - ;; |
| 16104 | - *) |
| 16105 | - shlibpath_overrides_runpath=yes |
| 16106 | - ;; |
| 16107 | - esac |
| 16108 | +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 16109 | + find out it does not work in some platform. */ |
| 16110 | +#ifndef LT_DLLAZY_OR_NOW |
| 16111 | +# ifdef RTLD_LAZY |
| 16112 | +# define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 16113 | +# else |
| 16114 | +# ifdef DL_LAZY |
| 16115 | +# define LT_DLLAZY_OR_NOW DL_LAZY |
| 16116 | +# else |
| 16117 | +# ifdef RTLD_NOW |
| 16118 | +# define LT_DLLAZY_OR_NOW RTLD_NOW |
| 16119 | +# else |
| 16120 | +# ifdef DL_NOW |
| 16121 | +# define LT_DLLAZY_OR_NOW DL_NOW |
| 16122 | +# else |
| 16123 | +# define LT_DLLAZY_OR_NOW 0 |
| 16124 | +# endif |
| 16125 | +# endif |
| 16126 | +# endif |
| 16127 | +# endif |
| 16128 | +#endif |
| 16129 | + |
| 16130 | +#ifdef __cplusplus |
| 16131 | +extern "C" void exit (int); |
| 16132 | +#endif |
| 16133 | + |
| 16134 | +void fnord() { int i=42;} |
| 16135 | +int main () |
| 16136 | +{ |
| 16137 | + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 16138 | + int status = $lt_dlunknown; |
| 16139 | + |
| 16140 | + if (self) |
| 16141 | + { |
| 16142 | + if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 16143 | + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 16144 | + /* dlclose (self); */ |
| 16145 | + } |
| 16146 | else |
| 16147 | - shlibpath_overrides_runpath=yes |
| 16148 | + puts (dlerror ()); |
| 16149 | + |
| 16150 | + exit (status); |
| 16151 | +}] |
| 16152 | +_LT_EOF |
| 16153 | + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then |
| 16154 | + (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null |
| 16155 | + lt_status=$? |
| 16156 | + case x$lt_status in |
| 16157 | + x$lt_dlno_uscore) $1 ;; |
| 16158 | + x$lt_dlneed_uscore) $2 ;; |
| 16159 | + x$lt_dlunknown|x*) $3 ;; |
| 16160 | + esac |
| 16161 | + else : |
| 16162 | + # compilation failed |
| 16163 | + $3 |
| 16164 | fi |
| 16165 | - ;; |
| 16166 | +fi |
| 16167 | +rm -fr conftest* |
| 16168 | +])# _LT_TRY_DLOPEN_SELF |
| 16169 | |
| 16170 | -os2*) |
| 16171 | - libname_spec='$name' |
| 16172 | - shrext_cmds=".dll" |
| 16173 | - need_lib_prefix=no |
| 16174 | - library_names_spec='$libname${shared_ext} $libname.a' |
| 16175 | - dynamic_linker='OS/2 ld.exe' |
| 16176 | - shlibpath_var=LIBPATH |
| 16177 | - ;; |
| 16178 | |
| 16179 | -osf3* | osf4* | osf5*) |
| 16180 | - version_type=osf |
| 16181 | - need_lib_prefix=no |
| 16182 | - need_version=no |
| 16183 | - soname_spec='${libname}${release}${shared_ext}$major' |
| 16184 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16185 | - shlibpath_var=LD_LIBRARY_PATH |
| 16186 | - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 16187 | - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 16188 | - ;; |
| 16189 | +# LT_SYS_DLOPEN_SELF |
| 16190 | +# ------------------ |
| 16191 | +AC_DEFUN([LT_SYS_DLOPEN_SELF], |
| 16192 | +[m4_require([_LT_HEADER_DLFCN])dnl |
| 16193 | +if test "x$enable_dlopen" != xyes; then |
| 16194 | + enable_dlopen=unknown |
| 16195 | + enable_dlopen_self=unknown |
| 16196 | + enable_dlopen_self_static=unknown |
| 16197 | +else |
| 16198 | + lt_cv_dlopen=no |
| 16199 | + lt_cv_dlopen_libs= |
| 16200 | |
| 16201 | -solaris*) |
| 16202 | - version_type=linux |
| 16203 | - need_lib_prefix=no |
| 16204 | - need_version=no |
| 16205 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16206 | - soname_spec='${libname}${release}${shared_ext}$major' |
| 16207 | - shlibpath_var=LD_LIBRARY_PATH |
| 16208 | - shlibpath_overrides_runpath=yes |
| 16209 | - hardcode_into_libs=yes |
| 16210 | - # ldd complains unless libraries are executable |
| 16211 | - postinstall_cmds='chmod +x $lib' |
| 16212 | - ;; |
| 16213 | + case $host_os in |
| 16214 | + beos*) |
| 16215 | + lt_cv_dlopen="load_add_on" |
| 16216 | + lt_cv_dlopen_libs= |
| 16217 | + lt_cv_dlopen_self=yes |
| 16218 | + ;; |
| 16219 | |
| 16220 | -sunos4*) |
| 16221 | - version_type=sunos |
| 16222 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 16223 | - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 16224 | - shlibpath_var=LD_LIBRARY_PATH |
| 16225 | - shlibpath_overrides_runpath=yes |
| 16226 | - if test "$with_gnu_ld" = yes; then |
| 16227 | - need_lib_prefix=no |
| 16228 | - fi |
| 16229 | - need_version=yes |
| 16230 | - ;; |
| 16231 | + mingw* | pw32*) |
| 16232 | + lt_cv_dlopen="LoadLibrary" |
| 16233 | + lt_cv_dlopen_libs= |
| 16234 | + ;; |
| 16235 | |
| 16236 | -sysv4 | sysv4.3*) |
| 16237 | - version_type=linux |
| 16238 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16239 | - soname_spec='${libname}${release}${shared_ext}$major' |
| 16240 | - shlibpath_var=LD_LIBRARY_PATH |
| 16241 | - case $host_vendor in |
| 16242 | - sni) |
| 16243 | - shlibpath_overrides_runpath=no |
| 16244 | - need_lib_prefix=no |
| 16245 | - export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 16246 | - runpath_var=LD_RUN_PATH |
| 16247 | - ;; |
| 16248 | - siemens) |
| 16249 | - need_lib_prefix=no |
| 16250 | - ;; |
| 16251 | - motorola) |
| 16252 | - need_lib_prefix=no |
| 16253 | - need_version=no |
| 16254 | - shlibpath_overrides_runpath=no |
| 16255 | - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 16256 | - ;; |
| 16257 | - esac |
| 16258 | - ;; |
| 16259 | + cygwin*) |
| 16260 | + lt_cv_dlopen="dlopen" |
| 16261 | + lt_cv_dlopen_libs= |
| 16262 | + ;; |
| 16263 | |
| 16264 | -sysv4*MP*) |
| 16265 | - if test -d /usr/nec ;then |
| 16266 | - version_type=linux |
| 16267 | - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 16268 | - soname_spec='$libname${shared_ext}.$major' |
| 16269 | - shlibpath_var=LD_LIBRARY_PATH |
| 16270 | - fi |
| 16271 | - ;; |
| 16272 | + darwin*) |
| 16273 | + # if libdl is installed we need to link against it |
| 16274 | + AC_CHECK_LIB([dl], [dlopen], |
| 16275 | + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ |
| 16276 | + lt_cv_dlopen="dyld" |
| 16277 | + lt_cv_dlopen_libs= |
| 16278 | + lt_cv_dlopen_self=yes |
| 16279 | + ]) |
| 16280 | + ;; |
| 16281 | |
| 16282 | -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 16283 | - version_type=freebsd-elf |
| 16284 | - need_lib_prefix=no |
| 16285 | - need_version=no |
| 16286 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 16287 | - soname_spec='${libname}${release}${shared_ext}$major' |
| 16288 | - shlibpath_var=LD_LIBRARY_PATH |
| 16289 | - hardcode_into_libs=yes |
| 16290 | - if test "$with_gnu_ld" = yes; then |
| 16291 | - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 16292 | - shlibpath_overrides_runpath=no |
| 16293 | + *) |
| 16294 | + AC_CHECK_FUNC([shl_load], |
| 16295 | + [lt_cv_dlopen="shl_load"], |
| 16296 | + [AC_CHECK_LIB([dld], [shl_load], |
| 16297 | + [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"], |
| 16298 | + [AC_CHECK_FUNC([dlopen], |
| 16299 | + [lt_cv_dlopen="dlopen"], |
| 16300 | + [AC_CHECK_LIB([dl], [dlopen], |
| 16301 | + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], |
| 16302 | + [AC_CHECK_LIB([svld], [dlopen], |
| 16303 | + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], |
| 16304 | + [AC_CHECK_LIB([dld], [dld_link], |
| 16305 | + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"]) |
| 16306 | + ]) |
| 16307 | + ]) |
| 16308 | + ]) |
| 16309 | + ]) |
| 16310 | + ]) |
| 16311 | + ;; |
| 16312 | + esac |
| 16313 | + |
| 16314 | + if test "x$lt_cv_dlopen" != xno; then |
| 16315 | + enable_dlopen=yes |
| 16316 | else |
| 16317 | - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 16318 | - shlibpath_overrides_runpath=yes |
| 16319 | - case $host_os in |
| 16320 | - sco3.2v5*) |
| 16321 | - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 16322 | - ;; |
| 16323 | - esac |
| 16324 | + enable_dlopen=no |
| 16325 | fi |
| 16326 | - sys_lib_dlsearch_path_spec='/usr/lib' |
| 16327 | - ;; |
| 16328 | - |
| 16329 | -uts4*) |
| 16330 | - version_type=linux |
| 16331 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16332 | - soname_spec='${libname}${release}${shared_ext}$major' |
| 16333 | - shlibpath_var=LD_LIBRARY_PATH |
| 16334 | - ;; |
| 16335 | - |
| 16336 | -*) |
| 16337 | - dynamic_linker=no |
| 16338 | - ;; |
| 16339 | -esac |
| 16340 | -AC_MSG_RESULT([$dynamic_linker]) |
| 16341 | -test "$dynamic_linker" = no && can_build_shared=no |
| 16342 | - |
| 16343 | -variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 16344 | -if test "$GCC" = yes; then |
| 16345 | - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 16346 | -fi |
| 16347 | -])# AC_LIBTOOL_SYS_DYNAMIC_LINKER |
| 16348 | - |
| 16349 | |
| 16350 | -# _LT_AC_TAGCONFIG |
| 16351 | -# ---------------- |
| 16352 | -AC_DEFUN([_LT_AC_TAGCONFIG], |
| 16353 | -[AC_ARG_WITH([tags], |
| 16354 | - [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@], |
| 16355 | - [include additional configurations @<:@automatic@:>@])], |
| 16356 | - [tagnames="$withval"]) |
| 16357 | - |
| 16358 | -if test -f "$ltmain" && test -n "$tagnames"; then |
| 16359 | - if test ! -f "${ofile}"; then |
| 16360 | - AC_MSG_WARN([output file `$ofile' does not exist]) |
| 16361 | - fi |
| 16362 | + case $lt_cv_dlopen in |
| 16363 | + dlopen) |
| 16364 | + save_CPPFLAGS="$CPPFLAGS" |
| 16365 | + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 16366 | |
| 16367 | - if test -z "$LTCC"; then |
| 16368 | - eval "`$SHELL ${ofile} --config | grep '^LTCC='`" |
| 16369 | - if test -z "$LTCC"; then |
| 16370 | - AC_MSG_WARN([output file `$ofile' does not look like a libtool script]) |
| 16371 | - else |
| 16372 | - AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile']) |
| 16373 | - fi |
| 16374 | - fi |
| 16375 | - if test -z "$LTCFLAGS"; then |
| 16376 | - eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" |
| 16377 | - fi |
| 16378 | + save_LDFLAGS="$LDFLAGS" |
| 16379 | + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 16380 | |
| 16381 | - # Extract list of available tagged configurations in $ofile. |
| 16382 | - # Note that this assumes the entire list is on one line. |
| 16383 | - available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
| 16384 | + save_LIBS="$LIBS" |
| 16385 | + LIBS="$lt_cv_dlopen_libs $LIBS" |
| 16386 | |
| 16387 | - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 16388 | - for tagname in $tagnames; do |
| 16389 | - IFS="$lt_save_ifs" |
| 16390 | - # Check whether tagname contains only valid characters |
| 16391 | - case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in |
| 16392 | - "") ;; |
| 16393 | - *) AC_MSG_ERROR([invalid tag name: $tagname]) |
| 16394 | - ;; |
| 16395 | - esac |
| 16396 | + AC_CACHE_CHECK([whether a program can dlopen itself], |
| 16397 | + lt_cv_dlopen_self, [dnl |
| 16398 | + _LT_TRY_DLOPEN_SELF( |
| 16399 | + lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, |
| 16400 | + lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) |
| 16401 | + ]) |
| 16402 | |
| 16403 | - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null |
| 16404 | - then |
| 16405 | - AC_MSG_ERROR([tag name \"$tagname\" already exists]) |
| 16406 | + if test "x$lt_cv_dlopen_self" = xyes; then |
| 16407 | + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
| 16408 | + AC_CACHE_CHECK([whether a statically linked program can dlopen itself], |
| 16409 | + lt_cv_dlopen_self_static, [dnl |
| 16410 | + _LT_TRY_DLOPEN_SELF( |
| 16411 | + lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, |
| 16412 | + lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) |
| 16413 | + ]) |
| 16414 | fi |
| 16415 | |
| 16416 | - # Update the list of available tags. |
| 16417 | - if test -n "$tagname"; then |
| 16418 | - echo appending configuration tag \"$tagname\" to $ofile |
| 16419 | - |
| 16420 | - case $tagname in |
| 16421 | - CXX) |
| 16422 | - if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 16423 | - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 16424 | - (test "X$CXX" != "Xg++"))) ; then |
| 16425 | - AC_LIBTOOL_LANG_CXX_CONFIG |
| 16426 | - else |
| 16427 | - tagname="" |
| 16428 | - fi |
| 16429 | - ;; |
| 16430 | - |
| 16431 | - F77) |
| 16432 | - if test -n "$F77" && test "X$F77" != "Xno"; then |
| 16433 | - AC_LIBTOOL_LANG_F77_CONFIG |
| 16434 | - else |
| 16435 | - tagname="" |
| 16436 | - fi |
| 16437 | - ;; |
| 16438 | - |
| 16439 | - GCJ) |
| 16440 | - if test -n "$GCJ" && test "X$GCJ" != "Xno"; then |
| 16441 | - AC_LIBTOOL_LANG_GCJ_CONFIG |
| 16442 | - else |
| 16443 | - tagname="" |
| 16444 | - fi |
| 16445 | - ;; |
| 16446 | - |
| 16447 | - RC) |
| 16448 | - AC_LIBTOOL_LANG_RC_CONFIG |
| 16449 | - ;; |
| 16450 | - |
| 16451 | - *) |
| 16452 | - AC_MSG_ERROR([Unsupported tag name: $tagname]) |
| 16453 | - ;; |
| 16454 | - esac |
| 16455 | + CPPFLAGS="$save_CPPFLAGS" |
| 16456 | + LDFLAGS="$save_LDFLAGS" |
| 16457 | + LIBS="$save_LIBS" |
| 16458 | + ;; |
| 16459 | + esac |
| 16460 | |
| 16461 | - # Append the new tag name to the list of available tags. |
| 16462 | - if test -n "$tagname" ; then |
| 16463 | - available_tags="$available_tags $tagname" |
| 16464 | - fi |
| 16465 | - fi |
| 16466 | - done |
| 16467 | - IFS="$lt_save_ifs" |
| 16468 | + case $lt_cv_dlopen_self in |
| 16469 | + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 16470 | + *) enable_dlopen_self=unknown ;; |
| 16471 | + esac |
| 16472 | |
| 16473 | - # Now substitute the updated list of available tags. |
| 16474 | - if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then |
| 16475 | - mv "${ofile}T" "$ofile" |
| 16476 | - chmod +x "$ofile" |
| 16477 | - else |
| 16478 | - rm -f "${ofile}T" |
| 16479 | - AC_MSG_ERROR([unable to update list of available tagged configurations.]) |
| 16480 | - fi |
| 16481 | + case $lt_cv_dlopen_self_static in |
| 16482 | + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 16483 | + *) enable_dlopen_self_static=unknown ;; |
| 16484 | + esac |
| 16485 | fi |
| 16486 | -])# _LT_AC_TAGCONFIG |
| 16487 | +_LT_DECL([dlopen_support], [enable_dlopen], [0], |
| 16488 | + [Whether dlopen is supported]) |
| 16489 | +_LT_DECL([dlopen_self], [enable_dlopen_self], [0], |
| 16490 | + [Whether dlopen of programs is supported]) |
| 16491 | +_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0], |
| 16492 | + [Whether dlopen of statically linked programs is supported]) |
| 16493 | +])# LT_SYS_DLOPEN_SELF |
| 16494 | + |
| 16495 | +# Old name: |
| 16496 | +AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF]) |
| 16497 | +dnl aclocal-1.4 backwards compatibility: |
| 16498 | +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], []) |
| 16499 | |
| 16500 | |
| 16501 | -# AC_LIBTOOL_DLOPEN |
| 16502 | -# ----------------- |
| 16503 | -# enable checks for dlopen support |
| 16504 | -AC_DEFUN([AC_LIBTOOL_DLOPEN], |
| 16505 | - [AC_BEFORE([$0],[AC_LIBTOOL_SETUP]) |
| 16506 | -])# AC_LIBTOOL_DLOPEN |
| 16507 | +# _LT_COMPILER_C_O([TAGNAME]) |
| 16508 | +# --------------------------- |
| 16509 | +# Check to see if options -c and -o are simultaneously supported by compiler. |
| 16510 | +# This macro does not hard code the compiler like AC_PROG_CC_C_O. |
| 16511 | +m4_defun([_LT_COMPILER_C_O], |
| 16512 | +[m4_require([_LT_DECL_SED])dnl |
| 16513 | +m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
| 16514 | +m4_require([_LT_TAG_COMPILER])dnl |
| 16515 | +AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], |
| 16516 | + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)], |
| 16517 | + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no |
| 16518 | + $RM -r conftest 2>/dev/null |
| 16519 | + mkdir conftest |
| 16520 | + cd conftest |
| 16521 | + mkdir out |
| 16522 | + echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 16523 | |
| 16524 | + lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 16525 | + # Insert the option either (1) after the last *FLAGS variable, or |
| 16526 | + # (2) before a word containing "conftest.", or (3) at the end. |
| 16527 | + # Note that $ac_compile itself does not contain backslashes and begins |
| 16528 | + # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 16529 | + lt_compile=`echo "$ac_compile" | $SED \ |
| 16530 | + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 16531 | + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ |
| 16532 | + -e 's:$: $lt_compiler_flag:'` |
| 16533 | + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) |
| 16534 | + (eval "$lt_compile" 2>out/conftest.err) |
| 16535 | + ac_status=$? |
| 16536 | + cat out/conftest.err >&AS_MESSAGE_LOG_FD |
| 16537 | + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD |
| 16538 | + if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 16539 | + then |
| 16540 | + # The compiler can only warn and ignore the option if not recognized |
| 16541 | + # So say no if there are warnings |
| 16542 | + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 16543 | + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 16544 | + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 16545 | + _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes |
| 16546 | + fi |
| 16547 | + fi |
| 16548 | + chmod u+w . 2>&AS_MESSAGE_LOG_FD |
| 16549 | + $RM conftest* |
| 16550 | + # SGI C++ compiler will create directory out/ii_files/ for |
| 16551 | + # template instantiation |
| 16552 | + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 16553 | + $RM out/* && rmdir out |
| 16554 | + cd .. |
| 16555 | + $RM -r conftest |
| 16556 | + $RM conftest* |
| 16557 | +]) |
| 16558 | +_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1], |
| 16559 | + [Does compiler simultaneously support -c and -o options?]) |
| 16560 | +])# _LT_COMPILER_C_O |
| 16561 | |
| 16562 | -# AC_LIBTOOL_WIN32_DLL |
| 16563 | -# -------------------- |
| 16564 | -# declare package support for building win32 DLLs |
| 16565 | -AC_DEFUN([AC_LIBTOOL_WIN32_DLL], |
| 16566 | -[AC_BEFORE([$0], [AC_LIBTOOL_SETUP]) |
| 16567 | -])# AC_LIBTOOL_WIN32_DLL |
| 16568 | |
| 16569 | +# _LT_COMPILER_FILE_LOCKS([TAGNAME]) |
| 16570 | +# ---------------------------------- |
| 16571 | +# Check to see if we can do hard links to lock some files if needed |
| 16572 | +m4_defun([_LT_COMPILER_FILE_LOCKS], |
| 16573 | +[m4_require([_LT_ENABLE_LOCK])dnl |
| 16574 | +m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
| 16575 | +_LT_COMPILER_C_O([$1]) |
| 16576 | |
| 16577 | -# AC_ENABLE_SHARED([DEFAULT]) |
| 16578 | -# --------------------------- |
| 16579 | -# implement the --enable-shared flag |
| 16580 | -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. |
| 16581 | -AC_DEFUN([AC_ENABLE_SHARED], |
| 16582 | -[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl |
| 16583 | -AC_ARG_ENABLE([shared], |
| 16584 | - [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@], |
| 16585 | - [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])], |
| 16586 | - [p=${PACKAGE-default} |
| 16587 | - case $enableval in |
| 16588 | - yes) enable_shared=yes ;; |
| 16589 | - no) enable_shared=no ;; |
| 16590 | - *) |
| 16591 | - enable_shared=no |
| 16592 | - # Look at the argument we got. We use all the common list separators. |
| 16593 | - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 16594 | - for pkg in $enableval; do |
| 16595 | - IFS="$lt_save_ifs" |
| 16596 | - if test "X$pkg" = "X$p"; then |
| 16597 | - enable_shared=yes |
| 16598 | - fi |
| 16599 | - done |
| 16600 | - IFS="$lt_save_ifs" |
| 16601 | - ;; |
| 16602 | - esac], |
| 16603 | - [enable_shared=]AC_ENABLE_SHARED_DEFAULT) |
| 16604 | -])# AC_ENABLE_SHARED |
| 16605 | - |
| 16606 | - |
| 16607 | -# AC_DISABLE_SHARED |
| 16608 | -# ----------------- |
| 16609 | -# set the default shared flag to --disable-shared |
| 16610 | -AC_DEFUN([AC_DISABLE_SHARED], |
| 16611 | -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl |
| 16612 | -AC_ENABLE_SHARED(no) |
| 16613 | -])# AC_DISABLE_SHARED |
| 16614 | - |
| 16615 | - |
| 16616 | -# AC_ENABLE_STATIC([DEFAULT]) |
| 16617 | -# --------------------------- |
| 16618 | -# implement the --enable-static flag |
| 16619 | -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. |
| 16620 | -AC_DEFUN([AC_ENABLE_STATIC], |
| 16621 | -[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl |
| 16622 | -AC_ARG_ENABLE([static], |
| 16623 | - [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@], |
| 16624 | - [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])], |
| 16625 | - [p=${PACKAGE-default} |
| 16626 | - case $enableval in |
| 16627 | - yes) enable_static=yes ;; |
| 16628 | - no) enable_static=no ;; |
| 16629 | - *) |
| 16630 | - enable_static=no |
| 16631 | - # Look at the argument we got. We use all the common list separators. |
| 16632 | - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 16633 | - for pkg in $enableval; do |
| 16634 | - IFS="$lt_save_ifs" |
| 16635 | - if test "X$pkg" = "X$p"; then |
| 16636 | - enable_static=yes |
| 16637 | - fi |
| 16638 | - done |
| 16639 | - IFS="$lt_save_ifs" |
| 16640 | - ;; |
| 16641 | - esac], |
| 16642 | - [enable_static=]AC_ENABLE_STATIC_DEFAULT) |
| 16643 | -])# AC_ENABLE_STATIC |
| 16644 | - |
| 16645 | - |
| 16646 | -# AC_DISABLE_STATIC |
| 16647 | -# ----------------- |
| 16648 | -# set the default static flag to --disable-static |
| 16649 | -AC_DEFUN([AC_DISABLE_STATIC], |
| 16650 | -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl |
| 16651 | -AC_ENABLE_STATIC(no) |
| 16652 | -])# AC_DISABLE_STATIC |
| 16653 | - |
| 16654 | - |
| 16655 | -# AC_ENABLE_FAST_INSTALL([DEFAULT]) |
| 16656 | -# --------------------------------- |
| 16657 | -# implement the --enable-fast-install flag |
| 16658 | -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. |
| 16659 | -AC_DEFUN([AC_ENABLE_FAST_INSTALL], |
| 16660 | -[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl |
| 16661 | -AC_ARG_ENABLE([fast-install], |
| 16662 | - [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], |
| 16663 | - [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], |
| 16664 | - [p=${PACKAGE-default} |
| 16665 | - case $enableval in |
| 16666 | - yes) enable_fast_install=yes ;; |
| 16667 | - no) enable_fast_install=no ;; |
| 16668 | - *) |
| 16669 | - enable_fast_install=no |
| 16670 | - # Look at the argument we got. We use all the common list separators. |
| 16671 | - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 16672 | - for pkg in $enableval; do |
| 16673 | - IFS="$lt_save_ifs" |
| 16674 | - if test "X$pkg" = "X$p"; then |
| 16675 | - enable_fast_install=yes |
| 16676 | - fi |
| 16677 | - done |
| 16678 | - IFS="$lt_save_ifs" |
| 16679 | - ;; |
| 16680 | - esac], |
| 16681 | - [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT) |
| 16682 | -])# AC_ENABLE_FAST_INSTALL |
| 16683 | - |
| 16684 | - |
| 16685 | -# AC_DISABLE_FAST_INSTALL |
| 16686 | -# ----------------------- |
| 16687 | -# set the default to --disable-fast-install |
| 16688 | -AC_DEFUN([AC_DISABLE_FAST_INSTALL], |
| 16689 | -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl |
| 16690 | -AC_ENABLE_FAST_INSTALL(no) |
| 16691 | -])# AC_DISABLE_FAST_INSTALL |
| 16692 | - |
| 16693 | - |
| 16694 | -# AC_LIBTOOL_PICMODE([MODE]) |
| 16695 | -# -------------------------- |
| 16696 | -# implement the --with-pic flag |
| 16697 | -# MODE is either `yes' or `no'. If omitted, it defaults to `both'. |
| 16698 | -AC_DEFUN([AC_LIBTOOL_PICMODE], |
| 16699 | -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl |
| 16700 | -pic_mode=ifelse($#,1,$1,default) |
| 16701 | -])# AC_LIBTOOL_PICMODE |
| 16702 | - |
| 16703 | - |
| 16704 | -# AC_PROG_EGREP |
| 16705 | -# ------------- |
| 16706 | -# This is predefined starting with Autoconf 2.54, so this conditional |
| 16707 | -# definition can be removed once we require Autoconf 2.54 or later. |
| 16708 | -m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP], |
| 16709 | -[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep], |
| 16710 | - [if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
| 16711 | - then ac_cv_prog_egrep='grep -E' |
| 16712 | - else ac_cv_prog_egrep='egrep' |
| 16713 | - fi]) |
| 16714 | - EGREP=$ac_cv_prog_egrep |
| 16715 | - AC_SUBST([EGREP]) |
| 16716 | -])]) |
| 16717 | - |
| 16718 | - |
| 16719 | -# AC_PATH_TOOL_PREFIX |
| 16720 | -# ------------------- |
| 16721 | -# find a file program which can recognise shared library |
| 16722 | -AC_DEFUN([AC_PATH_TOOL_PREFIX], |
| 16723 | -[AC_REQUIRE([AC_PROG_EGREP])dnl |
| 16724 | -AC_MSG_CHECKING([for $1]) |
| 16725 | -AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, |
| 16726 | -[case $MAGIC_CMD in |
| 16727 | -[[\\/*] | ?:[\\/]*]) |
| 16728 | - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 16729 | - ;; |
| 16730 | -*) |
| 16731 | - lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 16732 | - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 16733 | -dnl $ac_dummy forces splitting on constant user-supplied paths. |
| 16734 | -dnl POSIX.2 word splitting is done only on the output of word expansions, |
| 16735 | -dnl not every word. This closes a longstanding sh security hole. |
| 16736 | - ac_dummy="ifelse([$2], , $PATH, [$2])" |
| 16737 | - for ac_dir in $ac_dummy; do |
| 16738 | - IFS="$lt_save_ifs" |
| 16739 | - test -z "$ac_dir" && ac_dir=. |
| 16740 | - if test -f $ac_dir/$1; then |
| 16741 | - lt_cv_path_MAGIC_CMD="$ac_dir/$1" |
| 16742 | - if test -n "$file_magic_test_file"; then |
| 16743 | - case $deplibs_check_method in |
| 16744 | - "file_magic "*) |
| 16745 | - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
| 16746 | - MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 16747 | - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 16748 | - $EGREP "$file_magic_regex" > /dev/null; then |
| 16749 | - : |
| 16750 | - else |
| 16751 | - cat <<EOF 1>&2 |
| 16752 | +hard_links="nottested" |
| 16753 | +if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then |
| 16754 | + # do not overwrite the value of need_locks provided by the user |
| 16755 | + AC_MSG_CHECKING([if we can lock with hard links]) |
| 16756 | + hard_links=yes |
| 16757 | + $RM conftest* |
| 16758 | + ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 16759 | + touch conftest.a |
| 16760 | + ln conftest.a conftest.b 2>&5 || hard_links=no |
| 16761 | + ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 16762 | + AC_MSG_RESULT([$hard_links]) |
| 16763 | + if test "$hard_links" = no; then |
| 16764 | + AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) |
| 16765 | + need_locks=warn |
| 16766 | + fi |
| 16767 | +else |
| 16768 | + need_locks=no |
| 16769 | +fi |
| 16770 | +_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?]) |
| 16771 | +])# _LT_COMPILER_FILE_LOCKS |
| 16772 | |
| 16773 | -*** Warning: the command libtool uses to detect shared libraries, |
| 16774 | -*** $file_magic_cmd, produces output that libtool cannot recognize. |
| 16775 | -*** The result is that libtool may fail to recognize shared libraries |
| 16776 | -*** as such. This will affect the creation of libtool libraries that |
| 16777 | -*** depend on shared libraries, but programs linked with such libtool |
| 16778 | -*** libraries will work regardless of this problem. Nevertheless, you |
| 16779 | -*** may want to report the problem to your system manager and/or to |
| 16780 | -*** bug-libtool@gnu.org |
| 16781 | |
| 16782 | -EOF |
| 16783 | - fi ;; |
| 16784 | - esac |
| 16785 | - fi |
| 16786 | - break |
| 16787 | - fi |
| 16788 | - done |
| 16789 | - IFS="$lt_save_ifs" |
| 16790 | - MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 16791 | - ;; |
| 16792 | -esac]) |
| 16793 | -MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 16794 | -if test -n "$MAGIC_CMD"; then |
| 16795 | - AC_MSG_RESULT($MAGIC_CMD) |
| 16796 | +# _LT_CHECK_OBJDIR |
| 16797 | +# ---------------- |
| 16798 | +m4_defun([_LT_CHECK_OBJDIR], |
| 16799 | +[AC_CACHE_CHECK([for objdir], [lt_cv_objdir], |
| 16800 | +[rm -f .libs 2>/dev/null |
| 16801 | +mkdir .libs 2>/dev/null |
| 16802 | +if test -d .libs; then |
| 16803 | + lt_cv_objdir=.libs |
| 16804 | else |
| 16805 | - AC_MSG_RESULT(no) |
| 16806 | + # MS-DOS does not allow filenames that begin with a dot. |
| 16807 | + lt_cv_objdir=_libs |
| 16808 | fi |
| 16809 | -])# AC_PATH_TOOL_PREFIX |
| 16810 | +rmdir .libs 2>/dev/null]) |
| 16811 | +objdir=$lt_cv_objdir |
| 16812 | +_LT_DECL([], [objdir], [0], |
| 16813 | + [The name of the directory that contains temporary libtool files])dnl |
| 16814 | +m4_pattern_allow([LT_OBJDIR])dnl |
| 16815 | +AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/", |
| 16816 | + [Define to the sub-directory in which libtool stores uninstalled libraries.]) |
| 16817 | +])# _LT_CHECK_OBJDIR |
| 16818 | |
| 16819 | |
| 16820 | -# AC_PATH_MAGIC |
| 16821 | -# ------------- |
| 16822 | -# find a file program which can recognise a shared library |
| 16823 | -AC_DEFUN([AC_PATH_MAGIC], |
| 16824 | -[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) |
| 16825 | -if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 16826 | - if test -n "$ac_tool_prefix"; then |
| 16827 | - AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) |
| 16828 | +# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME]) |
| 16829 | +# -------------------------------------- |
| 16830 | +# Check hardcoding attributes. |
| 16831 | +m4_defun([_LT_LINKER_HARDCODE_LIBPATH], |
| 16832 | +[AC_MSG_CHECKING([how to hardcode library paths into programs]) |
| 16833 | +_LT_TAGVAR(hardcode_action, $1)= |
| 16834 | +if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" || |
| 16835 | + test -n "$_LT_TAGVAR(runpath_var, $1)" || |
| 16836 | + test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then |
| 16837 | + |
| 16838 | + # We can hardcode non-existent directories. |
| 16839 | + if test "$_LT_TAGVAR(hardcode_direct, $1)" != no && |
| 16840 | + # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 16841 | + # have to relink, otherwise we might link with an installed library |
| 16842 | + # when we should be linking with a yet-to-be-installed one |
| 16843 | + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no && |
| 16844 | + test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then |
| 16845 | + # Linking always hardcodes the temporary library directory. |
| 16846 | + _LT_TAGVAR(hardcode_action, $1)=relink |
| 16847 | else |
| 16848 | - MAGIC_CMD=: |
| 16849 | + # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 16850 | + _LT_TAGVAR(hardcode_action, $1)=immediate |
| 16851 | fi |
| 16852 | +else |
| 16853 | + # We cannot hardcode anything, or else we can only hardcode existing |
| 16854 | + # directories. |
| 16855 | + _LT_TAGVAR(hardcode_action, $1)=unsupported |
| 16856 | +fi |
| 16857 | +AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)]) |
| 16858 | + |
| 16859 | +if test "$_LT_TAGVAR(hardcode_action, $1)" = relink || |
| 16860 | + test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then |
| 16861 | + # Fast installation is not supported |
| 16862 | + enable_fast_install=no |
| 16863 | +elif test "$shlibpath_overrides_runpath" = yes || |
| 16864 | + test "$enable_shared" = no; then |
| 16865 | + # Fast installation is not necessary |
| 16866 | + enable_fast_install=needless |
| 16867 | fi |
| 16868 | -])# AC_PATH_MAGIC |
| 16869 | +_LT_TAGDECL([], [hardcode_action], [0], |
| 16870 | + [How to hardcode a shared library path into an executable]) |
| 16871 | +])# _LT_LINKER_HARDCODE_LIBPATH |
| 16872 | |
| 16873 | |
| 16874 | -# AC_PROG_LD |
| 16875 | -# ---------- |
| 16876 | -# find the pathname to the GNU or non-GNU linker |
| 16877 | -AC_DEFUN([AC_PROG_LD], |
| 16878 | -[AC_ARG_WITH([gnu-ld], |
| 16879 | - [AC_HELP_STRING([--with-gnu-ld], |
| 16880 | - [assume the C compiler uses GNU ld @<:@default=no@:>@])], |
| 16881 | - [test "$withval" = no || with_gnu_ld=yes], |
| 16882 | - [with_gnu_ld=no]) |
| 16883 | -AC_REQUIRE([LT_AC_PROG_SED])dnl |
| 16884 | -AC_REQUIRE([AC_PROG_CC])dnl |
| 16885 | -AC_REQUIRE([AC_CANONICAL_HOST])dnl |
| 16886 | -AC_REQUIRE([AC_CANONICAL_BUILD])dnl |
| 16887 | -ac_prog=ld |
| 16888 | -if test "$GCC" = yes; then |
| 16889 | - # Check if gcc -print-prog-name=ld gives a path. |
| 16890 | - AC_MSG_CHECKING([for ld used by $CC]) |
| 16891 | - case $host in |
| 16892 | - *-*-mingw*) |
| 16893 | - # gcc leaves a trailing carriage return which upsets mingw |
| 16894 | - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 16895 | - *) |
| 16896 | - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 16897 | - esac |
| 16898 | - case $ac_prog in |
| 16899 | - # Accept absolute paths. |
| 16900 | - [[\\/]]* | ?:[[\\/]]*) |
| 16901 | - re_direlt='/[[^/]][[^/]]*/\.\./' |
| 16902 | - # Canonicalize the pathname of ld |
| 16903 | - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
| 16904 | - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 16905 | - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
| 16906 | - done |
| 16907 | - test -z "$LD" && LD="$ac_prog" |
| 16908 | - ;; |
| 16909 | - "") |
| 16910 | - # If it fails, then pretend we aren't using GCC. |
| 16911 | - ac_prog=ld |
| 16912 | +# _LT_CMD_STRIPLIB |
| 16913 | +# ---------------- |
| 16914 | +m4_defun([_LT_CMD_STRIPLIB], |
| 16915 | +[m4_require([_LT_DECL_EGREP]) |
| 16916 | +striplib= |
| 16917 | +old_striplib= |
| 16918 | +AC_MSG_CHECKING([whether stripping libraries is possible]) |
| 16919 | +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
| 16920 | + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 16921 | + test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 16922 | + AC_MSG_RESULT([yes]) |
| 16923 | +else |
| 16924 | +# FIXME - insert some real tests, host_os isn't really good enough |
| 16925 | + case $host_os in |
| 16926 | + darwin*) |
| 16927 | + if test -n "$STRIP" ; then |
| 16928 | + striplib="$STRIP -x" |
| 16929 | + old_striplib="$STRIP -S" |
| 16930 | + AC_MSG_RESULT([yes]) |
| 16931 | + else |
| 16932 | + AC_MSG_RESULT([no]) |
| 16933 | + fi |
| 16934 | ;; |
| 16935 | *) |
| 16936 | - # If it is relative, then search for the first ld in PATH. |
| 16937 | - with_gnu_ld=unknown |
| 16938 | + AC_MSG_RESULT([no]) |
| 16939 | ;; |
| 16940 | esac |
| 16941 | -elif test "$with_gnu_ld" = yes; then |
| 16942 | - AC_MSG_CHECKING([for GNU ld]) |
| 16943 | -else |
| 16944 | - AC_MSG_CHECKING([for non-GNU ld]) |
| 16945 | fi |
| 16946 | -AC_CACHE_VAL(lt_cv_path_LD, |
| 16947 | -[if test -z "$LD"; then |
| 16948 | - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 16949 | - for ac_dir in $PATH; do |
| 16950 | - IFS="$lt_save_ifs" |
| 16951 | - test -z "$ac_dir" && ac_dir=. |
| 16952 | - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 16953 | - lt_cv_path_LD="$ac_dir/$ac_prog" |
| 16954 | - # Check to see if the program is GNU ld. I'd rather use --version, |
| 16955 | - # but apparently some variants of GNU ld only accept -v. |
| 16956 | - # Break only if it was the GNU/non-GNU ld that we prefer. |
| 16957 | - case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 16958 | - *GNU* | *'with BFD'*) |
| 16959 | - test "$with_gnu_ld" != no && break |
| 16960 | - ;; |
| 16961 | - *) |
| 16962 | - test "$with_gnu_ld" != yes && break |
| 16963 | - ;; |
| 16964 | - esac |
| 16965 | +_LT_DECL([], [old_striplib], [1], [Commands to strip libraries]) |
| 16966 | +_LT_DECL([], [striplib], [1]) |
| 16967 | +])# _LT_CMD_STRIPLIB |
| 16968 | + |
| 16969 | + |
| 16970 | +# _LT_SYS_DYNAMIC_LINKER([TAG]) |
| 16971 | +# ----------------------------- |
| 16972 | +# PORTME Fill in your ld.so characteristics |
| 16973 | +m4_defun([_LT_SYS_DYNAMIC_LINKER], |
| 16974 | +[AC_REQUIRE([AC_CANONICAL_HOST])dnl |
| 16975 | +m4_require([_LT_DECL_EGREP])dnl |
| 16976 | +m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
| 16977 | +m4_require([_LT_DECL_SED])dnl |
| 16978 | +AC_MSG_CHECKING([dynamic linker characteristics]) |
| 16979 | +m4_if([$1], |
| 16980 | + [], [ |
| 16981 | +if test "$GCC" = yes; then |
| 16982 | + case $host_os in |
| 16983 | + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; |
| 16984 | + *) lt_awk_arg="/^libraries:/" ;; |
| 16985 | + esac |
| 16986 | + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 16987 | + if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then |
| 16988 | + # if the path contains ";" then we assume it to be the separator |
| 16989 | + # otherwise default to the standard path separator (i.e. ":") - it is |
| 16990 | + # assumed that no part of a normal pathname contains ";" but that should |
| 16991 | + # okay in the real world where ";" in dirpaths is itself problematic. |
| 16992 | + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` |
| 16993 | + else |
| 16994 | + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 16995 | + fi |
| 16996 | + # Ok, now we have the path, separated by spaces, we can step through it |
| 16997 | + # and add multilib dir if necessary. |
| 16998 | + lt_tmp_lt_search_path_spec= |
| 16999 | + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
| 17000 | + for lt_sys_path in $lt_search_path_spec; do |
| 17001 | + if test -d "$lt_sys_path/$lt_multi_os_dir"; then |
| 17002 | + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" |
| 17003 | + else |
| 17004 | + test -d "$lt_sys_path" && \ |
| 17005 | + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
| 17006 | fi |
| 17007 | done |
| 17008 | - IFS="$lt_save_ifs" |
| 17009 | + lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' |
| 17010 | +BEGIN {RS=" "; FS="/|\n";} { |
| 17011 | + lt_foo=""; |
| 17012 | + lt_count=0; |
| 17013 | + for (lt_i = NF; lt_i > 0; lt_i--) { |
| 17014 | + if ($lt_i != "" && $lt_i != ".") { |
| 17015 | + if ($lt_i == "..") { |
| 17016 | + lt_count++; |
| 17017 | + } else { |
| 17018 | + if (lt_count == 0) { |
| 17019 | + lt_foo="/" $lt_i lt_foo; |
| 17020 | + } else { |
| 17021 | + lt_count--; |
| 17022 | + } |
| 17023 | + } |
| 17024 | + } |
| 17025 | + } |
| 17026 | + if (lt_foo != "") { lt_freq[[lt_foo]]++; } |
| 17027 | + if (lt_freq[[lt_foo]] == 1) { print lt_foo; } |
| 17028 | +}'` |
| 17029 | + sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` |
| 17030 | else |
| 17031 | - lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 17032 | + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 17033 | fi]) |
| 17034 | -LD="$lt_cv_path_LD" |
| 17035 | -if test -n "$LD"; then |
| 17036 | - AC_MSG_RESULT($LD) |
| 17037 | -else |
| 17038 | - AC_MSG_RESULT(no) |
| 17039 | -fi |
| 17040 | -test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) |
| 17041 | -AC_PROG_LD_GNU |
| 17042 | -])# AC_PROG_LD |
| 17043 | +library_names_spec= |
| 17044 | +libname_spec='lib$name' |
| 17045 | +soname_spec= |
| 17046 | +shrext_cmds=".so" |
| 17047 | +postinstall_cmds= |
| 17048 | +postuninstall_cmds= |
| 17049 | +finish_cmds= |
| 17050 | +finish_eval= |
| 17051 | +shlibpath_var= |
| 17052 | +shlibpath_overrides_runpath=unknown |
| 17053 | +version_type=none |
| 17054 | +dynamic_linker="$host_os ld.so" |
| 17055 | +sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 17056 | +need_lib_prefix=unknown |
| 17057 | +hardcode_into_libs=no |
| 17058 | + |
| 17059 | +# when you set need_version to no, make sure it does not cause -set_version |
| 17060 | +# flags to be left without arguments |
| 17061 | +need_version=unknown |
| 17062 | |
| 17063 | +case $host_os in |
| 17064 | +aix3*) |
| 17065 | + version_type=linux |
| 17066 | + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 17067 | + shlibpath_var=LIBPATH |
| 17068 | |
| 17069 | -# AC_PROG_LD_GNU |
| 17070 | -# -------------- |
| 17071 | -AC_DEFUN([AC_PROG_LD_GNU], |
| 17072 | -[AC_REQUIRE([AC_PROG_EGREP])dnl |
| 17073 | -AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, |
| 17074 | -[# I'd rather use --version here, but apparently some GNU lds only accept -v. |
| 17075 | -case `$LD -v 2>&1 </dev/null` in |
| 17076 | -*GNU* | *'with BFD'*) |
| 17077 | - lt_cv_prog_gnu_ld=yes |
| 17078 | + # AIX 3 has no versioning support, so we append a major version to the name. |
| 17079 | + soname_spec='${libname}${release}${shared_ext}$major' |
| 17080 | ;; |
| 17081 | -*) |
| 17082 | - lt_cv_prog_gnu_ld=no |
| 17083 | - ;; |
| 17084 | -esac]) |
| 17085 | -with_gnu_ld=$lt_cv_prog_gnu_ld |
| 17086 | -])# AC_PROG_LD_GNU |
| 17087 | - |
| 17088 | |
| 17089 | -# AC_PROG_LD_RELOAD_FLAG |
| 17090 | -# ---------------------- |
| 17091 | -# find reload flag for linker |
| 17092 | -# -- PORTME Some linkers may need a different reload flag. |
| 17093 | -AC_DEFUN([AC_PROG_LD_RELOAD_FLAG], |
| 17094 | -[AC_CACHE_CHECK([for $LD option to reload object files], |
| 17095 | - lt_cv_ld_reload_flag, |
| 17096 | - [lt_cv_ld_reload_flag='-r']) |
| 17097 | -reload_flag=$lt_cv_ld_reload_flag |
| 17098 | -case $reload_flag in |
| 17099 | -"" | " "*) ;; |
| 17100 | -*) reload_flag=" $reload_flag" ;; |
| 17101 | -esac |
| 17102 | -reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 17103 | -case $host_os in |
| 17104 | - darwin*) |
| 17105 | - if test "$GCC" = yes; then |
| 17106 | - reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
| 17107 | +aix[[4-9]]*) |
| 17108 | + version_type=linux |
| 17109 | + need_lib_prefix=no |
| 17110 | + need_version=no |
| 17111 | + hardcode_into_libs=yes |
| 17112 | + if test "$host_cpu" = ia64; then |
| 17113 | + # AIX 5 supports IA64 |
| 17114 | + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 17115 | + shlibpath_var=LD_LIBRARY_PATH |
| 17116 | + else |
| 17117 | + # With GCC up to 2.95.x, collect2 would create an import file |
| 17118 | + # for dependence libraries. The import file would start with |
| 17119 | + # the line `#! .'. This would cause the generated library to |
| 17120 | + # depend on `.', always an invalid library. This was fixed in |
| 17121 | + # development snapshots of GCC prior to 3.0. |
| 17122 | + case $host_os in |
| 17123 | + aix4 | aix4.[[01]] | aix4.[[01]].*) |
| 17124 | + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 17125 | + echo ' yes ' |
| 17126 | + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then |
| 17127 | + : |
| 17128 | + else |
| 17129 | + can_build_shared=no |
| 17130 | + fi |
| 17131 | + ;; |
| 17132 | + esac |
| 17133 | + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 17134 | + # soname into executable. Probably we can add versioning support to |
| 17135 | + # collect2, so additional links can be useful in future. |
| 17136 | + if test "$aix_use_runtimelinking" = yes; then |
| 17137 | + # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 17138 | + # instead of lib<name>.a to let people know that these are not |
| 17139 | + # typical AIX shared libraries. |
| 17140 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17141 | else |
| 17142 | - reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 17143 | + # We preserve .a as extension for shared libraries through AIX4.2 |
| 17144 | + # and later when we are not doing run time linking. |
| 17145 | + library_names_spec='${libname}${release}.a $libname.a' |
| 17146 | + soname_spec='${libname}${release}${shared_ext}$major' |
| 17147 | fi |
| 17148 | - ;; |
| 17149 | -esac |
| 17150 | -])# AC_PROG_LD_RELOAD_FLAG |
| 17151 | - |
| 17152 | - |
| 17153 | -# AC_DEPLIBS_CHECK_METHOD |
| 17154 | -# ----------------------- |
| 17155 | -# how to check for library dependencies |
| 17156 | -# -- PORTME fill in with the dynamic library characteristics |
| 17157 | -AC_DEFUN([AC_DEPLIBS_CHECK_METHOD], |
| 17158 | -[AC_CACHE_CHECK([how to recognise dependent libraries], |
| 17159 | -lt_cv_deplibs_check_method, |
| 17160 | -[lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 17161 | -lt_cv_file_magic_test_file= |
| 17162 | -lt_cv_deplibs_check_method='unknown' |
| 17163 | -# Need to set the preceding variable on all platforms that support |
| 17164 | -# interlibrary dependencies. |
| 17165 | -# 'none' -- dependencies not supported. |
| 17166 | -# `unknown' -- same as none, but documents that we really don't know. |
| 17167 | -# 'pass_all' -- all dependencies passed with no checks. |
| 17168 | -# 'test_compile' -- check by making test program. |
| 17169 | -# 'file_magic [[regex]]' -- check by looking for files in library path |
| 17170 | -# which responds to the $file_magic_cmd with a given extended regex. |
| 17171 | -# If you have `file' or equivalent on your system and you're not sure |
| 17172 | -# whether `pass_all' will *always* work, you probably want this one. |
| 17173 | + shlibpath_var=LIBPATH |
| 17174 | + fi |
| 17175 | + ;; |
| 17176 | |
| 17177 | -case $host_os in |
| 17178 | -aix4* | aix5*) |
| 17179 | - lt_cv_deplibs_check_method=pass_all |
| 17180 | +amigaos*) |
| 17181 | + case $host_cpu in |
| 17182 | + powerpc) |
| 17183 | + # Since July 2007 AmigaOS4 officially supports .so libraries. |
| 17184 | + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
| 17185 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17186 | + ;; |
| 17187 | + m68k) |
| 17188 | + library_names_spec='$libname.ixlibrary $libname.a' |
| 17189 | + # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 17190 | + 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' |
| 17191 | + ;; |
| 17192 | + esac |
| 17193 | ;; |
| 17194 | |
| 17195 | beos*) |
| 17196 | - lt_cv_deplibs_check_method=pass_all |
| 17197 | + library_names_spec='${libname}${shared_ext}' |
| 17198 | + dynamic_linker="$host_os ld.so" |
| 17199 | + shlibpath_var=LIBRARY_PATH |
| 17200 | ;; |
| 17201 | |
| 17202 | bsdi[[45]]*) |
| 17203 | - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' |
| 17204 | - lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 17205 | - lt_cv_file_magic_test_file=/shlib/libc.so |
| 17206 | - ;; |
| 17207 | - |
| 17208 | -cygwin*) |
| 17209 | - # func_win32_libid is a shell function defined in ltmain.sh |
| 17210 | - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 17211 | - lt_cv_file_magic_cmd='func_win32_libid' |
| 17212 | + version_type=linux |
| 17213 | + need_version=no |
| 17214 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17215 | + soname_spec='${libname}${release}${shared_ext}$major' |
| 17216 | + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 17217 | + shlibpath_var=LD_LIBRARY_PATH |
| 17218 | + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 17219 | + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 17220 | + # the default ld.so.conf also contains /usr/contrib/lib and |
| 17221 | + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 17222 | + # libtool to hard-code these into programs |
| 17223 | ;; |
| 17224 | |
| 17225 | -mingw* | pw32*) |
| 17226 | - # Base MSYS/MinGW do not provide the 'file' command needed by |
| 17227 | - # func_win32_libid shell function, so use a weaker test based on 'objdump'. |
| 17228 | - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
| 17229 | - lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 17230 | - ;; |
| 17231 | +cygwin* | mingw* | pw32*) |
| 17232 | + version_type=windows |
| 17233 | + shrext_cmds=".dll" |
| 17234 | + need_version=no |
| 17235 | + need_lib_prefix=no |
| 17236 | |
| 17237 | -darwin* | rhapsody*) |
| 17238 | - lt_cv_deplibs_check_method=pass_all |
| 17239 | - ;; |
| 17240 | + case $GCC,$host_os in |
| 17241 | + yes,cygwin* | yes,mingw* | yes,pw32*) |
| 17242 | + library_names_spec='$libname.dll.a' |
| 17243 | + # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 17244 | + postinstall_cmds='base_file=`basename \${file}`~ |
| 17245 | + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
| 17246 | + dldir=$destdir/`dirname \$dlpath`~ |
| 17247 | + test -d \$dldir || mkdir -p \$dldir~ |
| 17248 | + $install_prog $dir/$dlname \$dldir/$dlname~ |
| 17249 | + chmod a+x \$dldir/$dlname~ |
| 17250 | + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
| 17251 | + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
| 17252 | + fi' |
| 17253 | + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 17254 | + dlpath=$dir/\$dldll~ |
| 17255 | + $RM \$dlpath' |
| 17256 | + shlibpath_overrides_runpath=yes |
| 17257 | |
| 17258 | -freebsd* | kfreebsd*-gnu | dragonfly*) |
| 17259 | - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 17260 | - case $host_cpu in |
| 17261 | - i*86 ) |
| 17262 | - # Not sure whether the presence of OpenBSD here was a mistake. |
| 17263 | - # Let's accept both of them until this is cleared up. |
| 17264 | - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' |
| 17265 | - lt_cv_file_magic_cmd=/usr/bin/file |
| 17266 | - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 17267 | + case $host_os in |
| 17268 | + cygwin*) |
| 17269 | + # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 17270 | + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' |
| 17271 | + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 17272 | + ;; |
| 17273 | + mingw*) |
| 17274 | + # MinGW DLLs use traditional 'lib' prefix |
| 17275 | + soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' |
| 17276 | + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 17277 | + if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then |
| 17278 | + # It is most probably a Windows format PATH printed by |
| 17279 | + # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 17280 | + # path with ; separators, and with drive letters. We can handle the |
| 17281 | + # drive letters (cygwin fileutils understands them), so leave them, |
| 17282 | + # especially as we might pass files found there to a mingw objdump, |
| 17283 | + # which wouldn't understand a cygwinified path. Ahh. |
| 17284 | + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 17285 | + else |
| 17286 | + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 17287 | + fi |
| 17288 | + ;; |
| 17289 | + pw32*) |
| 17290 | + # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 17291 | + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' |
| 17292 | ;; |
| 17293 | esac |
| 17294 | - else |
| 17295 | - lt_cv_deplibs_check_method=pass_all |
| 17296 | - fi |
| 17297 | - ;; |
| 17298 | - |
| 17299 | -gnu*) |
| 17300 | - lt_cv_deplibs_check_method=pass_all |
| 17301 | - ;; |
| 17302 | - |
| 17303 | -hpux10.20* | hpux11*) |
| 17304 | - lt_cv_file_magic_cmd=/usr/bin/file |
| 17305 | - case $host_cpu in |
| 17306 | - ia64*) |
| 17307 | - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' |
| 17308 | - lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 17309 | - ;; |
| 17310 | - hppa*64*) |
| 17311 | - [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'] |
| 17312 | - lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 17313 | ;; |
| 17314 | + |
| 17315 | *) |
| 17316 | - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' |
| 17317 | - lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 17318 | + library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 17319 | ;; |
| 17320 | esac |
| 17321 | + dynamic_linker='Win32 ld.exe' |
| 17322 | + # FIXME: first we should search . and the directory the executable is in |
| 17323 | + shlibpath_var=PATH |
| 17324 | ;; |
| 17325 | |
| 17326 | -interix3*) |
| 17327 | - # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
| 17328 | - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' |
| 17329 | - ;; |
| 17330 | - |
| 17331 | -irix5* | irix6* | nonstopux*) |
| 17332 | - case $LD in |
| 17333 | - *-32|*"-32 ") libmagic=32-bit;; |
| 17334 | - *-n32|*"-n32 ") libmagic=N32;; |
| 17335 | - *-64|*"-64 ") libmagic=64-bit;; |
| 17336 | - *) libmagic=never-match;; |
| 17337 | - esac |
| 17338 | - lt_cv_deplibs_check_method=pass_all |
| 17339 | - ;; |
| 17340 | - |
| 17341 | -# This must be Linux ELF. |
| 17342 | -linux*) |
| 17343 | - lt_cv_deplibs_check_method=pass_all |
| 17344 | - ;; |
| 17345 | - |
| 17346 | -netbsd*) |
| 17347 | - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 17348 | - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' |
| 17349 | - else |
| 17350 | - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' |
| 17351 | - fi |
| 17352 | +darwin* | rhapsody*) |
| 17353 | + dynamic_linker="$host_os dyld" |
| 17354 | + version_type=darwin |
| 17355 | + need_lib_prefix=no |
| 17356 | + need_version=no |
| 17357 | + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 17358 | + soname_spec='${libname}${release}${major}$shared_ext' |
| 17359 | + shlibpath_overrides_runpath=yes |
| 17360 | + shlibpath_var=DYLD_LIBRARY_PATH |
| 17361 | + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
| 17362 | +m4_if([$1], [],[ |
| 17363 | + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) |
| 17364 | + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 17365 | ;; |
| 17366 | |
| 17367 | -newos6*) |
| 17368 | - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' |
| 17369 | - lt_cv_file_magic_cmd=/usr/bin/file |
| 17370 | - lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 17371 | +dgux*) |
| 17372 | + version_type=linux |
| 17373 | + need_lib_prefix=no |
| 17374 | + need_version=no |
| 17375 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 17376 | + soname_spec='${libname}${release}${shared_ext}$major' |
| 17377 | + shlibpath_var=LD_LIBRARY_PATH |
| 17378 | ;; |
| 17379 | |
| 17380 | -nto-qnx*) |
| 17381 | - lt_cv_deplibs_check_method=unknown |
| 17382 | +freebsd1*) |
| 17383 | + dynamic_linker=no |
| 17384 | ;; |
| 17385 | |
| 17386 | -openbsd*) |
| 17387 | - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 17388 | - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' |
| 17389 | +freebsd* | dragonfly*) |
| 17390 | + # DragonFly does not have aout. When/if they implement a new |
| 17391 | + # versioning mechanism, adjust this. |
| 17392 | + if test -x /usr/bin/objformat; then |
| 17393 | + objformat=`/usr/bin/objformat` |
| 17394 | else |
| 17395 | - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' |
| 17396 | + case $host_os in |
| 17397 | + freebsd[[123]]*) objformat=aout ;; |
| 17398 | + *) objformat=elf ;; |
| 17399 | + esac |
| 17400 | fi |
| 17401 | - ;; |
| 17402 | - |
| 17403 | -osf3* | osf4* | osf5*) |
| 17404 | - lt_cv_deplibs_check_method=pass_all |
| 17405 | - ;; |
| 17406 | - |
| 17407 | -solaris*) |
| 17408 | - lt_cv_deplibs_check_method=pass_all |
| 17409 | - ;; |
| 17410 | - |
| 17411 | -sysv4 | sysv4.3*) |
| 17412 | - case $host_vendor in |
| 17413 | - motorola) |
| 17414 | - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]' |
| 17415 | - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 17416 | - ;; |
| 17417 | - ncr) |
| 17418 | - lt_cv_deplibs_check_method=pass_all |
| 17419 | - ;; |
| 17420 | - sequent) |
| 17421 | - lt_cv_file_magic_cmd='/bin/file' |
| 17422 | - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' |
| 17423 | + version_type=freebsd-$objformat |
| 17424 | + case $version_type in |
| 17425 | + freebsd-elf*) |
| 17426 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 17427 | + need_version=no |
| 17428 | + need_lib_prefix=no |
| 17429 | + ;; |
| 17430 | + freebsd-*) |
| 17431 | + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 17432 | + need_version=yes |
| 17433 | + ;; |
| 17434 | + esac |
| 17435 | + shlibpath_var=LD_LIBRARY_PATH |
| 17436 | + case $host_os in |
| 17437 | + freebsd2*) |
| 17438 | + shlibpath_overrides_runpath=yes |
| 17439 | ;; |
| 17440 | - sni) |
| 17441 | - lt_cv_file_magic_cmd='/bin/file' |
| 17442 | - lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" |
| 17443 | - lt_cv_file_magic_test_file=/lib/libc.so |
| 17444 | + freebsd3.[[01]]* | freebsdelf3.[[01]]*) |
| 17445 | + shlibpath_overrides_runpath=yes |
| 17446 | + hardcode_into_libs=yes |
| 17447 | ;; |
| 17448 | - siemens) |
| 17449 | - lt_cv_deplibs_check_method=pass_all |
| 17450 | + freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ |
| 17451 | + freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) |
| 17452 | + shlibpath_overrides_runpath=no |
| 17453 | + hardcode_into_libs=yes |
| 17454 | ;; |
| 17455 | - pc) |
| 17456 | - lt_cv_deplibs_check_method=pass_all |
| 17457 | + *) # from 4.6 on, and DragonFly |
| 17458 | + shlibpath_overrides_runpath=yes |
| 17459 | + hardcode_into_libs=yes |
| 17460 | ;; |
| 17461 | esac |
| 17462 | ;; |
| 17463 | |
| 17464 | -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 17465 | - lt_cv_deplibs_check_method=pass_all |
| 17466 | +gnu*) |
| 17467 | + version_type=linux |
| 17468 | + need_lib_prefix=no |
| 17469 | + need_version=no |
| 17470 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 17471 | + soname_spec='${libname}${release}${shared_ext}$major' |
| 17472 | + shlibpath_var=LD_LIBRARY_PATH |
| 17473 | + hardcode_into_libs=yes |
| 17474 | ;; |
| 17475 | -esac |
| 17476 | -]) |
| 17477 | -file_magic_cmd=$lt_cv_file_magic_cmd |
| 17478 | -deplibs_check_method=$lt_cv_deplibs_check_method |
| 17479 | -test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 17480 | -])# AC_DEPLIBS_CHECK_METHOD |
| 17481 | |
| 17482 | - |
| 17483 | -# AC_PROG_NM |
| 17484 | -# ---------- |
| 17485 | -# find the pathname to a BSD-compatible name lister |
| 17486 | -AC_DEFUN([AC_PROG_NM], |
| 17487 | -[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM, |
| 17488 | -[if test -n "$NM"; then |
| 17489 | - # Let the user override the test. |
| 17490 | - lt_cv_path_NM="$NM" |
| 17491 | -else |
| 17492 | - lt_nm_to_check="${ac_tool_prefix}nm" |
| 17493 | - if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 17494 | - lt_nm_to_check="$lt_nm_to_check nm" |
| 17495 | - fi |
| 17496 | - for lt_tmp_nm in $lt_nm_to_check; do |
| 17497 | - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 17498 | - for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 17499 | - IFS="$lt_save_ifs" |
| 17500 | - test -z "$ac_dir" && ac_dir=. |
| 17501 | - tmp_nm="$ac_dir/$lt_tmp_nm" |
| 17502 | - if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 17503 | - # Check to see if the nm accepts a BSD-compat flag. |
| 17504 | - # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 17505 | - # nm: unknown option "B" ignored |
| 17506 | - # Tru64's nm complains that /dev/null is an invalid object file |
| 17507 | - case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 17508 | - */dev/null* | *'Invalid file or object type'*) |
| 17509 | - lt_cv_path_NM="$tmp_nm -B" |
| 17510 | - break |
| 17511 | - ;; |
| 17512 | - *) |
| 17513 | - case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 17514 | - */dev/null*) |
| 17515 | - lt_cv_path_NM="$tmp_nm -p" |
| 17516 | - break |
| 17517 | - ;; |
| 17518 | - *) |
| 17519 | - lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 17520 | - continue # so that we can try to find one that supports BSD flags |
| 17521 | - ;; |
| 17522 | - esac |
| 17523 | - ;; |
| 17524 | - esac |
| 17525 | - fi |
| 17526 | - done |
| 17527 | - IFS="$lt_save_ifs" |
| 17528 | - done |
| 17529 | - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
| 17530 | -fi]) |
| 17531 | -NM="$lt_cv_path_NM" |
| 17532 | -])# AC_PROG_NM |
| 17533 | - |
| 17534 | - |
| 17535 | -# AC_CHECK_LIBM |
| 17536 | -# ------------- |
| 17537 | -# check for math library |
| 17538 | -AC_DEFUN([AC_CHECK_LIBM], |
| 17539 | -[AC_REQUIRE([AC_CANONICAL_HOST])dnl |
| 17540 | -LIBM= |
| 17541 | -case $host in |
| 17542 | -*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) |
| 17543 | - # These system don't have libm, or don't need it |
| 17544 | - ;; |
| 17545 | -*-ncr-sysv4.3*) |
| 17546 | - AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") |
| 17547 | - AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") |
| 17548 | - ;; |
| 17549 | -*) |
| 17550 | - AC_CHECK_LIB(m, cos, LIBM="-lm") |
| 17551 | +hpux9* | hpux10* | hpux11*) |
| 17552 | + # Give a soname corresponding to the major version so that dld.sl refuses to |
| 17553 | + # link against other versions. |
| 17554 | + version_type=sunos |
| 17555 | + need_lib_prefix=no |
| 17556 | + need_version=no |
| 17557 | + case $host_cpu in |
| 17558 | + ia64*) |
| 17559 | + shrext_cmds='.so' |
| 17560 | + hardcode_into_libs=yes |
| 17561 | + dynamic_linker="$host_os dld.so" |
| 17562 | + shlibpath_var=LD_LIBRARY_PATH |
| 17563 | + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 17564 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17565 | + soname_spec='${libname}${release}${shared_ext}$major' |
| 17566 | + if test "X$HPUX_IA64_MODE" = X32; then |
| 17567 | + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 17568 | + else |
| 17569 | + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 17570 | + fi |
| 17571 | + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 17572 | + ;; |
| 17573 | + hppa*64*) |
| 17574 | + shrext_cmds='.sl' |
| 17575 | + hardcode_into_libs=yes |
| 17576 | + dynamic_linker="$host_os dld.sl" |
| 17577 | + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 17578 | + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 17579 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17580 | + soname_spec='${libname}${release}${shared_ext}$major' |
| 17581 | + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 17582 | + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 17583 | + ;; |
| 17584 | + *) |
| 17585 | + shrext_cmds='.sl' |
| 17586 | + dynamic_linker="$host_os dld.sl" |
| 17587 | + shlibpath_var=SHLIB_PATH |
| 17588 | + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 17589 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17590 | + soname_spec='${libname}${release}${shared_ext}$major' |
| 17591 | + ;; |
| 17592 | + esac |
| 17593 | + # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 17594 | + postinstall_cmds='chmod 555 $lib' |
| 17595 | ;; |
| 17596 | -esac |
| 17597 | -])# AC_CHECK_LIBM |
| 17598 | |
| 17599 | +interix[[3-9]]*) |
| 17600 | + version_type=linux |
| 17601 | + need_lib_prefix=no |
| 17602 | + need_version=no |
| 17603 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 17604 | + soname_spec='${libname}${release}${shared_ext}$major' |
| 17605 | + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 17606 | + shlibpath_var=LD_LIBRARY_PATH |
| 17607 | + shlibpath_overrides_runpath=no |
| 17608 | + hardcode_into_libs=yes |
| 17609 | + ;; |
| 17610 | |
| 17611 | -# AC_LIBLTDL_CONVENIENCE([DIRECTORY]) |
| 17612 | -# ----------------------------------- |
| 17613 | -# sets LIBLTDL to the link flags for the libltdl convenience library and |
| 17614 | -# LTDLINCL to the include flags for the libltdl header and adds |
| 17615 | -# --enable-ltdl-convenience to the configure arguments. Note that |
| 17616 | -# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, |
| 17617 | -# it is assumed to be `libltdl'. LIBLTDL will be prefixed with |
| 17618 | -# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/' |
| 17619 | -# (note the single quotes!). If your package is not flat and you're not |
| 17620 | -# using automake, define top_builddir and top_srcdir appropriately in |
| 17621 | -# the Makefiles. |
| 17622 | -AC_DEFUN([AC_LIBLTDL_CONVENIENCE], |
| 17623 | -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl |
| 17624 | - case $enable_ltdl_convenience in |
| 17625 | - no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;; |
| 17626 | - "") enable_ltdl_convenience=yes |
| 17627 | - ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; |
| 17628 | +irix5* | irix6* | nonstopux*) |
| 17629 | + case $host_os in |
| 17630 | + nonstopux*) version_type=nonstopux ;; |
| 17631 | + *) |
| 17632 | + if test "$lt_cv_prog_gnu_ld" = yes; then |
| 17633 | + version_type=linux |
| 17634 | + else |
| 17635 | + version_type=irix |
| 17636 | + fi ;; |
| 17637 | esac |
| 17638 | - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la |
| 17639 | - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) |
| 17640 | - # For backwards non-gettext consistent compatibility... |
| 17641 | - INCLTDL="$LTDLINCL" |
| 17642 | -])# AC_LIBLTDL_CONVENIENCE |
| 17643 | - |
| 17644 | - |
| 17645 | -# AC_LIBLTDL_INSTALLABLE([DIRECTORY]) |
| 17646 | -# ----------------------------------- |
| 17647 | -# sets LIBLTDL to the link flags for the libltdl installable library and |
| 17648 | -# LTDLINCL to the include flags for the libltdl header and adds |
| 17649 | -# --enable-ltdl-install to the configure arguments. Note that |
| 17650 | -# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, |
| 17651 | -# and an installed libltdl is not found, it is assumed to be `libltdl'. |
| 17652 | -# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with |
| 17653 | -# '${top_srcdir}/' (note the single quotes!). If your package is not |
| 17654 | -# flat and you're not using automake, define top_builddir and top_srcdir |
| 17655 | -# appropriately in the Makefiles. |
| 17656 | -# In the future, this macro may have to be called after AC_PROG_LIBTOOL. |
| 17657 | -AC_DEFUN([AC_LIBLTDL_INSTALLABLE], |
| 17658 | -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl |
| 17659 | - AC_CHECK_LIB(ltdl, lt_dlinit, |
| 17660 | - [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no], |
| 17661 | - [if test x"$enable_ltdl_install" = xno; then |
| 17662 | - AC_MSG_WARN([libltdl not installed, but installation disabled]) |
| 17663 | - else |
| 17664 | - enable_ltdl_install=yes |
| 17665 | - fi |
| 17666 | - ]) |
| 17667 | - if test x"$enable_ltdl_install" = x"yes"; then |
| 17668 | - ac_configure_args="$ac_configure_args --enable-ltdl-install" |
| 17669 | - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la |
| 17670 | - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) |
| 17671 | - else |
| 17672 | - ac_configure_args="$ac_configure_args --enable-ltdl-install=no" |
| 17673 | - LIBLTDL="-lltdl" |
| 17674 | - LTDLINCL= |
| 17675 | - fi |
| 17676 | - # For backwards non-gettext consistent compatibility... |
| 17677 | - INCLTDL="$LTDLINCL" |
| 17678 | -])# AC_LIBLTDL_INSTALLABLE |
| 17679 | + need_lib_prefix=no |
| 17680 | + need_version=no |
| 17681 | + soname_spec='${libname}${release}${shared_ext}$major' |
| 17682 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 17683 | + case $host_os in |
| 17684 | + irix5* | nonstopux*) |
| 17685 | + libsuff= shlibsuff= |
| 17686 | + ;; |
| 17687 | + *) |
| 17688 | + case $LD in # libtool.m4 will add one of these switches to LD |
| 17689 | + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 17690 | + libsuff= shlibsuff= libmagic=32-bit;; |
| 17691 | + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 17692 | + libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 17693 | + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 17694 | + libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 17695 | + *) libsuff= shlibsuff= libmagic=never-match;; |
| 17696 | + esac |
| 17697 | + ;; |
| 17698 | + esac |
| 17699 | + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 17700 | + shlibpath_overrides_runpath=no |
| 17701 | + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 17702 | + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 17703 | + hardcode_into_libs=yes |
| 17704 | + ;; |
| 17705 | |
| 17706 | +# No shared lib support for Linux oldld, aout, or coff. |
| 17707 | +linux*oldld* | linux*aout* | linux*coff*) |
| 17708 | + dynamic_linker=no |
| 17709 | + ;; |
| 17710 | |
| 17711 | -# AC_LIBTOOL_CXX |
| 17712 | -# -------------- |
| 17713 | -# enable support for C++ libraries |
| 17714 | -AC_DEFUN([AC_LIBTOOL_CXX], |
| 17715 | -[AC_REQUIRE([_LT_AC_LANG_CXX]) |
| 17716 | -])# AC_LIBTOOL_CXX |
| 17717 | +# This must be Linux ELF. |
| 17718 | +linux* | k*bsd*-gnu) |
| 17719 | + version_type=linux |
| 17720 | + need_lib_prefix=no |
| 17721 | + need_version=no |
| 17722 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17723 | + soname_spec='${libname}${release}${shared_ext}$major' |
| 17724 | + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 17725 | + shlibpath_var=LD_LIBRARY_PATH |
| 17726 | + shlibpath_overrides_runpath=no |
| 17727 | + # Some binutils ld are patched to set DT_RUNPATH |
| 17728 | + save_LDFLAGS=$LDFLAGS |
| 17729 | + save_libdir=$libdir |
| 17730 | + eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ |
| 17731 | + LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" |
| 17732 | + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], |
| 17733 | + [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null], |
| 17734 | + [shlibpath_overrides_runpath=yes])]) |
| 17735 | + LDFLAGS=$save_LDFLAGS |
| 17736 | + libdir=$save_libdir |
| 17737 | |
| 17738 | + # This implies no fast_install, which is unacceptable. |
| 17739 | + # Some rework will be needed to allow for fast_install |
| 17740 | + # before this can be enabled. |
| 17741 | + hardcode_into_libs=yes |
| 17742 | |
| 17743 | -# _LT_AC_LANG_CXX |
| 17744 | -# --------------- |
| 17745 | -AC_DEFUN([_LT_AC_LANG_CXX], |
| 17746 | -[AC_REQUIRE([AC_PROG_CXX]) |
| 17747 | -AC_REQUIRE([_LT_AC_PROG_CXXCPP]) |
| 17748 | -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX]) |
| 17749 | -])# _LT_AC_LANG_CXX |
| 17750 | + # Append ld.so.conf contents to the search path |
| 17751 | + if test -f /etc/ld.so.conf; then |
| 17752 | + 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' ' '` |
| 17753 | + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 17754 | + fi |
| 17755 | |
| 17756 | -# _LT_AC_PROG_CXXCPP |
| 17757 | -# ------------------ |
| 17758 | -AC_DEFUN([_LT_AC_PROG_CXXCPP], |
| 17759 | -[ |
| 17760 | -AC_REQUIRE([AC_PROG_CXX]) |
| 17761 | -if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 17762 | - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 17763 | - (test "X$CXX" != "Xg++"))) ; then |
| 17764 | - AC_PROG_CXXCPP |
| 17765 | -fi |
| 17766 | -])# _LT_AC_PROG_CXXCPP |
| 17767 | - |
| 17768 | -# AC_LIBTOOL_F77 |
| 17769 | -# -------------- |
| 17770 | -# enable support for Fortran 77 libraries |
| 17771 | -AC_DEFUN([AC_LIBTOOL_F77], |
| 17772 | -[AC_REQUIRE([_LT_AC_LANG_F77]) |
| 17773 | -])# AC_LIBTOOL_F77 |
| 17774 | - |
| 17775 | - |
| 17776 | -# _LT_AC_LANG_F77 |
| 17777 | -# --------------- |
| 17778 | -AC_DEFUN([_LT_AC_LANG_F77], |
| 17779 | -[AC_REQUIRE([AC_PROG_F77]) |
| 17780 | -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77]) |
| 17781 | -])# _LT_AC_LANG_F77 |
| 17782 | - |
| 17783 | - |
| 17784 | -# AC_LIBTOOL_GCJ |
| 17785 | -# -------------- |
| 17786 | -# enable support for GCJ libraries |
| 17787 | -AC_DEFUN([AC_LIBTOOL_GCJ], |
| 17788 | -[AC_REQUIRE([_LT_AC_LANG_GCJ]) |
| 17789 | -])# AC_LIBTOOL_GCJ |
| 17790 | - |
| 17791 | - |
| 17792 | -# _LT_AC_LANG_GCJ |
| 17793 | -# --------------- |
| 17794 | -AC_DEFUN([_LT_AC_LANG_GCJ], |
| 17795 | -[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[], |
| 17796 | - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[], |
| 17797 | - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[], |
| 17798 | - [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])], |
| 17799 | - [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])], |
| 17800 | - [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])]) |
| 17801 | -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ]) |
| 17802 | -])# _LT_AC_LANG_GCJ |
| 17803 | - |
| 17804 | - |
| 17805 | -# AC_LIBTOOL_RC |
| 17806 | -# ------------- |
| 17807 | -# enable support for Windows resource files |
| 17808 | -AC_DEFUN([AC_LIBTOOL_RC], |
| 17809 | -[AC_REQUIRE([LT_AC_PROG_RC]) |
| 17810 | -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC]) |
| 17811 | -])# AC_LIBTOOL_RC |
| 17812 | + # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 17813 | + # powerpc, because MkLinux only supported shared libraries with the |
| 17814 | + # GNU dynamic linker. Since this was broken with cross compilers, |
| 17815 | + # most powerpc-linux boxes support dynamic linking these days and |
| 17816 | + # people can always --disable-shared, the test was removed, and we |
| 17817 | + # assume the GNU/Linux dynamic linker is in use. |
| 17818 | + dynamic_linker='GNU/Linux ld.so' |
| 17819 | + ;; |
| 17820 | |
| 17821 | +netbsd*) |
| 17822 | + version_type=sunos |
| 17823 | + need_lib_prefix=no |
| 17824 | + need_version=no |
| 17825 | + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 17826 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 17827 | + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 17828 | + dynamic_linker='NetBSD (a.out) ld.so' |
| 17829 | + else |
| 17830 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 17831 | + soname_spec='${libname}${release}${shared_ext}$major' |
| 17832 | + dynamic_linker='NetBSD ld.elf_so' |
| 17833 | + fi |
| 17834 | + shlibpath_var=LD_LIBRARY_PATH |
| 17835 | + shlibpath_overrides_runpath=yes |
| 17836 | + hardcode_into_libs=yes |
| 17837 | + ;; |
| 17838 | |
| 17839 | -# AC_LIBTOOL_LANG_C_CONFIG |
| 17840 | -# ------------------------ |
| 17841 | -# Ensure that the configuration vars for the C compiler are |
| 17842 | -# suitably defined. Those variables are subsequently used by |
| 17843 | -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. |
| 17844 | -AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG]) |
| 17845 | -AC_DEFUN([_LT_AC_LANG_C_CONFIG], |
| 17846 | -[lt_save_CC="$CC" |
| 17847 | -AC_LANG_PUSH(C) |
| 17848 | +newsos6) |
| 17849 | + version_type=linux |
| 17850 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17851 | + shlibpath_var=LD_LIBRARY_PATH |
| 17852 | + shlibpath_overrides_runpath=yes |
| 17853 | + ;; |
| 17854 | |
| 17855 | -# Source file extension for C test sources. |
| 17856 | -ac_ext=c |
| 17857 | +*nto* | *qnx*) |
| 17858 | + version_type=qnx |
| 17859 | + need_lib_prefix=no |
| 17860 | + need_version=no |
| 17861 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17862 | + soname_spec='${libname}${release}${shared_ext}$major' |
| 17863 | + shlibpath_var=LD_LIBRARY_PATH |
| 17864 | + shlibpath_overrides_runpath=no |
| 17865 | + hardcode_into_libs=yes |
| 17866 | + dynamic_linker='ldqnx.so' |
| 17867 | + ;; |
| 17868 | |
| 17869 | -# Object file extension for compiled C test sources. |
| 17870 | -objext=o |
| 17871 | -_LT_AC_TAGVAR(objext, $1)=$objext |
| 17872 | +openbsd*) |
| 17873 | + version_type=sunos |
| 17874 | + sys_lib_dlsearch_path_spec="/usr/lib" |
| 17875 | + need_lib_prefix=no |
| 17876 | + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 17877 | + case $host_os in |
| 17878 | + openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 17879 | + *) need_version=no ;; |
| 17880 | + esac |
| 17881 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 17882 | + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 17883 | + shlibpath_var=LD_LIBRARY_PATH |
| 17884 | + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 17885 | + case $host_os in |
| 17886 | + openbsd2.[[89]] | openbsd2.[[89]].*) |
| 17887 | + shlibpath_overrides_runpath=no |
| 17888 | + ;; |
| 17889 | + *) |
| 17890 | + shlibpath_overrides_runpath=yes |
| 17891 | + ;; |
| 17892 | + esac |
| 17893 | + else |
| 17894 | + shlibpath_overrides_runpath=yes |
| 17895 | + fi |
| 17896 | + ;; |
| 17897 | |
| 17898 | -# Code to be used in simple compile tests |
| 17899 | -lt_simple_compile_test_code="int some_variable = 0;\n" |
| 17900 | +os2*) |
| 17901 | + libname_spec='$name' |
| 17902 | + shrext_cmds=".dll" |
| 17903 | + need_lib_prefix=no |
| 17904 | + library_names_spec='$libname${shared_ext} $libname.a' |
| 17905 | + dynamic_linker='OS/2 ld.exe' |
| 17906 | + shlibpath_var=LIBPATH |
| 17907 | + ;; |
| 17908 | |
| 17909 | -# Code to be used in simple link tests |
| 17910 | -lt_simple_link_test_code='int main(){return(0);}\n' |
| 17911 | +osf3* | osf4* | osf5*) |
| 17912 | + version_type=osf |
| 17913 | + need_lib_prefix=no |
| 17914 | + need_version=no |
| 17915 | + soname_spec='${libname}${release}${shared_ext}$major' |
| 17916 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17917 | + shlibpath_var=LD_LIBRARY_PATH |
| 17918 | + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 17919 | + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 17920 | + ;; |
| 17921 | |
| 17922 | -_LT_AC_SYS_COMPILER |
| 17923 | +rdos*) |
| 17924 | + dynamic_linker=no |
| 17925 | + ;; |
| 17926 | |
| 17927 | -# save warnings/boilerplate of simple test code |
| 17928 | -_LT_COMPILER_BOILERPLATE |
| 17929 | -_LT_LINKER_BOILERPLATE |
| 17930 | +solaris*) |
| 17931 | + version_type=linux |
| 17932 | + need_lib_prefix=no |
| 17933 | + need_version=no |
| 17934 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17935 | + soname_spec='${libname}${release}${shared_ext}$major' |
| 17936 | + shlibpath_var=LD_LIBRARY_PATH |
| 17937 | + shlibpath_overrides_runpath=yes |
| 17938 | + hardcode_into_libs=yes |
| 17939 | + # ldd complains unless libraries are executable |
| 17940 | + postinstall_cmds='chmod +x $lib' |
| 17941 | + ;; |
| 17942 | |
| 17943 | -## CAVEAT EMPTOR: |
| 17944 | -## There is no encapsulation within the following macros, do not change |
| 17945 | -## the running order or otherwise move them around unless you know exactly |
| 17946 | -## what you are doing... |
| 17947 | -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) |
| 17948 | -AC_LIBTOOL_PROG_COMPILER_PIC($1) |
| 17949 | -AC_LIBTOOL_PROG_CC_C_O($1) |
| 17950 | -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) |
| 17951 | -AC_LIBTOOL_PROG_LD_SHLIBS($1) |
| 17952 | -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) |
| 17953 | -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) |
| 17954 | -AC_LIBTOOL_SYS_LIB_STRIP |
| 17955 | -AC_LIBTOOL_DLOPEN_SELF |
| 17956 | - |
| 17957 | -# Report which library types will actually be built |
| 17958 | -AC_MSG_CHECKING([if libtool supports shared libraries]) |
| 17959 | -AC_MSG_RESULT([$can_build_shared]) |
| 17960 | +sunos4*) |
| 17961 | + version_type=sunos |
| 17962 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 17963 | + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 17964 | + shlibpath_var=LD_LIBRARY_PATH |
| 17965 | + shlibpath_overrides_runpath=yes |
| 17966 | + if test "$with_gnu_ld" = yes; then |
| 17967 | + need_lib_prefix=no |
| 17968 | + fi |
| 17969 | + need_version=yes |
| 17970 | + ;; |
| 17971 | |
| 17972 | -AC_MSG_CHECKING([whether to build shared libraries]) |
| 17973 | -test "$can_build_shared" = "no" && enable_shared=no |
| 17974 | +sysv4 | sysv4.3*) |
| 17975 | + version_type=linux |
| 17976 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17977 | + soname_spec='${libname}${release}${shared_ext}$major' |
| 17978 | + shlibpath_var=LD_LIBRARY_PATH |
| 17979 | + case $host_vendor in |
| 17980 | + sni) |
| 17981 | + shlibpath_overrides_runpath=no |
| 17982 | + need_lib_prefix=no |
| 17983 | + runpath_var=LD_RUN_PATH |
| 17984 | + ;; |
| 17985 | + siemens) |
| 17986 | + need_lib_prefix=no |
| 17987 | + ;; |
| 17988 | + motorola) |
| 17989 | + need_lib_prefix=no |
| 17990 | + need_version=no |
| 17991 | + shlibpath_overrides_runpath=no |
| 17992 | + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 17993 | + ;; |
| 17994 | + esac |
| 17995 | + ;; |
| 17996 | |
| 17997 | -# On AIX, shared libraries and static libraries use the same namespace, and |
| 17998 | -# are all built from PIC. |
| 17999 | -case $host_os in |
| 18000 | -aix3*) |
| 18001 | - test "$enable_shared" = yes && enable_static=no |
| 18002 | - if test -n "$RANLIB"; then |
| 18003 | - archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 18004 | - postinstall_cmds='$RANLIB $lib' |
| 18005 | +sysv4*MP*) |
| 18006 | + if test -d /usr/nec ;then |
| 18007 | + version_type=linux |
| 18008 | + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 18009 | + soname_spec='$libname${shared_ext}.$major' |
| 18010 | + shlibpath_var=LD_LIBRARY_PATH |
| 18011 | fi |
| 18012 | ;; |
| 18013 | |
| 18014 | -aix4* | aix5*) |
| 18015 | - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 18016 | - test "$enable_shared" = yes && enable_static=no |
| 18017 | +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 18018 | + version_type=freebsd-elf |
| 18019 | + need_lib_prefix=no |
| 18020 | + need_version=no |
| 18021 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 18022 | + soname_spec='${libname}${release}${shared_ext}$major' |
| 18023 | + shlibpath_var=LD_LIBRARY_PATH |
| 18024 | + shlibpath_overrides_runpath=yes |
| 18025 | + hardcode_into_libs=yes |
| 18026 | + if test "$with_gnu_ld" = yes; then |
| 18027 | + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 18028 | + else |
| 18029 | + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 18030 | + case $host_os in |
| 18031 | + sco3.2v5*) |
| 18032 | + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 18033 | + ;; |
| 18034 | + esac |
| 18035 | fi |
| 18036 | - ;; |
| 18037 | -esac |
| 18038 | -AC_MSG_RESULT([$enable_shared]) |
| 18039 | - |
| 18040 | -AC_MSG_CHECKING([whether to build static libraries]) |
| 18041 | -# Make sure either enable_shared or enable_static is yes. |
| 18042 | -test "$enable_shared" = yes || enable_static=yes |
| 18043 | -AC_MSG_RESULT([$enable_static]) |
| 18044 | - |
| 18045 | -AC_LIBTOOL_CONFIG($1) |
| 18046 | - |
| 18047 | -AC_LANG_POP |
| 18048 | -CC="$lt_save_CC" |
| 18049 | -])# AC_LIBTOOL_LANG_C_CONFIG |
| 18050 | - |
| 18051 | - |
| 18052 | -# AC_LIBTOOL_LANG_CXX_CONFIG |
| 18053 | -# -------------------------- |
| 18054 | -# Ensure that the configuration vars for the C compiler are |
| 18055 | -# suitably defined. Those variables are subsequently used by |
| 18056 | -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. |
| 18057 | -AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)]) |
| 18058 | -AC_DEFUN([_LT_AC_LANG_CXX_CONFIG], |
| 18059 | -[AC_LANG_PUSH(C++) |
| 18060 | -AC_REQUIRE([AC_PROG_CXX]) |
| 18061 | -AC_REQUIRE([_LT_AC_PROG_CXXCPP]) |
| 18062 | - |
| 18063 | -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
| 18064 | -_LT_AC_TAGVAR(allow_undefined_flag, $1)= |
| 18065 | -_LT_AC_TAGVAR(always_export_symbols, $1)=no |
| 18066 | -_LT_AC_TAGVAR(archive_expsym_cmds, $1)= |
| 18067 | -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= |
| 18068 | -_LT_AC_TAGVAR(hardcode_direct, $1)=no |
| 18069 | -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= |
| 18070 | -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= |
| 18071 | -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)= |
| 18072 | -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no |
| 18073 | -_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
| 18074 | -_LT_AC_TAGVAR(hardcode_automatic, $1)=no |
| 18075 | -_LT_AC_TAGVAR(module_cmds, $1)= |
| 18076 | -_LT_AC_TAGVAR(module_expsym_cmds, $1)= |
| 18077 | -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown |
| 18078 | -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds |
| 18079 | -_LT_AC_TAGVAR(no_undefined_flag, $1)= |
| 18080 | -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)= |
| 18081 | -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no |
| 18082 | - |
| 18083 | -# Dependencies to place before and after the object being linked: |
| 18084 | -_LT_AC_TAGVAR(predep_objects, $1)= |
| 18085 | -_LT_AC_TAGVAR(postdep_objects, $1)= |
| 18086 | -_LT_AC_TAGVAR(predeps, $1)= |
| 18087 | -_LT_AC_TAGVAR(postdeps, $1)= |
| 18088 | -_LT_AC_TAGVAR(compiler_lib_search_path, $1)= |
| 18089 | - |
| 18090 | -# Source file extension for C++ test sources. |
| 18091 | -ac_ext=cpp |
| 18092 | - |
| 18093 | -# Object file extension for compiled C++ test sources. |
| 18094 | -objext=o |
| 18095 | -_LT_AC_TAGVAR(objext, $1)=$objext |
| 18096 | - |
| 18097 | -# Code to be used in simple compile tests |
| 18098 | -lt_simple_compile_test_code="int some_variable = 0;\n" |
| 18099 | + sys_lib_dlsearch_path_spec='/usr/lib' |
| 18100 | + ;; |
| 18101 | |
| 18102 | -# Code to be used in simple link tests |
| 18103 | -lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n' |
| 18104 | +tpf*) |
| 18105 | + # TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
| 18106 | + version_type=linux |
| 18107 | + need_lib_prefix=no |
| 18108 | + need_version=no |
| 18109 | + library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18110 | + shlibpath_var=LD_LIBRARY_PATH |
| 18111 | + shlibpath_overrides_runpath=no |
| 18112 | + hardcode_into_libs=yes |
| 18113 | + ;; |
| 18114 | |
| 18115 | -# ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 18116 | -_LT_AC_SYS_COMPILER |
| 18117 | +uts4*) |
| 18118 | + version_type=linux |
| 18119 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18120 | + soname_spec='${libname}${release}${shared_ext}$major' |
| 18121 | + shlibpath_var=LD_LIBRARY_PATH |
| 18122 | + ;; |
| 18123 | |
| 18124 | -# save warnings/boilerplate of simple test code |
| 18125 | -_LT_COMPILER_BOILERPLATE |
| 18126 | -_LT_LINKER_BOILERPLATE |
| 18127 | +*) |
| 18128 | + dynamic_linker=no |
| 18129 | + ;; |
| 18130 | +esac |
| 18131 | +AC_MSG_RESULT([$dynamic_linker]) |
| 18132 | +test "$dynamic_linker" = no && can_build_shared=no |
| 18133 | |
| 18134 | -# Allow CC to be a program name with arguments. |
| 18135 | -lt_save_CC=$CC |
| 18136 | -lt_save_LD=$LD |
| 18137 | -lt_save_GCC=$GCC |
| 18138 | -GCC=$GXX |
| 18139 | -lt_save_with_gnu_ld=$with_gnu_ld |
| 18140 | -lt_save_path_LD=$lt_cv_path_LD |
| 18141 | -if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
| 18142 | - lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
| 18143 | -else |
| 18144 | - $as_unset lt_cv_prog_gnu_ld |
| 18145 | +variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 18146 | +if test "$GCC" = yes; then |
| 18147 | + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 18148 | fi |
| 18149 | -if test -n "${lt_cv_path_LDCXX+set}"; then |
| 18150 | - lt_cv_path_LD=$lt_cv_path_LDCXX |
| 18151 | -else |
| 18152 | - $as_unset lt_cv_path_LD |
| 18153 | + |
| 18154 | +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
| 18155 | + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" |
| 18156 | fi |
| 18157 | -test -z "${LDCXX+set}" || LD=$LDCXX |
| 18158 | -CC=${CXX-"c++"} |
| 18159 | -compiler=$CC |
| 18160 | -_LT_AC_TAGVAR(compiler, $1)=$CC |
| 18161 | -_LT_CC_BASENAME([$compiler]) |
| 18162 | - |
| 18163 | -# We don't want -fno-exception wen compiling C++ code, so set the |
| 18164 | -# no_builtin_flag separately |
| 18165 | -if test "$GXX" = yes; then |
| 18166 | - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' |
| 18167 | -else |
| 18168 | - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= |
| 18169 | +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
| 18170 | + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" |
| 18171 | fi |
| 18172 | |
| 18173 | -if test "$GXX" = yes; then |
| 18174 | - # Set up default GNU C++ configuration |
| 18175 | - |
| 18176 | - AC_PROG_LD |
| 18177 | - |
| 18178 | - # Check if GNU C++ uses GNU ld as the underlying linker, since the |
| 18179 | - # archiving commands below assume that GNU ld is being used. |
| 18180 | - if test "$with_gnu_ld" = yes; then |
| 18181 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 18182 | - _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' |
| 18183 | - |
| 18184 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' |
| 18185 | - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
| 18186 | - |
| 18187 | - # If archive_cmds runs LD, not CC, wlarc should be empty |
| 18188 | - # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
| 18189 | - # investigate it a little bit more. (MM) |
| 18190 | - wlarc='${wl}' |
| 18191 | - |
| 18192 | - # ancient GNU ld didn't support --whole-archive et. al. |
| 18193 | - if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ |
| 18194 | - grep 'no-whole-archive' > /dev/null; then |
| 18195 | - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 18196 | - else |
| 18197 | - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= |
| 18198 | - fi |
| 18199 | - else |
| 18200 | - with_gnu_ld=no |
| 18201 | - wlarc= |
| 18202 | - |
| 18203 | - # A generic and very simple default shared library creation |
| 18204 | - # command for GNU C++ for the case where it uses the native |
| 18205 | - # linker, instead of GNU ld. If possible, this setting should |
| 18206 | - # overridden to take advantage of the native linker features on |
| 18207 | - # the platform it is being used on. |
| 18208 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 18209 | - fi |
| 18210 | - |
| 18211 | - # Commands to make compiler produce verbose output that lists |
| 18212 | - # what "hidden" libraries, object files and flags are used when |
| 18213 | - # linking a shared library. |
| 18214 | - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 18215 | - |
| 18216 | -else |
| 18217 | - GXX=no |
| 18218 | - with_gnu_ld=no |
| 18219 | - wlarc= |
| 18220 | -fi |
| 18221 | +_LT_DECL([], [variables_saved_for_relink], [1], |
| 18222 | + [Variables whose values should be saved in libtool wrapper scripts and |
| 18223 | + restored at link time]) |
| 18224 | +_LT_DECL([], [need_lib_prefix], [0], |
| 18225 | + [Do we need the "lib" prefix for modules?]) |
| 18226 | +_LT_DECL([], [need_version], [0], [Do we need a version for libraries?]) |
| 18227 | +_LT_DECL([], [version_type], [0], [Library versioning type]) |
| 18228 | +_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable]) |
| 18229 | +_LT_DECL([], [shlibpath_var], [0],[Shared library path variable]) |
| 18230 | +_LT_DECL([], [shlibpath_overrides_runpath], [0], |
| 18231 | + [Is shlibpath searched before the hard-coded library search path?]) |
| 18232 | +_LT_DECL([], [libname_spec], [1], [Format of library name prefix]) |
| 18233 | +_LT_DECL([], [library_names_spec], [1], |
| 18234 | + [[List of archive names. First name is the real one, the rest are links. |
| 18235 | + The last name is the one that the linker finds with -lNAME]]) |
| 18236 | +_LT_DECL([], [soname_spec], [1], |
| 18237 | + [[The coded name of the library, if different from the real name]]) |
| 18238 | +_LT_DECL([], [postinstall_cmds], [2], |
| 18239 | + [Command to use after installation of a shared archive]) |
| 18240 | +_LT_DECL([], [postuninstall_cmds], [2], |
| 18241 | + [Command to use after uninstallation of a shared archive]) |
| 18242 | +_LT_DECL([], [finish_cmds], [2], |
| 18243 | + [Commands used to finish a libtool library installation in a directory]) |
| 18244 | +_LT_DECL([], [finish_eval], [1], |
| 18245 | + [[As "finish_cmds", except a single script fragment to be evaled but |
| 18246 | + not shown]]) |
| 18247 | +_LT_DECL([], [hardcode_into_libs], [0], |
| 18248 | + [Whether we should hardcode library paths into libraries]) |
| 18249 | +_LT_DECL([], [sys_lib_search_path_spec], [2], |
| 18250 | + [Compile-time system search path for libraries]) |
| 18251 | +_LT_DECL([], [sys_lib_dlsearch_path_spec], [2], |
| 18252 | + [Run-time system search path for libraries]) |
| 18253 | +])# _LT_SYS_DYNAMIC_LINKER |
| 18254 | |
| 18255 | -# PORTME: fill in a description of your system's C++ link characteristics |
| 18256 | -AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) |
| 18257 | -_LT_AC_TAGVAR(ld_shlibs, $1)=yes |
| 18258 | -case $host_os in |
| 18259 | - aix3*) |
| 18260 | - # FIXME: insert proper C++ library support |
| 18261 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 18262 | - ;; |
| 18263 | - aix4* | aix5*) |
| 18264 | - if test "$host_cpu" = ia64; then |
| 18265 | - # On IA64, the linker does run time linking by default, so we don't |
| 18266 | - # have to do anything special. |
| 18267 | - aix_use_runtimelinking=no |
| 18268 | - exp_sym_flag='-Bexport' |
| 18269 | - no_entry_flag="" |
| 18270 | - else |
| 18271 | - aix_use_runtimelinking=no |
| 18272 | |
| 18273 | - # Test if we are trying to use run time linking or normal |
| 18274 | - # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 18275 | - # need to do runtime linking. |
| 18276 | - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) |
| 18277 | - for ld_flag in $LDFLAGS; do |
| 18278 | - case $ld_flag in |
| 18279 | - *-brtl*) |
| 18280 | - aix_use_runtimelinking=yes |
| 18281 | - break |
| 18282 | - ;; |
| 18283 | - esac |
| 18284 | - done |
| 18285 | - ;; |
| 18286 | - esac |
| 18287 | - |
| 18288 | - exp_sym_flag='-bexport' |
| 18289 | - no_entry_flag='-bnoentry' |
| 18290 | - fi |
| 18291 | +# _LT_PATH_TOOL_PREFIX(TOOL) |
| 18292 | +# -------------------------- |
| 18293 | +# find a file program which can recognize shared library |
| 18294 | +AC_DEFUN([_LT_PATH_TOOL_PREFIX], |
| 18295 | +[m4_require([_LT_DECL_EGREP])dnl |
| 18296 | +AC_MSG_CHECKING([for $1]) |
| 18297 | +AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, |
| 18298 | +[case $MAGIC_CMD in |
| 18299 | +[[\\/*] | ?:[\\/]*]) |
| 18300 | + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 18301 | + ;; |
| 18302 | +*) |
| 18303 | + lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 18304 | + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 18305 | +dnl $ac_dummy forces splitting on constant user-supplied paths. |
| 18306 | +dnl POSIX.2 word splitting is done only on the output of word expansions, |
| 18307 | +dnl not every word. This closes a longstanding sh security hole. |
| 18308 | + ac_dummy="m4_if([$2], , $PATH, [$2])" |
| 18309 | + for ac_dir in $ac_dummy; do |
| 18310 | + IFS="$lt_save_ifs" |
| 18311 | + test -z "$ac_dir" && ac_dir=. |
| 18312 | + if test -f $ac_dir/$1; then |
| 18313 | + lt_cv_path_MAGIC_CMD="$ac_dir/$1" |
| 18314 | + if test -n "$file_magic_test_file"; then |
| 18315 | + case $deplibs_check_method in |
| 18316 | + "file_magic "*) |
| 18317 | + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
| 18318 | + MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 18319 | + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 18320 | + $EGREP "$file_magic_regex" > /dev/null; then |
| 18321 | + : |
| 18322 | + else |
| 18323 | + cat <<_LT_EOF 1>&2 |
| 18324 | |
| 18325 | - # When large executables or shared objects are built, AIX ld can |
| 18326 | - # have problems creating the table of contents. If linking a library |
| 18327 | - # or program results in "error TOC overflow" add -mminimal-toc to |
| 18328 | - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 18329 | - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 18330 | - |
| 18331 | - _LT_AC_TAGVAR(archive_cmds, $1)='' |
| 18332 | - _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
| 18333 | - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' |
| 18334 | - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
| 18335 | +*** Warning: the command libtool uses to detect shared libraries, |
| 18336 | +*** $file_magic_cmd, produces output that libtool cannot recognize. |
| 18337 | +*** The result is that libtool may fail to recognize shared libraries |
| 18338 | +*** as such. This will affect the creation of libtool libraries that |
| 18339 | +*** depend on shared libraries, but programs linked with such libtool |
| 18340 | +*** libraries will work regardless of this problem. Nevertheless, you |
| 18341 | +*** may want to report the problem to your system manager and/or to |
| 18342 | +*** bug-libtool@gnu.org |
| 18343 | |
| 18344 | - if test "$GXX" = yes; then |
| 18345 | - case $host_os in aix4.[[012]]|aix4.[[012]].*) |
| 18346 | - # We only want to do this on AIX 4.2 and lower, the check |
| 18347 | - # below for broken collect2 doesn't work under 4.3+ |
| 18348 | - collect2name=`${CC} -print-prog-name=collect2` |
| 18349 | - if test -f "$collect2name" && \ |
| 18350 | - strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 18351 | - then |
| 18352 | - # We have reworked collect2 |
| 18353 | - _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
| 18354 | - else |
| 18355 | - # We have old collect2 |
| 18356 | - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported |
| 18357 | - # It fails to find uninstalled libraries when the uninstalled |
| 18358 | - # path is not listed in the libpath. Setting hardcode_minus_L |
| 18359 | - # to unsupported forces relinking |
| 18360 | - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
| 18361 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| 18362 | - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= |
| 18363 | - fi |
| 18364 | - ;; |
| 18365 | - esac |
| 18366 | - shared_flag='-shared' |
| 18367 | - if test "$aix_use_runtimelinking" = yes; then |
| 18368 | - shared_flag="$shared_flag "'${wl}-G' |
| 18369 | - fi |
| 18370 | - else |
| 18371 | - # not using gcc |
| 18372 | - if test "$host_cpu" = ia64; then |
| 18373 | - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 18374 | - # chokes on -Wl,-G. The following line is correct: |
| 18375 | - shared_flag='-G' |
| 18376 | - else |
| 18377 | - if test "$aix_use_runtimelinking" = yes; then |
| 18378 | - shared_flag='${wl}-G' |
| 18379 | - else |
| 18380 | - shared_flag='${wl}-bM:SRE' |
| 18381 | - fi |
| 18382 | +_LT_EOF |
| 18383 | + fi ;; |
| 18384 | + esac |
| 18385 | fi |
| 18386 | + break |
| 18387 | fi |
| 18388 | + done |
| 18389 | + IFS="$lt_save_ifs" |
| 18390 | + MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 18391 | + ;; |
| 18392 | +esac]) |
| 18393 | +MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 18394 | +if test -n "$MAGIC_CMD"; then |
| 18395 | + AC_MSG_RESULT($MAGIC_CMD) |
| 18396 | +else |
| 18397 | + AC_MSG_RESULT(no) |
| 18398 | +fi |
| 18399 | +_LT_DECL([], [MAGIC_CMD], [0], |
| 18400 | + [Used to examine libraries when file_magic_cmd begins with "file"])dnl |
| 18401 | +])# _LT_PATH_TOOL_PREFIX |
| 18402 | |
| 18403 | - # It seems that -bexpall does not export symbols beginning with |
| 18404 | - # underscore (_), so it is better to generate a list of symbols to export. |
| 18405 | - _LT_AC_TAGVAR(always_export_symbols, $1)=yes |
| 18406 | - if test "$aix_use_runtimelinking" = yes; then |
| 18407 | - # Warning - without using the other runtime loading flags (-brtl), |
| 18408 | - # -berok will link without error, but may produce a broken library. |
| 18409 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' |
| 18410 | - # Determine the default libpath from the value encoded in an empty executable. |
| 18411 | - _LT_AC_SYS_LIBPATH_AIX |
| 18412 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 18413 | +# Old name: |
| 18414 | +AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX]) |
| 18415 | +dnl aclocal-1.4 backwards compatibility: |
| 18416 | +dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], []) |
| 18417 | |
| 18418 | - _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" |
| 18419 | - else |
| 18420 | - if test "$host_cpu" = ia64; then |
| 18421 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' |
| 18422 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" |
| 18423 | - _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" |
| 18424 | - else |
| 18425 | - # Determine the default libpath from the value encoded in an empty executable. |
| 18426 | - _LT_AC_SYS_LIBPATH_AIX |
| 18427 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 18428 | - # Warning - without using the other run time loading flags, |
| 18429 | - # -berok will link without error, but may produce a broken library. |
| 18430 | - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' |
| 18431 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' |
| 18432 | - # Exported symbols can be pulled into shared objects from archives |
| 18433 | - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience' |
| 18434 | - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes |
| 18435 | - # This is similar to how AIX traditionally builds its shared libraries. |
| 18436 | - _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' |
| 18437 | - fi |
| 18438 | - fi |
| 18439 | - ;; |
| 18440 | |
| 18441 | - beos*) |
| 18442 | - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 18443 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported |
| 18444 | - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 18445 | - # support --undefined. This deserves some investigation. FIXME |
| 18446 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 18447 | - else |
| 18448 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 18449 | - fi |
| 18450 | - ;; |
| 18451 | +# _LT_PATH_MAGIC |
| 18452 | +# -------------- |
| 18453 | +# find a file program which can recognize a shared library |
| 18454 | +m4_defun([_LT_PATH_MAGIC], |
| 18455 | +[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) |
| 18456 | +if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 18457 | + if test -n "$ac_tool_prefix"; then |
| 18458 | + _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) |
| 18459 | + else |
| 18460 | + MAGIC_CMD=: |
| 18461 | + fi |
| 18462 | +fi |
| 18463 | +])# _LT_PATH_MAGIC |
| 18464 | |
| 18465 | - chorus*) |
| 18466 | - case $cc_basename in |
| 18467 | - *) |
| 18468 | - # FIXME: insert proper C++ library support |
| 18469 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 18470 | - ;; |
| 18471 | - esac |
| 18472 | - ;; |
| 18473 | |
| 18474 | - cygwin* | mingw* | pw32*) |
| 18475 | - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, |
| 18476 | - # as there is no search path for DLLs. |
| 18477 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| 18478 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported |
| 18479 | - _LT_AC_TAGVAR(always_export_symbols, $1)=no |
| 18480 | - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
| 18481 | - |
| 18482 | - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
| 18483 | - _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' |
| 18484 | - # If the export-symbols file already is a .def file (1st line |
| 18485 | - # is EXPORTS), use it as is; otherwise, prepend... |
| 18486 | - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 18487 | - cp $export_symbols $output_objdir/$soname.def; |
| 18488 | - else |
| 18489 | - echo EXPORTS > $output_objdir/$soname.def; |
| 18490 | - cat $export_symbols >> $output_objdir/$soname.def; |
| 18491 | - fi~ |
| 18492 | - $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' |
| 18493 | - else |
| 18494 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 18495 | - fi |
| 18496 | - ;; |
| 18497 | - darwin* | rhapsody*) |
| 18498 | - case $host_os in |
| 18499 | - rhapsody* | darwin1.[[012]]) |
| 18500 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' |
| 18501 | - ;; |
| 18502 | - *) # Darwin 1.3 on |
| 18503 | - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 18504 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 18505 | - else |
| 18506 | - case ${MACOSX_DEPLOYMENT_TARGET} in |
| 18507 | - 10.[[012]]) |
| 18508 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 18509 | - ;; |
| 18510 | - 10.*) |
| 18511 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' |
| 18512 | - ;; |
| 18513 | - esac |
| 18514 | - fi |
| 18515 | - ;; |
| 18516 | - esac |
| 18517 | - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
| 18518 | - _LT_AC_TAGVAR(hardcode_direct, $1)=no |
| 18519 | - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes |
| 18520 | - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
| 18521 | - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' |
| 18522 | - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
| 18523 | - |
| 18524 | - if test "$GXX" = yes ; then |
| 18525 | - lt_int_apple_cc_single_mod=no |
| 18526 | - output_verbose_link_cmd='echo' |
| 18527 | - if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then |
| 18528 | - lt_int_apple_cc_single_mod=yes |
| 18529 | - fi |
| 18530 | - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 18531 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 18532 | - else |
| 18533 | - _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' |
| 18534 | - fi |
| 18535 | - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 18536 | - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 18537 | - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 18538 | - _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}' |
| 18539 | - else |
| 18540 | - _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}' |
| 18541 | - fi |
| 18542 | - _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}' |
| 18543 | - else |
| 18544 | - case $cc_basename in |
| 18545 | - xlc*) |
| 18546 | - output_verbose_link_cmd='echo' |
| 18547 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 18548 | - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 18549 | - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 18550 | - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 18551 | - _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 18552 | - ;; |
| 18553 | - *) |
| 18554 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 18555 | - ;; |
| 18556 | - esac |
| 18557 | - fi |
| 18558 | - ;; |
| 18559 | +# LT_PATH_LD |
| 18560 | +# ---------- |
| 18561 | +# find the pathname to the GNU or non-GNU linker |
| 18562 | +AC_DEFUN([LT_PATH_LD], |
| 18563 | +[AC_REQUIRE([AC_PROG_CC])dnl |
| 18564 | +AC_REQUIRE([AC_CANONICAL_HOST])dnl |
| 18565 | +AC_REQUIRE([AC_CANONICAL_BUILD])dnl |
| 18566 | +m4_require([_LT_DECL_SED])dnl |
| 18567 | +m4_require([_LT_DECL_EGREP])dnl |
| 18568 | |
| 18569 | - dgux*) |
| 18570 | - case $cc_basename in |
| 18571 | - ec++*) |
| 18572 | - # FIXME: insert proper C++ library support |
| 18573 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 18574 | - ;; |
| 18575 | - ghcx*) |
| 18576 | - # Green Hills C++ Compiler |
| 18577 | - # FIXME: insert proper C++ library support |
| 18578 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 18579 | - ;; |
| 18580 | - *) |
| 18581 | - # FIXME: insert proper C++ library support |
| 18582 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 18583 | - ;; |
| 18584 | - esac |
| 18585 | - ;; |
| 18586 | - freebsd[[12]]*) |
| 18587 | - # C++ shared libraries reported to be fairly broken before switch to ELF |
| 18588 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 18589 | - ;; |
| 18590 | - freebsd-elf*) |
| 18591 | - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
| 18592 | - ;; |
| 18593 | - freebsd* | kfreebsd*-gnu | dragonfly*) |
| 18594 | - # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
| 18595 | - # conventions |
| 18596 | - _LT_AC_TAGVAR(ld_shlibs, $1)=yes |
| 18597 | - ;; |
| 18598 | - gnu*) |
| 18599 | - ;; |
| 18600 | - hpux9*) |
| 18601 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
| 18602 | - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| 18603 | - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
| 18604 | - _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
| 18605 | - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, |
| 18606 | - # but as the default |
| 18607 | - # location of the library. |
| 18608 | - |
| 18609 | - case $cc_basename in |
| 18610 | - CC*) |
| 18611 | - # FIXME: insert proper C++ library support |
| 18612 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 18613 | - ;; |
| 18614 | - aCC*) |
| 18615 | - _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' |
| 18616 | - # Commands to make compiler produce verbose output that lists |
| 18617 | - # what "hidden" libraries, object files and flags are used when |
| 18618 | - # linking a shared library. |
| 18619 | - # |
| 18620 | - # There doesn't appear to be a way to prevent this compiler from |
| 18621 | - # explicitly linking system object files so we need to strip them |
| 18622 | - # from the output so that they don't get included in the library |
| 18623 | - # dependencies. |
| 18624 | - 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' |
| 18625 | - ;; |
| 18626 | - *) |
| 18627 | - if test "$GXX" = yes; then |
| 18628 | - _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' |
| 18629 | - else |
| 18630 | - # FIXME: insert proper C++ library support |
| 18631 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 18632 | - fi |
| 18633 | - ;; |
| 18634 | - esac |
| 18635 | - ;; |
| 18636 | - hpux10*|hpux11*) |
| 18637 | - if test $with_gnu_ld = no; then |
| 18638 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
| 18639 | - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| 18640 | +AC_ARG_WITH([gnu-ld], |
| 18641 | + [AS_HELP_STRING([--with-gnu-ld], |
| 18642 | + [assume the C compiler uses GNU ld @<:@default=no@:>@])], |
| 18643 | + [test "$withval" = no || with_gnu_ld=yes], |
| 18644 | + [with_gnu_ld=no])dnl |
| 18645 | |
| 18646 | - case $host_cpu in |
| 18647 | - hppa*64*|ia64*) |
| 18648 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' |
| 18649 | - ;; |
| 18650 | - *) |
| 18651 | - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
| 18652 | - ;; |
| 18653 | - esac |
| 18654 | - fi |
| 18655 | - case $host_cpu in |
| 18656 | - hppa*64*|ia64*) |
| 18657 | - _LT_AC_TAGVAR(hardcode_direct, $1)=no |
| 18658 | - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 18659 | - ;; |
| 18660 | - *) |
| 18661 | - _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
| 18662 | - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, |
| 18663 | - # but as the default |
| 18664 | - # location of the library. |
| 18665 | +ac_prog=ld |
| 18666 | +if test "$GCC" = yes; then |
| 18667 | + # Check if gcc -print-prog-name=ld gives a path. |
| 18668 | + AC_MSG_CHECKING([for ld used by $CC]) |
| 18669 | + case $host in |
| 18670 | + *-*-mingw*) |
| 18671 | + # gcc leaves a trailing carriage return which upsets mingw |
| 18672 | + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 18673 | + *) |
| 18674 | + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 18675 | + esac |
| 18676 | + case $ac_prog in |
| 18677 | + # Accept absolute paths. |
| 18678 | + [[\\/]]* | ?:[[\\/]]*) |
| 18679 | + re_direlt='/[[^/]][[^/]]*/\.\./' |
| 18680 | + # Canonicalize the pathname of ld |
| 18681 | + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
| 18682 | + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
| 18683 | + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
| 18684 | + done |
| 18685 | + test -z "$LD" && LD="$ac_prog" |
| 18686 | ;; |
| 18687 | - esac |
| 18688 | - |
| 18689 | - case $cc_basename in |
| 18690 | - CC*) |
| 18691 | - # FIXME: insert proper C++ library support |
| 18692 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 18693 | - ;; |
| 18694 | - aCC*) |
| 18695 | - case $host_cpu in |
| 18696 | - hppa*64*) |
| 18697 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 18698 | - ;; |
| 18699 | - ia64*) |
| 18700 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 18701 | - ;; |
| 18702 | - *) |
| 18703 | - _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' |
| 18704 | - ;; |
| 18705 | - esac |
| 18706 | - # Commands to make compiler produce verbose output that lists |
| 18707 | - # what "hidden" libraries, object files and flags are used when |
| 18708 | - # linking a shared library. |
| 18709 | - # |
| 18710 | - # There doesn't appear to be a way to prevent this compiler from |
| 18711 | - # explicitly linking system object files so we need to strip them |
| 18712 | - # from the output so that they don't get included in the library |
| 18713 | - # dependencies. |
| 18714 | - 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' |
| 18715 | - ;; |
| 18716 | - *) |
| 18717 | - if test "$GXX" = yes; then |
| 18718 | - if test $with_gnu_ld = no; then |
| 18719 | - case $host_cpu in |
| 18720 | - hppa*64*) |
| 18721 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 18722 | - ;; |
| 18723 | - ia64*) |
| 18724 | - _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' |
| 18725 | - ;; |
| 18726 | - *) |
| 18727 | - _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' |
| 18728 | - ;; |
| 18729 | - esac |
| 18730 | - fi |
| 18731 | - else |
| 18732 | - # FIXME: insert proper C++ library support |
| 18733 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 18734 | - fi |
| 18735 | - ;; |
| 18736 | - esac |
| 18737 | - ;; |
| 18738 | - interix3*) |
| 18739 | - _LT_AC_TAGVAR(hardcode_direct, $1)=no |
| 18740 | - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 18741 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
| 18742 | - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
| 18743 | - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 18744 | - # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 18745 | - # default) and relocated if they conflict, which is a slow very memory |
| 18746 | - # consuming and fragmenting process. To avoid this, we pick a random, |
| 18747 | - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 18748 | - # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 18749 | - _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' |
| 18750 | - _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' |
| 18751 | - ;; |
| 18752 | - irix5* | irix6*) |
| 18753 | - case $cc_basename in |
| 18754 | - CC*) |
| 18755 | - # SGI C++ |
| 18756 | - _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' |
| 18757 | - |
| 18758 | - # Archives containing C++ object files must be created using |
| 18759 | - # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
| 18760 | - # necessary to make sure instantiated templates are included |
| 18761 | - # in the archive. |
| 18762 | - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' |
| 18763 | - ;; |
| 18764 | - *) |
| 18765 | - if test "$GXX" = yes; then |
| 18766 | - if test "$with_gnu_ld" = no; then |
| 18767 | - _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' |
| 18768 | - else |
| 18769 | - _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' |
| 18770 | - fi |
| 18771 | - fi |
| 18772 | - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
| 18773 | - ;; |
| 18774 | - esac |
| 18775 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
| 18776 | - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| 18777 | + "") |
| 18778 | + # If it fails, then pretend we aren't using GCC. |
| 18779 | + ac_prog=ld |
| 18780 | ;; |
| 18781 | - linux*) |
| 18782 | - case $cc_basename in |
| 18783 | - KCC*) |
| 18784 | - # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 18785 | - |
| 18786 | - # KCC will only create a shared library if the output file |
| 18787 | - # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 18788 | - # to its proper name (with version) after linking. |
| 18789 | - _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' |
| 18790 | - _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' |
| 18791 | - # Commands to make compiler produce verbose output that lists |
| 18792 | - # what "hidden" libraries, object files and flags are used when |
| 18793 | - # linking a shared library. |
| 18794 | - # |
| 18795 | - # There doesn't appear to be a way to prevent this compiler from |
| 18796 | - # explicitly linking system object files so we need to strip them |
| 18797 | - # from the output so that they don't get included in the library |
| 18798 | - # dependencies. |
| 18799 | - 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' |
| 18800 | - |
| 18801 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir' |
| 18802 | - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
| 18803 | - |
| 18804 | - # Archives containing C++ object files must be created using |
| 18805 | - # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 18806 | - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' |
| 18807 | - ;; |
| 18808 | - icpc*) |
| 18809 | - # Intel C++ |
| 18810 | - with_gnu_ld=yes |
| 18811 | - # version 8.0 and above of icpc choke on multiply defined symbols |
| 18812 | - # if we add $predep_objects and $postdep_objects, however 7.1 and |
| 18813 | - # earlier do not add the objects themselves. |
| 18814 | - case `$CC -V 2>&1` in |
| 18815 | - *"Version 7."*) |
| 18816 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 18817 | - _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' |
| 18818 | - ;; |
| 18819 | - *) # Version 8.0 or newer |
| 18820 | - tmp_idyn= |
| 18821 | - case $host_cpu in |
| 18822 | - ia64*) tmp_idyn=' -i_dynamic';; |
| 18823 | - esac |
| 18824 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 18825 | - _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' |
| 18826 | - ;; |
| 18827 | - esac |
| 18828 | - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
| 18829 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
| 18830 | - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
| 18831 | - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 18832 | - ;; |
| 18833 | - pgCC*) |
| 18834 | - # Portland Group C++ compiler |
| 18835 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
| 18836 | - _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' |
| 18837 | - |
| 18838 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' |
| 18839 | - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
| 18840 | - _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' |
| 18841 | - ;; |
| 18842 | - cxx*) |
| 18843 | - # Compaq C++ |
| 18844 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 18845 | - _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' |
| 18846 | - |
| 18847 | - runpath_var=LD_RUN_PATH |
| 18848 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' |
| 18849 | - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| 18850 | - |
| 18851 | - # Commands to make compiler produce verbose output that lists |
| 18852 | - # what "hidden" libraries, object files and flags are used when |
| 18853 | - # linking a shared library. |
| 18854 | - # |
| 18855 | - # There doesn't appear to be a way to prevent this compiler from |
| 18856 | - # explicitly linking system object files so we need to strip them |
| 18857 | - # from the output so that they don't get included in the library |
| 18858 | - # dependencies. |
| 18859 | - 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' |
| 18860 | - ;; |
| 18861 | - *) |
| 18862 | - case `$CC -V 2>&1 | sed 5q` in |
| 18863 | - *Sun\ C*) |
| 18864 | - # Sun C++ 5.9 |
| 18865 | - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' |
| 18866 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 18867 | - _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' |
| 18868 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
| 18869 | - _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' |
| 18870 | - |
| 18871 | - # Not sure whether something based on |
| 18872 | - # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 |
| 18873 | - # would be better. |
| 18874 | - output_verbose_link_cmd='echo' |
| 18875 | - |
| 18876 | - # Archives containing C++ object files must be created using |
| 18877 | - # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 18878 | - # necessary to make sure instantiated templates are included |
| 18879 | - # in the archive. |
| 18880 | - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' |
| 18881 | - ;; |
| 18882 | - esac |
| 18883 | - ;; |
| 18884 | - esac |
| 18885 | + *) |
| 18886 | + # If it is relative, then search for the first ld in PATH. |
| 18887 | + with_gnu_ld=unknown |
| 18888 | ;; |
| 18889 | - lynxos*) |
| 18890 | - # FIXME: insert proper C++ library support |
| 18891 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 18892 | - ;; |
| 18893 | - m88k*) |
| 18894 | - # FIXME: insert proper C++ library support |
| 18895 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 18896 | - ;; |
| 18897 | - mvs*) |
| 18898 | - case $cc_basename in |
| 18899 | - cxx*) |
| 18900 | - # FIXME: insert proper C++ library support |
| 18901 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 18902 | + esac |
| 18903 | +elif test "$with_gnu_ld" = yes; then |
| 18904 | + AC_MSG_CHECKING([for GNU ld]) |
| 18905 | +else |
| 18906 | + AC_MSG_CHECKING([for non-GNU ld]) |
| 18907 | +fi |
| 18908 | +AC_CACHE_VAL(lt_cv_path_LD, |
| 18909 | +[if test -z "$LD"; then |
| 18910 | + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 18911 | + for ac_dir in $PATH; do |
| 18912 | + IFS="$lt_save_ifs" |
| 18913 | + test -z "$ac_dir" && ac_dir=. |
| 18914 | + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 18915 | + lt_cv_path_LD="$ac_dir/$ac_prog" |
| 18916 | + # Check to see if the program is GNU ld. I'd rather use --version, |
| 18917 | + # but apparently some variants of GNU ld only accept -v. |
| 18918 | + # Break only if it was the GNU/non-GNU ld that we prefer. |
| 18919 | + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 18920 | + *GNU* | *'with BFD'*) |
| 18921 | + test "$with_gnu_ld" != no && break |
| 18922 | ;; |
| 18923 | *) |
| 18924 | - # FIXME: insert proper C++ library support |
| 18925 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 18926 | + test "$with_gnu_ld" != yes && break |
| 18927 | ;; |
| 18928 | - esac |
| 18929 | - ;; |
| 18930 | - netbsd*) |
| 18931 | - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 18932 | - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
| 18933 | - wlarc= |
| 18934 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
| 18935 | - _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
| 18936 | - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 18937 | - fi |
| 18938 | - # Workaround some broken pre-1.5 toolchains |
| 18939 | - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
| 18940 | - ;; |
| 18941 | - openbsd2*) |
| 18942 | - # C++ shared libraries are fairly broken |
| 18943 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 18944 | - ;; |
| 18945 | - openbsd*) |
| 18946 | - _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
| 18947 | - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 18948 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 18949 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
| 18950 | - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 18951 | - _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' |
| 18952 | - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
| 18953 | - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 18954 | + esac |
| 18955 | fi |
| 18956 | - output_verbose_link_cmd='echo' |
| 18957 | - ;; |
| 18958 | - osf3*) |
| 18959 | - case $cc_basename in |
| 18960 | - KCC*) |
| 18961 | - # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 18962 | - |
| 18963 | - # KCC will only create a shared library if the output file |
| 18964 | - # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 18965 | - # to its proper name (with version) after linking. |
| 18966 | - _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' |
| 18967 | - |
| 18968 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
| 18969 | - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| 18970 | - |
| 18971 | - # Archives containing C++ object files must be created using |
| 18972 | - # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 18973 | - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' |
| 18974 | - |
| 18975 | - ;; |
| 18976 | - RCC*) |
| 18977 | - # Rational C++ 2.4.1 |
| 18978 | - # FIXME: insert proper C++ library support |
| 18979 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 18980 | - ;; |
| 18981 | - cxx*) |
| 18982 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
| 18983 | - _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' |
| 18984 | - |
| 18985 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
| 18986 | - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| 18987 | - |
| 18988 | - # Commands to make compiler produce verbose output that lists |
| 18989 | - # what "hidden" libraries, object files and flags are used when |
| 18990 | - # linking a shared library. |
| 18991 | - # |
| 18992 | - # There doesn't appear to be a way to prevent this compiler from |
| 18993 | - # explicitly linking system object files so we need to strip them |
| 18994 | - # from the output so that they don't get included in the library |
| 18995 | - # dependencies. |
| 18996 | - 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' |
| 18997 | - ;; |
| 18998 | - *) |
| 18999 | - if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 19000 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
| 19001 | - _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' |
| 19002 | - |
| 19003 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
| 19004 | - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| 19005 | - |
| 19006 | - # Commands to make compiler produce verbose output that lists |
| 19007 | - # what "hidden" libraries, object files and flags are used when |
| 19008 | - # linking a shared library. |
| 19009 | - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 19010 | + done |
| 19011 | + IFS="$lt_save_ifs" |
| 19012 | +else |
| 19013 | + lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 19014 | +fi]) |
| 19015 | +LD="$lt_cv_path_LD" |
| 19016 | +if test -n "$LD"; then |
| 19017 | + AC_MSG_RESULT($LD) |
| 19018 | +else |
| 19019 | + AC_MSG_RESULT(no) |
| 19020 | +fi |
| 19021 | +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) |
| 19022 | +_LT_PATH_LD_GNU |
| 19023 | +AC_SUBST([LD]) |
| 19024 | |
| 19025 | - else |
| 19026 | - # FIXME: insert proper C++ library support |
| 19027 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 19028 | - fi |
| 19029 | - ;; |
| 19030 | - esac |
| 19031 | - ;; |
| 19032 | - osf4* | osf5*) |
| 19033 | - case $cc_basename in |
| 19034 | - KCC*) |
| 19035 | - # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 19036 | - |
| 19037 | - # KCC will only create a shared library if the output file |
| 19038 | - # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 19039 | - # to its proper name (with version) after linking. |
| 19040 | - _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' |
| 19041 | - |
| 19042 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
| 19043 | - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| 19044 | - |
| 19045 | - # Archives containing C++ object files must be created using |
| 19046 | - # the KAI C++ compiler. |
| 19047 | - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' |
| 19048 | - ;; |
| 19049 | - RCC*) |
| 19050 | - # Rational C++ 2.4.1 |
| 19051 | - # FIXME: insert proper C++ library support |
| 19052 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 19053 | - ;; |
| 19054 | - cxx*) |
| 19055 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' |
| 19056 | - _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' |
| 19057 | - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
| 19058 | - echo "-hidden">> $lib.exp~ |
| 19059 | - $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~ |
| 19060 | - $rm $lib.exp' |
| 19061 | - |
| 19062 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' |
| 19063 | - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| 19064 | - |
| 19065 | - # Commands to make compiler produce verbose output that lists |
| 19066 | - # what "hidden" libraries, object files and flags are used when |
| 19067 | - # linking a shared library. |
| 19068 | - # |
| 19069 | - # There doesn't appear to be a way to prevent this compiler from |
| 19070 | - # explicitly linking system object files so we need to strip them |
| 19071 | - # from the output so that they don't get included in the library |
| 19072 | - # dependencies. |
| 19073 | - 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' |
| 19074 | - ;; |
| 19075 | - *) |
| 19076 | - if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 19077 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
| 19078 | - _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' |
| 19079 | - |
| 19080 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
| 19081 | - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| 19082 | - |
| 19083 | - # Commands to make compiler produce verbose output that lists |
| 19084 | - # what "hidden" libraries, object files and flags are used when |
| 19085 | - # linking a shared library. |
| 19086 | - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 19087 | +_LT_TAGDECL([], [LD], [1], [The linker used to build libraries]) |
| 19088 | +])# LT_PATH_LD |
| 19089 | |
| 19090 | - else |
| 19091 | - # FIXME: insert proper C++ library support |
| 19092 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 19093 | - fi |
| 19094 | - ;; |
| 19095 | - esac |
| 19096 | - ;; |
| 19097 | - psos*) |
| 19098 | - # FIXME: insert proper C++ library support |
| 19099 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 19100 | - ;; |
| 19101 | - sunos4*) |
| 19102 | - case $cc_basename in |
| 19103 | - CC*) |
| 19104 | - # Sun C++ 4.x |
| 19105 | - # FIXME: insert proper C++ library support |
| 19106 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 19107 | - ;; |
| 19108 | - lcc*) |
| 19109 | - # Lucid |
| 19110 | - # FIXME: insert proper C++ library support |
| 19111 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 19112 | - ;; |
| 19113 | - *) |
| 19114 | - # FIXME: insert proper C++ library support |
| 19115 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 19116 | - ;; |
| 19117 | - esac |
| 19118 | +# Old names: |
| 19119 | +AU_ALIAS([AM_PROG_LD], [LT_PATH_LD]) |
| 19120 | +AU_ALIAS([AC_PROG_LD], [LT_PATH_LD]) |
| 19121 | +dnl aclocal-1.4 backwards compatibility: |
| 19122 | +dnl AC_DEFUN([AM_PROG_LD], []) |
| 19123 | +dnl AC_DEFUN([AC_PROG_LD], []) |
| 19124 | + |
| 19125 | + |
| 19126 | +# _LT_PATH_LD_GNU |
| 19127 | +#- -------------- |
| 19128 | +m4_defun([_LT_PATH_LD_GNU], |
| 19129 | +[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, |
| 19130 | +[# I'd rather use --version here, but apparently some GNU lds only accept -v. |
| 19131 | +case `$LD -v 2>&1 </dev/null` in |
| 19132 | +*GNU* | *'with BFD'*) |
| 19133 | + lt_cv_prog_gnu_ld=yes |
| 19134 | + ;; |
| 19135 | +*) |
| 19136 | + lt_cv_prog_gnu_ld=no |
| 19137 | + ;; |
| 19138 | +esac]) |
| 19139 | +with_gnu_ld=$lt_cv_prog_gnu_ld |
| 19140 | +])# _LT_PATH_LD_GNU |
| 19141 | + |
| 19142 | + |
| 19143 | +# _LT_CMD_RELOAD |
| 19144 | +# -------------- |
| 19145 | +# find reload flag for linker |
| 19146 | +# -- PORTME Some linkers may need a different reload flag. |
| 19147 | +m4_defun([_LT_CMD_RELOAD], |
| 19148 | +[AC_CACHE_CHECK([for $LD option to reload object files], |
| 19149 | + lt_cv_ld_reload_flag, |
| 19150 | + [lt_cv_ld_reload_flag='-r']) |
| 19151 | +reload_flag=$lt_cv_ld_reload_flag |
| 19152 | +case $reload_flag in |
| 19153 | +"" | " "*) ;; |
| 19154 | +*) reload_flag=" $reload_flag" ;; |
| 19155 | +esac |
| 19156 | +reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 19157 | +case $host_os in |
| 19158 | + darwin*) |
| 19159 | + if test "$GCC" = yes; then |
| 19160 | + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
| 19161 | + else |
| 19162 | + reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 19163 | + fi |
| 19164 | ;; |
| 19165 | - solaris*) |
| 19166 | - case $cc_basename in |
| 19167 | - CC*) |
| 19168 | - # Sun C++ 4.2, 5.x and Centerline C++ |
| 19169 | - _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes |
| 19170 | - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' |
| 19171 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 19172 | - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 19173 | - $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' |
| 19174 | - |
| 19175 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
| 19176 | - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 19177 | - case $host_os in |
| 19178 | - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; |
| 19179 | - *) |
| 19180 | - # The C++ compiler is used as linker so we must use $wl |
| 19181 | - # flag to pass the commands to the underlying system |
| 19182 | - # linker. We must also pass each convience library through |
| 19183 | - # to the system linker between allextract/defaultextract. |
| 19184 | - # The C++ compiler will combine linker options so we |
| 19185 | - # cannot just pass the convience library names through |
| 19186 | - # without $wl. |
| 19187 | - # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 19188 | - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' |
| 19189 | - ;; |
| 19190 | - esac |
| 19191 | - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
| 19192 | +esac |
| 19193 | +_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl |
| 19194 | +_LT_DECL([], [reload_cmds], [2])dnl |
| 19195 | +])# _LT_CMD_RELOAD |
| 19196 | |
| 19197 | - output_verbose_link_cmd='echo' |
| 19198 | |
| 19199 | - # Archives containing C++ object files must be created using |
| 19200 | - # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 19201 | - # necessary to make sure instantiated templates are included |
| 19202 | - # in the archive. |
| 19203 | - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' |
| 19204 | - ;; |
| 19205 | - gcx*) |
| 19206 | - # Green Hills C++ Compiler |
| 19207 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 19208 | +# _LT_CHECK_MAGIC_METHOD |
| 19209 | +# ---------------------- |
| 19210 | +# how to check for library dependencies |
| 19211 | +# -- PORTME fill in with the dynamic library characteristics |
| 19212 | +m4_defun([_LT_CHECK_MAGIC_METHOD], |
| 19213 | +[m4_require([_LT_DECL_EGREP]) |
| 19214 | +AC_CACHE_CHECK([how to recognize dependent libraries], |
| 19215 | +lt_cv_deplibs_check_method, |
| 19216 | +[lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 19217 | +lt_cv_file_magic_test_file= |
| 19218 | +lt_cv_deplibs_check_method='unknown' |
| 19219 | +# Need to set the preceding variable on all platforms that support |
| 19220 | +# interlibrary dependencies. |
| 19221 | +# 'none' -- dependencies not supported. |
| 19222 | +# `unknown' -- same as none, but documents that we really don't know. |
| 19223 | +# 'pass_all' -- all dependencies passed with no checks. |
| 19224 | +# 'test_compile' -- check by making test program. |
| 19225 | +# 'file_magic [[regex]]' -- check by looking for files in library path |
| 19226 | +# which responds to the $file_magic_cmd with a given extended regex. |
| 19227 | +# If you have `file' or equivalent on your system and you're not sure |
| 19228 | +# whether `pass_all' will *always* work, you probably want this one. |
| 19229 | |
| 19230 | - # The C++ compiler must be used to create the archive. |
| 19231 | - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
| 19232 | - ;; |
| 19233 | - *) |
| 19234 | - # GNU C++ compiler with Solaris linker |
| 19235 | - if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 19236 | - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' |
| 19237 | - if $CC --version | grep -v '^2\.7' > /dev/null; then |
| 19238 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 19239 | - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 19240 | - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
| 19241 | +case $host_os in |
| 19242 | +aix[[4-9]]*) |
| 19243 | + lt_cv_deplibs_check_method=pass_all |
| 19244 | + ;; |
| 19245 | |
| 19246 | - # Commands to make compiler produce verbose output that lists |
| 19247 | - # what "hidden" libraries, object files and flags are used when |
| 19248 | - # linking a shared library. |
| 19249 | - output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
| 19250 | - else |
| 19251 | - # g++ 2.7 appears to require `-G' NOT `-shared' on this |
| 19252 | - # platform. |
| 19253 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 19254 | - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 19255 | - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
| 19256 | +beos*) |
| 19257 | + lt_cv_deplibs_check_method=pass_all |
| 19258 | + ;; |
| 19259 | |
| 19260 | - # Commands to make compiler produce verbose output that lists |
| 19261 | - # what "hidden" libraries, object files and flags are used when |
| 19262 | - # linking a shared library. |
| 19263 | - output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
| 19264 | - fi |
| 19265 | +bsdi[[45]]*) |
| 19266 | + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' |
| 19267 | + lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 19268 | + lt_cv_file_magic_test_file=/shlib/libc.so |
| 19269 | + ;; |
| 19270 | |
| 19271 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' |
| 19272 | - fi |
| 19273 | - ;; |
| 19274 | - esac |
| 19275 | - ;; |
| 19276 | - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) |
| 19277 | - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' |
| 19278 | - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
| 19279 | - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 19280 | - runpath_var='LD_RUN_PATH' |
| 19281 | - |
| 19282 | - case $cc_basename in |
| 19283 | - CC*) |
| 19284 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19285 | - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19286 | - ;; |
| 19287 | - *) |
| 19288 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19289 | - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19290 | - ;; |
| 19291 | - esac |
| 19292 | - ;; |
| 19293 | - sysv5* | sco3.2v5* | sco5v6*) |
| 19294 | - # Note: We can NOT use -z defs as we might desire, because we do not |
| 19295 | - # link with -lc, and that would cause any symbols used from libc to |
| 19296 | - # always be unresolved, which means just about no library would |
| 19297 | - # ever link correctly. If we're not using GNU ld we use -z text |
| 19298 | - # though, which does catch some bad symbols but isn't as heavy-handed |
| 19299 | - # as -z defs. |
| 19300 | - # For security reasons, it is highly recommended that you always |
| 19301 | - # use absolute paths for naming shared libraries, and exclude the |
| 19302 | - # DT_RUNPATH tag from executables and libraries. But doing so |
| 19303 | - # requires that you compile everything twice, which is a pain. |
| 19304 | - # So that behaviour is only enabled if SCOABSPATH is set to a |
| 19305 | - # non-empty value in the environment. Most likely only useful for |
| 19306 | - # creating official distributions of packages. |
| 19307 | - # This is a hack until libtool officially supports absolute path |
| 19308 | - # names for shared libraries. |
| 19309 | - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' |
| 19310 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' |
| 19311 | - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
| 19312 | - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 19313 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 19314 | - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' |
| 19315 | - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
| 19316 | - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' |
| 19317 | - runpath_var='LD_RUN_PATH' |
| 19318 | - |
| 19319 | - case $cc_basename in |
| 19320 | - CC*) |
| 19321 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19322 | - _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' |
| 19323 | - ;; |
| 19324 | - *) |
| 19325 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19326 | - _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' |
| 19327 | - ;; |
| 19328 | - esac |
| 19329 | - ;; |
| 19330 | - tandem*) |
| 19331 | - case $cc_basename in |
| 19332 | - NCC*) |
| 19333 | - # NonStop-UX NCC 3.20 |
| 19334 | - # FIXME: insert proper C++ library support |
| 19335 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 19336 | - ;; |
| 19337 | - *) |
| 19338 | - # FIXME: insert proper C++ library support |
| 19339 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 19340 | - ;; |
| 19341 | +cygwin*) |
| 19342 | + # func_win32_libid is a shell function defined in ltmain.sh |
| 19343 | + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 19344 | + lt_cv_file_magic_cmd='func_win32_libid' |
| 19345 | + ;; |
| 19346 | + |
| 19347 | +mingw* | pw32*) |
| 19348 | + # Base MSYS/MinGW do not provide the 'file' command needed by |
| 19349 | + # func_win32_libid shell function, so use a weaker test based on 'objdump', |
| 19350 | + # unless we find 'file', for example because we are cross-compiling. |
| 19351 | + if ( file / ) >/dev/null 2>&1; then |
| 19352 | + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 19353 | + lt_cv_file_magic_cmd='func_win32_libid' |
| 19354 | + else |
| 19355 | + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
| 19356 | + lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 19357 | + fi |
| 19358 | + ;; |
| 19359 | + |
| 19360 | +darwin* | rhapsody*) |
| 19361 | + lt_cv_deplibs_check_method=pass_all |
| 19362 | + ;; |
| 19363 | + |
| 19364 | +freebsd* | dragonfly*) |
| 19365 | + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
| 19366 | + case $host_cpu in |
| 19367 | + i*86 ) |
| 19368 | + # Not sure whether the presence of OpenBSD here was a mistake. |
| 19369 | + # Let's accept both of them until this is cleared up. |
| 19370 | + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' |
| 19371 | + lt_cv_file_magic_cmd=/usr/bin/file |
| 19372 | + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 19373 | + ;; |
| 19374 | esac |
| 19375 | + else |
| 19376 | + lt_cv_deplibs_check_method=pass_all |
| 19377 | + fi |
| 19378 | + ;; |
| 19379 | + |
| 19380 | +gnu*) |
| 19381 | + lt_cv_deplibs_check_method=pass_all |
| 19382 | + ;; |
| 19383 | + |
| 19384 | +hpux10.20* | hpux11*) |
| 19385 | + lt_cv_file_magic_cmd=/usr/bin/file |
| 19386 | + case $host_cpu in |
| 19387 | + ia64*) |
| 19388 | + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' |
| 19389 | + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 19390 | ;; |
| 19391 | - vxworks*) |
| 19392 | - # FIXME: insert proper C++ library support |
| 19393 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 19394 | + hppa*64*) |
| 19395 | + [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'] |
| 19396 | + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 19397 | ;; |
| 19398 | *) |
| 19399 | - # FIXME: insert proper C++ library support |
| 19400 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 19401 | + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' |
| 19402 | + lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 19403 | ;; |
| 19404 | -esac |
| 19405 | -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) |
| 19406 | -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no |
| 19407 | + esac |
| 19408 | + ;; |
| 19409 | |
| 19410 | -_LT_AC_TAGVAR(GCC, $1)="$GXX" |
| 19411 | -_LT_AC_TAGVAR(LD, $1)="$LD" |
| 19412 | +interix[[3-9]]*) |
| 19413 | + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
| 19414 | + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' |
| 19415 | + ;; |
| 19416 | |
| 19417 | -## CAVEAT EMPTOR: |
| 19418 | -## There is no encapsulation within the following macros, do not change |
| 19419 | -## the running order or otherwise move them around unless you know exactly |
| 19420 | -## what you are doing... |
| 19421 | -AC_LIBTOOL_POSTDEP_PREDEP($1) |
| 19422 | -AC_LIBTOOL_PROG_COMPILER_PIC($1) |
| 19423 | -AC_LIBTOOL_PROG_CC_C_O($1) |
| 19424 | -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) |
| 19425 | -AC_LIBTOOL_PROG_LD_SHLIBS($1) |
| 19426 | -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) |
| 19427 | -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) |
| 19428 | +irix5* | irix6* | nonstopux*) |
| 19429 | + case $LD in |
| 19430 | + *-32|*"-32 ") libmagic=32-bit;; |
| 19431 | + *-n32|*"-n32 ") libmagic=N32;; |
| 19432 | + *-64|*"-64 ") libmagic=64-bit;; |
| 19433 | + *) libmagic=never-match;; |
| 19434 | + esac |
| 19435 | + lt_cv_deplibs_check_method=pass_all |
| 19436 | + ;; |
| 19437 | |
| 19438 | -AC_LIBTOOL_CONFIG($1) |
| 19439 | +# This must be Linux ELF. |
| 19440 | +linux* | k*bsd*-gnu) |
| 19441 | + lt_cv_deplibs_check_method=pass_all |
| 19442 | + ;; |
| 19443 | |
| 19444 | -AC_LANG_POP |
| 19445 | -CC=$lt_save_CC |
| 19446 | -LDCXX=$LD |
| 19447 | -LD=$lt_save_LD |
| 19448 | -GCC=$lt_save_GCC |
| 19449 | -with_gnu_ldcxx=$with_gnu_ld |
| 19450 | -with_gnu_ld=$lt_save_with_gnu_ld |
| 19451 | -lt_cv_path_LDCXX=$lt_cv_path_LD |
| 19452 | -lt_cv_path_LD=$lt_save_path_LD |
| 19453 | -lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
| 19454 | -lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
| 19455 | -])# AC_LIBTOOL_LANG_CXX_CONFIG |
| 19456 | +netbsd*) |
| 19457 | + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
| 19458 | + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' |
| 19459 | + else |
| 19460 | + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' |
| 19461 | + fi |
| 19462 | + ;; |
| 19463 | |
| 19464 | -# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME]) |
| 19465 | -# ------------------------------------ |
| 19466 | -# Figure out "hidden" library dependencies from verbose |
| 19467 | -# compiler output when linking a shared library. |
| 19468 | -# Parse the compiler output and extract the necessary |
| 19469 | -# objects, libraries and library flags. |
| 19470 | -AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[ |
| 19471 | -dnl we can't use the lt_simple_compile_test_code here, |
| 19472 | -dnl because it contains code intended for an executable, |
| 19473 | -dnl not a library. It's possible we should let each |
| 19474 | -dnl tag define a new lt_????_link_test_code variable, |
| 19475 | -dnl but it's only used here... |
| 19476 | -ifelse([$1],[],[cat > conftest.$ac_ext <<EOF |
| 19477 | -int a; |
| 19478 | -void foo (void) { a = 0; } |
| 19479 | -EOF |
| 19480 | -],[$1],[CXX],[cat > conftest.$ac_ext <<EOF |
| 19481 | -class Foo |
| 19482 | -{ |
| 19483 | -public: |
| 19484 | - Foo (void) { a = 0; } |
| 19485 | -private: |
| 19486 | - int a; |
| 19487 | -}; |
| 19488 | -EOF |
| 19489 | -],[$1],[F77],[cat > conftest.$ac_ext <<EOF |
| 19490 | - subroutine foo |
| 19491 | - implicit none |
| 19492 | - integer*4 a |
| 19493 | - a=0 |
| 19494 | - return |
| 19495 | - end |
| 19496 | -EOF |
| 19497 | -],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF |
| 19498 | -public class foo { |
| 19499 | - private int a; |
| 19500 | - public void bar (void) { |
| 19501 | - a = 0; |
| 19502 | - } |
| 19503 | -}; |
| 19504 | -EOF |
| 19505 | -]) |
| 19506 | -dnl Parse the compiler output and extract the necessary |
| 19507 | -dnl objects, libraries and library flags. |
| 19508 | -if AC_TRY_EVAL(ac_compile); then |
| 19509 | - # Parse the compiler output and extract the necessary |
| 19510 | - # objects, libraries and library flags. |
| 19511 | +newos6*) |
| 19512 | + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' |
| 19513 | + lt_cv_file_magic_cmd=/usr/bin/file |
| 19514 | + lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 19515 | + ;; |
| 19516 | |
| 19517 | - # Sentinel used to keep track of whether or not we are before |
| 19518 | - # the conftest object file. |
| 19519 | - pre_test_object_deps_done=no |
| 19520 | +*nto* | *qnx*) |
| 19521 | + lt_cv_deplibs_check_method=pass_all |
| 19522 | + ;; |
| 19523 | |
| 19524 | - # The `*' in the case matches for architectures that use `case' in |
| 19525 | - # $output_verbose_cmd can trigger glob expansion during the loop |
| 19526 | - # eval without this substitution. |
| 19527 | - output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` |
| 19528 | +openbsd*) |
| 19529 | + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 19530 | + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' |
| 19531 | + else |
| 19532 | + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' |
| 19533 | + fi |
| 19534 | + ;; |
| 19535 | |
| 19536 | - for p in `eval $output_verbose_link_cmd`; do |
| 19537 | - case $p in |
| 19538 | +osf3* | osf4* | osf5*) |
| 19539 | + lt_cv_deplibs_check_method=pass_all |
| 19540 | + ;; |
| 19541 | |
| 19542 | - -L* | -R* | -l*) |
| 19543 | - # Some compilers place space between "-{L,R}" and the path. |
| 19544 | - # Remove the space. |
| 19545 | - if test $p = "-L" \ |
| 19546 | - || test $p = "-R"; then |
| 19547 | - prev=$p |
| 19548 | - continue |
| 19549 | - else |
| 19550 | - prev= |
| 19551 | - fi |
| 19552 | +rdos*) |
| 19553 | + lt_cv_deplibs_check_method=pass_all |
| 19554 | + ;; |
| 19555 | + |
| 19556 | +solaris*) |
| 19557 | + lt_cv_deplibs_check_method=pass_all |
| 19558 | + ;; |
| 19559 | + |
| 19560 | +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 19561 | + lt_cv_deplibs_check_method=pass_all |
| 19562 | + ;; |
| 19563 | + |
| 19564 | +sysv4 | sysv4.3*) |
| 19565 | + case $host_vendor in |
| 19566 | + motorola) |
| 19567 | + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]' |
| 19568 | + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 19569 | + ;; |
| 19570 | + ncr) |
| 19571 | + lt_cv_deplibs_check_method=pass_all |
| 19572 | + ;; |
| 19573 | + sequent) |
| 19574 | + lt_cv_file_magic_cmd='/bin/file' |
| 19575 | + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' |
| 19576 | + ;; |
| 19577 | + sni) |
| 19578 | + lt_cv_file_magic_cmd='/bin/file' |
| 19579 | + lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" |
| 19580 | + lt_cv_file_magic_test_file=/lib/libc.so |
| 19581 | + ;; |
| 19582 | + siemens) |
| 19583 | + lt_cv_deplibs_check_method=pass_all |
| 19584 | + ;; |
| 19585 | + pc) |
| 19586 | + lt_cv_deplibs_check_method=pass_all |
| 19587 | + ;; |
| 19588 | + esac |
| 19589 | + ;; |
| 19590 | + |
| 19591 | +tpf*) |
| 19592 | + lt_cv_deplibs_check_method=pass_all |
| 19593 | + ;; |
| 19594 | +esac |
| 19595 | +]) |
| 19596 | +file_magic_cmd=$lt_cv_file_magic_cmd |
| 19597 | +deplibs_check_method=$lt_cv_deplibs_check_method |
| 19598 | +test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 19599 | + |
| 19600 | +_LT_DECL([], [deplibs_check_method], [1], |
| 19601 | + [Method to check whether dependent libraries are shared objects]) |
| 19602 | +_LT_DECL([], [file_magic_cmd], [1], |
| 19603 | + [Command to use when deplibs_check_method == "file_magic"]) |
| 19604 | +])# _LT_CHECK_MAGIC_METHOD |
| 19605 | + |
| 19606 | + |
| 19607 | +# LT_PATH_NM |
| 19608 | +# ---------- |
| 19609 | +# find the pathname to a BSD- or MS-compatible name lister |
| 19610 | +AC_DEFUN([LT_PATH_NM], |
| 19611 | +[AC_REQUIRE([AC_PROG_CC])dnl |
| 19612 | +AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM, |
| 19613 | +[if test -n "$NM"; then |
| 19614 | + # Let the user override the test. |
| 19615 | + lt_cv_path_NM="$NM" |
| 19616 | +else |
| 19617 | + lt_nm_to_check="${ac_tool_prefix}nm" |
| 19618 | + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 19619 | + lt_nm_to_check="$lt_nm_to_check nm" |
| 19620 | + fi |
| 19621 | + for lt_tmp_nm in $lt_nm_to_check; do |
| 19622 | + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 19623 | + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 19624 | + IFS="$lt_save_ifs" |
| 19625 | + test -z "$ac_dir" && ac_dir=. |
| 19626 | + tmp_nm="$ac_dir/$lt_tmp_nm" |
| 19627 | + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 19628 | + # Check to see if the nm accepts a BSD-compat flag. |
| 19629 | + # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 19630 | + # nm: unknown option "B" ignored |
| 19631 | + # Tru64's nm complains that /dev/null is an invalid object file |
| 19632 | + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 19633 | + */dev/null* | *'Invalid file or object type'*) |
| 19634 | + lt_cv_path_NM="$tmp_nm -B" |
| 19635 | + break |
| 19636 | + ;; |
| 19637 | + *) |
| 19638 | + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 19639 | + */dev/null*) |
| 19640 | + lt_cv_path_NM="$tmp_nm -p" |
| 19641 | + break |
| 19642 | + ;; |
| 19643 | + *) |
| 19644 | + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 19645 | + continue # so that we can try to find one that supports BSD flags |
| 19646 | + ;; |
| 19647 | + esac |
| 19648 | + ;; |
| 19649 | + esac |
| 19650 | + fi |
| 19651 | + done |
| 19652 | + IFS="$lt_save_ifs" |
| 19653 | + done |
| 19654 | + : ${lt_cv_path_NM=no} |
| 19655 | +fi]) |
| 19656 | +if test "$lt_cv_path_NM" != "no"; then |
| 19657 | + NM="$lt_cv_path_NM" |
| 19658 | +else |
| 19659 | + # Didn't find any BSD compatible name lister, look for dumpbin. |
| 19660 | + AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :) |
| 19661 | + AC_SUBST([DUMPBIN]) |
| 19662 | + if test "$DUMPBIN" != ":"; then |
| 19663 | + NM="$DUMPBIN" |
| 19664 | + fi |
| 19665 | +fi |
| 19666 | +test -z "$NM" && NM=nm |
| 19667 | +AC_SUBST([NM]) |
| 19668 | +_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl |
| 19669 | + |
| 19670 | +AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], |
| 19671 | + [lt_cv_nm_interface="BSD nm" |
| 19672 | + echo "int some_variable = 0;" > conftest.$ac_ext |
| 19673 | + (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD) |
| 19674 | + (eval "$ac_compile" 2>conftest.err) |
| 19675 | + cat conftest.err >&AS_MESSAGE_LOG_FD |
| 19676 | + (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD) |
| 19677 | + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
| 19678 | + cat conftest.err >&AS_MESSAGE_LOG_FD |
| 19679 | + (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD) |
| 19680 | + cat conftest.out >&AS_MESSAGE_LOG_FD |
| 19681 | + if $GREP 'External.*some_variable' conftest.out > /dev/null; then |
| 19682 | + lt_cv_nm_interface="MS dumpbin" |
| 19683 | + fi |
| 19684 | + rm -f conftest*]) |
| 19685 | +])# LT_PATH_NM |
| 19686 | + |
| 19687 | +# Old names: |
| 19688 | +AU_ALIAS([AM_PROG_NM], [LT_PATH_NM]) |
| 19689 | +AU_ALIAS([AC_PROG_NM], [LT_PATH_NM]) |
| 19690 | +dnl aclocal-1.4 backwards compatibility: |
| 19691 | +dnl AC_DEFUN([AM_PROG_NM], []) |
| 19692 | +dnl AC_DEFUN([AC_PROG_NM], []) |
| 19693 | + |
| 19694 | + |
| 19695 | +# LT_LIB_M |
| 19696 | +# -------- |
| 19697 | +# check for math library |
| 19698 | +AC_DEFUN([LT_LIB_M], |
| 19699 | +[AC_REQUIRE([AC_CANONICAL_HOST])dnl |
| 19700 | +LIBM= |
| 19701 | +case $host in |
| 19702 | +*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) |
| 19703 | + # These system don't have libm, or don't need it |
| 19704 | + ;; |
| 19705 | +*-ncr-sysv4.3*) |
| 19706 | + AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") |
| 19707 | + AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") |
| 19708 | + ;; |
| 19709 | +*) |
| 19710 | + AC_CHECK_LIB(m, cos, LIBM="-lm") |
| 19711 | + ;; |
| 19712 | +esac |
| 19713 | +AC_SUBST([LIBM]) |
| 19714 | +])# LT_LIB_M |
| 19715 | + |
| 19716 | +# Old name: |
| 19717 | +AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M]) |
| 19718 | +dnl aclocal-1.4 backwards compatibility: |
| 19719 | +dnl AC_DEFUN([AC_CHECK_LIBM], []) |
| 19720 | + |
| 19721 | + |
| 19722 | +# _LT_COMPILER_NO_RTTI([TAGNAME]) |
| 19723 | +# ------------------------------- |
| 19724 | +m4_defun([_LT_COMPILER_NO_RTTI], |
| 19725 | +[m4_require([_LT_TAG_COMPILER])dnl |
| 19726 | + |
| 19727 | +_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= |
| 19728 | + |
| 19729 | +if test "$GCC" = yes; then |
| 19730 | + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' |
| 19731 | + |
| 19732 | + _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], |
| 19733 | + lt_cv_prog_compiler_rtti_exceptions, |
| 19734 | + [-fno-rtti -fno-exceptions], [], |
| 19735 | + [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) |
| 19736 | +fi |
| 19737 | +_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1], |
| 19738 | + [Compiler flag to turn off builtin functions]) |
| 19739 | +])# _LT_COMPILER_NO_RTTI |
| 19740 | + |
| 19741 | + |
| 19742 | +# _LT_CMD_GLOBAL_SYMBOLS |
| 19743 | +# ---------------------- |
| 19744 | +m4_defun([_LT_CMD_GLOBAL_SYMBOLS], |
| 19745 | +[AC_REQUIRE([AC_CANONICAL_HOST])dnl |
| 19746 | +AC_REQUIRE([AC_PROG_CC])dnl |
| 19747 | +AC_REQUIRE([LT_PATH_NM])dnl |
| 19748 | +AC_REQUIRE([LT_PATH_LD])dnl |
| 19749 | +m4_require([_LT_DECL_SED])dnl |
| 19750 | +m4_require([_LT_DECL_EGREP])dnl |
| 19751 | +m4_require([_LT_TAG_COMPILER])dnl |
| 19752 | + |
| 19753 | +# Check for command to grab the raw symbol name followed by C symbol from nm. |
| 19754 | +AC_MSG_CHECKING([command to parse $NM output from $compiler object]) |
| 19755 | +AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], |
| 19756 | +[ |
| 19757 | +# These are sane defaults that work on at least a few old systems. |
| 19758 | +# [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 19759 | + |
| 19760 | +# Character class describing NM global symbol codes. |
| 19761 | +symcode='[[BCDEGRST]]' |
| 19762 | + |
| 19763 | +# Regexp to match symbols that can be accessed directly from C. |
| 19764 | +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' |
| 19765 | + |
| 19766 | +# Define system-specific variables. |
| 19767 | +case $host_os in |
| 19768 | +aix*) |
| 19769 | + symcode='[[BCDT]]' |
| 19770 | + ;; |
| 19771 | +cygwin* | mingw* | pw32*) |
| 19772 | + symcode='[[ABCDGISTW]]' |
| 19773 | + ;; |
| 19774 | +hpux*) |
| 19775 | + if test "$host_cpu" = ia64; then |
| 19776 | + symcode='[[ABCDEGRST]]' |
| 19777 | + fi |
| 19778 | + ;; |
| 19779 | +irix* | nonstopux*) |
| 19780 | + symcode='[[BCDEGRST]]' |
| 19781 | + ;; |
| 19782 | +osf*) |
| 19783 | + symcode='[[BCDEGQRST]]' |
| 19784 | + ;; |
| 19785 | +solaris*) |
| 19786 | + symcode='[[BDRT]]' |
| 19787 | + ;; |
| 19788 | +sco3.2v5*) |
| 19789 | + symcode='[[DT]]' |
| 19790 | + ;; |
| 19791 | +sysv4.2uw2*) |
| 19792 | + symcode='[[DT]]' |
| 19793 | + ;; |
| 19794 | +sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 19795 | + symcode='[[ABDT]]' |
| 19796 | + ;; |
| 19797 | +sysv4) |
| 19798 | + symcode='[[DFNSTU]]' |
| 19799 | + ;; |
| 19800 | +esac |
| 19801 | + |
| 19802 | +# If we're using GNU nm, then use its standard symbol codes. |
| 19803 | +case `$NM -V 2>&1` in |
| 19804 | +*GNU* | *'with BFD'*) |
| 19805 | + symcode='[[ABCDGIRSTW]]' ;; |
| 19806 | +esac |
| 19807 | + |
| 19808 | +# Transform an extracted symbol line into a proper C declaration. |
| 19809 | +# Some systems (esp. on ia64) link data and code symbols differently, |
| 19810 | +# so use this general approach. |
| 19811 | +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 19812 | + |
| 19813 | +# Transform an extracted symbol line into symbol name and symbol address |
| 19814 | +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'" |
| 19815 | +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'" |
| 19816 | + |
| 19817 | +# Handle CRLF in mingw tool chain |
| 19818 | +opt_cr= |
| 19819 | +case $build_os in |
| 19820 | +mingw*) |
| 19821 | + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 19822 | + ;; |
| 19823 | +esac |
| 19824 | + |
| 19825 | +# Try without a prefix underscore, then with it. |
| 19826 | +for ac_symprfx in "" "_"; do |
| 19827 | + |
| 19828 | + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 19829 | + symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 19830 | + |
| 19831 | + # Write the raw and C identifiers. |
| 19832 | + if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 19833 | + # Fake it for dumpbin and say T for any non-static function |
| 19834 | + # and D for any global variable. |
| 19835 | + # Also find C++ and __fastcall symbols from MSVC++, |
| 19836 | + # which start with @ or ?. |
| 19837 | + lt_cv_sys_global_symbol_pipe="$AWK ['"\ |
| 19838 | +" {last_section=section; section=\$ 3};"\ |
| 19839 | +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
| 19840 | +" \$ 0!~/External *\|/{next};"\ |
| 19841 | +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ |
| 19842 | +" {if(hide[section]) next};"\ |
| 19843 | +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ |
| 19844 | +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ |
| 19845 | +" s[1]~/^[@?]/{print s[1], s[1]; next};"\ |
| 19846 | +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ |
| 19847 | +" ' prfx=^$ac_symprfx]" |
| 19848 | + else |
| 19849 | + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
| 19850 | + fi |
| 19851 | + |
| 19852 | + # Check to see that the pipe works correctly. |
| 19853 | + pipe_works=no |
| 19854 | + |
| 19855 | + rm -f conftest* |
| 19856 | + cat > conftest.$ac_ext <<_LT_EOF |
| 19857 | +#ifdef __cplusplus |
| 19858 | +extern "C" { |
| 19859 | +#endif |
| 19860 | +char nm_test_var; |
| 19861 | +void nm_test_func(void); |
| 19862 | +void nm_test_func(void){} |
| 19863 | +#ifdef __cplusplus |
| 19864 | +} |
| 19865 | +#endif |
| 19866 | +int main(){nm_test_var='a';nm_test_func();return(0);} |
| 19867 | +_LT_EOF |
| 19868 | + |
| 19869 | + if AC_TRY_EVAL(ac_compile); then |
| 19870 | + # Now try to grab the symbols. |
| 19871 | + nlist=conftest.nm |
| 19872 | + if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then |
| 19873 | + # Try sorting and uniquifying the output. |
| 19874 | + if sort "$nlist" | uniq > "$nlist"T; then |
| 19875 | + mv -f "$nlist"T "$nlist" |
| 19876 | + else |
| 19877 | + rm -f "$nlist"T |
| 19878 | + fi |
| 19879 | + |
| 19880 | + # Make sure that we snagged all the symbols we need. |
| 19881 | + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
| 19882 | + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then |
| 19883 | + cat <<_LT_EOF > conftest.$ac_ext |
| 19884 | +#ifdef __cplusplus |
| 19885 | +extern "C" { |
| 19886 | +#endif |
| 19887 | + |
| 19888 | +_LT_EOF |
| 19889 | + # Now generate the symbol file. |
| 19890 | + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' |
| 19891 | + |
| 19892 | + cat <<_LT_EOF >> conftest.$ac_ext |
| 19893 | + |
| 19894 | +/* The mapping between symbol names and symbols. */ |
| 19895 | +const struct { |
| 19896 | + const char *name; |
| 19897 | + void *address; |
| 19898 | +} |
| 19899 | +lt__PROGRAM__LTX_preloaded_symbols[[]] = |
| 19900 | +{ |
| 19901 | + { "@PROGRAM@", (void *) 0 }, |
| 19902 | +_LT_EOF |
| 19903 | + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
| 19904 | + cat <<\_LT_EOF >> conftest.$ac_ext |
| 19905 | + {0, (void *) 0} |
| 19906 | +}; |
| 19907 | + |
| 19908 | +/* This works around a problem in FreeBSD linker */ |
| 19909 | +#ifdef FREEBSD_WORKAROUND |
| 19910 | +static const void *lt_preloaded_setup() { |
| 19911 | + return lt__PROGRAM__LTX_preloaded_symbols; |
| 19912 | +} |
| 19913 | +#endif |
| 19914 | + |
| 19915 | +#ifdef __cplusplus |
| 19916 | +} |
| 19917 | +#endif |
| 19918 | +_LT_EOF |
| 19919 | + # Now try linking the two files. |
| 19920 | + mv conftest.$ac_objext conftstm.$ac_objext |
| 19921 | + lt_save_LIBS="$LIBS" |
| 19922 | + lt_save_CFLAGS="$CFLAGS" |
| 19923 | + LIBS="conftstm.$ac_objext" |
| 19924 | + CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" |
| 19925 | + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then |
| 19926 | + pipe_works=yes |
| 19927 | + fi |
| 19928 | + LIBS="$lt_save_LIBS" |
| 19929 | + CFLAGS="$lt_save_CFLAGS" |
| 19930 | + else |
| 19931 | + echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD |
| 19932 | + fi |
| 19933 | + else |
| 19934 | + echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD |
| 19935 | + fi |
| 19936 | + else |
| 19937 | + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD |
| 19938 | + fi |
| 19939 | + else |
| 19940 | + echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD |
| 19941 | + cat conftest.$ac_ext >&5 |
| 19942 | + fi |
| 19943 | + rm -rf conftest* conftst* |
| 19944 | |
| 19945 | - if test "$pre_test_object_deps_done" = no; then |
| 19946 | - case $p in |
| 19947 | - -L* | -R*) |
| 19948 | - # Internal compiler library paths should come after those |
| 19949 | - # provided the user. The postdeps already come after the |
| 19950 | - # user supplied libs so there is no need to process them. |
| 19951 | - if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then |
| 19952 | - _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}" |
| 19953 | - else |
| 19954 | - _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}" |
| 19955 | - fi |
| 19956 | - ;; |
| 19957 | - # The "-l" case would never come before the object being |
| 19958 | - # linked, so don't bother handling this case. |
| 19959 | - esac |
| 19960 | - else |
| 19961 | - if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then |
| 19962 | - _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}" |
| 19963 | - else |
| 19964 | - _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}" |
| 19965 | - fi |
| 19966 | - fi |
| 19967 | - ;; |
| 19968 | + # Do not use the global_symbol_pipe unless it works. |
| 19969 | + if test "$pipe_works" = yes; then |
| 19970 | + break |
| 19971 | + else |
| 19972 | + lt_cv_sys_global_symbol_pipe= |
| 19973 | + fi |
| 19974 | +done |
| 19975 | +]) |
| 19976 | +if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 19977 | + lt_cv_sys_global_symbol_to_cdecl= |
| 19978 | +fi |
| 19979 | +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
| 19980 | + AC_MSG_RESULT(failed) |
| 19981 | +else |
| 19982 | + AC_MSG_RESULT(ok) |
| 19983 | +fi |
| 19984 | |
| 19985 | - *.$objext) |
| 19986 | - # This assumes that the test object file only shows up |
| 19987 | - # once in the compiler output. |
| 19988 | - if test "$p" = "conftest.$objext"; then |
| 19989 | - pre_test_object_deps_done=yes |
| 19990 | - continue |
| 19991 | - fi |
| 19992 | +_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], |
| 19993 | + [Take the output of nm and produce a listing of raw symbols and C names]) |
| 19994 | +_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], |
| 19995 | + [Transform the output of nm in a proper C declaration]) |
| 19996 | +_LT_DECL([global_symbol_to_c_name_address], |
| 19997 | + [lt_cv_sys_global_symbol_to_c_name_address], [1], |
| 19998 | + [Transform the output of nm in a C name address pair]) |
| 19999 | +_LT_DECL([global_symbol_to_c_name_address_lib_prefix], |
| 20000 | + [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], |
| 20001 | + [Transform the output of nm in a C name address pair when lib prefix is needed]) |
| 20002 | +]) # _LT_CMD_GLOBAL_SYMBOLS |
| 20003 | |
| 20004 | - if test "$pre_test_object_deps_done" = no; then |
| 20005 | - if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then |
| 20006 | - _LT_AC_TAGVAR(predep_objects, $1)="$p" |
| 20007 | - else |
| 20008 | - _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p" |
| 20009 | - fi |
| 20010 | - else |
| 20011 | - if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then |
| 20012 | - _LT_AC_TAGVAR(postdep_objects, $1)="$p" |
| 20013 | - else |
| 20014 | - _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p" |
| 20015 | - fi |
| 20016 | - fi |
| 20017 | - ;; |
| 20018 | |
| 20019 | - *) ;; # Ignore the rest. |
| 20020 | +# _LT_COMPILER_PIC([TAGNAME]) |
| 20021 | +# --------------------------- |
| 20022 | +m4_defun([_LT_COMPILER_PIC], |
| 20023 | +[m4_require([_LT_TAG_COMPILER])dnl |
| 20024 | +_LT_TAGVAR(lt_prog_compiler_wl, $1)= |
| 20025 | +_LT_TAGVAR(lt_prog_compiler_pic, $1)= |
| 20026 | +_LT_TAGVAR(lt_prog_compiler_static, $1)= |
| 20027 | + |
| 20028 | +AC_MSG_CHECKING([for $compiler option to produce PIC]) |
| 20029 | +m4_if([$1], [CXX], [ |
| 20030 | + # C++ specific cases for pic, static, wl, etc. |
| 20031 | + if test "$GXX" = yes; then |
| 20032 | + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 20033 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' |
| 20034 | |
| 20035 | + case $host_os in |
| 20036 | + aix*) |
| 20037 | + # All AIX code is PIC. |
| 20038 | + if test "$host_cpu" = ia64; then |
| 20039 | + # AIX 5 now supports IA64 processor |
| 20040 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 20041 | + fi |
| 20042 | + ;; |
| 20043 | + |
| 20044 | + amigaos*) |
| 20045 | + case $host_cpu in |
| 20046 | + powerpc) |
| 20047 | + # see comment about AmigaOS4 .so support |
| 20048 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
| 20049 | + ;; |
| 20050 | + m68k) |
| 20051 | + # FIXME: we need at least 68020 code to build shared libraries, but |
| 20052 | + # adding the `-m68020' flag to GCC prevents building anything better, |
| 20053 | + # like `-m68040'. |
| 20054 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' |
| 20055 | + ;; |
| 20056 | + esac |
| 20057 | + ;; |
| 20058 | + |
| 20059 | + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 20060 | + # PIC is the default for these OSes. |
| 20061 | + ;; |
| 20062 | + mingw* | cygwin* | os2* | pw32*) |
| 20063 | + # This hack is so that the source file can tell whether it is being |
| 20064 | + # built for inclusion in a dll (and should export symbols for example). |
| 20065 | + # Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 20066 | + # (--disable-auto-import) libraries |
| 20067 | + m4_if([$1], [GCJ], [], |
| 20068 | + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) |
| 20069 | + ;; |
| 20070 | + darwin* | rhapsody*) |
| 20071 | + # PIC is the default on this platform |
| 20072 | + # Common symbols not allowed in MH_DYLIB files |
| 20073 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' |
| 20074 | + ;; |
| 20075 | + *djgpp*) |
| 20076 | + # DJGPP does not support shared libraries at all |
| 20077 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)= |
| 20078 | + ;; |
| 20079 | + interix[[3-9]]*) |
| 20080 | + # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 20081 | + # Instead, we relocate shared libraries at runtime. |
| 20082 | + ;; |
| 20083 | + sysv4*MP*) |
| 20084 | + if test -d /usr/nec; then |
| 20085 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic |
| 20086 | + fi |
| 20087 | + ;; |
| 20088 | + hpux*) |
| 20089 | + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 20090 | + # not for PA HP-UX. |
| 20091 | + case $host_cpu in |
| 20092 | + hppa*64*|ia64*) |
| 20093 | + ;; |
| 20094 | + *) |
| 20095 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
| 20096 | + ;; |
| 20097 | + esac |
| 20098 | + ;; |
| 20099 | + *qnx* | *nto*) |
| 20100 | + # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 20101 | + # it will coredump. |
| 20102 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' |
| 20103 | + ;; |
| 20104 | + *) |
| 20105 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
| 20106 | + ;; |
| 20107 | + esac |
| 20108 | + else |
| 20109 | + case $host_os in |
| 20110 | + aix[[4-9]]*) |
| 20111 | + # All AIX code is PIC. |
| 20112 | + if test "$host_cpu" = ia64; then |
| 20113 | + # AIX 5 now supports IA64 processor |
| 20114 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 20115 | + else |
| 20116 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' |
| 20117 | + fi |
| 20118 | + ;; |
| 20119 | + chorus*) |
| 20120 | + case $cc_basename in |
| 20121 | + cxch68*) |
| 20122 | + # Green Hills C++ Compiler |
| 20123 | + # _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" |
| 20124 | + ;; |
| 20125 | + esac |
| 20126 | + ;; |
| 20127 | + dgux*) |
| 20128 | + case $cc_basename in |
| 20129 | + ec++*) |
| 20130 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 20131 | + ;; |
| 20132 | + ghcx*) |
| 20133 | + # Green Hills C++ Compiler |
| 20134 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
| 20135 | + ;; |
| 20136 | + *) |
| 20137 | + ;; |
| 20138 | + esac |
| 20139 | + ;; |
| 20140 | + freebsd* | dragonfly*) |
| 20141 | + # FreeBSD uses GNU C++ |
| 20142 | + ;; |
| 20143 | + hpux9* | hpux10* | hpux11*) |
| 20144 | + case $cc_basename in |
| 20145 | + CC*) |
| 20146 | + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 20147 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' |
| 20148 | + if test "$host_cpu" != ia64; then |
| 20149 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' |
| 20150 | + fi |
| 20151 | + ;; |
| 20152 | + aCC*) |
| 20153 | + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 20154 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' |
| 20155 | + case $host_cpu in |
| 20156 | + hppa*64*|ia64*) |
| 20157 | + # +Z the default |
| 20158 | + ;; |
| 20159 | + *) |
| 20160 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' |
| 20161 | + ;; |
| 20162 | + esac |
| 20163 | + ;; |
| 20164 | + *) |
| 20165 | + ;; |
| 20166 | + esac |
| 20167 | + ;; |
| 20168 | + interix*) |
| 20169 | + # This is c89, which is MS Visual C++ (no shared libs) |
| 20170 | + # Anyone wants to do a port? |
| 20171 | + ;; |
| 20172 | + irix5* | irix6* | nonstopux*) |
| 20173 | + case $cc_basename in |
| 20174 | + CC*) |
| 20175 | + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 20176 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
| 20177 | + # CC pic flag -KPIC is the default. |
| 20178 | + ;; |
| 20179 | + *) |
| 20180 | + ;; |
| 20181 | + esac |
| 20182 | + ;; |
| 20183 | + linux* | k*bsd*-gnu) |
| 20184 | + case $cc_basename in |
| 20185 | + KCC*) |
| 20186 | + # KAI C++ Compiler |
| 20187 | + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' |
| 20188 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
| 20189 | + ;; |
| 20190 | + icpc* | ecpc* ) |
| 20191 | + # Intel C++ |
| 20192 | + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 20193 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 20194 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' |
| 20195 | + ;; |
| 20196 | + pgCC* | pgcpp*) |
| 20197 | + # Portland Group C++ compiler |
| 20198 | + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 20199 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' |
| 20200 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 20201 | + ;; |
| 20202 | + cxx*) |
| 20203 | + # Compaq C++ |
| 20204 | + # Make sure the PIC flag is empty. It appears that all Alpha |
| 20205 | + # Linux and Compaq Tru64 Unix objects are PIC. |
| 20206 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)= |
| 20207 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
| 20208 | + ;; |
| 20209 | + xlc* | xlC*) |
| 20210 | + # IBM XL 8.0 on PPC |
| 20211 | + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 20212 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' |
| 20213 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' |
| 20214 | + ;; |
| 20215 | + *) |
| 20216 | + case `$CC -V 2>&1 | sed 5q` in |
| 20217 | + *Sun\ C*) |
| 20218 | + # Sun C++ 5.9 |
| 20219 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 20220 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 20221 | + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' |
| 20222 | + ;; |
| 20223 | + esac |
| 20224 | + ;; |
| 20225 | + esac |
| 20226 | + ;; |
| 20227 | + lynxos*) |
| 20228 | + ;; |
| 20229 | + m88k*) |
| 20230 | + ;; |
| 20231 | + mvs*) |
| 20232 | + case $cc_basename in |
| 20233 | + cxx*) |
| 20234 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' |
| 20235 | + ;; |
| 20236 | + *) |
| 20237 | + ;; |
| 20238 | + esac |
| 20239 | + ;; |
| 20240 | + netbsd*) |
| 20241 | + ;; |
| 20242 | + *qnx* | *nto*) |
| 20243 | + # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 20244 | + # it will coredump. |
| 20245 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' |
| 20246 | + ;; |
| 20247 | + osf3* | osf4* | osf5*) |
| 20248 | + case $cc_basename in |
| 20249 | + KCC*) |
| 20250 | + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' |
| 20251 | + ;; |
| 20252 | + RCC*) |
| 20253 | + # Rational C++ 2.4.1 |
| 20254 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
| 20255 | + ;; |
| 20256 | + cxx*) |
| 20257 | + # Digital/Compaq C++ |
| 20258 | + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 20259 | + # Make sure the PIC flag is empty. It appears that all Alpha |
| 20260 | + # Linux and Compaq Tru64 Unix objects are PIC. |
| 20261 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)= |
| 20262 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
| 20263 | + ;; |
| 20264 | + *) |
| 20265 | + ;; |
| 20266 | + esac |
| 20267 | + ;; |
| 20268 | + psos*) |
| 20269 | + ;; |
| 20270 | + solaris*) |
| 20271 | + case $cc_basename in |
| 20272 | + CC*) |
| 20273 | + # Sun C++ 4.2, 5.x and Centerline C++ |
| 20274 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 20275 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 20276 | + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' |
| 20277 | + ;; |
| 20278 | + gcx*) |
| 20279 | + # Green Hills C++ Compiler |
| 20280 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' |
| 20281 | + ;; |
| 20282 | + *) |
| 20283 | + ;; |
| 20284 | + esac |
| 20285 | + ;; |
| 20286 | + sunos4*) |
| 20287 | + case $cc_basename in |
| 20288 | + CC*) |
| 20289 | + # Sun C++ 4.x |
| 20290 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
| 20291 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 20292 | + ;; |
| 20293 | + lcc*) |
| 20294 | + # Lucid |
| 20295 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
| 20296 | + ;; |
| 20297 | + *) |
| 20298 | + ;; |
| 20299 | + esac |
| 20300 | + ;; |
| 20301 | + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 20302 | + case $cc_basename in |
| 20303 | + CC*) |
| 20304 | + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 20305 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 20306 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 20307 | + ;; |
| 20308 | + esac |
| 20309 | + ;; |
| 20310 | + tandem*) |
| 20311 | + case $cc_basename in |
| 20312 | + NCC*) |
| 20313 | + # NonStop-UX NCC 3.20 |
| 20314 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 20315 | + ;; |
| 20316 | + *) |
| 20317 | + ;; |
| 20318 | + esac |
| 20319 | + ;; |
| 20320 | + vxworks*) |
| 20321 | + ;; |
| 20322 | + *) |
| 20323 | + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no |
| 20324 | + ;; |
| 20325 | esac |
| 20326 | - done |
| 20327 | - |
| 20328 | - # Clean up. |
| 20329 | - rm -f a.out a.exe |
| 20330 | -else |
| 20331 | - echo "libtool.m4: error: problem compiling $1 test program" |
| 20332 | -fi |
| 20333 | - |
| 20334 | -$rm -f confest.$objext |
| 20335 | - |
| 20336 | -# PORTME: override above test on systems where it is broken |
| 20337 | -ifelse([$1],[CXX], |
| 20338 | -[case $host_os in |
| 20339 | -interix3*) |
| 20340 | - # Interix 3.5 installs completely hosed .la files for C++, so rather than |
| 20341 | - # hack all around it, let's just trust "g++" to DTRT. |
| 20342 | - _LT_AC_TAGVAR(predep_objects,$1)= |
| 20343 | - _LT_AC_TAGVAR(postdep_objects,$1)= |
| 20344 | - _LT_AC_TAGVAR(postdeps,$1)= |
| 20345 | - ;; |
| 20346 | - |
| 20347 | -linux*) |
| 20348 | - case `$CC -V 2>&1 | sed 5q` in |
| 20349 | - *Sun\ C*) |
| 20350 | - # Sun C++ 5.9 |
| 20351 | - _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun' |
| 20352 | - ;; |
| 20353 | - esac |
| 20354 | - ;; |
| 20355 | - |
| 20356 | -solaris*) |
| 20357 | - case $cc_basename in |
| 20358 | - CC*) |
| 20359 | - # Adding this requires a known-good setup of shared libraries for |
| 20360 | - # Sun compiler versions before 5.6, else PIC objects from an old |
| 20361 | - # archive will be linked into the output, leading to subtle bugs. |
| 20362 | - _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun' |
| 20363 | - ;; |
| 20364 | - esac |
| 20365 | - ;; |
| 20366 | -esac |
| 20367 | -]) |
| 20368 | - |
| 20369 | -case " $_LT_AC_TAGVAR(postdeps, $1) " in |
| 20370 | -*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;; |
| 20371 | -esac |
| 20372 | -])# AC_LIBTOOL_POSTDEP_PREDEP |
| 20373 | - |
| 20374 | -# AC_LIBTOOL_LANG_F77_CONFIG |
| 20375 | -# -------------------------- |
| 20376 | -# Ensure that the configuration vars for the C compiler are |
| 20377 | -# suitably defined. Those variables are subsequently used by |
| 20378 | -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. |
| 20379 | -AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)]) |
| 20380 | -AC_DEFUN([_LT_AC_LANG_F77_CONFIG], |
| 20381 | -[AC_REQUIRE([AC_PROG_F77]) |
| 20382 | -AC_LANG_PUSH(Fortran 77) |
| 20383 | - |
| 20384 | -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
| 20385 | -_LT_AC_TAGVAR(allow_undefined_flag, $1)= |
| 20386 | -_LT_AC_TAGVAR(always_export_symbols, $1)=no |
| 20387 | -_LT_AC_TAGVAR(archive_expsym_cmds, $1)= |
| 20388 | -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= |
| 20389 | -_LT_AC_TAGVAR(hardcode_direct, $1)=no |
| 20390 | -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= |
| 20391 | -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= |
| 20392 | -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)= |
| 20393 | -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no |
| 20394 | -_LT_AC_TAGVAR(hardcode_automatic, $1)=no |
| 20395 | -_LT_AC_TAGVAR(module_cmds, $1)= |
| 20396 | -_LT_AC_TAGVAR(module_expsym_cmds, $1)= |
| 20397 | -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown |
| 20398 | -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds |
| 20399 | -_LT_AC_TAGVAR(no_undefined_flag, $1)= |
| 20400 | -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)= |
| 20401 | -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no |
| 20402 | - |
| 20403 | -# Source file extension for f77 test sources. |
| 20404 | -ac_ext=f |
| 20405 | - |
| 20406 | -# Object file extension for compiled f77 test sources. |
| 20407 | -objext=o |
| 20408 | -_LT_AC_TAGVAR(objext, $1)=$objext |
| 20409 | - |
| 20410 | -# Code to be used in simple compile tests |
| 20411 | -lt_simple_compile_test_code=" subroutine t\n return\n end\n" |
| 20412 | - |
| 20413 | -# Code to be used in simple link tests |
| 20414 | -lt_simple_link_test_code=" program t\n end\n" |
| 20415 | - |
| 20416 | -# ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 20417 | -_LT_AC_SYS_COMPILER |
| 20418 | - |
| 20419 | -# save warnings/boilerplate of simple test code |
| 20420 | -_LT_COMPILER_BOILERPLATE |
| 20421 | -_LT_LINKER_BOILERPLATE |
| 20422 | - |
| 20423 | -# Allow CC to be a program name with arguments. |
| 20424 | -lt_save_CC="$CC" |
| 20425 | -CC=${F77-"f77"} |
| 20426 | -compiler=$CC |
| 20427 | -_LT_AC_TAGVAR(compiler, $1)=$CC |
| 20428 | -_LT_CC_BASENAME([$compiler]) |
| 20429 | - |
| 20430 | -AC_MSG_CHECKING([if libtool supports shared libraries]) |
| 20431 | -AC_MSG_RESULT([$can_build_shared]) |
| 20432 | - |
| 20433 | -AC_MSG_CHECKING([whether to build shared libraries]) |
| 20434 | -test "$can_build_shared" = "no" && enable_shared=no |
| 20435 | - |
| 20436 | -# On AIX, shared libraries and static libraries use the same namespace, and |
| 20437 | -# are all built from PIC. |
| 20438 | -case $host_os in |
| 20439 | -aix3*) |
| 20440 | - test "$enable_shared" = yes && enable_static=no |
| 20441 | - if test -n "$RANLIB"; then |
| 20442 | - archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 20443 | - postinstall_cmds='$RANLIB $lib' |
| 20444 | fi |
| 20445 | - ;; |
| 20446 | -aix4* | aix5*) |
| 20447 | - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 20448 | - test "$enable_shared" = yes && enable_static=no |
| 20449 | - fi |
| 20450 | - ;; |
| 20451 | -esac |
| 20452 | -AC_MSG_RESULT([$enable_shared]) |
| 20453 | - |
| 20454 | -AC_MSG_CHECKING([whether to build static libraries]) |
| 20455 | -# Make sure either enable_shared or enable_static is yes. |
| 20456 | -test "$enable_shared" = yes || enable_static=yes |
| 20457 | -AC_MSG_RESULT([$enable_static]) |
| 20458 | - |
| 20459 | -_LT_AC_TAGVAR(GCC, $1)="$G77" |
| 20460 | -_LT_AC_TAGVAR(LD, $1)="$LD" |
| 20461 | - |
| 20462 | -AC_LIBTOOL_PROG_COMPILER_PIC($1) |
| 20463 | -AC_LIBTOOL_PROG_CC_C_O($1) |
| 20464 | -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) |
| 20465 | -AC_LIBTOOL_PROG_LD_SHLIBS($1) |
| 20466 | -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) |
| 20467 | -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) |
| 20468 | - |
| 20469 | -AC_LIBTOOL_CONFIG($1) |
| 20470 | - |
| 20471 | -AC_LANG_POP |
| 20472 | -CC="$lt_save_CC" |
| 20473 | -])# AC_LIBTOOL_LANG_F77_CONFIG |
| 20474 | - |
| 20475 | - |
| 20476 | -# AC_LIBTOOL_LANG_GCJ_CONFIG |
| 20477 | -# -------------------------- |
| 20478 | -# Ensure that the configuration vars for the C compiler are |
| 20479 | -# suitably defined. Those variables are subsequently used by |
| 20480 | -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. |
| 20481 | -AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)]) |
| 20482 | -AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG], |
| 20483 | -[AC_LANG_SAVE |
| 20484 | - |
| 20485 | -# Source file extension for Java test sources. |
| 20486 | -ac_ext=java |
| 20487 | +], |
| 20488 | +[ |
| 20489 | + if test "$GCC" = yes; then |
| 20490 | + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 20491 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' |
| 20492 | |
| 20493 | -# Object file extension for compiled Java test sources. |
| 20494 | -objext=o |
| 20495 | -_LT_AC_TAGVAR(objext, $1)=$objext |
| 20496 | + case $host_os in |
| 20497 | + aix*) |
| 20498 | + # All AIX code is PIC. |
| 20499 | + if test "$host_cpu" = ia64; then |
| 20500 | + # AIX 5 now supports IA64 processor |
| 20501 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 20502 | + fi |
| 20503 | + ;; |
| 20504 | |
| 20505 | -# Code to be used in simple compile tests |
| 20506 | -lt_simple_compile_test_code="class foo {}\n" |
| 20507 | + amigaos*) |
| 20508 | + case $host_cpu in |
| 20509 | + powerpc) |
| 20510 | + # see comment about AmigaOS4 .so support |
| 20511 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
| 20512 | + ;; |
| 20513 | + m68k) |
| 20514 | + # FIXME: we need at least 68020 code to build shared libraries, but |
| 20515 | + # adding the `-m68020' flag to GCC prevents building anything better, |
| 20516 | + # like `-m68040'. |
| 20517 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' |
| 20518 | + ;; |
| 20519 | + esac |
| 20520 | + ;; |
| 20521 | |
| 20522 | -# Code to be used in simple link tests |
| 20523 | -lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n' |
| 20524 | + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 20525 | + # PIC is the default for these OSes. |
| 20526 | + ;; |
| 20527 | |
| 20528 | -# ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 20529 | -_LT_AC_SYS_COMPILER |
| 20530 | + mingw* | cygwin* | pw32* | os2*) |
| 20531 | + # This hack is so that the source file can tell whether it is being |
| 20532 | + # built for inclusion in a dll (and should export symbols for example). |
| 20533 | + # Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 20534 | + # (--disable-auto-import) libraries |
| 20535 | + m4_if([$1], [GCJ], [], |
| 20536 | + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) |
| 20537 | + ;; |
| 20538 | |
| 20539 | -# save warnings/boilerplate of simple test code |
| 20540 | -_LT_COMPILER_BOILERPLATE |
| 20541 | -_LT_LINKER_BOILERPLATE |
| 20542 | + darwin* | rhapsody*) |
| 20543 | + # PIC is the default on this platform |
| 20544 | + # Common symbols not allowed in MH_DYLIB files |
| 20545 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' |
| 20546 | + ;; |
| 20547 | |
| 20548 | -# Allow CC to be a program name with arguments. |
| 20549 | -lt_save_CC="$CC" |
| 20550 | -CC=${GCJ-"gcj"} |
| 20551 | -compiler=$CC |
| 20552 | -_LT_AC_TAGVAR(compiler, $1)=$CC |
| 20553 | -_LT_CC_BASENAME([$compiler]) |
| 20554 | + hpux*) |
| 20555 | + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 20556 | + # not for PA HP-UX. |
| 20557 | + case $host_cpu in |
| 20558 | + hppa*64*|ia64*) |
| 20559 | + # +Z the default |
| 20560 | + ;; |
| 20561 | + *) |
| 20562 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
| 20563 | + ;; |
| 20564 | + esac |
| 20565 | + ;; |
| 20566 | |
| 20567 | -# GCJ did not exist at the time GCC didn't implicitly link libc in. |
| 20568 | -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
| 20569 | + interix[[3-9]]*) |
| 20570 | + # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 20571 | + # Instead, we relocate shared libraries at runtime. |
| 20572 | + ;; |
| 20573 | |
| 20574 | -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds |
| 20575 | + msdosdjgpp*) |
| 20576 | + # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 20577 | + # on systems that don't support them. |
| 20578 | + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no |
| 20579 | + enable_shared=no |
| 20580 | + ;; |
| 20581 | |
| 20582 | -## CAVEAT EMPTOR: |
| 20583 | -## There is no encapsulation within the following macros, do not change |
| 20584 | -## the running order or otherwise move them around unless you know exactly |
| 20585 | -## what you are doing... |
| 20586 | -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) |
| 20587 | -AC_LIBTOOL_PROG_COMPILER_PIC($1) |
| 20588 | -AC_LIBTOOL_PROG_CC_C_O($1) |
| 20589 | -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) |
| 20590 | -AC_LIBTOOL_PROG_LD_SHLIBS($1) |
| 20591 | -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) |
| 20592 | -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) |
| 20593 | + *nto* | *qnx*) |
| 20594 | + # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 20595 | + # it will coredump. |
| 20596 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' |
| 20597 | + ;; |
| 20598 | |
| 20599 | -AC_LIBTOOL_CONFIG($1) |
| 20600 | + sysv4*MP*) |
| 20601 | + if test -d /usr/nec; then |
| 20602 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic |
| 20603 | + fi |
| 20604 | + ;; |
| 20605 | |
| 20606 | -AC_LANG_RESTORE |
| 20607 | -CC="$lt_save_CC" |
| 20608 | -])# AC_LIBTOOL_LANG_GCJ_CONFIG |
| 20609 | + *) |
| 20610 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
| 20611 | + ;; |
| 20612 | + esac |
| 20613 | + else |
| 20614 | + # PORTME Check for flag to pass linker flags through the system compiler. |
| 20615 | + case $host_os in |
| 20616 | + aix*) |
| 20617 | + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 20618 | + if test "$host_cpu" = ia64; then |
| 20619 | + # AIX 5 now supports IA64 processor |
| 20620 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 20621 | + else |
| 20622 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' |
| 20623 | + fi |
| 20624 | + ;; |
| 20625 | |
| 20626 | + mingw* | cygwin* | pw32* | os2*) |
| 20627 | + # This hack is so that the source file can tell whether it is being |
| 20628 | + # built for inclusion in a dll (and should export symbols for example). |
| 20629 | + m4_if([$1], [GCJ], [], |
| 20630 | + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) |
| 20631 | + ;; |
| 20632 | |
| 20633 | -# AC_LIBTOOL_LANG_RC_CONFIG |
| 20634 | -# ------------------------- |
| 20635 | -# Ensure that the configuration vars for the Windows resource compiler are |
| 20636 | -# suitably defined. Those variables are subsequently used by |
| 20637 | -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. |
| 20638 | -AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)]) |
| 20639 | -AC_DEFUN([_LT_AC_LANG_RC_CONFIG], |
| 20640 | -[AC_LANG_SAVE |
| 20641 | + hpux9* | hpux10* | hpux11*) |
| 20642 | + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 20643 | + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 20644 | + # not for PA HP-UX. |
| 20645 | + case $host_cpu in |
| 20646 | + hppa*64*|ia64*) |
| 20647 | + # +Z the default |
| 20648 | + ;; |
| 20649 | + *) |
| 20650 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' |
| 20651 | + ;; |
| 20652 | + esac |
| 20653 | + # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 20654 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' |
| 20655 | + ;; |
| 20656 | |
| 20657 | -# Source file extension for RC test sources. |
| 20658 | -ac_ext=rc |
| 20659 | + irix5* | irix6* | nonstopux*) |
| 20660 | + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 20661 | + # PIC (with -KPIC) is the default. |
| 20662 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
| 20663 | + ;; |
| 20664 | |
| 20665 | -# Object file extension for compiled RC test sources. |
| 20666 | -objext=o |
| 20667 | -_LT_AC_TAGVAR(objext, $1)=$objext |
| 20668 | + linux* | k*bsd*-gnu) |
| 20669 | + case $cc_basename in |
| 20670 | + icc* | ecc* | ifort*) |
| 20671 | + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 20672 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 20673 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' |
| 20674 | + ;; |
| 20675 | + pgcc* | pgf77* | pgf90* | pgf95*) |
| 20676 | + # Portland Group compilers (*not* the Pentium gcc compiler, |
| 20677 | + # which looks to be a dead project) |
| 20678 | + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 20679 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' |
| 20680 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 20681 | + ;; |
| 20682 | + ccc*) |
| 20683 | + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 20684 | + # All Alpha code is PIC. |
| 20685 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
| 20686 | + ;; |
| 20687 | + xl*) |
| 20688 | + # IBM XL C 8.0/Fortran 10.1 on PPC |
| 20689 | + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 20690 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' |
| 20691 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' |
| 20692 | + ;; |
| 20693 | + *) |
| 20694 | + case `$CC -V 2>&1 | sed 5q` in |
| 20695 | + *Sun\ C*) |
| 20696 | + # Sun C 5.9 |
| 20697 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 20698 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 20699 | + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 20700 | + ;; |
| 20701 | + *Sun\ F*) |
| 20702 | + # Sun Fortran 8.3 passes all unrecognized flags to the linker |
| 20703 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 20704 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 20705 | + _LT_TAGVAR(lt_prog_compiler_wl, $1)='' |
| 20706 | + ;; |
| 20707 | + esac |
| 20708 | + ;; |
| 20709 | + esac |
| 20710 | + ;; |
| 20711 | |
| 20712 | -# Code to be used in simple compile tests |
| 20713 | -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' |
| 20714 | + newsos6) |
| 20715 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 20716 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 20717 | + ;; |
| 20718 | |
| 20719 | -# Code to be used in simple link tests |
| 20720 | -lt_simple_link_test_code="$lt_simple_compile_test_code" |
| 20721 | + *nto* | *qnx*) |
| 20722 | + # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 20723 | + # it will coredump. |
| 20724 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' |
| 20725 | + ;; |
| 20726 | |
| 20727 | -# ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 20728 | -_LT_AC_SYS_COMPILER |
| 20729 | + osf3* | osf4* | osf5*) |
| 20730 | + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 20731 | + # All OSF/1 code is PIC. |
| 20732 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
| 20733 | + ;; |
| 20734 | |
| 20735 | -# save warnings/boilerplate of simple test code |
| 20736 | -_LT_COMPILER_BOILERPLATE |
| 20737 | -_LT_LINKER_BOILERPLATE |
| 20738 | + rdos*) |
| 20739 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
| 20740 | + ;; |
| 20741 | |
| 20742 | -# Allow CC to be a program name with arguments. |
| 20743 | -lt_save_CC="$CC" |
| 20744 | -CC=${RC-"windres"} |
| 20745 | -compiler=$CC |
| 20746 | -_LT_AC_TAGVAR(compiler, $1)=$CC |
| 20747 | -_LT_CC_BASENAME([$compiler]) |
| 20748 | -_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes |
| 20749 | + solaris*) |
| 20750 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 20751 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 20752 | + case $cc_basename in |
| 20753 | + f77* | f90* | f95*) |
| 20754 | + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; |
| 20755 | + *) |
| 20756 | + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; |
| 20757 | + esac |
| 20758 | + ;; |
| 20759 | |
| 20760 | -AC_LIBTOOL_CONFIG($1) |
| 20761 | + sunos4*) |
| 20762 | + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' |
| 20763 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' |
| 20764 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 20765 | + ;; |
| 20766 | |
| 20767 | -AC_LANG_RESTORE |
| 20768 | -CC="$lt_save_CC" |
| 20769 | -])# AC_LIBTOOL_LANG_RC_CONFIG |
| 20770 | + sysv4 | sysv4.2uw2* | sysv4.3*) |
| 20771 | + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 20772 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 20773 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 20774 | + ;; |
| 20775 | + |
| 20776 | + sysv4*MP*) |
| 20777 | + if test -d /usr/nec ;then |
| 20778 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' |
| 20779 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 20780 | + fi |
| 20781 | + ;; |
| 20782 | |
| 20783 | + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 20784 | + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 20785 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 20786 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 20787 | + ;; |
| 20788 | |
| 20789 | -# AC_LIBTOOL_CONFIG([TAGNAME]) |
| 20790 | -# ---------------------------- |
| 20791 | -# If TAGNAME is not passed, then create an initial libtool script |
| 20792 | -# with a default configuration from the untagged config vars. Otherwise |
| 20793 | -# add code to config.status for appending the configuration named by |
| 20794 | -# TAGNAME from the matching tagged config vars. |
| 20795 | -AC_DEFUN([AC_LIBTOOL_CONFIG], |
| 20796 | -[# The else clause should only fire when bootstrapping the |
| 20797 | -# libtool distribution, otherwise you forgot to ship ltmain.sh |
| 20798 | -# with your package, and you will get complaints that there are |
| 20799 | -# no rules to generate ltmain.sh. |
| 20800 | -if test -f "$ltmain"; then |
| 20801 | - # See if we are running on zsh, and set the options which allow our commands through |
| 20802 | - # without removal of \ escapes. |
| 20803 | - if test -n "${ZSH_VERSION+set}" ; then |
| 20804 | - setopt NO_GLOB_SUBST |
| 20805 | - fi |
| 20806 | - # Now quote all the things that may contain metacharacters while being |
| 20807 | - # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 20808 | - # variables and quote the copies for generation of the libtool script. |
| 20809 | - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
| 20810 | - SED SHELL STRIP \ |
| 20811 | - libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 20812 | - old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 20813 | - deplibs_check_method reload_flag reload_cmds need_locks \ |
| 20814 | - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 20815 | - lt_cv_sys_global_symbol_to_c_name_address \ |
| 20816 | - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 20817 | - old_postinstall_cmds old_postuninstall_cmds \ |
| 20818 | - _LT_AC_TAGVAR(compiler, $1) \ |
| 20819 | - _LT_AC_TAGVAR(CC, $1) \ |
| 20820 | - _LT_AC_TAGVAR(LD, $1) \ |
| 20821 | - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \ |
| 20822 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \ |
| 20823 | - _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \ |
| 20824 | - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \ |
| 20825 | - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \ |
| 20826 | - _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \ |
| 20827 | - _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \ |
| 20828 | - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \ |
| 20829 | - _LT_AC_TAGVAR(old_archive_cmds, $1) \ |
| 20830 | - _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \ |
| 20831 | - _LT_AC_TAGVAR(predep_objects, $1) \ |
| 20832 | - _LT_AC_TAGVAR(postdep_objects, $1) \ |
| 20833 | - _LT_AC_TAGVAR(predeps, $1) \ |
| 20834 | - _LT_AC_TAGVAR(postdeps, $1) \ |
| 20835 | - _LT_AC_TAGVAR(compiler_lib_search_path, $1) \ |
| 20836 | - _LT_AC_TAGVAR(archive_cmds, $1) \ |
| 20837 | - _LT_AC_TAGVAR(archive_expsym_cmds, $1) \ |
| 20838 | - _LT_AC_TAGVAR(postinstall_cmds, $1) \ |
| 20839 | - _LT_AC_TAGVAR(postuninstall_cmds, $1) \ |
| 20840 | - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \ |
| 20841 | - _LT_AC_TAGVAR(allow_undefined_flag, $1) \ |
| 20842 | - _LT_AC_TAGVAR(no_undefined_flag, $1) \ |
| 20843 | - _LT_AC_TAGVAR(export_symbols_cmds, $1) \ |
| 20844 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \ |
| 20845 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \ |
| 20846 | - _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \ |
| 20847 | - _LT_AC_TAGVAR(hardcode_automatic, $1) \ |
| 20848 | - _LT_AC_TAGVAR(module_cmds, $1) \ |
| 20849 | - _LT_AC_TAGVAR(module_expsym_cmds, $1) \ |
| 20850 | - _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \ |
| 20851 | - _LT_AC_TAGVAR(exclude_expsyms, $1) \ |
| 20852 | - _LT_AC_TAGVAR(include_expsyms, $1); do |
| 20853 | - |
| 20854 | - case $var in |
| 20855 | - _LT_AC_TAGVAR(old_archive_cmds, $1) | \ |
| 20856 | - _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \ |
| 20857 | - _LT_AC_TAGVAR(archive_cmds, $1) | \ |
| 20858 | - _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \ |
| 20859 | - _LT_AC_TAGVAR(module_cmds, $1) | \ |
| 20860 | - _LT_AC_TAGVAR(module_expsym_cmds, $1) | \ |
| 20861 | - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \ |
| 20862 | - _LT_AC_TAGVAR(export_symbols_cmds, $1) | \ |
| 20863 | - extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 20864 | - postinstall_cmds | postuninstall_cmds | \ |
| 20865 | - old_postinstall_cmds | old_postuninstall_cmds | \ |
| 20866 | - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 20867 | - # Double-quote double-evaled strings. |
| 20868 | - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 20869 | + unicos*) |
| 20870 | + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 20871 | + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no |
| 20872 | + ;; |
| 20873 | + |
| 20874 | + uts4*) |
| 20875 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
| 20876 | + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 20877 | ;; |
| 20878 | + |
| 20879 | *) |
| 20880 | - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 20881 | + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no |
| 20882 | ;; |
| 20883 | esac |
| 20884 | - done |
| 20885 | - |
| 20886 | - case $lt_echo in |
| 20887 | - *'\[$]0 --fallback-echo"') |
| 20888 | - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'` |
| 20889 | + fi |
| 20890 | +]) |
| 20891 | +case $host_os in |
| 20892 | + # For platforms which do not support PIC, -DPIC is meaningless: |
| 20893 | + *djgpp*) |
| 20894 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)= |
| 20895 | ;; |
| 20896 | - esac |
| 20897 | - |
| 20898 | -ifelse([$1], [], |
| 20899 | - [cfgfile="${ofile}T" |
| 20900 | - trap "$rm \"$cfgfile\"; exit 1" 1 2 15 |
| 20901 | - $rm -f "$cfgfile" |
| 20902 | - AC_MSG_NOTICE([creating $ofile])], |
| 20903 | - [cfgfile="$ofile"]) |
| 20904 | - |
| 20905 | - cat <<__EOF__ >> "$cfgfile" |
| 20906 | -ifelse([$1], [], |
| 20907 | -[#! $SHELL |
| 20908 | + *) |
| 20909 | + _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" |
| 20910 | + ;; |
| 20911 | +esac |
| 20912 | +AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) |
| 20913 | +_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], |
| 20914 | + [How to pass a linker flag through the compiler]) |
| 20915 | |
| 20916 | -# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
| 20917 | -# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
| 20918 | -# NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 20919 | # |
| 20920 | -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 |
| 20921 | -# Free Software Foundation, Inc. |
| 20922 | -# |
| 20923 | -# This file is part of GNU Libtool: |
| 20924 | -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
| 20925 | -# |
| 20926 | -# This program is free software; you can redistribute it and/or modify |
| 20927 | -# it under the terms of the GNU General Public License as published by |
| 20928 | -# the Free Software Foundation; either version 2 of the License, or |
| 20929 | -# (at your option) any later version. |
| 20930 | +# Check to make sure the PIC flag actually works. |
| 20931 | # |
| 20932 | -# This program is distributed in the hope that it will be useful, but |
| 20933 | -# WITHOUT ANY WARRANTY; without even the implied warranty of |
| 20934 | -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 20935 | -# General Public License for more details. |
| 20936 | +if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then |
| 20937 | + _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works], |
| 20938 | + [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)], |
| 20939 | + [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [], |
| 20940 | + [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in |
| 20941 | + "" | " "*) ;; |
| 20942 | + *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;; |
| 20943 | + esac], |
| 20944 | + [_LT_TAGVAR(lt_prog_compiler_pic, $1)= |
| 20945 | + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) |
| 20946 | +fi |
| 20947 | +_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], |
| 20948 | + [Additional compiler flags for building library objects]) |
| 20949 | + |
| 20950 | # |
| 20951 | -# You should have received a copy of the GNU General Public License |
| 20952 | -# along with this program; if not, write to the Free Software |
| 20953 | -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 20954 | +# Check to make sure the static flag actually works. |
| 20955 | # |
| 20956 | -# As a special exception to the GNU General Public License, if you |
| 20957 | -# distribute this file as part of a program that contains a |
| 20958 | -# configuration script generated by Autoconf, you may include it under |
| 20959 | -# the same distribution terms that you use for the rest of that program. |
| 20960 | - |
| 20961 | -# A sed program that does not truncate output. |
| 20962 | -SED=$lt_SED |
| 20963 | - |
| 20964 | -# Sed that helps us avoid accidentally triggering echo(1) options like -n. |
| 20965 | -Xsed="$SED -e 1s/^X//" |
| 20966 | - |
| 20967 | -# The HP-UX ksh and POSIX shell print the target directory to stdout |
| 20968 | -# if CDPATH is set. |
| 20969 | -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 20970 | - |
| 20971 | -# The names of the tagged configurations supported by this script. |
| 20972 | -available_tags= |
| 20973 | - |
| 20974 | -# ### BEGIN LIBTOOL CONFIG], |
| 20975 | -[# ### BEGIN LIBTOOL TAG CONFIG: $tagname]) |
| 20976 | - |
| 20977 | -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 20978 | - |
| 20979 | -# Shell to use when invoking shell scripts. |
| 20980 | -SHELL=$lt_SHELL |
| 20981 | - |
| 20982 | -# Whether or not to build shared libraries. |
| 20983 | -build_libtool_libs=$enable_shared |
| 20984 | - |
| 20985 | -# Whether or not to build static libraries. |
| 20986 | -build_old_libs=$enable_static |
| 20987 | - |
| 20988 | -# Whether or not to add -lc for building shared libraries. |
| 20989 | -build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1) |
| 20990 | - |
| 20991 | -# Whether or not to disallow shared libs when runtime libs are static |
| 20992 | -allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) |
| 20993 | - |
| 20994 | -# Whether or not to optimize for fast installation. |
| 20995 | -fast_install=$enable_fast_install |
| 20996 | - |
| 20997 | -# The host system. |
| 20998 | -host_alias=$host_alias |
| 20999 | -host=$host |
| 21000 | -host_os=$host_os |
| 21001 | +wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\" |
| 21002 | +_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], |
| 21003 | + _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1), |
| 21004 | + $lt_tmp_static_flag, |
| 21005 | + [], |
| 21006 | + [_LT_TAGVAR(lt_prog_compiler_static, $1)=]) |
| 21007 | +_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1], |
| 21008 | + [Compiler flag to prevent dynamic linking]) |
| 21009 | +])# _LT_COMPILER_PIC |
| 21010 | |
| 21011 | -# The build system. |
| 21012 | -build_alias=$build_alias |
| 21013 | -build=$build |
| 21014 | -build_os=$build_os |
| 21015 | |
| 21016 | -# An echo program that does not interpret backslashes. |
| 21017 | -echo=$lt_echo |
| 21018 | +# _LT_LINKER_SHLIBS([TAGNAME]) |
| 21019 | +# ---------------------------- |
| 21020 | +# See if the linker supports building shared libraries. |
| 21021 | +m4_defun([_LT_LINKER_SHLIBS], |
| 21022 | +[AC_REQUIRE([LT_PATH_LD])dnl |
| 21023 | +AC_REQUIRE([LT_PATH_NM])dnl |
| 21024 | +m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
| 21025 | +m4_require([_LT_DECL_EGREP])dnl |
| 21026 | +m4_require([_LT_DECL_SED])dnl |
| 21027 | +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl |
| 21028 | +m4_require([_LT_TAG_COMPILER])dnl |
| 21029 | +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) |
| 21030 | +m4_if([$1], [CXX], [ |
| 21031 | + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 21032 | + case $host_os in |
| 21033 | + aix[[4-9]]*) |
| 21034 | + # If we're using GNU nm, then we don't want the "-C" option. |
| 21035 | + # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 21036 | + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
| 21037 | + _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' |
| 21038 | + else |
| 21039 | + _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' |
| 21040 | + fi |
| 21041 | + ;; |
| 21042 | + pw32*) |
| 21043 | + _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" |
| 21044 | + ;; |
| 21045 | + cygwin* | mingw*) |
| 21046 | + _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' |
| 21047 | + ;; |
| 21048 | + *) |
| 21049 | + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 21050 | + ;; |
| 21051 | + esac |
| 21052 | + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] |
| 21053 | +], [ |
| 21054 | + runpath_var= |
| 21055 | + _LT_TAGVAR(allow_undefined_flag, $1)= |
| 21056 | + _LT_TAGVAR(always_export_symbols, $1)=no |
| 21057 | + _LT_TAGVAR(archive_cmds, $1)= |
| 21058 | + _LT_TAGVAR(archive_expsym_cmds, $1)= |
| 21059 | + _LT_TAGVAR(compiler_needs_object, $1)=no |
| 21060 | + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no |
| 21061 | + _LT_TAGVAR(export_dynamic_flag_spec, $1)= |
| 21062 | + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 21063 | + _LT_TAGVAR(hardcode_automatic, $1)=no |
| 21064 | + _LT_TAGVAR(hardcode_direct, $1)=no |
| 21065 | + _LT_TAGVAR(hardcode_direct_absolute, $1)=no |
| 21066 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= |
| 21067 | + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= |
| 21068 | + _LT_TAGVAR(hardcode_libdir_separator, $1)= |
| 21069 | + _LT_TAGVAR(hardcode_minus_L, $1)=no |
| 21070 | + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
| 21071 | + _LT_TAGVAR(inherit_rpath, $1)=no |
| 21072 | + _LT_TAGVAR(link_all_deplibs, $1)=unknown |
| 21073 | + _LT_TAGVAR(module_cmds, $1)= |
| 21074 | + _LT_TAGVAR(module_expsym_cmds, $1)= |
| 21075 | + _LT_TAGVAR(old_archive_from_new_cmds, $1)= |
| 21076 | + _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)= |
| 21077 | + _LT_TAGVAR(thread_safe_flag_spec, $1)= |
| 21078 | + _LT_TAGVAR(whole_archive_flag_spec, $1)= |
| 21079 | + # include_expsyms should be a list of space-separated symbols to be *always* |
| 21080 | + # included in the symbol list |
| 21081 | + _LT_TAGVAR(include_expsyms, $1)= |
| 21082 | + # exclude_expsyms can be an extended regexp of symbols to exclude |
| 21083 | + # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 21084 | + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 21085 | + # as well as any symbol that contains `d'. |
| 21086 | + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] |
| 21087 | + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 21088 | + # platforms (ab)use it in PIC code, but their linkers get confused if |
| 21089 | + # the symbol is explicitly referenced. Since portable code cannot |
| 21090 | + # rely on this symbol name, it's probably fine to never include it in |
| 21091 | + # preloaded symbol tables. |
| 21092 | + # Exclude shared library initialization/finalization symbols. |
| 21093 | +dnl Note also adjust exclude_expsyms for C++ above. |
| 21094 | + extract_expsyms_cmds= |
| 21095 | |
| 21096 | -# The archiver. |
| 21097 | -AR=$lt_AR |
| 21098 | -AR_FLAGS=$lt_AR_FLAGS |
| 21099 | + case $host_os in |
| 21100 | + cygwin* | mingw* | pw32*) |
| 21101 | + # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 21102 | + # When not using gcc, we currently assume that we are using |
| 21103 | + # Microsoft Visual C++. |
| 21104 | + if test "$GCC" != yes; then |
| 21105 | + with_gnu_ld=no |
| 21106 | + fi |
| 21107 | + ;; |
| 21108 | + interix*) |
| 21109 | + # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 21110 | + with_gnu_ld=yes |
| 21111 | + ;; |
| 21112 | + openbsd*) |
| 21113 | + with_gnu_ld=no |
| 21114 | + ;; |
| 21115 | + esac |
| 21116 | |
| 21117 | -# A C compiler. |
| 21118 | -LTCC=$lt_LTCC |
| 21119 | + _LT_TAGVAR(ld_shlibs, $1)=yes |
| 21120 | + if test "$with_gnu_ld" = yes; then |
| 21121 | + # If archive_cmds runs LD, not CC, wlarc should be empty |
| 21122 | + wlarc='${wl}' |
| 21123 | |
| 21124 | -# LTCC compiler flags. |
| 21125 | -LTCFLAGS=$lt_LTCFLAGS |
| 21126 | + # Set some defaults for GNU ld with shared library support. These |
| 21127 | + # are reset later if shared libraries are not supported. Putting them |
| 21128 | + # here allows them to be overridden if necessary. |
| 21129 | + runpath_var=LD_RUN_PATH |
| 21130 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
| 21131 | + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
| 21132 | + # ancient GNU ld didn't support --whole-archive et. al. |
| 21133 | + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then |
| 21134 | + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 21135 | + else |
| 21136 | + _LT_TAGVAR(whole_archive_flag_spec, $1)= |
| 21137 | + fi |
| 21138 | + supports_anon_versioning=no |
| 21139 | + case `$LD -v 2>&1` in |
| 21140 | + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 21141 | + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 21142 | + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 21143 | + *\ 2.11.*) ;; # other 2.11 versions |
| 21144 | + *) supports_anon_versioning=yes ;; |
| 21145 | + esac |
| 21146 | |
| 21147 | -# A language-specific compiler. |
| 21148 | -CC=$lt_[]_LT_AC_TAGVAR(compiler, $1) |
| 21149 | + # See if GNU ld supports shared libraries. |
| 21150 | + case $host_os in |
| 21151 | + aix[[3-9]]*) |
| 21152 | + # On AIX/PPC, the GNU linker is very broken |
| 21153 | + if test "$host_cpu" != ia64; then |
| 21154 | + _LT_TAGVAR(ld_shlibs, $1)=no |
| 21155 | + cat <<_LT_EOF 1>&2 |
| 21156 | |
| 21157 | -# Is the compiler the GNU C compiler? |
| 21158 | -with_gcc=$_LT_AC_TAGVAR(GCC, $1) |
| 21159 | +*** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 21160 | +*** to be unable to reliably create shared libraries on AIX. |
| 21161 | +*** Therefore, libtool is disabling shared libraries support. If you |
| 21162 | +*** really care for shared libraries, you may want to modify your PATH |
| 21163 | +*** so that a non-GNU linker is found, and then restart. |
| 21164 | |
| 21165 | -# An ERE matcher. |
| 21166 | -EGREP=$lt_EGREP |
| 21167 | +_LT_EOF |
| 21168 | + fi |
| 21169 | + ;; |
| 21170 | |
| 21171 | -# The linker used to build libraries. |
| 21172 | -LD=$lt_[]_LT_AC_TAGVAR(LD, $1) |
| 21173 | + amigaos*) |
| 21174 | + case $host_cpu in |
| 21175 | + powerpc) |
| 21176 | + # see comment about AmigaOS4 .so support |
| 21177 | + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 21178 | + _LT_TAGVAR(archive_expsym_cmds, $1)='' |
| 21179 | + ;; |
| 21180 | + m68k) |
| 21181 | + _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)' |
| 21182 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| 21183 | + _LT_TAGVAR(hardcode_minus_L, $1)=yes |
| 21184 | + ;; |
| 21185 | + esac |
| 21186 | + ;; |
| 21187 | |
| 21188 | -# Whether we need hard or soft links. |
| 21189 | -LN_S=$lt_LN_S |
| 21190 | + beos*) |
| 21191 | + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 21192 | + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported |
| 21193 | + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 21194 | + # support --undefined. This deserves some investigation. FIXME |
| 21195 | + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 21196 | + else |
| 21197 | + _LT_TAGVAR(ld_shlibs, $1)=no |
| 21198 | + fi |
| 21199 | + ;; |
| 21200 | |
| 21201 | -# A BSD-compatible nm program. |
| 21202 | -NM=$lt_NM |
| 21203 | + cygwin* | mingw* | pw32*) |
| 21204 | + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, |
| 21205 | + # as there is no search path for DLLs. |
| 21206 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| 21207 | + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported |
| 21208 | + _LT_TAGVAR(always_export_symbols, $1)=no |
| 21209 | + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
| 21210 | + _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' |
| 21211 | |
| 21212 | -# A symbol stripping program |
| 21213 | -STRIP=$lt_STRIP |
| 21214 | + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
| 21215 | + _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' |
| 21216 | + # If the export-symbols file already is a .def file (1st line |
| 21217 | + # is EXPORTS), use it as is; otherwise, prepend... |
| 21218 | + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 21219 | + cp $export_symbols $output_objdir/$soname.def; |
| 21220 | + else |
| 21221 | + echo EXPORTS > $output_objdir/$soname.def; |
| 21222 | + cat $export_symbols >> $output_objdir/$soname.def; |
| 21223 | + fi~ |
| 21224 | + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 21225 | + else |
| 21226 | + _LT_TAGVAR(ld_shlibs, $1)=no |
| 21227 | + fi |
| 21228 | + ;; |
| 21229 | |
| 21230 | -# Used to examine libraries when file_magic_cmd begins "file" |
| 21231 | -MAGIC_CMD=$MAGIC_CMD |
| 21232 | + interix[[3-9]]*) |
| 21233 | + _LT_TAGVAR(hardcode_direct, $1)=no |
| 21234 | + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 21235 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
| 21236 | + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
| 21237 | + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 21238 | + # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 21239 | + # default) and relocated if they conflict, which is a slow very memory |
| 21240 | + # consuming and fragmenting process. To avoid this, we pick a random, |
| 21241 | + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 21242 | + # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 21243 | + _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' |
| 21244 | + _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' |
| 21245 | + ;; |
| 21246 | |
| 21247 | -# Used on cygwin: DLL creation program. |
| 21248 | -DLLTOOL="$DLLTOOL" |
| 21249 | + gnu* | linux* | tpf* | k*bsd*-gnu) |
| 21250 | + tmp_diet=no |
| 21251 | + if test "$host_os" = linux-dietlibc; then |
| 21252 | + case $cc_basename in |
| 21253 | + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) |
| 21254 | + esac |
| 21255 | + fi |
| 21256 | + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ |
| 21257 | + && test "$tmp_diet" = no |
| 21258 | + then |
| 21259 | + tmp_addflag= |
| 21260 | + tmp_sharedflag='-shared' |
| 21261 | + case $cc_basename,$host_cpu in |
| 21262 | + pgcc*) # Portland Group C compiler |
| 21263 | + _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' |
| 21264 | + tmp_addflag=' $pic_flag' |
| 21265 | + ;; |
| 21266 | + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| 21267 | + _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' |
| 21268 | + tmp_addflag=' $pic_flag -Mnomain' ;; |
| 21269 | + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 21270 | + tmp_addflag=' -i_dynamic' ;; |
| 21271 | + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 21272 | + tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 21273 | + ifc* | ifort*) # Intel Fortran compiler |
| 21274 | + tmp_addflag=' -nofor_main' ;; |
| 21275 | + xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
| 21276 | + tmp_sharedflag='-qmkshrobj' |
| 21277 | + tmp_addflag= ;; |
| 21278 | + esac |
| 21279 | + case `$CC -V 2>&1 | sed 5q` in |
| 21280 | + *Sun\ C*) # Sun C 5.9 |
| 21281 | + _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' |
| 21282 | + _LT_TAGVAR(compiler_needs_object, $1)=yes |
| 21283 | + tmp_sharedflag='-G' ;; |
| 21284 | + *Sun\ F*) # Sun Fortran 8.3 |
| 21285 | + tmp_sharedflag='-G' ;; |
| 21286 | + esac |
| 21287 | + _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 21288 | |
| 21289 | -# Used on cygwin: object dumper. |
| 21290 | -OBJDUMP="$OBJDUMP" |
| 21291 | + if test "x$supports_anon_versioning" = xyes; then |
| 21292 | + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ |
| 21293 | + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 21294 | + echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 21295 | + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 21296 | + fi |
| 21297 | |
| 21298 | -# Used on cygwin: assembler. |
| 21299 | -AS="$AS" |
| 21300 | + case $cc_basename in |
| 21301 | + xlf*) |
| 21302 | + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
| 21303 | + _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' |
| 21304 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= |
| 21305 | + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' |
| 21306 | + _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' |
| 21307 | + if test "x$supports_anon_versioning" = xyes; then |
| 21308 | + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ |
| 21309 | + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 21310 | + echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 21311 | + $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' |
| 21312 | + fi |
| 21313 | + ;; |
| 21314 | + esac |
| 21315 | + else |
| 21316 | + _LT_TAGVAR(ld_shlibs, $1)=no |
| 21317 | + fi |
| 21318 | + ;; |
| 21319 | |
| 21320 | -# The name of the directory that contains temporary libtool files. |
| 21321 | -objdir=$objdir |
| 21322 | + netbsd*) |
| 21323 | + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 21324 | + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 21325 | + wlarc= |
| 21326 | + else |
| 21327 | + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 21328 | + _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' |
| 21329 | + fi |
| 21330 | + ;; |
| 21331 | |
| 21332 | -# How to create reloadable object files. |
| 21333 | -reload_flag=$lt_reload_flag |
| 21334 | -reload_cmds=$lt_reload_cmds |
| 21335 | + solaris*) |
| 21336 | + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then |
| 21337 | + _LT_TAGVAR(ld_shlibs, $1)=no |
| 21338 | + cat <<_LT_EOF 1>&2 |
| 21339 | |
| 21340 | -# How to pass a linker flag through the compiler. |
| 21341 | -wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) |
| 21342 | +*** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 21343 | +*** create shared libraries on Solaris systems. Therefore, libtool |
| 21344 | +*** is disabling shared libraries support. We urge you to upgrade GNU |
| 21345 | +*** binutils to release 2.9.1 or newer. Another option is to modify |
| 21346 | +*** your PATH or compiler configuration so that the native linker is |
| 21347 | +*** used, and then restart. |
| 21348 | |
| 21349 | -# Object file suffix (normally "o"). |
| 21350 | -objext="$ac_objext" |
| 21351 | +_LT_EOF |
| 21352 | + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 21353 | + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 21354 | + _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' |
| 21355 | + else |
| 21356 | + _LT_TAGVAR(ld_shlibs, $1)=no |
| 21357 | + fi |
| 21358 | + ;; |
| 21359 | |
| 21360 | -# Old archive suffix (normally "a"). |
| 21361 | -libext="$libext" |
| 21362 | + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 21363 | + case `$LD -v 2>&1` in |
| 21364 | + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) |
| 21365 | + _LT_TAGVAR(ld_shlibs, $1)=no |
| 21366 | + cat <<_LT_EOF 1>&2 |
| 21367 | |
| 21368 | -# Shared library suffix (normally ".so"). |
| 21369 | -shrext_cmds='$shrext_cmds' |
| 21370 | +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 21371 | +*** reliably create shared libraries on SCO systems. Therefore, libtool |
| 21372 | +*** is disabling shared libraries support. We urge you to upgrade GNU |
| 21373 | +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 21374 | +*** your PATH or compiler configuration so that the native linker is |
| 21375 | +*** used, and then restart. |
| 21376 | |
| 21377 | -# Executable file suffix (normally ""). |
| 21378 | -exeext="$exeext" |
| 21379 | +_LT_EOF |
| 21380 | + ;; |
| 21381 | + *) |
| 21382 | + # For security reasons, it is highly recommended that you always |
| 21383 | + # use absolute paths for naming shared libraries, and exclude the |
| 21384 | + # DT_RUNPATH tag from executables and libraries. But doing so |
| 21385 | + # requires that you compile everything twice, which is a pain. |
| 21386 | + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 21387 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
| 21388 | + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 21389 | + _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' |
| 21390 | + else |
| 21391 | + _LT_TAGVAR(ld_shlibs, $1)=no |
| 21392 | + fi |
| 21393 | + ;; |
| 21394 | + esac |
| 21395 | + ;; |
| 21396 | |
| 21397 | -# Additional compiler flags for building library objects. |
| 21398 | -pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) |
| 21399 | -pic_mode=$pic_mode |
| 21400 | + sunos4*) |
| 21401 | + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 21402 | + wlarc= |
| 21403 | + _LT_TAGVAR(hardcode_direct, $1)=yes |
| 21404 | + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 21405 | + ;; |
| 21406 | |
| 21407 | -# What is the maximum length of a command? |
| 21408 | -max_cmd_len=$lt_cv_sys_max_cmd_len |
| 21409 | + *) |
| 21410 | + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 21411 | + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 21412 | + _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' |
| 21413 | + else |
| 21414 | + _LT_TAGVAR(ld_shlibs, $1)=no |
| 21415 | + fi |
| 21416 | + ;; |
| 21417 | + esac |
| 21418 | |
| 21419 | -# Does compiler simultaneously support -c and -o options? |
| 21420 | -compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) |
| 21421 | + if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then |
| 21422 | + runpath_var= |
| 21423 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= |
| 21424 | + _LT_TAGVAR(export_dynamic_flag_spec, $1)= |
| 21425 | + _LT_TAGVAR(whole_archive_flag_spec, $1)= |
| 21426 | + fi |
| 21427 | + else |
| 21428 | + # PORTME fill in a description of your system's linker (not GNU ld) |
| 21429 | + case $host_os in |
| 21430 | + aix3*) |
| 21431 | + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported |
| 21432 | + _LT_TAGVAR(always_export_symbols, $1)=yes |
| 21433 | + _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' |
| 21434 | + # Note: this linker hardcodes the directories in LIBPATH if there |
| 21435 | + # are no directories specified by -L. |
| 21436 | + _LT_TAGVAR(hardcode_minus_L, $1)=yes |
| 21437 | + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
| 21438 | + # Neither direct hardcoding nor static linking is supported with a |
| 21439 | + # broken collect2. |
| 21440 | + _LT_TAGVAR(hardcode_direct, $1)=unsupported |
| 21441 | + fi |
| 21442 | + ;; |
| 21443 | |
| 21444 | -# Must we lock files when doing compilation? |
| 21445 | -need_locks=$lt_need_locks |
| 21446 | + aix[[4-9]]*) |
| 21447 | + if test "$host_cpu" = ia64; then |
| 21448 | + # On IA64, the linker does run time linking by default, so we don't |
| 21449 | + # have to do anything special. |
| 21450 | + aix_use_runtimelinking=no |
| 21451 | + exp_sym_flag='-Bexport' |
| 21452 | + no_entry_flag="" |
| 21453 | + else |
| 21454 | + # If we're using GNU nm, then we don't want the "-C" option. |
| 21455 | + # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 21456 | + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
| 21457 | + _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' |
| 21458 | + else |
| 21459 | + _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' |
| 21460 | + fi |
| 21461 | + aix_use_runtimelinking=no |
| 21462 | |
| 21463 | -# Do we need the lib prefix for modules? |
| 21464 | -need_lib_prefix=$need_lib_prefix |
| 21465 | + # Test if we are trying to use run time linking or normal |
| 21466 | + # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 21467 | + # need to do runtime linking. |
| 21468 | + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) |
| 21469 | + for ld_flag in $LDFLAGS; do |
| 21470 | + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 21471 | + aix_use_runtimelinking=yes |
| 21472 | + break |
| 21473 | + fi |
| 21474 | + done |
| 21475 | + ;; |
| 21476 | + esac |
| 21477 | |
| 21478 | -# Do we need a version for libraries? |
| 21479 | -need_version=$need_version |
| 21480 | + exp_sym_flag='-bexport' |
| 21481 | + no_entry_flag='-bnoentry' |
| 21482 | + fi |
| 21483 | |
| 21484 | -# Whether dlopen is supported. |
| 21485 | -dlopen_support=$enable_dlopen |
| 21486 | + # When large executables or shared objects are built, AIX ld can |
| 21487 | + # have problems creating the table of contents. If linking a library |
| 21488 | + # or program results in "error TOC overflow" add -mminimal-toc to |
| 21489 | + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 21490 | + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 21491 | |
| 21492 | -# Whether dlopen of programs is supported. |
| 21493 | -dlopen_self=$enable_dlopen_self |
| 21494 | + _LT_TAGVAR(archive_cmds, $1)='' |
| 21495 | + _LT_TAGVAR(hardcode_direct, $1)=yes |
| 21496 | + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes |
| 21497 | + _LT_TAGVAR(hardcode_libdir_separator, $1)=':' |
| 21498 | + _LT_TAGVAR(link_all_deplibs, $1)=yes |
| 21499 | + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' |
| 21500 | |
| 21501 | -# Whether dlopen of statically linked programs is supported. |
| 21502 | -dlopen_self_static=$enable_dlopen_self_static |
| 21503 | + if test "$GCC" = yes; then |
| 21504 | + case $host_os in aix4.[[012]]|aix4.[[012]].*) |
| 21505 | + # We only want to do this on AIX 4.2 and lower, the check |
| 21506 | + # below for broken collect2 doesn't work under 4.3+ |
| 21507 | + collect2name=`${CC} -print-prog-name=collect2` |
| 21508 | + if test -f "$collect2name" && |
| 21509 | + strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
| 21510 | + then |
| 21511 | + # We have reworked collect2 |
| 21512 | + : |
| 21513 | + else |
| 21514 | + # We have old collect2 |
| 21515 | + _LT_TAGVAR(hardcode_direct, $1)=unsupported |
| 21516 | + # It fails to find uninstalled libraries when the uninstalled |
| 21517 | + # path is not listed in the libpath. Setting hardcode_minus_L |
| 21518 | + # to unsupported forces relinking |
| 21519 | + _LT_TAGVAR(hardcode_minus_L, $1)=yes |
| 21520 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| 21521 | + _LT_TAGVAR(hardcode_libdir_separator, $1)= |
| 21522 | + fi |
| 21523 | + ;; |
| 21524 | + esac |
| 21525 | + shared_flag='-shared' |
| 21526 | + if test "$aix_use_runtimelinking" = yes; then |
| 21527 | + shared_flag="$shared_flag "'${wl}-G' |
| 21528 | + fi |
| 21529 | + else |
| 21530 | + # not using gcc |
| 21531 | + if test "$host_cpu" = ia64; then |
| 21532 | + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 21533 | + # chokes on -Wl,-G. The following line is correct: |
| 21534 | + shared_flag='-G' |
| 21535 | + else |
| 21536 | + if test "$aix_use_runtimelinking" = yes; then |
| 21537 | + shared_flag='${wl}-G' |
| 21538 | + else |
| 21539 | + shared_flag='${wl}-bM:SRE' |
| 21540 | + fi |
| 21541 | + fi |
| 21542 | + fi |
| 21543 | |
| 21544 | -# Compiler flag to prevent dynamic linking. |
| 21545 | -link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1) |
| 21546 | + # It seems that -bexpall does not export symbols beginning with |
| 21547 | + # underscore (_), so it is better to generate a list of symbols to export. |
| 21548 | + _LT_TAGVAR(always_export_symbols, $1)=yes |
| 21549 | + if test "$aix_use_runtimelinking" = yes; then |
| 21550 | + # Warning - without using the other runtime loading flags (-brtl), |
| 21551 | + # -berok will link without error, but may produce a broken library. |
| 21552 | + _LT_TAGVAR(allow_undefined_flag, $1)='-berok' |
| 21553 | + # Determine the default libpath from the value encoded in an |
| 21554 | + # empty executable. |
| 21555 | + _LT_SYS_MODULE_PATH_AIX |
| 21556 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 21557 | + _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" |
| 21558 | + else |
| 21559 | + if test "$host_cpu" = ia64; then |
| 21560 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' |
| 21561 | + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" |
| 21562 | + _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" |
| 21563 | + else |
| 21564 | + # Determine the default libpath from the value encoded in an |
| 21565 | + # empty executable. |
| 21566 | + _LT_SYS_MODULE_PATH_AIX |
| 21567 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 21568 | + # Warning - without using the other run time loading flags, |
| 21569 | + # -berok will link without error, but may produce a broken library. |
| 21570 | + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' |
| 21571 | + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' |
| 21572 | + # Exported symbols can be pulled into shared objects from archives |
| 21573 | + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' |
| 21574 | + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes |
| 21575 | + # This is similar to how AIX traditionally builds its shared libraries. |
| 21576 | + _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' |
| 21577 | + fi |
| 21578 | + fi |
| 21579 | + ;; |
| 21580 | |
| 21581 | -# Compiler flag to turn off builtin functions. |
| 21582 | -no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) |
| 21583 | + amigaos*) |
| 21584 | + case $host_cpu in |
| 21585 | + powerpc) |
| 21586 | + # see comment about AmigaOS4 .so support |
| 21587 | + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 21588 | + _LT_TAGVAR(archive_expsym_cmds, $1)='' |
| 21589 | + ;; |
| 21590 | + m68k) |
| 21591 | + _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)' |
| 21592 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| 21593 | + _LT_TAGVAR(hardcode_minus_L, $1)=yes |
| 21594 | + ;; |
| 21595 | + esac |
| 21596 | + ;; |
| 21597 | |
| 21598 | -# Compiler flag to allow reflexive dlopens. |
| 21599 | -export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1) |
| 21600 | + bsdi[[45]]*) |
| 21601 | + _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic |
| 21602 | + ;; |
| 21603 | |
| 21604 | -# Compiler flag to generate shared objects directly from archives. |
| 21605 | -whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1) |
| 21606 | + cygwin* | mingw* | pw32*) |
| 21607 | + # When not using gcc, we currently assume that we are using |
| 21608 | + # Microsoft Visual C++. |
| 21609 | + # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 21610 | + # no search path for DLLs. |
| 21611 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' |
| 21612 | + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported |
| 21613 | + # Tell ltmain to make .lib files, not .a files. |
| 21614 | + libext=lib |
| 21615 | + # Tell ltmain to make .dll files, not .so files. |
| 21616 | + shrext_cmds=".dll" |
| 21617 | + # FIXME: Setting linknames here is a bad hack. |
| 21618 | + _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 21619 | + # The linker will automatically build a .lib file if we build a DLL. |
| 21620 | + _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' |
| 21621 | + # FIXME: Should let the user specify the lib program. |
| 21622 | + _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' |
| 21623 | + _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' |
| 21624 | + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
| 21625 | + ;; |
| 21626 | |
| 21627 | -# Compiler flag to generate thread-safe objects. |
| 21628 | -thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1) |
| 21629 | + darwin* | rhapsody*) |
| 21630 | + _LT_DARWIN_LINKER_FEATURES($1) |
| 21631 | + ;; |
| 21632 | |
| 21633 | -# Library versioning type. |
| 21634 | -version_type=$version_type |
| 21635 | + dgux*) |
| 21636 | + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 21637 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| 21638 | + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 21639 | + ;; |
| 21640 | |
| 21641 | -# Format of library name prefix. |
| 21642 | -libname_spec=$lt_libname_spec |
| 21643 | + freebsd1*) |
| 21644 | + _LT_TAGVAR(ld_shlibs, $1)=no |
| 21645 | + ;; |
| 21646 | |
| 21647 | -# List of archive names. First name is the real one, the rest are links. |
| 21648 | -# The last name is the one that the linker finds with -lNAME. |
| 21649 | -library_names_spec=$lt_library_names_spec |
| 21650 | + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 21651 | + # support. Future versions do this automatically, but an explicit c++rt0.o |
| 21652 | + # does not break anything, and helps significantly (at the cost of a little |
| 21653 | + # extra space). |
| 21654 | + freebsd2.2*) |
| 21655 | + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 21656 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
| 21657 | + _LT_TAGVAR(hardcode_direct, $1)=yes |
| 21658 | + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 21659 | + ;; |
| 21660 | |
| 21661 | -# The coded name of the library, if different from the real name. |
| 21662 | -soname_spec=$lt_soname_spec |
| 21663 | + # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 21664 | + freebsd2*) |
| 21665 | + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 21666 | + _LT_TAGVAR(hardcode_direct, $1)=yes |
| 21667 | + _LT_TAGVAR(hardcode_minus_L, $1)=yes |
| 21668 | + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 21669 | + ;; |
| 21670 | |
| 21671 | -# Commands used to build and install an old-style archive. |
| 21672 | -RANLIB=$lt_RANLIB |
| 21673 | -old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1) |
| 21674 | -old_postinstall_cmds=$lt_old_postinstall_cmds |
| 21675 | -old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 21676 | + # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 21677 | + freebsd* | dragonfly*) |
| 21678 | + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 21679 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
| 21680 | + _LT_TAGVAR(hardcode_direct, $1)=yes |
| 21681 | + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 21682 | + ;; |
| 21683 | |
| 21684 | -# Create an old-style archive from a shared archive. |
| 21685 | -old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) |
| 21686 | + hpux9*) |
| 21687 | + if test "$GCC" = yes; then |
| 21688 | + _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' |
| 21689 | + else |
| 21690 | + _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' |
| 21691 | + fi |
| 21692 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
| 21693 | + _LT_TAGVAR(hardcode_libdir_separator, $1)=: |
| 21694 | + _LT_TAGVAR(hardcode_direct, $1)=yes |
| 21695 | |
| 21696 | -# Create a temporary old-style archive to link instead of a shared archive. |
| 21697 | -old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) |
| 21698 | + # hardcode_minus_L: Not really in the search PATH, |
| 21699 | + # but as the default location of the library. |
| 21700 | + _LT_TAGVAR(hardcode_minus_L, $1)=yes |
| 21701 | + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
| 21702 | + ;; |
| 21703 | |
| 21704 | -# Commands used to build and install a shared archive. |
| 21705 | -archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1) |
| 21706 | -archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1) |
| 21707 | -postinstall_cmds=$lt_postinstall_cmds |
| 21708 | -postuninstall_cmds=$lt_postuninstall_cmds |
| 21709 | + hpux10*) |
| 21710 | + if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 21711 | + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 21712 | + else |
| 21713 | + _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 21714 | + fi |
| 21715 | + if test "$with_gnu_ld" = no; then |
| 21716 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
| 21717 | + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' |
| 21718 | + _LT_TAGVAR(hardcode_libdir_separator, $1)=: |
| 21719 | + _LT_TAGVAR(hardcode_direct, $1)=yes |
| 21720 | + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes |
| 21721 | + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
| 21722 | + # hardcode_minus_L: Not really in the search PATH, |
| 21723 | + # but as the default location of the library. |
| 21724 | + _LT_TAGVAR(hardcode_minus_L, $1)=yes |
| 21725 | + fi |
| 21726 | + ;; |
| 21727 | |
| 21728 | -# Commands used to build a loadable module (assumed same as above if empty) |
| 21729 | -module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1) |
| 21730 | -module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1) |
| 21731 | + hpux11*) |
| 21732 | + if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 21733 | + case $host_cpu in |
| 21734 | + hppa*64*) |
| 21735 | + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 21736 | + ;; |
| 21737 | + ia64*) |
| 21738 | + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 21739 | + ;; |
| 21740 | + *) |
| 21741 | + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 21742 | + ;; |
| 21743 | + esac |
| 21744 | + else |
| 21745 | + case $host_cpu in |
| 21746 | + hppa*64*) |
| 21747 | + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 21748 | + ;; |
| 21749 | + ia64*) |
| 21750 | + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 21751 | + ;; |
| 21752 | + *) |
| 21753 | + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 21754 | + ;; |
| 21755 | + esac |
| 21756 | + fi |
| 21757 | + if test "$with_gnu_ld" = no; then |
| 21758 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
| 21759 | + _LT_TAGVAR(hardcode_libdir_separator, $1)=: |
| 21760 | |
| 21761 | -# Commands to strip libraries. |
| 21762 | -old_striplib=$lt_old_striplib |
| 21763 | -striplib=$lt_striplib |
| 21764 | + case $host_cpu in |
| 21765 | + hppa*64*|ia64*) |
| 21766 | + _LT_TAGVAR(hardcode_direct, $1)=no |
| 21767 | + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 21768 | + ;; |
| 21769 | + *) |
| 21770 | + _LT_TAGVAR(hardcode_direct, $1)=yes |
| 21771 | + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes |
| 21772 | + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
| 21773 | |
| 21774 | -# Dependencies to place before the objects being linked to create a |
| 21775 | -# shared library. |
| 21776 | -predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1) |
| 21777 | + # hardcode_minus_L: Not really in the search PATH, |
| 21778 | + # but as the default location of the library. |
| 21779 | + _LT_TAGVAR(hardcode_minus_L, $1)=yes |
| 21780 | + ;; |
| 21781 | + esac |
| 21782 | + fi |
| 21783 | + ;; |
| 21784 | |
| 21785 | -# Dependencies to place after the objects being linked to create a |
| 21786 | -# shared library. |
| 21787 | -postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1) |
| 21788 | + irix5* | irix6* | nonstopux*) |
| 21789 | + if test "$GCC" = yes; then |
| 21790 | + _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' |
| 21791 | + # Try to use the -exported_symbol ld option, if it does not |
| 21792 | + # work, assume that -exports_file does not work either and |
| 21793 | + # implicitly export all symbols. |
| 21794 | + save_LDFLAGS="$LDFLAGS" |
| 21795 | + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" |
| 21796 | + AC_LINK_IFELSE(int foo(void) {}, |
| 21797 | + _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' |
| 21798 | + ) |
| 21799 | + LDFLAGS="$save_LDFLAGS" |
| 21800 | + else |
| 21801 | + _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' |
| 21802 | + _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' |
| 21803 | + fi |
| 21804 | + _LT_TAGVAR(archive_cmds_need_lc, $1)='no' |
| 21805 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
| 21806 | + _LT_TAGVAR(hardcode_libdir_separator, $1)=: |
| 21807 | + _LT_TAGVAR(inherit_rpath, $1)=yes |
| 21808 | + _LT_TAGVAR(link_all_deplibs, $1)=yes |
| 21809 | + ;; |
| 21810 | |
| 21811 | -# Dependencies to place before the objects being linked to create a |
| 21812 | -# shared library. |
| 21813 | -predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1) |
| 21814 | + netbsd*) |
| 21815 | + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 21816 | + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 21817 | + else |
| 21818 | + _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 21819 | + fi |
| 21820 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
| 21821 | + _LT_TAGVAR(hardcode_direct, $1)=yes |
| 21822 | + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 21823 | + ;; |
| 21824 | |
| 21825 | -# Dependencies to place after the objects being linked to create a |
| 21826 | -# shared library. |
| 21827 | -postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1) |
| 21828 | + newsos6) |
| 21829 | + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 21830 | + _LT_TAGVAR(hardcode_direct, $1)=yes |
| 21831 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
| 21832 | + _LT_TAGVAR(hardcode_libdir_separator, $1)=: |
| 21833 | + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 21834 | + ;; |
| 21835 | |
| 21836 | -# The library search path used internally by the compiler when linking |
| 21837 | -# a shared library. |
| 21838 | -compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1) |
| 21839 | + *nto* | *qnx*) |
| 21840 | + ;; |
| 21841 | |
| 21842 | -# Method to check whether dependent libraries are shared objects. |
| 21843 | -deplibs_check_method=$lt_deplibs_check_method |
| 21844 | + openbsd*) |
| 21845 | + if test -f /usr/libexec/ld.so; then |
| 21846 | + _LT_TAGVAR(hardcode_direct, $1)=yes |
| 21847 | + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 21848 | + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes |
| 21849 | + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 21850 | + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 21851 | + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
| 21852 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
| 21853 | + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
| 21854 | + else |
| 21855 | + case $host_os in |
| 21856 | + openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) |
| 21857 | + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 21858 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
| 21859 | + ;; |
| 21860 | + *) |
| 21861 | + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 21862 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
| 21863 | + ;; |
| 21864 | + esac |
| 21865 | + fi |
| 21866 | + else |
| 21867 | + _LT_TAGVAR(ld_shlibs, $1)=no |
| 21868 | + fi |
| 21869 | + ;; |
| 21870 | |
| 21871 | -# Command to use when deplibs_check_method == file_magic. |
| 21872 | -file_magic_cmd=$lt_file_magic_cmd |
| 21873 | + os2*) |
| 21874 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| 21875 | + _LT_TAGVAR(hardcode_minus_L, $1)=yes |
| 21876 | + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported |
| 21877 | + _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' |
| 21878 | + _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 21879 | + ;; |
| 21880 | |
| 21881 | -# Flag that allows shared libraries with undefined symbols to be built. |
| 21882 | -allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1) |
| 21883 | + osf3*) |
| 21884 | + if test "$GCC" = yes; then |
| 21885 | + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
| 21886 | + _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' |
| 21887 | + else |
| 21888 | + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' |
| 21889 | + _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' |
| 21890 | + fi |
| 21891 | + _LT_TAGVAR(archive_cmds_need_lc, $1)='no' |
| 21892 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
| 21893 | + _LT_TAGVAR(hardcode_libdir_separator, $1)=: |
| 21894 | + ;; |
| 21895 | |
| 21896 | -# Flag that forces no undefined symbols. |
| 21897 | -no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1) |
| 21898 | + osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 21899 | + if test "$GCC" = yes; then |
| 21900 | + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
| 21901 | + _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' |
| 21902 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
| 21903 | + else |
| 21904 | + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' |
| 21905 | + _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' |
| 21906 | + _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~ |
| 21907 | + $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' |
| 21908 | |
| 21909 | -# Commands used to finish a libtool library installation in a directory. |
| 21910 | -finish_cmds=$lt_finish_cmds |
| 21911 | + # Both c and cxx compiler support -rpath directly |
| 21912 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' |
| 21913 | + fi |
| 21914 | + _LT_TAGVAR(archive_cmds_need_lc, $1)='no' |
| 21915 | + _LT_TAGVAR(hardcode_libdir_separator, $1)=: |
| 21916 | + ;; |
| 21917 | |
| 21918 | -# Same as above, but a single script fragment to be evaled but not shown. |
| 21919 | -finish_eval=$lt_finish_eval |
| 21920 | + solaris*) |
| 21921 | + _LT_TAGVAR(no_undefined_flag, $1)=' -z defs' |
| 21922 | + if test "$GCC" = yes; then |
| 21923 | + wlarc='${wl}' |
| 21924 | + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 21925 | + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 21926 | + $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
| 21927 | + else |
| 21928 | + case `$CC -V 2>&1` in |
| 21929 | + *"Compilers 5.0"*) |
| 21930 | + wlarc='' |
| 21931 | + _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 21932 | + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 21933 | + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' |
| 21934 | + ;; |
| 21935 | + *) |
| 21936 | + wlarc='${wl}' |
| 21937 | + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 21938 | + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 21939 | + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
| 21940 | + ;; |
| 21941 | + esac |
| 21942 | + fi |
| 21943 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
| 21944 | + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 21945 | + case $host_os in |
| 21946 | + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; |
| 21947 | + *) |
| 21948 | + # The compiler driver will combine and reorder linker options, |
| 21949 | + # but understands `-z linker_flag'. GCC discards it without `$wl', |
| 21950 | + # but is careful enough not to reorder. |
| 21951 | + # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 21952 | + if test "$GCC" = yes; then |
| 21953 | + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
| 21954 | + else |
| 21955 | + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' |
| 21956 | + fi |
| 21957 | + ;; |
| 21958 | + esac |
| 21959 | + _LT_TAGVAR(link_all_deplibs, $1)=yes |
| 21960 | + ;; |
| 21961 | |
| 21962 | -# Take the output of nm and produce a listing of raw symbols and C names. |
| 21963 | -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 21964 | + sunos4*) |
| 21965 | + if test "x$host_vendor" = xsequent; then |
| 21966 | + # Use $CC to link under sequent, because it throws in some extra .o |
| 21967 | + # files that make .init and .fini sections work. |
| 21968 | + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 21969 | + else |
| 21970 | + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 21971 | + fi |
| 21972 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| 21973 | + _LT_TAGVAR(hardcode_direct, $1)=yes |
| 21974 | + _LT_TAGVAR(hardcode_minus_L, $1)=yes |
| 21975 | + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 21976 | + ;; |
| 21977 | |
| 21978 | -# Transform the output of nm in a proper C declaration |
| 21979 | -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 21980 | + sysv4) |
| 21981 | + case $host_vendor in |
| 21982 | + sni) |
| 21983 | + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 21984 | + _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true??? |
| 21985 | + ;; |
| 21986 | + siemens) |
| 21987 | + ## LD is ld it makes a PLAMLIB |
| 21988 | + ## CC just makes a GrossModule. |
| 21989 | + _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 21990 | + _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' |
| 21991 | + _LT_TAGVAR(hardcode_direct, $1)=no |
| 21992 | + ;; |
| 21993 | + motorola) |
| 21994 | + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 21995 | + _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie |
| 21996 | + ;; |
| 21997 | + esac |
| 21998 | + runpath_var='LD_RUN_PATH' |
| 21999 | + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 22000 | + ;; |
| 22001 | |
| 22002 | -# Transform the output of nm in a C name address pair |
| 22003 | -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 22004 | + sysv4.3*) |
| 22005 | + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22006 | + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 22007 | + _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' |
| 22008 | + ;; |
| 22009 | |
| 22010 | -# This is the shared library runtime path variable. |
| 22011 | -runpath_var=$runpath_var |
| 22012 | + sysv4*MP*) |
| 22013 | + if test -d /usr/nec; then |
| 22014 | + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22015 | + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 22016 | + runpath_var=LD_RUN_PATH |
| 22017 | + hardcode_runpath_var=yes |
| 22018 | + _LT_TAGVAR(ld_shlibs, $1)=yes |
| 22019 | + fi |
| 22020 | + ;; |
| 22021 | |
| 22022 | -# This is the shared library path variable. |
| 22023 | -shlibpath_var=$shlibpath_var |
| 22024 | + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) |
| 22025 | + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' |
| 22026 | + _LT_TAGVAR(archive_cmds_need_lc, $1)=no |
| 22027 | + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 22028 | + runpath_var='LD_RUN_PATH' |
| 22029 | |
| 22030 | -# Is shlibpath searched before the hard-coded library search path? |
| 22031 | -shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 22032 | + if test "$GCC" = yes; then |
| 22033 | + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22034 | + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22035 | + else |
| 22036 | + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22037 | + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22038 | + fi |
| 22039 | + ;; |
| 22040 | |
| 22041 | -# How to hardcode a shared library path into an executable. |
| 22042 | -hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1) |
| 22043 | + sysv5* | sco3.2v5* | sco5v6*) |
| 22044 | + # Note: We can NOT use -z defs as we might desire, because we do not |
| 22045 | + # link with -lc, and that would cause any symbols used from libc to |
| 22046 | + # always be unresolved, which means just about no library would |
| 22047 | + # ever link correctly. If we're not using GNU ld we use -z text |
| 22048 | + # though, which does catch some bad symbols but isn't as heavy-handed |
| 22049 | + # as -z defs. |
| 22050 | + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' |
| 22051 | + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' |
| 22052 | + _LT_TAGVAR(archive_cmds_need_lc, $1)=no |
| 22053 | + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 22054 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' |
| 22055 | + _LT_TAGVAR(hardcode_libdir_separator, $1)=':' |
| 22056 | + _LT_TAGVAR(link_all_deplibs, $1)=yes |
| 22057 | + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' |
| 22058 | + runpath_var='LD_RUN_PATH' |
| 22059 | |
| 22060 | -# Whether we should hardcode library paths into libraries. |
| 22061 | -hardcode_into_libs=$hardcode_into_libs |
| 22062 | + if test "$GCC" = yes; then |
| 22063 | + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22064 | + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22065 | + else |
| 22066 | + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22067 | + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22068 | + fi |
| 22069 | + ;; |
| 22070 | |
| 22071 | -# Flag to hardcode \$libdir into a binary during linking. |
| 22072 | -# This must work even if \$libdir does not exist. |
| 22073 | -hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) |
| 22074 | + uts4*) |
| 22075 | + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22076 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| 22077 | + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 22078 | + ;; |
| 22079 | |
| 22080 | -# If ld is used when linking, flag to hardcode \$libdir into |
| 22081 | -# a binary during linking. This must work even if \$libdir does |
| 22082 | -# not exist. |
| 22083 | -hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) |
| 22084 | + *) |
| 22085 | + _LT_TAGVAR(ld_shlibs, $1)=no |
| 22086 | + ;; |
| 22087 | + esac |
| 22088 | |
| 22089 | -# Whether we need a single -rpath flag with a separated argument. |
| 22090 | -hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1) |
| 22091 | + if test x$host_vendor = xsni; then |
| 22092 | + case $host in |
| 22093 | + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 22094 | + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym' |
| 22095 | + ;; |
| 22096 | + esac |
| 22097 | + fi |
| 22098 | + fi |
| 22099 | +]) |
| 22100 | +AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) |
| 22101 | +test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no |
| 22102 | |
| 22103 | -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 22104 | -# resulting binary. |
| 22105 | -hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1) |
| 22106 | +_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld |
| 22107 | |
| 22108 | -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 22109 | -# resulting binary. |
| 22110 | -hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1) |
| 22111 | +_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl |
| 22112 | +_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl |
| 22113 | +_LT_DECL([], [extract_expsyms_cmds], [2], |
| 22114 | + [The commands to extract the exported symbol list from a shared archive]) |
| 22115 | |
| 22116 | -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 22117 | -# the resulting binary. |
| 22118 | -hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1) |
| 22119 | +# |
| 22120 | +# Do we need to explicitly link libc? |
| 22121 | +# |
| 22122 | +case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in |
| 22123 | +x|xyes) |
| 22124 | + # Assume -lc should be added |
| 22125 | + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes |
| 22126 | |
| 22127 | -# Set to yes if building a shared library automatically hardcodes DIR into the library |
| 22128 | -# and all subsequent libraries and executables linked against it. |
| 22129 | -hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1) |
| 22130 | + if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 22131 | + case $_LT_TAGVAR(archive_cmds, $1) in |
| 22132 | + *'~'*) |
| 22133 | + # FIXME: we may have to deal with multi-command sequences. |
| 22134 | + ;; |
| 22135 | + '$CC '*) |
| 22136 | + # Test whether the compiler implicitly links with -lc since on some |
| 22137 | + # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 22138 | + # to ld, don't add -lc before -lgcc. |
| 22139 | + AC_MSG_CHECKING([whether -lc should be explicitly linked in]) |
| 22140 | + $RM conftest* |
| 22141 | + echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 22142 | |
| 22143 | -# Variables whose values should be saved in libtool wrapper scripts and |
| 22144 | -# restored at relink time. |
| 22145 | -variables_saved_for_relink="$variables_saved_for_relink" |
| 22146 | + if AC_TRY_EVAL(ac_compile) 2>conftest.err; then |
| 22147 | + soname=conftest |
| 22148 | + lib=conftest |
| 22149 | + libobjs=conftest.$ac_objext |
| 22150 | + deplibs= |
| 22151 | + wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) |
| 22152 | + pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1) |
| 22153 | + compiler_flags=-v |
| 22154 | + linker_flags=-v |
| 22155 | + verstring= |
| 22156 | + output_objdir=. |
| 22157 | + libname=conftest |
| 22158 | + lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1) |
| 22159 | + _LT_TAGVAR(allow_undefined_flag, $1)= |
| 22160 | + if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) |
| 22161 | + then |
| 22162 | + _LT_TAGVAR(archive_cmds_need_lc, $1)=no |
| 22163 | + else |
| 22164 | + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes |
| 22165 | + fi |
| 22166 | + _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag |
| 22167 | + else |
| 22168 | + cat conftest.err 1>&5 |
| 22169 | + fi |
| 22170 | + $RM conftest* |
| 22171 | + AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)]) |
| 22172 | + ;; |
| 22173 | + esac |
| 22174 | + fi |
| 22175 | + ;; |
| 22176 | +esac |
| 22177 | |
| 22178 | -# Whether libtool must link a program against all its dependency libraries. |
| 22179 | -link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1) |
| 22180 | +_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0], |
| 22181 | + [Whether or not to add -lc for building shared libraries]) |
| 22182 | +_LT_TAGDECL([allow_libtool_libs_with_static_runtimes], |
| 22183 | + [enable_shared_with_static_runtimes], [0], |
| 22184 | + [Whether or not to disallow shared libs when runtime libs are static]) |
| 22185 | +_LT_TAGDECL([], [export_dynamic_flag_spec], [1], |
| 22186 | + [Compiler flag to allow reflexive dlopens]) |
| 22187 | +_LT_TAGDECL([], [whole_archive_flag_spec], [1], |
| 22188 | + [Compiler flag to generate shared objects directly from archives]) |
| 22189 | +_LT_TAGDECL([], [compiler_needs_object], [1], |
| 22190 | + [Whether the compiler copes with passing no objects directly]) |
| 22191 | +_LT_TAGDECL([], [old_archive_from_new_cmds], [2], |
| 22192 | + [Create an old-style archive from a shared archive]) |
| 22193 | +_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2], |
| 22194 | + [Create a temporary old-style archive to link instead of a shared archive]) |
| 22195 | +_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive]) |
| 22196 | +_LT_TAGDECL([], [archive_expsym_cmds], [2]) |
| 22197 | +_LT_TAGDECL([], [module_cmds], [2], |
| 22198 | + [Commands used to build a loadable module if different from building |
| 22199 | + a shared archive.]) |
| 22200 | +_LT_TAGDECL([], [module_expsym_cmds], [2]) |
| 22201 | +_LT_TAGDECL([], [with_gnu_ld], [1], |
| 22202 | + [Whether we are building with GNU ld or not]) |
| 22203 | +_LT_TAGDECL([], [allow_undefined_flag], [1], |
| 22204 | + [Flag that allows shared libraries with undefined symbols to be built]) |
| 22205 | +_LT_TAGDECL([], [no_undefined_flag], [1], |
| 22206 | + [Flag that enforces no undefined symbols]) |
| 22207 | +_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], |
| 22208 | + [Flag to hardcode $libdir into a binary during linking. |
| 22209 | + This must work even if $libdir does not exist]) |
| 22210 | +_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1], |
| 22211 | + [[If ld is used when linking, flag to hardcode $libdir into a binary |
| 22212 | + during linking. This must work even if $libdir does not exist]]) |
| 22213 | +_LT_TAGDECL([], [hardcode_libdir_separator], [1], |
| 22214 | + [Whether we need a single "-rpath" flag with a separated argument]) |
| 22215 | +_LT_TAGDECL([], [hardcode_direct], [0], |
| 22216 | + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes |
| 22217 | + DIR into the resulting binary]) |
| 22218 | +_LT_TAGDECL([], [hardcode_direct_absolute], [0], |
| 22219 | + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes |
| 22220 | + DIR into the resulting binary and the resulting library dependency is |
| 22221 | + "absolute", i.e impossible to change by setting ${shlibpath_var} if the |
| 22222 | + library is relocated]) |
| 22223 | +_LT_TAGDECL([], [hardcode_minus_L], [0], |
| 22224 | + [Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
| 22225 | + into the resulting binary]) |
| 22226 | +_LT_TAGDECL([], [hardcode_shlibpath_var], [0], |
| 22227 | + [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
| 22228 | + into the resulting binary]) |
| 22229 | +_LT_TAGDECL([], [hardcode_automatic], [0], |
| 22230 | + [Set to "yes" if building a shared library automatically hardcodes DIR |
| 22231 | + into the library and all subsequent libraries and executables linked |
| 22232 | + against it]) |
| 22233 | +_LT_TAGDECL([], [inherit_rpath], [0], |
| 22234 | + [Set to yes if linker adds runtime paths of dependent libraries |
| 22235 | + to runtime path list]) |
| 22236 | +_LT_TAGDECL([], [link_all_deplibs], [0], |
| 22237 | + [Whether libtool must link a program against all its dependency libraries]) |
| 22238 | +_LT_TAGDECL([], [fix_srcfile_path], [1], |
| 22239 | + [Fix the shell variable $srcfile for the compiler]) |
| 22240 | +_LT_TAGDECL([], [always_export_symbols], [0], |
| 22241 | + [Set to "yes" if exported symbols are required]) |
| 22242 | +_LT_TAGDECL([], [export_symbols_cmds], [2], |
| 22243 | + [The commands to list exported symbols]) |
| 22244 | +_LT_TAGDECL([], [exclude_expsyms], [1], |
| 22245 | + [Symbols that should not be listed in the preloaded symbols]) |
| 22246 | +_LT_TAGDECL([], [include_expsyms], [1], |
| 22247 | + [Symbols that must always be exported]) |
| 22248 | +_LT_TAGDECL([], [prelink_cmds], [2], |
| 22249 | + [Commands necessary for linking programs (against libraries) with templates]) |
| 22250 | +_LT_TAGDECL([], [file_list_spec], [1], |
| 22251 | + [Specify filename containing input files]) |
| 22252 | +dnl FIXME: Not yet implemented |
| 22253 | +dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1], |
| 22254 | +dnl [Compiler flag to generate thread safe objects]) |
| 22255 | +])# _LT_LINKER_SHLIBS |
| 22256 | |
| 22257 | -# Compile-time system search path for libraries |
| 22258 | -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 22259 | |
| 22260 | -# Run-time system search path for libraries |
| 22261 | -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 22262 | +# _LT_LANG_C_CONFIG([TAG]) |
| 22263 | +# ------------------------ |
| 22264 | +# Ensure that the configuration variables for a C compiler are suitably |
| 22265 | +# defined. These variables are subsequently used by _LT_CONFIG to write |
| 22266 | +# the compiler configuration to `libtool'. |
| 22267 | +m4_defun([_LT_LANG_C_CONFIG], |
| 22268 | +[m4_require([_LT_DECL_EGREP])dnl |
| 22269 | +lt_save_CC="$CC" |
| 22270 | +AC_LANG_PUSH(C) |
| 22271 | |
| 22272 | -# Fix the shell variable \$srcfile for the compiler. |
| 22273 | -fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)" |
| 22274 | +# Source file extension for C test sources. |
| 22275 | +ac_ext=c |
| 22276 | |
| 22277 | -# Set to yes if exported symbols are required. |
| 22278 | -always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1) |
| 22279 | +# Object file extension for compiled C test sources. |
| 22280 | +objext=o |
| 22281 | +_LT_TAGVAR(objext, $1)=$objext |
| 22282 | |
| 22283 | -# The commands to list exported symbols. |
| 22284 | -export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1) |
| 22285 | +# Code to be used in simple compile tests |
| 22286 | +lt_simple_compile_test_code="int some_variable = 0;" |
| 22287 | |
| 22288 | -# The commands to extract the exported symbol list from a shared archive. |
| 22289 | -extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 22290 | +# Code to be used in simple link tests |
| 22291 | +lt_simple_link_test_code='int main(){return(0);}' |
| 22292 | |
| 22293 | -# Symbols that should not be listed in the preloaded symbols. |
| 22294 | -exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1) |
| 22295 | +_LT_TAG_COMPILER |
| 22296 | +# Save the default compiler, since it gets overwritten when the other |
| 22297 | +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. |
| 22298 | +compiler_DEFAULT=$CC |
| 22299 | |
| 22300 | -# Symbols that must always be exported. |
| 22301 | -include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1) |
| 22302 | +# save warnings/boilerplate of simple test code |
| 22303 | +_LT_COMPILER_BOILERPLATE |
| 22304 | +_LT_LINKER_BOILERPLATE |
| 22305 | |
| 22306 | -ifelse([$1],[], |
| 22307 | -[# ### END LIBTOOL CONFIG], |
| 22308 | -[# ### END LIBTOOL TAG CONFIG: $tagname]) |
| 22309 | +## CAVEAT EMPTOR: |
| 22310 | +## There is no encapsulation within the following macros, do not change |
| 22311 | +## the running order or otherwise move them around unless you know exactly |
| 22312 | +## what you are doing... |
| 22313 | +if test -n "$compiler"; then |
| 22314 | + _LT_COMPILER_NO_RTTI($1) |
| 22315 | + _LT_COMPILER_PIC($1) |
| 22316 | + _LT_COMPILER_C_O($1) |
| 22317 | + _LT_COMPILER_FILE_LOCKS($1) |
| 22318 | + _LT_LINKER_SHLIBS($1) |
| 22319 | + _LT_SYS_DYNAMIC_LINKER($1) |
| 22320 | + _LT_LINKER_HARDCODE_LIBPATH($1) |
| 22321 | + LT_SYS_DLOPEN_SELF |
| 22322 | + _LT_CMD_STRIPLIB |
| 22323 | + |
| 22324 | + # Report which library types will actually be built |
| 22325 | + AC_MSG_CHECKING([if libtool supports shared libraries]) |
| 22326 | + AC_MSG_RESULT([$can_build_shared]) |
| 22327 | |
| 22328 | -__EOF__ |
| 22329 | + AC_MSG_CHECKING([whether to build shared libraries]) |
| 22330 | + test "$can_build_shared" = "no" && enable_shared=no |
| 22331 | |
| 22332 | -ifelse([$1],[], [ |
| 22333 | + # On AIX, shared libraries and static libraries use the same namespace, and |
| 22334 | + # are all built from PIC. |
| 22335 | case $host_os in |
| 22336 | aix3*) |
| 22337 | - cat <<\EOF >> "$cfgfile" |
| 22338 | + test "$enable_shared" = yes && enable_static=no |
| 22339 | + if test -n "$RANLIB"; then |
| 22340 | + archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 22341 | + postinstall_cmds='$RANLIB $lib' |
| 22342 | + fi |
| 22343 | + ;; |
| 22344 | |
| 22345 | -# AIX sometimes has problems with the GCC collect2 program. For some |
| 22346 | -# reason, if we set the COLLECT_NAMES environment variable, the problems |
| 22347 | -# vanish in a puff of smoke. |
| 22348 | -if test "X${COLLECT_NAMES+set}" != Xset; then |
| 22349 | - COLLECT_NAMES= |
| 22350 | - export COLLECT_NAMES |
| 22351 | -fi |
| 22352 | -EOF |
| 22353 | + aix[[4-9]]*) |
| 22354 | + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 22355 | + test "$enable_shared" = yes && enable_static=no |
| 22356 | + fi |
| 22357 | ;; |
| 22358 | esac |
| 22359 | + AC_MSG_RESULT([$enable_shared]) |
| 22360 | |
| 22361 | - # We use sed instead of cat because bash on DJGPP gets confused if |
| 22362 | - # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 22363 | - # text mode, it properly converts lines to CR/LF. This bash problem |
| 22364 | - # is reportedly fixed, but why not run on old versions too? |
| 22365 | - sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) |
| 22366 | + AC_MSG_CHECKING([whether to build static libraries]) |
| 22367 | + # Make sure either enable_shared or enable_static is yes. |
| 22368 | + test "$enable_shared" = yes || enable_static=yes |
| 22369 | + AC_MSG_RESULT([$enable_static]) |
| 22370 | |
| 22371 | - mv -f "$cfgfile" "$ofile" || \ |
| 22372 | - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
| 22373 | - chmod +x "$ofile" |
| 22374 | -]) |
| 22375 | -else |
| 22376 | - # If there is no Makefile yet, we rely on a make rule to execute |
| 22377 | - # `config.status --recheck' to rerun these tests and create the |
| 22378 | - # libtool script then. |
| 22379 | - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 22380 | - if test -f "$ltmain_in"; then |
| 22381 | - test -f Makefile && make "$ltmain" |
| 22382 | - fi |
| 22383 | + _LT_CONFIG($1) |
| 22384 | fi |
| 22385 | -])# AC_LIBTOOL_CONFIG |
| 22386 | - |
| 22387 | - |
| 22388 | -# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME]) |
| 22389 | -# ------------------------------------------- |
| 22390 | -AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], |
| 22391 | -[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl |
| 22392 | - |
| 22393 | -_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= |
| 22394 | +AC_LANG_POP |
| 22395 | +CC="$lt_save_CC" |
| 22396 | +])# _LT_LANG_C_CONFIG |
| 22397 | |
| 22398 | -if test "$GCC" = yes; then |
| 22399 | - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' |
| 22400 | |
| 22401 | - AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], |
| 22402 | - lt_cv_prog_compiler_rtti_exceptions, |
| 22403 | - [-fno-rtti -fno-exceptions], [], |
| 22404 | - [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) |
| 22405 | +# _LT_PROG_CXX |
| 22406 | +# ------------ |
| 22407 | +# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++ |
| 22408 | +# compiler, we have our own version here. |
| 22409 | +m4_defun([_LT_PROG_CXX], |
| 22410 | +[ |
| 22411 | +pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes]) |
| 22412 | +AC_PROG_CXX |
| 22413 | +if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 22414 | + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 22415 | + (test "X$CXX" != "Xg++"))) ; then |
| 22416 | + AC_PROG_CXXCPP |
| 22417 | +else |
| 22418 | + _lt_caught_CXX_error=yes |
| 22419 | fi |
| 22420 | -])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI |
| 22421 | +popdef([AC_MSG_ERROR]) |
| 22422 | +])# _LT_PROG_CXX |
| 22423 | |
| 22424 | +dnl aclocal-1.4 backwards compatibility: |
| 22425 | +dnl AC_DEFUN([_LT_PROG_CXX], []) |
| 22426 | |
| 22427 | -# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE |
| 22428 | -# --------------------------------- |
| 22429 | -AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], |
| 22430 | -[AC_REQUIRE([AC_CANONICAL_HOST]) |
| 22431 | -AC_REQUIRE([AC_PROG_NM]) |
| 22432 | -AC_REQUIRE([AC_OBJEXT]) |
| 22433 | -# Check for command to grab the raw symbol name followed by C symbol from nm. |
| 22434 | -AC_MSG_CHECKING([command to parse $NM output from $compiler object]) |
| 22435 | -AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], |
| 22436 | -[ |
| 22437 | -# These are sane defaults that work on at least a few old systems. |
| 22438 | -# [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 22439 | - |
| 22440 | -# Character class describing NM global symbol codes. |
| 22441 | -symcode='[[BCDEGRST]]' |
| 22442 | |
| 22443 | -# Regexp to match symbols that can be accessed directly from C. |
| 22444 | -sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' |
| 22445 | +# _LT_LANG_CXX_CONFIG([TAG]) |
| 22446 | +# -------------------------- |
| 22447 | +# Ensure that the configuration variables for a C++ compiler are suitably |
| 22448 | +# defined. These variables are subsequently used by _LT_CONFIG to write |
| 22449 | +# the compiler configuration to `libtool'. |
| 22450 | +m4_defun([_LT_LANG_CXX_CONFIG], |
| 22451 | +[AC_REQUIRE([_LT_PROG_CXX])dnl |
| 22452 | +m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
| 22453 | +m4_require([_LT_DECL_EGREP])dnl |
| 22454 | + |
| 22455 | +AC_LANG_PUSH(C++) |
| 22456 | +_LT_TAGVAR(archive_cmds_need_lc, $1)=no |
| 22457 | +_LT_TAGVAR(allow_undefined_flag, $1)= |
| 22458 | +_LT_TAGVAR(always_export_symbols, $1)=no |
| 22459 | +_LT_TAGVAR(archive_expsym_cmds, $1)= |
| 22460 | +_LT_TAGVAR(compiler_needs_object, $1)=no |
| 22461 | +_LT_TAGVAR(export_dynamic_flag_spec, $1)= |
| 22462 | +_LT_TAGVAR(hardcode_direct, $1)=no |
| 22463 | +_LT_TAGVAR(hardcode_direct_absolute, $1)=no |
| 22464 | +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= |
| 22465 | +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= |
| 22466 | +_LT_TAGVAR(hardcode_libdir_separator, $1)= |
| 22467 | +_LT_TAGVAR(hardcode_minus_L, $1)=no |
| 22468 | +_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
| 22469 | +_LT_TAGVAR(hardcode_automatic, $1)=no |
| 22470 | +_LT_TAGVAR(inherit_rpath, $1)=no |
| 22471 | +_LT_TAGVAR(module_cmds, $1)= |
| 22472 | +_LT_TAGVAR(module_expsym_cmds, $1)= |
| 22473 | +_LT_TAGVAR(link_all_deplibs, $1)=unknown |
| 22474 | +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds |
| 22475 | +_LT_TAGVAR(no_undefined_flag, $1)= |
| 22476 | +_LT_TAGVAR(whole_archive_flag_spec, $1)= |
| 22477 | +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no |
| 22478 | |
| 22479 | -# Transform an extracted symbol line into a proper C declaration |
| 22480 | -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 22481 | +# Source file extension for C++ test sources. |
| 22482 | +ac_ext=cpp |
| 22483 | |
| 22484 | -# Transform an extracted symbol line into symbol name and symbol address |
| 22485 | -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'" |
| 22486 | +# Object file extension for compiled C++ test sources. |
| 22487 | +objext=o |
| 22488 | +_LT_TAGVAR(objext, $1)=$objext |
| 22489 | |
| 22490 | -# Define system-specific variables. |
| 22491 | -case $host_os in |
| 22492 | -aix*) |
| 22493 | - symcode='[[BCDT]]' |
| 22494 | - ;; |
| 22495 | -cygwin* | mingw* | pw32*) |
| 22496 | - symcode='[[ABCDGISTW]]' |
| 22497 | - ;; |
| 22498 | -hpux*) # Its linker distinguishes data from code symbols |
| 22499 | - if test "$host_cpu" = ia64; then |
| 22500 | - symcode='[[ABCDEGRST]]' |
| 22501 | +# No sense in running all these tests if we already determined that |
| 22502 | +# the CXX compiler isn't working. Some variables (like enable_shared) |
| 22503 | +# are currently assumed to apply to all compilers on this platform, |
| 22504 | +# and will be corrupted by setting them based on a non-working compiler. |
| 22505 | +if test "$_lt_caught_CXX_error" != yes; then |
| 22506 | + # Code to be used in simple compile tests |
| 22507 | + lt_simple_compile_test_code="int some_variable = 0;" |
| 22508 | + |
| 22509 | + # Code to be used in simple link tests |
| 22510 | + lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' |
| 22511 | + |
| 22512 | + # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 22513 | + _LT_TAG_COMPILER |
| 22514 | + |
| 22515 | + # save warnings/boilerplate of simple test code |
| 22516 | + _LT_COMPILER_BOILERPLATE |
| 22517 | + _LT_LINKER_BOILERPLATE |
| 22518 | + |
| 22519 | + # Allow CC to be a program name with arguments. |
| 22520 | + lt_save_CC=$CC |
| 22521 | + lt_save_LD=$LD |
| 22522 | + lt_save_GCC=$GCC |
| 22523 | + GCC=$GXX |
| 22524 | + lt_save_with_gnu_ld=$with_gnu_ld |
| 22525 | + lt_save_path_LD=$lt_cv_path_LD |
| 22526 | + if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
| 22527 | + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
| 22528 | + else |
| 22529 | + $as_unset lt_cv_prog_gnu_ld |
| 22530 | fi |
| 22531 | - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 22532 | - 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'" |
| 22533 | - ;; |
| 22534 | -linux*) |
| 22535 | - if test "$host_cpu" = ia64; then |
| 22536 | - symcode='[[ABCDGIRSTW]]' |
| 22537 | - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 22538 | - 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'" |
| 22539 | + if test -n "${lt_cv_path_LDCXX+set}"; then |
| 22540 | + lt_cv_path_LD=$lt_cv_path_LDCXX |
| 22541 | + else |
| 22542 | + $as_unset lt_cv_path_LD |
| 22543 | fi |
| 22544 | - ;; |
| 22545 | -irix* | nonstopux*) |
| 22546 | - symcode='[[BCDEGRST]]' |
| 22547 | - ;; |
| 22548 | -osf*) |
| 22549 | - symcode='[[BCDEGQRST]]' |
| 22550 | - ;; |
| 22551 | -solaris*) |
| 22552 | - symcode='[[BDRT]]' |
| 22553 | - ;; |
| 22554 | -sco3.2v5*) |
| 22555 | - symcode='[[DT]]' |
| 22556 | - ;; |
| 22557 | -sysv4.2uw2*) |
| 22558 | - symcode='[[DT]]' |
| 22559 | - ;; |
| 22560 | -sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 22561 | - symcode='[[ABDT]]' |
| 22562 | - ;; |
| 22563 | -sysv4) |
| 22564 | - symcode='[[DFNSTU]]' |
| 22565 | - ;; |
| 22566 | -esac |
| 22567 | - |
| 22568 | -# Handle CRLF in mingw tool chain |
| 22569 | -opt_cr= |
| 22570 | -case $build_os in |
| 22571 | -mingw*) |
| 22572 | - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 22573 | - ;; |
| 22574 | -esac |
| 22575 | - |
| 22576 | -# If we're using GNU nm, then use its standard symbol codes. |
| 22577 | -case `$NM -V 2>&1` in |
| 22578 | -*GNU* | *'with BFD'*) |
| 22579 | - symcode='[[ABCDGIRSTW]]' ;; |
| 22580 | -esac |
| 22581 | - |
| 22582 | -# Try without a prefix undercore, then with it. |
| 22583 | -for ac_symprfx in "" "_"; do |
| 22584 | - |
| 22585 | - # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 22586 | - symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 22587 | - |
| 22588 | - # Write the raw and C identifiers. |
| 22589 | - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
| 22590 | - |
| 22591 | - # Check to see that the pipe works correctly. |
| 22592 | - pipe_works=no |
| 22593 | - |
| 22594 | - rm -f conftest* |
| 22595 | - cat > conftest.$ac_ext <<EOF |
| 22596 | -#ifdef __cplusplus |
| 22597 | -extern "C" { |
| 22598 | -#endif |
| 22599 | -char nm_test_var; |
| 22600 | -void nm_test_func(){} |
| 22601 | -#ifdef __cplusplus |
| 22602 | -} |
| 22603 | -#endif |
| 22604 | -int main(){nm_test_var='a';nm_test_func();return(0);} |
| 22605 | -EOF |
| 22606 | - |
| 22607 | - if AC_TRY_EVAL(ac_compile); then |
| 22608 | - # Now try to grab the symbols. |
| 22609 | - nlist=conftest.nm |
| 22610 | - if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then |
| 22611 | - # Try sorting and uniquifying the output. |
| 22612 | - if sort "$nlist" | uniq > "$nlist"T; then |
| 22613 | - mv -f "$nlist"T "$nlist" |
| 22614 | - else |
| 22615 | - rm -f "$nlist"T |
| 22616 | - fi |
| 22617 | - |
| 22618 | - # Make sure that we snagged all the symbols we need. |
| 22619 | - if grep ' nm_test_var$' "$nlist" >/dev/null; then |
| 22620 | - if grep ' nm_test_func$' "$nlist" >/dev/null; then |
| 22621 | - cat <<EOF > conftest.$ac_ext |
| 22622 | -#ifdef __cplusplus |
| 22623 | -extern "C" { |
| 22624 | -#endif |
| 22625 | - |
| 22626 | -EOF |
| 22627 | - # Now generate the symbol file. |
| 22628 | - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
| 22629 | - |
| 22630 | - cat <<EOF >> conftest.$ac_ext |
| 22631 | -#if defined (__STDC__) && __STDC__ |
| 22632 | -# define lt_ptr_t void * |
| 22633 | -#else |
| 22634 | -# define lt_ptr_t char * |
| 22635 | -# define const |
| 22636 | -#endif |
| 22637 | - |
| 22638 | -/* The mapping between symbol names and symbols. */ |
| 22639 | -const struct { |
| 22640 | - const char *name; |
| 22641 | - lt_ptr_t address; |
| 22642 | -} |
| 22643 | -lt_preloaded_symbols[[]] = |
| 22644 | -{ |
| 22645 | -EOF |
| 22646 | - $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
| 22647 | - cat <<\EOF >> conftest.$ac_ext |
| 22648 | - {0, (lt_ptr_t) 0} |
| 22649 | -}; |
| 22650 | + test -z "${LDCXX+set}" || LD=$LDCXX |
| 22651 | + CC=${CXX-"c++"} |
| 22652 | + compiler=$CC |
| 22653 | + _LT_TAGVAR(compiler, $1)=$CC |
| 22654 | + _LT_CC_BASENAME([$compiler]) |
| 22655 | |
| 22656 | -#ifdef __cplusplus |
| 22657 | -} |
| 22658 | -#endif |
| 22659 | -EOF |
| 22660 | - # Now try linking the two files. |
| 22661 | - mv conftest.$ac_objext conftstm.$ac_objext |
| 22662 | - lt_save_LIBS="$LIBS" |
| 22663 | - lt_save_CFLAGS="$CFLAGS" |
| 22664 | - LIBS="conftstm.$ac_objext" |
| 22665 | - CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" |
| 22666 | - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then |
| 22667 | - pipe_works=yes |
| 22668 | - fi |
| 22669 | - LIBS="$lt_save_LIBS" |
| 22670 | - CFLAGS="$lt_save_CFLAGS" |
| 22671 | - else |
| 22672 | - echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD |
| 22673 | - fi |
| 22674 | - else |
| 22675 | - echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD |
| 22676 | - fi |
| 22677 | + if test -n "$compiler"; then |
| 22678 | + # We don't want -fno-exception when compiling C++ code, so set the |
| 22679 | + # no_builtin_flag separately |
| 22680 | + if test "$GXX" = yes; then |
| 22681 | + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' |
| 22682 | else |
| 22683 | - echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD |
| 22684 | + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= |
| 22685 | fi |
| 22686 | - else |
| 22687 | - echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD |
| 22688 | - cat conftest.$ac_ext >&5 |
| 22689 | - fi |
| 22690 | - rm -f conftest* conftst* |
| 22691 | - |
| 22692 | - # Do not use the global_symbol_pipe unless it works. |
| 22693 | - if test "$pipe_works" = yes; then |
| 22694 | - break |
| 22695 | - else |
| 22696 | - lt_cv_sys_global_symbol_pipe= |
| 22697 | - fi |
| 22698 | -done |
| 22699 | -]) |
| 22700 | -if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 22701 | - lt_cv_sys_global_symbol_to_cdecl= |
| 22702 | -fi |
| 22703 | -if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
| 22704 | - AC_MSG_RESULT(failed) |
| 22705 | -else |
| 22706 | - AC_MSG_RESULT(ok) |
| 22707 | -fi |
| 22708 | -]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE |
| 22709 | |
| 22710 | + if test "$GXX" = yes; then |
| 22711 | + # Set up default GNU C++ configuration |
| 22712 | |
| 22713 | -# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME]) |
| 22714 | -# --------------------------------------- |
| 22715 | -AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC], |
| 22716 | -[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)= |
| 22717 | -_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= |
| 22718 | -_LT_AC_TAGVAR(lt_prog_compiler_static, $1)= |
| 22719 | + LT_PATH_LD |
| 22720 | |
| 22721 | -AC_MSG_CHECKING([for $compiler option to produce PIC]) |
| 22722 | - ifelse([$1],[CXX],[ |
| 22723 | - # C++ specific cases for pic, static, wl, etc. |
| 22724 | - if test "$GXX" = yes; then |
| 22725 | - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 22726 | - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' |
| 22727 | + # Check if GNU C++ uses GNU ld as the underlying linker, since the |
| 22728 | + # archiving commands below assume that GNU ld is being used. |
| 22729 | + if test "$with_gnu_ld" = yes; then |
| 22730 | + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 22731 | + _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' |
| 22732 | + |
| 22733 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
| 22734 | + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
| 22735 | + |
| 22736 | + # If archive_cmds runs LD, not CC, wlarc should be empty |
| 22737 | + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
| 22738 | + # investigate it a little bit more. (MM) |
| 22739 | + wlarc='${wl}' |
| 22740 | + |
| 22741 | + # ancient GNU ld didn't support --whole-archive et. al. |
| 22742 | + if eval "`$CC -print-prog-name=ld` --help 2>&1" | |
| 22743 | + $GREP 'no-whole-archive' > /dev/null; then |
| 22744 | + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 22745 | + else |
| 22746 | + _LT_TAGVAR(whole_archive_flag_spec, $1)= |
| 22747 | + fi |
| 22748 | + else |
| 22749 | + with_gnu_ld=no |
| 22750 | + wlarc= |
| 22751 | |
| 22752 | - case $host_os in |
| 22753 | - aix*) |
| 22754 | - # All AIX code is PIC. |
| 22755 | - if test "$host_cpu" = ia64; then |
| 22756 | - # AIX 5 now supports IA64 processor |
| 22757 | - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 22758 | - fi |
| 22759 | - ;; |
| 22760 | - amigaos*) |
| 22761 | - # FIXME: we need at least 68020 code to build shared libraries, but |
| 22762 | - # adding the `-m68020' flag to GCC prevents building anything better, |
| 22763 | - # like `-m68040'. |
| 22764 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' |
| 22765 | - ;; |
| 22766 | - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 22767 | - # PIC is the default for these OSes. |
| 22768 | - ;; |
| 22769 | - mingw* | cygwin* | os2* | pw32*) |
| 22770 | - # This hack is so that the source file can tell whether it is being |
| 22771 | - # built for inclusion in a dll (and should export symbols for example). |
| 22772 | - # Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 22773 | - # (--disable-auto-import) libraries |
| 22774 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' |
| 22775 | - ;; |
| 22776 | - darwin* | rhapsody*) |
| 22777 | - # PIC is the default on this platform |
| 22778 | - # Common symbols not allowed in MH_DYLIB files |
| 22779 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' |
| 22780 | - ;; |
| 22781 | - *djgpp*) |
| 22782 | - # DJGPP does not support shared libraries at all |
| 22783 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= |
| 22784 | - ;; |
| 22785 | - interix3*) |
| 22786 | - # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 22787 | - # Instead, we relocate shared libraries at runtime. |
| 22788 | - ;; |
| 22789 | - sysv4*MP*) |
| 22790 | - if test -d /usr/nec; then |
| 22791 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic |
| 22792 | + # A generic and very simple default shared library creation |
| 22793 | + # command for GNU C++ for the case where it uses the native |
| 22794 | + # linker, instead of GNU ld. If possible, this setting should |
| 22795 | + # overridden to take advantage of the native linker features on |
| 22796 | + # the platform it is being used on. |
| 22797 | + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 22798 | fi |
| 22799 | - ;; |
| 22800 | - hpux*) |
| 22801 | - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 22802 | - # not for PA HP-UX. |
| 22803 | - case $host_cpu in |
| 22804 | - hppa*64*|ia64*) |
| 22805 | - ;; |
| 22806 | - *) |
| 22807 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
| 22808 | - ;; |
| 22809 | - esac |
| 22810 | - ;; |
| 22811 | - *) |
| 22812 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
| 22813 | - ;; |
| 22814 | - esac |
| 22815 | - else |
| 22816 | + |
| 22817 | + # Commands to make compiler produce verbose output that lists |
| 22818 | + # what "hidden" libraries, object files and flags are used when |
| 22819 | + # linking a shared library. |
| 22820 | + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' |
| 22821 | + |
| 22822 | + else |
| 22823 | + GXX=no |
| 22824 | + with_gnu_ld=no |
| 22825 | + wlarc= |
| 22826 | + fi |
| 22827 | + |
| 22828 | + # PORTME: fill in a description of your system's C++ link characteristics |
| 22829 | + AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) |
| 22830 | + _LT_TAGVAR(ld_shlibs, $1)=yes |
| 22831 | case $host_os in |
| 22832 | - aix4* | aix5*) |
| 22833 | - # All AIX code is PIC. |
| 22834 | - if test "$host_cpu" = ia64; then |
| 22835 | - # AIX 5 now supports IA64 processor |
| 22836 | - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 22837 | + aix3*) |
| 22838 | + # FIXME: insert proper C++ library support |
| 22839 | + _LT_TAGVAR(ld_shlibs, $1)=no |
| 22840 | + ;; |
| 22841 | + aix[[4-9]]*) |
| 22842 | + if test "$host_cpu" = ia64; then |
| 22843 | + # On IA64, the linker does run time linking by default, so we don't |
| 22844 | + # have to do anything special. |
| 22845 | + aix_use_runtimelinking=no |
| 22846 | + exp_sym_flag='-Bexport' |
| 22847 | + no_entry_flag="" |
| 22848 | + else |
| 22849 | + aix_use_runtimelinking=no |
| 22850 | + |
| 22851 | + # Test if we are trying to use run time linking or normal |
| 22852 | + # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 22853 | + # need to do runtime linking. |
| 22854 | + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) |
| 22855 | + for ld_flag in $LDFLAGS; do |
| 22856 | + case $ld_flag in |
| 22857 | + *-brtl*) |
| 22858 | + aix_use_runtimelinking=yes |
| 22859 | + break |
| 22860 | + ;; |
| 22861 | + esac |
| 22862 | + done |
| 22863 | + ;; |
| 22864 | + esac |
| 22865 | + |
| 22866 | + exp_sym_flag='-bexport' |
| 22867 | + no_entry_flag='-bnoentry' |
| 22868 | + fi |
| 22869 | + |
| 22870 | + # When large executables or shared objects are built, AIX ld can |
| 22871 | + # have problems creating the table of contents. If linking a library |
| 22872 | + # or program results in "error TOC overflow" add -mminimal-toc to |
| 22873 | + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 22874 | + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 22875 | + |
| 22876 | + _LT_TAGVAR(archive_cmds, $1)='' |
| 22877 | + _LT_TAGVAR(hardcode_direct, $1)=yes |
| 22878 | + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes |
| 22879 | + _LT_TAGVAR(hardcode_libdir_separator, $1)=':' |
| 22880 | + _LT_TAGVAR(link_all_deplibs, $1)=yes |
| 22881 | + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' |
| 22882 | + |
| 22883 | + if test "$GXX" = yes; then |
| 22884 | + case $host_os in aix4.[[012]]|aix4.[[012]].*) |
| 22885 | + # We only want to do this on AIX 4.2 and lower, the check |
| 22886 | + # below for broken collect2 doesn't work under 4.3+ |
| 22887 | + collect2name=`${CC} -print-prog-name=collect2` |
| 22888 | + if test -f "$collect2name" && |
| 22889 | + strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
| 22890 | + then |
| 22891 | + # We have reworked collect2 |
| 22892 | + : |
| 22893 | + else |
| 22894 | + # We have old collect2 |
| 22895 | + _LT_TAGVAR(hardcode_direct, $1)=unsupported |
| 22896 | + # It fails to find uninstalled libraries when the uninstalled |
| 22897 | + # path is not listed in the libpath. Setting hardcode_minus_L |
| 22898 | + # to unsupported forces relinking |
| 22899 | + _LT_TAGVAR(hardcode_minus_L, $1)=yes |
| 22900 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| 22901 | + _LT_TAGVAR(hardcode_libdir_separator, $1)= |
| 22902 | + fi |
| 22903 | + esac |
| 22904 | + shared_flag='-shared' |
| 22905 | + if test "$aix_use_runtimelinking" = yes; then |
| 22906 | + shared_flag="$shared_flag "'${wl}-G' |
| 22907 | + fi |
| 22908 | + else |
| 22909 | + # not using gcc |
| 22910 | + if test "$host_cpu" = ia64; then |
| 22911 | + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 22912 | + # chokes on -Wl,-G. The following line is correct: |
| 22913 | + shared_flag='-G' |
| 22914 | + else |
| 22915 | + if test "$aix_use_runtimelinking" = yes; then |
| 22916 | + shared_flag='${wl}-G' |
| 22917 | + else |
| 22918 | + shared_flag='${wl}-bM:SRE' |
| 22919 | + fi |
| 22920 | + fi |
| 22921 | + fi |
| 22922 | + |
| 22923 | + # It seems that -bexpall does not export symbols beginning with |
| 22924 | + # underscore (_), so it is better to generate a list of symbols to |
| 22925 | + # export. |
| 22926 | + _LT_TAGVAR(always_export_symbols, $1)=yes |
| 22927 | + if test "$aix_use_runtimelinking" = yes; then |
| 22928 | + # Warning - without using the other runtime loading flags (-brtl), |
| 22929 | + # -berok will link without error, but may produce a broken library. |
| 22930 | + _LT_TAGVAR(allow_undefined_flag, $1)='-berok' |
| 22931 | + # Determine the default libpath from the value encoded in an empty |
| 22932 | + # executable. |
| 22933 | + _LT_SYS_MODULE_PATH_AIX |
| 22934 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 22935 | + |
| 22936 | + _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" |
| 22937 | + else |
| 22938 | + if test "$host_cpu" = ia64; then |
| 22939 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' |
| 22940 | + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" |
| 22941 | + _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" |
| 22942 | + else |
| 22943 | + # Determine the default libpath from the value encoded in an |
| 22944 | + # empty executable. |
| 22945 | + _LT_SYS_MODULE_PATH_AIX |
| 22946 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 22947 | + # Warning - without using the other run time loading flags, |
| 22948 | + # -berok will link without error, but may produce a broken library. |
| 22949 | + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' |
| 22950 | + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' |
| 22951 | + # Exported symbols can be pulled into shared objects from archives |
| 22952 | + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' |
| 22953 | + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes |
| 22954 | + # This is similar to how AIX traditionally builds its shared |
| 22955 | + # libraries. |
| 22956 | + _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' |
| 22957 | + fi |
| 22958 | + fi |
| 22959 | + ;; |
| 22960 | + |
| 22961 | + beos*) |
| 22962 | + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 22963 | + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported |
| 22964 | + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 22965 | + # support --undefined. This deserves some investigation. FIXME |
| 22966 | + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 22967 | else |
| 22968 | - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' |
| 22969 | + _LT_TAGVAR(ld_shlibs, $1)=no |
| 22970 | fi |
| 22971 | ;; |
| 22972 | + |
| 22973 | chorus*) |
| 22974 | - case $cc_basename in |
| 22975 | - cxch68*) |
| 22976 | - # Green Hills C++ Compiler |
| 22977 | - # _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" |
| 22978 | + case $cc_basename in |
| 22979 | + *) |
| 22980 | + # FIXME: insert proper C++ library support |
| 22981 | + _LT_TAGVAR(ld_shlibs, $1)=no |
| 22982 | ;; |
| 22983 | - esac |
| 22984 | + esac |
| 22985 | + ;; |
| 22986 | + |
| 22987 | + cygwin* | mingw* | pw32*) |
| 22988 | + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, |
| 22989 | + # as there is no search path for DLLs. |
| 22990 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| 22991 | + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported |
| 22992 | + _LT_TAGVAR(always_export_symbols, $1)=no |
| 22993 | + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
| 22994 | + |
| 22995 | + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
| 22996 | + _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' |
| 22997 | + # If the export-symbols file already is a .def file (1st line |
| 22998 | + # is EXPORTS), use it as is; otherwise, prepend... |
| 22999 | + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 23000 | + cp $export_symbols $output_objdir/$soname.def; |
| 23001 | + else |
| 23002 | + echo EXPORTS > $output_objdir/$soname.def; |
| 23003 | + cat $export_symbols >> $output_objdir/$soname.def; |
| 23004 | + fi~ |
| 23005 | + $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' |
| 23006 | + else |
| 23007 | + _LT_TAGVAR(ld_shlibs, $1)=no |
| 23008 | + fi |
| 23009 | + ;; |
| 23010 | + darwin* | rhapsody*) |
| 23011 | + _LT_DARWIN_LINKER_FEATURES($1) |
| 23012 | ;; |
| 23013 | - darwin*) |
| 23014 | - # PIC is the default on this platform |
| 23015 | - # Common symbols not allowed in MH_DYLIB files |
| 23016 | - case $cc_basename in |
| 23017 | - xlc*) |
| 23018 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' |
| 23019 | - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 23020 | - ;; |
| 23021 | - esac |
| 23022 | - ;; |
| 23023 | + |
| 23024 | dgux*) |
| 23025 | - case $cc_basename in |
| 23026 | - ec++*) |
| 23027 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 23028 | + case $cc_basename in |
| 23029 | + ec++*) |
| 23030 | + # FIXME: insert proper C++ library support |
| 23031 | + _LT_TAGVAR(ld_shlibs, $1)=no |
| 23032 | ;; |
| 23033 | - ghcx*) |
| 23034 | + ghcx*) |
| 23035 | # Green Hills C++ Compiler |
| 23036 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
| 23037 | + # FIXME: insert proper C++ library support |
| 23038 | + _LT_TAGVAR(ld_shlibs, $1)=no |
| 23039 | ;; |
| 23040 | - *) |
| 23041 | + *) |
| 23042 | + # FIXME: insert proper C++ library support |
| 23043 | + _LT_TAGVAR(ld_shlibs, $1)=no |
| 23044 | ;; |
| 23045 | - esac |
| 23046 | - ;; |
| 23047 | - freebsd* | kfreebsd*-gnu | dragonfly*) |
| 23048 | - # FreeBSD uses GNU C++ |
| 23049 | - ;; |
| 23050 | - hpux9* | hpux10* | hpux11*) |
| 23051 | - case $cc_basename in |
| 23052 | - CC*) |
| 23053 | - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 23054 | - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' |
| 23055 | - if test "$host_cpu" != ia64; then |
| 23056 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' |
| 23057 | - fi |
| 23058 | + esac |
| 23059 | + ;; |
| 23060 | + |
| 23061 | + freebsd[[12]]*) |
| 23062 | + # C++ shared libraries reported to be fairly broken before |
| 23063 | + # switch to ELF |
| 23064 | + _LT_TAGVAR(ld_shlibs, $1)=no |
| 23065 | + ;; |
| 23066 | + |
| 23067 | + freebsd-elf*) |
| 23068 | + _LT_TAGVAR(archive_cmds_need_lc, $1)=no |
| 23069 | + ;; |
| 23070 | + |
| 23071 | + freebsd* | dragonfly*) |
| 23072 | + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
| 23073 | + # conventions |
| 23074 | + _LT_TAGVAR(ld_shlibs, $1)=yes |
| 23075 | + ;; |
| 23076 | + |
| 23077 | + gnu*) |
| 23078 | + ;; |
| 23079 | + |
| 23080 | + hpux9*) |
| 23081 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
| 23082 | + _LT_TAGVAR(hardcode_libdir_separator, $1)=: |
| 23083 | + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
| 23084 | + _LT_TAGVAR(hardcode_direct, $1)=yes |
| 23085 | + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, |
| 23086 | + # but as the default |
| 23087 | + # location of the library. |
| 23088 | + |
| 23089 | + case $cc_basename in |
| 23090 | + CC*) |
| 23091 | + # FIXME: insert proper C++ library support |
| 23092 | + _LT_TAGVAR(ld_shlibs, $1)=no |
| 23093 | + ;; |
| 23094 | + aCC*) |
| 23095 | + _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' |
| 23096 | + # Commands to make compiler produce verbose output that lists |
| 23097 | + # what "hidden" libraries, object files and flags are used when |
| 23098 | + # linking a shared library. |
| 23099 | + # |
| 23100 | + # There doesn't appear to be a way to prevent this compiler from |
| 23101 | + # explicitly linking system object files so we need to strip them |
| 23102 | + # from the output so that they don't get included in the library |
| 23103 | + # dependencies. |
| 23104 | + 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' |
| 23105 | + ;; |
| 23106 | + *) |
| 23107 | + if test "$GXX" = yes; then |
| 23108 | + _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' |
| 23109 | + else |
| 23110 | + # FIXME: insert proper C++ library support |
| 23111 | + _LT_TAGVAR(ld_shlibs, $1)=no |
| 23112 | + fi |
| 23113 | + ;; |
| 23114 | + esac |
| 23115 | + ;; |
| 23116 | + |
| 23117 | + hpux10*|hpux11*) |
| 23118 | + if test $with_gnu_ld = no; then |
| 23119 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
| 23120 | + _LT_TAGVAR(hardcode_libdir_separator, $1)=: |
| 23121 | + |
| 23122 | + case $host_cpu in |
| 23123 | + hppa*64*|ia64*) |
| 23124 | + ;; |
| 23125 | + *) |
| 23126 | + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
| 23127 | + ;; |
| 23128 | + esac |
| 23129 | + fi |
| 23130 | + case $host_cpu in |
| 23131 | + hppa*64*|ia64*) |
| 23132 | + _LT_TAGVAR(hardcode_direct, $1)=no |
| 23133 | + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 23134 | + ;; |
| 23135 | + *) |
| 23136 | + _LT_TAGVAR(hardcode_direct, $1)=yes |
| 23137 | + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes |
| 23138 | + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, |
| 23139 | + # but as the default |
| 23140 | + # location of the library. |
| 23141 | + ;; |
| 23142 | + esac |
| 23143 | + |
| 23144 | + case $cc_basename in |
| 23145 | + CC*) |
| 23146 | + # FIXME: insert proper C++ library support |
| 23147 | + _LT_TAGVAR(ld_shlibs, $1)=no |
| 23148 | ;; |
| 23149 | - aCC*) |
| 23150 | - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 23151 | - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' |
| 23152 | + aCC*) |
| 23153 | case $host_cpu in |
| 23154 | - hppa*64*|ia64*) |
| 23155 | - # +Z the default |
| 23156 | - ;; |
| 23157 | - *) |
| 23158 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' |
| 23159 | - ;; |
| 23160 | + hppa*64*) |
| 23161 | + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 23162 | + ;; |
| 23163 | + ia64*) |
| 23164 | + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 23165 | + ;; |
| 23166 | + *) |
| 23167 | + _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' |
| 23168 | + ;; |
| 23169 | esac |
| 23170 | + # Commands to make compiler produce verbose output that lists |
| 23171 | + # what "hidden" libraries, object files and flags are used when |
| 23172 | + # linking a shared library. |
| 23173 | + # |
| 23174 | + # There doesn't appear to be a way to prevent this compiler from |
| 23175 | + # explicitly linking system object files so we need to strip them |
| 23176 | + # from the output so that they don't get included in the library |
| 23177 | + # dependencies. |
| 23178 | + 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' |
| 23179 | ;; |
| 23180 | - *) |
| 23181 | + *) |
| 23182 | + if test "$GXX" = yes; then |
| 23183 | + if test $with_gnu_ld = no; then |
| 23184 | + case $host_cpu in |
| 23185 | + hppa*64*) |
| 23186 | + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 23187 | + ;; |
| 23188 | + ia64*) |
| 23189 | + _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' |
| 23190 | + ;; |
| 23191 | + *) |
| 23192 | + _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' |
| 23193 | + ;; |
| 23194 | + esac |
| 23195 | + fi |
| 23196 | + else |
| 23197 | + # FIXME: insert proper C++ library support |
| 23198 | + _LT_TAGVAR(ld_shlibs, $1)=no |
| 23199 | + fi |
| 23200 | ;; |
| 23201 | - esac |
| 23202 | - ;; |
| 23203 | - interix*) |
| 23204 | - # This is c89, which is MS Visual C++ (no shared libs) |
| 23205 | - # Anyone wants to do a port? |
| 23206 | - ;; |
| 23207 | - irix5* | irix6* | nonstopux*) |
| 23208 | - case $cc_basename in |
| 23209 | - CC*) |
| 23210 | - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 23211 | - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
| 23212 | - # CC pic flag -KPIC is the default. |
| 23213 | + esac |
| 23214 | + ;; |
| 23215 | + |
| 23216 | + interix[[3-9]]*) |
| 23217 | + _LT_TAGVAR(hardcode_direct, $1)=no |
| 23218 | + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 23219 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
| 23220 | + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
| 23221 | + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 23222 | + # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 23223 | + # default) and relocated if they conflict, which is a slow very memory |
| 23224 | + # consuming and fragmenting process. To avoid this, we pick a random, |
| 23225 | + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 23226 | + # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 23227 | + _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' |
| 23228 | + _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' |
| 23229 | + ;; |
| 23230 | + irix5* | irix6*) |
| 23231 | + case $cc_basename in |
| 23232 | + CC*) |
| 23233 | + # SGI C++ |
| 23234 | + _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' |
| 23235 | + |
| 23236 | + # Archives containing C++ object files must be created using |
| 23237 | + # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
| 23238 | + # necessary to make sure instantiated templates are included |
| 23239 | + # in the archive. |
| 23240 | + _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' |
| 23241 | ;; |
| 23242 | - *) |
| 23243 | + *) |
| 23244 | + if test "$GXX" = yes; then |
| 23245 | + if test "$with_gnu_ld" = no; then |
| 23246 | + _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' |
| 23247 | + else |
| 23248 | + _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' |
| 23249 | + fi |
| 23250 | + fi |
| 23251 | + _LT_TAGVAR(link_all_deplibs, $1)=yes |
| 23252 | ;; |
| 23253 | - esac |
| 23254 | - ;; |
| 23255 | - linux*) |
| 23256 | - case $cc_basename in |
| 23257 | - KCC*) |
| 23258 | - # KAI C++ Compiler |
| 23259 | - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' |
| 23260 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
| 23261 | + esac |
| 23262 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
| 23263 | + _LT_TAGVAR(hardcode_libdir_separator, $1)=: |
| 23264 | + _LT_TAGVAR(inherit_rpath, $1)=yes |
| 23265 | + ;; |
| 23266 | + |
| 23267 | + linux* | k*bsd*-gnu) |
| 23268 | + case $cc_basename in |
| 23269 | + KCC*) |
| 23270 | + # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 23271 | + |
| 23272 | + # KCC will only create a shared library if the output file |
| 23273 | + # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 23274 | + # to its proper name (with version) after linking. |
| 23275 | + _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' |
| 23276 | + _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' |
| 23277 | + # Commands to make compiler produce verbose output that lists |
| 23278 | + # what "hidden" libraries, object files and flags are used when |
| 23279 | + # linking a shared library. |
| 23280 | + # |
| 23281 | + # There doesn't appear to be a way to prevent this compiler from |
| 23282 | + # explicitly linking system object files so we need to strip them |
| 23283 | + # from the output so that they don't get included in the library |
| 23284 | + # dependencies. |
| 23285 | + 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' |
| 23286 | + |
| 23287 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
| 23288 | + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
| 23289 | + |
| 23290 | + # Archives containing C++ object files must be created using |
| 23291 | + # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 23292 | + _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' |
| 23293 | ;; |
| 23294 | - icpc* | ecpc*) |
| 23295 | + icpc* | ecpc* ) |
| 23296 | # Intel C++ |
| 23297 | - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 23298 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 23299 | - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' |
| 23300 | - ;; |
| 23301 | - pgCC*) |
| 23302 | - # Portland Group C++ compiler. |
| 23303 | - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 23304 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' |
| 23305 | - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 23306 | - ;; |
| 23307 | - cxx*) |
| 23308 | - # Compaq C++ |
| 23309 | - # Make sure the PIC flag is empty. It appears that all Alpha |
| 23310 | - # Linux and Compaq Tru64 Unix objects are PIC. |
| 23311 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= |
| 23312 | - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
| 23313 | + with_gnu_ld=yes |
| 23314 | + # version 8.0 and above of icpc choke on multiply defined symbols |
| 23315 | + # if we add $predep_objects and $postdep_objects, however 7.1 and |
| 23316 | + # earlier do not add the objects themselves. |
| 23317 | + case `$CC -V 2>&1` in |
| 23318 | + *"Version 7."*) |
| 23319 | + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 23320 | + _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' |
| 23321 | + ;; |
| 23322 | + *) # Version 8.0 or newer |
| 23323 | + tmp_idyn= |
| 23324 | + case $host_cpu in |
| 23325 | + ia64*) tmp_idyn=' -i_dynamic';; |
| 23326 | + esac |
| 23327 | + _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 23328 | + _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' |
| 23329 | + ;; |
| 23330 | + esac |
| 23331 | + _LT_TAGVAR(archive_cmds_need_lc, $1)=no |
| 23332 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
| 23333 | + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
| 23334 | + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 23335 | ;; |
| 23336 | - *) |
| 23337 | - case `$CC -V 2>&1 | sed 5q` in |
| 23338 | - *Sun\ C*) |
| 23339 | - # Sun C++ 5.9 |
| 23340 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 23341 | - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 23342 | - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' |
| 23343 | + pgCC* | pgcpp*) |
| 23344 | + # Portland Group C++ compiler |
| 23345 | + case `$CC -V` in |
| 23346 | + *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*) |
| 23347 | + _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ |
| 23348 | + rm -rf $tpldir~ |
| 23349 | + $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ |
| 23350 | + compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' |
| 23351 | + _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ |
| 23352 | + rm -rf $tpldir~ |
| 23353 | + $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ |
| 23354 | + $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ |
| 23355 | + $RANLIB $oldlib' |
| 23356 | + _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~ |
| 23357 | + rm -rf $tpldir~ |
| 23358 | + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ |
| 23359 | + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
| 23360 | + _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ |
| 23361 | + rm -rf $tpldir~ |
| 23362 | + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ |
| 23363 | + $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' |
| 23364 | + ;; |
| 23365 | + *) # Version 6 will use weak symbols |
| 23366 | + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
| 23367 | + _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' |
| 23368 | ;; |
| 23369 | esac |
| 23370 | - ;; |
| 23371 | - esac |
| 23372 | - ;; |
| 23373 | - lynxos*) |
| 23374 | - ;; |
| 23375 | - m88k*) |
| 23376 | - ;; |
| 23377 | - mvs*) |
| 23378 | - case $cc_basename in |
| 23379 | - cxx*) |
| 23380 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' |
| 23381 | - ;; |
| 23382 | - *) |
| 23383 | - ;; |
| 23384 | - esac |
| 23385 | - ;; |
| 23386 | - netbsd*) |
| 23387 | - ;; |
| 23388 | - osf3* | osf4* | osf5*) |
| 23389 | - case $cc_basename in |
| 23390 | - KCC*) |
| 23391 | - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' |
| 23392 | - ;; |
| 23393 | - RCC*) |
| 23394 | - # Rational C++ 2.4.1 |
| 23395 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
| 23396 | - ;; |
| 23397 | + |
| 23398 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' |
| 23399 | + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
| 23400 | + _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' |
| 23401 | + ;; |
| 23402 | cxx*) |
| 23403 | - # Digital/Compaq C++ |
| 23404 | - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 23405 | - # Make sure the PIC flag is empty. It appears that all Alpha |
| 23406 | - # Linux and Compaq Tru64 Unix objects are PIC. |
| 23407 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= |
| 23408 | - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
| 23409 | - ;; |
| 23410 | - *) |
| 23411 | - ;; |
| 23412 | - esac |
| 23413 | - ;; |
| 23414 | - psos*) |
| 23415 | - ;; |
| 23416 | - solaris*) |
| 23417 | - case $cc_basename in |
| 23418 | - CC*) |
| 23419 | - # Sun C++ 4.2, 5.x and Centerline C++ |
| 23420 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 23421 | - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 23422 | - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' |
| 23423 | - ;; |
| 23424 | - gcx*) |
| 23425 | - # Green Hills C++ Compiler |
| 23426 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' |
| 23427 | - ;; |
| 23428 | - *) |
| 23429 | - ;; |
| 23430 | - esac |
| 23431 | - ;; |
| 23432 | - sunos4*) |
| 23433 | - case $cc_basename in |
| 23434 | - CC*) |
| 23435 | - # Sun C++ 4.x |
| 23436 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
| 23437 | - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 23438 | - ;; |
| 23439 | - lcc*) |
| 23440 | - # Lucid |
| 23441 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
| 23442 | - ;; |
| 23443 | - *) |
| 23444 | + # Compaq C++ |
| 23445 | + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 23446 | + _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' |
| 23447 | + |
| 23448 | + runpath_var=LD_RUN_PATH |
| 23449 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' |
| 23450 | + _LT_TAGVAR(hardcode_libdir_separator, $1)=: |
| 23451 | + |
| 23452 | + # Commands to make compiler produce verbose output that lists |
| 23453 | + # what "hidden" libraries, object files and flags are used when |
| 23454 | + # linking a shared library. |
| 23455 | + # |
| 23456 | + # There doesn't appear to be a way to prevent this compiler from |
| 23457 | + # explicitly linking system object files so we need to strip them |
| 23458 | + # from the output so that they don't get included in the library |
| 23459 | + # dependencies. |
| 23460 | + 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' |
| 23461 | ;; |
| 23462 | - esac |
| 23463 | - ;; |
| 23464 | - tandem*) |
| 23465 | - case $cc_basename in |
| 23466 | - NCC*) |
| 23467 | - # NonStop-UX NCC 3.20 |
| 23468 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 23469 | + xl*) |
| 23470 | + # IBM XL 8.0 on PPC, with GNU ld |
| 23471 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
| 23472 | + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
| 23473 | + _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 23474 | + if test "x$supports_anon_versioning" = xyes; then |
| 23475 | + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ |
| 23476 | + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 23477 | + echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 23478 | + $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 23479 | + fi |
| 23480 | ;; |
| 23481 | *) |
| 23482 | + case `$CC -V 2>&1 | sed 5q` in |
| 23483 | + *Sun\ C*) |
| 23484 | + # Sun C++ 5.9 |
| 23485 | + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' |
| 23486 | + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 23487 | + _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' |
| 23488 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
| 23489 | + _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' |
| 23490 | + _LT_TAGVAR(compiler_needs_object, $1)=yes |
| 23491 | + |
| 23492 | + # Not sure whether something based on |
| 23493 | + # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 |
| 23494 | + # would be better. |
| 23495 | + output_verbose_link_cmd='echo' |
| 23496 | + |
| 23497 | + # Archives containing C++ object files must be created using |
| 23498 | + # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 23499 | + # necessary to make sure instantiated templates are included |
| 23500 | + # in the archive. |
| 23501 | + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' |
| 23502 | + ;; |
| 23503 | + esac |
| 23504 | ;; |
| 23505 | esac |
| 23506 | ;; |
| 23507 | - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 23508 | - case $cc_basename in |
| 23509 | - CC*) |
| 23510 | - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 23511 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 23512 | - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 23513 | + |
| 23514 | + lynxos*) |
| 23515 | + # FIXME: insert proper C++ library support |
| 23516 | + _LT_TAGVAR(ld_shlibs, $1)=no |
| 23517 | + ;; |
| 23518 | + |
| 23519 | + m88k*) |
| 23520 | + # FIXME: insert proper C++ library support |
| 23521 | + _LT_TAGVAR(ld_shlibs, $1)=no |
| 23522 | + ;; |
| 23523 | + |
| 23524 | + mvs*) |
| 23525 | + case $cc_basename in |
| 23526 | + cxx*) |
| 23527 | + # FIXME: insert proper C++ library support |
| 23528 | + _LT_TAGVAR(ld_shlibs, $1)=no |
| 23529 | + ;; |
| 23530 | + *) |
| 23531 | + # FIXME: insert proper C++ library support |
| 23532 | + _LT_TAGVAR(ld_shlibs, $1)=no |
| 23533 | ;; |
| 23534 | esac |
| 23535 | ;; |
| 23536 | - vxworks*) |
| 23537 | + |
| 23538 | + netbsd*) |
| 23539 | + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 23540 | + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
| 23541 | + wlarc= |
| 23542 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
| 23543 | + _LT_TAGVAR(hardcode_direct, $1)=yes |
| 23544 | + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 23545 | + fi |
| 23546 | + # Workaround some broken pre-1.5 toolchains |
| 23547 | + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
| 23548 | ;; |
| 23549 | - *) |
| 23550 | - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no |
| 23551 | + |
| 23552 | + *nto* | *qnx*) |
| 23553 | + _LT_TAGVAR(ld_shlibs, $1)=yes |
| 23554 | ;; |
| 23555 | - esac |
| 23556 | - fi |
| 23557 | -], |
| 23558 | -[ |
| 23559 | - if test "$GCC" = yes; then |
| 23560 | - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 23561 | - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' |
| 23562 | |
| 23563 | - case $host_os in |
| 23564 | - aix*) |
| 23565 | - # All AIX code is PIC. |
| 23566 | - if test "$host_cpu" = ia64; then |
| 23567 | - # AIX 5 now supports IA64 processor |
| 23568 | - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 23569 | - fi |
| 23570 | - ;; |
| 23571 | + openbsd2*) |
| 23572 | + # C++ shared libraries are fairly broken |
| 23573 | + _LT_TAGVAR(ld_shlibs, $1)=no |
| 23574 | + ;; |
| 23575 | + |
| 23576 | + openbsd*) |
| 23577 | + if test -f /usr/libexec/ld.so; then |
| 23578 | + _LT_TAGVAR(hardcode_direct, $1)=yes |
| 23579 | + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 23580 | + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes |
| 23581 | + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 23582 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
| 23583 | + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 23584 | + _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' |
| 23585 | + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
| 23586 | + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 23587 | + fi |
| 23588 | + output_verbose_link_cmd=echo |
| 23589 | + else |
| 23590 | + _LT_TAGVAR(ld_shlibs, $1)=no |
| 23591 | + fi |
| 23592 | + ;; |
| 23593 | |
| 23594 | - amigaos*) |
| 23595 | - # FIXME: we need at least 68020 code to build shared libraries, but |
| 23596 | - # adding the `-m68020' flag to GCC prevents building anything better, |
| 23597 | - # like `-m68040'. |
| 23598 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' |
| 23599 | - ;; |
| 23600 | + osf3* | osf4* | osf5*) |
| 23601 | + case $cc_basename in |
| 23602 | + KCC*) |
| 23603 | + # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 23604 | + |
| 23605 | + # KCC will only create a shared library if the output file |
| 23606 | + # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 23607 | + # to its proper name (with version) after linking. |
| 23608 | + _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' |
| 23609 | + |
| 23610 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
| 23611 | + _LT_TAGVAR(hardcode_libdir_separator, $1)=: |
| 23612 | + |
| 23613 | + # Archives containing C++ object files must be created using |
| 23614 | + # the KAI C++ compiler. |
| 23615 | + case $host in |
| 23616 | + osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; |
| 23617 | + *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;; |
| 23618 | + esac |
| 23619 | + ;; |
| 23620 | + RCC*) |
| 23621 | + # Rational C++ 2.4.1 |
| 23622 | + # FIXME: insert proper C++ library support |
| 23623 | + _LT_TAGVAR(ld_shlibs, $1)=no |
| 23624 | + ;; |
| 23625 | + cxx*) |
| 23626 | + case $host in |
| 23627 | + osf3*) |
| 23628 | + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
| 23629 | + _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' |
| 23630 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
| 23631 | + ;; |
| 23632 | + *) |
| 23633 | + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' |
| 23634 | + _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' |
| 23635 | + _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
| 23636 | + echo "-hidden">> $lib.exp~ |
| 23637 | + $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~ |
| 23638 | + $RM $lib.exp' |
| 23639 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' |
| 23640 | + ;; |
| 23641 | + esac |
| 23642 | |
| 23643 | - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 23644 | - # PIC is the default for these OSes. |
| 23645 | - ;; |
| 23646 | + _LT_TAGVAR(hardcode_libdir_separator, $1)=: |
| 23647 | |
| 23648 | - mingw* | cygwin* | pw32* | os2*) |
| 23649 | - # This hack is so that the source file can tell whether it is being |
| 23650 | - # built for inclusion in a dll (and should export symbols for example). |
| 23651 | - # Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 23652 | - # (--disable-auto-import) libraries |
| 23653 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' |
| 23654 | - ;; |
| 23655 | + # Commands to make compiler produce verbose output that lists |
| 23656 | + # what "hidden" libraries, object files and flags are used when |
| 23657 | + # linking a shared library. |
| 23658 | + # |
| 23659 | + # There doesn't appear to be a way to prevent this compiler from |
| 23660 | + # explicitly linking system object files so we need to strip them |
| 23661 | + # from the output so that they don't get included in the library |
| 23662 | + # dependencies. |
| 23663 | + 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' |
| 23664 | + ;; |
| 23665 | + *) |
| 23666 | + if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 23667 | + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
| 23668 | + case $host in |
| 23669 | + osf3*) |
| 23670 | + _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' |
| 23671 | + ;; |
| 23672 | + *) |
| 23673 | + _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' |
| 23674 | + ;; |
| 23675 | + esac |
| 23676 | + |
| 23677 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
| 23678 | + _LT_TAGVAR(hardcode_libdir_separator, $1)=: |
| 23679 | + |
| 23680 | + # Commands to make compiler produce verbose output that lists |
| 23681 | + # what "hidden" libraries, object files and flags are used when |
| 23682 | + # linking a shared library. |
| 23683 | + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' |
| 23684 | + |
| 23685 | + else |
| 23686 | + # FIXME: insert proper C++ library support |
| 23687 | + _LT_TAGVAR(ld_shlibs, $1)=no |
| 23688 | + fi |
| 23689 | + ;; |
| 23690 | + esac |
| 23691 | + ;; |
| 23692 | |
| 23693 | - darwin* | rhapsody*) |
| 23694 | - # PIC is the default on this platform |
| 23695 | - # Common symbols not allowed in MH_DYLIB files |
| 23696 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' |
| 23697 | - ;; |
| 23698 | + psos*) |
| 23699 | + # FIXME: insert proper C++ library support |
| 23700 | + _LT_TAGVAR(ld_shlibs, $1)=no |
| 23701 | + ;; |
| 23702 | |
| 23703 | - interix3*) |
| 23704 | - # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 23705 | - # Instead, we relocate shared libraries at runtime. |
| 23706 | - ;; |
| 23707 | + sunos4*) |
| 23708 | + case $cc_basename in |
| 23709 | + CC*) |
| 23710 | + # Sun C++ 4.x |
| 23711 | + # FIXME: insert proper C++ library support |
| 23712 | + _LT_TAGVAR(ld_shlibs, $1)=no |
| 23713 | + ;; |
| 23714 | + lcc*) |
| 23715 | + # Lucid |
| 23716 | + # FIXME: insert proper C++ library support |
| 23717 | + _LT_TAGVAR(ld_shlibs, $1)=no |
| 23718 | + ;; |
| 23719 | + *) |
| 23720 | + # FIXME: insert proper C++ library support |
| 23721 | + _LT_TAGVAR(ld_shlibs, $1)=no |
| 23722 | + ;; |
| 23723 | + esac |
| 23724 | + ;; |
| 23725 | |
| 23726 | - msdosdjgpp*) |
| 23727 | - # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 23728 | - # on systems that don't support them. |
| 23729 | - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no |
| 23730 | - enable_shared=no |
| 23731 | - ;; |
| 23732 | + solaris*) |
| 23733 | + case $cc_basename in |
| 23734 | + CC*) |
| 23735 | + # Sun C++ 4.2, 5.x and Centerline C++ |
| 23736 | + _LT_TAGVAR(archive_cmds_need_lc,$1)=yes |
| 23737 | + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' |
| 23738 | + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 23739 | + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 23740 | + $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' |
| 23741 | + |
| 23742 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
| 23743 | + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 23744 | + case $host_os in |
| 23745 | + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; |
| 23746 | + *) |
| 23747 | + # The compiler driver will combine and reorder linker options, |
| 23748 | + # but understands `-z linker_flag'. |
| 23749 | + # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 23750 | + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' |
| 23751 | + ;; |
| 23752 | + esac |
| 23753 | + _LT_TAGVAR(link_all_deplibs, $1)=yes |
| 23754 | |
| 23755 | - sysv4*MP*) |
| 23756 | - if test -d /usr/nec; then |
| 23757 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic |
| 23758 | - fi |
| 23759 | - ;; |
| 23760 | + output_verbose_link_cmd='echo' |
| 23761 | |
| 23762 | - hpux*) |
| 23763 | - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 23764 | - # not for PA HP-UX. |
| 23765 | - case $host_cpu in |
| 23766 | - hppa*64*|ia64*) |
| 23767 | - # +Z the default |
| 23768 | - ;; |
| 23769 | - *) |
| 23770 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
| 23771 | - ;; |
| 23772 | - esac |
| 23773 | - ;; |
| 23774 | + # Archives containing C++ object files must be created using |
| 23775 | + # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 23776 | + # necessary to make sure instantiated templates are included |
| 23777 | + # in the archive. |
| 23778 | + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' |
| 23779 | + ;; |
| 23780 | + gcx*) |
| 23781 | + # Green Hills C++ Compiler |
| 23782 | + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 23783 | |
| 23784 | - *) |
| 23785 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
| 23786 | - ;; |
| 23787 | - esac |
| 23788 | - else |
| 23789 | - # PORTME Check for flag to pass linker flags through the system compiler. |
| 23790 | - case $host_os in |
| 23791 | - aix*) |
| 23792 | - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 23793 | - if test "$host_cpu" = ia64; then |
| 23794 | - # AIX 5 now supports IA64 processor |
| 23795 | - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 23796 | - else |
| 23797 | - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' |
| 23798 | - fi |
| 23799 | - ;; |
| 23800 | - darwin*) |
| 23801 | - # PIC is the default on this platform |
| 23802 | - # Common symbols not allowed in MH_DYLIB files |
| 23803 | - case $cc_basename in |
| 23804 | - xlc*) |
| 23805 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' |
| 23806 | - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 23807 | - ;; |
| 23808 | - esac |
| 23809 | - ;; |
| 23810 | + # The C++ compiler must be used to create the archive. |
| 23811 | + _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
| 23812 | + ;; |
| 23813 | + *) |
| 23814 | + # GNU C++ compiler with Solaris linker |
| 23815 | + if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 23816 | + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' |
| 23817 | + if $CC --version | $GREP -v '^2\.7' > /dev/null; then |
| 23818 | + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 23819 | + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 23820 | + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' |
| 23821 | + |
| 23822 | + # Commands to make compiler produce verbose output that lists |
| 23823 | + # what "hidden" libraries, object files and flags are used when |
| 23824 | + # linking a shared library. |
| 23825 | + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' |
| 23826 | + else |
| 23827 | + # g++ 2.7 appears to require `-G' NOT `-shared' on this |
| 23828 | + # platform. |
| 23829 | + _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 23830 | + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 23831 | + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' |
| 23832 | + |
| 23833 | + # Commands to make compiler produce verbose output that lists |
| 23834 | + # what "hidden" libraries, object files and flags are used when |
| 23835 | + # linking a shared library. |
| 23836 | + output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' |
| 23837 | + fi |
| 23838 | + |
| 23839 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' |
| 23840 | + case $host_os in |
| 23841 | + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; |
| 23842 | + *) |
| 23843 | + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
| 23844 | + ;; |
| 23845 | + esac |
| 23846 | + fi |
| 23847 | + ;; |
| 23848 | + esac |
| 23849 | + ;; |
| 23850 | |
| 23851 | - mingw* | cygwin* | pw32* | os2*) |
| 23852 | - # This hack is so that the source file can tell whether it is being |
| 23853 | - # built for inclusion in a dll (and should export symbols for example). |
| 23854 | - # Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 23855 | - # (--disable-auto-import) libraries |
| 23856 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' |
| 23857 | - ;; |
| 23858 | + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) |
| 23859 | + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' |
| 23860 | + _LT_TAGVAR(archive_cmds_need_lc, $1)=no |
| 23861 | + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 23862 | + runpath_var='LD_RUN_PATH' |
| 23863 | |
| 23864 | - hpux9* | hpux10* | hpux11*) |
| 23865 | - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 23866 | - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 23867 | - # not for PA HP-UX. |
| 23868 | - case $host_cpu in |
| 23869 | - hppa*64*|ia64*) |
| 23870 | - # +Z the default |
| 23871 | - ;; |
| 23872 | - *) |
| 23873 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' |
| 23874 | - ;; |
| 23875 | + case $cc_basename in |
| 23876 | + CC*) |
| 23877 | + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 23878 | + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 23879 | + ;; |
| 23880 | + *) |
| 23881 | + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 23882 | + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 23883 | + ;; |
| 23884 | esac |
| 23885 | - # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 23886 | - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' |
| 23887 | ;; |
| 23888 | |
| 23889 | - irix5* | irix6* | nonstopux*) |
| 23890 | - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 23891 | - # PIC (with -KPIC) is the default. |
| 23892 | - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
| 23893 | - ;; |
| 23894 | + sysv5* | sco3.2v5* | sco5v6*) |
| 23895 | + # Note: We can NOT use -z defs as we might desire, because we do not |
| 23896 | + # link with -lc, and that would cause any symbols used from libc to |
| 23897 | + # always be unresolved, which means just about no library would |
| 23898 | + # ever link correctly. If we're not using GNU ld we use -z text |
| 23899 | + # though, which does catch some bad symbols but isn't as heavy-handed |
| 23900 | + # as -z defs. |
| 23901 | + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' |
| 23902 | + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' |
| 23903 | + _LT_TAGVAR(archive_cmds_need_lc, $1)=no |
| 23904 | + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 23905 | + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' |
| 23906 | + _LT_TAGVAR(hardcode_libdir_separator, $1)=':' |
| 23907 | + _LT_TAGVAR(link_all_deplibs, $1)=yes |
| 23908 | + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' |
| 23909 | + runpath_var='LD_RUN_PATH' |
| 23910 | |
| 23911 | - newsos6) |
| 23912 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 23913 | - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 23914 | + case $cc_basename in |
| 23915 | + CC*) |
| 23916 | + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 23917 | + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 23918 | + ;; |
| 23919 | + *) |
| 23920 | + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 23921 | + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 23922 | + ;; |
| 23923 | + esac |
| 23924 | ;; |
| 23925 | |
| 23926 | - linux*) |
| 23927 | - case $cc_basename in |
| 23928 | - icc* | ecc*) |
| 23929 | - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 23930 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 23931 | - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' |
| 23932 | - ;; |
| 23933 | - pgcc* | pgf77* | pgf90* | pgf95*) |
| 23934 | - # Portland Group compilers (*not* the Pentium gcc compiler, |
| 23935 | - # which looks to be a dead project) |
| 23936 | - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 23937 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' |
| 23938 | - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 23939 | - ;; |
| 23940 | - ccc*) |
| 23941 | - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 23942 | - # All Alpha code is PIC. |
| 23943 | - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
| 23944 | + tandem*) |
| 23945 | + case $cc_basename in |
| 23946 | + NCC*) |
| 23947 | + # NonStop-UX NCC 3.20 |
| 23948 | + # FIXME: insert proper C++ library support |
| 23949 | + _LT_TAGVAR(ld_shlibs, $1)=no |
| 23950 | + ;; |
| 23951 | + *) |
| 23952 | + # FIXME: insert proper C++ library support |
| 23953 | + _LT_TAGVAR(ld_shlibs, $1)=no |
| 23954 | + ;; |
| 23955 | + esac |
| 23956 | ;; |
| 23957 | - como) |
| 23958 | - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-lopt=' |
| 23959 | + |
| 23960 | + vxworks*) |
| 23961 | + # FIXME: insert proper C++ library support |
| 23962 | + _LT_TAGVAR(ld_shlibs, $1)=no |
| 23963 | ;; |
| 23964 | + |
| 23965 | *) |
| 23966 | - case `$CC -V 2>&1 | sed 5q` in |
| 23967 | - *Sun\ C*) |
| 23968 | - # Sun C 5.9 |
| 23969 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 23970 | - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 23971 | - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 23972 | - ;; |
| 23973 | - *Sun\ F*) |
| 23974 | - # Sun Fortran 8.3 passes all unrecognized flags to the linker |
| 23975 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 23976 | - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 23977 | - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='' |
| 23978 | - ;; |
| 23979 | - esac |
| 23980 | - ;; |
| 23981 | - esac |
| 23982 | - ;; |
| 23983 | + # FIXME: insert proper C++ library support |
| 23984 | + _LT_TAGVAR(ld_shlibs, $1)=no |
| 23985 | + ;; |
| 23986 | + esac |
| 23987 | |
| 23988 | - osf3* | osf4* | osf5*) |
| 23989 | - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 23990 | - # All OSF/1 code is PIC. |
| 23991 | - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
| 23992 | - ;; |
| 23993 | + AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) |
| 23994 | + test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no |
| 23995 | |
| 23996 | - solaris*) |
| 23997 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 23998 | - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 23999 | - case $cc_basename in |
| 24000 | - f77* | f90* | f95*) |
| 24001 | - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; |
| 24002 | - *) |
| 24003 | - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; |
| 24004 | - esac |
| 24005 | - ;; |
| 24006 | + _LT_TAGVAR(GCC, $1)="$GXX" |
| 24007 | + _LT_TAGVAR(LD, $1)="$LD" |
| 24008 | + |
| 24009 | + ## CAVEAT EMPTOR: |
| 24010 | + ## There is no encapsulation within the following macros, do not change |
| 24011 | + ## the running order or otherwise move them around unless you know exactly |
| 24012 | + ## what you are doing... |
| 24013 | + _LT_SYS_HIDDEN_LIBDEPS($1) |
| 24014 | + _LT_COMPILER_PIC($1) |
| 24015 | + _LT_COMPILER_C_O($1) |
| 24016 | + _LT_COMPILER_FILE_LOCKS($1) |
| 24017 | + _LT_LINKER_SHLIBS($1) |
| 24018 | + _LT_SYS_DYNAMIC_LINKER($1) |
| 24019 | + _LT_LINKER_HARDCODE_LIBPATH($1) |
| 24020 | + |
| 24021 | + _LT_CONFIG($1) |
| 24022 | + fi # test -n "$compiler" |
| 24023 | + |
| 24024 | + CC=$lt_save_CC |
| 24025 | + LDCXX=$LD |
| 24026 | + LD=$lt_save_LD |
| 24027 | + GCC=$lt_save_GCC |
| 24028 | + with_gnu_ld=$lt_save_with_gnu_ld |
| 24029 | + lt_cv_path_LDCXX=$lt_cv_path_LD |
| 24030 | + lt_cv_path_LD=$lt_save_path_LD |
| 24031 | + lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
| 24032 | + lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
| 24033 | +fi # test "$_lt_caught_CXX_error" != yes |
| 24034 | + |
| 24035 | +AC_LANG_POP |
| 24036 | +])# _LT_LANG_CXX_CONFIG |
| 24037 | + |
| 24038 | + |
| 24039 | +# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) |
| 24040 | +# --------------------------------- |
| 24041 | +# Figure out "hidden" library dependencies from verbose |
| 24042 | +# compiler output when linking a shared library. |
| 24043 | +# Parse the compiler output and extract the necessary |
| 24044 | +# objects, libraries and library flags. |
| 24045 | +m4_defun([_LT_SYS_HIDDEN_LIBDEPS], |
| 24046 | +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
| 24047 | +# Dependencies to place before and after the object being linked: |
| 24048 | +_LT_TAGVAR(predep_objects, $1)= |
| 24049 | +_LT_TAGVAR(postdep_objects, $1)= |
| 24050 | +_LT_TAGVAR(predeps, $1)= |
| 24051 | +_LT_TAGVAR(postdeps, $1)= |
| 24052 | +_LT_TAGVAR(compiler_lib_search_path, $1)= |
| 24053 | + |
| 24054 | +dnl we can't use the lt_simple_compile_test_code here, |
| 24055 | +dnl because it contains code intended for an executable, |
| 24056 | +dnl not a library. It's possible we should let each |
| 24057 | +dnl tag define a new lt_????_link_test_code variable, |
| 24058 | +dnl but it's only used here... |
| 24059 | +m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF |
| 24060 | +int a; |
| 24061 | +void foo (void) { a = 0; } |
| 24062 | +_LT_EOF |
| 24063 | +], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF |
| 24064 | +class Foo |
| 24065 | +{ |
| 24066 | +public: |
| 24067 | + Foo (void) { a = 0; } |
| 24068 | +private: |
| 24069 | + int a; |
| 24070 | +}; |
| 24071 | +_LT_EOF |
| 24072 | +], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF |
| 24073 | + subroutine foo |
| 24074 | + implicit none |
| 24075 | + integer*4 a |
| 24076 | + a=0 |
| 24077 | + return |
| 24078 | + end |
| 24079 | +_LT_EOF |
| 24080 | +], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF |
| 24081 | + subroutine foo |
| 24082 | + implicit none |
| 24083 | + integer a |
| 24084 | + a=0 |
| 24085 | + return |
| 24086 | + end |
| 24087 | +_LT_EOF |
| 24088 | +], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF |
| 24089 | +public class foo { |
| 24090 | + private int a; |
| 24091 | + public void bar (void) { |
| 24092 | + a = 0; |
| 24093 | + } |
| 24094 | +}; |
| 24095 | +_LT_EOF |
| 24096 | +]) |
| 24097 | +dnl Parse the compiler output and extract the necessary |
| 24098 | +dnl objects, libraries and library flags. |
| 24099 | +if AC_TRY_EVAL(ac_compile); then |
| 24100 | + # Parse the compiler output and extract the necessary |
| 24101 | + # objects, libraries and library flags. |
| 24102 | + |
| 24103 | + # Sentinel used to keep track of whether or not we are before |
| 24104 | + # the conftest object file. |
| 24105 | + pre_test_object_deps_done=no |
| 24106 | |
| 24107 | - sunos4*) |
| 24108 | - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' |
| 24109 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' |
| 24110 | - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 24111 | - ;; |
| 24112 | + for p in `eval "$output_verbose_link_cmd"`; do |
| 24113 | + case $p in |
| 24114 | |
| 24115 | - sysv4 | sysv4.2uw2* | sysv4.3*) |
| 24116 | - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 24117 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 24118 | - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 24119 | - ;; |
| 24120 | + -L* | -R* | -l*) |
| 24121 | + # Some compilers place space between "-{L,R}" and the path. |
| 24122 | + # Remove the space. |
| 24123 | + if test $p = "-L" || |
| 24124 | + test $p = "-R"; then |
| 24125 | + prev=$p |
| 24126 | + continue |
| 24127 | + else |
| 24128 | + prev= |
| 24129 | + fi |
| 24130 | |
| 24131 | - sysv4*MP*) |
| 24132 | - if test -d /usr/nec ;then |
| 24133 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' |
| 24134 | - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 24135 | - fi |
| 24136 | - ;; |
| 24137 | + if test "$pre_test_object_deps_done" = no; then |
| 24138 | + case $p in |
| 24139 | + -L* | -R*) |
| 24140 | + # Internal compiler library paths should come after those |
| 24141 | + # provided the user. The postdeps already come after the |
| 24142 | + # user supplied libs so there is no need to process them. |
| 24143 | + if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then |
| 24144 | + _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}" |
| 24145 | + else |
| 24146 | + _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}" |
| 24147 | + fi |
| 24148 | + ;; |
| 24149 | + # The "-l" case would never come before the object being |
| 24150 | + # linked, so don't bother handling this case. |
| 24151 | + esac |
| 24152 | + else |
| 24153 | + if test -z "$_LT_TAGVAR(postdeps, $1)"; then |
| 24154 | + _LT_TAGVAR(postdeps, $1)="${prev}${p}" |
| 24155 | + else |
| 24156 | + _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}" |
| 24157 | + fi |
| 24158 | + fi |
| 24159 | + ;; |
| 24160 | |
| 24161 | - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 24162 | - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 24163 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
| 24164 | - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 24165 | - ;; |
| 24166 | + *.$objext) |
| 24167 | + # This assumes that the test object file only shows up |
| 24168 | + # once in the compiler output. |
| 24169 | + if test "$p" = "conftest.$objext"; then |
| 24170 | + pre_test_object_deps_done=yes |
| 24171 | + continue |
| 24172 | + fi |
| 24173 | |
| 24174 | - unicos*) |
| 24175 | - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
| 24176 | - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no |
| 24177 | - ;; |
| 24178 | + if test "$pre_test_object_deps_done" = no; then |
| 24179 | + if test -z "$_LT_TAGVAR(predep_objects, $1)"; then |
| 24180 | + _LT_TAGVAR(predep_objects, $1)="$p" |
| 24181 | + else |
| 24182 | + _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p" |
| 24183 | + fi |
| 24184 | + else |
| 24185 | + if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then |
| 24186 | + _LT_TAGVAR(postdep_objects, $1)="$p" |
| 24187 | + else |
| 24188 | + _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p" |
| 24189 | + fi |
| 24190 | + fi |
| 24191 | + ;; |
| 24192 | |
| 24193 | - uts4*) |
| 24194 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
| 24195 | - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| 24196 | - ;; |
| 24197 | + *) ;; # Ignore the rest. |
| 24198 | |
| 24199 | - *) |
| 24200 | - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no |
| 24201 | - ;; |
| 24202 | esac |
| 24203 | - fi |
| 24204 | -]) |
| 24205 | -AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)]) |
| 24206 | + done |
| 24207 | |
| 24208 | -# |
| 24209 | -# Check to make sure the PIC flag actually works. |
| 24210 | -# |
| 24211 | -if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then |
| 24212 | - AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works], |
| 24213 | - _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1), |
| 24214 | - [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [], |
| 24215 | - [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in |
| 24216 | - "" | " "*) ;; |
| 24217 | - *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;; |
| 24218 | - esac], |
| 24219 | - [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= |
| 24220 | - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) |
| 24221 | + # Clean up. |
| 24222 | + rm -f a.out a.exe |
| 24223 | +else |
| 24224 | + echo "libtool.m4: error: problem compiling $1 test program" |
| 24225 | fi |
| 24226 | -case $host_os in |
| 24227 | - # For platforms which do not support PIC, -DPIC is meaningless: |
| 24228 | - *djgpp*) |
| 24229 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= |
| 24230 | - ;; |
| 24231 | - *) |
| 24232 | - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])" |
| 24233 | - ;; |
| 24234 | -esac |
| 24235 | - |
| 24236 | -# |
| 24237 | -# Check to make sure the static flag actually works. |
| 24238 | -# |
| 24239 | -wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\" |
| 24240 | -AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], |
| 24241 | - _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1), |
| 24242 | - $lt_tmp_static_flag, |
| 24243 | - [], |
| 24244 | - [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=]) |
| 24245 | -]) |
| 24246 | |
| 24247 | +$RM -f confest.$objext |
| 24248 | |
| 24249 | -# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME]) |
| 24250 | -# ------------------------------------ |
| 24251 | -# See if the linker supports building shared libraries. |
| 24252 | -AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS], |
| 24253 | -[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) |
| 24254 | -ifelse([$1],[CXX],[ |
| 24255 | - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 24256 | - case $host_os in |
| 24257 | - aix4* | aix5*) |
| 24258 | - # If we're using GNU nm, then we don't want the "-C" option. |
| 24259 | - # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 24260 | - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 24261 | - _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' |
| 24262 | - else |
| 24263 | - _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' |
| 24264 | - fi |
| 24265 | - ;; |
| 24266 | - pw32*) |
| 24267 | - _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" |
| 24268 | - ;; |
| 24269 | - cygwin* | mingw*) |
| 24270 | - _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' |
| 24271 | - ;; |
| 24272 | - *) |
| 24273 | - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 24274 | +# PORTME: override above test on systems where it is broken |
| 24275 | +m4_if([$1], [CXX], |
| 24276 | +[case $host_os in |
| 24277 | +interix[[3-9]]*) |
| 24278 | + # Interix 3.5 installs completely hosed .la files for C++, so rather than |
| 24279 | + # hack all around it, let's just trust "g++" to DTRT. |
| 24280 | + _LT_TAGVAR(predep_objects,$1)= |
| 24281 | + _LT_TAGVAR(postdep_objects,$1)= |
| 24282 | + _LT_TAGVAR(postdeps,$1)= |
| 24283 | ;; |
| 24284 | - esac |
| 24285 | -],[ |
| 24286 | - runpath_var= |
| 24287 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)= |
| 24288 | - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no |
| 24289 | - _LT_AC_TAGVAR(archive_cmds, $1)= |
| 24290 | - _LT_AC_TAGVAR(archive_expsym_cmds, $1)= |
| 24291 | - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)= |
| 24292 | - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)= |
| 24293 | - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= |
| 24294 | - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= |
| 24295 | - _LT_AC_TAGVAR(thread_safe_flag_spec, $1)= |
| 24296 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= |
| 24297 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= |
| 24298 | - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= |
| 24299 | - _LT_AC_TAGVAR(hardcode_direct, $1)=no |
| 24300 | - _LT_AC_TAGVAR(hardcode_minus_L, $1)=no |
| 24301 | - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
| 24302 | - _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown |
| 24303 | - _LT_AC_TAGVAR(hardcode_automatic, $1)=no |
| 24304 | - _LT_AC_TAGVAR(module_cmds, $1)= |
| 24305 | - _LT_AC_TAGVAR(module_expsym_cmds, $1)= |
| 24306 | - _LT_AC_TAGVAR(always_export_symbols, $1)=no |
| 24307 | - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 24308 | - # include_expsyms should be a list of space-separated symbols to be *always* |
| 24309 | - # included in the symbol list |
| 24310 | - _LT_AC_TAGVAR(include_expsyms, $1)= |
| 24311 | - # exclude_expsyms can be an extended regexp of symbols to exclude |
| 24312 | - # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 24313 | - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 24314 | - # as well as any symbol that contains `d'. |
| 24315 | - _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_" |
| 24316 | - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 24317 | - # platforms (ab)use it in PIC code, but their linkers get confused if |
| 24318 | - # the symbol is explicitly referenced. Since portable code cannot |
| 24319 | - # rely on this symbol name, it's probably fine to never include it in |
| 24320 | - # preloaded symbol tables. |
| 24321 | - extract_expsyms_cmds= |
| 24322 | - # Just being paranoid about ensuring that cc_basename is set. |
| 24323 | - _LT_CC_BASENAME([$compiler]) |
| 24324 | - case $host_os in |
| 24325 | - cygwin* | mingw* | pw32*) |
| 24326 | - # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 24327 | - # When not using gcc, we currently assume that we are using |
| 24328 | - # Microsoft Visual C++. |
| 24329 | - if test "$GCC" != yes; then |
| 24330 | - with_gnu_ld=no |
| 24331 | - fi |
| 24332 | - ;; |
| 24333 | - interix*) |
| 24334 | - # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 24335 | - with_gnu_ld=yes |
| 24336 | - ;; |
| 24337 | - openbsd*) |
| 24338 | - with_gnu_ld=no |
| 24339 | - ;; |
| 24340 | - esac |
| 24341 | - |
| 24342 | - _LT_AC_TAGVAR(ld_shlibs, $1)=yes |
| 24343 | - if test "$with_gnu_ld" = yes; then |
| 24344 | - # If archive_cmds runs LD, not CC, wlarc should be empty |
| 24345 | - wlarc='${wl}' |
| 24346 | - |
| 24347 | - # Set some defaults for GNU ld with shared library support. These |
| 24348 | - # are reset later if shared libraries are not supported. Putting them |
| 24349 | - # here allows them to be overridden if necessary. |
| 24350 | - runpath_var=LD_RUN_PATH |
| 24351 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' |
| 24352 | - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
| 24353 | - # ancient GNU ld didn't support --whole-archive et. al. |
| 24354 | - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 24355 | - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 24356 | - else |
| 24357 | - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= |
| 24358 | - fi |
| 24359 | - supports_anon_versioning=no |
| 24360 | - case `$LD -v 2>/dev/null` in |
| 24361 | - *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 24362 | - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 24363 | - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 24364 | - *\ 2.11.*) ;; # other 2.11 versions |
| 24365 | - *) supports_anon_versioning=yes ;; |
| 24366 | - esac |
| 24367 | - |
| 24368 | - # See if GNU ld supports shared libraries. |
| 24369 | - case $host_os in |
| 24370 | - aix3* | aix4* | aix5*) |
| 24371 | - # On AIX/PPC, the GNU linker is very broken |
| 24372 | - if test "$host_cpu" != ia64; then |
| 24373 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 24374 | - cat <<EOF 1>&2 |
| 24375 | - |
| 24376 | -*** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 24377 | -*** to be unable to reliably create shared libraries on AIX. |
| 24378 | -*** Therefore, libtool is disabling shared libraries support. If you |
| 24379 | -*** really care for shared libraries, you may want to modify your PATH |
| 24380 | -*** so that a non-GNU linker is found, and then restart. |
| 24381 | - |
| 24382 | -EOF |
| 24383 | - fi |
| 24384 | - ;; |
| 24385 | |
| 24386 | - amigaos*) |
| 24387 | - _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)' |
| 24388 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| 24389 | - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
| 24390 | - |
| 24391 | - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 24392 | - # that the semantics of dynamic libraries on AmigaOS, at least up |
| 24393 | - # to version 4, is to share data among multiple programs linked |
| 24394 | - # with the same dynamic library. Since this doesn't match the |
| 24395 | - # behavior of shared libraries on other platforms, we can't use |
| 24396 | - # them. |
| 24397 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 24398 | - ;; |
| 24399 | +linux*) |
| 24400 | + case `$CC -V 2>&1 | sed 5q` in |
| 24401 | + *Sun\ C*) |
| 24402 | + # Sun C++ 5.9 |
| 24403 | |
| 24404 | - beos*) |
| 24405 | - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 24406 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported |
| 24407 | - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 24408 | - # support --undefined. This deserves some investigation. FIXME |
| 24409 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 24410 | - else |
| 24411 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 24412 | - fi |
| 24413 | + # The more standards-conforming stlport4 library is |
| 24414 | + # incompatible with the Cstd library. Avoid specifying |
| 24415 | + # it if it's in CXXFLAGS. Ignore libCrun as |
| 24416 | + # -library=stlport4 depends on it. |
| 24417 | + case " $CXX $CXXFLAGS " in |
| 24418 | + *" -library=stlport4 "*) |
| 24419 | + solaris_use_stlport4=yes |
| 24420 | ;; |
| 24421 | + esac |
| 24422 | |
| 24423 | - cygwin* | mingw* | pw32*) |
| 24424 | - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, |
| 24425 | - # as there is no search path for DLLs. |
| 24426 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| 24427 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported |
| 24428 | - _LT_AC_TAGVAR(always_export_symbols, $1)=no |
| 24429 | - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
| 24430 | - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols' |
| 24431 | - |
| 24432 | - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
| 24433 | - _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' |
| 24434 | - # If the export-symbols file already is a .def file (1st line |
| 24435 | - # is EXPORTS), use it as is; otherwise, prepend... |
| 24436 | - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 24437 | - cp $export_symbols $output_objdir/$soname.def; |
| 24438 | - else |
| 24439 | - echo EXPORTS > $output_objdir/$soname.def; |
| 24440 | - cat $export_symbols >> $output_objdir/$soname.def; |
| 24441 | - fi~ |
| 24442 | - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 24443 | - else |
| 24444 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 24445 | - fi |
| 24446 | - ;; |
| 24447 | + if test "$solaris_use_stlport4" != yes; then |
| 24448 | + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' |
| 24449 | + fi |
| 24450 | + ;; |
| 24451 | + esac |
| 24452 | + ;; |
| 24453 | |
| 24454 | - interix3*) |
| 24455 | - _LT_AC_TAGVAR(hardcode_direct, $1)=no |
| 24456 | - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 24457 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
| 24458 | - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
| 24459 | - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 24460 | - # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 24461 | - # default) and relocated if they conflict, which is a slow very memory |
| 24462 | - # consuming and fragmenting process. To avoid this, we pick a random, |
| 24463 | - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 24464 | - # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 24465 | - _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' |
| 24466 | - _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' |
| 24467 | +solaris*) |
| 24468 | + case $cc_basename in |
| 24469 | + CC*) |
| 24470 | + # The more standards-conforming stlport4 library is |
| 24471 | + # incompatible with the Cstd library. Avoid specifying |
| 24472 | + # it if it's in CXXFLAGS. Ignore libCrun as |
| 24473 | + # -library=stlport4 depends on it. |
| 24474 | + case " $CXX $CXXFLAGS " in |
| 24475 | + *" -library=stlport4 "*) |
| 24476 | + solaris_use_stlport4=yes |
| 24477 | ;; |
| 24478 | + esac |
| 24479 | |
| 24480 | - linux*) |
| 24481 | - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 24482 | - tmp_addflag= |
| 24483 | - case $cc_basename,$host_cpu in |
| 24484 | - pgcc*) # Portland Group C compiler |
| 24485 | - _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' |
| 24486 | - tmp_addflag=' $pic_flag' |
| 24487 | - ;; |
| 24488 | - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| 24489 | - _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' |
| 24490 | - tmp_addflag=' $pic_flag -Mnomain' ;; |
| 24491 | - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 24492 | - tmp_addflag=' -i_dynamic' ;; |
| 24493 | - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 24494 | - tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 24495 | - ifc* | ifort*) # Intel Fortran compiler |
| 24496 | - tmp_addflag=' -nofor_main' ;; |
| 24497 | - esac |
| 24498 | - case `$CC -V 2>&1 | sed 5q` in |
| 24499 | - *Sun\ C*) # Sun C 5.9 |
| 24500 | - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive /dev/null' |
| 24501 | - tmp_sharedflag='-G' ;; |
| 24502 | - *Sun\ F*) # Sun Fortran 8.3 |
| 24503 | - tmp_sharedflag='-G' ;; |
| 24504 | - *) |
| 24505 | - tmp_sharedflag='-shared' ;; |
| 24506 | - esac |
| 24507 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 24508 | + # Adding this requires a known-good setup of shared libraries for |
| 24509 | + # Sun compiler versions before 5.6, else PIC objects from an old |
| 24510 | + # archive will be linked into the output, leading to subtle bugs. |
| 24511 | + if test "$solaris_use_stlport4" != yes; then |
| 24512 | + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' |
| 24513 | + fi |
| 24514 | + ;; |
| 24515 | + esac |
| 24516 | + ;; |
| 24517 | +esac |
| 24518 | +]) |
| 24519 | |
| 24520 | - if test $supports_anon_versioning = yes; then |
| 24521 | - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 24522 | - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 24523 | - $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 24524 | - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 24525 | - fi |
| 24526 | - else |
| 24527 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 24528 | - fi |
| 24529 | - ;; |
| 24530 | +case " $_LT_TAGVAR(postdeps, $1) " in |
| 24531 | +*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; |
| 24532 | +esac |
| 24533 | + _LT_TAGVAR(compiler_lib_search_dirs, $1)= |
| 24534 | +if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then |
| 24535 | + _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` |
| 24536 | +fi |
| 24537 | +_LT_TAGDECL([], [compiler_lib_search_dirs], [1], |
| 24538 | + [The directories searched by this compiler when creating a shared library]) |
| 24539 | +_LT_TAGDECL([], [predep_objects], [1], |
| 24540 | + [Dependencies to place before and after the objects being linked to |
| 24541 | + create a shared library]) |
| 24542 | +_LT_TAGDECL([], [postdep_objects], [1]) |
| 24543 | +_LT_TAGDECL([], [predeps], [1]) |
| 24544 | +_LT_TAGDECL([], [postdeps], [1]) |
| 24545 | +_LT_TAGDECL([], [compiler_lib_search_path], [1], |
| 24546 | + [The library search path used internally by the compiler when linking |
| 24547 | + a shared library]) |
| 24548 | +])# _LT_SYS_HIDDEN_LIBDEPS |
| 24549 | + |
| 24550 | + |
| 24551 | +# _LT_PROG_F77 |
| 24552 | +# ------------ |
| 24553 | +# Since AC_PROG_F77 is broken, in that it returns the empty string |
| 24554 | +# if there is no fortran compiler, we have our own version here. |
| 24555 | +m4_defun([_LT_PROG_F77], |
| 24556 | +[ |
| 24557 | +pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes]) |
| 24558 | +AC_PROG_F77 |
| 24559 | +if test -z "$F77" || test "X$F77" = "Xno"; then |
| 24560 | + _lt_disable_F77=yes |
| 24561 | +fi |
| 24562 | +popdef([AC_MSG_ERROR]) |
| 24563 | +])# _LT_PROG_F77 |
| 24564 | |
| 24565 | - netbsd*) |
| 24566 | - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 24567 | - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 24568 | - wlarc= |
| 24569 | - else |
| 24570 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 24571 | - _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' |
| 24572 | - fi |
| 24573 | - ;; |
| 24574 | +dnl aclocal-1.4 backwards compatibility: |
| 24575 | +dnl AC_DEFUN([_LT_PROG_F77], []) |
| 24576 | |
| 24577 | - solaris*) |
| 24578 | - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 24579 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 24580 | - cat <<EOF 1>&2 |
| 24581 | |
| 24582 | -*** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 24583 | -*** create shared libraries on Solaris systems. Therefore, libtool |
| 24584 | -*** is disabling shared libraries support. We urge you to upgrade GNU |
| 24585 | -*** binutils to release 2.9.1 or newer. Another option is to modify |
| 24586 | -*** your PATH or compiler configuration so that the native linker is |
| 24587 | -*** used, and then restart. |
| 24588 | +# _LT_LANG_F77_CONFIG([TAG]) |
| 24589 | +# -------------------------- |
| 24590 | +# Ensure that the configuration variables for a Fortran 77 compiler are |
| 24591 | +# suitably defined. These variables are subsequently used by _LT_CONFIG |
| 24592 | +# to write the compiler configuration to `libtool'. |
| 24593 | +m4_defun([_LT_LANG_F77_CONFIG], |
| 24594 | +[AC_REQUIRE([_LT_PROG_F77])dnl |
| 24595 | +AC_LANG_PUSH(Fortran 77) |
| 24596 | |
| 24597 | -EOF |
| 24598 | - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 24599 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 24600 | - _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' |
| 24601 | - else |
| 24602 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 24603 | - fi |
| 24604 | - ;; |
| 24605 | +_LT_TAGVAR(archive_cmds_need_lc, $1)=no |
| 24606 | +_LT_TAGVAR(allow_undefined_flag, $1)= |
| 24607 | +_LT_TAGVAR(always_export_symbols, $1)=no |
| 24608 | +_LT_TAGVAR(archive_expsym_cmds, $1)= |
| 24609 | +_LT_TAGVAR(export_dynamic_flag_spec, $1)= |
| 24610 | +_LT_TAGVAR(hardcode_direct, $1)=no |
| 24611 | +_LT_TAGVAR(hardcode_direct_absolute, $1)=no |
| 24612 | +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= |
| 24613 | +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= |
| 24614 | +_LT_TAGVAR(hardcode_libdir_separator, $1)= |
| 24615 | +_LT_TAGVAR(hardcode_minus_L, $1)=no |
| 24616 | +_LT_TAGVAR(hardcode_automatic, $1)=no |
| 24617 | +_LT_TAGVAR(inherit_rpath, $1)=no |
| 24618 | +_LT_TAGVAR(module_cmds, $1)= |
| 24619 | +_LT_TAGVAR(module_expsym_cmds, $1)= |
| 24620 | +_LT_TAGVAR(link_all_deplibs, $1)=unknown |
| 24621 | +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds |
| 24622 | +_LT_TAGVAR(no_undefined_flag, $1)= |
| 24623 | +_LT_TAGVAR(whole_archive_flag_spec, $1)= |
| 24624 | +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no |
| 24625 | |
| 24626 | - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 24627 | - case `$LD -v 2>&1` in |
| 24628 | - *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) |
| 24629 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 24630 | - cat <<_LT_EOF 1>&2 |
| 24631 | +# Source file extension for f77 test sources. |
| 24632 | +ac_ext=f |
| 24633 | |
| 24634 | -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 24635 | -*** reliably create shared libraries on SCO systems. Therefore, libtool |
| 24636 | -*** is disabling shared libraries support. We urge you to upgrade GNU |
| 24637 | -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 24638 | -*** your PATH or compiler configuration so that the native linker is |
| 24639 | -*** used, and then restart. |
| 24640 | +# Object file extension for compiled f77 test sources. |
| 24641 | +objext=o |
| 24642 | +_LT_TAGVAR(objext, $1)=$objext |
| 24643 | |
| 24644 | -_LT_EOF |
| 24645 | - ;; |
| 24646 | - *) |
| 24647 | - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 24648 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
| 24649 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
| 24650 | - _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' |
| 24651 | - else |
| 24652 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 24653 | - fi |
| 24654 | - ;; |
| 24655 | - esac |
| 24656 | - ;; |
| 24657 | +# No sense in running all these tests if we already determined that |
| 24658 | +# the F77 compiler isn't working. Some variables (like enable_shared) |
| 24659 | +# are currently assumed to apply to all compilers on this platform, |
| 24660 | +# and will be corrupted by setting them based on a non-working compiler. |
| 24661 | +if test "$_lt_disable_F77" != yes; then |
| 24662 | + # Code to be used in simple compile tests |
| 24663 | + lt_simple_compile_test_code="\ |
| 24664 | + subroutine t |
| 24665 | + return |
| 24666 | + end |
| 24667 | +" |
| 24668 | |
| 24669 | - sunos4*) |
| 24670 | - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 24671 | - wlarc= |
| 24672 | - _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
| 24673 | - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 24674 | - ;; |
| 24675 | + # Code to be used in simple link tests |
| 24676 | + lt_simple_link_test_code="\ |
| 24677 | + program t |
| 24678 | + end |
| 24679 | +" |
| 24680 | |
| 24681 | - *) |
| 24682 | - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 24683 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 24684 | - _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' |
| 24685 | - else |
| 24686 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 24687 | - fi |
| 24688 | - ;; |
| 24689 | - esac |
| 24690 | + # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 24691 | + _LT_TAG_COMPILER |
| 24692 | |
| 24693 | - if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then |
| 24694 | - runpath_var= |
| 24695 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= |
| 24696 | - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= |
| 24697 | - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= |
| 24698 | - fi |
| 24699 | - else |
| 24700 | - # PORTME fill in a description of your system's linker (not GNU ld) |
| 24701 | - case $host_os in |
| 24702 | - aix3*) |
| 24703 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported |
| 24704 | - _LT_AC_TAGVAR(always_export_symbols, $1)=yes |
| 24705 | - _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' |
| 24706 | - # Note: this linker hardcodes the directories in LIBPATH if there |
| 24707 | - # are no directories specified by -L. |
| 24708 | - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
| 24709 | - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
| 24710 | - # Neither direct hardcoding nor static linking is supported with a |
| 24711 | - # broken collect2. |
| 24712 | - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported |
| 24713 | - fi |
| 24714 | - ;; |
| 24715 | + # save warnings/boilerplate of simple test code |
| 24716 | + _LT_COMPILER_BOILERPLATE |
| 24717 | + _LT_LINKER_BOILERPLATE |
| 24718 | + |
| 24719 | + # Allow CC to be a program name with arguments. |
| 24720 | + lt_save_CC="$CC" |
| 24721 | + lt_save_GCC=$GCC |
| 24722 | + CC=${F77-"f77"} |
| 24723 | + compiler=$CC |
| 24724 | + _LT_TAGVAR(compiler, $1)=$CC |
| 24725 | + _LT_CC_BASENAME([$compiler]) |
| 24726 | + GCC=$G77 |
| 24727 | + if test -n "$compiler"; then |
| 24728 | + AC_MSG_CHECKING([if libtool supports shared libraries]) |
| 24729 | + AC_MSG_RESULT([$can_build_shared]) |
| 24730 | |
| 24731 | - aix4* | aix5*) |
| 24732 | - if test "$host_cpu" = ia64; then |
| 24733 | - # On IA64, the linker does run time linking by default, so we don't |
| 24734 | - # have to do anything special. |
| 24735 | - aix_use_runtimelinking=no |
| 24736 | - exp_sym_flag='-Bexport' |
| 24737 | - no_entry_flag="" |
| 24738 | - else |
| 24739 | - # If we're using GNU nm, then we don't want the "-C" option. |
| 24740 | - # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 24741 | - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 24742 | - _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' |
| 24743 | - else |
| 24744 | - _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' |
| 24745 | + AC_MSG_CHECKING([whether to build shared libraries]) |
| 24746 | + test "$can_build_shared" = "no" && enable_shared=no |
| 24747 | + |
| 24748 | + # On AIX, shared libraries and static libraries use the same namespace, and |
| 24749 | + # are all built from PIC. |
| 24750 | + case $host_os in |
| 24751 | + aix3*) |
| 24752 | + test "$enable_shared" = yes && enable_static=no |
| 24753 | + if test -n "$RANLIB"; then |
| 24754 | + archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 24755 | + postinstall_cmds='$RANLIB $lib' |
| 24756 | + fi |
| 24757 | + ;; |
| 24758 | + aix[[4-9]]*) |
| 24759 | + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 24760 | + test "$enable_shared" = yes && enable_static=no |
| 24761 | fi |
| 24762 | - aix_use_runtimelinking=no |
| 24763 | + ;; |
| 24764 | + esac |
| 24765 | + AC_MSG_RESULT([$enable_shared]) |
| 24766 | |
| 24767 | - # Test if we are trying to use run time linking or normal |
| 24768 | - # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 24769 | - # need to do runtime linking. |
| 24770 | - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) |
| 24771 | - for ld_flag in $LDFLAGS; do |
| 24772 | - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 24773 | - aix_use_runtimelinking=yes |
| 24774 | - break |
| 24775 | - fi |
| 24776 | - done |
| 24777 | - ;; |
| 24778 | - esac |
| 24779 | + AC_MSG_CHECKING([whether to build static libraries]) |
| 24780 | + # Make sure either enable_shared or enable_static is yes. |
| 24781 | + test "$enable_shared" = yes || enable_static=yes |
| 24782 | + AC_MSG_RESULT([$enable_static]) |
| 24783 | + |
| 24784 | + _LT_TAGVAR(GCC, $1)="$G77" |
| 24785 | + _LT_TAGVAR(LD, $1)="$LD" |
| 24786 | + |
| 24787 | + ## CAVEAT EMPTOR: |
| 24788 | + ## There is no encapsulation within the following macros, do not change |
| 24789 | + ## the running order or otherwise move them around unless you know exactly |
| 24790 | + ## what you are doing... |
| 24791 | + _LT_COMPILER_PIC($1) |
| 24792 | + _LT_COMPILER_C_O($1) |
| 24793 | + _LT_COMPILER_FILE_LOCKS($1) |
| 24794 | + _LT_LINKER_SHLIBS($1) |
| 24795 | + _LT_SYS_DYNAMIC_LINKER($1) |
| 24796 | + _LT_LINKER_HARDCODE_LIBPATH($1) |
| 24797 | + |
| 24798 | + _LT_CONFIG($1) |
| 24799 | + fi # test -n "$compiler" |
| 24800 | + |
| 24801 | + GCC=$lt_save_GCC |
| 24802 | + CC="$lt_save_CC" |
| 24803 | +fi # test "$_lt_disable_F77" != yes |
| 24804 | |
| 24805 | - exp_sym_flag='-bexport' |
| 24806 | - no_entry_flag='-bnoentry' |
| 24807 | - fi |
| 24808 | +AC_LANG_POP |
| 24809 | +])# _LT_LANG_F77_CONFIG |
| 24810 | |
| 24811 | - # When large executables or shared objects are built, AIX ld can |
| 24812 | - # have problems creating the table of contents. If linking a library |
| 24813 | - # or program results in "error TOC overflow" add -mminimal-toc to |
| 24814 | - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 24815 | - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 24816 | |
| 24817 | - _LT_AC_TAGVAR(archive_cmds, $1)='' |
| 24818 | - _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
| 24819 | - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' |
| 24820 | - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
| 24821 | +# _LT_PROG_FC |
| 24822 | +# ----------- |
| 24823 | +# Since AC_PROG_FC is broken, in that it returns the empty string |
| 24824 | +# if there is no fortran compiler, we have our own version here. |
| 24825 | +m4_defun([_LT_PROG_FC], |
| 24826 | +[ |
| 24827 | +pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes]) |
| 24828 | +AC_PROG_FC |
| 24829 | +if test -z "$FC" || test "X$FC" = "Xno"; then |
| 24830 | + _lt_disable_FC=yes |
| 24831 | +fi |
| 24832 | +popdef([AC_MSG_ERROR]) |
| 24833 | +])# _LT_PROG_FC |
| 24834 | |
| 24835 | - if test "$GCC" = yes; then |
| 24836 | - case $host_os in aix4.[[012]]|aix4.[[012]].*) |
| 24837 | - # We only want to do this on AIX 4.2 and lower, the check |
| 24838 | - # below for broken collect2 doesn't work under 4.3+ |
| 24839 | - collect2name=`${CC} -print-prog-name=collect2` |
| 24840 | - if test -f "$collect2name" && \ |
| 24841 | - strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 24842 | - then |
| 24843 | - # We have reworked collect2 |
| 24844 | - _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
| 24845 | - else |
| 24846 | - # We have old collect2 |
| 24847 | - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported |
| 24848 | - # It fails to find uninstalled libraries when the uninstalled |
| 24849 | - # path is not listed in the libpath. Setting hardcode_minus_L |
| 24850 | - # to unsupported forces relinking |
| 24851 | - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
| 24852 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| 24853 | - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= |
| 24854 | - fi |
| 24855 | - ;; |
| 24856 | - esac |
| 24857 | - shared_flag='-shared' |
| 24858 | - if test "$aix_use_runtimelinking" = yes; then |
| 24859 | - shared_flag="$shared_flag "'${wl}-G' |
| 24860 | - fi |
| 24861 | - else |
| 24862 | - # not using gcc |
| 24863 | - if test "$host_cpu" = ia64; then |
| 24864 | - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 24865 | - # chokes on -Wl,-G. The following line is correct: |
| 24866 | - shared_flag='-G' |
| 24867 | - else |
| 24868 | - if test "$aix_use_runtimelinking" = yes; then |
| 24869 | - shared_flag='${wl}-G' |
| 24870 | - else |
| 24871 | - shared_flag='${wl}-bM:SRE' |
| 24872 | - fi |
| 24873 | - fi |
| 24874 | - fi |
| 24875 | +dnl aclocal-1.4 backwards compatibility: |
| 24876 | +dnl AC_DEFUN([_LT_PROG_FC], []) |
| 24877 | |
| 24878 | - # It seems that -bexpall does not export symbols beginning with |
| 24879 | - # underscore (_), so it is better to generate a list of symbols to export. |
| 24880 | - _LT_AC_TAGVAR(always_export_symbols, $1)=yes |
| 24881 | - if test "$aix_use_runtimelinking" = yes; then |
| 24882 | - # Warning - without using the other runtime loading flags (-brtl), |
| 24883 | - # -berok will link without error, but may produce a broken library. |
| 24884 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' |
| 24885 | - # Determine the default libpath from the value encoded in an empty executable. |
| 24886 | - _LT_AC_SYS_LIBPATH_AIX |
| 24887 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 24888 | - _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" |
| 24889 | - else |
| 24890 | - if test "$host_cpu" = ia64; then |
| 24891 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' |
| 24892 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" |
| 24893 | - _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" |
| 24894 | - else |
| 24895 | - # Determine the default libpath from the value encoded in an empty executable. |
| 24896 | - _LT_AC_SYS_LIBPATH_AIX |
| 24897 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 24898 | - # Warning - without using the other run time loading flags, |
| 24899 | - # -berok will link without error, but may produce a broken library. |
| 24900 | - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' |
| 24901 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' |
| 24902 | - # Exported symbols can be pulled into shared objects from archives |
| 24903 | - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience' |
| 24904 | - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes |
| 24905 | - # This is similar to how AIX traditionally builds its shared libraries. |
| 24906 | - _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' |
| 24907 | - fi |
| 24908 | - fi |
| 24909 | - ;; |
| 24910 | |
| 24911 | - amigaos*) |
| 24912 | - _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)' |
| 24913 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| 24914 | - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
| 24915 | - # see comment about different semantics on the GNU ld section |
| 24916 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 24917 | - ;; |
| 24918 | +# _LT_LANG_FC_CONFIG([TAG]) |
| 24919 | +# ------------------------- |
| 24920 | +# Ensure that the configuration variables for a Fortran compiler are |
| 24921 | +# suitably defined. These variables are subsequently used by _LT_CONFIG |
| 24922 | +# to write the compiler configuration to `libtool'. |
| 24923 | +m4_defun([_LT_LANG_FC_CONFIG], |
| 24924 | +[AC_REQUIRE([_LT_PROG_FC])dnl |
| 24925 | +AC_LANG_PUSH(Fortran) |
| 24926 | + |
| 24927 | +_LT_TAGVAR(archive_cmds_need_lc, $1)=no |
| 24928 | +_LT_TAGVAR(allow_undefined_flag, $1)= |
| 24929 | +_LT_TAGVAR(always_export_symbols, $1)=no |
| 24930 | +_LT_TAGVAR(archive_expsym_cmds, $1)= |
| 24931 | +_LT_TAGVAR(export_dynamic_flag_spec, $1)= |
| 24932 | +_LT_TAGVAR(hardcode_direct, $1)=no |
| 24933 | +_LT_TAGVAR(hardcode_direct_absolute, $1)=no |
| 24934 | +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= |
| 24935 | +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= |
| 24936 | +_LT_TAGVAR(hardcode_libdir_separator, $1)= |
| 24937 | +_LT_TAGVAR(hardcode_minus_L, $1)=no |
| 24938 | +_LT_TAGVAR(hardcode_automatic, $1)=no |
| 24939 | +_LT_TAGVAR(inherit_rpath, $1)=no |
| 24940 | +_LT_TAGVAR(module_cmds, $1)= |
| 24941 | +_LT_TAGVAR(module_expsym_cmds, $1)= |
| 24942 | +_LT_TAGVAR(link_all_deplibs, $1)=unknown |
| 24943 | +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds |
| 24944 | +_LT_TAGVAR(no_undefined_flag, $1)= |
| 24945 | +_LT_TAGVAR(whole_archive_flag_spec, $1)= |
| 24946 | +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no |
| 24947 | |
| 24948 | - bsdi[[45]]*) |
| 24949 | - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic |
| 24950 | - ;; |
| 24951 | +# Source file extension for fc test sources. |
| 24952 | +ac_ext=${ac_fc_srcext-f} |
| 24953 | |
| 24954 | - cygwin* | mingw* | pw32*) |
| 24955 | - # When not using gcc, we currently assume that we are using |
| 24956 | - # Microsoft Visual C++. |
| 24957 | - # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 24958 | - # no search path for DLLs. |
| 24959 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' |
| 24960 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported |
| 24961 | - # Tell ltmain to make .lib files, not .a files. |
| 24962 | - libext=lib |
| 24963 | - # Tell ltmain to make .dll files, not .so files. |
| 24964 | - shrext_cmds=".dll" |
| 24965 | - # FIXME: Setting linknames here is a bad hack. |
| 24966 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 24967 | - # The linker will automatically build a .lib file if we build a DLL. |
| 24968 | - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true' |
| 24969 | - # FIXME: Should let the user specify the lib program. |
| 24970 | - _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 24971 | - _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' |
| 24972 | - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
| 24973 | - ;; |
| 24974 | +# Object file extension for compiled fc test sources. |
| 24975 | +objext=o |
| 24976 | +_LT_TAGVAR(objext, $1)=$objext |
| 24977 | |
| 24978 | - darwin* | rhapsody*) |
| 24979 | - case $host_os in |
| 24980 | - rhapsody* | darwin1.[[012]]) |
| 24981 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' |
| 24982 | - ;; |
| 24983 | - *) # Darwin 1.3 on |
| 24984 | - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 24985 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 24986 | - else |
| 24987 | - case ${MACOSX_DEPLOYMENT_TARGET} in |
| 24988 | - 10.[[012]]) |
| 24989 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 24990 | - ;; |
| 24991 | - 10.*) |
| 24992 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' |
| 24993 | - ;; |
| 24994 | - esac |
| 24995 | - fi |
| 24996 | - ;; |
| 24997 | - esac |
| 24998 | - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
| 24999 | - _LT_AC_TAGVAR(hardcode_direct, $1)=no |
| 25000 | - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes |
| 25001 | - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
| 25002 | - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' |
| 25003 | - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
| 25004 | - if test "$GCC" = yes ; then |
| 25005 | - output_verbose_link_cmd='echo' |
| 25006 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 25007 | - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 25008 | - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 25009 | - _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}' |
| 25010 | - _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}' |
| 25011 | - else |
| 25012 | - case $cc_basename in |
| 25013 | - xlc*) |
| 25014 | - output_verbose_link_cmd='echo' |
| 25015 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 25016 | - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 25017 | - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 25018 | - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 25019 | - _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 25020 | - ;; |
| 25021 | - *) |
| 25022 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 25023 | - ;; |
| 25024 | - esac |
| 25025 | - fi |
| 25026 | - ;; |
| 25027 | +# No sense in running all these tests if we already determined that |
| 25028 | +# the FC compiler isn't working. Some variables (like enable_shared) |
| 25029 | +# are currently assumed to apply to all compilers on this platform, |
| 25030 | +# and will be corrupted by setting them based on a non-working compiler. |
| 25031 | +if test "$_lt_disable_FC" != yes; then |
| 25032 | + # Code to be used in simple compile tests |
| 25033 | + lt_simple_compile_test_code="\ |
| 25034 | + subroutine t |
| 25035 | + return |
| 25036 | + end |
| 25037 | +" |
| 25038 | |
| 25039 | - dgux*) |
| 25040 | - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 25041 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| 25042 | - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 25043 | - ;; |
| 25044 | + # Code to be used in simple link tests |
| 25045 | + lt_simple_link_test_code="\ |
| 25046 | + program t |
| 25047 | + end |
| 25048 | +" |
| 25049 | |
| 25050 | - freebsd1*) |
| 25051 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 25052 | - ;; |
| 25053 | + # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 25054 | + _LT_TAG_COMPILER |
| 25055 | |
| 25056 | - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 25057 | - # support. Future versions do this automatically, but an explicit c++rt0.o |
| 25058 | - # does not break anything, and helps significantly (at the cost of a little |
| 25059 | - # extra space). |
| 25060 | - freebsd2.2*) |
| 25061 | - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 25062 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
| 25063 | - _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
| 25064 | - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 25065 | - ;; |
| 25066 | + # save warnings/boilerplate of simple test code |
| 25067 | + _LT_COMPILER_BOILERPLATE |
| 25068 | + _LT_LINKER_BOILERPLATE |
| 25069 | + |
| 25070 | + # Allow CC to be a program name with arguments. |
| 25071 | + lt_save_CC="$CC" |
| 25072 | + lt_save_GCC=$GCC |
| 25073 | + CC=${FC-"f95"} |
| 25074 | + compiler=$CC |
| 25075 | + GCC=$ac_cv_fc_compiler_gnu |
| 25076 | |
| 25077 | - # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 25078 | - freebsd2*) |
| 25079 | - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 25080 | - _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
| 25081 | - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
| 25082 | - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 25083 | - ;; |
| 25084 | + _LT_TAGVAR(compiler, $1)=$CC |
| 25085 | + _LT_CC_BASENAME([$compiler]) |
| 25086 | |
| 25087 | - # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 25088 | - freebsd* | kfreebsd*-gnu | dragonfly*) |
| 25089 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 25090 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
| 25091 | - _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
| 25092 | - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 25093 | - ;; |
| 25094 | + if test -n "$compiler"; then |
| 25095 | + AC_MSG_CHECKING([if libtool supports shared libraries]) |
| 25096 | + AC_MSG_RESULT([$can_build_shared]) |
| 25097 | |
| 25098 | - hpux9*) |
| 25099 | - if test "$GCC" = yes; then |
| 25100 | - _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' |
| 25101 | - else |
| 25102 | - _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' |
| 25103 | - fi |
| 25104 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
| 25105 | - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| 25106 | - _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
| 25107 | + AC_MSG_CHECKING([whether to build shared libraries]) |
| 25108 | + test "$can_build_shared" = "no" && enable_shared=no |
| 25109 | |
| 25110 | - # hardcode_minus_L: Not really in the search PATH, |
| 25111 | - # but as the default location of the library. |
| 25112 | - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
| 25113 | - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
| 25114 | - ;; |
| 25115 | + # On AIX, shared libraries and static libraries use the same namespace, and |
| 25116 | + # are all built from PIC. |
| 25117 | + case $host_os in |
| 25118 | + aix3*) |
| 25119 | + test "$enable_shared" = yes && enable_static=no |
| 25120 | + if test -n "$RANLIB"; then |
| 25121 | + archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 25122 | + postinstall_cmds='$RANLIB $lib' |
| 25123 | + fi |
| 25124 | + ;; |
| 25125 | + aix[[4-9]]*) |
| 25126 | + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 25127 | + test "$enable_shared" = yes && enable_static=no |
| 25128 | + fi |
| 25129 | + ;; |
| 25130 | + esac |
| 25131 | + AC_MSG_RESULT([$enable_shared]) |
| 25132 | |
| 25133 | - hpux10*) |
| 25134 | - if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 25135 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 25136 | - else |
| 25137 | - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 25138 | - fi |
| 25139 | - if test "$with_gnu_ld" = no; then |
| 25140 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
| 25141 | - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| 25142 | + AC_MSG_CHECKING([whether to build static libraries]) |
| 25143 | + # Make sure either enable_shared or enable_static is yes. |
| 25144 | + test "$enable_shared" = yes || enable_static=yes |
| 25145 | + AC_MSG_RESULT([$enable_static]) |
| 25146 | + |
| 25147 | + _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu" |
| 25148 | + _LT_TAGVAR(LD, $1)="$LD" |
| 25149 | + |
| 25150 | + ## CAVEAT EMPTOR: |
| 25151 | + ## There is no encapsulation within the following macros, do not change |
| 25152 | + ## the running order or otherwise move them around unless you know exactly |
| 25153 | + ## what you are doing... |
| 25154 | + _LT_SYS_HIDDEN_LIBDEPS($1) |
| 25155 | + _LT_COMPILER_PIC($1) |
| 25156 | + _LT_COMPILER_C_O($1) |
| 25157 | + _LT_COMPILER_FILE_LOCKS($1) |
| 25158 | + _LT_LINKER_SHLIBS($1) |
| 25159 | + _LT_SYS_DYNAMIC_LINKER($1) |
| 25160 | + _LT_LINKER_HARDCODE_LIBPATH($1) |
| 25161 | + |
| 25162 | + _LT_CONFIG($1) |
| 25163 | + fi # test -n "$compiler" |
| 25164 | + |
| 25165 | + GCC=$lt_save_GCC |
| 25166 | + CC="$lt_save_CC" |
| 25167 | +fi # test "$_lt_disable_FC" != yes |
| 25168 | |
| 25169 | - _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
| 25170 | - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
| 25171 | +AC_LANG_POP |
| 25172 | +])# _LT_LANG_FC_CONFIG |
| 25173 | |
| 25174 | - # hardcode_minus_L: Not really in the search PATH, |
| 25175 | - # but as the default location of the library. |
| 25176 | - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
| 25177 | - fi |
| 25178 | - ;; |
| 25179 | |
| 25180 | - hpux11*) |
| 25181 | - if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 25182 | - case $host_cpu in |
| 25183 | - hppa*64*) |
| 25184 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25185 | - ;; |
| 25186 | - ia64*) |
| 25187 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 25188 | - ;; |
| 25189 | - *) |
| 25190 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 25191 | - ;; |
| 25192 | - esac |
| 25193 | - else |
| 25194 | - case $host_cpu in |
| 25195 | - hppa*64*) |
| 25196 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25197 | - ;; |
| 25198 | - ia64*) |
| 25199 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 25200 | - ;; |
| 25201 | - *) |
| 25202 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 25203 | - ;; |
| 25204 | - esac |
| 25205 | - fi |
| 25206 | - if test "$with_gnu_ld" = no; then |
| 25207 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
| 25208 | - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| 25209 | +# _LT_LANG_GCJ_CONFIG([TAG]) |
| 25210 | +# -------------------------- |
| 25211 | +# Ensure that the configuration variables for the GNU Java Compiler compiler |
| 25212 | +# are suitably defined. These variables are subsequently used by _LT_CONFIG |
| 25213 | +# to write the compiler configuration to `libtool'. |
| 25214 | +m4_defun([_LT_LANG_GCJ_CONFIG], |
| 25215 | +[AC_REQUIRE([LT_PROG_GCJ])dnl |
| 25216 | +AC_LANG_SAVE |
| 25217 | |
| 25218 | - case $host_cpu in |
| 25219 | - hppa*64*|ia64*) |
| 25220 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' |
| 25221 | - _LT_AC_TAGVAR(hardcode_direct, $1)=no |
| 25222 | - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 25223 | - ;; |
| 25224 | - *) |
| 25225 | - _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
| 25226 | - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
| 25227 | +# Source file extension for Java test sources. |
| 25228 | +ac_ext=java |
| 25229 | |
| 25230 | - # hardcode_minus_L: Not really in the search PATH, |
| 25231 | - # but as the default location of the library. |
| 25232 | - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
| 25233 | - ;; |
| 25234 | - esac |
| 25235 | - fi |
| 25236 | - ;; |
| 25237 | +# Object file extension for compiled Java test sources. |
| 25238 | +objext=o |
| 25239 | +_LT_TAGVAR(objext, $1)=$objext |
| 25240 | |
| 25241 | - irix5* | irix6* | nonstopux*) |
| 25242 | - if test "$GCC" = yes; then |
| 25243 | - _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' |
| 25244 | - else |
| 25245 | - _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' |
| 25246 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' |
| 25247 | - fi |
| 25248 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
| 25249 | - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| 25250 | - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
| 25251 | - ;; |
| 25252 | +# Code to be used in simple compile tests |
| 25253 | +lt_simple_compile_test_code="class foo {}" |
| 25254 | |
| 25255 | - netbsd*) |
| 25256 | - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 25257 | - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 25258 | - else |
| 25259 | - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 25260 | - fi |
| 25261 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
| 25262 | - _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
| 25263 | - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 25264 | - ;; |
| 25265 | +# Code to be used in simple link tests |
| 25266 | +lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' |
| 25267 | |
| 25268 | - newsos6) |
| 25269 | - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 25270 | - _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
| 25271 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
| 25272 | - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| 25273 | - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 25274 | - ;; |
| 25275 | +# ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 25276 | +_LT_TAG_COMPILER |
| 25277 | + |
| 25278 | +# save warnings/boilerplate of simple test code |
| 25279 | +_LT_COMPILER_BOILERPLATE |
| 25280 | +_LT_LINKER_BOILERPLATE |
| 25281 | + |
| 25282 | +# Allow CC to be a program name with arguments. |
| 25283 | +lt_save_CC="$CC" |
| 25284 | +lt_save_GCC=$GCC |
| 25285 | +GCC=yes |
| 25286 | +CC=${GCJ-"gcj"} |
| 25287 | +compiler=$CC |
| 25288 | +_LT_TAGVAR(compiler, $1)=$CC |
| 25289 | +_LT_TAGVAR(LD, $1)="$LD" |
| 25290 | +_LT_CC_BASENAME([$compiler]) |
| 25291 | |
| 25292 | - openbsd*) |
| 25293 | - _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
| 25294 | - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 25295 | - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 25296 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 25297 | - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
| 25298 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
| 25299 | - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
| 25300 | - else |
| 25301 | - case $host_os in |
| 25302 | - openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) |
| 25303 | - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 25304 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
| 25305 | - ;; |
| 25306 | - *) |
| 25307 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 25308 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
| 25309 | - ;; |
| 25310 | - esac |
| 25311 | - fi |
| 25312 | - ;; |
| 25313 | +# GCJ did not exist at the time GCC didn't implicitly link libc in. |
| 25314 | +_LT_TAGVAR(archive_cmds_need_lc, $1)=no |
| 25315 | |
| 25316 | - os2*) |
| 25317 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| 25318 | - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
| 25319 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported |
| 25320 | - _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' |
| 25321 | - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 25322 | - ;; |
| 25323 | +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds |
| 25324 | |
| 25325 | - osf3*) |
| 25326 | - if test "$GCC" = yes; then |
| 25327 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
| 25328 | - _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' |
| 25329 | - else |
| 25330 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' |
| 25331 | - _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' |
| 25332 | - fi |
| 25333 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
| 25334 | - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| 25335 | - ;; |
| 25336 | +## CAVEAT EMPTOR: |
| 25337 | +## There is no encapsulation within the following macros, do not change |
| 25338 | +## the running order or otherwise move them around unless you know exactly |
| 25339 | +## what you are doing... |
| 25340 | +if test -n "$compiler"; then |
| 25341 | + _LT_COMPILER_NO_RTTI($1) |
| 25342 | + _LT_COMPILER_PIC($1) |
| 25343 | + _LT_COMPILER_C_O($1) |
| 25344 | + _LT_COMPILER_FILE_LOCKS($1) |
| 25345 | + _LT_LINKER_SHLIBS($1) |
| 25346 | + _LT_LINKER_HARDCODE_LIBPATH($1) |
| 25347 | |
| 25348 | - osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 25349 | - if test "$GCC" = yes; then |
| 25350 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
| 25351 | - _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' |
| 25352 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
| 25353 | - else |
| 25354 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' |
| 25355 | - _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' |
| 25356 | - _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~ |
| 25357 | - $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' |
| 25358 | + _LT_CONFIG($1) |
| 25359 | +fi |
| 25360 | |
| 25361 | - # Both c and cxx compiler support -rpath directly |
| 25362 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' |
| 25363 | - fi |
| 25364 | - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| 25365 | - ;; |
| 25366 | +AC_LANG_RESTORE |
| 25367 | |
| 25368 | - solaris*) |
| 25369 | - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' |
| 25370 | - if test "$GCC" = yes; then |
| 25371 | - wlarc='${wl}' |
| 25372 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25373 | - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 25374 | - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
| 25375 | - else |
| 25376 | - wlarc='' |
| 25377 | - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 25378 | - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 25379 | - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 25380 | - fi |
| 25381 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
| 25382 | - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 25383 | - case $host_os in |
| 25384 | - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; |
| 25385 | - *) |
| 25386 | - # The compiler driver will combine linker options so we |
| 25387 | - # cannot just pass the convience library names through |
| 25388 | - # without $wl, iff we do not link with $LD. |
| 25389 | - # Luckily, gcc supports the same syntax we need for Sun Studio. |
| 25390 | - # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 25391 | - case $wlarc in |
| 25392 | - '') |
| 25393 | - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;; |
| 25394 | - *) |
| 25395 | - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; |
| 25396 | - esac ;; |
| 25397 | - esac |
| 25398 | - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
| 25399 | - ;; |
| 25400 | +GCC=$lt_save_GCC |
| 25401 | +CC="$lt_save_CC" |
| 25402 | +])# _LT_LANG_GCJ_CONFIG |
| 25403 | |
| 25404 | - sunos4*) |
| 25405 | - if test "x$host_vendor" = xsequent; then |
| 25406 | - # Use $CC to link under sequent, because it throws in some extra .o |
| 25407 | - # files that make .init and .fini sections work. |
| 25408 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25409 | - else |
| 25410 | - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 25411 | - fi |
| 25412 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| 25413 | - _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
| 25414 | - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
| 25415 | - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 25416 | - ;; |
| 25417 | |
| 25418 | - sysv4) |
| 25419 | - case $host_vendor in |
| 25420 | - sni) |
| 25421 | - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 25422 | - _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true??? |
| 25423 | - ;; |
| 25424 | - siemens) |
| 25425 | - ## LD is ld it makes a PLAMLIB |
| 25426 | - ## CC just makes a GrossModule. |
| 25427 | - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 25428 | - _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' |
| 25429 | - _LT_AC_TAGVAR(hardcode_direct, $1)=no |
| 25430 | - ;; |
| 25431 | - motorola) |
| 25432 | - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 25433 | - _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie |
| 25434 | - ;; |
| 25435 | - esac |
| 25436 | - runpath_var='LD_RUN_PATH' |
| 25437 | - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 25438 | - ;; |
| 25439 | +# _LT_LANG_RC_CONFIG([TAG]) |
| 25440 | +# ------------------------- |
| 25441 | +# Ensure that the configuration variables for the Windows resource compiler |
| 25442 | +# are suitably defined. These variables are subsequently used by _LT_CONFIG |
| 25443 | +# to write the compiler configuration to `libtool'. |
| 25444 | +m4_defun([_LT_LANG_RC_CONFIG], |
| 25445 | +[AC_REQUIRE([LT_PROG_RC])dnl |
| 25446 | +AC_LANG_SAVE |
| 25447 | |
| 25448 | - sysv4.3*) |
| 25449 | - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 25450 | - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 25451 | - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' |
| 25452 | - ;; |
| 25453 | +# Source file extension for RC test sources. |
| 25454 | +ac_ext=rc |
| 25455 | |
| 25456 | - sysv4*MP*) |
| 25457 | - if test -d /usr/nec; then |
| 25458 | - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 25459 | - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 25460 | - runpath_var=LD_RUN_PATH |
| 25461 | - hardcode_runpath_var=yes |
| 25462 | - _LT_AC_TAGVAR(ld_shlibs, $1)=yes |
| 25463 | - fi |
| 25464 | - ;; |
| 25465 | +# Object file extension for compiled RC test sources. |
| 25466 | +objext=o |
| 25467 | +_LT_TAGVAR(objext, $1)=$objext |
| 25468 | |
| 25469 | - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*) |
| 25470 | - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' |
| 25471 | - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
| 25472 | - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 25473 | - runpath_var='LD_RUN_PATH' |
| 25474 | +# Code to be used in simple compile tests |
| 25475 | +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' |
| 25476 | |
| 25477 | - if test "$GCC" = yes; then |
| 25478 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25479 | - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25480 | - else |
| 25481 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25482 | - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25483 | - fi |
| 25484 | - ;; |
| 25485 | +# Code to be used in simple link tests |
| 25486 | +lt_simple_link_test_code="$lt_simple_compile_test_code" |
| 25487 | |
| 25488 | - sysv5* | sco3.2v5* | sco5v6*) |
| 25489 | - # Note: We can NOT use -z defs as we might desire, because we do not |
| 25490 | - # link with -lc, and that would cause any symbols used from libc to |
| 25491 | - # always be unresolved, which means just about no library would |
| 25492 | - # ever link correctly. If we're not using GNU ld we use -z text |
| 25493 | - # though, which does catch some bad symbols but isn't as heavy-handed |
| 25494 | - # as -z defs. |
| 25495 | - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' |
| 25496 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' |
| 25497 | - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
| 25498 | - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 25499 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 25500 | - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' |
| 25501 | - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
| 25502 | - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' |
| 25503 | - runpath_var='LD_RUN_PATH' |
| 25504 | +# ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 25505 | +_LT_TAG_COMPILER |
| 25506 | |
| 25507 | - if test "$GCC" = yes; then |
| 25508 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25509 | - _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' |
| 25510 | - else |
| 25511 | - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 25512 | - _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' |
| 25513 | - fi |
| 25514 | - ;; |
| 25515 | +# save warnings/boilerplate of simple test code |
| 25516 | +_LT_COMPILER_BOILERPLATE |
| 25517 | +_LT_LINKER_BOILERPLATE |
| 25518 | |
| 25519 | - uts4*) |
| 25520 | - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 25521 | - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
| 25522 | - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
| 25523 | - ;; |
| 25524 | +# Allow CC to be a program name with arguments. |
| 25525 | +lt_save_CC="$CC" |
| 25526 | +lt_save_GCC=$GCC |
| 25527 | +GCC= |
| 25528 | +CC=${RC-"windres"} |
| 25529 | +compiler=$CC |
| 25530 | +_LT_TAGVAR(compiler, $1)=$CC |
| 25531 | +_LT_CC_BASENAME([$compiler]) |
| 25532 | +_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes |
| 25533 | |
| 25534 | - *) |
| 25535 | - _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| 25536 | - ;; |
| 25537 | - esac |
| 25538 | - fi |
| 25539 | -]) |
| 25540 | -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) |
| 25541 | -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no |
| 25542 | +if test -n "$compiler"; then |
| 25543 | + : |
| 25544 | + _LT_CONFIG($1) |
| 25545 | +fi |
| 25546 | |
| 25547 | -# |
| 25548 | -# Do we need to explicitly link libc? |
| 25549 | -# |
| 25550 | -case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in |
| 25551 | -x|xyes) |
| 25552 | - # Assume -lc should be added |
| 25553 | - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes |
| 25554 | +GCC=$lt_save_GCC |
| 25555 | +AC_LANG_RESTORE |
| 25556 | +CC="$lt_save_CC" |
| 25557 | +])# _LT_LANG_RC_CONFIG |
| 25558 | |
| 25559 | - if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 25560 | - case $_LT_AC_TAGVAR(archive_cmds, $1) in |
| 25561 | - *'~'*) |
| 25562 | - # FIXME: we may have to deal with multi-command sequences. |
| 25563 | - ;; |
| 25564 | - '$CC '*) |
| 25565 | - # Test whether the compiler implicitly links with -lc since on some |
| 25566 | - # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 25567 | - # to ld, don't add -lc before -lgcc. |
| 25568 | - AC_MSG_CHECKING([whether -lc should be explicitly linked in]) |
| 25569 | - $rm conftest* |
| 25570 | - printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 25571 | |
| 25572 | - if AC_TRY_EVAL(ac_compile) 2>conftest.err; then |
| 25573 | - soname=conftest |
| 25574 | - lib=conftest |
| 25575 | - libobjs=conftest.$ac_objext |
| 25576 | - deplibs= |
| 25577 | - wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) |
| 25578 | - pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) |
| 25579 | - compiler_flags=-v |
| 25580 | - linker_flags=-v |
| 25581 | - verstring= |
| 25582 | - output_objdir=. |
| 25583 | - libname=conftest |
| 25584 | - lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1) |
| 25585 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)= |
| 25586 | - if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) |
| 25587 | - then |
| 25588 | - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
| 25589 | - else |
| 25590 | - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes |
| 25591 | - fi |
| 25592 | - _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag |
| 25593 | - else |
| 25594 | - cat conftest.err 1>&5 |
| 25595 | - fi |
| 25596 | - $rm conftest* |
| 25597 | - AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)]) |
| 25598 | - ;; |
| 25599 | - esac |
| 25600 | - fi |
| 25601 | - ;; |
| 25602 | -esac |
| 25603 | -])# AC_LIBTOOL_PROG_LD_SHLIBS |
| 25604 | +# LT_PROG_GCJ |
| 25605 | +# ----------- |
| 25606 | +AC_DEFUN([LT_PROG_GCJ], |
| 25607 | +[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ], |
| 25608 | + [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ], |
| 25609 | + [AC_CHECK_TOOL(GCJ, gcj,) |
| 25610 | + test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" |
| 25611 | + AC_SUBST(GCJFLAGS)])])[]dnl |
| 25612 | +]) |
| 25613 | |
| 25614 | +# Old name: |
| 25615 | +AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ]) |
| 25616 | +dnl aclocal-1.4 backwards compatibility: |
| 25617 | +dnl AC_DEFUN([LT_AC_PROG_GCJ], []) |
| 25618 | |
| 25619 | -# _LT_AC_FILE_LTDLL_C |
| 25620 | -# ------------------- |
| 25621 | -# Be careful that the start marker always follows a newline. |
| 25622 | -AC_DEFUN([_LT_AC_FILE_LTDLL_C], [ |
| 25623 | -# /* ltdll.c starts here */ |
| 25624 | -# #define WIN32_LEAN_AND_MEAN |
| 25625 | -# #include <windows.h> |
| 25626 | -# #undef WIN32_LEAN_AND_MEAN |
| 25627 | -# #include <stdio.h> |
| 25628 | -# |
| 25629 | -# #ifndef __CYGWIN__ |
| 25630 | -# # ifdef __CYGWIN32__ |
| 25631 | -# # define __CYGWIN__ __CYGWIN32__ |
| 25632 | -# # endif |
| 25633 | -# #endif |
| 25634 | -# |
| 25635 | -# #ifdef __cplusplus |
| 25636 | -# extern "C" { |
| 25637 | -# #endif |
| 25638 | -# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); |
| 25639 | -# #ifdef __cplusplus |
| 25640 | -# } |
| 25641 | -# #endif |
| 25642 | -# |
| 25643 | -# #ifdef __CYGWIN__ |
| 25644 | -# #include <cygwin/cygwin_dll.h> |
| 25645 | -# DECLARE_CYGWIN_DLL( DllMain ); |
| 25646 | -# #endif |
| 25647 | -# HINSTANCE __hDllInstance_base; |
| 25648 | -# |
| 25649 | -# BOOL APIENTRY |
| 25650 | -# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) |
| 25651 | -# { |
| 25652 | -# __hDllInstance_base = hInst; |
| 25653 | -# return TRUE; |
| 25654 | -# } |
| 25655 | -# /* ltdll.c ends here */ |
| 25656 | -])# _LT_AC_FILE_LTDLL_C |
| 25657 | |
| 25658 | +# LT_PROG_RC |
| 25659 | +# ---------- |
| 25660 | +AC_DEFUN([LT_PROG_RC], |
| 25661 | +[AC_CHECK_TOOL(RC, windres,) |
| 25662 | +]) |
| 25663 | |
| 25664 | -# _LT_AC_TAGVAR(VARNAME, [TAGNAME]) |
| 25665 | -# --------------------------------- |
| 25666 | -AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])]) |
| 25667 | +# Old name: |
| 25668 | +AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC]) |
| 25669 | +dnl aclocal-1.4 backwards compatibility: |
| 25670 | +dnl AC_DEFUN([LT_AC_PROG_RC], []) |
| 25671 | |
| 25672 | |
| 25673 | -# old names |
| 25674 | -AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL]) |
| 25675 | -AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) |
| 25676 | -AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) |
| 25677 | -AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) |
| 25678 | -AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) |
| 25679 | -AC_DEFUN([AM_PROG_LD], [AC_PROG_LD]) |
| 25680 | -AC_DEFUN([AM_PROG_NM], [AC_PROG_NM]) |
| 25681 | - |
| 25682 | -# This is just to silence aclocal about the macro not being used |
| 25683 | -ifelse([AC_DISABLE_FAST_INSTALL]) |
| 25684 | - |
| 25685 | -AC_DEFUN([LT_AC_PROG_GCJ], |
| 25686 | -[AC_CHECK_TOOL(GCJ, gcj, no) |
| 25687 | - test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" |
| 25688 | - AC_SUBST(GCJFLAGS) |
| 25689 | +# _LT_DECL_EGREP |
| 25690 | +# -------------- |
| 25691 | +# If we don't have a new enough Autoconf to choose the best grep |
| 25692 | +# available, choose the one first in the user's PATH. |
| 25693 | +m4_defun([_LT_DECL_EGREP], |
| 25694 | +[AC_REQUIRE([AC_PROG_EGREP])dnl |
| 25695 | +AC_REQUIRE([AC_PROG_FGREP])dnl |
| 25696 | +test -z "$GREP" && GREP=grep |
| 25697 | +_LT_DECL([], [GREP], [1], [A grep program that handles long lines]) |
| 25698 | +_LT_DECL([], [EGREP], [1], [An ERE matcher]) |
| 25699 | +_LT_DECL([], [FGREP], [1], [A literal string matcher]) |
| 25700 | +dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too |
| 25701 | +AC_SUBST([GREP]) |
| 25702 | ]) |
| 25703 | |
| 25704 | -AC_DEFUN([LT_AC_PROG_RC], |
| 25705 | -[AC_CHECK_TOOL(RC, windres, no) |
| 25706 | -]) |
| 25707 | |
| 25708 | +# _LT_DECL_SED |
| 25709 | +# ------------ |
| 25710 | +# Check for a fully-functional sed program, that truncates |
| 25711 | +# as few characters as possible. Prefer GNU sed if found. |
| 25712 | +m4_defun([_LT_DECL_SED], |
| 25713 | +[AC_PROG_SED |
| 25714 | +test -z "$SED" && SED=sed |
| 25715 | +Xsed="$SED -e 1s/^X//" |
| 25716 | +_LT_DECL([], [SED], [1], [A sed program that does not truncate output]) |
| 25717 | +_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"], |
| 25718 | + [Sed that helps us avoid accidentally triggering echo(1) options like -n]) |
| 25719 | +])# _LT_DECL_SED |
| 25720 | + |
| 25721 | +m4_ifndef([AC_PROG_SED], [ |
| 25722 | ############################################################ |
| 25723 | # NOTE: This macro has been submitted for inclusion into # |
| 25724 | # GNU Autoconf as AC_PROG_SED. When it is available in # |
| 25725 | # a released version of Autoconf we should remove this # |
| 25726 | # macro and use it instead. # |
| 25727 | ############################################################ |
| 25728 | -# LT_AC_PROG_SED |
| 25729 | -# -------------- |
| 25730 | -# Check for a fully-functional sed program, that truncates |
| 25731 | -# as few characters as possible. Prefer GNU sed if found. |
| 25732 | -AC_DEFUN([LT_AC_PROG_SED], |
| 25733 | + |
| 25734 | +m4_defun([AC_PROG_SED], |
| 25735 | [AC_MSG_CHECKING([for a sed that does not truncate output]) |
| 25736 | AC_CACHE_VAL(lt_cv_path_SED, |
| 25737 | [# Loop through the user's path and test for sed and gsed. |
| 25738 | @@ -6435,6 +7010,7 @@ do |
| 25739 | done |
| 25740 | done |
| 25741 | done |
| 25742 | +IFS=$as_save_IFS |
| 25743 | lt_ac_max=0 |
| 25744 | lt_ac_count=0 |
| 25745 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
| 25746 | @@ -6467,5 +7043,268 @@ for lt_ac_sed in $lt_ac_sed_list /usr/xp |
| 25747 | done |
| 25748 | ]) |
| 25749 | SED=$lt_cv_path_SED |
| 25750 | +AC_SUBST([SED]) |
| 25751 | AC_MSG_RESULT([$SED]) |
| 25752 | +])#AC_PROG_SED |
| 25753 | +])#m4_ifndef |
| 25754 | + |
| 25755 | +# Old name: |
| 25756 | +AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED]) |
| 25757 | +dnl aclocal-1.4 backwards compatibility: |
| 25758 | +dnl AC_DEFUN([LT_AC_PROG_SED], []) |
| 25759 | + |
| 25760 | + |
| 25761 | +# _LT_CHECK_SHELL_FEATURES |
| 25762 | +# ------------------------ |
| 25763 | +# Find out whether the shell is Bourne or XSI compatible, |
| 25764 | +# or has some other useful features. |
| 25765 | +m4_defun([_LT_CHECK_SHELL_FEATURES], |
| 25766 | +[AC_MSG_CHECKING([whether the shell understands some XSI constructs]) |
| 25767 | +# Try some XSI features |
| 25768 | +xsi_shell=no |
| 25769 | +( _lt_dummy="a/b/c" |
| 25770 | + test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ |
| 25771 | + = c,a/b,, \ |
| 25772 | + && eval 'test $(( 1 + 1 )) -eq 2 \ |
| 25773 | + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ |
| 25774 | + && xsi_shell=yes |
| 25775 | +AC_MSG_RESULT([$xsi_shell]) |
| 25776 | +_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell']) |
| 25777 | + |
| 25778 | +AC_MSG_CHECKING([whether the shell understands "+="]) |
| 25779 | +lt_shell_append=no |
| 25780 | +( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \ |
| 25781 | + >/dev/null 2>&1 \ |
| 25782 | + && lt_shell_append=yes |
| 25783 | +AC_MSG_RESULT([$lt_shell_append]) |
| 25784 | +_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append']) |
| 25785 | + |
| 25786 | +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 25787 | + lt_unset=unset |
| 25788 | +else |
| 25789 | + lt_unset=false |
| 25790 | +fi |
| 25791 | +_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl |
| 25792 | + |
| 25793 | +# test EBCDIC or ASCII |
| 25794 | +case `echo X|tr X '\101'` in |
| 25795 | + A) # ASCII based system |
| 25796 | + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr |
| 25797 | + lt_SP2NL='tr \040 \012' |
| 25798 | + lt_NL2SP='tr \015\012 \040\040' |
| 25799 | + ;; |
| 25800 | + *) # EBCDIC based system |
| 25801 | + lt_SP2NL='tr \100 \n' |
| 25802 | + lt_NL2SP='tr \r\n \100\100' |
| 25803 | + ;; |
| 25804 | +esac |
| 25805 | +_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl |
| 25806 | +_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl |
| 25807 | +])# _LT_CHECK_SHELL_FEATURES |
| 25808 | + |
| 25809 | + |
| 25810 | +# _LT_PROG_XSI_SHELLFNS |
| 25811 | +# --------------------- |
| 25812 | +# Bourne and XSI compatible variants of some useful shell functions. |
| 25813 | +m4_defun([_LT_PROG_XSI_SHELLFNS], |
| 25814 | +[case $xsi_shell in |
| 25815 | + yes) |
| 25816 | + cat << \_LT_EOF >> "$cfgfile" |
| 25817 | + |
| 25818 | +# func_dirname file append nondir_replacement |
| 25819 | +# Compute the dirname of FILE. If nonempty, add APPEND to the result, |
| 25820 | +# otherwise set result to NONDIR_REPLACEMENT. |
| 25821 | +func_dirname () |
| 25822 | +{ |
| 25823 | + case ${1} in |
| 25824 | + */*) func_dirname_result="${1%/*}${2}" ;; |
| 25825 | + * ) func_dirname_result="${3}" ;; |
| 25826 | + esac |
| 25827 | +} |
| 25828 | + |
| 25829 | +# func_basename file |
| 25830 | +func_basename () |
| 25831 | +{ |
| 25832 | + func_basename_result="${1##*/}" |
| 25833 | +} |
| 25834 | + |
| 25835 | +# func_dirname_and_basename file append nondir_replacement |
| 25836 | +# perform func_basename and func_dirname in a single function |
| 25837 | +# call: |
| 25838 | +# dirname: Compute the dirname of FILE. If nonempty, |
| 25839 | +# add APPEND to the result, otherwise set result |
| 25840 | +# to NONDIR_REPLACEMENT. |
| 25841 | +# value returned in "$func_dirname_result" |
| 25842 | +# basename: Compute filename of FILE. |
| 25843 | +# value retuned in "$func_basename_result" |
| 25844 | +# Implementation must be kept synchronized with func_dirname |
| 25845 | +# and func_basename. For efficiency, we do not delegate to |
| 25846 | +# those functions but instead duplicate the functionality here. |
| 25847 | +func_dirname_and_basename () |
| 25848 | +{ |
| 25849 | + case ${1} in |
| 25850 | + */*) func_dirname_result="${1%/*}${2}" ;; |
| 25851 | + * ) func_dirname_result="${3}" ;; |
| 25852 | + esac |
| 25853 | + func_basename_result="${1##*/}" |
| 25854 | +} |
| 25855 | + |
| 25856 | +# func_stripname prefix suffix name |
| 25857 | +# strip PREFIX and SUFFIX off of NAME. |
| 25858 | +# PREFIX and SUFFIX must not contain globbing or regex special |
| 25859 | +# characters, hashes, percent signs, but SUFFIX may contain a leading |
| 25860 | +# dot (in which case that matches only a dot). |
| 25861 | +func_stripname () |
| 25862 | +{ |
| 25863 | + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are |
| 25864 | + # positional parameters, so assign one to ordinary parameter first. |
| 25865 | + func_stripname_result=${3} |
| 25866 | + func_stripname_result=${func_stripname_result#"${1}"} |
| 25867 | + func_stripname_result=${func_stripname_result%"${2}"} |
| 25868 | +} |
| 25869 | + |
| 25870 | +# func_opt_split |
| 25871 | +func_opt_split () |
| 25872 | +{ |
| 25873 | + func_opt_split_opt=${1%%=*} |
| 25874 | + func_opt_split_arg=${1#*=} |
| 25875 | +} |
| 25876 | + |
| 25877 | +# func_lo2o object |
| 25878 | +func_lo2o () |
| 25879 | +{ |
| 25880 | + case ${1} in |
| 25881 | + *.lo) func_lo2o_result=${1%.lo}.${objext} ;; |
| 25882 | + *) func_lo2o_result=${1} ;; |
| 25883 | + esac |
| 25884 | +} |
| 25885 | + |
| 25886 | +# func_xform libobj-or-source |
| 25887 | +func_xform () |
| 25888 | +{ |
| 25889 | + func_xform_result=${1%.*}.lo |
| 25890 | +} |
| 25891 | + |
| 25892 | +# func_arith arithmetic-term... |
| 25893 | +func_arith () |
| 25894 | +{ |
| 25895 | + func_arith_result=$(( $[*] )) |
| 25896 | +} |
| 25897 | + |
| 25898 | +# func_len string |
| 25899 | +# STRING may not start with a hyphen. |
| 25900 | +func_len () |
| 25901 | +{ |
| 25902 | + func_len_result=${#1} |
| 25903 | +} |
| 25904 | + |
| 25905 | +_LT_EOF |
| 25906 | + ;; |
| 25907 | + *) # Bourne compatible functions. |
| 25908 | + cat << \_LT_EOF >> "$cfgfile" |
| 25909 | + |
| 25910 | +# func_dirname file append nondir_replacement |
| 25911 | +# Compute the dirname of FILE. If nonempty, add APPEND to the result, |
| 25912 | +# otherwise set result to NONDIR_REPLACEMENT. |
| 25913 | +func_dirname () |
| 25914 | +{ |
| 25915 | + # Extract subdirectory from the argument. |
| 25916 | + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` |
| 25917 | + if test "X$func_dirname_result" = "X${1}"; then |
| 25918 | + func_dirname_result="${3}" |
| 25919 | + else |
| 25920 | + func_dirname_result="$func_dirname_result${2}" |
| 25921 | + fi |
| 25922 | +} |
| 25923 | + |
| 25924 | +# func_basename file |
| 25925 | +func_basename () |
| 25926 | +{ |
| 25927 | + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` |
| 25928 | +} |
| 25929 | + |
| 25930 | +dnl func_dirname_and_basename |
| 25931 | +dnl A portable version of this function is already defined in general.m4sh |
| 25932 | +dnl so there is no need for it here. |
| 25933 | + |
| 25934 | +# func_stripname prefix suffix name |
| 25935 | +# strip PREFIX and SUFFIX off of NAME. |
| 25936 | +# PREFIX and SUFFIX must not contain globbing or regex special |
| 25937 | +# characters, hashes, percent signs, but SUFFIX may contain a leading |
| 25938 | +# dot (in which case that matches only a dot). |
| 25939 | +# func_strip_suffix prefix name |
| 25940 | +func_stripname () |
| 25941 | +{ |
| 25942 | + case ${2} in |
| 25943 | + .*) func_stripname_result=`$ECHO "X${3}" \ |
| 25944 | + | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; |
| 25945 | + *) func_stripname_result=`$ECHO "X${3}" \ |
| 25946 | + | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; |
| 25947 | + esac |
| 25948 | +} |
| 25949 | + |
| 25950 | +# sed scripts: |
| 25951 | +my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q' |
| 25952 | +my_sed_long_arg='1s/^-[[^=]]*=//' |
| 25953 | + |
| 25954 | +# func_opt_split |
| 25955 | +func_opt_split () |
| 25956 | +{ |
| 25957 | + func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` |
| 25958 | + func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` |
| 25959 | +} |
| 25960 | + |
| 25961 | +# func_lo2o object |
| 25962 | +func_lo2o () |
| 25963 | +{ |
| 25964 | + func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` |
| 25965 | +} |
| 25966 | + |
| 25967 | +# func_xform libobj-or-source |
| 25968 | +func_xform () |
| 25969 | +{ |
| 25970 | + func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'` |
| 25971 | +} |
| 25972 | + |
| 25973 | +# func_arith arithmetic-term... |
| 25974 | +func_arith () |
| 25975 | +{ |
| 25976 | + func_arith_result=`expr "$[@]"` |
| 25977 | +} |
| 25978 | + |
| 25979 | +# func_len string |
| 25980 | +# STRING may not start with a hyphen. |
| 25981 | +func_len () |
| 25982 | +{ |
| 25983 | + func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len` |
| 25984 | +} |
| 25985 | + |
| 25986 | +_LT_EOF |
| 25987 | +esac |
| 25988 | + |
| 25989 | +case $lt_shell_append in |
| 25990 | + yes) |
| 25991 | + cat << \_LT_EOF >> "$cfgfile" |
| 25992 | + |
| 25993 | +# func_append var value |
| 25994 | +# Append VALUE to the end of shell variable VAR. |
| 25995 | +func_append () |
| 25996 | +{ |
| 25997 | + eval "$[1]+=\$[2]" |
| 25998 | +} |
| 25999 | +_LT_EOF |
| 26000 | + ;; |
| 26001 | + *) |
| 26002 | + cat << \_LT_EOF >> "$cfgfile" |
| 26003 | + |
| 26004 | +# func_append var value |
| 26005 | +# Append VALUE to the end of shell variable VAR. |
| 26006 | +func_append () |
| 26007 | +{ |
| 26008 | + eval "$[1]=\$$[1]\$[2]" |
| 26009 | +} |
| 26010 | + |
| 26011 | +_LT_EOF |
| 26012 | + ;; |
| 26013 | + esac |
| 26014 | ]) |
| 26015 | |