974
974
_GOBJECT_INTROSPECTION_CHECK_INTERNAL([$1], [require])
977
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
979
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
980
# 2006, 2007, 2008 Free Software Foundation, Inc.
981
# Written by Gordon Matzigkeit, 1996
983
# This file is free software; the Free Software Foundation gives
984
# unlimited permission to copy and/or distribute it, with or without
985
# modifications, as long as this notice is preserved.
987
m4_define([_LT_COPYING], [dnl
988
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
989
# 2006, 2007, 2008 Free Software Foundation, Inc.
990
# Written by Gordon Matzigkeit, 1996
992
# This file is part of GNU Libtool.
994
# GNU Libtool is free software; you can redistribute it and/or
995
# modify it under the terms of the GNU General Public License as
996
# published by the Free Software Foundation; either version 2 of
997
# the License, or (at your option) any later version.
999
# As a special exception to the GNU General Public License,
1000
# if you distribute this file as part of a program or library that
1001
# is built using GNU Libtool, you may include this file under the
1002
# same distribution terms that you use for the rest of that program.
1004
# GNU Libtool is distributed in the hope that it will be useful,
1005
# but WITHOUT ANY WARRANTY; without even the implied warranty of
1006
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1007
# GNU General Public License for more details.
1009
# You should have received a copy of the GNU General Public License
1010
# along with GNU Libtool; see the file COPYING. If not, a copy
1011
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
1012
# obtained by writing to the Free Software Foundation, Inc.,
1013
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
1019
# LT_PREREQ(VERSION)
1020
# ------------------
1021
# Complain and exit if this libtool version is less that VERSION.
1022
m4_defun([LT_PREREQ],
1023
[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
1025
[m4_fatal([Libtool version $1 or higher is required],
1030
# _LT_CHECK_BUILDDIR
1031
# ------------------
1032
# Complain if the absolute build directory name contains unusual characters
1033
m4_defun([_LT_CHECK_BUILDDIR],
1036
AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
1041
# LT_INIT([OPTIONS])
1042
# ------------------
1044
[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
1045
AC_BEFORE([$0], [LT_LANG])dnl
1046
AC_BEFORE([$0], [LT_OUTPUT])dnl
1047
AC_BEFORE([$0], [LTDL_INIT])dnl
1048
m4_require([_LT_CHECK_BUILDDIR])dnl
1050
dnl Autoconf doesn't catch unexpanded LT_ macros by default:
1051
m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
1052
m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
1053
dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
1054
dnl unless we require an AC_DEFUNed macro:
1055
AC_REQUIRE([LTOPTIONS_VERSION])dnl
1056
AC_REQUIRE([LTSUGAR_VERSION])dnl
1057
AC_REQUIRE([LTVERSION_VERSION])dnl
1058
AC_REQUIRE([LTOBSOLETE_VERSION])dnl
1059
m4_require([_LT_PROG_LTMAIN])dnl
1062
_LT_SET_OPTIONS([$0], [$1])
1064
# This can be used to rebuild libtool when needed
1065
LIBTOOL_DEPS="$ltmain"
1067
# Always use our own libtool.
1068
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1069
AC_SUBST(LIBTOOL)dnl
1074
m4_define([LT_INIT])
1078
AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
1079
AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
1080
dnl aclocal-1.4 backwards compatibility:
1081
dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
1082
dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
1085
# _LT_CC_BASENAME(CC)
1086
# -------------------
1087
# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
1088
m4_defun([_LT_CC_BASENAME],
1089
[for cc_temp in $1""; do
1091
compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
1092
distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
1097
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
1101
# _LT_FILEUTILS_DEFAULTS
1102
# ----------------------
1103
# It is okay to use these file commands and assume they have been set
1104
# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
1105
m4_defun([_LT_FILEUTILS_DEFAULTS],
1109
])# _LT_FILEUTILS_DEFAULTS
1114
m4_defun([_LT_SETUP],
1115
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
1116
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
1117
_LT_DECL([], [host_alias], [0], [The host system])dnl
1118
_LT_DECL([], [host], [0])dnl
1119
_LT_DECL([], [host_os], [0])dnl
1121
_LT_DECL([], [build_alias], [0], [The build system])dnl
1122
_LT_DECL([], [build], [0])dnl
1123
_LT_DECL([], [build_os], [0])dnl
1125
AC_REQUIRE([AC_PROG_CC])dnl
1126
AC_REQUIRE([LT_PATH_LD])dnl
1127
AC_REQUIRE([LT_PATH_NM])dnl
1129
AC_REQUIRE([AC_PROG_LN_S])dnl
1130
test -z "$LN_S" && LN_S="ln -s"
1131
_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
1133
AC_REQUIRE([LT_CMD_MAX_LEN])dnl
1134
_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
1135
_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
1137
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1138
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
1139
m4_require([_LT_CMD_RELOAD])dnl
1140
m4_require([_LT_CHECK_MAGIC_METHOD])dnl
1141
m4_require([_LT_CMD_OLD_ARCHIVE])dnl
1142
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
1144
_LT_CONFIG_LIBTOOL_INIT([
1145
# See if we are running on zsh, and set the options which allow our
1146
# commands through without removal of \ escapes INIT.
1147
if test -n "\${ZSH_VERSION+set}" ; then
1148
setopt NO_GLOB_SUBST
1151
if test -n "${ZSH_VERSION+set}" ; then
1152
setopt NO_GLOB_SUBST
1157
m4_require([_LT_TAG_COMPILER])dnl
1158
_LT_PROG_ECHO_BACKSLASH
1162
# AIX sometimes has problems with the GCC collect2 program. For some
1163
# reason, if we set the COLLECT_NAMES environment variable, the problems
1164
# vanish in a puff of smoke.
1165
if test "X${COLLECT_NAMES+set}" != Xset; then
1167
export COLLECT_NAMES
1172
# Sed substitution that helps us do robust quoting. It backslashifies
1173
# metacharacters that are still active within double-quoted strings.
1174
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
1176
# Same as above, but do not quote variable references.
1177
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
1179
# Sed substitution to delay expansion of an escaped shell variable in a
1180
# double_quote_subst'ed string.
1181
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1183
# Sed substitution to delay expansion of an escaped single quote.
1184
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
1186
# Sed substitution to avoid accidental globbing in evaled expressions
1187
no_glob_subst='s/\*/\\\*/g'
1191
can_build_shared=yes
1193
# All known linkers require a `.a' archive for static linking (except MSVC,
1194
# which needs '.lib').
1197
with_gnu_ld="$lt_cv_prog_gnu_ld"
1200
old_CFLAGS="$CFLAGS"
1202
# Set sane defaults for various variables
1203
test -z "$CC" && CC=cc
1204
test -z "$LTCC" && LTCC=$CC
1205
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
1206
test -z "$LD" && LD=ld
1207
test -z "$ac_objext" && ac_objext=o
1209
_LT_CC_BASENAME([$compiler])
1211
# Only perform the check for file, if the check method requires it
1212
test -z "$MAGIC_CMD" && MAGIC_CMD=file
1213
case $deplibs_check_method in
1215
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1221
# Use C for the default configuration in the libtool script
1222
LT_SUPPORTED_TAG([CC])
1224
_LT_LANG_DEFAULT_CONFIG
1231
# Note that this code is called both from `configure', and `config.status'
1232
# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
1233
# `config.status' has no value for ac_aux_dir unless we are using Automake,
1234
# so we pass a copy along to make sure it has a sensible value anyway.
1235
m4_defun([_LT_PROG_LTMAIN],
1236
[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
1237
_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
1238
ltmain="$ac_aux_dir/ltmain.sh"
1243
# So that we can recreate a full libtool script including additional
1244
# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
1245
# in macros and then make a single call at the end using the `libtool'
1249
# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
1250
# ----------------------------------------
1251
# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
1252
m4_define([_LT_CONFIG_LIBTOOL_INIT],
1254
[m4_append([_LT_OUTPUT_LIBTOOL_INIT],
1259
m4_define([_LT_OUTPUT_LIBTOOL_INIT])
1262
# _LT_CONFIG_LIBTOOL([COMMANDS])
1263
# ------------------------------
1264
# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
1265
m4_define([_LT_CONFIG_LIBTOOL],
1267
[m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
1272
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
1275
# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
1276
# -----------------------------------------------------
1277
m4_defun([_LT_CONFIG_SAVE_COMMANDS],
1278
[_LT_CONFIG_LIBTOOL([$1])
1279
_LT_CONFIG_LIBTOOL_INIT([$2])
1283
# _LT_FORMAT_COMMENT([COMMENT])
1284
# -----------------------------
1285
# Add leading comment marks to the start of each line, and a trailing
1286
# full-stop to the whole comment if one is not present already.
1287
m4_define([_LT_FORMAT_COMMENT],
1289
m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
1290
[['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
1297
# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
1298
# -------------------------------------------------------------------
1299
# CONFIGNAME is the name given to the value in the libtool script.
1300
# VARNAME is the (base) name used in the configure script.
1301
# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
1302
# VARNAME. Any other value will be used directly.
1303
m4_define([_LT_DECL],
1304
[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
1305
[lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
1306
[m4_ifval([$1], [$1], [$2])])
1307
lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
1309
[lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
1310
lt_dict_add_subkey([lt_decl_dict], [$2],
1311
[tagged?], [m4_ifval([$5], [yes], [no])])])
1315
# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
1316
# --------------------------------------------------------
1317
m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
1320
# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
1321
# ------------------------------------------------
1322
m4_define([lt_decl_tag_varnames],
1323
[_lt_decl_filter([tagged?], [yes], $@)])
1326
# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
1327
# ---------------------------------------------------------
1328
m4_define([_lt_decl_filter],
1330
[0], [m4_fatal([$0: too few arguments: $#])],
1331
[1], [m4_fatal([$0: too few arguments: $#: $1])],
1332
[2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
1333
[3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
1334
[lt_dict_filter([lt_decl_dict], $@)])[]dnl
1338
# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
1339
# --------------------------------------------------
1340
m4_define([lt_decl_quote_varnames],
1341
[_lt_decl_filter([value], [1], $@)])
1344
# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
1345
# ---------------------------------------------------
1346
m4_define([lt_decl_dquote_varnames],
1347
[_lt_decl_filter([value], [2], $@)])
1350
# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
1351
# ---------------------------------------------------
1352
m4_define([lt_decl_varnames_tagged],
1353
[m4_assert([$# <= 2])dnl
1354
_$0(m4_quote(m4_default([$1], [[, ]])),
1355
m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
1356
m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
1357
m4_define([_lt_decl_varnames_tagged],
1358
[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
1361
# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
1362
# ------------------------------------------------
1363
m4_define([lt_decl_all_varnames],
1364
[_$0(m4_quote(m4_default([$1], [[, ]])),
1366
m4_quote(lt_decl_varnames),
1367
m4_quote(m4_shift($@))))[]dnl
1369
m4_define([_lt_decl_all_varnames],
1370
[lt_join($@, lt_decl_varnames_tagged([$1],
1371
lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
1375
# _LT_CONFIG_STATUS_DECLARE([VARNAME])
1376
# ------------------------------------
1377
# Quote a variable value, and forward it to `config.status' so that its
1378
# declaration there will have the same value as in `configure'. VARNAME
1379
# must have a single quote delimited value for this to work.
1380
m4_define([_LT_CONFIG_STATUS_DECLARE],
1381
[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
1384
# _LT_CONFIG_STATUS_DECLARATIONS
1385
# ------------------------------
1386
# We delimit libtool config variables with single quotes, so when
1387
# we write them to config.status, we have to be sure to quote all
1388
# embedded single quotes properly. In configure, this macro expands
1389
# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
1391
# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
1392
m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
1393
[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
1394
[m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
1399
# Output comment and list of tags supported by the script
1400
m4_defun([_LT_LIBTOOL_TAGS],
1401
[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
1402
available_tags="_LT_TAGS"dnl
1406
# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
1407
# -----------------------------------
1408
# Extract the dictionary values for VARNAME (optionally with TAG) and
1409
# expand to a commented shell variable setting:
1411
# # Some comment about what VAR is for.
1412
# visible_name=$lt_internal_name
1413
m4_define([_LT_LIBTOOL_DECLARE],
1414
[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
1415
[description])))[]dnl
1416
m4_pushdef([_libtool_name],
1417
m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
1418
m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
1419
[0], [_libtool_name=[$]$1],
1420
[1], [_libtool_name=$lt_[]$1],
1421
[2], [_libtool_name=$lt_[]$1],
1422
[_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
1423
m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
1427
# _LT_LIBTOOL_CONFIG_VARS
1428
# -----------------------
1429
# Produce commented declarations of non-tagged libtool config variables
1430
# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
1431
# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
1432
# section) are produced by _LT_LIBTOOL_TAG_VARS.
1433
m4_defun([_LT_LIBTOOL_CONFIG_VARS],
1434
[m4_foreach([_lt_var],
1435
m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
1436
[m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
1439
# _LT_LIBTOOL_TAG_VARS(TAG)
1440
# -------------------------
1441
m4_define([_LT_LIBTOOL_TAG_VARS],
1442
[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
1443
[m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
1446
# _LT_TAGVAR(VARNAME, [TAGNAME])
1447
# ------------------------------
1448
m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
1451
# _LT_CONFIG_COMMANDS
1452
# -------------------
1453
# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
1454
# variables for single and double quote escaping we saved from calls
1455
# to _LT_DECL, we can put quote escaped variables declarations
1456
# into `config.status', and then the shell code to quote escape them in
1457
# for loops in `config.status'. Finally, any additional code accumulated
1458
# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
1459
m4_defun([_LT_CONFIG_COMMANDS],
1460
[AC_PROVIDE_IFELSE([LT_OUTPUT],
1461
dnl If the libtool generation code has been placed in $CONFIG_LT,
1462
dnl instead of duplicating it all over again into config.status,
1463
dnl then we will have config.status run $CONFIG_LT later, so it
1464
dnl needs to know what name is stored there:
1465
[AC_CONFIG_COMMANDS([libtool],
1466
[$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
1467
dnl If the libtool generation code is destined for config.status,
1468
dnl expand the accumulated commands and init code now:
1469
[AC_CONFIG_COMMANDS([libtool],
1470
[_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
1471
])#_LT_CONFIG_COMMANDS
1475
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
1478
# The HP-UX ksh and POSIX shell print the target directory to stdout
1480
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1482
sed_quote_subst='$sed_quote_subst'
1483
double_quote_subst='$double_quote_subst'
1484
delay_variable_subst='$delay_variable_subst'
1485
_LT_CONFIG_STATUS_DECLARATIONS
1487
LTCFLAGS='$LTCFLAGS'
1488
compiler='$compiler_DEFAULT'
1490
# Quote evaled strings.
1491
for var in lt_decl_all_varnames([[ \
1492
]], lt_decl_quote_varnames); do
1493
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
1494
*[[\\\\\\\`\\"\\\$]]*)
1495
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
1498
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1503
# Double-quote double-evaled strings.
1504
for var in lt_decl_all_varnames([[ \
1505
]], lt_decl_dquote_varnames); do
1506
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
1507
*[[\\\\\\\`\\"\\\$]]*)
1508
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
1511
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1516
# Fix-up fallback echo if it was mangled by the above quoting rules.
1518
*'\\\[$]0 --fallback-echo"')dnl "
1519
lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
1523
_LT_OUTPUT_LIBTOOL_INIT
1529
# This macro allows early generation of the libtool script (before
1530
# AC_OUTPUT is called), incase it is used in configure for compilation
1532
AC_DEFUN([LT_OUTPUT],
1533
[: ${CONFIG_LT=./config.lt}
1534
AC_MSG_NOTICE([creating $CONFIG_LT])
1535
cat >"$CONFIG_LT" <<_LTEOF
1537
# Generated by $as_me.
1538
# Run this file to recreate a libtool stub with the current configuration.
1541
SHELL=\${CONFIG_SHELL-$SHELL}
1544
cat >>"$CONFIG_LT" <<\_LTEOF
1548
exec AS_MESSAGE_FD>&1
1549
exec AS_MESSAGE_LOG_FD>>config.log
1552
AS_BOX([Running $as_me.])
1553
} >&AS_MESSAGE_LOG_FD
1556
\`$as_me' creates a local libtool stub from the current configuration,
1557
for use in further configure time tests before the real libtool is
1560
Usage: $[0] [[OPTIONS]]
1562
-h, --help print this help, then exit
1563
-V, --version print version number, then exit
1564
-q, --quiet do not print progress messages
1565
-d, --debug don't remove temporary files
1567
Report bugs to <bug-libtool@gnu.org>."
1570
m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
1571
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
1572
configured by $[0], generated by m4_PACKAGE_STRING.
1574
Copyright (C) 2008 Free Software Foundation, Inc.
1575
This config.lt script is free software; the Free Software Foundation
1576
gives unlimited permision to copy, distribute and modify it."
1578
while test $[#] != 0
1581
--version | --v* | -V )
1582
echo "$lt_cl_version"; exit 0 ;;
1583
--help | --h* | -h )
1584
echo "$lt_cl_help"; exit 0 ;;
1585
--debug | --d* | -d )
1587
--quiet | --q* | --silent | --s* | -q )
1590
-*) AC_MSG_ERROR([unrecognized option: $[1]
1591
Try \`$[0] --help' for more information.]) ;;
1593
*) AC_MSG_ERROR([unrecognized argument: $[1]
1594
Try \`$[0] --help' for more information.]) ;;
1599
if $lt_cl_silent; then
1600
exec AS_MESSAGE_FD>/dev/null
1604
cat >>"$CONFIG_LT" <<_LTEOF
1605
_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
1608
cat >>"$CONFIG_LT" <<\_LTEOF
1609
AC_MSG_NOTICE([creating $ofile])
1610
_LT_OUTPUT_LIBTOOL_COMMANDS
1613
chmod +x "$CONFIG_LT"
1615
# configure is writing to config.log, but config.lt does its own redirection,
1616
# appending to config.log, which fails on DOS, as config.log is still kept
1617
# open by configure. Here we exec the FD to /dev/null, effectively closing
1618
# config.log, so it can be properly (re)opened and appended to by config.lt.
1619
if test "$no_create" != yes; then
1621
test "$silent" = yes &&
1622
lt_config_lt_args="$lt_config_lt_args --quiet"
1623
exec AS_MESSAGE_LOG_FD>/dev/null
1624
$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
1625
exec AS_MESSAGE_LOG_FD>>config.log
1626
$lt_cl_success || AS_EXIT(1)
1633
# If TAG is the built-in tag, create an initial libtool script with a
1634
# default configuration from the untagged config vars. Otherwise add code
1635
# to config.status for appending the configuration named by TAG from the
1636
# matching tagged config vars.
1637
m4_defun([_LT_CONFIG],
1638
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1639
_LT_CONFIG_SAVE_COMMANDS([
1640
m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
1641
m4_if(_LT_TAG, [C], [
1642
# See if we are running on zsh, and set the options which allow our
1643
# commands through without removal of \ escapes.
1644
if test -n "${ZSH_VERSION+set}" ; then
1645
setopt NO_GLOB_SUBST
1649
trap "$RM \"$cfgfile\"; exit 1" 1 2 15
1652
cat <<_LT_EOF >> "$cfgfile"
1655
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
1656
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
1657
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1658
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
1663
# ### BEGIN LIBTOOL CONFIG
1664
_LT_LIBTOOL_CONFIG_VARS
1665
_LT_LIBTOOL_TAG_VARS
1666
# ### END LIBTOOL CONFIG
1672
cat <<\_LT_EOF >> "$cfgfile"
1673
# AIX sometimes has problems with the GCC collect2 program. For some
1674
# reason, if we set the COLLECT_NAMES environment variable, the problems
1675
# vanish in a puff of smoke.
1676
if test "X${COLLECT_NAMES+set}" != Xset; then
1678
export COLLECT_NAMES
1686
# We use sed instead of cat because bash on DJGPP gets confused if
1687
# if finds mixed CR/LF and LF-only lines. Since sed operates in
1688
# text mode, it properly converts lines to CR/LF. This bash problem
1689
# is reportedly fixed, but why not run on old versions too?
1690
sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
1691
|| (rm -f "$cfgfile"; exit 1)
1693
_LT_PROG_XSI_SHELLFNS
1695
sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
1696
|| (rm -f "$cfgfile"; exit 1)
1698
mv -f "$cfgfile" "$ofile" ||
1699
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
1702
[cat <<_LT_EOF >> "$ofile"
1704
dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
1705
dnl in a comment (ie after a #).
1706
# ### BEGIN LIBTOOL TAG CONFIG: $1
1707
_LT_LIBTOOL_TAG_VARS(_LT_TAG)
1708
# ### END LIBTOOL TAG CONFIG: $1
1715
TIMESTAMP='$TIMESTAMP'
1717
ofile='$ofile'], [])
1718
])dnl /_LT_CONFIG_SAVE_COMMANDS
1722
# LT_SUPPORTED_TAG(TAG)
1723
# ---------------------
1724
# Trace this macro to discover what tags are supported by the libtool
1725
# --tag option, using:
1726
# autoconf --trace 'LT_SUPPORTED_TAG:$1'
1727
AC_DEFUN([LT_SUPPORTED_TAG], [])
1730
# C support is built-in for now
1731
m4_define([_LT_LANG_C_enabled], [])
1732
m4_define([_LT_TAGS], [])
1737
# Enable libtool support for the given language if not already enabled.
1739
[AC_BEFORE([$0], [LT_OUTPUT])dnl
1742
[C++], [_LT_LANG(CXX)],
1743
[Java], [_LT_LANG(GCJ)],
1744
[Fortran 77], [_LT_LANG(F77)],
1745
[Fortran], [_LT_LANG(FC)],
1746
[Windows Resource], [_LT_LANG(RC)],
1747
[m4_ifdef([_LT_LANG_]$1[_CONFIG],
1749
[m4_fatal([$0: unsupported language: "$1"])])])dnl
1753
# _LT_LANG(LANGNAME)
1754
# ------------------
1755
m4_defun([_LT_LANG],
1756
[m4_ifdef([_LT_LANG_]$1[_enabled], [],
1757
[LT_SUPPORTED_TAG([$1])dnl
1758
m4_append([_LT_TAGS], [$1 ])dnl
1759
m4_define([_LT_LANG_]$1[_enabled], [])dnl
1760
_LT_LANG_$1_CONFIG($1)])dnl
1764
# _LT_LANG_DEFAULT_CONFIG
1765
# -----------------------
1766
m4_defun([_LT_LANG_DEFAULT_CONFIG],
1767
[AC_PROVIDE_IFELSE([AC_PROG_CXX],
1769
[m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
1771
AC_PROVIDE_IFELSE([AC_PROG_F77],
1773
[m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
1775
AC_PROVIDE_IFELSE([AC_PROG_FC],
1777
[m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
1779
dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
1780
dnl pulling things in needlessly.
1781
AC_PROVIDE_IFELSE([AC_PROG_GCJ],
1783
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
1785
[AC_PROVIDE_IFELSE([LT_PROG_GCJ],
1787
[m4_ifdef([AC_PROG_GCJ],
1788
[m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
1789
m4_ifdef([A][M_PROG_GCJ],
1790
[m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
1791
m4_ifdef([LT_PROG_GCJ],
1792
[m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
1794
AC_PROVIDE_IFELSE([LT_PROG_RC],
1796
[m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
1797
])# _LT_LANG_DEFAULT_CONFIG
1800
AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
1801
AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
1802
AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
1803
AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
1804
dnl aclocal-1.4 backwards compatibility:
1805
dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
1806
dnl AC_DEFUN([AC_LIBTOOL_F77], [])
1807
dnl AC_DEFUN([AC_LIBTOOL_FC], [])
1808
dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
1813
m4_defun([_LT_TAG_COMPILER],
1814
[AC_REQUIRE([AC_PROG_CC])dnl
1816
_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
1817
_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
1818
_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
1819
_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
1821
# If no C compiler was specified, use CC.
1824
# If no C compiler flags were specified, use CFLAGS.
1825
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1827
# Allow CC to be a program name with arguments.
1829
])# _LT_TAG_COMPILER
1832
# _LT_COMPILER_BOILERPLATE
1833
# ------------------------
1834
# Check for compiler boilerplate output or warnings with
1835
# the simple compiler test code.
1836
m4_defun([_LT_COMPILER_BOILERPLATE],
1837
[m4_require([_LT_DECL_SED])dnl
1838
ac_outfile=conftest.$ac_objext
1839
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
1840
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1841
_lt_compiler_boilerplate=`cat conftest.err`
1843
])# _LT_COMPILER_BOILERPLATE
1846
# _LT_LINKER_BOILERPLATE
1847
# ----------------------
1848
# Check for linker boilerplate output or warnings with
1849
# the simple link test code.
1850
m4_defun([_LT_LINKER_BOILERPLATE],
1851
[m4_require([_LT_DECL_SED])dnl
1852
ac_outfile=conftest.$ac_objext
1853
echo "$lt_simple_link_test_code" >conftest.$ac_ext
1854
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1855
_lt_linker_boilerplate=`cat conftest.err`
1857
])# _LT_LINKER_BOILERPLATE
1859
# _LT_REQUIRED_DARWIN_CHECKS
1860
# -------------------------
1861
m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
1863
rhapsody* | darwin*)
1864
AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
1865
AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
1866
AC_CHECK_TOOL([LIPO], [lipo], [:])
1867
AC_CHECK_TOOL([OTOOL], [otool], [:])
1868
AC_CHECK_TOOL([OTOOL64], [otool64], [:])
1869
_LT_DECL([], [DSYMUTIL], [1],
1870
[Tool to manipulate archived DWARF debug symbol files on Mac OS X])
1871
_LT_DECL([], [NMEDIT], [1],
1872
[Tool to change global to local symbols on Mac OS X])
1873
_LT_DECL([], [LIPO], [1],
1874
[Tool to manipulate fat objects and archives on Mac OS X])
1875
_LT_DECL([], [OTOOL], [1],
1876
[ldd/readelf like tool for Mach-O binaries on Mac OS X])
1877
_LT_DECL([], [OTOOL64], [1],
1878
[ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
1880
AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
1881
[lt_cv_apple_cc_single_mod=no
1882
if test -z "${LT_MULTI_MODULE}"; then
1883
# By default we will add the -single_module flag. You can override
1884
# by either setting the environment variable LT_MULTI_MODULE
1885
# non-empty at configure time, or by adding -multi_module to the
1887
rm -rf libconftest.dylib*
1888
echo "int foo(void){return 1;}" > conftest.c
1889
echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1890
-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
1891
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1892
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err
1894
if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
1895
lt_cv_apple_cc_single_mod=yes
1897
cat conftest.err >&AS_MESSAGE_LOG_FD
1899
rm -rf libconftest.dylib*
1902
AC_CACHE_CHECK([for -exported_symbols_list linker flag],
1903
[lt_cv_ld_exported_symbols_list],
1904
[lt_cv_ld_exported_symbols_list=no
1905
save_LDFLAGS=$LDFLAGS
1906
echo "_main" > conftest.sym
1907
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1908
AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
1909
[lt_cv_ld_exported_symbols_list=yes],
1910
[lt_cv_ld_exported_symbols_list=no])
1911
LDFLAGS="$save_LDFLAGS"
1914
rhapsody* | darwin1.[[012]])
1915
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
1917
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1918
darwin*) # darwin 5.x on
1919
# if running on 10.5 or later, the deployment target defaults
1920
# to the OS version, if on x86, and 10.4, the deployment
1921
# target defaults to 10.4. Don't you love it?
1922
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
1923
10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
1924
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1926
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1928
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1932
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
1933
_lt_dar_single_mod='$single_module'
1935
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
1936
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
1938
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
1940
if test "$DSYMUTIL" != ":"; then
1941
_lt_dsymutil='~$DSYMUTIL $lib || :'
1950
# _LT_DARWIN_LINKER_FEATURES
1951
# --------------------------
1952
# Checks for linker and compiler features on darwin
1953
m4_defun([_LT_DARWIN_LINKER_FEATURES],
1955
m4_require([_LT_REQUIRED_DARWIN_CHECKS])
1956
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
1957
_LT_TAGVAR(hardcode_direct, $1)=no
1958
_LT_TAGVAR(hardcode_automatic, $1)=yes
1959
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1960
_LT_TAGVAR(whole_archive_flag_spec, $1)=''
1961
_LT_TAGVAR(link_all_deplibs, $1)=yes
1962
_LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
1963
case $cc_basename in
1964
ifort*) _lt_dar_can_shared=yes ;;
1965
*) _lt_dar_can_shared=$GCC ;;
1967
if test "$_lt_dar_can_shared" = "yes"; then
1968
output_verbose_link_cmd=echo
1969
_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}"
1970
_LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1971
_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}"
1972
_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}"
1974
[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
1975
_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}"
1976
_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}"
1980
_LT_TAGVAR(ld_shlibs, $1)=no
1984
# _LT_SYS_MODULE_PATH_AIX
1985
# -----------------------
1986
# Links a minimal program and checks the executable
1987
# for the system default hardcoded library path. In most cases,
1988
# this is /usr/lib:/lib, but when the MPI compilers are used
1989
# the location of the communication and MPI libs are included too.
1990
# If we don't find anything, use the default library path according
1991
# to the aix ld manual.
1992
m4_defun([_LT_SYS_MODULE_PATH_AIX],
1993
[m4_require([_LT_DECL_SED])dnl
1994
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1995
lt_aix_libpath_sed='
1996
/Import File Strings/,/^$/ {
2002
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
2003
# Check for a 64-bit object if we didn't find anything.
2004
if test -z "$aix_libpath"; then
2005
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
2007
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
2008
])# _LT_SYS_MODULE_PATH_AIX
2011
# _LT_SHELL_INIT(ARG)
2012
# -------------------
2013
m4_define([_LT_SHELL_INIT],
2014
[ifdef([AC_DIVERSION_NOTICE],
2015
[AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
2016
[AC_DIVERT_PUSH(NOTICE)])
2022
# _LT_PROG_ECHO_BACKSLASH
2023
# -----------------------
2024
# Add some code to the start of the generated configure script which
2025
# will find an echo command which doesn't interpret backslashes.
2026
m4_defun([_LT_PROG_ECHO_BACKSLASH],
2028
# Check that we are running under the correct shell.
2029
SHELL=${CONFIG_SHELL-/bin/sh}
2033
# Remove one level of quotation (which was required for Make).
2034
ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
2038
ECHO=${lt_ECHO-echo}
2039
if test "X[$]1" = X--no-reexec; then
2040
# Discard the --no-reexec flag, and continue.
2042
elif test "X[$]1" = X--fallback-echo; then
2043
# Avoid inline document here, it may be left over
2045
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
2046
# Yippee, $ECHO works!
2049
# Restart under the correct shell.
2050
exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
2053
if test "X[$]1" = X--fallback-echo; then
2054
# used as fallback echo
2062
# The HP-UX ksh and POSIX shell print the target directory to stdout
2064
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
2066
if test -z "$lt_ECHO"; then
2067
if test "X${echo_test_string+set}" != Xset; then
2068
# find a string as large as possible, as long as the shell can cope with it
2069
for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
2070
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
2071
if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
2072
{ test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
2079
if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
2080
echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
2081
test "X$echo_testing_string" = "X$echo_test_string"; then
2084
# The Solaris, AIX, and Digital Unix default echo programs unquote
2085
# backslashes. This makes it impossible to quote backslashes using
2086
# echo "$something" | sed 's/\\/\\\\/g'
2088
# So, first we look for a working echo in the user's PATH.
2090
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2091
for dir in $PATH /usr/ucb; do
2093
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
2094
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
2095
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
2096
test "X$echo_testing_string" = "X$echo_test_string"; then
2103
if test "X$ECHO" = Xecho; then
2104
# We didn't find a better echo, so look for alternatives.
2105
if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
2106
echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
2107
test "X$echo_testing_string" = "X$echo_test_string"; then
2108
# This shell has a builtin print -r that does the trick.
2110
elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
2111
test "X$CONFIG_SHELL" != X/bin/ksh; then
2112
# If we have ksh, try running configure again with it.
2113
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
2114
export ORIGINAL_CONFIG_SHELL
2115
CONFIG_SHELL=/bin/ksh
2117
exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
2121
if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
2122
echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
2123
test "X$echo_testing_string" = "X$echo_test_string"; then
2124
# Cool, printf works
2126
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
2127
test "X$echo_testing_string" = 'X\t' &&
2128
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
2129
test "X$echo_testing_string" = "X$echo_test_string"; then
2130
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
2132
SHELL="$CONFIG_SHELL"
2134
ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
2135
elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
2136
test "X$echo_testing_string" = 'X\t' &&
2137
echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
2138
test "X$echo_testing_string" = "X$echo_test_string"; then
2139
ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
2141
# maybe with a smaller string...
2144
for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
2145
if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
2152
if test "$prev" != 'sed 50q "[$]0"'; then
2153
echo_test_string=`eval $prev`
2154
export echo_test_string
2155
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
2157
# Oops. We lost completely, so just stick with echo.
2166
# Copy echo and quote the copy suitably for passing to libtool from
2167
# the Makefile, instead of quoting the original, which is used later.
2169
if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
2170
lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
2175
_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
2176
_LT_DECL([], [ECHO], [1],
2177
[An echo program that does not interpret backslashes])
2178
])# _LT_PROG_ECHO_BACKSLASH
2183
m4_defun([_LT_ENABLE_LOCK],
2184
[AC_ARG_ENABLE([libtool-lock],
2185
[AS_HELP_STRING([--disable-libtool-lock],
2186
[avoid locking (might break parallel builds)])])
2187
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
2189
# Some flags need to be propagated to the compiler or linker for good
2193
# Find out which ABI we are using.
2194
echo 'int i;' > conftest.$ac_ext
2195
if AC_TRY_EVAL(ac_compile); then
2196
case `/usr/bin/file conftest.$ac_objext` in
2208
# Find out which ABI we are using.
2209
echo '[#]line __oline__ "configure"' > conftest.$ac_ext
2210
if AC_TRY_EVAL(ac_compile); then
2211
if test "$lt_cv_prog_gnu_ld" = yes; then
2212
case `/usr/bin/file conftest.$ac_objext` in
2214
LD="${LD-ld} -melf32bsmip"
2217
LD="${LD-ld} -melf32bmipn32"
2220
LD="${LD-ld} -melf64bmip"
2224
case `/usr/bin/file conftest.$ac_objext` in
2240
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
2241
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
2242
# Find out which ABI we are using.
2243
echo 'int i;' > conftest.$ac_ext
2244
if AC_TRY_EVAL(ac_compile); then
2245
case `/usr/bin/file conftest.o` in
2248
x86_64-*kfreebsd*-gnu)
2249
LD="${LD-ld} -m elf_i386_fbsd"
2252
LD="${LD-ld} -m elf_i386"
2254
ppc64-*linux*|powerpc64-*linux*)
2255
LD="${LD-ld} -m elf32ppclinux"
2258
LD="${LD-ld} -m elf_s390"
2261
LD="${LD-ld} -m elf32_sparc"
2267
x86_64-*kfreebsd*-gnu)
2268
LD="${LD-ld} -m elf_x86_64_fbsd"
2271
LD="${LD-ld} -m elf_x86_64"
2273
ppc*-*linux*|powerpc*-*linux*)
2274
LD="${LD-ld} -m elf64ppc"
2276
s390*-*linux*|s390*-*tpf*)
2277
LD="${LD-ld} -m elf64_s390"
2280
LD="${LD-ld} -m elf64_sparc"
2290
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
2291
SAVE_CFLAGS="$CFLAGS"
2292
CFLAGS="$CFLAGS -belf"
2293
AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
2295
AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
2297
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2298
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2299
CFLAGS="$SAVE_CFLAGS"
2303
# Find out which ABI we are using.
2304
echo 'int i;' > conftest.$ac_ext
2305
if AC_TRY_EVAL(ac_compile); then
2306
case `/usr/bin/file conftest.o` in
2308
case $lt_cv_prog_gnu_ld in
2309
yes*) LD="${LD-ld} -m elf64_sparc" ;;
2311
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
2323
need_locks="$enable_libtool_lock"
2327
# _LT_CMD_OLD_ARCHIVE
2328
# -------------------
2329
m4_defun([_LT_CMD_OLD_ARCHIVE],
2330
[AC_CHECK_TOOL(AR, ar, false)
2331
test -z "$AR" && AR=ar
2332
test -z "$AR_FLAGS" && AR_FLAGS=cru
2333
_LT_DECL([], [AR], [1], [The archiver])
2334
_LT_DECL([], [AR_FLAGS], [1])
2336
AC_CHECK_TOOL(STRIP, strip, :)
2337
test -z "$STRIP" && STRIP=:
2338
_LT_DECL([], [STRIP], [1], [A symbol stripping program])
2340
AC_CHECK_TOOL(RANLIB, ranlib, :)
2341
test -z "$RANLIB" && RANLIB=:
2342
_LT_DECL([], [RANLIB], [1],
2343
[Commands used to install an old-style archive])
2345
# Determine commands to create old-style static archives.
2346
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
2347
old_postinstall_cmds='chmod 644 $oldlib'
2348
old_postuninstall_cmds=
2350
if test -n "$RANLIB"; then
2353
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
2356
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
2359
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
2361
_LT_DECL([], [old_postinstall_cmds], [2])
2362
_LT_DECL([], [old_postuninstall_cmds], [2])
2363
_LT_TAGDECL([], [old_archive_cmds], [2],
2364
[Commands used to build an old-style archive])
2365
])# _LT_CMD_OLD_ARCHIVE
2368
# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2369
# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
2370
# ----------------------------------------------------------------
2371
# Check whether the given compiler option works
2372
AC_DEFUN([_LT_COMPILER_OPTION],
2373
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2374
m4_require([_LT_DECL_SED])dnl
2375
AC_CACHE_CHECK([$1], [$2],
2377
m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
2378
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
2379
lt_compiler_flag="$3"
2380
# Insert the option either (1) after the last *FLAGS variable, or
2381
# (2) before a word containing "conftest.", or (3) at the end.
2382
# Note that $ac_compile itself does not contain backslashes and begins
2383
# with a dollar sign (not a hyphen), so the echo should work correctly.
2384
# The option is referenced via a variable to avoid confusing sed.
2385
lt_compile=`echo "$ac_compile" | $SED \
2386
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2387
-e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2388
-e 's:$: $lt_compiler_flag:'`
2389
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2390
(eval "$lt_compile" 2>conftest.err)
2392
cat conftest.err >&AS_MESSAGE_LOG_FD
2393
echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2394
if (exit $ac_status) && test -s "$ac_outfile"; then
2395
# The compiler can only warn and ignore the option if not recognized
2396
# So say no if there are warnings other than the usual output.
2397
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
2398
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
2399
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
2406
if test x"[$]$2" = xyes; then
2407
m4_if([$5], , :, [$5])
2409
m4_if([$6], , :, [$6])
2411
])# _LT_COMPILER_OPTION
2414
AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
2415
dnl aclocal-1.4 backwards compatibility:
2416
dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
2419
# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2420
# [ACTION-SUCCESS], [ACTION-FAILURE])
2421
# ----------------------------------------------------
2422
# Check whether the given linker option works
2423
AC_DEFUN([_LT_LINKER_OPTION],
2424
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2425
m4_require([_LT_DECL_SED])dnl
2426
AC_CACHE_CHECK([$1], [$2],
2428
save_LDFLAGS="$LDFLAGS"
2429
LDFLAGS="$LDFLAGS $3"
2430
echo "$lt_simple_link_test_code" > conftest.$ac_ext
2431
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
2432
# The linker can only warn and ignore the option if not recognized
2433
# So say no if there are warnings
2434
if test -s conftest.err; then
2435
# Append any errors to the config.log.
2436
cat conftest.err 1>&AS_MESSAGE_LOG_FD
2437
$ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
2438
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
2439
if diff conftest.exp conftest.er2 >/dev/null; then
2447
LDFLAGS="$save_LDFLAGS"
2450
if test x"[$]$2" = xyes; then
2451
m4_if([$4], , :, [$4])
2453
m4_if([$5], , :, [$5])
2455
])# _LT_LINKER_OPTION
2458
AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
2459
dnl aclocal-1.4 backwards compatibility:
2460
dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
2465
AC_DEFUN([LT_CMD_MAX_LEN],
2466
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
2467
# find the maximum length of command line arguments
2468
AC_MSG_CHECKING([the maximum length of command line arguments])
2469
AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
2475
# On DJGPP, this test can blow up pretty badly due to problems in libc
2476
# (any single argument exceeding 2000 bytes causes a buffer overrun
2477
# during glob expansion). Even if it were fixed, the result of this
2478
# check would be larger than it should be.
2479
lt_cv_sys_max_cmd_len=12288; # 12K is about right
2483
# Under GNU Hurd, this test is not required because there is
2484
# no limit to the length of command line arguments.
2485
# Libtool will interpret -1 as no limit whatsoever
2486
lt_cv_sys_max_cmd_len=-1;
2489
cygwin* | mingw* | cegcc*)
2490
# On Win9x/ME, this test blows up -- it succeeds, but takes
2491
# about 5 minutes as the teststring grows exponentially.
2492
# Worse, since 9x/ME are not pre-emptively multitasking,
2493
# you end up with a "frozen" computer, even though with patience
2494
# the test eventually succeeds (with a max line length of 256k).
2495
# Instead, let's just punt: use the minimum linelength reported by
2496
# all of the supported platforms: 8192 (on NT/2K/XP).
2497
lt_cv_sys_max_cmd_len=8192;
2501
# On AmigaOS with pdksh, this test takes hours, literally.
2502
# So we just punt and use a minimum line length of 8192.
2503
lt_cv_sys_max_cmd_len=8192;
2506
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
2507
# This has been around since 386BSD, at least. Likely further.
2508
if test -x /sbin/sysctl; then
2509
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
2510
elif test -x /usr/sbin/sysctl; then
2511
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
2513
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
2515
# And add a safety zone
2516
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
2517
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
2521
# We know the value 262144 and hardcode it with a safety zone (like BSD)
2522
lt_cv_sys_max_cmd_len=196608
2526
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
2527
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
2528
# nice to cause kernel panics so lets avoid the loop below.
2529
# First set a reasonable default.
2530
lt_cv_sys_max_cmd_len=16384
2532
if test -x /sbin/sysconfig; then
2533
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
2534
*1*) lt_cv_sys_max_cmd_len=-1 ;;
2539
lt_cv_sys_max_cmd_len=102400
2541
sysv5* | sco5v6* | sysv4.2uw2*)
2542
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
2543
if test -n "$kargmax"; then
2544
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
2546
lt_cv_sys_max_cmd_len=32768
2550
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
2551
if test -n "$lt_cv_sys_max_cmd_len"; then
2552
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
2553
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
2555
# Make teststring a little bigger before we do anything with it.
2556
# a 1K string should be a reasonable start.
2557
for i in 1 2 3 4 5 6 7 8 ; do
2558
teststring=$teststring$teststring
2560
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
2561
# If test is not a shell built-in, we'll probably end up computing a
2562
# maximum length that is only half of the actual maximum length, but
2564
while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
2565
= "XX$teststring$teststring"; } >/dev/null 2>&1 &&
2566
test $i != 17 # 1/2 MB should be enough
2569
teststring=$teststring$teststring
2571
# Only check the string length outside the loop.
2572
lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
2574
# Add a significant safety factor because C++ compilers can tack on
2575
# massive amounts of additional arguments before passing them to the
2576
# linker. It appears as though 1/2 is a usable value.
2577
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
2582
if test -n $lt_cv_sys_max_cmd_len ; then
2583
AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
2587
max_cmd_len=$lt_cv_sys_max_cmd_len
2588
_LT_DECL([], [max_cmd_len], [0],
2589
[What is the maximum length of a command?])
2593
AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
2594
dnl aclocal-1.4 backwards compatibility:
2595
dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
2600
m4_defun([_LT_HEADER_DLFCN],
2601
[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
2602
])# _LT_HEADER_DLFCN
2605
# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
2606
# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
2607
# ----------------------------------------------------------------
2608
m4_defun([_LT_TRY_DLOPEN_SELF],
2609
[m4_require([_LT_HEADER_DLFCN])dnl
2610
if test "$cross_compiling" = yes; then :
2613
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
2614
lt_status=$lt_dlunknown
2615
cat > conftest.$ac_ext <<_LT_EOF
2616
[#line __oline__ "configure"
2617
#include "confdefs.h"
2626
# define LT_DLGLOBAL RTLD_GLOBAL
2629
# define LT_DLGLOBAL DL_GLOBAL
2631
# define LT_DLGLOBAL 0
2635
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
2636
find out it does not work in some platform. */
2637
#ifndef LT_DLLAZY_OR_NOW
2639
# define LT_DLLAZY_OR_NOW RTLD_LAZY
2642
# define LT_DLLAZY_OR_NOW DL_LAZY
2645
# define LT_DLLAZY_OR_NOW RTLD_NOW
2648
# define LT_DLLAZY_OR_NOW DL_NOW
2650
# define LT_DLLAZY_OR_NOW 0
2657
void fnord() { int i=42;}
2660
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
2661
int status = $lt_dlunknown;
2665
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
2666
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
2667
/* dlclose (self); */
2675
if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
2676
(./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
2679
x$lt_dlno_uscore) $1 ;;
2680
x$lt_dlneed_uscore) $2 ;;
2681
x$lt_dlunknown|x*) $3 ;;
2684
# compilation failed
2689
])# _LT_TRY_DLOPEN_SELF
2692
# LT_SYS_DLOPEN_SELF
2693
# ------------------
2694
AC_DEFUN([LT_SYS_DLOPEN_SELF],
2695
[m4_require([_LT_HEADER_DLFCN])dnl
2696
if test "x$enable_dlopen" != xyes; then
2697
enable_dlopen=unknown
2698
enable_dlopen_self=unknown
2699
enable_dlopen_self_static=unknown
2706
lt_cv_dlopen="load_add_on"
2708
lt_cv_dlopen_self=yes
2711
mingw* | pw32* | cegcc*)
2712
lt_cv_dlopen="LoadLibrary"
2717
lt_cv_dlopen="dlopen"
2722
# if libdl is installed we need to link against it
2723
AC_CHECK_LIB([dl], [dlopen],
2724
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
2727
lt_cv_dlopen_self=yes
2732
AC_CHECK_FUNC([shl_load],
2733
[lt_cv_dlopen="shl_load"],
2734
[AC_CHECK_LIB([dld], [shl_load],
2735
[lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
2736
[AC_CHECK_FUNC([dlopen],
2737
[lt_cv_dlopen="dlopen"],
2738
[AC_CHECK_LIB([dl], [dlopen],
2739
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
2740
[AC_CHECK_LIB([svld], [dlopen],
2741
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
2742
[AC_CHECK_LIB([dld], [dld_link],
2743
[lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
2752
if test "x$lt_cv_dlopen" != xno; then
2758
case $lt_cv_dlopen in
2760
save_CPPFLAGS="$CPPFLAGS"
2761
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
2763
save_LDFLAGS="$LDFLAGS"
2764
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
2767
LIBS="$lt_cv_dlopen_libs $LIBS"
2769
AC_CACHE_CHECK([whether a program can dlopen itself],
2770
lt_cv_dlopen_self, [dnl
2771
_LT_TRY_DLOPEN_SELF(
2772
lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
2773
lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
2776
if test "x$lt_cv_dlopen_self" = xyes; then
2777
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
2778
AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
2779
lt_cv_dlopen_self_static, [dnl
2780
_LT_TRY_DLOPEN_SELF(
2781
lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
2782
lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
2786
CPPFLAGS="$save_CPPFLAGS"
2787
LDFLAGS="$save_LDFLAGS"
2792
case $lt_cv_dlopen_self in
2793
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
2794
*) enable_dlopen_self=unknown ;;
2797
case $lt_cv_dlopen_self_static in
2798
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
2799
*) enable_dlopen_self_static=unknown ;;
2802
_LT_DECL([dlopen_support], [enable_dlopen], [0],
2803
[Whether dlopen is supported])
2804
_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
2805
[Whether dlopen of programs is supported])
2806
_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
2807
[Whether dlopen of statically linked programs is supported])
2808
])# LT_SYS_DLOPEN_SELF
2811
AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
2812
dnl aclocal-1.4 backwards compatibility:
2813
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
2816
# _LT_COMPILER_C_O([TAGNAME])
2817
# ---------------------------
2818
# Check to see if options -c and -o are simultaneously supported by compiler.
2819
# This macro does not hard code the compiler like AC_PROG_CC_C_O.
2820
m4_defun([_LT_COMPILER_C_O],
2821
[m4_require([_LT_DECL_SED])dnl
2822
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2823
m4_require([_LT_TAG_COMPILER])dnl
2824
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
2825
[_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
2826
[_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
2827
$RM -r conftest 2>/dev/null
2831
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
2833
lt_compiler_flag="-o out/conftest2.$ac_objext"
2834
# Insert the option either (1) after the last *FLAGS variable, or
2835
# (2) before a word containing "conftest.", or (3) at the end.
2836
# Note that $ac_compile itself does not contain backslashes and begins
2837
# with a dollar sign (not a hyphen), so the echo should work correctly.
2838
lt_compile=`echo "$ac_compile" | $SED \
2839
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2840
-e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2841
-e 's:$: $lt_compiler_flag:'`
2842
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2843
(eval "$lt_compile" 2>out/conftest.err)
2845
cat out/conftest.err >&AS_MESSAGE_LOG_FD
2846
echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2847
if (exit $ac_status) && test -s out/conftest2.$ac_objext
2849
# The compiler can only warn and ignore the option if not recognized
2850
# So say no if there are warnings
2851
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
2852
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
2853
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
2854
_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
2857
chmod u+w . 2>&AS_MESSAGE_LOG_FD
2859
# SGI C++ compiler will create directory out/ii_files/ for
2860
# template instantiation
2861
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
2862
$RM out/* && rmdir out
2867
_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
2868
[Does compiler simultaneously support -c and -o options?])
2869
])# _LT_COMPILER_C_O
2872
# _LT_COMPILER_FILE_LOCKS([TAGNAME])
2873
# ----------------------------------
2874
# Check to see if we can do hard links to lock some files if needed
2875
m4_defun([_LT_COMPILER_FILE_LOCKS],
2876
[m4_require([_LT_ENABLE_LOCK])dnl
2877
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2878
_LT_COMPILER_C_O([$1])
2880
hard_links="nottested"
2881
if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
2882
# do not overwrite the value of need_locks provided by the user
2883
AC_MSG_CHECKING([if we can lock with hard links])
2886
ln conftest.a conftest.b 2>/dev/null && hard_links=no
2888
ln conftest.a conftest.b 2>&5 || hard_links=no
2889
ln conftest.a conftest.b 2>/dev/null && hard_links=no
2890
AC_MSG_RESULT([$hard_links])
2891
if test "$hard_links" = no; then
2892
AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
2898
_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
2899
])# _LT_COMPILER_FILE_LOCKS
2904
m4_defun([_LT_CHECK_OBJDIR],
2905
[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
2906
[rm -f .libs 2>/dev/null
2907
mkdir .libs 2>/dev/null
2908
if test -d .libs; then
2911
# MS-DOS does not allow filenames that begin with a dot.
2914
rmdir .libs 2>/dev/null])
2915
objdir=$lt_cv_objdir
2916
_LT_DECL([], [objdir], [0],
2917
[The name of the directory that contains temporary libtool files])dnl
2918
m4_pattern_allow([LT_OBJDIR])dnl
2919
AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
2920
[Define to the sub-directory in which libtool stores uninstalled libraries.])
2921
])# _LT_CHECK_OBJDIR
2924
# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
2925
# --------------------------------------
2926
# Check hardcoding attributes.
2927
m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
2928
[AC_MSG_CHECKING([how to hardcode library paths into programs])
2929
_LT_TAGVAR(hardcode_action, $1)=
2930
if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
2931
test -n "$_LT_TAGVAR(runpath_var, $1)" ||
2932
test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
2934
# We can hardcode non-existent directories.
2935
if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
2936
# If the only mechanism to avoid hardcoding is shlibpath_var, we
2937
# have to relink, otherwise we might link with an installed library
2938
# when we should be linking with a yet-to-be-installed one
2939
## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
2940
test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
2941
# Linking always hardcodes the temporary library directory.
2942
_LT_TAGVAR(hardcode_action, $1)=relink
2944
# We can link without hardcoding, and we can hardcode nonexisting dirs.
2945
_LT_TAGVAR(hardcode_action, $1)=immediate
2948
# We cannot hardcode anything, or else we can only hardcode existing
2950
_LT_TAGVAR(hardcode_action, $1)=unsupported
2952
AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
2954
if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
2955
test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
2956
# Fast installation is not supported
2957
enable_fast_install=no
2958
elif test "$shlibpath_overrides_runpath" = yes ||
2959
test "$enable_shared" = no; then
2960
# Fast installation is not necessary
2961
enable_fast_install=needless
2963
_LT_TAGDECL([], [hardcode_action], [0],
2964
[How to hardcode a shared library path into an executable])
2965
])# _LT_LINKER_HARDCODE_LIBPATH
2970
m4_defun([_LT_CMD_STRIPLIB],
2971
[m4_require([_LT_DECL_EGREP])
2974
AC_MSG_CHECKING([whether stripping libraries is possible])
2975
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
2976
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
2977
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2978
AC_MSG_RESULT([yes])
2980
# FIXME - insert some real tests, host_os isn't really good enough
2983
if test -n "$STRIP" ; then
2984
striplib="$STRIP -x"
2985
old_striplib="$STRIP -S"
2986
AC_MSG_RESULT([yes])
2996
_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
2997
_LT_DECL([], [striplib], [1])
2998
])# _LT_CMD_STRIPLIB
3001
# _LT_SYS_DYNAMIC_LINKER([TAG])
3002
# -----------------------------
3003
# PORTME Fill in your ld.so characteristics
3004
m4_defun([_LT_SYS_DYNAMIC_LINKER],
3005
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3006
m4_require([_LT_DECL_EGREP])dnl
3007
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
3008
m4_require([_LT_DECL_OBJDUMP])dnl
3009
m4_require([_LT_DECL_SED])dnl
3010
AC_MSG_CHECKING([dynamic linker characteristics])
3013
if test "$GCC" = yes; then
3015
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
3016
*) lt_awk_arg="/^libraries:/" ;;
3018
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
3019
if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
3020
# if the path contains ";" then we assume it to be the separator
3021
# otherwise default to the standard path separator (i.e. ":") - it is
3022
# assumed that no part of a normal pathname contains ";" but that should
3023
# okay in the real world where ";" in dirpaths is itself problematic.
3024
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
3026
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
3028
# Ok, now we have the path, separated by spaces, we can step through it
3029
# and add multilib dir if necessary.
3030
lt_tmp_lt_search_path_spec=
3031
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
3032
for lt_sys_path in $lt_search_path_spec; do
3033
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
3034
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
3036
test -d "$lt_sys_path" && \
3037
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
3040
lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
3041
BEGIN {RS=" "; FS="/|\n";} {
3044
for (lt_i = NF; lt_i > 0; lt_i--) {
3045
if ($lt_i != "" && $lt_i != ".") {
3046
if ($lt_i == "..") {
3049
if (lt_count == 0) {
3050
lt_foo="/" $lt_i lt_foo;
3057
if (lt_foo != "") { lt_freq[[lt_foo]]++; }
3058
if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
3060
sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
3062
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
3065
libname_spec='lib$name'
3073
shlibpath_overrides_runpath=unknown
3075
dynamic_linker="$host_os ld.so"
3076
sys_lib_dlsearch_path_spec="/lib /usr/lib"
3077
need_lib_prefix=unknown
3078
hardcode_into_libs=no
3080
# when you set need_version to no, make sure it does not cause -set_version
3081
# flags to be left without arguments
3082
need_version=unknown
3087
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
3088
shlibpath_var=LIBPATH
3090
# AIX 3 has no versioning support, so we append a major version to the name.
3091
soname_spec='${libname}${release}${shared_ext}$major'
3098
hardcode_into_libs=yes
3099
if test "$host_cpu" = ia64; then
3100
# AIX 5 supports IA64
3101
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
3102
shlibpath_var=LD_LIBRARY_PATH
3104
# With GCC up to 2.95.x, collect2 would create an import file
3105
# for dependence libraries. The import file would start with
3106
# the line `#! .'. This would cause the generated library to
3107
# depend on `.', always an invalid library. This was fixed in
3108
# development snapshots of GCC prior to 3.0.
3110
aix4 | aix4.[[01]] | aix4.[[01]].*)
3111
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
3113
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
3120
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
3121
# soname into executable. Probably we can add versioning support to
3122
# collect2, so additional links can be useful in future.
3123
if test "$aix_use_runtimelinking" = yes; then
3124
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
3125
# instead of lib<name>.a to let people know that these are not
3126
# typical AIX shared libraries.
3127
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3129
# We preserve .a as extension for shared libraries through AIX4.2
3130
# and later when we are not doing run time linking.
3131
library_names_spec='${libname}${release}.a $libname.a'
3132
soname_spec='${libname}${release}${shared_ext}$major'
3134
shlibpath_var=LIBPATH
3141
# Since July 2007 AmigaOS4 officially supports .so libraries.
3142
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
3143
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3146
library_names_spec='$libname.ixlibrary $libname.a'
3147
# Create ${libname}_ixlibrary.a entries in /sys/libs.
3148
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'
3154
library_names_spec='${libname}${shared_ext}'
3155
dynamic_linker="$host_os ld.so"
3156
shlibpath_var=LIBRARY_PATH
3162
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3163
soname_spec='${libname}${release}${shared_ext}$major'
3164
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
3165
shlibpath_var=LD_LIBRARY_PATH
3166
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
3167
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
3168
# the default ld.so.conf also contains /usr/contrib/lib and
3169
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
3170
# libtool to hard-code these into programs
3173
cygwin* | mingw* | pw32* | cegcc*)
3174
version_type=windows
3179
case $GCC,$host_os in
3180
yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
3181
library_names_spec='$libname.dll.a'
3182
# DLL is installed to $(libdir)/../bin by postinstall_cmds
3183
postinstall_cmds='base_file=`basename \${file}`~
3184
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
3185
dldir=$destdir/`dirname \$dlpath`~
3186
test -d \$dldir || mkdir -p \$dldir~
3187
$install_prog $dir/$dlname \$dldir/$dlname~
3188
chmod a+x \$dldir/$dlname~
3189
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
3190
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
3192
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
3193
dlpath=$dir/\$dldll~
3195
shlibpath_overrides_runpath=yes
3199
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
3200
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3201
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
3204
# MinGW DLLs use traditional 'lib' prefix
3205
soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3206
sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
3207
if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
3208
# It is most probably a Windows format PATH printed by
3209
# mingw gcc, but we are running on Cygwin. Gcc prints its search
3210
# path with ; separators, and with drive letters. We can handle the
3211
# drive letters (cygwin fileutils understands them), so leave them,
3212
# especially as we might pass files found there to a mingw objdump,
3213
# which wouldn't understand a cygwinified path. Ahh.
3214
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
3216
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
3220
# pw32 DLLs use 'pw' prefix rather than 'lib'
3221
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3227
library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
3230
dynamic_linker='Win32 ld.exe'
3231
# FIXME: first we should search . and the directory the executable is in
3235
darwin* | rhapsody*)
3236
dynamic_linker="$host_os dyld"
3240
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
3241
soname_spec='${libname}${release}${major}$shared_ext'
3242
shlibpath_overrides_runpath=yes
3243
shlibpath_var=DYLD_LIBRARY_PATH
3244
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
3246
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
3247
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
3254
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
3255
soname_spec='${libname}${release}${shared_ext}$major'
3256
shlibpath_var=LD_LIBRARY_PATH
3263
freebsd* | dragonfly*)
3264
# DragonFly does not have aout. When/if they implement a new
3265
# versioning mechanism, adjust this.
3266
if test -x /usr/bin/objformat; then
3267
objformat=`/usr/bin/objformat`
3270
freebsd[[123]]*) objformat=aout ;;
3274
version_type=freebsd-$objformat
3275
case $version_type in
3277
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
3282
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
3286
shlibpath_var=LD_LIBRARY_PATH
3289
shlibpath_overrides_runpath=yes
3291
freebsd3.[[01]]* | freebsdelf3.[[01]]*)
3292
shlibpath_overrides_runpath=yes
3293
hardcode_into_libs=yes
3295
freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
3296
freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
3297
shlibpath_overrides_runpath=no
3298
hardcode_into_libs=yes
3300
*) # from 4.6 on, and DragonFly
3301
shlibpath_overrides_runpath=yes
3302
hardcode_into_libs=yes
3311
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
3312
soname_spec='${libname}${release}${shared_ext}$major'
3313
shlibpath_var=LD_LIBRARY_PATH
3314
hardcode_into_libs=yes
3317
hpux9* | hpux10* | hpux11*)
3318
# Give a soname corresponding to the major version so that dld.sl refuses to
3319
# link against other versions.
3326
hardcode_into_libs=yes
3327
dynamic_linker="$host_os dld.so"
3328
shlibpath_var=LD_LIBRARY_PATH
3329
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
3330
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3331
soname_spec='${libname}${release}${shared_ext}$major'
3332
if test "X$HPUX_IA64_MODE" = X32; then
3333
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
3335
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
3337
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
3341
hardcode_into_libs=yes
3342
dynamic_linker="$host_os dld.sl"
3343
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
3344
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
3345
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3346
soname_spec='${libname}${release}${shared_ext}$major'
3347
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
3348
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
3352
dynamic_linker="$host_os dld.sl"
3353
shlibpath_var=SHLIB_PATH
3354
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
3355
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3356
soname_spec='${libname}${release}${shared_ext}$major'
3359
# HP-UX runs *really* slowly unless shared libraries are mode 555.
3360
postinstall_cmds='chmod 555 $lib'
3367
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3368
soname_spec='${libname}${release}${shared_ext}$major'
3369
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
3370
shlibpath_var=LD_LIBRARY_PATH
3371
shlibpath_overrides_runpath=no
3372
hardcode_into_libs=yes
3375
irix5* | irix6* | nonstopux*)
3377
nonstopux*) version_type=nonstopux ;;
3379
if test "$lt_cv_prog_gnu_ld" = yes; then
3387
soname_spec='${libname}${release}${shared_ext}$major'
3388
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
3390
irix5* | nonstopux*)
3394
case $LD in # libtool.m4 will add one of these switches to LD
3395
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
3396
libsuff= shlibsuff= libmagic=32-bit;;
3397
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
3398
libsuff=32 shlibsuff=N32 libmagic=N32;;
3399
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
3400
libsuff=64 shlibsuff=64 libmagic=64-bit;;
3401
*) libsuff= shlibsuff= libmagic=never-match;;
3405
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
3406
shlibpath_overrides_runpath=no
3407
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
3408
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
3409
hardcode_into_libs=yes
3412
# No shared lib support for Linux oldld, aout, or coff.
3413
linux*oldld* | linux*aout* | linux*coff*)
3417
# This must be Linux ELF.
3418
linux* | k*bsd*-gnu)
3422
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3423
soname_spec='${libname}${release}${shared_ext}$major'
3424
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
3425
shlibpath_var=LD_LIBRARY_PATH
3426
shlibpath_overrides_runpath=no
3427
# Some binutils ld are patched to set DT_RUNPATH
3428
save_LDFLAGS=$LDFLAGS
3430
eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
3431
LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
3432
AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
3433
[AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
3434
[shlibpath_overrides_runpath=yes])])
3435
LDFLAGS=$save_LDFLAGS
3438
# This implies no fast_install, which is unacceptable.
3439
# Some rework will be needed to allow for fast_install
3440
# before this can be enabled.
3441
hardcode_into_libs=yes
3443
# Add ABI-specific directories to the system library path.
3444
sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
3446
# Append ld.so.conf contents to the search path
3447
if test -f /etc/ld.so.conf; then
3448
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' ' '`
3449
sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
3452
# We used to test for /lib/ld.so.1 and disable shared libraries on
3453
# powerpc, because MkLinux only supported shared libraries with the
3454
# GNU dynamic linker. Since this was broken with cross compilers,
3455
# most powerpc-linux boxes support dynamic linking these days and
3456
# people can always --disable-shared, the test was removed, and we
3457
# assume the GNU/Linux dynamic linker is in use.
3458
dynamic_linker='GNU/Linux ld.so'
3465
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
3466
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3467
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3468
dynamic_linker='NetBSD (a.out) ld.so'
3470
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3471
soname_spec='${libname}${release}${shared_ext}$major'
3472
dynamic_linker='NetBSD ld.elf_so'
3474
shlibpath_var=LD_LIBRARY_PATH
3475
shlibpath_overrides_runpath=yes
3476
hardcode_into_libs=yes
3481
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3482
shlibpath_var=LD_LIBRARY_PATH
3483
shlibpath_overrides_runpath=yes
3490
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3491
soname_spec='${libname}${release}${shared_ext}$major'
3492
shlibpath_var=LD_LIBRARY_PATH
3493
shlibpath_overrides_runpath=no
3494
hardcode_into_libs=yes
3495
dynamic_linker='ldqnx.so'
3500
sys_lib_dlsearch_path_spec="/usr/lib"
3502
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
3504
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
3505
*) need_version=no ;;
3507
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3508
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3509
shlibpath_var=LD_LIBRARY_PATH
3510
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3512
openbsd2.[[89]] | openbsd2.[[89]].*)
3513
shlibpath_overrides_runpath=no
3516
shlibpath_overrides_runpath=yes
3520
shlibpath_overrides_runpath=yes
3525
libname_spec='$name'
3528
library_names_spec='$libname${shared_ext} $libname.a'
3529
dynamic_linker='OS/2 ld.exe'
3530
shlibpath_var=LIBPATH
3533
osf3* | osf4* | osf5*)
3537
soname_spec='${libname}${release}${shared_ext}$major'
3538
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3539
shlibpath_var=LD_LIBRARY_PATH
3540
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
3541
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
3552
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3553
soname_spec='${libname}${release}${shared_ext}$major'
3554
shlibpath_var=LD_LIBRARY_PATH
3555
shlibpath_overrides_runpath=yes
3556
hardcode_into_libs=yes
3557
# ldd complains unless libraries are executable
3558
postinstall_cmds='chmod +x $lib'
3563
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3564
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
3565
shlibpath_var=LD_LIBRARY_PATH
3566
shlibpath_overrides_runpath=yes
3567
if test "$with_gnu_ld" = yes; then
3575
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3576
soname_spec='${libname}${release}${shared_ext}$major'
3577
shlibpath_var=LD_LIBRARY_PATH
3578
case $host_vendor in
3580
shlibpath_overrides_runpath=no
3582
runpath_var=LD_RUN_PATH
3590
shlibpath_overrides_runpath=no
3591
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
3597
if test -d /usr/nec ;then
3599
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
3600
soname_spec='$libname${shared_ext}.$major'
3601
shlibpath_var=LD_LIBRARY_PATH
3605
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3606
version_type=freebsd-elf
3609
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
3610
soname_spec='${libname}${release}${shared_ext}$major'
3611
shlibpath_var=LD_LIBRARY_PATH
3612
shlibpath_overrides_runpath=yes
3613
hardcode_into_libs=yes
3614
if test "$with_gnu_ld" = yes; then
3615
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
3617
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
3620
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
3624
sys_lib_dlsearch_path_spec='/usr/lib'
3628
# TPF is a cross-target only. Preferred cross-host = GNU/Linux.
3632
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3633
shlibpath_var=LD_LIBRARY_PATH
3634
shlibpath_overrides_runpath=no
3635
hardcode_into_libs=yes
3640
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3641
soname_spec='${libname}${release}${shared_ext}$major'
3642
shlibpath_var=LD_LIBRARY_PATH
3649
AC_MSG_RESULT([$dynamic_linker])
3650
test "$dynamic_linker" = no && can_build_shared=no
3652
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
3653
if test "$GCC" = yes; then
3654
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
3657
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
3658
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
3660
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
3661
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
3664
_LT_DECL([], [variables_saved_for_relink], [1],
3665
[Variables whose values should be saved in libtool wrapper scripts and
3666
restored at link time])
3667
_LT_DECL([], [need_lib_prefix], [0],
3668
[Do we need the "lib" prefix for modules?])
3669
_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
3670
_LT_DECL([], [version_type], [0], [Library versioning type])
3671
_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
3672
_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
3673
_LT_DECL([], [shlibpath_overrides_runpath], [0],
3674
[Is shlibpath searched before the hard-coded library search path?])
3675
_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
3676
_LT_DECL([], [library_names_spec], [1],
3677
[[List of archive names. First name is the real one, the rest are links.
3678
The last name is the one that the linker finds with -lNAME]])
3679
_LT_DECL([], [soname_spec], [1],
3680
[[The coded name of the library, if different from the real name]])
3681
_LT_DECL([], [postinstall_cmds], [2],
3682
[Command to use after installation of a shared archive])
3683
_LT_DECL([], [postuninstall_cmds], [2],
3684
[Command to use after uninstallation of a shared archive])
3685
_LT_DECL([], [finish_cmds], [2],
3686
[Commands used to finish a libtool library installation in a directory])
3687
_LT_DECL([], [finish_eval], [1],
3688
[[As "finish_cmds", except a single script fragment to be evaled but
3690
_LT_DECL([], [hardcode_into_libs], [0],
3691
[Whether we should hardcode library paths into libraries])
3692
_LT_DECL([], [sys_lib_search_path_spec], [2],
3693
[Compile-time system search path for libraries])
3694
_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
3695
[Run-time system search path for libraries])
3696
])# _LT_SYS_DYNAMIC_LINKER
3699
# _LT_PATH_TOOL_PREFIX(TOOL)
3700
# --------------------------
3701
# find a file program which can recognize shared library
3702
AC_DEFUN([_LT_PATH_TOOL_PREFIX],
3703
[m4_require([_LT_DECL_EGREP])dnl
3704
AC_MSG_CHECKING([for $1])
3705
AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
3707
[[\\/*] | ?:[\\/]*])
3708
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3711
lt_save_MAGIC_CMD="$MAGIC_CMD"
3712
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3713
dnl $ac_dummy forces splitting on constant user-supplied paths.
3714
dnl POSIX.2 word splitting is done only on the output of word expansions,
3715
dnl not every word. This closes a longstanding sh security hole.
3716
ac_dummy="m4_if([$2], , $PATH, [$2])"
3717
for ac_dir in $ac_dummy; do
3719
test -z "$ac_dir" && ac_dir=.
3720
if test -f $ac_dir/$1; then
3721
lt_cv_path_MAGIC_CMD="$ac_dir/$1"
3722
if test -n "$file_magic_test_file"; then
3723
case $deplibs_check_method in
3725
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
3726
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3727
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3728
$EGREP "$file_magic_regex" > /dev/null; then
3733
*** Warning: the command libtool uses to detect shared libraries,
3734
*** $file_magic_cmd, produces output that libtool cannot recognize.
3735
*** The result is that libtool may fail to recognize shared libraries
3736
*** as such. This will affect the creation of libtool libraries that
3737
*** depend on shared libraries, but programs linked with such libtool
3738
*** libraries will work regardless of this problem. Nevertheless, you
3739
*** may want to report the problem to your system manager and/or to
3740
*** bug-libtool@gnu.org
3750
MAGIC_CMD="$lt_save_MAGIC_CMD"
3753
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3754
if test -n "$MAGIC_CMD"; then
3755
AC_MSG_RESULT($MAGIC_CMD)
3759
_LT_DECL([], [MAGIC_CMD], [0],
3760
[Used to examine libraries when file_magic_cmd begins with "file"])dnl
3761
])# _LT_PATH_TOOL_PREFIX
3764
AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
3765
dnl aclocal-1.4 backwards compatibility:
3766
dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
3771
# find a file program which can recognize a shared library
3772
m4_defun([_LT_PATH_MAGIC],
3773
[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
3774
if test -z "$lt_cv_path_MAGIC_CMD"; then
3775
if test -n "$ac_tool_prefix"; then
3776
_LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
3786
# find the pathname to the GNU or non-GNU linker
3787
AC_DEFUN([LT_PATH_LD],
3788
[AC_REQUIRE([AC_PROG_CC])dnl
3789
AC_REQUIRE([AC_CANONICAL_HOST])dnl
3790
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
3791
m4_require([_LT_DECL_SED])dnl
3792
m4_require([_LT_DECL_EGREP])dnl
3794
AC_ARG_WITH([gnu-ld],
3795
[AS_HELP_STRING([--with-gnu-ld],
3796
[assume the C compiler uses GNU ld @<:@default=no@:>@])],
3797
[test "$withval" = no || with_gnu_ld=yes],
3798
[with_gnu_ld=no])dnl
3801
if test "$GCC" = yes; then
3802
# Check if gcc -print-prog-name=ld gives a path.
3803
AC_MSG_CHECKING([for ld used by $CC])
3806
# gcc leaves a trailing carriage return which upsets mingw
3807
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3809
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3812
# Accept absolute paths.
3813
[[\\/]]* | ?:[[\\/]]*)
3814
re_direlt='/[[^/]][[^/]]*/\.\./'
3815
# Canonicalize the pathname of ld
3816
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3817
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3818
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3820
test -z "$LD" && LD="$ac_prog"
3823
# If it fails, then pretend we aren't using GCC.
3827
# If it is relative, then search for the first ld in PATH.
3831
elif test "$with_gnu_ld" = yes; then
3832
AC_MSG_CHECKING([for GNU ld])
3834
AC_MSG_CHECKING([for non-GNU ld])
3836
AC_CACHE_VAL(lt_cv_path_LD,
3837
[if test -z "$LD"; then
3838
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3839
for ac_dir in $PATH; do
3841
test -z "$ac_dir" && ac_dir=.
3842
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3843
lt_cv_path_LD="$ac_dir/$ac_prog"
3844
# Check to see if the program is GNU ld. I'd rather use --version,
3845
# but apparently some variants of GNU ld only accept -v.
3846
# Break only if it was the GNU/non-GNU ld that we prefer.
3847
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3848
*GNU* | *'with BFD'*)
3849
test "$with_gnu_ld" != no && break
3852
test "$with_gnu_ld" != yes && break
3859
lt_cv_path_LD="$LD" # Let the user override the test with a path.
3862
if test -n "$LD"; then
3867
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
3871
_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
3875
AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
3876
AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
3877
dnl aclocal-1.4 backwards compatibility:
3878
dnl AC_DEFUN([AM_PROG_LD], [])
3879
dnl AC_DEFUN([AC_PROG_LD], [])
3884
m4_defun([_LT_PATH_LD_GNU],
3885
[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
3886
[# I'd rather use --version here, but apparently some GNU lds only accept -v.
3887
case `$LD -v 2>&1 </dev/null` in
3888
*GNU* | *'with BFD'*)
3889
lt_cv_prog_gnu_ld=yes
3892
lt_cv_prog_gnu_ld=no
3895
with_gnu_ld=$lt_cv_prog_gnu_ld
3901
# find reload flag for linker
3902
# -- PORTME Some linkers may need a different reload flag.
3903
m4_defun([_LT_CMD_RELOAD],
3904
[AC_CACHE_CHECK([for $LD option to reload object files],
3905
lt_cv_ld_reload_flag,
3906
[lt_cv_ld_reload_flag='-r'])
3907
reload_flag=$lt_cv_ld_reload_flag
3908
case $reload_flag in
3910
*) reload_flag=" $reload_flag" ;;
3912
reload_cmds='$LD$reload_flag -o $output$reload_objs'
3915
if test "$GCC" = yes; then
3916
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3918
reload_cmds='$LD$reload_flag -o $output$reload_objs'
3922
_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
3923
_LT_DECL([], [reload_cmds], [2])dnl
3927
# _LT_CHECK_MAGIC_METHOD
3928
# ----------------------
3929
# how to check for library dependencies
3930
# -- PORTME fill in with the dynamic library characteristics
3931
m4_defun([_LT_CHECK_MAGIC_METHOD],
3932
[m4_require([_LT_DECL_EGREP])
3933
m4_require([_LT_DECL_OBJDUMP])
3934
AC_CACHE_CHECK([how to recognize dependent libraries],
3935
lt_cv_deplibs_check_method,
3936
[lt_cv_file_magic_cmd='$MAGIC_CMD'
3937
lt_cv_file_magic_test_file=
3938
lt_cv_deplibs_check_method='unknown'
3939
# Need to set the preceding variable on all platforms that support
3940
# interlibrary dependencies.
3941
# 'none' -- dependencies not supported.
3942
# `unknown' -- same as none, but documents that we really don't know.
3943
# 'pass_all' -- all dependencies passed with no checks.
3944
# 'test_compile' -- check by making test program.
3945
# 'file_magic [[regex]]' -- check by looking for files in library path
3946
# which responds to the $file_magic_cmd with a given extended regex.
3947
# If you have `file' or equivalent on your system and you're not sure
3948
# whether `pass_all' will *always* work, you probably want this one.
3952
lt_cv_deplibs_check_method=pass_all
3956
lt_cv_deplibs_check_method=pass_all
3960
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
3961
lt_cv_file_magic_cmd='/usr/bin/file -L'
3962
lt_cv_file_magic_test_file=/shlib/libc.so
3966
# func_win32_libid is a shell function defined in ltmain.sh
3967
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3968
lt_cv_file_magic_cmd='func_win32_libid'
3972
# Base MSYS/MinGW do not provide the 'file' command needed by
3973
# func_win32_libid shell function, so use a weaker test based on 'objdump',
3974
# unless we find 'file', for example because we are cross-compiling.
3975
if ( file / ) >/dev/null 2>&1; then
3976
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3977
lt_cv_file_magic_cmd='func_win32_libid'
3979
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3980
lt_cv_file_magic_cmd='$OBJDUMP -f'
3985
# use the weaker test based on 'objdump'. See mingw*.
3986
lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
3987
lt_cv_file_magic_cmd='$OBJDUMP -f'
3990
darwin* | rhapsody*)
3991
lt_cv_deplibs_check_method=pass_all
3994
freebsd* | dragonfly*)
3995
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3998
# Not sure whether the presence of OpenBSD here was a mistake.
3999
# Let's accept both of them until this is cleared up.
4000
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
4001
lt_cv_file_magic_cmd=/usr/bin/file
4002
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4006
lt_cv_deplibs_check_method=pass_all
4011
lt_cv_deplibs_check_method=pass_all
4014
hpux10.20* | hpux11*)
4015
lt_cv_file_magic_cmd=/usr/bin/file
4018
lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
4019
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4022
[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]']
4023
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4026
lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
4027
lt_cv_file_magic_test_file=/usr/lib/libc.sl
4033
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4034
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
4037
irix5* | irix6* | nonstopux*)
4039
*-32|*"-32 ") libmagic=32-bit;;
4040
*-n32|*"-n32 ") libmagic=N32;;
4041
*-64|*"-64 ") libmagic=64-bit;;
4042
*) libmagic=never-match;;
4044
lt_cv_deplibs_check_method=pass_all
4047
# This must be Linux ELF.
4048
linux* | k*bsd*-gnu)
4049
lt_cv_deplibs_check_method=pass_all
4053
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4054
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
4056
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
4061
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
4062
lt_cv_file_magic_cmd=/usr/bin/file
4063
lt_cv_file_magic_test_file=/usr/lib/libnls.so
4067
lt_cv_deplibs_check_method=pass_all
4071
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4072
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
4074
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
4078
osf3* | osf4* | osf5*)
4079
lt_cv_deplibs_check_method=pass_all
4083
lt_cv_deplibs_check_method=pass_all
4087
lt_cv_deplibs_check_method=pass_all
4090
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4091
lt_cv_deplibs_check_method=pass_all
4095
case $host_vendor in
4097
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]]'
4098
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4101
lt_cv_deplibs_check_method=pass_all
4104
lt_cv_file_magic_cmd='/bin/file'
4105
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
4108
lt_cv_file_magic_cmd='/bin/file'
4109
lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
4110
lt_cv_file_magic_test_file=/lib/libc.so
4113
lt_cv_deplibs_check_method=pass_all
4116
lt_cv_deplibs_check_method=pass_all
4122
lt_cv_deplibs_check_method=pass_all
4126
file_magic_cmd=$lt_cv_file_magic_cmd
4127
deplibs_check_method=$lt_cv_deplibs_check_method
4128
test -z "$deplibs_check_method" && deplibs_check_method=unknown
4130
_LT_DECL([], [deplibs_check_method], [1],
4131
[Method to check whether dependent libraries are shared objects])
4132
_LT_DECL([], [file_magic_cmd], [1],
4133
[Command to use when deplibs_check_method == "file_magic"])
4134
])# _LT_CHECK_MAGIC_METHOD
4139
# find the pathname to a BSD- or MS-compatible name lister
4140
AC_DEFUN([LT_PATH_NM],
4141
[AC_REQUIRE([AC_PROG_CC])dnl
4142
AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
4143
[if test -n "$NM"; then
4144
# Let the user override the test.
4147
lt_nm_to_check="${ac_tool_prefix}nm"
4148
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4149
lt_nm_to_check="$lt_nm_to_check nm"
4151
for lt_tmp_nm in $lt_nm_to_check; do
4152
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4153
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4155
test -z "$ac_dir" && ac_dir=.
4156
tmp_nm="$ac_dir/$lt_tmp_nm"
4157
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4158
# Check to see if the nm accepts a BSD-compat flag.
4159
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4160
# nm: unknown option "B" ignored
4161
# Tru64's nm complains that /dev/null is an invalid object file
4162
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4163
*/dev/null* | *'Invalid file or object type'*)
4164
lt_cv_path_NM="$tmp_nm -B"
4168
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4170
lt_cv_path_NM="$tmp_nm -p"
4174
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4175
continue # so that we can try to find one that supports BSD flags
4184
: ${lt_cv_path_NM=no}
4186
if test "$lt_cv_path_NM" != "no"; then
4189
# Didn't find any BSD compatible name lister, look for dumpbin.
4190
AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
4192
if test "$DUMPBIN" != ":"; then
4196
test -z "$NM" && NM=nm
4198
_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
4200
AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
4201
[lt_cv_nm_interface="BSD nm"
4202
echo "int some_variable = 0;" > conftest.$ac_ext
4203
(eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
4204
(eval "$ac_compile" 2>conftest.err)
4205
cat conftest.err >&AS_MESSAGE_LOG_FD
4206
(eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
4207
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4208
cat conftest.err >&AS_MESSAGE_LOG_FD
4209
(eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
4210
cat conftest.out >&AS_MESSAGE_LOG_FD
4211
if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4212
lt_cv_nm_interface="MS dumpbin"
4218
AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
4219
AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
4220
dnl aclocal-1.4 backwards compatibility:
4221
dnl AC_DEFUN([AM_PROG_NM], [])
4222
dnl AC_DEFUN([AC_PROG_NM], [])
4227
# check for math library
4228
AC_DEFUN([LT_LIB_M],
4229
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
4232
*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
4233
# These system don't have libm, or don't need it
4236
AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
4237
AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
4240
AC_CHECK_LIB(m, cos, LIBM="-lm")
4247
AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
4248
dnl aclocal-1.4 backwards compatibility:
4249
dnl AC_DEFUN([AC_CHECK_LIBM], [])
4252
# _LT_COMPILER_NO_RTTI([TAGNAME])
4253
# -------------------------------
4254
m4_defun([_LT_COMPILER_NO_RTTI],
4255
[m4_require([_LT_TAG_COMPILER])dnl
4257
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
4259
if test "$GCC" = yes; then
4260
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
4262
_LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
4263
lt_cv_prog_compiler_rtti_exceptions,
4264
[-fno-rtti -fno-exceptions], [],
4265
[_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
4267
_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
4268
[Compiler flag to turn off builtin functions])
4269
])# _LT_COMPILER_NO_RTTI
4272
# _LT_CMD_GLOBAL_SYMBOLS
4273
# ----------------------
4274
m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
4275
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
4276
AC_REQUIRE([AC_PROG_CC])dnl
4277
AC_REQUIRE([LT_PATH_NM])dnl
4278
AC_REQUIRE([LT_PATH_LD])dnl
4279
m4_require([_LT_DECL_SED])dnl
4280
m4_require([_LT_DECL_EGREP])dnl
4281
m4_require([_LT_TAG_COMPILER])dnl
4283
# Check for command to grab the raw symbol name followed by C symbol from nm.
4284
AC_MSG_CHECKING([command to parse $NM output from $compiler object])
4285
AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
4287
# These are sane defaults that work on at least a few old systems.
4288
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4290
# Character class describing NM global symbol codes.
4291
symcode='[[BCDEGRST]]'
4293
# Regexp to match symbols that can be accessed directly from C.
4294
sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
4296
# Define system-specific variables.
4301
cygwin* | mingw* | pw32* | cegcc*)
4302
symcode='[[ABCDGISTW]]'
4305
if test "$host_cpu" = ia64; then
4306
symcode='[[ABCDEGRST]]'
4310
symcode='[[BCDEGRST]]'
4313
symcode='[[BCDEGQRST]]'
4324
sysv5* | sco5v6* | unixware* | OpenUNIX*)
4328
symcode='[[DFNSTU]]'
4332
# If we're using GNU nm, then use its standard symbol codes.
4333
case `$NM -V 2>&1` in
4334
*GNU* | *'with BFD'*)
4335
symcode='[[ABCDGIRSTW]]' ;;
4338
# Transform an extracted symbol line into a proper C declaration.
4339
# Some systems (esp. on ia64) link data and code symbols differently,
4340
# so use this general approach.
4341
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4343
# Transform an extracted symbol line into symbol name and symbol address
4344
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
4345
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'"
4347
# Handle CRLF in mingw tool chain
4351
opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4355
# Try without a prefix underscore, then with it.
4356
for ac_symprfx in "" "_"; do
4358
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4359
symxfrm="\\1 $ac_symprfx\\2 \\2"
4361
# Write the raw and C identifiers.
4362
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4363
# Fake it for dumpbin and say T for any non-static function
4364
# and D for any global variable.
4365
# Also find C++ and __fastcall symbols from MSVC++,
4366
# which start with @ or ?.
4367
lt_cv_sys_global_symbol_pipe="$AWK ['"\
4368
" {last_section=section; section=\$ 3};"\
4369
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4370
" \$ 0!~/External *\|/{next};"\
4371
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4372
" {if(hide[section]) next};"\
4373
" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4374
" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4375
" s[1]~/^[@?]/{print s[1], s[1]; next};"\
4376
" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4377
" ' prfx=^$ac_symprfx]"
4379
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4382
# Check to see that the pipe works correctly.
4386
cat > conftest.$ac_ext <<_LT_EOF
4391
void nm_test_func(void);
4392
void nm_test_func(void){}
4396
int main(){nm_test_var='a';nm_test_func();return(0);}
4399
if AC_TRY_EVAL(ac_compile); then
4400
# Now try to grab the symbols.
4402
if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
4403
# Try sorting and uniquifying the output.
4404
if sort "$nlist" | uniq > "$nlist"T; then
4405
mv -f "$nlist"T "$nlist"
4410
# Make sure that we snagged all the symbols we need.
4411
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4412
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4413
cat <<_LT_EOF > conftest.$ac_ext
4419
# Now generate the symbol file.
4420
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4422
cat <<_LT_EOF >> conftest.$ac_ext
4424
/* The mapping between symbol names and symbols. */
4429
lt__PROGRAM__LTX_preloaded_symbols[[]] =
4431
{ "@PROGRAM@", (void *) 0 },
4433
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4434
cat <<\_LT_EOF >> conftest.$ac_ext
4438
/* This works around a problem in FreeBSD linker */
4439
#ifdef FREEBSD_WORKAROUND
4440
static const void *lt_preloaded_setup() {
4441
return lt__PROGRAM__LTX_preloaded_symbols;
4449
# Now try linking the two files.
4450
mv conftest.$ac_objext conftstm.$ac_objext
4451
lt_save_LIBS="$LIBS"
4452
lt_save_CFLAGS="$CFLAGS"
4453
LIBS="conftstm.$ac_objext"
4454
CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
4455
if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
4458
LIBS="$lt_save_LIBS"
4459
CFLAGS="$lt_save_CFLAGS"
4461
echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
4464
echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
4467
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
4470
echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
4471
cat conftest.$ac_ext >&5
4473
rm -rf conftest* conftst*
4475
# Do not use the global_symbol_pipe unless it works.
4476
if test "$pipe_works" = yes; then
4479
lt_cv_sys_global_symbol_pipe=
4483
if test -z "$lt_cv_sys_global_symbol_pipe"; then
4484
lt_cv_sys_global_symbol_to_cdecl=
4486
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4487
AC_MSG_RESULT(failed)
4492
_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
4493
[Take the output of nm and produce a listing of raw symbols and C names])
4494
_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
4495
[Transform the output of nm in a proper C declaration])
4496
_LT_DECL([global_symbol_to_c_name_address],
4497
[lt_cv_sys_global_symbol_to_c_name_address], [1],
4498
[Transform the output of nm in a C name address pair])
4499
_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
4500
[lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
4501
[Transform the output of nm in a C name address pair when lib prefix is needed])
4502
]) # _LT_CMD_GLOBAL_SYMBOLS
4505
# _LT_COMPILER_PIC([TAGNAME])
4506
# ---------------------------
4507
m4_defun([_LT_COMPILER_PIC],
4508
[m4_require([_LT_TAG_COMPILER])dnl
4509
_LT_TAGVAR(lt_prog_compiler_wl, $1)=
4510
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4511
_LT_TAGVAR(lt_prog_compiler_static, $1)=
4513
AC_MSG_CHECKING([for $compiler option to produce PIC])
4514
m4_if([$1], [CXX], [
4515
# C++ specific cases for pic, static, wl, etc.
4516
if test "$GXX" = yes; then
4517
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4518
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4522
# All AIX code is PIC.
4523
if test "$host_cpu" = ia64; then
4524
# AIX 5 now supports IA64 processor
4525
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4532
# see comment about AmigaOS4 .so support
4533
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4536
# FIXME: we need at least 68020 code to build shared libraries, but
4537
# adding the `-m68020' flag to GCC prevents building anything better,
4539
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4544
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4545
# PIC is the default for these OSes.
4547
mingw* | cygwin* | os2* | pw32* | cegcc*)
4548
# This hack is so that the source file can tell whether it is being
4549
# built for inclusion in a dll (and should export symbols for example).
4550
# Although the cygwin gcc ignores -fPIC, still need this for old-style
4551
# (--disable-auto-import) libraries
4552
m4_if([$1], [GCJ], [],
4553
[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4555
darwin* | rhapsody*)
4556
# PIC is the default on this platform
4557
# Common symbols not allowed in MH_DYLIB files
4558
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4561
# DJGPP does not support shared libraries at all
4562
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4565
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
4566
# Instead, we relocate shared libraries at runtime.
4569
if test -d /usr/nec; then
4570
_LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4574
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4575
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
4576
# sets the default TLS model and affects inlining.
4581
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4586
# QNX uses GNU C++, but need to define -shared option too, otherwise
4588
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4591
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4597
# All AIX code is PIC.
4598
if test "$host_cpu" = ia64; then
4599
# AIX 5 now supports IA64 processor
4600
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4602
_LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4606
case $cc_basename in
4608
# Green Hills C++ Compiler
4609
# _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"
4614
case $cc_basename in
4616
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4619
# Green Hills C++ Compiler
4620
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4626
freebsd* | dragonfly*)
4627
# FreeBSD uses GNU C++
4629
hpux9* | hpux10* | hpux11*)
4630
case $cc_basename in
4632
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4633
_LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4634
if test "$host_cpu" != ia64; then
4635
_LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4639
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4640
_LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4646
_LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4655
# This is c89, which is MS Visual C++ (no shared libs)
4656
# Anyone wants to do a port?
4658
irix5* | irix6* | nonstopux*)
4659
case $cc_basename in
4661
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4662
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4663
# CC pic flag -KPIC is the default.
4669
linux* | k*bsd*-gnu)
4670
case $cc_basename in
4673
_LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4674
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4677
# old Intel C++ for x86_64 which still supported -KPIC.
4678
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4679
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4680
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4683
# Intel C++, used to be incompatible with GCC.
4684
# ICC 10 doesn't accept -KPIC any more.
4685
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4686
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4687
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4690
# Portland Group C++ compiler
4691
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4692
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4693
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4697
# Make sure the PIC flag is empty. It appears that all Alpha
4698
# Linux and Compaq Tru64 Unix objects are PIC.
4699
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4700
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4704
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4705
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4706
_LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4709
case `$CC -V 2>&1 | sed 5q` in
4712
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4713
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4714
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4725
case $cc_basename in
4727
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
4736
# QNX uses GNU C++, but need to define -shared option too, otherwise
4738
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4740
osf3* | osf4* | osf5*)
4741
case $cc_basename in
4743
_LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4746
# Rational C++ 2.4.1
4747
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4750
# Digital/Compaq C++
4751
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4752
# Make sure the PIC flag is empty. It appears that all Alpha
4753
# Linux and Compaq Tru64 Unix objects are PIC.
4754
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4755
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4764
case $cc_basename in
4766
# Sun C++ 4.2, 5.x and Centerline C++
4767
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4768
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4769
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4772
# Green Hills C++ Compiler
4773
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4780
case $cc_basename in
4783
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4784
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4788
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4794
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
4795
case $cc_basename in
4797
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4798
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4799
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4804
case $cc_basename in
4806
# NonStop-UX NCC 3.20
4807
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4816
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4822
if test "$GCC" = yes; then
4823
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4824
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4828
# All AIX code is PIC.
4829
if test "$host_cpu" = ia64; then
4830
# AIX 5 now supports IA64 processor
4831
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4838
# see comment about AmigaOS4 .so support
4839
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4842
# FIXME: we need at least 68020 code to build shared libraries, but
4843
# adding the `-m68020' flag to GCC prevents building anything better,
4845
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4850
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4851
# PIC is the default for these OSes.
4854
mingw* | cygwin* | pw32* | os2* | cegcc*)
4855
# This hack is so that the source file can tell whether it is being
4856
# built for inclusion in a dll (and should export symbols for example).
4857
# Although the cygwin gcc ignores -fPIC, still need this for old-style
4858
# (--disable-auto-import) libraries
4859
m4_if([$1], [GCJ], [],
4860
[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4863
darwin* | rhapsody*)
4864
# PIC is the default on this platform
4865
# Common symbols not allowed in MH_DYLIB files
4866
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4870
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4871
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
4872
# sets the default TLS model and affects inlining.
4878
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4884
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
4885
# Instead, we relocate shared libraries at runtime.
4889
# Just because we use GCC doesn't mean we suddenly get shared libraries
4890
# on systems that don't support them.
4891
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4896
# QNX uses GNU C++, but need to define -shared option too, otherwise
4898
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4902
if test -d /usr/nec; then
4903
_LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4908
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4912
# PORTME Check for flag to pass linker flags through the system compiler.
4915
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4916
if test "$host_cpu" = ia64; then
4917
# AIX 5 now supports IA64 processor
4918
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4920
_LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4924
mingw* | cygwin* | pw32* | os2* | cegcc*)
4925
# This hack is so that the source file can tell whether it is being
4926
# built for inclusion in a dll (and should export symbols for example).
4927
m4_if([$1], [GCJ], [],
4928
[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4931
hpux9* | hpux10* | hpux11*)
4932
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4933
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4940
_LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4943
# Is there a better lt_prog_compiler_static that works with the bundled CC?
4944
_LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4947
irix5* | irix6* | nonstopux*)
4948
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4949
# PIC (with -KPIC) is the default.
4950
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4953
linux* | k*bsd*-gnu)
4954
case $cc_basename in
4955
# old Intel for x86_64 which still supported -KPIC.
4957
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4958
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4959
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4961
# icc used to be incompatible with GCC.
4962
# ICC 10 doesn't accept -KPIC any more.
4964
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4965
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4966
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4968
# Lahey Fortran 8.1.
4970
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4971
_LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
4972
_LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
4974
pgcc* | pgf77* | pgf90* | pgf95*)
4975
# Portland Group compilers (*not* the Pentium gcc compiler,
4976
# which looks to be a dead project)
4977
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4978
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4979
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4982
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4983
# All Alpha code is PIC.
4984
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4987
# IBM XL C 8.0/Fortran 10.1 on PPC
4988
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4989
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4990
_LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4993
case `$CC -V 2>&1 | sed 5q` in
4996
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4997
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4998
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5001
# Sun Fortran 8.3 passes all unrecognized flags to the linker
5002
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5003
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5004
_LT_TAGVAR(lt_prog_compiler_wl, $1)=''
5012
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5013
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5017
# QNX uses GNU C++, but need to define -shared option too, otherwise
5019
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
5022
osf3* | osf4* | osf5*)
5023
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5024
# All OSF/1 code is PIC.
5025
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5029
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5033
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5034
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5035
case $cc_basename in
5037
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
5039
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
5044
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5045
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5046
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5049
sysv4 | sysv4.2uw2* | sysv4.3*)
5050
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5051
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5052
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5056
if test -d /usr/nec ;then
5057
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
5058
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5062
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5063
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5064
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5065
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5069
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5070
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5074
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5075
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5079
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5085
# For platforms which do not support PIC, -DPIC is meaningless:
5087
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
5090
_LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
5093
AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
5094
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
5095
[How to pass a linker flag through the compiler])
5098
# Check to make sure the PIC flag actually works.
5100
if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
5101
_LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
5102
[_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
5103
[$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
5104
[case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
5106
*) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
5108
[_LT_TAGVAR(lt_prog_compiler_pic, $1)=
5109
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
5111
_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
5112
[Additional compiler flags for building library objects])
5115
# Check to make sure the static flag actually works.
5117
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
5118
_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
5119
_LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
5120
$lt_tmp_static_flag,
5122
[_LT_TAGVAR(lt_prog_compiler_static, $1)=])
5123
_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
5124
[Compiler flag to prevent dynamic linking])
5125
])# _LT_COMPILER_PIC
5128
# _LT_LINKER_SHLIBS([TAGNAME])
5129
# ----------------------------
5130
# See if the linker supports building shared libraries.
5131
m4_defun([_LT_LINKER_SHLIBS],
5132
[AC_REQUIRE([LT_PATH_LD])dnl
5133
AC_REQUIRE([LT_PATH_NM])dnl
5134
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5135
m4_require([_LT_DECL_EGREP])dnl
5136
m4_require([_LT_DECL_SED])dnl
5137
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
5138
m4_require([_LT_TAG_COMPILER])dnl
5139
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5140
m4_if([$1], [CXX], [
5141
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5144
# If we're using GNU nm, then we don't want the "-C" option.
5145
# -C means demangle to AIX nm, but means don't demangle with GNU nm
5146
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
5147
_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'
5149
_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'
5153
_LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5155
cygwin* | mingw* | cegcc*)
5156
_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'
5159
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5162
_LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5165
_LT_TAGVAR(allow_undefined_flag, $1)=
5166
_LT_TAGVAR(always_export_symbols, $1)=no
5167
_LT_TAGVAR(archive_cmds, $1)=
5168
_LT_TAGVAR(archive_expsym_cmds, $1)=
5169
_LT_TAGVAR(compiler_needs_object, $1)=no
5170
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5171
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
5172
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5173
_LT_TAGVAR(hardcode_automatic, $1)=no
5174
_LT_TAGVAR(hardcode_direct, $1)=no
5175
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
5176
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5177
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5178
_LT_TAGVAR(hardcode_libdir_separator, $1)=
5179
_LT_TAGVAR(hardcode_minus_L, $1)=no
5180
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5181
_LT_TAGVAR(inherit_rpath, $1)=no
5182
_LT_TAGVAR(link_all_deplibs, $1)=unknown
5183
_LT_TAGVAR(module_cmds, $1)=
5184
_LT_TAGVAR(module_expsym_cmds, $1)=
5185
_LT_TAGVAR(old_archive_from_new_cmds, $1)=
5186
_LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
5187
_LT_TAGVAR(thread_safe_flag_spec, $1)=
5188
_LT_TAGVAR(whole_archive_flag_spec, $1)=
5189
# include_expsyms should be a list of space-separated symbols to be *always*
5190
# included in the symbol list
5191
_LT_TAGVAR(include_expsyms, $1)=
5192
# exclude_expsyms can be an extended regexp of symbols to exclude
5193
# it will be wrapped by ` (' and `)$', so one must not match beginning or
5194
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5195
# as well as any symbol that contains `d'.
5196
_LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5197
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5198
# platforms (ab)use it in PIC code, but their linkers get confused if
5199
# the symbol is explicitly referenced. Since portable code cannot
5200
# rely on this symbol name, it's probably fine to never include it in
5201
# preloaded symbol tables.
5202
# Exclude shared library initialization/finalization symbols.
5203
dnl Note also adjust exclude_expsyms for C++ above.
5204
extract_expsyms_cmds=
5207
cygwin* | mingw* | pw32* | cegcc*)
5208
# FIXME: the MSVC++ port hasn't been tested in a loooong time
5209
# When not using gcc, we currently assume that we are using
5210
# Microsoft Visual C++.
5211
if test "$GCC" != yes; then
5216
# we just hope/assume this is gcc and not c89 (= MSVC++)
5224
_LT_TAGVAR(ld_shlibs, $1)=yes
5225
if test "$with_gnu_ld" = yes; then
5226
# If archive_cmds runs LD, not CC, wlarc should be empty
5229
# Set some defaults for GNU ld with shared library support. These
5230
# are reset later if shared libraries are not supported. Putting them
5231
# here allows them to be overridden if necessary.
5232
runpath_var=LD_RUN_PATH
5233
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5234
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5235
# ancient GNU ld didn't support --whole-archive et. al.
5236
if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
5237
_LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5239
_LT_TAGVAR(whole_archive_flag_spec, $1)=
5241
supports_anon_versioning=no
5242
case `$LD -v 2>&1` in
5243
*\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
5244
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5245
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5246
*\ 2.11.*) ;; # other 2.11 versions
5247
*) supports_anon_versioning=yes ;;
5250
# See if GNU ld supports shared libraries.
5253
# On AIX/PPC, the GNU linker is very broken
5254
if test "$host_cpu" != ia64; then
5255
_LT_TAGVAR(ld_shlibs, $1)=no
5258
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
5259
*** to be unable to reliably create shared libraries on AIX.
5260
*** Therefore, libtool is disabling shared libraries support. If you
5261
*** really care for shared libraries, you may want to modify your PATH
5262
*** so that a non-GNU linker is found, and then restart.
5271
# see comment about AmigaOS4 .so support
5272
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5273
_LT_TAGVAR(archive_expsym_cmds, $1)=''
5276
_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)'
5277
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5278
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5284
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5285
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5286
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5287
# support --undefined. This deserves some investigation. FIXME
5288
_LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5290
_LT_TAGVAR(ld_shlibs, $1)=no
5294
cygwin* | mingw* | pw32* | cegcc*)
5295
# _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5296
# as there is no search path for DLLs.
5297
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5298
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5299
_LT_TAGVAR(always_export_symbols, $1)=no
5300
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5301
_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'
5303
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
5304
_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'
5305
# If the export-symbols file already is a .def file (1st line
5306
# is EXPORTS), use it as is; otherwise, prepend...
5307
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5308
cp $export_symbols $output_objdir/$soname.def;
5310
echo EXPORTS > $output_objdir/$soname.def;
5311
cat $export_symbols >> $output_objdir/$soname.def;
5313
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5315
_LT_TAGVAR(ld_shlibs, $1)=no
5320
_LT_TAGVAR(hardcode_direct, $1)=no
5321
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5322
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5323
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5324
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5325
# Instead, shared libraries are loaded at an image base (0x10000000 by
5326
# default) and relocated if they conflict, which is a slow very memory
5327
# consuming and fragmenting process. To avoid this, we pick a random,
5328
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5329
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
5330
_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'
5331
_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'
5334
gnu* | linux* | tpf* | k*bsd*-gnu)
5336
if test "$host_os" = linux-dietlibc; then
5337
case $cc_basename in
5338
diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
5341
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
5342
&& test "$tmp_diet" = no
5345
tmp_sharedflag='-shared'
5346
case $cc_basename,$host_cpu in
5347
pgcc*) # Portland Group C compiler
5348
_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'
5349
tmp_addflag=' $pic_flag'
5351
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
5352
_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'
5353
tmp_addflag=' $pic_flag -Mnomain' ;;
5354
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
5355
tmp_addflag=' -i_dynamic' ;;
5356
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
5357
tmp_addflag=' -i_dynamic -nofor_main' ;;
5358
ifc* | ifort*) # Intel Fortran compiler
5359
tmp_addflag=' -nofor_main' ;;
5360
lf95*) # Lahey Fortran 8.1
5361
_LT_TAGVAR(whole_archive_flag_spec, $1)=
5362
tmp_sharedflag='--shared' ;;
5363
xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
5364
tmp_sharedflag='-qmkshrobj'
5367
case `$CC -V 2>&1 | sed 5q` in
5368
*Sun\ C*) # Sun C 5.9
5369
_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'
5370
_LT_TAGVAR(compiler_needs_object, $1)=yes
5371
tmp_sharedflag='-G' ;;
5372
*Sun\ F*) # Sun Fortran 8.3
5373
tmp_sharedflag='-G' ;;
5375
_LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5377
if test "x$supports_anon_versioning" = xyes; then
5378
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5379
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5380
echo "local: *; };" >> $output_objdir/$libname.ver~
5381
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5384
case $cc_basename in
5386
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself
5387
_LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
5388
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5389
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
5390
_LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
5391
if test "x$supports_anon_versioning" = xyes; then
5392
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5393
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5394
echo "local: *; };" >> $output_objdir/$libname.ver~
5395
$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
5400
_LT_TAGVAR(ld_shlibs, $1)=no
5405
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5406
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5409
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5410
_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'
5415
if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
5416
_LT_TAGVAR(ld_shlibs, $1)=no
5419
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
5420
*** create shared libraries on Solaris systems. Therefore, libtool
5421
*** is disabling shared libraries support. We urge you to upgrade GNU
5422
*** binutils to release 2.9.1 or newer. Another option is to modify
5423
*** your PATH or compiler configuration so that the native linker is
5424
*** used, and then restart.
5427
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5428
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5429
_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'
5431
_LT_TAGVAR(ld_shlibs, $1)=no
5435
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
5436
case `$LD -v 2>&1` in
5437
*\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
5438
_LT_TAGVAR(ld_shlibs, $1)=no
5441
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
5442
*** reliably create shared libraries on SCO systems. Therefore, libtool
5443
*** is disabling shared libraries support. We urge you to upgrade GNU
5444
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
5445
*** your PATH or compiler configuration so that the native linker is
5446
*** used, and then restart.
5451
# For security reasons, it is highly recommended that you always
5452
# use absolute paths for naming shared libraries, and exclude the
5453
# DT_RUNPATH tag from executables and libraries. But doing so
5454
# requires that you compile everything twice, which is a pain.
5455
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5456
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5457
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5458
_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'
5460
_LT_TAGVAR(ld_shlibs, $1)=no
5467
_LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5469
_LT_TAGVAR(hardcode_direct, $1)=yes
5470
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5474
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5475
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5476
_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'
5478
_LT_TAGVAR(ld_shlibs, $1)=no
5483
if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
5485
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5486
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
5487
_LT_TAGVAR(whole_archive_flag_spec, $1)=
5490
# PORTME fill in a description of your system's linker (not GNU ld)
5493
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5494
_LT_TAGVAR(always_export_symbols, $1)=yes
5495
_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'
5496
# Note: this linker hardcodes the directories in LIBPATH if there
5497
# are no directories specified by -L.
5498
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5499
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
5500
# Neither direct hardcoding nor static linking is supported with a
5502
_LT_TAGVAR(hardcode_direct, $1)=unsupported
5507
if test "$host_cpu" = ia64; then
5508
# On IA64, the linker does run time linking by default, so we don't
5509
# have to do anything special.
5510
aix_use_runtimelinking=no
5511
exp_sym_flag='-Bexport'
5514
# If we're using GNU nm, then we don't want the "-C" option.
5515
# -C means demangle to AIX nm, but means don't demangle with GNU nm
5516
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
5517
_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'
5519
_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'
5521
aix_use_runtimelinking=no
5523
# Test if we are trying to use run time linking or normal
5524
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
5525
# need to do runtime linking.
5526
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5527
for ld_flag in $LDFLAGS; do
5528
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5529
aix_use_runtimelinking=yes
5536
exp_sym_flag='-bexport'
5537
no_entry_flag='-bnoentry'
5540
# When large executables or shared objects are built, AIX ld can
5541
# have problems creating the table of contents. If linking a library
5542
# or program results in "error TOC overflow" add -mminimal-toc to
5543
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5544
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5546
_LT_TAGVAR(archive_cmds, $1)=''
5547
_LT_TAGVAR(hardcode_direct, $1)=yes
5548
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5549
_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5550
_LT_TAGVAR(link_all_deplibs, $1)=yes
5551
_LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
5553
if test "$GCC" = yes; then
5554
case $host_os in aix4.[[012]]|aix4.[[012]].*)
5555
# We only want to do this on AIX 4.2 and lower, the check
5556
# below for broken collect2 doesn't work under 4.3+
5557
collect2name=`${CC} -print-prog-name=collect2`
5558
if test -f "$collect2name" &&
5559
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
5561
# We have reworked collect2
5564
# We have old collect2
5565
_LT_TAGVAR(hardcode_direct, $1)=unsupported
5566
# It fails to find uninstalled libraries when the uninstalled
5567
# path is not listed in the libpath. Setting hardcode_minus_L
5568
# to unsupported forces relinking
5569
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5570
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5571
_LT_TAGVAR(hardcode_libdir_separator, $1)=
5575
shared_flag='-shared'
5576
if test "$aix_use_runtimelinking" = yes; then
5577
shared_flag="$shared_flag "'${wl}-G'
5581
if test "$host_cpu" = ia64; then
5582
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5583
# chokes on -Wl,-G. The following line is correct:
5586
if test "$aix_use_runtimelinking" = yes; then
5587
shared_flag='${wl}-G'
5589
shared_flag='${wl}-bM:SRE'
5594
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
5595
# It seems that -bexpall does not export symbols beginning with
5596
# underscore (_), so it is better to generate a list of symbols to export.
5597
_LT_TAGVAR(always_export_symbols, $1)=yes
5598
if test "$aix_use_runtimelinking" = yes; then
5599
# Warning - without using the other runtime loading flags (-brtl),
5600
# -berok will link without error, but may produce a broken library.
5601
_LT_TAGVAR(allow_undefined_flag, $1)='-berok'
5602
# Determine the default libpath from the value encoded in an
5604
_LT_SYS_MODULE_PATH_AIX
5605
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5606
_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"
5608
if test "$host_cpu" = ia64; then
5609
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5610
_LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5611
_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"
5613
# Determine the default libpath from the value encoded in an
5615
_LT_SYS_MODULE_PATH_AIX
5616
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5617
# Warning - without using the other run time loading flags,
5618
# -berok will link without error, but may produce a broken library.
5619
_LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5620
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5621
# Exported symbols can be pulled into shared objects from archives
5622
_LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5623
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5624
# This is similar to how AIX traditionally builds its shared libraries.
5625
_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'
5633
# see comment about AmigaOS4 .so support
5634
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5635
_LT_TAGVAR(archive_expsym_cmds, $1)=''
5638
_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)'
5639
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5640
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5646
_LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
5649
cygwin* | mingw* | pw32* | cegcc*)
5650
# When not using gcc, we currently assume that we are using
5651
# Microsoft Visual C++.
5652
# hardcode_libdir_flag_spec is actually meaningless, as there is
5653
# no search path for DLLs.
5654
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5655
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5656
# Tell ltmain to make .lib files, not .a files.
5658
# Tell ltmain to make .dll files, not .so files.
5660
# FIXME: Setting linknames here is a bad hack.
5661
_LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5662
# The linker will automatically build a .lib file if we build a DLL.
5663
_LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5664
# FIXME: Should let the user specify the lib program.
5665
_LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5666
_LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
5667
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5670
darwin* | rhapsody*)
5671
_LT_DARWIN_LINKER_FEATURES($1)
5675
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5676
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5677
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5681
_LT_TAGVAR(ld_shlibs, $1)=no
5684
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5685
# support. Future versions do this automatically, but an explicit c++rt0.o
5686
# does not break anything, and helps significantly (at the cost of a little
5689
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5690
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5691
_LT_TAGVAR(hardcode_direct, $1)=yes
5692
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5695
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
5697
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5698
_LT_TAGVAR(hardcode_direct, $1)=yes
5699
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5700
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5703
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5704
freebsd* | dragonfly*)
5705
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5706
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5707
_LT_TAGVAR(hardcode_direct, $1)=yes
5708
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5712
if test "$GCC" = yes; then
5713
_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'
5715
_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'
5717
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5718
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5719
_LT_TAGVAR(hardcode_direct, $1)=yes
5721
# hardcode_minus_L: Not really in the search PATH,
5722
# but as the default location of the library.
5723
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5724
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5728
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5729
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5731
_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
5733
if test "$with_gnu_ld" = no; then
5734
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5735
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
5736
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5737
_LT_TAGVAR(hardcode_direct, $1)=yes
5738
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5739
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5740
# hardcode_minus_L: Not really in the search PATH,
5741
# but as the default location of the library.
5742
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5747
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5750
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5753
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5756
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5762
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5765
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5768
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5772
if test "$with_gnu_ld" = no; then
5773
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5774
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5778
_LT_TAGVAR(hardcode_direct, $1)=no
5779
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5782
_LT_TAGVAR(hardcode_direct, $1)=yes
5783
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5784
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5786
# hardcode_minus_L: Not really in the search PATH,
5787
# but as the default location of the library.
5788
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5794
irix5* | irix6* | nonstopux*)
5795
if test "$GCC" = yes; then
5796
_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'
5797
# Try to use the -exported_symbol ld option, if it does not
5798
# work, assume that -exports_file does not work either and
5799
# implicitly export all symbols.
5800
save_LDFLAGS="$LDFLAGS"
5801
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5802
AC_LINK_IFELSE(int foo(void) {},
5803
_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'
5805
LDFLAGS="$save_LDFLAGS"
5807
_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'
5808
_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'
5810
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5811
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5812
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5813
_LT_TAGVAR(inherit_rpath, $1)=yes
5814
_LT_TAGVAR(link_all_deplibs, $1)=yes
5818
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5819
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5821
_LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5823
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5824
_LT_TAGVAR(hardcode_direct, $1)=yes
5825
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5829
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5830
_LT_TAGVAR(hardcode_direct, $1)=yes
5831
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5832
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5833
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5840
if test -f /usr/libexec/ld.so; then
5841
_LT_TAGVAR(hardcode_direct, $1)=yes
5842
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5843
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5844
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5845
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5846
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
5847
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5848
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5851
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
5852
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5853
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5856
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5857
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5862
_LT_TAGVAR(ld_shlibs, $1)=no
5867
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5868
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5869
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5870
_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'
5871
_LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5875
if test "$GCC" = yes; then
5876
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5877
_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'
5879
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5880
_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'
5882
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5883
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5884
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5887
osf4* | osf5*) # as osf3* with the addition of -msym flag
5888
if test "$GCC" = yes; then
5889
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5890
_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'
5891
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5893
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5894
_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'
5895
_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~
5896
$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'
5898
# Both c and cxx compiler support -rpath directly
5899
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5901
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5902
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5906
_LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
5907
if test "$GCC" = yes; then
5909
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5910
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5911
$CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
5913
case `$CC -V 2>&1` in
5916
_LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5917
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5918
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
5922
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
5923
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5924
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
5928
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5929
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5931
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
5933
# The compiler driver will combine and reorder linker options,
5934
# but understands `-z linker_flag'. GCC discards it without `$wl',
5935
# but is careful enough not to reorder.
5936
# Supported since Solaris 2.6 (maybe 2.5.1?)
5937
if test "$GCC" = yes; then
5938
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
5940
_LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
5944
_LT_TAGVAR(link_all_deplibs, $1)=yes
5948
if test "x$host_vendor" = xsequent; then
5949
# Use $CC to link under sequent, because it throws in some extra .o
5950
# files that make .init and .fini sections work.
5951
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5953
_LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5955
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5956
_LT_TAGVAR(hardcode_direct, $1)=yes
5957
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5958
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5962
case $host_vendor in
5964
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5965
_LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
5968
## LD is ld it makes a PLAMLIB
5969
## CC just makes a GrossModule.
5970
_LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5971
_LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
5972
_LT_TAGVAR(hardcode_direct, $1)=no
5975
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5976
_LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
5979
runpath_var='LD_RUN_PATH'
5980
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5984
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5985
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5986
_LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
5990
if test -d /usr/nec; then
5991
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5992
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5993
runpath_var=LD_RUN_PATH
5994
hardcode_runpath_var=yes
5995
_LT_TAGVAR(ld_shlibs, $1)=yes
5999
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6000
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6001
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6002
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6003
runpath_var='LD_RUN_PATH'
6005
if test "$GCC" = yes; then
6006
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6007
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6009
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6010
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6014
sysv5* | sco3.2v5* | sco5v6*)
6015
# Note: We can NOT use -z defs as we might desire, because we do not
6016
# link with -lc, and that would cause any symbols used from libc to
6017
# always be unresolved, which means just about no library would
6018
# ever link correctly. If we're not using GNU ld we use -z text
6019
# though, which does catch some bad symbols but isn't as heavy-handed
6021
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6022
_LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6023
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6024
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6025
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
6026
_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6027
_LT_TAGVAR(link_all_deplibs, $1)=yes
6028
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6029
runpath_var='LD_RUN_PATH'
6031
if test "$GCC" = yes; then
6032
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6033
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6035
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6036
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6041
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6042
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6043
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6047
_LT_TAGVAR(ld_shlibs, $1)=no
6051
if test x$host_vendor = xsni; then
6053
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6054
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
6060
AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
6061
test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6063
_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
6065
_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
6066
_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
6067
_LT_DECL([], [extract_expsyms_cmds], [2],
6068
[The commands to extract the exported symbol list from a shared archive])
6071
# Do we need to explicitly link libc?
6073
case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
6075
# Assume -lc should be added
6076
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6078
if test "$enable_shared" = yes && test "$GCC" = yes; then
6079
case $_LT_TAGVAR(archive_cmds, $1) in
6081
# FIXME: we may have to deal with multi-command sequences.
6084
# Test whether the compiler implicitly links with -lc since on some
6085
# systems, -lgcc has to come before -lc. If gcc already passes -lc
6086
# to ld, don't add -lc before -lgcc.
6087
AC_MSG_CHECKING([whether -lc should be explicitly linked in])
6089
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6091
if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6094
libobjs=conftest.$ac_objext
6096
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
6097
pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
6103
lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
6104
_LT_TAGVAR(allow_undefined_flag, $1)=
6105
if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
6107
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6109
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6111
_LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
6113
cat conftest.err 1>&5
6116
AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
6123
_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
6124
[Whether or not to add -lc for building shared libraries])
6125
_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
6126
[enable_shared_with_static_runtimes], [0],
6127
[Whether or not to disallow shared libs when runtime libs are static])
6128
_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
6129
[Compiler flag to allow reflexive dlopens])
6130
_LT_TAGDECL([], [whole_archive_flag_spec], [1],
6131
[Compiler flag to generate shared objects directly from archives])
6132
_LT_TAGDECL([], [compiler_needs_object], [1],
6133
[Whether the compiler copes with passing no objects directly])
6134
_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
6135
[Create an old-style archive from a shared archive])
6136
_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
6137
[Create a temporary old-style archive to link instead of a shared archive])
6138
_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
6139
_LT_TAGDECL([], [archive_expsym_cmds], [2])
6140
_LT_TAGDECL([], [module_cmds], [2],
6141
[Commands used to build a loadable module if different from building
6143
_LT_TAGDECL([], [module_expsym_cmds], [2])
6144
_LT_TAGDECL([], [with_gnu_ld], [1],
6145
[Whether we are building with GNU ld or not])
6146
_LT_TAGDECL([], [allow_undefined_flag], [1],
6147
[Flag that allows shared libraries with undefined symbols to be built])
6148
_LT_TAGDECL([], [no_undefined_flag], [1],
6149
[Flag that enforces no undefined symbols])
6150
_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
6151
[Flag to hardcode $libdir into a binary during linking.
6152
This must work even if $libdir does not exist])
6153
_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
6154
[[If ld is used when linking, flag to hardcode $libdir into a binary
6155
during linking. This must work even if $libdir does not exist]])
6156
_LT_TAGDECL([], [hardcode_libdir_separator], [1],
6157
[Whether we need a single "-rpath" flag with a separated argument])
6158
_LT_TAGDECL([], [hardcode_direct], [0],
6159
[Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
6160
DIR into the resulting binary])
6161
_LT_TAGDECL([], [hardcode_direct_absolute], [0],
6162
[Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
6163
DIR into the resulting binary and the resulting library dependency is
6164
"absolute", i.e impossible to change by setting ${shlibpath_var} if the
6165
library is relocated])
6166
_LT_TAGDECL([], [hardcode_minus_L], [0],
6167
[Set to "yes" if using the -LDIR flag during linking hardcodes DIR
6168
into the resulting binary])
6169
_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
6170
[Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
6171
into the resulting binary])
6172
_LT_TAGDECL([], [hardcode_automatic], [0],
6173
[Set to "yes" if building a shared library automatically hardcodes DIR
6174
into the library and all subsequent libraries and executables linked
6176
_LT_TAGDECL([], [inherit_rpath], [0],
6177
[Set to yes if linker adds runtime paths of dependent libraries
6178
to runtime path list])
6179
_LT_TAGDECL([], [link_all_deplibs], [0],
6180
[Whether libtool must link a program against all its dependency libraries])
6181
_LT_TAGDECL([], [fix_srcfile_path], [1],
6182
[Fix the shell variable $srcfile for the compiler])
6183
_LT_TAGDECL([], [always_export_symbols], [0],
6184
[Set to "yes" if exported symbols are required])
6185
_LT_TAGDECL([], [export_symbols_cmds], [2],
6186
[The commands to list exported symbols])
6187
_LT_TAGDECL([], [exclude_expsyms], [1],
6188
[Symbols that should not be listed in the preloaded symbols])
6189
_LT_TAGDECL([], [include_expsyms], [1],
6190
[Symbols that must always be exported])
6191
_LT_TAGDECL([], [prelink_cmds], [2],
6192
[Commands necessary for linking programs (against libraries) with templates])
6193
_LT_TAGDECL([], [file_list_spec], [1],
6194
[Specify filename containing input files])
6195
dnl FIXME: Not yet implemented
6196
dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
6197
dnl [Compiler flag to generate thread safe objects])
6198
])# _LT_LINKER_SHLIBS
6201
# _LT_LANG_C_CONFIG([TAG])
6202
# ------------------------
6203
# Ensure that the configuration variables for a C compiler are suitably
6204
# defined. These variables are subsequently used by _LT_CONFIG to write
6205
# the compiler configuration to `libtool'.
6206
m4_defun([_LT_LANG_C_CONFIG],
6207
[m4_require([_LT_DECL_EGREP])dnl
6211
# Source file extension for C test sources.
6214
# Object file extension for compiled C test sources.
6216
_LT_TAGVAR(objext, $1)=$objext
6218
# Code to be used in simple compile tests
6219
lt_simple_compile_test_code="int some_variable = 0;"
6221
# Code to be used in simple link tests
6222
lt_simple_link_test_code='int main(){return(0);}'
6225
# Save the default compiler, since it gets overwritten when the other
6226
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6227
compiler_DEFAULT=$CC
6229
# save warnings/boilerplate of simple test code
6230
_LT_COMPILER_BOILERPLATE
6231
_LT_LINKER_BOILERPLATE
6233
if test -n "$compiler"; then
6234
_LT_COMPILER_NO_RTTI($1)
6235
_LT_COMPILER_PIC($1)
6236
_LT_COMPILER_C_O($1)
6237
_LT_COMPILER_FILE_LOCKS($1)
6238
_LT_LINKER_SHLIBS($1)
6239
_LT_SYS_DYNAMIC_LINKER($1)
6240
_LT_LINKER_HARDCODE_LIBPATH($1)
6244
# Report which library types will actually be built
6245
AC_MSG_CHECKING([if libtool supports shared libraries])
6246
AC_MSG_RESULT([$can_build_shared])
6248
AC_MSG_CHECKING([whether to build shared libraries])
6249
test "$can_build_shared" = "no" && enable_shared=no
6251
# On AIX, shared libraries and static libraries use the same namespace, and
6252
# are all built from PIC.
6255
test "$enable_shared" = yes && enable_static=no
6256
if test -n "$RANLIB"; then
6257
archive_cmds="$archive_cmds~\$RANLIB \$lib"
6258
postinstall_cmds='$RANLIB $lib'
6263
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6264
test "$enable_shared" = yes && enable_static=no
6268
AC_MSG_RESULT([$enable_shared])
6270
AC_MSG_CHECKING([whether to build static libraries])
6271
# Make sure either enable_shared or enable_static is yes.
6272
test "$enable_shared" = yes || enable_static=yes
6273
AC_MSG_RESULT([$enable_static])
6279
])# _LT_LANG_C_CONFIG
6284
# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
6285
# compiler, we have our own version here.
6286
m4_defun([_LT_PROG_CXX],
6288
pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
6290
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6291
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6292
(test "X$CXX" != "Xg++"))) ; then
6295
_lt_caught_CXX_error=yes
6297
popdef([AC_MSG_ERROR])
6300
dnl aclocal-1.4 backwards compatibility:
6301
dnl AC_DEFUN([_LT_PROG_CXX], [])
6304
# _LT_LANG_CXX_CONFIG([TAG])
6305
# --------------------------
6306
# Ensure that the configuration variables for a C++ compiler are suitably
6307
# defined. These variables are subsequently used by _LT_CONFIG to write
6308
# the compiler configuration to `libtool'.
6309
m4_defun([_LT_LANG_CXX_CONFIG],
6310
[AC_REQUIRE([_LT_PROG_CXX])dnl
6311
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6312
m4_require([_LT_DECL_EGREP])dnl
6315
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6316
_LT_TAGVAR(allow_undefined_flag, $1)=
6317
_LT_TAGVAR(always_export_symbols, $1)=no
6318
_LT_TAGVAR(archive_expsym_cmds, $1)=
6319
_LT_TAGVAR(compiler_needs_object, $1)=no
6320
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
6321
_LT_TAGVAR(hardcode_direct, $1)=no
6322
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
6323
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6324
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6325
_LT_TAGVAR(hardcode_libdir_separator, $1)=
6326
_LT_TAGVAR(hardcode_minus_L, $1)=no
6327
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6328
_LT_TAGVAR(hardcode_automatic, $1)=no
6329
_LT_TAGVAR(inherit_rpath, $1)=no
6330
_LT_TAGVAR(module_cmds, $1)=
6331
_LT_TAGVAR(module_expsym_cmds, $1)=
6332
_LT_TAGVAR(link_all_deplibs, $1)=unknown
6333
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6334
_LT_TAGVAR(no_undefined_flag, $1)=
6335
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6336
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6338
# Source file extension for C++ test sources.
6341
# Object file extension for compiled C++ test sources.
6343
_LT_TAGVAR(objext, $1)=$objext
6345
# No sense in running all these tests if we already determined that
6346
# the CXX compiler isn't working. Some variables (like enable_shared)
6347
# are currently assumed to apply to all compilers on this platform,
6348
# and will be corrupted by setting them based on a non-working compiler.
6349
if test "$_lt_caught_CXX_error" != yes; then
6350
# Code to be used in simple compile tests
6351
lt_simple_compile_test_code="int some_variable = 0;"
6353
# Code to be used in simple link tests
6354
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
6356
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
6359
# save warnings/boilerplate of simple test code
6360
_LT_COMPILER_BOILERPLATE
6361
_LT_LINKER_BOILERPLATE
6363
# Allow CC to be a program name with arguments.
6368
lt_save_with_gnu_ld=$with_gnu_ld
6369
lt_save_path_LD=$lt_cv_path_LD
6370
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
6371
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
6373
$as_unset lt_cv_prog_gnu_ld
6375
if test -n "${lt_cv_path_LDCXX+set}"; then
6376
lt_cv_path_LD=$lt_cv_path_LDCXX
6378
$as_unset lt_cv_path_LD
6380
test -z "${LDCXX+set}" || LD=$LDCXX
6383
_LT_TAGVAR(compiler, $1)=$CC
6384
_LT_CC_BASENAME([$compiler])
6386
if test -n "$compiler"; then
6387
# We don't want -fno-exception when compiling C++ code, so set the
6388
# no_builtin_flag separately
6389
if test "$GXX" = yes; then
6390
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
6392
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
6395
if test "$GXX" = yes; then
6396
# Set up default GNU C++ configuration
6400
# Check if GNU C++ uses GNU ld as the underlying linker, since the
6401
# archiving commands below assume that GNU ld is being used.
6402
if test "$with_gnu_ld" = yes; then
6403
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6404
_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'
6406
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6407
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6409
# If archive_cmds runs LD, not CC, wlarc should be empty
6410
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
6411
# investigate it a little bit more. (MM)
6414
# ancient GNU ld didn't support --whole-archive et. al.
6415
if eval "`$CC -print-prog-name=ld` --help 2>&1" |
6416
$GREP 'no-whole-archive' > /dev/null; then
6417
_LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6419
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6425
# A generic and very simple default shared library creation
6426
# command for GNU C++ for the case where it uses the native
6427
# linker, instead of GNU ld. If possible, this setting should
6428
# overridden to take advantage of the native linker features on
6429
# the platform it is being used on.
6430
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6433
# Commands to make compiler produce verbose output that lists
6434
# what "hidden" libraries, object files and flags are used when
6435
# linking a shared library.
6436
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6444
# PORTME: fill in a description of your system's C++ link characteristics
6445
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
6446
_LT_TAGVAR(ld_shlibs, $1)=yes
6449
# FIXME: insert proper C++ library support
6450
_LT_TAGVAR(ld_shlibs, $1)=no
6453
if test "$host_cpu" = ia64; then
6454
# On IA64, the linker does run time linking by default, so we don't
6455
# have to do anything special.
6456
aix_use_runtimelinking=no
6457
exp_sym_flag='-Bexport'
6460
aix_use_runtimelinking=no
6462
# Test if we are trying to use run time linking or normal
6463
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
6464
# need to do runtime linking.
6465
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
6466
for ld_flag in $LDFLAGS; do
6469
aix_use_runtimelinking=yes
6477
exp_sym_flag='-bexport'
6478
no_entry_flag='-bnoentry'
6481
# When large executables or shared objects are built, AIX ld can
6482
# have problems creating the table of contents. If linking a library
6483
# or program results in "error TOC overflow" add -mminimal-toc to
6484
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6485
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6487
_LT_TAGVAR(archive_cmds, $1)=''
6488
_LT_TAGVAR(hardcode_direct, $1)=yes
6489
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6490
_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6491
_LT_TAGVAR(link_all_deplibs, $1)=yes
6492
_LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
6494
if test "$GXX" = yes; then
6495
case $host_os in aix4.[[012]]|aix4.[[012]].*)
6496
# We only want to do this on AIX 4.2 and lower, the check
6497
# below for broken collect2 doesn't work under 4.3+
6498
collect2name=`${CC} -print-prog-name=collect2`
6499
if test -f "$collect2name" &&
6500
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
6502
# We have reworked collect2
6505
# We have old collect2
6506
_LT_TAGVAR(hardcode_direct, $1)=unsupported
6507
# It fails to find uninstalled libraries when the uninstalled
6508
# path is not listed in the libpath. Setting hardcode_minus_L
6509
# to unsupported forces relinking
6510
_LT_TAGVAR(hardcode_minus_L, $1)=yes
6511
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6512
_LT_TAGVAR(hardcode_libdir_separator, $1)=
6515
shared_flag='-shared'
6516
if test "$aix_use_runtimelinking" = yes; then
6517
shared_flag="$shared_flag "'${wl}-G'
6521
if test "$host_cpu" = ia64; then
6522
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6523
# chokes on -Wl,-G. The following line is correct:
6526
if test "$aix_use_runtimelinking" = yes; then
6527
shared_flag='${wl}-G'
6529
shared_flag='${wl}-bM:SRE'
6534
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
6535
# It seems that -bexpall does not export symbols beginning with
6536
# underscore (_), so it is better to generate a list of symbols to
6538
_LT_TAGVAR(always_export_symbols, $1)=yes
6539
if test "$aix_use_runtimelinking" = yes; then
6540
# Warning - without using the other runtime loading flags (-brtl),
6541
# -berok will link without error, but may produce a broken library.
6542
_LT_TAGVAR(allow_undefined_flag, $1)='-berok'
6543
# Determine the default libpath from the value encoded in an empty
6545
_LT_SYS_MODULE_PATH_AIX
6546
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6548
_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"
6550
if test "$host_cpu" = ia64; then
6551
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6552
_LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6553
_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"
6555
# Determine the default libpath from the value encoded in an
6557
_LT_SYS_MODULE_PATH_AIX
6558
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6559
# Warning - without using the other run time loading flags,
6560
# -berok will link without error, but may produce a broken library.
6561
_LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6562
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6563
# Exported symbols can be pulled into shared objects from archives
6564
_LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6565
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6566
# This is similar to how AIX traditionally builds its shared
6568
_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'
6574
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6575
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6576
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6577
# support --undefined. This deserves some investigation. FIXME
6578
_LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6580
_LT_TAGVAR(ld_shlibs, $1)=no
6585
case $cc_basename in
6587
# FIXME: insert proper C++ library support
6588
_LT_TAGVAR(ld_shlibs, $1)=no
6593
cygwin* | mingw* | pw32* | cegcc*)
6594
# _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6595
# as there is no search path for DLLs.
6596
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6597
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6598
_LT_TAGVAR(always_export_symbols, $1)=no
6599
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6601
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6602
_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'
6603
# If the export-symbols file already is a .def file (1st line
6604
# is EXPORTS), use it as is; otherwise, prepend...
6605
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6606
cp $export_symbols $output_objdir/$soname.def;
6608
echo EXPORTS > $output_objdir/$soname.def;
6609
cat $export_symbols >> $output_objdir/$soname.def;
6611
$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'
6613
_LT_TAGVAR(ld_shlibs, $1)=no
6616
darwin* | rhapsody*)
6617
_LT_DARWIN_LINKER_FEATURES($1)
6621
case $cc_basename in
6623
# FIXME: insert proper C++ library support
6624
_LT_TAGVAR(ld_shlibs, $1)=no
6627
# Green Hills C++ Compiler
6628
# FIXME: insert proper C++ library support
6629
_LT_TAGVAR(ld_shlibs, $1)=no
6632
# FIXME: insert proper C++ library support
6633
_LT_TAGVAR(ld_shlibs, $1)=no
6639
# C++ shared libraries reported to be fairly broken before
6641
_LT_TAGVAR(ld_shlibs, $1)=no
6645
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6648
freebsd* | dragonfly*)
6649
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
6651
_LT_TAGVAR(ld_shlibs, $1)=yes
6658
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6659
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6660
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6661
_LT_TAGVAR(hardcode_direct, $1)=yes
6662
_LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6663
# but as the default
6664
# location of the library.
6666
case $cc_basename in
6668
# FIXME: insert proper C++ library support
6669
_LT_TAGVAR(ld_shlibs, $1)=no
6672
_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'
6673
# Commands to make compiler produce verbose output that lists
6674
# what "hidden" libraries, object files and flags are used when
6675
# linking a shared library.
6677
# There doesn't appear to be a way to prevent this compiler from
6678
# explicitly linking system object files so we need to strip them
6679
# from the output so that they don't get included in the library
6681
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'
6684
if test "$GXX" = yes; then
6685
_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'
6687
# FIXME: insert proper C++ library support
6688
_LT_TAGVAR(ld_shlibs, $1)=no
6695
if test $with_gnu_ld = no; then
6696
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6697
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6703
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6709
_LT_TAGVAR(hardcode_direct, $1)=no
6710
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6713
_LT_TAGVAR(hardcode_direct, $1)=yes
6714
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6715
_LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6716
# but as the default
6717
# location of the library.
6721
case $cc_basename in
6723
# FIXME: insert proper C++ library support
6724
_LT_TAGVAR(ld_shlibs, $1)=no
6729
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6732
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6735
_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'
6738
# Commands to make compiler produce verbose output that lists
6739
# what "hidden" libraries, object files and flags are used when
6740
# linking a shared library.
6742
# There doesn't appear to be a way to prevent this compiler from
6743
# explicitly linking system object files so we need to strip them
6744
# from the output so that they don't get included in the library
6746
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'
6749
if test "$GXX" = yes; then
6750
if test $with_gnu_ld = no; then
6753
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6756
_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'
6759
_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'
6764
# FIXME: insert proper C++ library support
6765
_LT_TAGVAR(ld_shlibs, $1)=no
6772
_LT_TAGVAR(hardcode_direct, $1)=no
6773
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6774
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6775
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6776
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6777
# Instead, shared libraries are loaded at an image base (0x10000000 by
6778
# default) and relocated if they conflict, which is a slow very memory
6779
# consuming and fragmenting process. To avoid this, we pick a random,
6780
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6781
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
6782
_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'
6783
_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'
6786
case $cc_basename in
6789
_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'
6791
# Archives containing C++ object files must be created using
6792
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
6793
# necessary to make sure instantiated templates are included
6795
_LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
6798
if test "$GXX" = yes; then
6799
if test "$with_gnu_ld" = no; then
6800
_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'
6802
_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'
6805
_LT_TAGVAR(link_all_deplibs, $1)=yes
6808
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6809
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6810
_LT_TAGVAR(inherit_rpath, $1)=yes
6813
linux* | k*bsd*-gnu)
6814
case $cc_basename in
6816
# Kuck and Associates, Inc. (KAI) C++ Compiler
6818
# KCC will only create a shared library if the output file
6819
# ends with ".so" (or ".sl" for HP-UX), so rename the library
6820
# to its proper name (with version) after linking.
6821
_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'
6822
_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'
6823
# Commands to make compiler produce verbose output that lists
6824
# what "hidden" libraries, object files and flags are used when
6825
# linking a shared library.
6827
# There doesn't appear to be a way to prevent this compiler from
6828
# explicitly linking system object files so we need to strip them
6829
# from the output so that they don't get included in the library
6831
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'
6833
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6834
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6836
# Archives containing C++ object files must be created using
6837
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
6838
_LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
6843
# version 8.0 and above of icpc choke on multiply defined symbols
6844
# if we add $predep_objects and $postdep_objects, however 7.1 and
6845
# earlier do not add the objects themselves.
6846
case `$CC -V 2>&1` in
6848
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6849
_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'
6851
*) # Version 8.0 or newer
6854
ia64*) tmp_idyn=' -i_dynamic';;
6856
_LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6857
_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'
6860
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6861
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6862
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6863
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6866
# Portland Group C++ compiler
6868
*pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
6869
_LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
6871
$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
6872
compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
6873
_LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
6875
$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
6876
$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
6878
_LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
6880
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6881
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6882
_LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
6884
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6885
$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'
6887
*) # Version 6 will use weak symbols
6888
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6889
_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'
6893
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6894
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6895
_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'
6899
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6900
_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'
6902
runpath_var=LD_RUN_PATH
6903
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6904
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6906
# Commands to make compiler produce verbose output that lists
6907
# what "hidden" libraries, object files and flags are used when
6908
# linking a shared library.
6910
# There doesn't appear to be a way to prevent this compiler from
6911
# explicitly linking system object files so we need to strip them
6912
# from the output so that they don't get included in the library
6914
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'
6917
# IBM XL 8.0 on PPC, with GNU ld
6918
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6919
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6920
_LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6921
if test "x$supports_anon_versioning" = xyes; then
6922
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
6923
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6924
echo "local: *; };" >> $output_objdir/$libname.ver~
6925
$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6929
case `$CC -V 2>&1 | sed 5q` in
6932
_LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6933
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6934
_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'
6935
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6936
_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'
6937
_LT_TAGVAR(compiler_needs_object, $1)=yes
6939
# Not sure whether something based on
6940
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
6942
output_verbose_link_cmd='echo'
6944
# Archives containing C++ object files must be created using
6945
# "CC -xar", where "CC" is the Sun C++ compiler. This is
6946
# necessary to make sure instantiated templates are included
6948
_LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6956
# FIXME: insert proper C++ library support
6957
_LT_TAGVAR(ld_shlibs, $1)=no
6961
# FIXME: insert proper C++ library support
6962
_LT_TAGVAR(ld_shlibs, $1)=no
6966
case $cc_basename in
6968
# FIXME: insert proper C++ library support
6969
_LT_TAGVAR(ld_shlibs, $1)=no
6972
# FIXME: insert proper C++ library support
6973
_LT_TAGVAR(ld_shlibs, $1)=no
6979
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6980
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
6982
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6983
_LT_TAGVAR(hardcode_direct, $1)=yes
6984
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6986
# Workaround some broken pre-1.5 toolchains
6987
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
6991
_LT_TAGVAR(ld_shlibs, $1)=yes
6995
# C++ shared libraries are fairly broken
6996
_LT_TAGVAR(ld_shlibs, $1)=no
7000
if test -f /usr/libexec/ld.so; then
7001
_LT_TAGVAR(hardcode_direct, $1)=yes
7002
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7003
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
7004
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
7005
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7006
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7007
_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'
7008
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7009
_LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7011
output_verbose_link_cmd=echo
7013
_LT_TAGVAR(ld_shlibs, $1)=no
7017
osf3* | osf4* | osf5*)
7018
case $cc_basename in
7020
# Kuck and Associates, Inc. (KAI) C++ Compiler
7022
# KCC will only create a shared library if the output file
7023
# ends with ".so" (or ".sl" for HP-UX), so rename the library
7024
# to its proper name (with version) after linking.
7025
_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'
7027
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7028
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
7030
# Archives containing C++ object files must be created using
7031
# the KAI C++ compiler.
7033
osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
7034
*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
7038
# Rational C++ 2.4.1
7039
# FIXME: insert proper C++ library support
7040
_LT_TAGVAR(ld_shlibs, $1)=no
7045
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7046
_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'
7047
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7050
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
7051
_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'
7052
_LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
7053
echo "-hidden">> $lib.exp~
7054
$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~
7056
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
7060
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
7062
# Commands to make compiler produce verbose output that lists
7063
# what "hidden" libraries, object files and flags are used when
7064
# linking a shared library.
7066
# There doesn't appear to be a way to prevent this compiler from
7067
# explicitly linking system object files so we need to strip them
7068
# from the output so that they don't get included in the library
7070
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'
7073
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
7074
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7077
_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'
7080
_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'
7084
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7085
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
7087
# Commands to make compiler produce verbose output that lists
7088
# what "hidden" libraries, object files and flags are used when
7089
# linking a shared library.
7090
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
7093
# FIXME: insert proper C++ library support
7094
_LT_TAGVAR(ld_shlibs, $1)=no
7101
# FIXME: insert proper C++ library support
7102
_LT_TAGVAR(ld_shlibs, $1)=no
7106
case $cc_basename in
7109
# FIXME: insert proper C++ library support
7110
_LT_TAGVAR(ld_shlibs, $1)=no
7114
# FIXME: insert proper C++ library support
7115
_LT_TAGVAR(ld_shlibs, $1)=no
7118
# FIXME: insert proper C++ library support
7119
_LT_TAGVAR(ld_shlibs, $1)=no
7125
case $cc_basename in
7127
# Sun C++ 4.2, 5.x and Centerline C++
7128
_LT_TAGVAR(archive_cmds_need_lc,$1)=yes
7129
_LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
7130
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7131
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7132
$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'
7134
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7135
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7137
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7139
# The compiler driver will combine and reorder linker options,
7140
# but understands `-z linker_flag'.
7141
# Supported since Solaris 2.6 (maybe 2.5.1?)
7142
_LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
7145
_LT_TAGVAR(link_all_deplibs, $1)=yes
7147
output_verbose_link_cmd='echo'
7149
# Archives containing C++ object files must be created using
7150
# "CC -xar", where "CC" is the Sun C++ compiler. This is
7151
# necessary to make sure instantiated templates are included
7153
_LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
7156
# Green Hills C++ Compiler
7157
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
7159
# The C++ compiler must be used to create the archive.
7160
_LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
7163
# GNU C++ compiler with Solaris linker
7164
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
7165
_LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
7166
if $CC --version | $GREP -v '^2\.7' > /dev/null; then
7167
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
7168
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7169
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
7171
# Commands to make compiler produce verbose output that lists
7172
# what "hidden" libraries, object files and flags are used when
7173
# linking a shared library.
7174
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
7176
# g++ 2.7 appears to require `-G' NOT `-shared' on this
7178
_LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
7179
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7180
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
7182
# Commands to make compiler produce verbose output that lists
7183
# what "hidden" libraries, object files and flags are used when
7184
# linking a shared library.
7185
output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
7188
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
7190
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7192
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7200
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
7201
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7202
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7203
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7204
runpath_var='LD_RUN_PATH'
7206
case $cc_basename in
7208
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7209
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7212
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7213
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7218
sysv5* | sco3.2v5* | sco5v6*)
7219
# Note: We can NOT use -z defs as we might desire, because we do not
7220
# link with -lc, and that would cause any symbols used from libc to
7221
# always be unresolved, which means just about no library would
7222
# ever link correctly. If we're not using GNU ld we use -z text
7223
# though, which does catch some bad symbols but isn't as heavy-handed
7225
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7226
_LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
7227
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7228
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7229
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
7230
_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
7231
_LT_TAGVAR(link_all_deplibs, $1)=yes
7232
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
7233
runpath_var='LD_RUN_PATH'
7235
case $cc_basename in
7237
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7238
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7241
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7242
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7248
case $cc_basename in
7250
# NonStop-UX NCC 3.20
7251
# FIXME: insert proper C++ library support
7252
_LT_TAGVAR(ld_shlibs, $1)=no
7255
# FIXME: insert proper C++ library support
7256
_LT_TAGVAR(ld_shlibs, $1)=no
7262
# FIXME: insert proper C++ library support
7263
_LT_TAGVAR(ld_shlibs, $1)=no
7267
# FIXME: insert proper C++ library support
7268
_LT_TAGVAR(ld_shlibs, $1)=no
7272
AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
7273
test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
7275
_LT_TAGVAR(GCC, $1)="$GXX"
7276
_LT_TAGVAR(LD, $1)="$LD"
7279
## There is no encapsulation within the following macros, do not change
7280
## the running order or otherwise move them around unless you know exactly
7281
## what you are doing...
7282
_LT_SYS_HIDDEN_LIBDEPS($1)
7283
_LT_COMPILER_PIC($1)
7284
_LT_COMPILER_C_O($1)
7285
_LT_COMPILER_FILE_LOCKS($1)
7286
_LT_LINKER_SHLIBS($1)
7287
_LT_SYS_DYNAMIC_LINKER($1)
7288
_LT_LINKER_HARDCODE_LIBPATH($1)
7291
fi # test -n "$compiler"
7297
with_gnu_ld=$lt_save_with_gnu_ld
7298
lt_cv_path_LDCXX=$lt_cv_path_LD
7299
lt_cv_path_LD=$lt_save_path_LD
7300
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
7301
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
7302
fi # test "$_lt_caught_CXX_error" != yes
7305
])# _LT_LANG_CXX_CONFIG
7308
# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
7309
# ---------------------------------
7310
# Figure out "hidden" library dependencies from verbose
7311
# compiler output when linking a shared library.
7312
# Parse the compiler output and extract the necessary
7313
# objects, libraries and library flags.
7314
m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
7315
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
7316
# Dependencies to place before and after the object being linked:
7317
_LT_TAGVAR(predep_objects, $1)=
7318
_LT_TAGVAR(postdep_objects, $1)=
7319
_LT_TAGVAR(predeps, $1)=
7320
_LT_TAGVAR(postdeps, $1)=
7321
_LT_TAGVAR(compiler_lib_search_path, $1)=
7323
dnl we can't use the lt_simple_compile_test_code here,
7324
dnl because it contains code intended for an executable,
7325
dnl not a library. It's possible we should let each
7326
dnl tag define a new lt_????_link_test_code variable,
7327
dnl but it's only used here...
7328
m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
7330
void foo (void) { a = 0; }
7332
], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
7336
Foo (void) { a = 0; }
7341
], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
7349
], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
7357
], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
7360
public void bar (void) {
7366
dnl Parse the compiler output and extract the necessary
7367
dnl objects, libraries and library flags.
7368
if AC_TRY_EVAL(ac_compile); then
7369
# Parse the compiler output and extract the necessary
7370
# objects, libraries and library flags.
7372
# Sentinel used to keep track of whether or not we are before
7373
# the conftest object file.
7374
pre_test_object_deps_done=no
7376
for p in `eval "$output_verbose_link_cmd"`; do
7380
# Some compilers place space between "-{L,R}" and the path.
7382
if test $p = "-L" ||
7383
test $p = "-R"; then
7390
if test "$pre_test_object_deps_done" = no; then
7393
# Internal compiler library paths should come after those
7394
# provided the user. The postdeps already come after the
7395
# user supplied libs so there is no need to process them.
7396
if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
7397
_LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
7399
_LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
7402
# The "-l" case would never come before the object being
7403
# linked, so don't bother handling this case.
7406
if test -z "$_LT_TAGVAR(postdeps, $1)"; then
7407
_LT_TAGVAR(postdeps, $1)="${prev}${p}"
7409
_LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
7415
# This assumes that the test object file only shows up
7416
# once in the compiler output.
7417
if test "$p" = "conftest.$objext"; then
7418
pre_test_object_deps_done=yes
7422
if test "$pre_test_object_deps_done" = no; then
7423
if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
7424
_LT_TAGVAR(predep_objects, $1)="$p"
7426
_LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
7429
if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
7430
_LT_TAGVAR(postdep_objects, $1)="$p"
7432
_LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
7437
*) ;; # Ignore the rest.
7445
echo "libtool.m4: error: problem compiling $1 test program"
7448
$RM -f confest.$objext
7450
# PORTME: override above test on systems where it is broken
7454
# Interix 3.5 installs completely hosed .la files for C++, so rather than
7455
# hack all around it, let's just trust "g++" to DTRT.
7456
_LT_TAGVAR(predep_objects,$1)=
7457
_LT_TAGVAR(postdep_objects,$1)=
7458
_LT_TAGVAR(postdeps,$1)=
7462
case `$CC -V 2>&1 | sed 5q` in
7466
# The more standards-conforming stlport4 library is
7467
# incompatible with the Cstd library. Avoid specifying
7468
# it if it's in CXXFLAGS. Ignore libCrun as
7469
# -library=stlport4 depends on it.
7470
case " $CXX $CXXFLAGS " in
7471
*" -library=stlport4 "*)
7472
solaris_use_stlport4=yes
7476
if test "$solaris_use_stlport4" != yes; then
7477
_LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7484
case $cc_basename in
7486
# The more standards-conforming stlport4 library is
7487
# incompatible with the Cstd library. Avoid specifying
7488
# it if it's in CXXFLAGS. Ignore libCrun as
7489
# -library=stlport4 depends on it.
7490
case " $CXX $CXXFLAGS " in
7491
*" -library=stlport4 "*)
7492
solaris_use_stlport4=yes
7496
# Adding this requires a known-good setup of shared libraries for
7497
# Sun compiler versions before 5.6, else PIC objects from an old
7498
# archive will be linked into the output, leading to subtle bugs.
7499
if test "$solaris_use_stlport4" != yes; then
7500
_LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7508
case " $_LT_TAGVAR(postdeps, $1) " in
7509
*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
7511
_LT_TAGVAR(compiler_lib_search_dirs, $1)=
7512
if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
7513
_LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
7515
_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
7516
[The directories searched by this compiler when creating a shared library])
7517
_LT_TAGDECL([], [predep_objects], [1],
7518
[Dependencies to place before and after the objects being linked to
7519
create a shared library])
7520
_LT_TAGDECL([], [postdep_objects], [1])
7521
_LT_TAGDECL([], [predeps], [1])
7522
_LT_TAGDECL([], [postdeps], [1])
7523
_LT_TAGDECL([], [compiler_lib_search_path], [1],
7524
[The library search path used internally by the compiler when linking
7526
])# _LT_SYS_HIDDEN_LIBDEPS
7531
# Since AC_PROG_F77 is broken, in that it returns the empty string
7532
# if there is no fortran compiler, we have our own version here.
7533
m4_defun([_LT_PROG_F77],
7535
pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
7537
if test -z "$F77" || test "X$F77" = "Xno"; then
7540
popdef([AC_MSG_ERROR])
7543
dnl aclocal-1.4 backwards compatibility:
7544
dnl AC_DEFUN([_LT_PROG_F77], [])
7547
# _LT_LANG_F77_CONFIG([TAG])
7548
# --------------------------
7549
# Ensure that the configuration variables for a Fortran 77 compiler are
7550
# suitably defined. These variables are subsequently used by _LT_CONFIG
7551
# to write the compiler configuration to `libtool'.
7552
m4_defun([_LT_LANG_F77_CONFIG],
7553
[AC_REQUIRE([_LT_PROG_F77])dnl
7554
AC_LANG_PUSH(Fortran 77)
7556
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7557
_LT_TAGVAR(allow_undefined_flag, $1)=
7558
_LT_TAGVAR(always_export_symbols, $1)=no
7559
_LT_TAGVAR(archive_expsym_cmds, $1)=
7560
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
7561
_LT_TAGVAR(hardcode_direct, $1)=no
7562
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
7563
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7564
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7565
_LT_TAGVAR(hardcode_libdir_separator, $1)=
7566
_LT_TAGVAR(hardcode_minus_L, $1)=no
7567
_LT_TAGVAR(hardcode_automatic, $1)=no
7568
_LT_TAGVAR(inherit_rpath, $1)=no
7569
_LT_TAGVAR(module_cmds, $1)=
7570
_LT_TAGVAR(module_expsym_cmds, $1)=
7571
_LT_TAGVAR(link_all_deplibs, $1)=unknown
7572
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7573
_LT_TAGVAR(no_undefined_flag, $1)=
7574
_LT_TAGVAR(whole_archive_flag_spec, $1)=
7575
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7577
# Source file extension for f77 test sources.
7580
# Object file extension for compiled f77 test sources.
7582
_LT_TAGVAR(objext, $1)=$objext
7584
# No sense in running all these tests if we already determined that
7585
# the F77 compiler isn't working. Some variables (like enable_shared)
7586
# are currently assumed to apply to all compilers on this platform,
7587
# and will be corrupted by setting them based on a non-working compiler.
7588
if test "$_lt_disable_F77" != yes; then
7589
# Code to be used in simple compile tests
7590
lt_simple_compile_test_code="\
7596
# Code to be used in simple link tests
7597
lt_simple_link_test_code="\
7602
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7605
# save warnings/boilerplate of simple test code
7606
_LT_COMPILER_BOILERPLATE
7607
_LT_LINKER_BOILERPLATE
7609
# Allow CC to be a program name with arguments.
7614
_LT_TAGVAR(compiler, $1)=$CC
7615
_LT_CC_BASENAME([$compiler])
7617
if test -n "$compiler"; then
7618
AC_MSG_CHECKING([if libtool supports shared libraries])
7619
AC_MSG_RESULT([$can_build_shared])
7621
AC_MSG_CHECKING([whether to build shared libraries])
7622
test "$can_build_shared" = "no" && enable_shared=no
7624
# On AIX, shared libraries and static libraries use the same namespace, and
7625
# are all built from PIC.
7628
test "$enable_shared" = yes && enable_static=no
7629
if test -n "$RANLIB"; then
7630
archive_cmds="$archive_cmds~\$RANLIB \$lib"
7631
postinstall_cmds='$RANLIB $lib'
7635
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7636
test "$enable_shared" = yes && enable_static=no
7640
AC_MSG_RESULT([$enable_shared])
7642
AC_MSG_CHECKING([whether to build static libraries])
7643
# Make sure either enable_shared or enable_static is yes.
7644
test "$enable_shared" = yes || enable_static=yes
7645
AC_MSG_RESULT([$enable_static])
7647
_LT_TAGVAR(GCC, $1)="$G77"
7648
_LT_TAGVAR(LD, $1)="$LD"
7651
## There is no encapsulation within the following macros, do not change
7652
## the running order or otherwise move them around unless you know exactly
7653
## what you are doing...
7654
_LT_COMPILER_PIC($1)
7655
_LT_COMPILER_C_O($1)
7656
_LT_COMPILER_FILE_LOCKS($1)
7657
_LT_LINKER_SHLIBS($1)
7658
_LT_SYS_DYNAMIC_LINKER($1)
7659
_LT_LINKER_HARDCODE_LIBPATH($1)
7662
fi # test -n "$compiler"
7666
fi # test "$_lt_disable_F77" != yes
7669
])# _LT_LANG_F77_CONFIG
7674
# Since AC_PROG_FC is broken, in that it returns the empty string
7675
# if there is no fortran compiler, we have our own version here.
7676
m4_defun([_LT_PROG_FC],
7678
pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
7680
if test -z "$FC" || test "X$FC" = "Xno"; then
7683
popdef([AC_MSG_ERROR])
7686
dnl aclocal-1.4 backwards compatibility:
7687
dnl AC_DEFUN([_LT_PROG_FC], [])
7690
# _LT_LANG_FC_CONFIG([TAG])
7691
# -------------------------
7692
# Ensure that the configuration variables for a Fortran compiler are
7693
# suitably defined. These variables are subsequently used by _LT_CONFIG
7694
# to write the compiler configuration to `libtool'.
7695
m4_defun([_LT_LANG_FC_CONFIG],
7696
[AC_REQUIRE([_LT_PROG_FC])dnl
7697
AC_LANG_PUSH(Fortran)
7699
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7700
_LT_TAGVAR(allow_undefined_flag, $1)=
7701
_LT_TAGVAR(always_export_symbols, $1)=no
7702
_LT_TAGVAR(archive_expsym_cmds, $1)=
7703
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
7704
_LT_TAGVAR(hardcode_direct, $1)=no
7705
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
7706
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7707
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7708
_LT_TAGVAR(hardcode_libdir_separator, $1)=
7709
_LT_TAGVAR(hardcode_minus_L, $1)=no
7710
_LT_TAGVAR(hardcode_automatic, $1)=no
7711
_LT_TAGVAR(inherit_rpath, $1)=no
7712
_LT_TAGVAR(module_cmds, $1)=
7713
_LT_TAGVAR(module_expsym_cmds, $1)=
7714
_LT_TAGVAR(link_all_deplibs, $1)=unknown
7715
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7716
_LT_TAGVAR(no_undefined_flag, $1)=
7717
_LT_TAGVAR(whole_archive_flag_spec, $1)=
7718
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7720
# Source file extension for fc test sources.
7721
ac_ext=${ac_fc_srcext-f}
7723
# Object file extension for compiled fc test sources.
7725
_LT_TAGVAR(objext, $1)=$objext
7727
# No sense in running all these tests if we already determined that
7728
# the FC compiler isn't working. Some variables (like enable_shared)
7729
# are currently assumed to apply to all compilers on this platform,
7730
# and will be corrupted by setting them based on a non-working compiler.
7731
if test "$_lt_disable_FC" != yes; then
7732
# Code to be used in simple compile tests
7733
lt_simple_compile_test_code="\
7739
# Code to be used in simple link tests
7740
lt_simple_link_test_code="\
7745
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7748
# save warnings/boilerplate of simple test code
7749
_LT_COMPILER_BOILERPLATE
7750
_LT_LINKER_BOILERPLATE
7752
# Allow CC to be a program name with arguments.
7757
GCC=$ac_cv_fc_compiler_gnu
7759
_LT_TAGVAR(compiler, $1)=$CC
7760
_LT_CC_BASENAME([$compiler])
7762
if test -n "$compiler"; then
7763
AC_MSG_CHECKING([if libtool supports shared libraries])
7764
AC_MSG_RESULT([$can_build_shared])
7766
AC_MSG_CHECKING([whether to build shared libraries])
7767
test "$can_build_shared" = "no" && enable_shared=no
7769
# On AIX, shared libraries and static libraries use the same namespace, and
7770
# are all built from PIC.
7773
test "$enable_shared" = yes && enable_static=no
7774
if test -n "$RANLIB"; then
7775
archive_cmds="$archive_cmds~\$RANLIB \$lib"
7776
postinstall_cmds='$RANLIB $lib'
7780
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7781
test "$enable_shared" = yes && enable_static=no
7785
AC_MSG_RESULT([$enable_shared])
7787
AC_MSG_CHECKING([whether to build static libraries])
7788
# Make sure either enable_shared or enable_static is yes.
7789
test "$enable_shared" = yes || enable_static=yes
7790
AC_MSG_RESULT([$enable_static])
7792
_LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
7793
_LT_TAGVAR(LD, $1)="$LD"
7796
## There is no encapsulation within the following macros, do not change
7797
## the running order or otherwise move them around unless you know exactly
7798
## what you are doing...
7799
_LT_SYS_HIDDEN_LIBDEPS($1)
7800
_LT_COMPILER_PIC($1)
7801
_LT_COMPILER_C_O($1)
7802
_LT_COMPILER_FILE_LOCKS($1)
7803
_LT_LINKER_SHLIBS($1)
7804
_LT_SYS_DYNAMIC_LINKER($1)
7805
_LT_LINKER_HARDCODE_LIBPATH($1)
7808
fi # test -n "$compiler"
7812
fi # test "$_lt_disable_FC" != yes
7815
])# _LT_LANG_FC_CONFIG
7818
# _LT_LANG_GCJ_CONFIG([TAG])
7819
# --------------------------
7820
# Ensure that the configuration variables for the GNU Java Compiler compiler
7821
# are suitably defined. These variables are subsequently used by _LT_CONFIG
7822
# to write the compiler configuration to `libtool'.
7823
m4_defun([_LT_LANG_GCJ_CONFIG],
7824
[AC_REQUIRE([LT_PROG_GCJ])dnl
7827
# Source file extension for Java test sources.
7830
# Object file extension for compiled Java test sources.
7832
_LT_TAGVAR(objext, $1)=$objext
7834
# Code to be used in simple compile tests
7835
lt_simple_compile_test_code="class foo {}"
7837
# Code to be used in simple link tests
7838
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
7840
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7843
# save warnings/boilerplate of simple test code
7844
_LT_COMPILER_BOILERPLATE
7845
_LT_LINKER_BOILERPLATE
7847
# Allow CC to be a program name with arguments.
7853
_LT_TAGVAR(compiler, $1)=$CC
7854
_LT_TAGVAR(LD, $1)="$LD"
7855
_LT_CC_BASENAME([$compiler])
7857
# GCJ did not exist at the time GCC didn't implicitly link libc in.
7858
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7860
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7862
if test -n "$compiler"; then
7863
_LT_COMPILER_NO_RTTI($1)
7864
_LT_COMPILER_PIC($1)
7865
_LT_COMPILER_C_O($1)
7866
_LT_COMPILER_FILE_LOCKS($1)
7867
_LT_LINKER_SHLIBS($1)
7868
_LT_LINKER_HARDCODE_LIBPATH($1)
7877
])# _LT_LANG_GCJ_CONFIG
7880
# _LT_LANG_RC_CONFIG([TAG])
7881
# -------------------------
7882
# Ensure that the configuration variables for the Windows resource compiler
7883
# are suitably defined. These variables are subsequently used by _LT_CONFIG
7884
# to write the compiler configuration to `libtool'.
7885
m4_defun([_LT_LANG_RC_CONFIG],
7886
[AC_REQUIRE([LT_PROG_RC])dnl
7889
# Source file extension for RC test sources.
7892
# Object file extension for compiled RC test sources.
7894
_LT_TAGVAR(objext, $1)=$objext
7896
# Code to be used in simple compile tests
7897
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
7899
# Code to be used in simple link tests
7900
lt_simple_link_test_code="$lt_simple_compile_test_code"
7902
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7905
# save warnings/boilerplate of simple test code
7906
_LT_COMPILER_BOILERPLATE
7907
_LT_LINKER_BOILERPLATE
7909
# Allow CC to be a program name with arguments.
7915
_LT_TAGVAR(compiler, $1)=$CC
7916
_LT_CC_BASENAME([$compiler])
7917
_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
7919
if test -n "$compiler"; then
7927
])# _LT_LANG_RC_CONFIG
7932
AC_DEFUN([LT_PROG_GCJ],
7933
[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
7934
[m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
7935
[AC_CHECK_TOOL(GCJ, gcj,)
7936
test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
7937
AC_SUBST(GCJFLAGS)])])[]dnl
7941
AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
7942
dnl aclocal-1.4 backwards compatibility:
7943
dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
7948
AC_DEFUN([LT_PROG_RC],
7949
[AC_CHECK_TOOL(RC, windres,)
7953
AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
7954
dnl aclocal-1.4 backwards compatibility:
7955
dnl AC_DEFUN([LT_AC_PROG_RC], [])
7960
# If we don't have a new enough Autoconf to choose the best grep
7961
# available, choose the one first in the user's PATH.
7962
m4_defun([_LT_DECL_EGREP],
7963
[AC_REQUIRE([AC_PROG_EGREP])dnl
7964
AC_REQUIRE([AC_PROG_FGREP])dnl
7965
test -z "$GREP" && GREP=grep
7966
_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
7967
_LT_DECL([], [EGREP], [1], [An ERE matcher])
7968
_LT_DECL([], [FGREP], [1], [A literal string matcher])
7969
dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
7976
# If we don't have a new enough Autoconf to choose the best objdump
7977
# available, choose the one first in the user's PATH.
7978
m4_defun([_LT_DECL_OBJDUMP],
7979
[AC_CHECK_TOOL(OBJDUMP, objdump, false)
7980
test -z "$OBJDUMP" && OBJDUMP=objdump
7981
_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
7988
# Check for a fully-functional sed program, that truncates
7989
# as few characters as possible. Prefer GNU sed if found.
7990
m4_defun([_LT_DECL_SED],
7992
test -z "$SED" && SED=sed
7993
Xsed="$SED -e 1s/^X//"
7994
_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
7995
_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
7996
[Sed that helps us avoid accidentally triggering echo(1) options like -n])
7999
m4_ifndef([AC_PROG_SED], [
8000
# NOTE: This macro has been submitted for inclusion into #
8001
# GNU Autoconf as AC_PROG_SED. When it is available in #
8002
# a released version of Autoconf we should remove this #
8003
# macro and use it instead. #
8005
m4_defun([AC_PROG_SED],
8006
[AC_MSG_CHECKING([for a sed that does not truncate output])
8007
AC_CACHE_VAL(lt_cv_path_SED,
8008
[# Loop through the user's path and test for sed and gsed.
8009
# Then use that list of sed's as ones to test for truncation.
8010
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8014
test -z "$as_dir" && as_dir=.
8015
for lt_ac_prog in sed gsed; do
8016
for ac_exec_ext in '' $ac_executable_extensions; do
8017
if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
8018
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
8026
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
8027
# along with /bin/sed that truncates output.
8028
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
8029
test ! -f $lt_ac_sed && continue
8030
cat /dev/null > conftest.in
8032
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
8033
# Check for GNU sed and select it if it is found.
8034
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
8035
lt_cv_path_SED=$lt_ac_sed
8039
cat conftest.in conftest.in >conftest.tmp
8040
mv conftest.tmp conftest.in
8041
cp conftest.in conftest.nl
8043
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
8044
cmp -s conftest.out conftest.nl || break
8045
# 10000 chars as input seems more than enough
8046
test $lt_ac_count -gt 10 && break
8047
lt_ac_count=`expr $lt_ac_count + 1`
8048
if test $lt_ac_count -gt $lt_ac_max; then
8049
lt_ac_max=$lt_ac_count
8050
lt_cv_path_SED=$lt_ac_sed
8057
AC_MSG_RESULT([$SED])
8062
AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
8063
dnl aclocal-1.4 backwards compatibility:
8064
dnl AC_DEFUN([LT_AC_PROG_SED], [])
8067
# _LT_CHECK_SHELL_FEATURES
8068
# ------------------------
8069
# Find out whether the shell is Bourne or XSI compatible,
8070
# or has some other useful features.
8071
m4_defun([_LT_CHECK_SHELL_FEATURES],
8072
[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
8073
# Try some XSI features
8076
test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
8078
&& eval 'test $(( 1 + 1 )) -eq 2 \
8079
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
8081
AC_MSG_RESULT([$xsi_shell])
8082
_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
8084
AC_MSG_CHECKING([whether the shell understands "+="])
8086
( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
8088
&& lt_shell_append=yes
8089
AC_MSG_RESULT([$lt_shell_append])
8090
_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
8092
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8097
_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
8099
# test EBCDIC or ASCII
8100
case `echo X|tr X '\101'` in
8101
A) # ASCII based system
8102
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8103
lt_SP2NL='tr \040 \012'
8104
lt_NL2SP='tr \015\012 \040\040'
8106
*) # EBCDIC based system
8107
lt_SP2NL='tr \100 \n'
8108
lt_NL2SP='tr \r\n \100\100'
8111
_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
8112
_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
8113
])# _LT_CHECK_SHELL_FEATURES
8116
# _LT_PROG_XSI_SHELLFNS
8117
# ---------------------
8118
# Bourne and XSI compatible variants of some useful shell functions.
8119
m4_defun([_LT_PROG_XSI_SHELLFNS],
8122
cat << \_LT_EOF >> "$cfgfile"
8124
# func_dirname file append nondir_replacement
8125
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
8126
# otherwise set result to NONDIR_REPLACEMENT.
8130
*/*) func_dirname_result="${1%/*}${2}" ;;
8131
* ) func_dirname_result="${3}" ;;
8135
# func_basename file
8138
func_basename_result="${1##*/}"
8141
# func_dirname_and_basename file append nondir_replacement
8142
# perform func_basename and func_dirname in a single function
8144
# dirname: Compute the dirname of FILE. If nonempty,
8145
# add APPEND to the result, otherwise set result
8146
# to NONDIR_REPLACEMENT.
8147
# value returned in "$func_dirname_result"
8148
# basename: Compute filename of FILE.
8149
# value retuned in "$func_basename_result"
8150
# Implementation must be kept synchronized with func_dirname
8151
# and func_basename. For efficiency, we do not delegate to
8152
# those functions but instead duplicate the functionality here.
8153
func_dirname_and_basename ()
8156
*/*) func_dirname_result="${1%/*}${2}" ;;
8157
* ) func_dirname_result="${3}" ;;
8159
func_basename_result="${1##*/}"
8162
# func_stripname prefix suffix name
8163
# strip PREFIX and SUFFIX off of NAME.
8164
# PREFIX and SUFFIX must not contain globbing or regex special
8165
# characters, hashes, percent signs, but SUFFIX may contain a leading
8166
# dot (in which case that matches only a dot).
8169
# pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
8170
# positional parameters, so assign one to ordinary parameter first.
8171
func_stripname_result=${3}
8172
func_stripname_result=${func_stripname_result#"${1}"}
8173
func_stripname_result=${func_stripname_result%"${2}"}
8179
func_opt_split_opt=${1%%=*}
8180
func_opt_split_arg=${1#*=}
8187
*.lo) func_lo2o_result=${1%.lo}.${objext} ;;
8188
*) func_lo2o_result=${1} ;;
8192
# func_xform libobj-or-source
8195
func_xform_result=${1%.*}.lo
8198
# func_arith arithmetic-term...
8201
func_arith_result=$(( $[*] ))
8205
# STRING may not start with a hyphen.
8208
func_len_result=${#1}
8213
*) # Bourne compatible functions.
8214
cat << \_LT_EOF >> "$cfgfile"
8216
# func_dirname file append nondir_replacement
8217
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
8218
# otherwise set result to NONDIR_REPLACEMENT.
8221
# Extract subdirectory from the argument.
8222
func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
8223
if test "X$func_dirname_result" = "X${1}"; then
8224
func_dirname_result="${3}"
8226
func_dirname_result="$func_dirname_result${2}"
8230
# func_basename file
8233
func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
8236
dnl func_dirname_and_basename
8237
dnl A portable version of this function is already defined in general.m4sh
8238
dnl so there is no need for it here.
8240
# func_stripname prefix suffix name
8241
# strip PREFIX and SUFFIX off of NAME.
8242
# PREFIX and SUFFIX must not contain globbing or regex special
8243
# characters, hashes, percent signs, but SUFFIX may contain a leading
8244
# dot (in which case that matches only a dot).
8245
# func_strip_suffix prefix name
8249
.*) func_stripname_result=`$ECHO "X${3}" \
8250
| $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
8251
*) func_stripname_result=`$ECHO "X${3}" \
8252
| $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
8257
my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
8258
my_sed_long_arg='1s/^-[[^=]]*=//'
8263
func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
8264
func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
8270
func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
8273
# func_xform libobj-or-source
8276
func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
8279
# func_arith arithmetic-term...
8282
func_arith_result=`expr "$[@]"`
8286
# STRING may not start with a hyphen.
8289
func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
8295
case $lt_shell_append in
8297
cat << \_LT_EOF >> "$cfgfile"
8299
# func_append var value
8300
# Append VALUE to the end of shell variable VAR.
8308
cat << \_LT_EOF >> "$cfgfile"
8310
# func_append var value
8311
# Append VALUE to the end of shell variable VAR.
8314
eval "$[1]=\$$[1]\$[2]"
8322
# Helper functions for option handling. -*- Autoconf -*-
8324
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
8325
# Written by Gary V. Vaughan, 2004
8327
# This file is free software; the Free Software Foundation gives
8328
# unlimited permission to copy and/or distribute it, with or without
8329
# modifications, as long as this notice is preserved.
8331
# serial 6 ltoptions.m4
8333
# This is to help aclocal find these macros, as it can't see m4_define.
8334
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
8337
# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
8338
# ------------------------------------------
8339
m4_define([_LT_MANGLE_OPTION],
8340
[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
8343
# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
8344
# ---------------------------------------
8345
# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
8346
# matching handler defined, dispatch to it. Other OPTION-NAMEs are
8348
m4_define([_LT_SET_OPTION],
8349
[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
8350
m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
8351
_LT_MANGLE_DEFUN([$1], [$2]),
8352
[m4_warning([Unknown $1 option `$2'])])[]dnl
8356
# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
8357
# ------------------------------------------------------------
8358
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
8359
m4_define([_LT_IF_OPTION],
8360
[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
8363
# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
8364
# -------------------------------------------------------
8365
# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
8367
m4_define([_LT_UNLESS_OPTIONS],
8368
[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
8369
[m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
8370
[m4_define([$0_found])])])[]dnl
8371
m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
8376
# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
8377
# ----------------------------------------
8378
# OPTION-LIST is a space-separated list of Libtool options associated
8379
# with MACRO-NAME. If any OPTION has a matching handler declared with
8380
# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
8381
# the unknown option and exit.
8382
m4_defun([_LT_SET_OPTIONS],
8384
m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
8385
[_LT_SET_OPTION([$1], _LT_Option)])
8387
m4_if([$1],[LT_INIT],[
8389
dnl Simply set some default values (i.e off) if boolean options were not
8391
_LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
8393
_LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
8396
dnl If no reference was made to various pairs of opposing options, then
8397
dnl we run the default mode handler for the pair. For example, if neither
8398
dnl `shared' nor `disable-shared' was passed, we enable building of shared
8399
dnl archives by default:
8400
_LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
8401
_LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
8402
_LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
8403
_LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
8404
[_LT_ENABLE_FAST_INSTALL])
8410
# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
8411
# -----------------------------------------
8412
m4_define([_LT_MANGLE_DEFUN],
8413
[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
8416
# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
8417
# -----------------------------------------------
8418
m4_define([LT_OPTION_DEFINE],
8419
[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
8420
])# LT_OPTION_DEFINE
8425
LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
8428
AU_DEFUN([AC_LIBTOOL_DLOPEN],
8429
[_LT_SET_OPTION([LT_INIT], [dlopen])
8430
AC_DIAGNOSE([obsolete],
8431
[$0: Remove this warning and the call to _LT_SET_OPTION when you
8432
put the `dlopen' option into LT_INIT's first parameter.])
8435
dnl aclocal-1.4 backwards compatibility:
8436
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
8441
# Declare package support for building win32 dll's.
8442
LT_OPTION_DEFINE([LT_INIT], [win32-dll],
8443
[enable_win32_dll=yes
8446
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
8447
AC_CHECK_TOOL(AS, as, false)
8448
AC_CHECK_TOOL(DLLTOOL, dlltool, false)
8449
AC_CHECK_TOOL(OBJDUMP, objdump, false)
8453
test -z "$AS" && AS=as
8454
_LT_DECL([], [AS], [0], [Assembler program])dnl
8456
test -z "$DLLTOOL" && DLLTOOL=dlltool
8457
_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
8459
test -z "$OBJDUMP" && OBJDUMP=objdump
8460
_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
8463
AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
8464
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
8465
_LT_SET_OPTION([LT_INIT], [win32-dll])
8466
AC_DIAGNOSE([obsolete],
8467
[$0: Remove this warning and the call to _LT_SET_OPTION when you
8468
put the `win32-dll' option into LT_INIT's first parameter.])
8471
dnl aclocal-1.4 backwards compatibility:
8472
dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
8475
# _LT_ENABLE_SHARED([DEFAULT])
8476
# ----------------------------
8477
# implement the --enable-shared flag, and supports the `shared' and
8478
# `disable-shared' LT_INIT options.
8479
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
8480
m4_define([_LT_ENABLE_SHARED],
8481
[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
8482
AC_ARG_ENABLE([shared],
8483
[AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
8484
[build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
8485
[p=${PACKAGE-default}
8487
yes) enable_shared=yes ;;
8488
no) enable_shared=no ;;
8491
# Look at the argument we got. We use all the common list separators.
8492
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8493
for pkg in $enableval; do
8495
if test "X$pkg" = "X$p"; then
8502
[enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
8504
_LT_DECL([build_libtool_libs], [enable_shared], [0],
8505
[Whether or not to build shared libraries])
8506
])# _LT_ENABLE_SHARED
8508
LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
8509
LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
8512
AC_DEFUN([AC_ENABLE_SHARED],
8513
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
8516
AC_DEFUN([AC_DISABLE_SHARED],
8517
[_LT_SET_OPTION([LT_INIT], [disable-shared])
8520
AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
8521
AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
8523
dnl aclocal-1.4 backwards compatibility:
8524
dnl AC_DEFUN([AM_ENABLE_SHARED], [])
8525
dnl AC_DEFUN([AM_DISABLE_SHARED], [])
8529
# _LT_ENABLE_STATIC([DEFAULT])
8530
# ----------------------------
8531
# implement the --enable-static flag, and support the `static' and
8532
# `disable-static' LT_INIT options.
8533
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
8534
m4_define([_LT_ENABLE_STATIC],
8535
[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
8536
AC_ARG_ENABLE([static],
8537
[AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
8538
[build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
8539
[p=${PACKAGE-default}
8541
yes) enable_static=yes ;;
8542
no) enable_static=no ;;
8545
# Look at the argument we got. We use all the common list separators.
8546
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8547
for pkg in $enableval; do
8549
if test "X$pkg" = "X$p"; then
8556
[enable_static=]_LT_ENABLE_STATIC_DEFAULT)
8558
_LT_DECL([build_old_libs], [enable_static], [0],
8559
[Whether or not to build static libraries])
8560
])# _LT_ENABLE_STATIC
8562
LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
8563
LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
8566
AC_DEFUN([AC_ENABLE_STATIC],
8567
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
8570
AC_DEFUN([AC_DISABLE_STATIC],
8571
[_LT_SET_OPTION([LT_INIT], [disable-static])
8574
AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
8575
AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
8577
dnl aclocal-1.4 backwards compatibility:
8578
dnl AC_DEFUN([AM_ENABLE_STATIC], [])
8579
dnl AC_DEFUN([AM_DISABLE_STATIC], [])
8583
# _LT_ENABLE_FAST_INSTALL([DEFAULT])
8584
# ----------------------------------
8585
# implement the --enable-fast-install flag, and support the `fast-install'
8586
# and `disable-fast-install' LT_INIT options.
8587
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
8588
m4_define([_LT_ENABLE_FAST_INSTALL],
8589
[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
8590
AC_ARG_ENABLE([fast-install],
8591
[AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
8592
[optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
8593
[p=${PACKAGE-default}
8595
yes) enable_fast_install=yes ;;
8596
no) enable_fast_install=no ;;
8598
enable_fast_install=no
8599
# Look at the argument we got. We use all the common list separators.
8600
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8601
for pkg in $enableval; do
8603
if test "X$pkg" = "X$p"; then
8604
enable_fast_install=yes
8610
[enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
8612
_LT_DECL([fast_install], [enable_fast_install], [0],
8613
[Whether or not to optimize for fast installation])dnl
8614
])# _LT_ENABLE_FAST_INSTALL
8616
LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
8617
LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
8620
AU_DEFUN([AC_ENABLE_FAST_INSTALL],
8621
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
8622
AC_DIAGNOSE([obsolete],
8623
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
8624
the `fast-install' option into LT_INIT's first parameter.])
8627
AU_DEFUN([AC_DISABLE_FAST_INSTALL],
8628
[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
8629
AC_DIAGNOSE([obsolete],
8630
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
8631
the `disable-fast-install' option into LT_INIT's first parameter.])
8634
dnl aclocal-1.4 backwards compatibility:
8635
dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
8636
dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
8639
# _LT_WITH_PIC([MODE])
8640
# --------------------
8641
# implement the --with-pic flag, and support the `pic-only' and `no-pic'
8643
# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
8644
m4_define([_LT_WITH_PIC],
8646
[AS_HELP_STRING([--with-pic],
8647
[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
8648
[pic_mode="$withval"],
8651
test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
8653
_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
8656
LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
8657
LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
8660
AU_DEFUN([AC_LIBTOOL_PICMODE],
8661
[_LT_SET_OPTION([LT_INIT], [pic-only])
8662
AC_DIAGNOSE([obsolete],
8663
[$0: Remove this warning and the call to _LT_SET_OPTION when you
8664
put the `pic-only' option into LT_INIT's first parameter.])
8667
dnl aclocal-1.4 backwards compatibility:
8668
dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
8671
m4_define([_LTDL_MODE], [])
8672
LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
8673
[m4_define([_LTDL_MODE], [nonrecursive])])
8674
LT_OPTION_DEFINE([LTDL_INIT], [recursive],
8675
[m4_define([_LTDL_MODE], [recursive])])
8676
LT_OPTION_DEFINE([LTDL_INIT], [subproject],
8677
[m4_define([_LTDL_MODE], [subproject])])
8679
m4_define([_LTDL_TYPE], [])
8680
LT_OPTION_DEFINE([LTDL_INIT], [installable],
8681
[m4_define([_LTDL_TYPE], [installable])])
8682
LT_OPTION_DEFINE([LTDL_INIT], [convenience],
8683
[m4_define([_LTDL_TYPE], [convenience])])
8685
# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
8687
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
8688
# Written by Gary V. Vaughan, 2004
8690
# This file is free software; the Free Software Foundation gives
8691
# unlimited permission to copy and/or distribute it, with or without
8692
# modifications, as long as this notice is preserved.
8694
# serial 6 ltsugar.m4
8696
# This is to help aclocal find these macros, as it can't see m4_define.
8697
AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
8700
# lt_join(SEP, ARG1, [ARG2...])
8701
# -----------------------------
8702
# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
8703
# associated separator.
8704
# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
8705
# versions in m4sugar had bugs.
8706
m4_define([lt_join],
8707
[m4_if([$#], [1], [],
8709
[m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
8710
m4_define([_lt_join],
8711
[m4_if([$#$2], [2], [],
8712
[m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
8718
# Manipulate m4 lists.
8719
# These macros are necessary as long as will still need to support
8720
# Autoconf-2.59 which quotes differently.
8721
m4_define([lt_car], [[$1]])
8723
[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
8725
[m4_dquote(m4_shift($@))])])
8726
m4_define([lt_unquote], $1)
8729
# lt_append(MACRO-NAME, STRING, [SEPARATOR])
8730
# ------------------------------------------
8731
# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
8732
# Note that neither SEPARATOR nor STRING are expanded; they are appended
8733
# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
8734
# No SEPARATOR is output if MACRO-NAME was previously undefined (different
8735
# than defined and empty).
8737
# This macro is needed until we can rely on Autoconf 2.62, since earlier
8738
# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
8739
m4_define([lt_append],
8741
m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
8745
# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
8746
# ----------------------------------------------------------
8747
# Produce a SEP delimited list of all paired combinations of elements of
8748
# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
8749
# has the form PREFIXmINFIXSUFFIXn.
8750
# Needed until we can rely on m4_combine added in Autoconf 2.62.
8751
m4_define([lt_combine],
8752
[m4_if(m4_eval([$# > 3]), [1],
8753
[m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
8754
[[m4_foreach([_Lt_prefix], [$2],
8755
[m4_foreach([_Lt_suffix],
8756
]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
8757
[_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
8760
# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
8761
# -----------------------------------------------------------------------
8762
# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
8763
# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
8764
m4_define([lt_if_append_uniq],
8766
[m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
8767
[lt_append([$1], [$2], [$3])$4],
8769
[lt_append([$1], [$2], [$3])$4])])
8772
# lt_dict_add(DICT, KEY, VALUE)
8773
# -----------------------------
8774
m4_define([lt_dict_add],
8775
[m4_define([$1($2)], [$3])])
8778
# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
8779
# --------------------------------------------
8780
m4_define([lt_dict_add_subkey],
8781
[m4_define([$1($2:$3)], [$4])])
8784
# lt_dict_fetch(DICT, KEY, [SUBKEY])
8785
# ----------------------------------
8786
m4_define([lt_dict_fetch],
8788
m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
8789
m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
8792
# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
8793
# -----------------------------------------------------------------
8794
m4_define([lt_if_dict_fetch],
8795
[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
8800
# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
8801
# --------------------------------------------------------------
8802
m4_define([lt_dict_filter],
8803
[m4_if([$5], [], [],
8804
[lt_join(m4_quote(m4_default([$4], [[, ]])),
8805
lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
8806
[lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
8809
# ltversion.m4 -- version numbers -*- Autoconf -*-
8811
# Copyright (C) 2004 Free Software Foundation, Inc.
8812
# Written by Scott James Remnant, 2004
8814
# This file is free software; the Free Software Foundation gives
8815
# unlimited permission to copy and/or distribute it, with or without
8816
# modifications, as long as this notice is preserved.
8818
# Generated from ltversion.in.
8820
# serial 3017 ltversion.m4
8821
# This file is part of GNU Libtool
8823
m4_define([LT_PACKAGE_VERSION], [2.2.6b])
8824
m4_define([LT_PACKAGE_REVISION], [1.3017])
8826
AC_DEFUN([LTVERSION_VERSION],
8827
[macro_version='2.2.6b'
8828
macro_revision='1.3017'
8829
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
8830
_LT_DECL(, macro_revision, 0)
8833
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
8835
# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
8836
# Written by Scott James Remnant, 2004.
8838
# This file is free software; the Free Software Foundation gives
8839
# unlimited permission to copy and/or distribute it, with or without
8840
# modifications, as long as this notice is preserved.
8842
# serial 4 lt~obsolete.m4
8844
# These exist entirely to fool aclocal when bootstrapping libtool.
8846
# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
8847
# which have later been changed to m4_define as they aren't part of the
8848
# exported API, or moved to Autoconf or Automake where they belong.
8850
# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
8851
# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
8852
# using a macro with the same name in our local m4/libtool.m4 it'll
8853
# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
8854
# and doesn't know about Autoconf macros at all.)
8856
# So we provide this file, which has a silly filename so it's always
8857
# included after everything else. This provides aclocal with the
8858
# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
8859
# because those macros already exist, or will be overwritten later.
8860
# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
8862
# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
8863
# Yes, that means every name once taken will need to remain here until
8864
# we give up compatibility with versions before 1.7, at which point
8865
# we need to keep only those names which we still refer to.
8867
# This is to help aclocal find these macros, as it can't see m4_define.
8868
AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
8870
m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
8871
m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
8872
m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
8873
m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
8874
m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
8875
m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
8876
m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
8877
m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
8878
m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
8879
m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
8880
m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
8881
m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
8882
m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
8883
m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
8884
m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
8885
m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
8886
m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
8887
m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
8888
m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
8889
m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
8890
m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
8891
m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
8892
m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
8893
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
8894
m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
8895
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
8896
m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
8897
m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
8898
m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
8899
m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
8900
m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
8901
m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
8902
m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
8903
m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
8904
m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
8905
m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
8906
m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
8907
m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
8908
m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
8909
m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
8910
m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
8911
m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
8912
m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
8913
m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
8914
m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
8915
m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
8916
m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
8917
m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
8918
m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
8919
m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
8920
m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
8921
m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
8922
m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
8923
m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
8924
m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
8926
977
# nls.m4 serial 3 (gettext-0.15)
8927
978
dnl Copyright (C) 1995-2003, 2005-2006 Free Software Foundation, Inc.
8928
979
dnl This file is free software; the Free Software Foundation