1073
1173
# Sed substitution that helps us do robust quoting. It backslashifies
1074
1174
# metacharacters that are still active within double-quoted strings.
1075
Xsed='sed -e 1s/^X//'
1076
[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
1175
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
1078
1177
# Same as above, but do not quote variable references.
1079
[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
1178
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
1081
1180
# Sed substitution to delay expansion of an escaped shell variable in a
1082
1181
# double_quote_subst'ed string.
1083
1182
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1184
# Sed substitution to delay expansion of an escaped single quote.
1185
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
1085
1187
# Sed substitution to avoid accidental globbing in evaled expressions
1086
1188
no_glob_subst='s/\*/\\\*/g'
1091
1190
# Global variables:
1092
default_ofile=libtool
1093
1192
can_build_shared=yes
1095
1194
# All known linkers require a `.a' archive for static linking (except MSVC,
1096
1195
# which needs '.lib').
1098
ltmain="$ac_aux_dir/ltmain.sh"
1099
ofile="$default_ofile"
1100
1198
with_gnu_ld="$lt_cv_prog_gnu_ld"
1102
AC_CHECK_TOOL(AR, ar, false)
1103
AC_CHECK_TOOL(RANLIB, ranlib, :)
1104
AC_CHECK_TOOL(STRIP, strip, :)
1107
1201
old_CFLAGS="$CFLAGS"
1109
1203
# Set sane defaults for various variables
1110
test -z "$AR" && AR=ar
1111
test -z "$AR_FLAGS" && AR_FLAGS=cru
1112
test -z "$AS" && AS=as
1113
1204
test -z "$CC" && CC=cc
1114
1205
test -z "$LTCC" && LTCC=$CC
1115
1206
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
1116
test -z "$DLLTOOL" && DLLTOOL=dlltool
1117
1207
test -z "$LD" && LD=ld
1118
test -z "$LN_S" && LN_S="ln -s"
1119
test -z "$MAGIC_CMD" && MAGIC_CMD=file
1120
test -z "$NM" && NM=nm
1121
test -z "$SED" && SED=sed
1122
test -z "$OBJDUMP" && OBJDUMP=objdump
1123
test -z "$RANLIB" && RANLIB=:
1124
test -z "$STRIP" && STRIP=:
1125
1208
test -z "$ac_objext" && ac_objext=o
1127
# Determine commands to create old-style static archives.
1128
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1129
old_postinstall_cmds='chmod 644 $oldlib'
1130
old_postuninstall_cmds=
1132
if test -n "$RANLIB"; then
1135
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
1138
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
1141
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1144
1210
_LT_CC_BASENAME([$compiler])
1146
1212
# Only perform the check for file, if the check method requires it
1213
test -z "$MAGIC_CMD" && MAGIC_CMD=file
1147
1214
case $deplibs_check_method in
1149
1216
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1155
_LT_REQUIRED_DARWIN_CHECKS
1157
AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
1158
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
1159
enable_win32_dll=yes, enable_win32_dll=no)
1161
AC_ARG_ENABLE([libtool-lock],
1162
[AC_HELP_STRING([--disable-libtool-lock],
1163
[avoid locking (might break parallel builds)])])
1164
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1167
[AC_HELP_STRING([--with-pic],
1168
[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
1169
[pic_mode="$withval"],
1171
test -z "$pic_mode" && pic_mode=default
1173
1222
# Use C for the default configuration in the libtool script
1175
AC_LIBTOOL_LANG_C_CONFIG
1177
])# AC_LIBTOOL_SETUP
1180
# _LT_AC_SYS_COMPILER
1223
LT_SUPPORTED_TAG([CC])
1225
_LT_LANG_DEFAULT_CONFIG
1232
# Note that this code is called both from `configure', and `config.status'
1233
# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
1234
# `config.status' has no value for ac_aux_dir unless we are using Automake,
1235
# so we pass a copy along to make sure it has a sensible value anyway.
1236
m4_defun([_LT_PROG_LTMAIN],
1237
[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
1238
_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
1239
ltmain="$ac_aux_dir/ltmain.sh"
1244
# So that we can recreate a full libtool script including additional
1245
# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
1246
# in macros and then make a single call at the end using the `libtool'
1250
# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
1251
# ----------------------------------------
1252
# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
1253
m4_define([_LT_CONFIG_LIBTOOL_INIT],
1255
[m4_append([_LT_OUTPUT_LIBTOOL_INIT],
1260
m4_define([_LT_OUTPUT_LIBTOOL_INIT])
1263
# _LT_CONFIG_LIBTOOL([COMMANDS])
1264
# ------------------------------
1265
# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
1266
m4_define([_LT_CONFIG_LIBTOOL],
1268
[m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
1273
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
1276
# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
1277
# -----------------------------------------------------
1278
m4_defun([_LT_CONFIG_SAVE_COMMANDS],
1279
[_LT_CONFIG_LIBTOOL([$1])
1280
_LT_CONFIG_LIBTOOL_INIT([$2])
1284
# _LT_FORMAT_COMMENT([COMMENT])
1285
# -----------------------------
1286
# Add leading comment marks to the start of each line, and a trailing
1287
# full-stop to the whole comment if one is not present already.
1288
m4_define([_LT_FORMAT_COMMENT],
1290
m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
1291
[['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
1298
# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
1299
# -------------------------------------------------------------------
1300
# CONFIGNAME is the name given to the value in the libtool script.
1301
# VARNAME is the (base) name used in the configure script.
1302
# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
1303
# VARNAME. Any other value will be used directly.
1304
m4_define([_LT_DECL],
1305
[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
1306
[lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
1307
[m4_ifval([$1], [$1], [$2])])
1308
lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
1310
[lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
1311
lt_dict_add_subkey([lt_decl_dict], [$2],
1312
[tagged?], [m4_ifval([$5], [yes], [no])])])
1316
# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
1317
# --------------------------------------------------------
1318
m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
1321
# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
1322
# ------------------------------------------------
1323
m4_define([lt_decl_tag_varnames],
1324
[_lt_decl_filter([tagged?], [yes], $@)])
1327
# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
1328
# ---------------------------------------------------------
1329
m4_define([_lt_decl_filter],
1331
[0], [m4_fatal([$0: too few arguments: $#])],
1332
[1], [m4_fatal([$0: too few arguments: $#: $1])],
1333
[2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
1334
[3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
1335
[lt_dict_filter([lt_decl_dict], $@)])[]dnl
1339
# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
1340
# --------------------------------------------------
1341
m4_define([lt_decl_quote_varnames],
1342
[_lt_decl_filter([value], [1], $@)])
1345
# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
1346
# ---------------------------------------------------
1347
m4_define([lt_decl_dquote_varnames],
1348
[_lt_decl_filter([value], [2], $@)])
1351
# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
1352
# ---------------------------------------------------
1353
m4_define([lt_decl_varnames_tagged],
1354
[m4_assert([$# <= 2])dnl
1355
_$0(m4_quote(m4_default([$1], [[, ]])),
1356
m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
1357
m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
1358
m4_define([_lt_decl_varnames_tagged],
1359
[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
1362
# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
1363
# ------------------------------------------------
1364
m4_define([lt_decl_all_varnames],
1365
[_$0(m4_quote(m4_default([$1], [[, ]])),
1367
m4_quote(lt_decl_varnames),
1368
m4_quote(m4_shift($@))))[]dnl
1370
m4_define([_lt_decl_all_varnames],
1371
[lt_join($@, lt_decl_varnames_tagged([$1],
1372
lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
1376
# _LT_CONFIG_STATUS_DECLARE([VARNAME])
1377
# ------------------------------------
1378
# Quote a variable value, and forward it to `config.status' so that its
1379
# declaration there will have the same value as in `configure'. VARNAME
1380
# must have a single quote delimited value for this to work.
1381
m4_define([_LT_CONFIG_STATUS_DECLARE],
1382
[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
1385
# _LT_CONFIG_STATUS_DECLARATIONS
1386
# ------------------------------
1387
# We delimit libtool config variables with single quotes, so when
1388
# we write them to config.status, we have to be sure to quote all
1389
# embedded single quotes properly. In configure, this macro expands
1390
# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
1392
# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
1393
m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
1394
[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
1395
[m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
1400
# Output comment and list of tags supported by the script
1401
m4_defun([_LT_LIBTOOL_TAGS],
1402
[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
1403
available_tags="_LT_TAGS"dnl
1407
# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
1408
# -----------------------------------
1409
# Extract the dictionary values for VARNAME (optionally with TAG) and
1410
# expand to a commented shell variable setting:
1412
# # Some comment about what VAR is for.
1413
# visible_name=$lt_internal_name
1414
m4_define([_LT_LIBTOOL_DECLARE],
1415
[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
1416
[description])))[]dnl
1417
m4_pushdef([_libtool_name],
1418
m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
1419
m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
1420
[0], [_libtool_name=[$]$1],
1421
[1], [_libtool_name=$lt_[]$1],
1422
[2], [_libtool_name=$lt_[]$1],
1423
[_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
1424
m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
1428
# _LT_LIBTOOL_CONFIG_VARS
1429
# -----------------------
1430
# Produce commented declarations of non-tagged libtool config variables
1431
# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
1432
# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
1433
# section) are produced by _LT_LIBTOOL_TAG_VARS.
1434
m4_defun([_LT_LIBTOOL_CONFIG_VARS],
1435
[m4_foreach([_lt_var],
1436
m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
1437
[m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
1440
# _LT_LIBTOOL_TAG_VARS(TAG)
1441
# -------------------------
1442
m4_define([_LT_LIBTOOL_TAG_VARS],
1443
[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
1444
[m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
1447
# _LT_TAGVAR(VARNAME, [TAGNAME])
1448
# ------------------------------
1449
m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
1452
# _LT_CONFIG_COMMANDS
1181
1453
# -------------------
1182
AC_DEFUN([_LT_AC_SYS_COMPILER],
1454
# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
1455
# variables for single and double quote escaping we saved from calls
1456
# to _LT_DECL, we can put quote escaped variables declarations
1457
# into `config.status', and then the shell code to quote escape them in
1458
# for loops in `config.status'. Finally, any additional code accumulated
1459
# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
1460
m4_defun([_LT_CONFIG_COMMANDS],
1461
[AC_PROVIDE_IFELSE([LT_OUTPUT],
1462
dnl If the libtool generation code has been placed in $CONFIG_LT,
1463
dnl instead of duplicating it all over again into config.status,
1464
dnl then we will have config.status run $CONFIG_LT later, so it
1465
dnl needs to know what name is stored there:
1466
[AC_CONFIG_COMMANDS([libtool],
1467
[$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
1468
dnl If the libtool generation code is destined for config.status,
1469
dnl expand the accumulated commands and init code now:
1470
[AC_CONFIG_COMMANDS([libtool],
1471
[_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
1472
])#_LT_CONFIG_COMMANDS
1476
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
1479
# The HP-UX ksh and POSIX shell print the target directory to stdout
1481
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1483
sed_quote_subst='$sed_quote_subst'
1484
double_quote_subst='$double_quote_subst'
1485
delay_variable_subst='$delay_variable_subst'
1486
_LT_CONFIG_STATUS_DECLARATIONS
1488
LTCFLAGS='$LTCFLAGS'
1489
compiler='$compiler_DEFAULT'
1491
# Quote evaled strings.
1492
for var in lt_decl_all_varnames([[ \
1493
]], lt_decl_quote_varnames); do
1494
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
1495
*[[\\\\\\\`\\"\\\$]]*)
1496
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
1499
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1504
# Double-quote double-evaled strings.
1505
for var in lt_decl_all_varnames([[ \
1506
]], lt_decl_dquote_varnames); do
1507
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
1508
*[[\\\\\\\`\\"\\\$]]*)
1509
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
1512
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1517
# Fix-up fallback echo if it was mangled by the above quoting rules.
1519
*'\\\[$]0 --fallback-echo"')dnl "
1520
lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
1524
_LT_OUTPUT_LIBTOOL_INIT
1530
# This macro allows early generation of the libtool script (before
1531
# AC_OUTPUT is called), incase it is used in configure for compilation
1533
AC_DEFUN([LT_OUTPUT],
1534
[: ${CONFIG_LT=./config.lt}
1535
AC_MSG_NOTICE([creating $CONFIG_LT])
1536
cat >"$CONFIG_LT" <<_LTEOF
1538
# Generated by $as_me.
1539
# Run this file to recreate a libtool stub with the current configuration.
1542
SHELL=\${CONFIG_SHELL-$SHELL}
1545
cat >>"$CONFIG_LT" <<\_LTEOF
1549
exec AS_MESSAGE_FD>&1
1550
exec AS_MESSAGE_LOG_FD>>config.log
1553
AS_BOX([Running $as_me.])
1554
} >&AS_MESSAGE_LOG_FD
1557
\`$as_me' creates a local libtool stub from the current configuration,
1558
for use in further configure time tests before the real libtool is
1561
Usage: $[0] [[OPTIONS]]
1563
-h, --help print this help, then exit
1564
-V, --version print version number, then exit
1565
-q, --quiet do not print progress messages
1566
-d, --debug don't remove temporary files
1568
Report bugs to <bug-libtool@gnu.org>."
1571
m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
1572
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
1573
configured by $[0], generated by m4_PACKAGE_STRING.
1575
Copyright (C) 2008 Free Software Foundation, Inc.
1576
This config.lt script is free software; the Free Software Foundation
1577
gives unlimited permision to copy, distribute and modify it."
1579
while test $[#] != 0
1582
--version | --v* | -V )
1583
echo "$lt_cl_version"; exit 0 ;;
1584
--help | --h* | -h )
1585
echo "$lt_cl_help"; exit 0 ;;
1586
--debug | --d* | -d )
1588
--quiet | --q* | --silent | --s* | -q )
1591
-*) AC_MSG_ERROR([unrecognized option: $[1]
1592
Try \`$[0] --help' for more information.]) ;;
1594
*) AC_MSG_ERROR([unrecognized argument: $[1]
1595
Try \`$[0] --help' for more information.]) ;;
1600
if $lt_cl_silent; then
1601
exec AS_MESSAGE_FD>/dev/null
1605
cat >>"$CONFIG_LT" <<_LTEOF
1606
_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
1609
cat >>"$CONFIG_LT" <<\_LTEOF
1610
AC_MSG_NOTICE([creating $ofile])
1611
_LT_OUTPUT_LIBTOOL_COMMANDS
1614
chmod +x "$CONFIG_LT"
1616
# configure is writing to config.log, but config.lt does its own redirection,
1617
# appending to config.log, which fails on DOS, as config.log is still kept
1618
# open by configure. Here we exec the FD to /dev/null, effectively closing
1619
# config.log, so it can be properly (re)opened and appended to by config.lt.
1620
if test "$no_create" != yes; then
1622
test "$silent" = yes &&
1623
lt_config_lt_args="$lt_config_lt_args --quiet"
1624
exec AS_MESSAGE_LOG_FD>/dev/null
1625
$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
1626
exec AS_MESSAGE_LOG_FD>>config.log
1627
$lt_cl_success || AS_EXIT(1)
1634
# If TAG is the built-in tag, create an initial libtool script with a
1635
# default configuration from the untagged config vars. Otherwise add code
1636
# to config.status for appending the configuration named by TAG from the
1637
# matching tagged config vars.
1638
m4_defun([_LT_CONFIG],
1639
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1640
_LT_CONFIG_SAVE_COMMANDS([
1641
m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
1642
m4_if(_LT_TAG, [C], [
1643
# See if we are running on zsh, and set the options which allow our
1644
# commands through without removal of \ escapes.
1645
if test -n "${ZSH_VERSION+set}" ; then
1646
setopt NO_GLOB_SUBST
1650
trap "$RM \"$cfgfile\"; exit 1" 1 2 15
1653
cat <<_LT_EOF >> "$cfgfile"
1656
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
1657
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
1658
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1659
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
1664
# ### BEGIN LIBTOOL CONFIG
1665
_LT_LIBTOOL_CONFIG_VARS
1666
_LT_LIBTOOL_TAG_VARS
1667
# ### END LIBTOOL CONFIG
1673
cat <<\_LT_EOF >> "$cfgfile"
1674
# AIX sometimes has problems with the GCC collect2 program. For some
1675
# reason, if we set the COLLECT_NAMES environment variable, the problems
1676
# vanish in a puff of smoke.
1677
if test "X${COLLECT_NAMES+set}" != Xset; then
1679
export COLLECT_NAMES
1687
# We use sed instead of cat because bash on DJGPP gets confused if
1688
# if finds mixed CR/LF and LF-only lines. Since sed operates in
1689
# text mode, it properly converts lines to CR/LF. This bash problem
1690
# is reportedly fixed, but why not run on old versions too?
1691
sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
1692
|| (rm -f "$cfgfile"; exit 1)
1694
_LT_PROG_XSI_SHELLFNS
1696
sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
1697
|| (rm -f "$cfgfile"; exit 1)
1699
mv -f "$cfgfile" "$ofile" ||
1700
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
1703
[cat <<_LT_EOF >> "$ofile"
1705
dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
1706
dnl in a comment (ie after a #).
1707
# ### BEGIN LIBTOOL TAG CONFIG: $1
1708
_LT_LIBTOOL_TAG_VARS(_LT_TAG)
1709
# ### END LIBTOOL TAG CONFIG: $1
1716
TIMESTAMP='$TIMESTAMP'
1718
ofile='$ofile'], [])
1719
])dnl /_LT_CONFIG_SAVE_COMMANDS
1723
# LT_SUPPORTED_TAG(TAG)
1724
# ---------------------
1725
# Trace this macro to discover what tags are supported by the libtool
1726
# --tag option, using:
1727
# autoconf --trace 'LT_SUPPORTED_TAG:$1'
1728
AC_DEFUN([LT_SUPPORTED_TAG], [])
1731
# C support is built-in for now
1732
m4_define([_LT_LANG_C_enabled], [])
1733
m4_define([_LT_TAGS], [])
1738
# Enable libtool support for the given language if not already enabled.
1740
[AC_BEFORE([$0], [LT_OUTPUT])dnl
1743
[C++], [_LT_LANG(CXX)],
1744
[Java], [_LT_LANG(GCJ)],
1745
[Fortran 77], [_LT_LANG(F77)],
1746
[Fortran], [_LT_LANG(FC)],
1747
[Windows Resource], [_LT_LANG(RC)],
1748
[m4_ifdef([_LT_LANG_]$1[_CONFIG],
1750
[m4_fatal([$0: unsupported language: "$1"])])])dnl
1754
# _LT_LANG(LANGNAME)
1755
# ------------------
1756
m4_defun([_LT_LANG],
1757
[m4_ifdef([_LT_LANG_]$1[_enabled], [],
1758
[LT_SUPPORTED_TAG([$1])dnl
1759
m4_append([_LT_TAGS], [$1 ])dnl
1760
m4_define([_LT_LANG_]$1[_enabled], [])dnl
1761
_LT_LANG_$1_CONFIG($1)])dnl
1765
# _LT_LANG_DEFAULT_CONFIG
1766
# -----------------------
1767
m4_defun([_LT_LANG_DEFAULT_CONFIG],
1768
[AC_PROVIDE_IFELSE([AC_PROG_CXX],
1770
[m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
1772
AC_PROVIDE_IFELSE([AC_PROG_F77],
1774
[m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
1776
AC_PROVIDE_IFELSE([AC_PROG_FC],
1778
[m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
1780
dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
1781
dnl pulling things in needlessly.
1782
AC_PROVIDE_IFELSE([AC_PROG_GCJ],
1784
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
1786
[AC_PROVIDE_IFELSE([LT_PROG_GCJ],
1788
[m4_ifdef([AC_PROG_GCJ],
1789
[m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
1790
m4_ifdef([A][M_PROG_GCJ],
1791
[m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
1792
m4_ifdef([LT_PROG_GCJ],
1793
[m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
1795
AC_PROVIDE_IFELSE([LT_PROG_RC],
1797
[m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
1798
])# _LT_LANG_DEFAULT_CONFIG
1801
AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
1802
AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
1803
AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
1804
AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
1805
dnl aclocal-1.4 backwards compatibility:
1806
dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
1807
dnl AC_DEFUN([AC_LIBTOOL_F77], [])
1808
dnl AC_DEFUN([AC_LIBTOOL_FC], [])
1809
dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
1814
m4_defun([_LT_TAG_COMPILER],
1183
1815
[AC_REQUIRE([AC_PROG_CC])dnl
1817
_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
1818
_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
1819
_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
1820
_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
1185
1822
# If no C compiler was specified, use CC.
1186
1823
LTCC=${LTCC-"$CC"}
3595
4241
AC_CHECK_LIB(m, cos, LIBM="-lm")
3601
# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
3602
# -----------------------------------
3603
# sets LIBLTDL to the link flags for the libltdl convenience library and
3604
# LTDLINCL to the include flags for the libltdl header and adds
3605
# --enable-ltdl-convenience to the configure arguments. Note that
3606
# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
3607
# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
3608
# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
3609
# (note the single quotes!). If your package is not flat and you're not
3610
# using automake, define top_builddir and top_srcdir appropriately in
3612
AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
3613
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3614
case $enable_ltdl_convenience in
3615
no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
3616
"") enable_ltdl_convenience=yes
3617
ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
3619
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
3620
LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3621
# For backwards non-gettext consistent compatibility...
3623
])# AC_LIBLTDL_CONVENIENCE
3626
# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
3627
# -----------------------------------
3628
# sets LIBLTDL to the link flags for the libltdl installable library and
3629
# LTDLINCL to the include flags for the libltdl header and adds
3630
# --enable-ltdl-install to the configure arguments. Note that
3631
# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
3632
# and an installed libltdl is not found, it is assumed to be `libltdl'.
3633
# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
3634
# '${top_srcdir}/' (note the single quotes!). If your package is not
3635
# flat and you're not using automake, define top_builddir and top_srcdir
3636
# appropriately in the Makefiles.
3637
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
3638
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
3639
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3640
AC_CHECK_LIB(ltdl, lt_dlinit,
3641
[test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
3642
[if test x"$enable_ltdl_install" = xno; then
3643
AC_MSG_WARN([libltdl not installed, but installation disabled])
3645
enable_ltdl_install=yes
3648
if test x"$enable_ltdl_install" = x"yes"; then
3649
ac_configure_args="$ac_configure_args --enable-ltdl-install"
3650
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
3651
LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3653
ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
3657
# For backwards non-gettext consistent compatibility...
3659
])# AC_LIBLTDL_INSTALLABLE
3664
# enable support for C++ libraries
3665
AC_DEFUN([AC_LIBTOOL_CXX],
3666
[AC_REQUIRE([_LT_AC_LANG_CXX])
3672
AC_DEFUN([_LT_AC_LANG_CXX],
3673
[AC_REQUIRE([AC_PROG_CXX])
3674
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
3675
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
3678
# _LT_AC_PROG_CXXCPP
3679
# ------------------
3680
AC_DEFUN([_LT_AC_PROG_CXXCPP],
3682
AC_REQUIRE([AC_PROG_CXX])
3683
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
3684
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
3685
(test "X$CXX" != "Xg++"))) ; then
3688
])# _LT_AC_PROG_CXXCPP
3692
# enable support for Fortran 77 libraries
3693
AC_DEFUN([AC_LIBTOOL_F77],
3694
[AC_REQUIRE([_LT_AC_LANG_F77])
3700
AC_DEFUN([_LT_AC_LANG_F77],
3701
[AC_REQUIRE([AC_PROG_F77])
3702
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
3708
# enable support for GCJ libraries
3709
AC_DEFUN([AC_LIBTOOL_GCJ],
3710
[AC_REQUIRE([_LT_AC_LANG_GCJ])
3716
AC_DEFUN([_LT_AC_LANG_GCJ],
3717
[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
3718
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
3719
[AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
3720
[ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
3721
[ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
3722
[AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
3723
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
3729
# enable support for Windows resource files
3730
AC_DEFUN([AC_LIBTOOL_RC],
3731
[AC_REQUIRE([LT_AC_PROG_RC])
3732
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
3736
# AC_LIBTOOL_LANG_C_CONFIG
3737
# ------------------------
3738
# Ensure that the configuration vars for the C compiler are
3739
# suitably defined. Those variables are subsequently used by
3740
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3741
AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
3742
AC_DEFUN([_LT_AC_LANG_C_CONFIG],
3746
# Source file extension for C test sources.
3749
# Object file extension for compiled C test sources.
3751
_LT_AC_TAGVAR(objext, $1)=$objext
3753
# Code to be used in simple compile tests
3754
lt_simple_compile_test_code="int some_variable = 0;"
3756
# Code to be used in simple link tests
3757
lt_simple_link_test_code='int main(){return(0);}'
3761
# save warnings/boilerplate of simple test code
3762
_LT_COMPILER_BOILERPLATE
3763
_LT_LINKER_BOILERPLATE
3765
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
3766
AC_LIBTOOL_PROG_COMPILER_PIC($1)
3767
AC_LIBTOOL_PROG_CC_C_O($1)
3768
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3769
AC_LIBTOOL_PROG_LD_SHLIBS($1)
3770
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3771
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3772
AC_LIBTOOL_SYS_LIB_STRIP
3773
AC_LIBTOOL_DLOPEN_SELF
3775
# Report which library types will actually be built
3776
AC_MSG_CHECKING([if libtool supports shared libraries])
3777
AC_MSG_RESULT([$can_build_shared])
3779
AC_MSG_CHECKING([whether to build shared libraries])
3780
test "$can_build_shared" = "no" && enable_shared=no
3782
# On AIX, shared libraries and static libraries use the same namespace, and
3783
# are all built from PIC.
3786
test "$enable_shared" = yes && enable_static=no
3787
if test -n "$RANLIB"; then
3788
archive_cmds="$archive_cmds~\$RANLIB \$lib"
3789
postinstall_cmds='$RANLIB $lib'
3794
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
3795
test "$enable_shared" = yes && enable_static=no
3799
AC_MSG_RESULT([$enable_shared])
3801
AC_MSG_CHECKING([whether to build static libraries])
3802
# Make sure either enable_shared or enable_static is yes.
3803
test "$enable_shared" = yes || enable_static=yes
3804
AC_MSG_RESULT([$enable_static])
3806
AC_LIBTOOL_CONFIG($1)
3810
])# AC_LIBTOOL_LANG_C_CONFIG
3813
# AC_LIBTOOL_LANG_CXX_CONFIG
3814
# --------------------------
3815
# Ensure that the configuration vars for the C compiler are
3816
# suitably defined. Those variables are subsequently used by
3817
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3818
AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
3819
AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
3821
AC_REQUIRE([AC_PROG_CXX])
3822
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
3824
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3825
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
3826
_LT_AC_TAGVAR(always_export_symbols, $1)=no
3827
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
3828
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
3829
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3830
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
3831
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
3832
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3833
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
3834
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3835
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
3836
_LT_AC_TAGVAR(module_cmds, $1)=
3837
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
3838
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
3839
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
3840
_LT_AC_TAGVAR(no_undefined_flag, $1)=
3841
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3842
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
3844
# Dependencies to place before and after the object being linked:
3845
_LT_AC_TAGVAR(predep_objects, $1)=
3846
_LT_AC_TAGVAR(postdep_objects, $1)=
3847
_LT_AC_TAGVAR(predeps, $1)=
3848
_LT_AC_TAGVAR(postdeps, $1)=
3849
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
3850
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
3852
# Source file extension for C++ test sources.
3855
# Object file extension for compiled C++ test sources.
3857
_LT_AC_TAGVAR(objext, $1)=$objext
3859
# Code to be used in simple compile tests
3860
lt_simple_compile_test_code="int some_variable = 0;"
3862
# Code to be used in simple link tests
3863
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
3865
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3868
# save warnings/boilerplate of simple test code
3869
_LT_COMPILER_BOILERPLATE
3870
_LT_LINKER_BOILERPLATE
3872
# Allow CC to be a program name with arguments.
3877
lt_save_with_gnu_ld=$with_gnu_ld
3878
lt_save_path_LD=$lt_cv_path_LD
3879
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
3880
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
3882
$as_unset lt_cv_prog_gnu_ld
3884
if test -n "${lt_cv_path_LDCXX+set}"; then
3885
lt_cv_path_LD=$lt_cv_path_LDCXX
3887
$as_unset lt_cv_path_LD
3889
test -z "${LDCXX+set}" || LD=$LDCXX
3892
_LT_AC_TAGVAR(compiler, $1)=$CC
3893
_LT_CC_BASENAME([$compiler])
3895
# We don't want -fno-exception wen compiling C++ code, so set the
3896
# no_builtin_flag separately
3897
if test "$GXX" = yes; then
3898
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
3900
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3903
if test "$GXX" = yes; then
3904
# Set up default GNU C++ configuration
3908
# Check if GNU C++ uses GNU ld as the underlying linker, since the
3909
# archiving commands below assume that GNU ld is being used.
3910
if test "$with_gnu_ld" = yes; then
3911
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3912
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3914
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3915
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3917
# If archive_cmds runs LD, not CC, wlarc should be empty
3918
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
3919
# investigate it a little bit more. (MM)
3922
# ancient GNU ld didn't support --whole-archive et. al.
3923
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
3924
grep 'no-whole-archive' > /dev/null; then
3925
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3927
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3933
# A generic and very simple default shared library creation
3934
# command for GNU C++ for the case where it uses the native
3935
# linker, instead of GNU ld. If possible, this setting should
3936
# overridden to take advantage of the native linker features on
3937
# the platform it is being used on.
3938
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3941
# Commands to make compiler produce verbose output that lists
3942
# what "hidden" libraries, object files and flags are used when
3943
# linking a shared library.
3944
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3952
# PORTME: fill in a description of your system's C++ link characteristics
3953
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
3954
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
3957
# FIXME: insert proper C++ library support
3958
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3961
if test "$host_cpu" = ia64; then
3962
# On IA64, the linker does run time linking by default, so we don't
3963
# have to do anything special.
3964
aix_use_runtimelinking=no
3965
exp_sym_flag='-Bexport'
3968
aix_use_runtimelinking=no
3970
# Test if we are trying to use run time linking or normal
3971
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
3972
# need to do runtime linking.
3973
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
3974
for ld_flag in $LDFLAGS; do
3977
aix_use_runtimelinking=yes
3985
exp_sym_flag='-bexport'
3986
no_entry_flag='-bnoentry'
3989
# When large executables or shared objects are built, AIX ld can
3990
# have problems creating the table of contents. If linking a library
3991
# or program results in "error TOC overflow" add -mminimal-toc to
3992
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
3993
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
3995
_LT_AC_TAGVAR(archive_cmds, $1)=''
3996
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3997
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3998
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4000
if test "$GXX" = yes; then
4001
case $host_os in aix4.[[012]]|aix4.[[012]].*)
4002
# We only want to do this on AIX 4.2 and lower, the check
4003
# below for broken collect2 doesn't work under 4.3+
4004
collect2name=`${CC} -print-prog-name=collect2`
4005
if test -f "$collect2name" && \
4006
strings "$collect2name" | grep resolve_lib_name >/dev/null
4008
# We have reworked collect2
4011
# We have old collect2
4012
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
4013
# It fails to find uninstalled libraries when the uninstalled
4014
# path is not listed in the libpath. Setting hardcode_minus_L
4015
# to unsupported forces relinking
4016
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
4017
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4018
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4022
shared_flag='-shared'
4023
if test "$aix_use_runtimelinking" = yes; then
4024
shared_flag="$shared_flag "'${wl}-G'
4028
if test "$host_cpu" = ia64; then
4029
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
4030
# chokes on -Wl,-G. The following line is correct:
4033
if test "$aix_use_runtimelinking" = yes; then
4034
shared_flag='${wl}-G'
4036
shared_flag='${wl}-bM:SRE'
4041
# It seems that -bexpall does not export symbols beginning with
4042
# underscore (_), so it is better to generate a list of symbols to export.
4043
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
4044
if test "$aix_use_runtimelinking" = yes; then
4045
# Warning - without using the other runtime loading flags (-brtl),
4046
# -berok will link without error, but may produce a broken library.
4047
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
4048
# Determine the default libpath from the value encoded in an empty executable.
4049
_LT_AC_SYS_LIBPATH_AIX
4050
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4052
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
4054
if test "$host_cpu" = ia64; then
4055
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
4056
_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
4057
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
4059
# Determine the default libpath from the value encoded in an empty executable.
4060
_LT_AC_SYS_LIBPATH_AIX
4061
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4062
# Warning - without using the other run time loading flags,
4063
# -berok will link without error, but may produce a broken library.
4064
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
4065
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
4066
# Exported symbols can be pulled into shared objects from archives
4067
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
4068
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
4069
# This is similar to how AIX traditionally builds its shared libraries.
4070
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
4076
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
4077
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
4078
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4079
# support --undefined. This deserves some investigation. FIXME
4080
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4082
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4087
case $cc_basename in
4089
# FIXME: insert proper C++ library support
4090
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4095
cygwin* | mingw* | pw32*)
4096
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
4097
# as there is no search path for DLLs.
4098
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4099
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
4100
_LT_AC_TAGVAR(always_export_symbols, $1)=no
4101
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4103
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
4104
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
4105
# If the export-symbols file already is a .def file (1st line
4106
# is EXPORTS), use it as is; otherwise, prepend...
4107
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
4108
cp $export_symbols $output_objdir/$soname.def;
4110
echo EXPORTS > $output_objdir/$soname.def;
4111
cat $export_symbols >> $output_objdir/$soname.def;
4113
$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'
4115
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4118
darwin* | rhapsody*)
4119
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4120
_LT_AC_TAGVAR(hardcode_direct, $1)=no
4121
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
4122
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4123
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
4124
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4125
_LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
4126
if test "$GXX" = yes ; then
4127
output_verbose_link_cmd='echo'
4128
_LT_AC_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}"
4129
_LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
4130
_LT_AC_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}"
4131
_LT_AC_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}"
4132
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
4133
_LT_AC_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
4134
_LT_AC_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}"
4137
case $cc_basename in
4139
output_verbose_link_cmd='echo'
4140
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
4141
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
4142
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
4143
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
4144
_LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
4147
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4154
case $cc_basename in
4156
# FIXME: insert proper C++ library support
4157
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4160
# Green Hills C++ Compiler
4161
# FIXME: insert proper C++ library support
4162
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4165
# FIXME: insert proper C++ library support
4166
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4171
# C++ shared libraries reported to be fairly broken before switch to ELF
4172
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4175
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4177
freebsd* | dragonfly*)
4178
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
4180
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
4185
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4186
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4187
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4188
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
4189
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
4190
# but as the default
4191
# location of the library.
4193
case $cc_basename in
4195
# FIXME: insert proper C++ library support
4196
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4199
_LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
4200
# Commands to make compiler produce verbose output that lists
4201
# what "hidden" libraries, object files and flags are used when
4202
# linking a shared library.
4204
# There doesn't appear to be a way to prevent this compiler from
4205
# explicitly linking system object files so we need to strip them
4206
# from the output so that they don't get included in the library
4208
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[[-]]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
4211
if test "$GXX" = yes; then
4212
_LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
4214
# FIXME: insert proper C++ library support
4215
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4221
if test $with_gnu_ld = no; then
4222
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4223
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4228
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4234
_LT_AC_TAGVAR(hardcode_direct, $1)=no
4235
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4238
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
4239
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
4240
# but as the default
4241
# location of the library.
4245
case $cc_basename in
4247
# FIXME: insert proper C++ library support
4248
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4253
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4256
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4259
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4262
# Commands to make compiler produce verbose output that lists
4263
# what "hidden" libraries, object files and flags are used when
4264
# linking a shared library.
4266
# There doesn't appear to be a way to prevent this compiler from
4267
# explicitly linking system object files so we need to strip them
4268
# from the output so that they don't get included in the library
4270
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
4273
if test "$GXX" = yes; then
4274
if test $with_gnu_ld = no; then
4277
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4280
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4283
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4288
# FIXME: insert proper C++ library support
4289
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4295
_LT_AC_TAGVAR(hardcode_direct, $1)=no
4296
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4297
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4298
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4299
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
4300
# Instead, shared libraries are loaded at an image base (0x10000000 by
4301
# default) and relocated if they conflict, which is a slow very memory
4302
# consuming and fragmenting process. To avoid this, we pick a random,
4303
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
4304
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
4305
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
4306
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
4309
case $cc_basename in
4312
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4314
# Archives containing C++ object files must be created using
4315
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
4316
# necessary to make sure instantiated templates are included
4318
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
4321
if test "$GXX" = yes; then
4322
if test "$with_gnu_ld" = no; then
4323
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4325
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
4328
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4331
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4332
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4334
linux* | k*bsd*-gnu)
4335
case $cc_basename in
4337
# Kuck and Associates, Inc. (KAI) C++ Compiler
4339
# KCC will only create a shared library if the output file
4340
# ends with ".so" (or ".sl" for HP-UX), so rename the library
4341
# to its proper name (with version) after linking.
4342
_LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
4343
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
4344
# Commands to make compiler produce verbose output that lists
4345
# what "hidden" libraries, object files and flags are used when
4346
# linking a shared library.
4348
# There doesn't appear to be a way to prevent this compiler from
4349
# explicitly linking system object files so we need to strip them
4350
# from the output so that they don't get included in the library
4352
output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
4354
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
4355
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4357
# Archives containing C++ object files must be created using
4358
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
4359
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
4364
# version 8.0 and above of icpc choke on multiply defined symbols
4365
# if we add $predep_objects and $postdep_objects, however 7.1 and
4366
# earlier do not add the objects themselves.
4367
case `$CC -V 2>&1` in
4369
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4370
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4372
*) # Version 8.0 or newer
4375
ia64*) tmp_idyn=' -i_dynamic';;
4377
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4378
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4381
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4382
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4383
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4384
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
4387
# Portland Group C++ compiler
4388
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
4389
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
4391
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
4392
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4393
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
4397
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4398
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
4400
runpath_var=LD_RUN_PATH
4401
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4402
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4404
# Commands to make compiler produce verbose output that lists
4405
# what "hidden" libraries, object files and flags are used when
4406
# linking a shared library.
4408
# There doesn't appear to be a way to prevent this compiler from
4409
# explicitly linking system object files so we need to strip them
4410
# from the output so that they don't get included in the library
4412
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
4415
case `$CC -V 2>&1 | sed 5q` in
4418
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
4419
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4420
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
4421
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4422
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
4424
# Not sure whether something based on
4425
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
4427
output_verbose_link_cmd='echo'
4429
# Archives containing C++ object files must be created using
4430
# "CC -xar", where "CC" is the Sun C++ compiler. This is
4431
# necessary to make sure instantiated templates are included
4433
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
4440
# FIXME: insert proper C++ library support
4441
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4444
# FIXME: insert proper C++ library support
4445
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4448
case $cc_basename in
4450
# FIXME: insert proper C++ library support
4451
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4454
# FIXME: insert proper C++ library support
4455
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4460
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4461
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
4463
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4464
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
4465
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4467
# Workaround some broken pre-1.5 toolchains
4468
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
4471
# C++ shared libraries are fairly broken
4472
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4475
if test -f /usr/libexec/ld.so; then
4476
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
4477
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4478
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
4479
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4480
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4481
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
4482
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4483
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4485
output_verbose_link_cmd='echo'
4487
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4491
case $cc_basename in
4493
# Kuck and Associates, Inc. (KAI) C++ Compiler
4495
# KCC will only create a shared library if the output file
4496
# ends with ".so" (or ".sl" for HP-UX), so rename the library
4497
# to its proper name (with version) after linking.
4498
_LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
4500
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4501
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4503
# Archives containing C++ object files must be created using
4504
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
4505
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
4509
# Rational C++ 2.4.1
4510
# FIXME: insert proper C++ library support
4511
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4514
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4515
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4517
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4518
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4520
# Commands to make compiler produce verbose output that lists
4521
# what "hidden" libraries, object files and flags are used when
4522
# linking a shared library.
4524
# There doesn't appear to be a way to prevent this compiler from
4525
# explicitly linking system object files so we need to strip them
4526
# from the output so that they don't get included in the library
4528
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
4531
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4532
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4533
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4535
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4536
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4538
# Commands to make compiler produce verbose output that lists
4539
# what "hidden" libraries, object files and flags are used when
4540
# linking a shared library.
4541
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4544
# FIXME: insert proper C++ library support
4545
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4551
case $cc_basename in
4553
# Kuck and Associates, Inc. (KAI) C++ Compiler
4555
# KCC will only create a shared library if the output file
4556
# ends with ".so" (or ".sl" for HP-UX), so rename the library
4557
# to its proper name (with version) after linking.
4558
_LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
4560
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4561
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4563
# Archives containing C++ object files must be created using
4564
# the KAI C++ compiler.
4565
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
4568
# Rational C++ 2.4.1
4569
# FIXME: insert proper C++ library support
4570
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4573
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4574
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4575
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
4576
echo "-hidden">> $lib.exp~
4577
$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
4580
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4581
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4583
# Commands to make compiler produce verbose output that lists
4584
# what "hidden" libraries, object files and flags are used when
4585
# linking a shared library.
4587
# There doesn't appear to be a way to prevent this compiler from
4588
# explicitly linking system object files so we need to strip them
4589
# from the output so that they don't get included in the library
4591
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
4594
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4595
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4596
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4598
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4599
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4601
# Commands to make compiler produce verbose output that lists
4602
# what "hidden" libraries, object files and flags are used when
4603
# linking a shared library.
4604
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4607
# FIXME: insert proper C++ library support
4608
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4614
# FIXME: insert proper C++ library support
4615
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4618
case $cc_basename in
4621
# FIXME: insert proper C++ library support
4622
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4626
# FIXME: insert proper C++ library support
4627
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4630
# FIXME: insert proper C++ library support
4631
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4636
case $cc_basename in
4638
# Sun C++ 4.2, 5.x and Centerline C++
4639
_LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
4640
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
4641
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4642
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4643
$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'
4645
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4646
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4648
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
4650
# The compiler driver will combine and reorder linker options,
4651
# but understands `-z linker_flag'.
4652
# Supported since Solaris 2.6 (maybe 2.5.1?)
4653
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
4656
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4658
output_verbose_link_cmd='echo'
4660
# Archives containing C++ object files must be created using
4661
# "CC -xar", where "CC" is the Sun C++ compiler. This is
4662
# necessary to make sure instantiated templates are included
4664
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
4667
# Green Hills C++ Compiler
4668
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4670
# The C++ compiler must be used to create the archive.
4671
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
4674
# GNU C++ compiler with Solaris linker
4675
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4676
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
4677
if $CC --version | grep -v '^2\.7' > /dev/null; then
4678
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4679
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4680
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4682
# Commands to make compiler produce verbose output that lists
4683
# what "hidden" libraries, object files and flags are used when
4684
# linking a shared library.
4685
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
4687
# g++ 2.7 appears to require `-G' NOT `-shared' on this
4689
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4690
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4691
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4693
# Commands to make compiler produce verbose output that lists
4694
# what "hidden" libraries, object files and flags are used when
4695
# linking a shared library.
4696
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
4699
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
4701
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
4703
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
4710
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
4711
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
4712
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4713
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4714
runpath_var='LD_RUN_PATH'
4716
case $cc_basename in
4718
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4719
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4722
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4723
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4727
sysv5* | sco3.2v5* | sco5v6*)
4728
# Note: We can NOT use -z defs as we might desire, because we do not
4729
# link with -lc, and that would cause any symbols used from libc to
4730
# always be unresolved, which means just about no library would
4731
# ever link correctly. If we're not using GNU ld we use -z text
4732
# though, which does catch some bad symbols but isn't as heavy-handed
4734
# For security reasons, it is highly recommended that you always
4735
# use absolute paths for naming shared libraries, and exclude the
4736
# DT_RUNPATH tag from executables and libraries. But doing so
4737
# requires that you compile everything twice, which is a pain.
4738
# So that behaviour is only enabled if SCOABSPATH is set to a
4739
# non-empty value in the environment. Most likely only useful for
4740
# creating official distributions of packages.
4741
# This is a hack until libtool officially supports absolute path
4742
# names for shared libraries.
4743
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
4744
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
4745
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4746
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4747
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
4748
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
4749
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4750
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
4751
runpath_var='LD_RUN_PATH'
4753
case $cc_basename in
4755
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4756
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4759
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4760
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4765
case $cc_basename in
4767
# NonStop-UX NCC 3.20
4768
# FIXME: insert proper C++ library support
4769
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4772
# FIXME: insert proper C++ library support
4773
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4778
# FIXME: insert proper C++ library support
4779
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4782
# FIXME: insert proper C++ library support
4783
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4786
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
4787
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
4789
_LT_AC_TAGVAR(GCC, $1)="$GXX"
4790
_LT_AC_TAGVAR(LD, $1)="$LD"
4792
AC_LIBTOOL_POSTDEP_PREDEP($1)
4793
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4794
AC_LIBTOOL_PROG_CC_C_O($1)
4795
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4796
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4797
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4798
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4800
AC_LIBTOOL_CONFIG($1)
4807
with_gnu_ldcxx=$with_gnu_ld
4808
with_gnu_ld=$lt_save_with_gnu_ld
4809
lt_cv_path_LDCXX=$lt_cv_path_LD
4810
lt_cv_path_LD=$lt_save_path_LD
4811
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
4812
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
4813
])# AC_LIBTOOL_LANG_CXX_CONFIG
4815
# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
4816
# ------------------------------------
4817
# Figure out "hidden" library dependencies from verbose
4818
# compiler output when linking a shared library.
4819
# Parse the compiler output and extract the necessary
4820
# objects, libraries and library flags.
4821
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],
4822
[AC_REQUIRE([LT_AC_PROG_SED])dnl
4823
dnl we can't use the lt_simple_compile_test_code here,
4824
dnl because it contains code intended for an executable,
4825
dnl not a library. It's possible we should let each
4826
dnl tag define a new lt_????_link_test_code variable,
4827
dnl but it's only used here...
4828
ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
4830
void foo (void) { a = 0; }
4832
],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
4836
Foo (void) { a = 0; }
4841
],[$1],[F77],[cat > conftest.$ac_ext <<EOF
4849
],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
4852
public void bar (void) {
4858
dnl Parse the compiler output and extract the necessary
4859
dnl objects, libraries and library flags.
4860
if AC_TRY_EVAL(ac_compile); then
4861
# Parse the compiler output and extract the necessary
4862
# objects, libraries and library flags.
4864
# Sentinel used to keep track of whether or not we are before
4865
# the conftest object file.
4866
pre_test_object_deps_done=no
4868
# The `*' in the case matches for architectures that use `case' in
4869
# $output_verbose_cmd can trigger glob expansion during the loop
4870
# eval without this substitution.
4871
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
4873
for p in `eval $output_verbose_link_cmd`; do
4877
# Some compilers place space between "-{L,R}" and the path.
4880
|| test $p = "-R"; then
4887
if test "$pre_test_object_deps_done" = no; then
4890
# Internal compiler library paths should come after those
4891
# provided the user. The postdeps already come after the
4892
# user supplied libs so there is no need to process them.
4893
if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
4894
_LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
4896
_LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
4899
# The "-l" case would never come before the object being
4900
# linked, so don't bother handling this case.
4903
if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
4904
_LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
4906
_LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
4912
# This assumes that the test object file only shows up
4913
# once in the compiler output.
4914
if test "$p" = "conftest.$objext"; then
4915
pre_test_object_deps_done=yes
4919
if test "$pre_test_object_deps_done" = no; then
4920
if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
4921
_LT_AC_TAGVAR(predep_objects, $1)="$p"
4923
_LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
4926
if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
4927
_LT_AC_TAGVAR(postdep_objects, $1)="$p"
4929
_LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
4934
*) ;; # Ignore the rest.
4942
echo "libtool.m4: error: problem compiling $1 test program"
4945
$rm -f confest.$objext
4947
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
4948
if test -n "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
4949
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_AC_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
4952
# PORTME: override above test on systems where it is broken
4956
# Interix 3.5 installs completely hosed .la files for C++, so rather than
4957
# hack all around it, let's just trust "g++" to DTRT.
4958
_LT_AC_TAGVAR(predep_objects,$1)=
4959
_LT_AC_TAGVAR(postdep_objects,$1)=
4960
_LT_AC_TAGVAR(postdeps,$1)=
4964
case `$CC -V 2>&1 | sed 5q` in
4968
# The more standards-conforming stlport4 library is
4969
# incompatible with the Cstd library. Avoid specifying
4970
# it if it's in CXXFLAGS. Ignore libCrun as
4971
# -library=stlport4 depends on it.
4972
case " $CXX $CXXFLAGS " in
4973
*" -library=stlport4 "*)
4974
solaris_use_stlport4=yes
4977
if test "$solaris_use_stlport4" != yes; then
4978
_LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
4985
case $cc_basename in
4987
# The more standards-conforming stlport4 library is
4988
# incompatible with the Cstd library. Avoid specifying
4989
# it if it's in CXXFLAGS. Ignore libCrun as
4990
# -library=stlport4 depends on it.
4991
case " $CXX $CXXFLAGS " in
4992
*" -library=stlport4 "*)
4993
solaris_use_stlport4=yes
4997
# Adding this requires a known-good setup of shared libraries for
4998
# Sun compiler versions before 5.6, else PIC objects from an old
4999
# archive will be linked into the output, leading to subtle bugs.
5000
if test "$solaris_use_stlport4" != yes; then
5001
_LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
5008
case " $_LT_AC_TAGVAR(postdeps, $1) " in
5009
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
5011
])# AC_LIBTOOL_POSTDEP_PREDEP
5013
# AC_LIBTOOL_LANG_F77_CONFIG
5014
# --------------------------
5015
# Ensure that the configuration vars for the C compiler are
5016
# suitably defined. Those variables are subsequently used by
5017
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
5018
AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
5019
AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
5020
[AC_REQUIRE([AC_PROG_F77])
5021
AC_LANG_PUSH(Fortran 77)
5023
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5024
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
5025
_LT_AC_TAGVAR(always_export_symbols, $1)=no
5026
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
5027
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5028
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5029
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5030
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5031
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5032
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5033
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
5034
_LT_AC_TAGVAR(module_cmds, $1)=
5035
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
5036
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
5037
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
5038
_LT_AC_TAGVAR(no_undefined_flag, $1)=
5039
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5040
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5042
# Source file extension for f77 test sources.
5045
# Object file extension for compiled f77 test sources.
5047
_LT_AC_TAGVAR(objext, $1)=$objext
5049
# Code to be used in simple compile tests
5050
lt_simple_compile_test_code="\
5056
# Code to be used in simple link tests
5057
lt_simple_link_test_code="\
5062
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
5065
# save warnings/boilerplate of simple test code
5066
_LT_COMPILER_BOILERPLATE
5067
_LT_LINKER_BOILERPLATE
5069
# Allow CC to be a program name with arguments.
5073
_LT_AC_TAGVAR(compiler, $1)=$CC
5074
_LT_CC_BASENAME([$compiler])
5076
AC_MSG_CHECKING([if libtool supports shared libraries])
5077
AC_MSG_RESULT([$can_build_shared])
5079
AC_MSG_CHECKING([whether to build shared libraries])
5080
test "$can_build_shared" = "no" && enable_shared=no
5082
# On AIX, shared libraries and static libraries use the same namespace, and
5083
# are all built from PIC.
5086
test "$enable_shared" = yes && enable_static=no
5087
if test -n "$RANLIB"; then
5088
archive_cmds="$archive_cmds~\$RANLIB \$lib"
5089
postinstall_cmds='$RANLIB $lib'
5093
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5094
test "$enable_shared" = yes && enable_static=no
5098
AC_MSG_RESULT([$enable_shared])
5100
AC_MSG_CHECKING([whether to build static libraries])
5101
# Make sure either enable_shared or enable_static is yes.
5102
test "$enable_shared" = yes || enable_static=yes
5103
AC_MSG_RESULT([$enable_static])
5105
_LT_AC_TAGVAR(GCC, $1)="$G77"
5106
_LT_AC_TAGVAR(LD, $1)="$LD"
5108
AC_LIBTOOL_PROG_COMPILER_PIC($1)
5109
AC_LIBTOOL_PROG_CC_C_O($1)
5110
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
5111
AC_LIBTOOL_PROG_LD_SHLIBS($1)
5112
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
5113
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
5115
AC_LIBTOOL_CONFIG($1)
5119
])# AC_LIBTOOL_LANG_F77_CONFIG
5122
# AC_LIBTOOL_LANG_GCJ_CONFIG
5123
# --------------------------
5124
# Ensure that the configuration vars for the C compiler are
5125
# suitably defined. Those variables are subsequently used by
5126
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
5127
AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
5128
AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
5131
# Source file extension for Java test sources.
5134
# Object file extension for compiled Java test sources.
5136
_LT_AC_TAGVAR(objext, $1)=$objext
5138
# Code to be used in simple compile tests
5139
lt_simple_compile_test_code="class foo {}"
5141
# Code to be used in simple link tests
5142
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
5144
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
5147
# save warnings/boilerplate of simple test code
5148
_LT_COMPILER_BOILERPLATE
5149
_LT_LINKER_BOILERPLATE
5151
# Allow CC to be a program name with arguments.
5155
_LT_AC_TAGVAR(compiler, $1)=$CC
5156
_LT_CC_BASENAME([$compiler])
5158
# GCJ did not exist at the time GCC didn't implicitly link libc in.
5159
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5161
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
5163
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
5164
AC_LIBTOOL_PROG_COMPILER_PIC($1)
5165
AC_LIBTOOL_PROG_CC_C_O($1)
5166
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
5167
AC_LIBTOOL_PROG_LD_SHLIBS($1)
5168
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
5169
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
5171
AC_LIBTOOL_CONFIG($1)
5175
])# AC_LIBTOOL_LANG_GCJ_CONFIG
5178
# AC_LIBTOOL_LANG_RC_CONFIG
5179
# -------------------------
5180
# Ensure that the configuration vars for the Windows resource compiler are
5181
# suitably defined. Those variables are subsequently used by
5182
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
5183
AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
5184
AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
5187
# Source file extension for RC test sources.
5190
# Object file extension for compiled RC test sources.
5192
_LT_AC_TAGVAR(objext, $1)=$objext
5194
# Code to be used in simple compile tests
5195
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
5197
# Code to be used in simple link tests
5198
lt_simple_link_test_code="$lt_simple_compile_test_code"
5200
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
5203
# save warnings/boilerplate of simple test code
5204
_LT_COMPILER_BOILERPLATE
5205
_LT_LINKER_BOILERPLATE
5207
# Allow CC to be a program name with arguments.
5211
_LT_AC_TAGVAR(compiler, $1)=$CC
5212
_LT_CC_BASENAME([$compiler])
5213
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
5215
AC_LIBTOOL_CONFIG($1)
5219
])# AC_LIBTOOL_LANG_RC_CONFIG
5222
# AC_LIBTOOL_CONFIG([TAGNAME])
5223
# ----------------------------
5224
# If TAGNAME is not passed, then create an initial libtool script
5225
# with a default configuration from the untagged config vars. Otherwise
5226
# add code to config.status for appending the configuration named by
5227
# TAGNAME from the matching tagged config vars.
5228
AC_DEFUN([AC_LIBTOOL_CONFIG],
5229
[# The else clause should only fire when bootstrapping the
5230
# libtool distribution, otherwise you forgot to ship ltmain.sh
5231
# with your package, and you will get complaints that there are
5232
# no rules to generate ltmain.sh.
5233
if test -f "$ltmain"; then
5234
# See if we are running on zsh, and set the options which allow our commands through
5235
# without removal of \ escapes.
5236
if test -n "${ZSH_VERSION+set}" ; then
5237
setopt NO_GLOB_SUBST
5239
# Now quote all the things that may contain metacharacters while being
5240
# careful not to overquote the AC_SUBSTed values. We take copies of the
5241
# variables and quote the copies for generation of the libtool script.
5242
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
5244
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
5245
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
5246
deplibs_check_method reload_flag reload_cmds need_locks \
5247
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
5248
lt_cv_sys_global_symbol_to_c_name_address \
5249
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
5250
old_postinstall_cmds old_postuninstall_cmds \
5251
_LT_AC_TAGVAR(compiler, $1) \
5252
_LT_AC_TAGVAR(CC, $1) \
5253
_LT_AC_TAGVAR(LD, $1) \
5254
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
5255
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
5256
_LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
5257
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
5258
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
5259
_LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
5260
_LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
5261
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
5262
_LT_AC_TAGVAR(old_archive_cmds, $1) \
5263
_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
5264
_LT_AC_TAGVAR(predep_objects, $1) \
5265
_LT_AC_TAGVAR(postdep_objects, $1) \
5266
_LT_AC_TAGVAR(predeps, $1) \
5267
_LT_AC_TAGVAR(postdeps, $1) \
5268
_LT_AC_TAGVAR(compiler_lib_search_path, $1) \
5269
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1) \
5270
_LT_AC_TAGVAR(archive_cmds, $1) \
5271
_LT_AC_TAGVAR(archive_expsym_cmds, $1) \
5272
_LT_AC_TAGVAR(postinstall_cmds, $1) \
5273
_LT_AC_TAGVAR(postuninstall_cmds, $1) \
5274
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
5275
_LT_AC_TAGVAR(allow_undefined_flag, $1) \
5276
_LT_AC_TAGVAR(no_undefined_flag, $1) \
5277
_LT_AC_TAGVAR(export_symbols_cmds, $1) \
5278
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
5279
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
5280
_LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
5281
_LT_AC_TAGVAR(hardcode_automatic, $1) \
5282
_LT_AC_TAGVAR(module_cmds, $1) \
5283
_LT_AC_TAGVAR(module_expsym_cmds, $1) \
5284
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
5285
_LT_AC_TAGVAR(fix_srcfile_path, $1) \
5286
_LT_AC_TAGVAR(exclude_expsyms, $1) \
5287
_LT_AC_TAGVAR(include_expsyms, $1); do
5290
_LT_AC_TAGVAR(old_archive_cmds, $1) | \
5291
_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
5292
_LT_AC_TAGVAR(archive_cmds, $1) | \
5293
_LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
5294
_LT_AC_TAGVAR(module_cmds, $1) | \
5295
_LT_AC_TAGVAR(module_expsym_cmds, $1) | \
5296
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
5297
_LT_AC_TAGVAR(export_symbols_cmds, $1) | \
5298
extract_expsyms_cmds | reload_cmds | finish_cmds | \
5299
postinstall_cmds | postuninstall_cmds | \
5300
old_postinstall_cmds | old_postuninstall_cmds | \
5301
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
5302
# Double-quote double-evaled strings.
5303
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
5306
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
5312
*'\[$]0 --fallback-echo"')
5313
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
5318
[cfgfile="${ofile}T"
5319
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
5321
AC_MSG_NOTICE([creating $ofile])],
5324
cat <<__EOF__ >> "$cfgfile"
5328
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
5329
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
5330
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
5332
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
5333
# Free Software Foundation, Inc.
5335
# This file is part of GNU Libtool:
5336
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
5338
# This program is free software; you can redistribute it and/or modify
5339
# it under the terms of the GNU General Public License as published by
5340
# the Free Software Foundation; either version 2 of the License, or
5341
# (at your option) any later version.
5343
# This program is distributed in the hope that it will be useful, but
5344
# WITHOUT ANY WARRANTY; without even the implied warranty of
5345
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
5346
# General Public License for more details.
5348
# You should have received a copy of the GNU General Public License
5349
# along with this program; if not, write to the Free Software
5350
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
5352
# As a special exception to the GNU General Public License, if you
5353
# distribute this file as part of a program that contains a
5354
# configuration script generated by Autoconf, you may include it under
5355
# the same distribution terms that you use for the rest of that program.
5357
# A sed program that does not truncate output.
5360
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
5361
Xsed="$SED -e 1s/^X//"
5363
# The HP-UX ksh and POSIX shell print the target directory to stdout
5365
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5367
# The names of the tagged configurations supported by this script.
5370
# ### BEGIN LIBTOOL CONFIG],
5371
[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
5373
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5375
# Shell to use when invoking shell scripts.
5378
# Whether or not to build shared libraries.
5379
build_libtool_libs=$enable_shared
5381
# Whether or not to build static libraries.
5382
build_old_libs=$enable_static
5384
# Whether or not to add -lc for building shared libraries.
5385
build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
5387
# Whether or not to disallow shared libs when runtime libs are static
5388
allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
5390
# Whether or not to optimize for fast installation.
5391
fast_install=$enable_fast_install
5394
host_alias=$host_alias
5399
build_alias=$build_alias
5403
# An echo program that does not interpret backslashes.
5408
AR_FLAGS=$lt_AR_FLAGS
5413
# LTCC compiler flags.
5414
LTCFLAGS=$lt_LTCFLAGS
5416
# A language-specific compiler.
5417
CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
5419
# Is the compiler the GNU C compiler?
5420
with_gcc=$_LT_AC_TAGVAR(GCC, $1)
5425
# The linker used to build libraries.
5426
LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
5428
# Whether we need hard or soft links.
5431
# A BSD-compatible nm program.
5434
# A symbol stripping program
5437
# Used to examine libraries when file_magic_cmd begins "file"
5438
MAGIC_CMD=$MAGIC_CMD
5440
# Used on cygwin: DLL creation program.
5443
# Used on cygwin: object dumper.
5446
# Used on cygwin: assembler.
5449
# The name of the directory that contains temporary libtool files.
5452
# How to create reloadable object files.
5453
reload_flag=$lt_reload_flag
5454
reload_cmds=$lt_reload_cmds
5456
# How to pass a linker flag through the compiler.
5457
wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
5459
# Object file suffix (normally "o").
5462
# Old archive suffix (normally "a").
5465
# Shared library suffix (normally ".so").
5466
shrext_cmds='$shrext_cmds'
5468
# Executable file suffix (normally "").
5471
# Additional compiler flags for building library objects.
5472
pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
5475
# What is the maximum length of a command?
5476
max_cmd_len=$lt_cv_sys_max_cmd_len
5478
# Does compiler simultaneously support -c and -o options?
5479
compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
5481
# Must we lock files when doing compilation?
5482
need_locks=$lt_need_locks
5484
# Do we need the lib prefix for modules?
5485
need_lib_prefix=$need_lib_prefix
5487
# Do we need a version for libraries?
5488
need_version=$need_version
5490
# Whether dlopen is supported.
5491
dlopen_support=$enable_dlopen
5493
# Whether dlopen of programs is supported.
5494
dlopen_self=$enable_dlopen_self
5496
# Whether dlopen of statically linked programs is supported.
5497
dlopen_self_static=$enable_dlopen_self_static
5499
# Compiler flag to prevent dynamic linking.
5500
link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
5502
# Compiler flag to turn off builtin functions.
5503
no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
5505
# Compiler flag to allow reflexive dlopens.
5506
export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
5508
# Compiler flag to generate shared objects directly from archives.
5509
whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
5511
# Compiler flag to generate thread-safe objects.
5512
thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
5514
# Library versioning type.
5515
version_type=$version_type
5517
# Format of library name prefix.
5518
libname_spec=$lt_libname_spec
5520
# List of archive names. First name is the real one, the rest are links.
5521
# The last name is the one that the linker finds with -lNAME.
5522
library_names_spec=$lt_library_names_spec
5524
# The coded name of the library, if different from the real name.
5525
soname_spec=$lt_soname_spec
5527
# Commands used to build and install an old-style archive.
5529
old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
5530
old_postinstall_cmds=$lt_old_postinstall_cmds
5531
old_postuninstall_cmds=$lt_old_postuninstall_cmds
5533
# Create an old-style archive from a shared archive.
5534
old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
5536
# Create a temporary old-style archive to link instead of a shared archive.
5537
old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
5539
# Commands used to build and install a shared archive.
5540
archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
5541
archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
5542
postinstall_cmds=$lt_postinstall_cmds
5543
postuninstall_cmds=$lt_postuninstall_cmds
5545
# Commands used to build a loadable module (assumed same as above if empty)
5546
module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
5547
module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
5549
# Commands to strip libraries.
5550
old_striplib=$lt_old_striplib
5551
striplib=$lt_striplib
5553
# Dependencies to place before the objects being linked to create a
5555
predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
5557
# Dependencies to place after the objects being linked to create a
5559
postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
5561
# Dependencies to place before the objects being linked to create a
5563
predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
5565
# Dependencies to place after the objects being linked to create a
5567
postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
5569
# The directories searched by this compiler when creating a shared
5571
compiler_lib_search_dirs=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)
5573
# The library search path used internally by the compiler when linking
5575
compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
5577
# Method to check whether dependent libraries are shared objects.
5578
deplibs_check_method=$lt_deplibs_check_method
5580
# Command to use when deplibs_check_method == file_magic.
5581
file_magic_cmd=$lt_file_magic_cmd
5583
# Flag that allows shared libraries with undefined symbols to be built.
5584
allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
5586
# Flag that forces no undefined symbols.
5587
no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
5589
# Commands used to finish a libtool library installation in a directory.
5590
finish_cmds=$lt_finish_cmds
5592
# Same as above, but a single script fragment to be evaled but not shown.
5593
finish_eval=$lt_finish_eval
5595
# Take the output of nm and produce a listing of raw symbols and C names.
5596
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
5598
# Transform the output of nm in a proper C declaration
5599
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
5601
# Transform the output of nm in a C name address pair
5602
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
5604
# This is the shared library runtime path variable.
5605
runpath_var=$runpath_var
5607
# This is the shared library path variable.
5608
shlibpath_var=$shlibpath_var
5610
# Is shlibpath searched before the hard-coded library search path?
5611
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
5613
# How to hardcode a shared library path into an executable.
5614
hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
5616
# Whether we should hardcode library paths into libraries.
5617
hardcode_into_libs=$hardcode_into_libs
5619
# Flag to hardcode \$libdir into a binary during linking.
5620
# This must work even if \$libdir does not exist.
5621
hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
5623
# If ld is used when linking, flag to hardcode \$libdir into
5624
# a binary during linking. This must work even if \$libdir does
5626
hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
5628
# Whether we need a single -rpath flag with a separated argument.
5629
hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
5631
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
5633
hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
5635
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
5637
hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
5639
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
5640
# the resulting binary.
5641
hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
5643
# Set to yes if building a shared library automatically hardcodes DIR into the library
5644
# and all subsequent libraries and executables linked against it.
5645
hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
5647
# Variables whose values should be saved in libtool wrapper scripts and
5648
# restored at relink time.
5649
variables_saved_for_relink="$variables_saved_for_relink"
5651
# Whether libtool must link a program against all its dependency libraries.
5652
link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
5654
# Compile-time system search path for libraries
5655
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
5657
# Run-time system search path for libraries
5658
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
5660
# Fix the shell variable \$srcfile for the compiler.
5661
fix_srcfile_path=$lt_fix_srcfile_path
5663
# Set to yes if exported symbols are required.
5664
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
5666
# The commands to list exported symbols.
5667
export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
5669
# The commands to extract the exported symbol list from a shared archive.
5670
extract_expsyms_cmds=$lt_extract_expsyms_cmds
5672
# Symbols that should not be listed in the preloaded symbols.
5673
exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
5675
# Symbols that must always be exported.
5676
include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
5679
[# ### END LIBTOOL CONFIG],
5680
[# ### END LIBTOOL TAG CONFIG: $tagname])
5687
cat <<\EOF >> "$cfgfile"
5689
# AIX sometimes has problems with the GCC collect2 program. For some
5690
# reason, if we set the COLLECT_NAMES environment variable, the problems
5691
# vanish in a puff of smoke.
5692
if test "X${COLLECT_NAMES+set}" != Xset; then
5694
export COLLECT_NAMES
5700
# We use sed instead of cat because bash on DJGPP gets confused if
5701
# if finds mixed CR/LF and LF-only lines. Since sed operates in
5702
# text mode, it properly converts lines to CR/LF. This bash problem
5703
# is reportedly fixed, but why not run on old versions too?
5704
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
5706
mv -f "$cfgfile" "$ofile" || \
5707
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
5711
# If there is no Makefile yet, we rely on a make rule to execute
5712
# `config.status --recheck' to rerun these tests and create the
5713
# libtool script then.
5714
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
5715
if test -f "$ltmain_in"; then
5716
test -f Makefile && make "$ltmain"
5719
])# AC_LIBTOOL_CONFIG
5722
# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
5723
# -------------------------------------------
5724
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
5725
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
5727
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
4248
AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
4249
dnl aclocal-1.4 backwards compatibility:
4250
dnl AC_DEFUN([AC_CHECK_LIBM], [])
4253
# _LT_COMPILER_NO_RTTI([TAGNAME])
4254
# -------------------------------
4255
m4_defun([_LT_COMPILER_NO_RTTI],
4256
[m4_require([_LT_TAG_COMPILER])dnl
4258
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
5729
4260
if test "$GCC" = yes; then
5730
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
4261
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
5732
AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
4263
_LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
5733
4264
lt_cv_prog_compiler_rtti_exceptions,
5734
4265
[-fno-rtti -fno-exceptions], [],
5735
[_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
4266
[_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
5737
])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
5740
# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
5741
# ---------------------------------
5742
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
5743
[AC_REQUIRE([AC_CANONICAL_HOST])
5744
AC_REQUIRE([LT_AC_PROG_SED])
5745
AC_REQUIRE([AC_PROG_NM])
5746
AC_REQUIRE([AC_OBJEXT])
4268
_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
4269
[Compiler flag to turn off builtin functions])
4270
])# _LT_COMPILER_NO_RTTI
4273
# _LT_CMD_GLOBAL_SYMBOLS
4274
# ----------------------
4275
m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
4276
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
4277
AC_REQUIRE([AC_PROG_CC])dnl
4278
AC_REQUIRE([LT_PATH_NM])dnl
4279
AC_REQUIRE([LT_PATH_LD])dnl
4280
m4_require([_LT_DECL_SED])dnl
4281
m4_require([_LT_DECL_EGREP])dnl
4282
m4_require([_LT_TAG_COMPILER])dnl
5747
4284
# Check for command to grab the raw symbol name followed by C symbol from nm.
5748
4285
AC_MSG_CHECKING([command to parse $NM output from $compiler object])
5749
4286
AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
6345
4938
# +Z the default
6348
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4941
_LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
6351
4944
# Is there a better lt_prog_compiler_static that works with the bundled CC?
6352
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4945
_LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
6355
4948
irix5* | irix6* | nonstopux*)
6356
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4949
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6357
4950
# PIC (with -KPIC) is the default.
6358
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6362
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6363
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4951
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6366
4954
linux* | k*bsd*-gnu)
6367
4955
case $cc_basename in
6369
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6370
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6371
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
4956
# old Intel for x86_64 which still supported -KPIC.
4958
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4959
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4960
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4962
# icc used to be incompatible with GCC.
4963
# ICC 10 doesn't accept -KPIC any more.
4965
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4966
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4967
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4969
# Lahey Fortran 8.1.
4971
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4972
_LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
4973
_LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
6373
4975
pgcc* | pgf77* | pgf90* | pgf95*)
6374
4976
# Portland Group compilers (*not* the Pentium gcc compiler,
6375
4977
# which looks to be a dead project)
6376
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6377
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
6378
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4978
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4979
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4980
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6381
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4983
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6382
4984
# All Alpha code is PIC.
6383
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4985
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4988
# IBM XL C 8.0/Fortran 10.1 on PPC
4989
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4990
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4991
_LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
6386
case `$CC -V 2>&1 | sed 5q` in
4994
case `$CC -V 2>&1 | sed 5q` in
6389
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6390
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6391
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4997
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4998
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4999
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6394
5002
# Sun Fortran 8.3 passes all unrecognized flags to the linker
6395
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6396
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6397
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
5003
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5004
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5005
_LT_TAGVAR(lt_prog_compiler_wl, $1)=''
5013
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5014
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5018
# QNX uses GNU C++, but need to define -shared option too, otherwise
5020
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
6404
5023
osf3* | osf4* | osf5*)
6405
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5024
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6406
5025
# All OSF/1 code is PIC.
6407
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5026
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6411
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5030
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6415
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6416
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5034
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5035
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6417
5036
case $cc_basename in
6418
5037
f77* | f90* | f95*)
6419
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
5038
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
6421
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
5040
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
6426
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
6427
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
6428
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5045
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5046
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5047
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6431
5050
sysv4 | sysv4.2uw2* | sysv4.3*)
6432
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6433
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6434
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5051
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5052
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5053
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6438
5057
if test -d /usr/nec ;then
6439
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
6440
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5058
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
5059
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6444
5063
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6445
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6446
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6447
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5064
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5065
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5066
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6451
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6452
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5070
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5071
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6456
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6457
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5075
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5076
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6461
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5080
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6466
AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
5086
# For platforms which do not support PIC, -DPIC is meaningless:
5088
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
5091
_LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
5094
AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
5095
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
5096
[How to pass a linker flag through the compiler])
6469
5099
# Check to make sure the PIC flag actually works.
6471
if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
6472
AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
6473
_LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1),
6474
[$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
6475
[case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
5101
if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
5102
_LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
5103
[_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
5104
[$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
5105
[case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
6477
*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
5107
*) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
6479
[_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6480
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
5109
[_LT_TAGVAR(lt_prog_compiler_pic, $1)=
5110
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
6483
# For platforms which do not support PIC, -DPIC is meaningless:
6485
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6488
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
5112
_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
5113
[Additional compiler flags for building library objects])
6493
5116
# Check to make sure the static flag actually works.
6495
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
6496
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
6497
_LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1),
5118
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
5119
_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
5120
_LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
6498
5121
$lt_tmp_static_flag,
6500
[_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
6504
# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
6505
# ------------------------------------
5123
[_LT_TAGVAR(lt_prog_compiler_static, $1)=])
5124
_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
5125
[Compiler flag to prevent dynamic linking])
5126
])# _LT_COMPILER_PIC
5129
# _LT_LINKER_SHLIBS([TAGNAME])
5130
# ----------------------------
6506
5131
# See if the linker supports building shared libraries.
6507
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
6508
[AC_REQUIRE([LT_AC_PROG_SED])dnl
5132
m4_defun([_LT_LINKER_SHLIBS],
5133
[AC_REQUIRE([LT_PATH_LD])dnl
5134
AC_REQUIRE([LT_PATH_NM])dnl
5135
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5136
m4_require([_LT_DECL_EGREP])dnl
5137
m4_require([_LT_DECL_SED])dnl
5138
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
5139
m4_require([_LT_TAG_COMPILER])dnl
6509
5140
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
6511
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5141
m4_if([$1], [CXX], [
5142
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6512
5143
case $host_os in
6514
5145
# If we're using GNU nm, then we don't want the "-C" option.
6515
5146
# -C means demangle to AIX nm, but means don't demangle with GNU nm
6516
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6517
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
5147
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
5148
_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'
6519
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
5150
_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'
6523
_LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5154
_LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
6526
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
5156
cygwin* | mingw* | cegcc*)
5157
_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'
6529
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5160
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6532
_LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5163
_LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
6535
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
6536
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6537
_LT_AC_TAGVAR(archive_cmds, $1)=
6538
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
6539
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
6540
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
6541
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
6542
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6543
_LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
6544
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
6545
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6546
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
6547
_LT_AC_TAGVAR(hardcode_direct, $1)=no
6548
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
6549
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6550
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
6551
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
6552
_LT_AC_TAGVAR(module_cmds, $1)=
6553
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
6554
_LT_AC_TAGVAR(always_export_symbols, $1)=no
6555
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5166
_LT_TAGVAR(allow_undefined_flag, $1)=
5167
_LT_TAGVAR(always_export_symbols, $1)=no
5168
_LT_TAGVAR(archive_cmds, $1)=
5169
_LT_TAGVAR(archive_expsym_cmds, $1)=
5170
_LT_TAGVAR(compiler_needs_object, $1)=no
5171
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5172
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
5173
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5174
_LT_TAGVAR(hardcode_automatic, $1)=no
5175
_LT_TAGVAR(hardcode_direct, $1)=no
5176
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
5177
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5178
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5179
_LT_TAGVAR(hardcode_libdir_separator, $1)=
5180
_LT_TAGVAR(hardcode_minus_L, $1)=no
5181
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5182
_LT_TAGVAR(inherit_rpath, $1)=no
5183
_LT_TAGVAR(link_all_deplibs, $1)=unknown
5184
_LT_TAGVAR(module_cmds, $1)=
5185
_LT_TAGVAR(module_expsym_cmds, $1)=
5186
_LT_TAGVAR(old_archive_from_new_cmds, $1)=
5187
_LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
5188
_LT_TAGVAR(thread_safe_flag_spec, $1)=
5189
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6556
5190
# include_expsyms should be a list of space-separated symbols to be *always*
6557
5191
# included in the symbol list
6558
_LT_AC_TAGVAR(include_expsyms, $1)=
5192
_LT_TAGVAR(include_expsyms, $1)=
6559
5193
# exclude_expsyms can be an extended regexp of symbols to exclude
6560
5194
# it will be wrapped by ` (' and `)$', so one must not match beginning or
6561
5195
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6562
5196
# as well as any symbol that contains `d'.
6563
_LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5197
_LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
6564
5198
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6565
5199
# platforms (ab)use it in PIC code, but their linkers get confused if
6566
5200
# the symbol is explicitly referenced. Since portable code cannot
7160
5795
irix5* | irix6* | nonstopux*)
7161
5796
if test "$GCC" = yes; then
7162
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5797
_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'
5798
# Try to use the -exported_symbol ld option, if it does not
5799
# work, assume that -exports_file does not work either and
5800
# implicitly export all symbols.
5801
save_LDFLAGS="$LDFLAGS"
5802
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5803
AC_LINK_IFELSE(int foo(void) {},
5804
_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'
5806
LDFLAGS="$save_LDFLAGS"
7164
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7165
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
5808
_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'
5809
_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'
7167
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7168
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7169
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5811
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5812
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5813
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5814
_LT_TAGVAR(inherit_rpath, $1)=yes
5815
_LT_TAGVAR(link_all_deplibs, $1)=yes
7173
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7174
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5819
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5820
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7176
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5822
_LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7178
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7179
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
7180
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5824
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5825
_LT_TAGVAR(hardcode_direct, $1)=yes
5826
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7184
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7185
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
7186
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7187
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7188
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5830
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5831
_LT_TAGVAR(hardcode_direct, $1)=yes
5832
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5833
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5834
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7192
5841
if test -f /usr/libexec/ld.so; then
7193
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
7194
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7195
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7196
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7197
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7198
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7199
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5842
_LT_TAGVAR(hardcode_direct, $1)=yes
5843
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5844
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5845
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5846
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5847
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
5848
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5849
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7201
5851
case $host_os in
7202
5852
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
7203
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7204
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5853
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5854
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7207
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7208
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5857
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5858
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7213
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5863
_LT_TAGVAR(ld_shlibs, $1)=no
7218
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7219
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7220
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
7221
_LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
7222
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5868
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5869
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5870
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5871
_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'
5872
_LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7226
5876
if test "$GCC" = yes; then
7227
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7228
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5877
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5878
_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'
7230
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
7231
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5880
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5881
_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'
7233
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7234
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5883
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5884
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5885
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
7237
5888
osf4* | osf5*) # as osf3* with the addition of -msym flag
7238
5889
if test "$GCC" = yes; then
7239
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7240
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7241
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5890
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5891
_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'
5892
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7243
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
7244
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7245
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7246
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
5894
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5895
_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'
5896
_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~
5897
$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'
7248
5899
# Both c and cxx compiler support -rpath directly
7249
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5900
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
7251
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5902
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5903
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
7255
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
5907
_LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
7256
5908
if test "$GCC" = yes; then
7258
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7259
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7260
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
5910
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5911
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5912
$CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7263
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7264
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7265
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5914
case `$CC -V 2>&1` in
5917
_LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5918
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5919
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
5923
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
5924
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5925
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7267
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7268
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5929
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5930
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7269
5931
case $host_os in
7270
5932
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7272
5934
# The compiler driver will combine and reorder linker options,
7273
5935
# but understands `-z linker_flag'. GCC discards it without `$wl',
7274
5936
# but is careful enough not to reorder.
7275
# Supported since Solaris 2.6 (maybe 2.5.1?)
5937
# Supported since Solaris 2.6 (maybe 2.5.1?)
7276
5938
if test "$GCC" = yes; then
7277
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
5939
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7279
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
5941
_LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
7283
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5945
_LT_TAGVAR(link_all_deplibs, $1)=yes
7287
5949
if test "x$host_vendor" = xsequent; then
7288
5950
# Use $CC to link under sequent, because it throws in some extra .o
7289
5951
# files that make .init and .fini sections work.
7290
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5952
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7292
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5954
_LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7294
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7295
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
7296
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7297
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5956
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5957
_LT_TAGVAR(hardcode_direct, $1)=yes
5958
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5959
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7301
5963
case $host_vendor in
7303
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7304
_LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
5965
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5966
_LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
7307
5969
## LD is ld it makes a PLAMLIB
7308
5970
## CC just makes a GrossModule.
7309
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7310
_LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
7311
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5971
_LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5972
_LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
5973
_LT_TAGVAR(hardcode_direct, $1)=no
7314
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7315
_LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
5976
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5977
_LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
7318
5980
runpath_var='LD_RUN_PATH'
7319
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5981
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7323
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7324
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7325
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
5985
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5986
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5987
_LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
7329
5991
if test -d /usr/nec; then
7330
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7331
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5992
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5993
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7332
5994
runpath_var=LD_RUN_PATH
7333
5995
hardcode_runpath_var=yes
7334
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
5996
_LT_TAGVAR(ld_shlibs, $1)=yes
7338
6000
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
7339
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7340
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7341
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6001
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6002
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6003
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7342
6004
runpath_var='LD_RUN_PATH'
7344
6006
if test "$GCC" = yes; then
7345
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7346
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6007
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6008
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7348
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7349
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6010
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6011
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7418
6095
libobjs=conftest.$ac_objext
7420
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
7421
pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
6097
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
6098
pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
7422
6099
compiler_flags=-v
7423
6100
linker_flags=-v
7425
6102
output_objdir=.
7426
6103
libname=conftest
7427
lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
7428
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
7429
if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
6104
lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
6105
_LT_TAGVAR(allow_undefined_flag, $1)=
6106
if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
7431
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6108
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7433
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6110
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
7435
_LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
6112
_LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
7437
6114
cat conftest.err 1>&5
7440
AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
6117
AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
7446
])# AC_LIBTOOL_PROG_LD_SHLIBS
7449
# _LT_AC_FILE_LTDLL_C
7450
# -------------------
7451
# Be careful that the start marker always follows a newline.
7452
AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
7453
# /* ltdll.c starts here */
7454
# #define WIN32_LEAN_AND_MEAN
7455
# #include <windows.h>
7456
# #undef WIN32_LEAN_AND_MEAN
7457
# #include <stdio.h>
7459
# #ifndef __CYGWIN__
7460
# # ifdef __CYGWIN32__
7461
# # define __CYGWIN__ __CYGWIN32__
7465
# #ifdef __cplusplus
7468
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7469
# #ifdef __cplusplus
7474
# #include <cygwin/cygwin_dll.h>
7475
# DECLARE_CYGWIN_DLL( DllMain );
7477
# HINSTANCE __hDllInstance_base;
7480
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7482
# __hDllInstance_base = hInst;
7485
# /* ltdll.c ends here */
7486
])# _LT_AC_FILE_LTDLL_C
7489
# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
6124
_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
6125
[Whether or not to add -lc for building shared libraries])
6126
_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
6127
[enable_shared_with_static_runtimes], [0],
6128
[Whether or not to disallow shared libs when runtime libs are static])
6129
_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
6130
[Compiler flag to allow reflexive dlopens])
6131
_LT_TAGDECL([], [whole_archive_flag_spec], [1],
6132
[Compiler flag to generate shared objects directly from archives])
6133
_LT_TAGDECL([], [compiler_needs_object], [1],
6134
[Whether the compiler copes with passing no objects directly])
6135
_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
6136
[Create an old-style archive from a shared archive])
6137
_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
6138
[Create a temporary old-style archive to link instead of a shared archive])
6139
_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
6140
_LT_TAGDECL([], [archive_expsym_cmds], [2])
6141
_LT_TAGDECL([], [module_cmds], [2],
6142
[Commands used to build a loadable module if different from building
6144
_LT_TAGDECL([], [module_expsym_cmds], [2])
6145
_LT_TAGDECL([], [with_gnu_ld], [1],
6146
[Whether we are building with GNU ld or not])
6147
_LT_TAGDECL([], [allow_undefined_flag], [1],
6148
[Flag that allows shared libraries with undefined symbols to be built])
6149
_LT_TAGDECL([], [no_undefined_flag], [1],
6150
[Flag that enforces no undefined symbols])
6151
_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
6152
[Flag to hardcode $libdir into a binary during linking.
6153
This must work even if $libdir does not exist])
6154
_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
6155
[[If ld is used when linking, flag to hardcode $libdir into a binary
6156
during linking. This must work even if $libdir does not exist]])
6157
_LT_TAGDECL([], [hardcode_libdir_separator], [1],
6158
[Whether we need a single "-rpath" flag with a separated argument])
6159
_LT_TAGDECL([], [hardcode_direct], [0],
6160
[Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
6161
DIR into the resulting binary])
6162
_LT_TAGDECL([], [hardcode_direct_absolute], [0],
6163
[Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
6164
DIR into the resulting binary and the resulting library dependency is
6165
"absolute", i.e impossible to change by setting ${shlibpath_var} if the
6166
library is relocated])
6167
_LT_TAGDECL([], [hardcode_minus_L], [0],
6168
[Set to "yes" if using the -LDIR flag during linking hardcodes DIR
6169
into the resulting binary])
6170
_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
6171
[Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
6172
into the resulting binary])
6173
_LT_TAGDECL([], [hardcode_automatic], [0],
6174
[Set to "yes" if building a shared library automatically hardcodes DIR
6175
into the library and all subsequent libraries and executables linked
6177
_LT_TAGDECL([], [inherit_rpath], [0],
6178
[Set to yes if linker adds runtime paths of dependent libraries
6179
to runtime path list])
6180
_LT_TAGDECL([], [link_all_deplibs], [0],
6181
[Whether libtool must link a program against all its dependency libraries])
6182
_LT_TAGDECL([], [fix_srcfile_path], [1],
6183
[Fix the shell variable $srcfile for the compiler])
6184
_LT_TAGDECL([], [always_export_symbols], [0],
6185
[Set to "yes" if exported symbols are required])
6186
_LT_TAGDECL([], [export_symbols_cmds], [2],
6187
[The commands to list exported symbols])
6188
_LT_TAGDECL([], [exclude_expsyms], [1],
6189
[Symbols that should not be listed in the preloaded symbols])
6190
_LT_TAGDECL([], [include_expsyms], [1],
6191
[Symbols that must always be exported])
6192
_LT_TAGDECL([], [prelink_cmds], [2],
6193
[Commands necessary for linking programs (against libraries) with templates])
6194
_LT_TAGDECL([], [file_list_spec], [1],
6195
[Specify filename containing input files])
6196
dnl FIXME: Not yet implemented
6197
dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
6198
dnl [Compiler flag to generate thread safe objects])
6199
])# _LT_LINKER_SHLIBS
6202
# _LT_LANG_C_CONFIG([TAG])
6203
# ------------------------
6204
# Ensure that the configuration variables for a C compiler are suitably
6205
# defined. These variables are subsequently used by _LT_CONFIG to write
6206
# the compiler configuration to `libtool'.
6207
m4_defun([_LT_LANG_C_CONFIG],
6208
[m4_require([_LT_DECL_EGREP])dnl
6212
# Source file extension for C test sources.
6215
# Object file extension for compiled C test sources.
6217
_LT_TAGVAR(objext, $1)=$objext
6219
# Code to be used in simple compile tests
6220
lt_simple_compile_test_code="int some_variable = 0;"
6222
# Code to be used in simple link tests
6223
lt_simple_link_test_code='int main(){return(0);}'
6226
# Save the default compiler, since it gets overwritten when the other
6227
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6228
compiler_DEFAULT=$CC
6230
# save warnings/boilerplate of simple test code
6231
_LT_COMPILER_BOILERPLATE
6232
_LT_LINKER_BOILERPLATE
6234
if test -n "$compiler"; then
6235
_LT_COMPILER_NO_RTTI($1)
6236
_LT_COMPILER_PIC($1)
6237
_LT_COMPILER_C_O($1)
6238
_LT_COMPILER_FILE_LOCKS($1)
6239
_LT_LINKER_SHLIBS($1)
6240
_LT_SYS_DYNAMIC_LINKER($1)
6241
_LT_LINKER_HARDCODE_LIBPATH($1)
6245
# Report which library types will actually be built
6246
AC_MSG_CHECKING([if libtool supports shared libraries])
6247
AC_MSG_RESULT([$can_build_shared])
6249
AC_MSG_CHECKING([whether to build shared libraries])
6250
test "$can_build_shared" = "no" && enable_shared=no
6252
# On AIX, shared libraries and static libraries use the same namespace, and
6253
# are all built from PIC.
6256
test "$enable_shared" = yes && enable_static=no
6257
if test -n "$RANLIB"; then
6258
archive_cmds="$archive_cmds~\$RANLIB \$lib"
6259
postinstall_cmds='$RANLIB $lib'
6264
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6265
test "$enable_shared" = yes && enable_static=no
6269
AC_MSG_RESULT([$enable_shared])
6271
AC_MSG_CHECKING([whether to build static libraries])
6272
# Make sure either enable_shared or enable_static is yes.
6273
test "$enable_shared" = yes || enable_static=yes
6274
AC_MSG_RESULT([$enable_static])
6280
])# _LT_LANG_C_CONFIG
6285
# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
6286
# compiler, we have our own version here.
6287
m4_defun([_LT_PROG_CXX],
6289
pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
6291
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6292
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6293
(test "X$CXX" != "Xg++"))) ; then
6296
_lt_caught_CXX_error=yes
6298
popdef([AC_MSG_ERROR])
6301
dnl aclocal-1.4 backwards compatibility:
6302
dnl AC_DEFUN([_LT_PROG_CXX], [])
6305
# _LT_LANG_CXX_CONFIG([TAG])
6306
# --------------------------
6307
# Ensure that the configuration variables for a C++ compiler are suitably
6308
# defined. These variables are subsequently used by _LT_CONFIG to write
6309
# the compiler configuration to `libtool'.
6310
m4_defun([_LT_LANG_CXX_CONFIG],
6311
[AC_REQUIRE([_LT_PROG_CXX])dnl
6312
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6313
m4_require([_LT_DECL_EGREP])dnl
6316
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6317
_LT_TAGVAR(allow_undefined_flag, $1)=
6318
_LT_TAGVAR(always_export_symbols, $1)=no
6319
_LT_TAGVAR(archive_expsym_cmds, $1)=
6320
_LT_TAGVAR(compiler_needs_object, $1)=no
6321
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
6322
_LT_TAGVAR(hardcode_direct, $1)=no
6323
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
6324
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6325
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6326
_LT_TAGVAR(hardcode_libdir_separator, $1)=
6327
_LT_TAGVAR(hardcode_minus_L, $1)=no
6328
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6329
_LT_TAGVAR(hardcode_automatic, $1)=no
6330
_LT_TAGVAR(inherit_rpath, $1)=no
6331
_LT_TAGVAR(module_cmds, $1)=
6332
_LT_TAGVAR(module_expsym_cmds, $1)=
6333
_LT_TAGVAR(link_all_deplibs, $1)=unknown
6334
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6335
_LT_TAGVAR(no_undefined_flag, $1)=
6336
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6337
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6339
# Source file extension for C++ test sources.
6342
# Object file extension for compiled C++ test sources.
6344
_LT_TAGVAR(objext, $1)=$objext
6346
# No sense in running all these tests if we already determined that
6347
# the CXX compiler isn't working. Some variables (like enable_shared)
6348
# are currently assumed to apply to all compilers on this platform,
6349
# and will be corrupted by setting them based on a non-working compiler.
6350
if test "$_lt_caught_CXX_error" != yes; then
6351
# Code to be used in simple compile tests
6352
lt_simple_compile_test_code="int some_variable = 0;"
6354
# Code to be used in simple link tests
6355
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
6357
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
6360
# save warnings/boilerplate of simple test code
6361
_LT_COMPILER_BOILERPLATE
6362
_LT_LINKER_BOILERPLATE
6364
# Allow CC to be a program name with arguments.
6369
lt_save_with_gnu_ld=$with_gnu_ld
6370
lt_save_path_LD=$lt_cv_path_LD
6371
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
6372
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
6374
$as_unset lt_cv_prog_gnu_ld
6376
if test -n "${lt_cv_path_LDCXX+set}"; then
6377
lt_cv_path_LD=$lt_cv_path_LDCXX
6379
$as_unset lt_cv_path_LD
6381
test -z "${LDCXX+set}" || LD=$LDCXX
6384
_LT_TAGVAR(compiler, $1)=$CC
6385
_LT_CC_BASENAME([$compiler])
6387
if test -n "$compiler"; then
6388
# We don't want -fno-exception when compiling C++ code, so set the
6389
# no_builtin_flag separately
6390
if test "$GXX" = yes; then
6391
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
6393
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
6396
if test "$GXX" = yes; then
6397
# Set up default GNU C++ configuration
6401
# Check if GNU C++ uses GNU ld as the underlying linker, since the
6402
# archiving commands below assume that GNU ld is being used.
6403
if test "$with_gnu_ld" = yes; then
6404
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6405
_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'
6407
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6408
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6410
# If archive_cmds runs LD, not CC, wlarc should be empty
6411
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
6412
# investigate it a little bit more. (MM)
6415
# ancient GNU ld didn't support --whole-archive et. al.
6416
if eval "`$CC -print-prog-name=ld` --help 2>&1" |
6417
$GREP 'no-whole-archive' > /dev/null; then
6418
_LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6420
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6426
# A generic and very simple default shared library creation
6427
# command for GNU C++ for the case where it uses the native
6428
# linker, instead of GNU ld. If possible, this setting should
6429
# overridden to take advantage of the native linker features on
6430
# the platform it is being used on.
6431
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6434
# Commands to make compiler produce verbose output that lists
6435
# what "hidden" libraries, object files and flags are used when
6436
# linking a shared library.
6437
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6445
# PORTME: fill in a description of your system's C++ link characteristics
6446
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
6447
_LT_TAGVAR(ld_shlibs, $1)=yes
6450
# FIXME: insert proper C++ library support
6451
_LT_TAGVAR(ld_shlibs, $1)=no
6454
if test "$host_cpu" = ia64; then
6455
# On IA64, the linker does run time linking by default, so we don't
6456
# have to do anything special.
6457
aix_use_runtimelinking=no
6458
exp_sym_flag='-Bexport'
6461
aix_use_runtimelinking=no
6463
# Test if we are trying to use run time linking or normal
6464
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
6465
# need to do runtime linking.
6466
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
6467
for ld_flag in $LDFLAGS; do
6470
aix_use_runtimelinking=yes
6478
exp_sym_flag='-bexport'
6479
no_entry_flag='-bnoentry'
6482
# When large executables or shared objects are built, AIX ld can
6483
# have problems creating the table of contents. If linking a library
6484
# or program results in "error TOC overflow" add -mminimal-toc to
6485
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6486
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6488
_LT_TAGVAR(archive_cmds, $1)=''
6489
_LT_TAGVAR(hardcode_direct, $1)=yes
6490
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6491
_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6492
_LT_TAGVAR(link_all_deplibs, $1)=yes
6493
_LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
6495
if test "$GXX" = yes; then
6496
case $host_os in aix4.[[012]]|aix4.[[012]].*)
6497
# We only want to do this on AIX 4.2 and lower, the check
6498
# below for broken collect2 doesn't work under 4.3+
6499
collect2name=`${CC} -print-prog-name=collect2`
6500
if test -f "$collect2name" &&
6501
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
6503
# We have reworked collect2
6506
# We have old collect2
6507
_LT_TAGVAR(hardcode_direct, $1)=unsupported
6508
# It fails to find uninstalled libraries when the uninstalled
6509
# path is not listed in the libpath. Setting hardcode_minus_L
6510
# to unsupported forces relinking
6511
_LT_TAGVAR(hardcode_minus_L, $1)=yes
6512
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6513
_LT_TAGVAR(hardcode_libdir_separator, $1)=
6516
shared_flag='-shared'
6517
if test "$aix_use_runtimelinking" = yes; then
6518
shared_flag="$shared_flag "'${wl}-G'
6522
if test "$host_cpu" = ia64; then
6523
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6524
# chokes on -Wl,-G. The following line is correct:
6527
if test "$aix_use_runtimelinking" = yes; then
6528
shared_flag='${wl}-G'
6530
shared_flag='${wl}-bM:SRE'
6535
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
6536
# It seems that -bexpall does not export symbols beginning with
6537
# underscore (_), so it is better to generate a list of symbols to
6539
_LT_TAGVAR(always_export_symbols, $1)=yes
6540
if test "$aix_use_runtimelinking" = yes; then
6541
# Warning - without using the other runtime loading flags (-brtl),
6542
# -berok will link without error, but may produce a broken library.
6543
_LT_TAGVAR(allow_undefined_flag, $1)='-berok'
6544
# Determine the default libpath from the value encoded in an empty
6546
_LT_SYS_MODULE_PATH_AIX
6547
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6549
_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"
6551
if test "$host_cpu" = ia64; then
6552
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6553
_LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6554
_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"
6556
# Determine the default libpath from the value encoded in an
6558
_LT_SYS_MODULE_PATH_AIX
6559
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6560
# Warning - without using the other run time loading flags,
6561
# -berok will link without error, but may produce a broken library.
6562
_LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6563
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6564
# Exported symbols can be pulled into shared objects from archives
6565
_LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6566
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6567
# This is similar to how AIX traditionally builds its shared
6569
_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'
6575
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6576
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6577
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6578
# support --undefined. This deserves some investigation. FIXME
6579
_LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6581
_LT_TAGVAR(ld_shlibs, $1)=no
6586
case $cc_basename in
6588
# FIXME: insert proper C++ library support
6589
_LT_TAGVAR(ld_shlibs, $1)=no
6594
cygwin* | mingw* | pw32* | cegcc*)
6595
# _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6596
# as there is no search path for DLLs.
6597
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6598
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6599
_LT_TAGVAR(always_export_symbols, $1)=no
6600
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6602
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6603
_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'
6604
# If the export-symbols file already is a .def file (1st line
6605
# is EXPORTS), use it as is; otherwise, prepend...
6606
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6607
cp $export_symbols $output_objdir/$soname.def;
6609
echo EXPORTS > $output_objdir/$soname.def;
6610
cat $export_symbols >> $output_objdir/$soname.def;
6612
$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'
6614
_LT_TAGVAR(ld_shlibs, $1)=no
6617
darwin* | rhapsody*)
6618
_LT_DARWIN_LINKER_FEATURES($1)
6622
case $cc_basename in
6624
# FIXME: insert proper C++ library support
6625
_LT_TAGVAR(ld_shlibs, $1)=no
6628
# Green Hills C++ Compiler
6629
# FIXME: insert proper C++ library support
6630
_LT_TAGVAR(ld_shlibs, $1)=no
6633
# FIXME: insert proper C++ library support
6634
_LT_TAGVAR(ld_shlibs, $1)=no
6640
# C++ shared libraries reported to be fairly broken before
6642
_LT_TAGVAR(ld_shlibs, $1)=no
6646
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6649
freebsd* | dragonfly*)
6650
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
6652
_LT_TAGVAR(ld_shlibs, $1)=yes
6659
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6660
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6661
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6662
_LT_TAGVAR(hardcode_direct, $1)=yes
6663
_LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6664
# but as the default
6665
# location of the library.
6667
case $cc_basename in
6669
# FIXME: insert proper C++ library support
6670
_LT_TAGVAR(ld_shlibs, $1)=no
6673
_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'
6674
# Commands to make compiler produce verbose output that lists
6675
# what "hidden" libraries, object files and flags are used when
6676
# linking a shared library.
6678
# There doesn't appear to be a way to prevent this compiler from
6679
# explicitly linking system object files so we need to strip them
6680
# from the output so that they don't get included in the library
6682
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'
6685
if test "$GXX" = yes; then
6686
_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'
6688
# FIXME: insert proper C++ library support
6689
_LT_TAGVAR(ld_shlibs, $1)=no
6696
if test $with_gnu_ld = no; then
6697
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6698
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6704
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6710
_LT_TAGVAR(hardcode_direct, $1)=no
6711
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6714
_LT_TAGVAR(hardcode_direct, $1)=yes
6715
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6716
_LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6717
# but as the default
6718
# location of the library.
6722
case $cc_basename in
6724
# FIXME: insert proper C++ library support
6725
_LT_TAGVAR(ld_shlibs, $1)=no
6730
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6733
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6736
_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'
6739
# Commands to make compiler produce verbose output that lists
6740
# what "hidden" libraries, object files and flags are used when
6741
# linking a shared library.
6743
# There doesn't appear to be a way to prevent this compiler from
6744
# explicitly linking system object files so we need to strip them
6745
# from the output so that they don't get included in the library
6747
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'
6750
if test "$GXX" = yes; then
6751
if test $with_gnu_ld = no; then
6754
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6757
_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'
6760
_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'
6765
# FIXME: insert proper C++ library support
6766
_LT_TAGVAR(ld_shlibs, $1)=no
6773
_LT_TAGVAR(hardcode_direct, $1)=no
6774
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6775
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6776
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6777
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6778
# Instead, shared libraries are loaded at an image base (0x10000000 by
6779
# default) and relocated if they conflict, which is a slow very memory
6780
# consuming and fragmenting process. To avoid this, we pick a random,
6781
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6782
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
6783
_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'
6784
_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'
6787
case $cc_basename in
6790
_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'
6792
# Archives containing C++ object files must be created using
6793
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
6794
# necessary to make sure instantiated templates are included
6796
_LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
6799
if test "$GXX" = yes; then
6800
if test "$with_gnu_ld" = no; then
6801
_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'
6803
_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'
6806
_LT_TAGVAR(link_all_deplibs, $1)=yes
6809
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6810
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6811
_LT_TAGVAR(inherit_rpath, $1)=yes
6814
linux* | k*bsd*-gnu)
6815
case $cc_basename in
6817
# Kuck and Associates, Inc. (KAI) C++ Compiler
6819
# KCC will only create a shared library if the output file
6820
# ends with ".so" (or ".sl" for HP-UX), so rename the library
6821
# to its proper name (with version) after linking.
6822
_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'
6823
_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'
6824
# Commands to make compiler produce verbose output that lists
6825
# what "hidden" libraries, object files and flags are used when
6826
# linking a shared library.
6828
# There doesn't appear to be a way to prevent this compiler from
6829
# explicitly linking system object files so we need to strip them
6830
# from the output so that they don't get included in the library
6832
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'
6834
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6835
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6837
# Archives containing C++ object files must be created using
6838
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
6839
_LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
6844
# version 8.0 and above of icpc choke on multiply defined symbols
6845
# if we add $predep_objects and $postdep_objects, however 7.1 and
6846
# earlier do not add the objects themselves.
6847
case `$CC -V 2>&1` in
6849
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6850
_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'
6852
*) # Version 8.0 or newer
6855
ia64*) tmp_idyn=' -i_dynamic';;
6857
_LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6858
_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'
6861
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6862
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6863
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6864
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6867
# Portland Group C++ compiler
6869
*pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
6870
_LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
6872
$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
6873
compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
6874
_LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
6876
$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
6877
$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
6879
_LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
6881
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6882
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6883
_LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
6885
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6886
$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'
6888
*) # Version 6 will use weak symbols
6889
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6890
_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'
6894
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6895
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6896
_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'
6900
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6901
_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'
6903
runpath_var=LD_RUN_PATH
6904
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6905
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6907
# Commands to make compiler produce verbose output that lists
6908
# what "hidden" libraries, object files and flags are used when
6909
# linking a shared library.
6911
# There doesn't appear to be a way to prevent this compiler from
6912
# explicitly linking system object files so we need to strip them
6913
# from the output so that they don't get included in the library
6915
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'
6918
# IBM XL 8.0 on PPC, with GNU ld
6919
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6920
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6921
_LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6922
if test "x$supports_anon_versioning" = xyes; then
6923
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
6924
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6925
echo "local: *; };" >> $output_objdir/$libname.ver~
6926
$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6930
case `$CC -V 2>&1 | sed 5q` in
6933
_LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6934
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6935
_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'
6936
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6937
_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'
6938
_LT_TAGVAR(compiler_needs_object, $1)=yes
6940
# Not sure whether something based on
6941
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
6943
output_verbose_link_cmd='echo'
6945
# Archives containing C++ object files must be created using
6946
# "CC -xar", where "CC" is the Sun C++ compiler. This is
6947
# necessary to make sure instantiated templates are included
6949
_LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6957
# FIXME: insert proper C++ library support
6958
_LT_TAGVAR(ld_shlibs, $1)=no
6962
# FIXME: insert proper C++ library support
6963
_LT_TAGVAR(ld_shlibs, $1)=no
6967
case $cc_basename in
6969
# FIXME: insert proper C++ library support
6970
_LT_TAGVAR(ld_shlibs, $1)=no
6973
# FIXME: insert proper C++ library support
6974
_LT_TAGVAR(ld_shlibs, $1)=no
6980
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6981
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
6983
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6984
_LT_TAGVAR(hardcode_direct, $1)=yes
6985
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6987
# Workaround some broken pre-1.5 toolchains
6988
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
6992
_LT_TAGVAR(ld_shlibs, $1)=yes
6996
# C++ shared libraries are fairly broken
6997
_LT_TAGVAR(ld_shlibs, $1)=no
7001
if test -f /usr/libexec/ld.so; then
7002
_LT_TAGVAR(hardcode_direct, $1)=yes
7003
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7004
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
7005
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
7006
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7007
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7008
_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'
7009
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7010
_LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7012
output_verbose_link_cmd=echo
7014
_LT_TAGVAR(ld_shlibs, $1)=no
7018
osf3* | osf4* | osf5*)
7019
case $cc_basename in
7021
# Kuck and Associates, Inc. (KAI) C++ Compiler
7023
# KCC will only create a shared library if the output file
7024
# ends with ".so" (or ".sl" for HP-UX), so rename the library
7025
# to its proper name (with version) after linking.
7026
_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'
7028
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7029
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
7031
# Archives containing C++ object files must be created using
7032
# the KAI C++ compiler.
7034
osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
7035
*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
7039
# Rational C++ 2.4.1
7040
# FIXME: insert proper C++ library support
7041
_LT_TAGVAR(ld_shlibs, $1)=no
7046
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7047
_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'
7048
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7051
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
7052
_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'
7053
_LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
7054
echo "-hidden">> $lib.exp~
7055
$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~
7057
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
7061
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
7063
# Commands to make compiler produce verbose output that lists
7064
# what "hidden" libraries, object files and flags are used when
7065
# linking a shared library.
7067
# There doesn't appear to be a way to prevent this compiler from
7068
# explicitly linking system object files so we need to strip them
7069
# from the output so that they don't get included in the library
7071
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'
7074
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
7075
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7078
_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'
7081
_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'
7085
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7086
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
7088
# Commands to make compiler produce verbose output that lists
7089
# what "hidden" libraries, object files and flags are used when
7090
# linking a shared library.
7091
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
7094
# FIXME: insert proper C++ library support
7095
_LT_TAGVAR(ld_shlibs, $1)=no
7102
# FIXME: insert proper C++ library support
7103
_LT_TAGVAR(ld_shlibs, $1)=no
7107
case $cc_basename in
7110
# FIXME: insert proper C++ library support
7111
_LT_TAGVAR(ld_shlibs, $1)=no
7115
# FIXME: insert proper C++ library support
7116
_LT_TAGVAR(ld_shlibs, $1)=no
7119
# FIXME: insert proper C++ library support
7120
_LT_TAGVAR(ld_shlibs, $1)=no
7126
case $cc_basename in
7128
# Sun C++ 4.2, 5.x and Centerline C++
7129
_LT_TAGVAR(archive_cmds_need_lc,$1)=yes
7130
_LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
7131
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7132
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7133
$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'
7135
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7136
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7138
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7140
# The compiler driver will combine and reorder linker options,
7141
# but understands `-z linker_flag'.
7142
# Supported since Solaris 2.6 (maybe 2.5.1?)
7143
_LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
7146
_LT_TAGVAR(link_all_deplibs, $1)=yes
7148
output_verbose_link_cmd='echo'
7150
# Archives containing C++ object files must be created using
7151
# "CC -xar", where "CC" is the Sun C++ compiler. This is
7152
# necessary to make sure instantiated templates are included
7154
_LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
7157
# Green Hills C++ Compiler
7158
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
7160
# The C++ compiler must be used to create the archive.
7161
_LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
7164
# GNU C++ compiler with Solaris linker
7165
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
7166
_LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
7167
if $CC --version | $GREP -v '^2\.7' > /dev/null; then
7168
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
7169
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7170
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
7172
# Commands to make compiler produce verbose output that lists
7173
# what "hidden" libraries, object files and flags are used when
7174
# linking a shared library.
7175
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
7177
# g++ 2.7 appears to require `-G' NOT `-shared' on this
7179
_LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
7180
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7181
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
7183
# Commands to make compiler produce verbose output that lists
7184
# what "hidden" libraries, object files and flags are used when
7185
# linking a shared library.
7186
output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
7189
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
7191
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7193
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7201
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
7202
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7203
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7204
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7205
runpath_var='LD_RUN_PATH'
7207
case $cc_basename in
7209
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7210
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7213
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7214
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7219
sysv5* | sco3.2v5* | sco5v6*)
7220
# Note: We can NOT use -z defs as we might desire, because we do not
7221
# link with -lc, and that would cause any symbols used from libc to
7222
# always be unresolved, which means just about no library would
7223
# ever link correctly. If we're not using GNU ld we use -z text
7224
# though, which does catch some bad symbols but isn't as heavy-handed
7226
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7227
_LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
7228
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7229
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7230
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
7231
_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
7232
_LT_TAGVAR(link_all_deplibs, $1)=yes
7233
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
7234
runpath_var='LD_RUN_PATH'
7236
case $cc_basename in
7238
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7239
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7242
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7243
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7249
case $cc_basename in
7251
# NonStop-UX NCC 3.20
7252
# FIXME: insert proper C++ library support
7253
_LT_TAGVAR(ld_shlibs, $1)=no
7256
# FIXME: insert proper C++ library support
7257
_LT_TAGVAR(ld_shlibs, $1)=no
7263
# FIXME: insert proper C++ library support
7264
_LT_TAGVAR(ld_shlibs, $1)=no
7268
# FIXME: insert proper C++ library support
7269
_LT_TAGVAR(ld_shlibs, $1)=no
7273
AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
7274
test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
7276
_LT_TAGVAR(GCC, $1)="$GXX"
7277
_LT_TAGVAR(LD, $1)="$LD"
7280
## There is no encapsulation within the following macros, do not change
7281
## the running order or otherwise move them around unless you know exactly
7282
## what you are doing...
7283
_LT_SYS_HIDDEN_LIBDEPS($1)
7284
_LT_COMPILER_PIC($1)
7285
_LT_COMPILER_C_O($1)
7286
_LT_COMPILER_FILE_LOCKS($1)
7287
_LT_LINKER_SHLIBS($1)
7288
_LT_SYS_DYNAMIC_LINKER($1)
7289
_LT_LINKER_HARDCODE_LIBPATH($1)
7292
fi # test -n "$compiler"
7298
with_gnu_ld=$lt_save_with_gnu_ld
7299
lt_cv_path_LDCXX=$lt_cv_path_LD
7300
lt_cv_path_LD=$lt_save_path_LD
7301
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
7302
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
7303
fi # test "$_lt_caught_CXX_error" != yes
7306
])# _LT_LANG_CXX_CONFIG
7309
# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
7490
7310
# ---------------------------------
7491
AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
7495
AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
7496
AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
7497
AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
7498
AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
7499
AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
7500
AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
7501
AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
7503
# This is just to silence aclocal about the macro not being used
7504
ifelse([AC_DISABLE_FAST_INSTALL])
7506
AC_DEFUN([LT_AC_PROG_GCJ],
7507
[AC_CHECK_TOOL(GCJ, gcj, no)
7508
test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
7512
AC_DEFUN([LT_AC_PROG_RC],
7513
[AC_CHECK_TOOL(RC, windres, no)
7517
# Cheap backport of AS_EXECUTABLE_P and required macros
7518
# from Autoconf 2.59; we should not use $as_executable_p directly.
7522
m4_ifndef([_AS_TEST_PREPARE],
7523
[m4_defun([_AS_TEST_PREPARE],
7524
[if test -x / >/dev/null 2>&1; then
7525
as_executable_p='test -x'
7311
# Figure out "hidden" library dependencies from verbose
7312
# compiler output when linking a shared library.
7313
# Parse the compiler output and extract the necessary
7314
# objects, libraries and library flags.
7315
m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
7316
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
7317
# Dependencies to place before and after the object being linked:
7318
_LT_TAGVAR(predep_objects, $1)=
7319
_LT_TAGVAR(postdep_objects, $1)=
7320
_LT_TAGVAR(predeps, $1)=
7321
_LT_TAGVAR(postdeps, $1)=
7322
_LT_TAGVAR(compiler_lib_search_path, $1)=
7324
dnl we can't use the lt_simple_compile_test_code here,
7325
dnl because it contains code intended for an executable,
7326
dnl not a library. It's possible we should let each
7327
dnl tag define a new lt_????_link_test_code variable,
7328
dnl but it's only used here...
7329
m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
7331
void foo (void) { a = 0; }
7333
], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
7337
Foo (void) { a = 0; }
7342
], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
7350
], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
7358
], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
7361
public void bar (void) {
7367
dnl Parse the compiler output and extract the necessary
7368
dnl objects, libraries and library flags.
7369
if AC_TRY_EVAL(ac_compile); then
7370
# Parse the compiler output and extract the necessary
7371
# objects, libraries and library flags.
7373
# Sentinel used to keep track of whether or not we are before
7374
# the conftest object file.
7375
pre_test_object_deps_done=no
7377
for p in `eval "$output_verbose_link_cmd"`; do
7381
# Some compilers place space between "-{L,R}" and the path.
7383
if test $p = "-L" ||
7384
test $p = "-R"; then
7391
if test "$pre_test_object_deps_done" = no; then
7394
# Internal compiler library paths should come after those
7395
# provided the user. The postdeps already come after the
7396
# user supplied libs so there is no need to process them.
7397
if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
7398
_LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
7400
_LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
7403
# The "-l" case would never come before the object being
7404
# linked, so don't bother handling this case.
7407
if test -z "$_LT_TAGVAR(postdeps, $1)"; then
7408
_LT_TAGVAR(postdeps, $1)="${prev}${p}"
7410
_LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
7416
# This assumes that the test object file only shows up
7417
# once in the compiler output.
7418
if test "$p" = "conftest.$objext"; then
7419
pre_test_object_deps_done=yes
7423
if test "$pre_test_object_deps_done" = no; then
7424
if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
7425
_LT_TAGVAR(predep_objects, $1)="$p"
7427
_LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
7430
if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
7431
_LT_TAGVAR(postdep_objects, $1)="$p"
7433
_LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
7438
*) ;; # Ignore the rest.
7527
as_executable_p='test -f'
7529
])])# _AS_TEST_PREPARE
7533
# Check whether a file is executable.
7534
m4_ifndef([AS_EXECUTABLE_P],
7535
[m4_defun([AS_EXECUTABLE_P],
7536
[AS_REQUIRE([_AS_TEST_PREPARE])dnl
7537
$as_executable_p $1[]dnl
7538
])])# AS_EXECUTABLE_P
7446
echo "libtool.m4: error: problem compiling $1 test program"
7449
$RM -f confest.$objext
7451
# PORTME: override above test on systems where it is broken
7455
# Interix 3.5 installs completely hosed .la files for C++, so rather than
7456
# hack all around it, let's just trust "g++" to DTRT.
7457
_LT_TAGVAR(predep_objects,$1)=
7458
_LT_TAGVAR(postdep_objects,$1)=
7459
_LT_TAGVAR(postdeps,$1)=
7463
case `$CC -V 2>&1 | sed 5q` in
7467
# The more standards-conforming stlport4 library is
7468
# incompatible with the Cstd library. Avoid specifying
7469
# it if it's in CXXFLAGS. Ignore libCrun as
7470
# -library=stlport4 depends on it.
7471
case " $CXX $CXXFLAGS " in
7472
*" -library=stlport4 "*)
7473
solaris_use_stlport4=yes
7477
if test "$solaris_use_stlport4" != yes; then
7478
_LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7485
case $cc_basename in
7487
# The more standards-conforming stlport4 library is
7488
# incompatible with the Cstd library. Avoid specifying
7489
# it if it's in CXXFLAGS. Ignore libCrun as
7490
# -library=stlport4 depends on it.
7491
case " $CXX $CXXFLAGS " in
7492
*" -library=stlport4 "*)
7493
solaris_use_stlport4=yes
7497
# Adding this requires a known-good setup of shared libraries for
7498
# Sun compiler versions before 5.6, else PIC objects from an old
7499
# archive will be linked into the output, leading to subtle bugs.
7500
if test "$solaris_use_stlport4" != yes; then
7501
_LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7509
case " $_LT_TAGVAR(postdeps, $1) " in
7510
*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
7512
_LT_TAGVAR(compiler_lib_search_dirs, $1)=
7513
if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
7514
_LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
7516
_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
7517
[The directories searched by this compiler when creating a shared library])
7518
_LT_TAGDECL([], [predep_objects], [1],
7519
[Dependencies to place before and after the objects being linked to
7520
create a shared library])
7521
_LT_TAGDECL([], [postdep_objects], [1])
7522
_LT_TAGDECL([], [predeps], [1])
7523
_LT_TAGDECL([], [postdeps], [1])
7524
_LT_TAGDECL([], [compiler_lib_search_path], [1],
7525
[The library search path used internally by the compiler when linking
7527
])# _LT_SYS_HIDDEN_LIBDEPS
7532
# Since AC_PROG_F77 is broken, in that it returns the empty string
7533
# if there is no fortran compiler, we have our own version here.
7534
m4_defun([_LT_PROG_F77],
7536
pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
7538
if test -z "$F77" || test "X$F77" = "Xno"; then
7541
popdef([AC_MSG_ERROR])
7544
dnl aclocal-1.4 backwards compatibility:
7545
dnl AC_DEFUN([_LT_PROG_F77], [])
7548
# _LT_LANG_F77_CONFIG([TAG])
7549
# --------------------------
7550
# Ensure that the configuration variables for a Fortran 77 compiler are
7551
# suitably defined. These variables are subsequently used by _LT_CONFIG
7552
# to write the compiler configuration to `libtool'.
7553
m4_defun([_LT_LANG_F77_CONFIG],
7554
[AC_REQUIRE([_LT_PROG_F77])dnl
7555
AC_LANG_PUSH(Fortran 77)
7557
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7558
_LT_TAGVAR(allow_undefined_flag, $1)=
7559
_LT_TAGVAR(always_export_symbols, $1)=no
7560
_LT_TAGVAR(archive_expsym_cmds, $1)=
7561
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
7562
_LT_TAGVAR(hardcode_direct, $1)=no
7563
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
7564
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7565
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7566
_LT_TAGVAR(hardcode_libdir_separator, $1)=
7567
_LT_TAGVAR(hardcode_minus_L, $1)=no
7568
_LT_TAGVAR(hardcode_automatic, $1)=no
7569
_LT_TAGVAR(inherit_rpath, $1)=no
7570
_LT_TAGVAR(module_cmds, $1)=
7571
_LT_TAGVAR(module_expsym_cmds, $1)=
7572
_LT_TAGVAR(link_all_deplibs, $1)=unknown
7573
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7574
_LT_TAGVAR(no_undefined_flag, $1)=
7575
_LT_TAGVAR(whole_archive_flag_spec, $1)=
7576
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7578
# Source file extension for f77 test sources.
7581
# Object file extension for compiled f77 test sources.
7583
_LT_TAGVAR(objext, $1)=$objext
7585
# No sense in running all these tests if we already determined that
7586
# the F77 compiler isn't working. Some variables (like enable_shared)
7587
# are currently assumed to apply to all compilers on this platform,
7588
# and will be corrupted by setting them based on a non-working compiler.
7589
if test "$_lt_disable_F77" != yes; then
7590
# Code to be used in simple compile tests
7591
lt_simple_compile_test_code="\
7597
# Code to be used in simple link tests
7598
lt_simple_link_test_code="\
7603
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7606
# save warnings/boilerplate of simple test code
7607
_LT_COMPILER_BOILERPLATE
7608
_LT_LINKER_BOILERPLATE
7610
# Allow CC to be a program name with arguments.
7615
_LT_TAGVAR(compiler, $1)=$CC
7616
_LT_CC_BASENAME([$compiler])
7618
if test -n "$compiler"; then
7619
AC_MSG_CHECKING([if libtool supports shared libraries])
7620
AC_MSG_RESULT([$can_build_shared])
7622
AC_MSG_CHECKING([whether to build shared libraries])
7623
test "$can_build_shared" = "no" && enable_shared=no
7625
# On AIX, shared libraries and static libraries use the same namespace, and
7626
# are all built from PIC.
7629
test "$enable_shared" = yes && enable_static=no
7630
if test -n "$RANLIB"; then
7631
archive_cmds="$archive_cmds~\$RANLIB \$lib"
7632
postinstall_cmds='$RANLIB $lib'
7636
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7637
test "$enable_shared" = yes && enable_static=no
7641
AC_MSG_RESULT([$enable_shared])
7643
AC_MSG_CHECKING([whether to build static libraries])
7644
# Make sure either enable_shared or enable_static is yes.
7645
test "$enable_shared" = yes || enable_static=yes
7646
AC_MSG_RESULT([$enable_static])
7648
_LT_TAGVAR(GCC, $1)="$G77"
7649
_LT_TAGVAR(LD, $1)="$LD"
7652
## There is no encapsulation within the following macros, do not change
7653
## the running order or otherwise move them around unless you know exactly
7654
## what you are doing...
7655
_LT_COMPILER_PIC($1)
7656
_LT_COMPILER_C_O($1)
7657
_LT_COMPILER_FILE_LOCKS($1)
7658
_LT_LINKER_SHLIBS($1)
7659
_LT_SYS_DYNAMIC_LINKER($1)
7660
_LT_LINKER_HARDCODE_LIBPATH($1)
7663
fi # test -n "$compiler"
7667
fi # test "$_lt_disable_F77" != yes
7670
])# _LT_LANG_F77_CONFIG
7675
# Since AC_PROG_FC is broken, in that it returns the empty string
7676
# if there is no fortran compiler, we have our own version here.
7677
m4_defun([_LT_PROG_FC],
7679
pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
7681
if test -z "$FC" || test "X$FC" = "Xno"; then
7684
popdef([AC_MSG_ERROR])
7687
dnl aclocal-1.4 backwards compatibility:
7688
dnl AC_DEFUN([_LT_PROG_FC], [])
7691
# _LT_LANG_FC_CONFIG([TAG])
7692
# -------------------------
7693
# Ensure that the configuration variables for a Fortran compiler are
7694
# suitably defined. These variables are subsequently used by _LT_CONFIG
7695
# to write the compiler configuration to `libtool'.
7696
m4_defun([_LT_LANG_FC_CONFIG],
7697
[AC_REQUIRE([_LT_PROG_FC])dnl
7698
AC_LANG_PUSH(Fortran)
7700
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7701
_LT_TAGVAR(allow_undefined_flag, $1)=
7702
_LT_TAGVAR(always_export_symbols, $1)=no
7703
_LT_TAGVAR(archive_expsym_cmds, $1)=
7704
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
7705
_LT_TAGVAR(hardcode_direct, $1)=no
7706
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
7707
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7708
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7709
_LT_TAGVAR(hardcode_libdir_separator, $1)=
7710
_LT_TAGVAR(hardcode_minus_L, $1)=no
7711
_LT_TAGVAR(hardcode_automatic, $1)=no
7712
_LT_TAGVAR(inherit_rpath, $1)=no
7713
_LT_TAGVAR(module_cmds, $1)=
7714
_LT_TAGVAR(module_expsym_cmds, $1)=
7715
_LT_TAGVAR(link_all_deplibs, $1)=unknown
7716
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7717
_LT_TAGVAR(no_undefined_flag, $1)=
7718
_LT_TAGVAR(whole_archive_flag_spec, $1)=
7719
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7721
# Source file extension for fc test sources.
7722
ac_ext=${ac_fc_srcext-f}
7724
# Object file extension for compiled fc test sources.
7726
_LT_TAGVAR(objext, $1)=$objext
7728
# No sense in running all these tests if we already determined that
7729
# the FC compiler isn't working. Some variables (like enable_shared)
7730
# are currently assumed to apply to all compilers on this platform,
7731
# and will be corrupted by setting them based on a non-working compiler.
7732
if test "$_lt_disable_FC" != yes; then
7733
# Code to be used in simple compile tests
7734
lt_simple_compile_test_code="\
7740
# Code to be used in simple link tests
7741
lt_simple_link_test_code="\
7746
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7749
# save warnings/boilerplate of simple test code
7750
_LT_COMPILER_BOILERPLATE
7751
_LT_LINKER_BOILERPLATE
7753
# Allow CC to be a program name with arguments.
7758
GCC=$ac_cv_fc_compiler_gnu
7760
_LT_TAGVAR(compiler, $1)=$CC
7761
_LT_CC_BASENAME([$compiler])
7763
if test -n "$compiler"; then
7764
AC_MSG_CHECKING([if libtool supports shared libraries])
7765
AC_MSG_RESULT([$can_build_shared])
7767
AC_MSG_CHECKING([whether to build shared libraries])
7768
test "$can_build_shared" = "no" && enable_shared=no
7770
# On AIX, shared libraries and static libraries use the same namespace, and
7771
# are all built from PIC.
7774
test "$enable_shared" = yes && enable_static=no
7775
if test -n "$RANLIB"; then
7776
archive_cmds="$archive_cmds~\$RANLIB \$lib"
7777
postinstall_cmds='$RANLIB $lib'
7781
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7782
test "$enable_shared" = yes && enable_static=no
7786
AC_MSG_RESULT([$enable_shared])
7788
AC_MSG_CHECKING([whether to build static libraries])
7789
# Make sure either enable_shared or enable_static is yes.
7790
test "$enable_shared" = yes || enable_static=yes
7791
AC_MSG_RESULT([$enable_static])
7793
_LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
7794
_LT_TAGVAR(LD, $1)="$LD"
7797
## There is no encapsulation within the following macros, do not change
7798
## the running order or otherwise move them around unless you know exactly
7799
## what you are doing...
7800
_LT_SYS_HIDDEN_LIBDEPS($1)
7801
_LT_COMPILER_PIC($1)
7802
_LT_COMPILER_C_O($1)
7803
_LT_COMPILER_FILE_LOCKS($1)
7804
_LT_LINKER_SHLIBS($1)
7805
_LT_SYS_DYNAMIC_LINKER($1)
7806
_LT_LINKER_HARDCODE_LIBPATH($1)
7809
fi # test -n "$compiler"
7813
fi # test "$_lt_disable_FC" != yes
7816
])# _LT_LANG_FC_CONFIG
7819
# _LT_LANG_GCJ_CONFIG([TAG])
7820
# --------------------------
7821
# Ensure that the configuration variables for the GNU Java Compiler compiler
7822
# are suitably defined. These variables are subsequently used by _LT_CONFIG
7823
# to write the compiler configuration to `libtool'.
7824
m4_defun([_LT_LANG_GCJ_CONFIG],
7825
[AC_REQUIRE([LT_PROG_GCJ])dnl
7828
# Source file extension for Java test sources.
7831
# Object file extension for compiled Java test sources.
7833
_LT_TAGVAR(objext, $1)=$objext
7835
# Code to be used in simple compile tests
7836
lt_simple_compile_test_code="class foo {}"
7838
# Code to be used in simple link tests
7839
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
7841
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7844
# save warnings/boilerplate of simple test code
7845
_LT_COMPILER_BOILERPLATE
7846
_LT_LINKER_BOILERPLATE
7848
# Allow CC to be a program name with arguments.
7854
_LT_TAGVAR(compiler, $1)=$CC
7855
_LT_TAGVAR(LD, $1)="$LD"
7856
_LT_CC_BASENAME([$compiler])
7858
# GCJ did not exist at the time GCC didn't implicitly link libc in.
7859
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7861
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7863
if test -n "$compiler"; then
7864
_LT_COMPILER_NO_RTTI($1)
7865
_LT_COMPILER_PIC($1)
7866
_LT_COMPILER_C_O($1)
7867
_LT_COMPILER_FILE_LOCKS($1)
7868
_LT_LINKER_SHLIBS($1)
7869
_LT_LINKER_HARDCODE_LIBPATH($1)
7878
])# _LT_LANG_GCJ_CONFIG
7881
# _LT_LANG_RC_CONFIG([TAG])
7882
# -------------------------
7883
# Ensure that the configuration variables for the Windows resource compiler
7884
# are suitably defined. These variables are subsequently used by _LT_CONFIG
7885
# to write the compiler configuration to `libtool'.
7886
m4_defun([_LT_LANG_RC_CONFIG],
7887
[AC_REQUIRE([LT_PROG_RC])dnl
7890
# Source file extension for RC test sources.
7893
# Object file extension for compiled RC test sources.
7895
_LT_TAGVAR(objext, $1)=$objext
7897
# Code to be used in simple compile tests
7898
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
7900
# Code to be used in simple link tests
7901
lt_simple_link_test_code="$lt_simple_compile_test_code"
7903
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7906
# save warnings/boilerplate of simple test code
7907
_LT_COMPILER_BOILERPLATE
7908
_LT_LINKER_BOILERPLATE
7910
# Allow CC to be a program name with arguments.
7916
_LT_TAGVAR(compiler, $1)=$CC
7917
_LT_CC_BASENAME([$compiler])
7918
_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
7920
if test -n "$compiler"; then
7928
])# _LT_LANG_RC_CONFIG
7933
AC_DEFUN([LT_PROG_GCJ],
7934
[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
7935
[m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
7936
[AC_CHECK_TOOL(GCJ, gcj,)
7937
test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
7938
AC_SUBST(GCJFLAGS)])])[]dnl
7942
AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
7943
dnl aclocal-1.4 backwards compatibility:
7944
dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
7949
AC_DEFUN([LT_PROG_RC],
7950
[AC_CHECK_TOOL(RC, windres,)
7954
AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
7955
dnl aclocal-1.4 backwards compatibility:
7956
dnl AC_DEFUN([LT_AC_PROG_RC], [])
7961
# If we don't have a new enough Autoconf to choose the best grep
7962
# available, choose the one first in the user's PATH.
7963
m4_defun([_LT_DECL_EGREP],
7964
[AC_REQUIRE([AC_PROG_EGREP])dnl
7965
AC_REQUIRE([AC_PROG_FGREP])dnl
7966
test -z "$GREP" && GREP=grep
7967
_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
7968
_LT_DECL([], [EGREP], [1], [An ERE matcher])
7969
_LT_DECL([], [FGREP], [1], [A literal string matcher])
7970
dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
7977
# If we don't have a new enough Autoconf to choose the best objdump
7978
# available, choose the one first in the user's PATH.
7979
m4_defun([_LT_DECL_OBJDUMP],
7980
[AC_CHECK_TOOL(OBJDUMP, objdump, false)
7981
test -z "$OBJDUMP" && OBJDUMP=objdump
7982
_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
7989
# Check for a fully-functional sed program, that truncates
7990
# as few characters as possible. Prefer GNU sed if found.
7991
m4_defun([_LT_DECL_SED],
7993
test -z "$SED" && SED=sed
7994
Xsed="$SED -e 1s/^X//"
7995
_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
7996
_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
7997
[Sed that helps us avoid accidentally triggering echo(1) options like -n])
8000
m4_ifndef([AC_PROG_SED], [
7540
8001
# NOTE: This macro has been submitted for inclusion into #
7541
8002
# GNU Autoconf as AC_PROG_SED. When it is available in #
7542
8003
# a released version of Autoconf we should remove this #
7543
8004
# macro and use it instead. #
7546
# Check for a fully-functional sed program, that truncates
7547
# as few characters as possible. Prefer GNU sed if found.
7548
AC_DEFUN([LT_AC_PROG_SED],
8006
m4_defun([AC_PROG_SED],
7549
8007
[AC_MSG_CHECKING([for a sed that does not truncate output])
7550
8008
AC_CACHE_VAL(lt_cv_path_SED,
7551
8009
[# Loop through the user's path and test for sed and gsed.
7598
8056
SED=$lt_cv_path_SED
7599
8057
AC_SUBST([SED])
7600
8058
AC_MSG_RESULT([$SED])
8063
AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
8064
dnl aclocal-1.4 backwards compatibility:
8065
dnl AC_DEFUN([LT_AC_PROG_SED], [])
8068
# _LT_CHECK_SHELL_FEATURES
8069
# ------------------------
8070
# Find out whether the shell is Bourne or XSI compatible,
8071
# or has some other useful features.
8072
m4_defun([_LT_CHECK_SHELL_FEATURES],
8073
[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
8074
# Try some XSI features
8077
test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
8079
&& eval 'test $(( 1 + 1 )) -eq 2 \
8080
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
8082
AC_MSG_RESULT([$xsi_shell])
8083
_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
8085
AC_MSG_CHECKING([whether the shell understands "+="])
8087
( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
8089
&& lt_shell_append=yes
8090
AC_MSG_RESULT([$lt_shell_append])
8091
_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
8093
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8098
_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
8100
# test EBCDIC or ASCII
8101
case `echo X|tr X '\101'` in
8102
A) # ASCII based system
8103
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8104
lt_SP2NL='tr \040 \012'
8105
lt_NL2SP='tr \015\012 \040\040'
8107
*) # EBCDIC based system
8108
lt_SP2NL='tr \100 \n'
8109
lt_NL2SP='tr \r\n \100\100'
8112
_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
8113
_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
8114
])# _LT_CHECK_SHELL_FEATURES
8117
# _LT_PROG_XSI_SHELLFNS
8118
# ---------------------
8119
# Bourne and XSI compatible variants of some useful shell functions.
8120
m4_defun([_LT_PROG_XSI_SHELLFNS],
8123
cat << \_LT_EOF >> "$cfgfile"
8125
# func_dirname file append nondir_replacement
8126
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
8127
# otherwise set result to NONDIR_REPLACEMENT.
8131
*/*) func_dirname_result="${1%/*}${2}" ;;
8132
* ) func_dirname_result="${3}" ;;
8136
# func_basename file
8139
func_basename_result="${1##*/}"
8142
# func_dirname_and_basename file append nondir_replacement
8143
# perform func_basename and func_dirname in a single function
8145
# dirname: Compute the dirname of FILE. If nonempty,
8146
# add APPEND to the result, otherwise set result
8147
# to NONDIR_REPLACEMENT.
8148
# value returned in "$func_dirname_result"
8149
# basename: Compute filename of FILE.
8150
# value retuned in "$func_basename_result"
8151
# Implementation must be kept synchronized with func_dirname
8152
# and func_basename. For efficiency, we do not delegate to
8153
# those functions but instead duplicate the functionality here.
8154
func_dirname_and_basename ()
8157
*/*) func_dirname_result="${1%/*}${2}" ;;
8158
* ) func_dirname_result="${3}" ;;
8160
func_basename_result="${1##*/}"
8163
# func_stripname prefix suffix name
8164
# strip PREFIX and SUFFIX off of NAME.
8165
# PREFIX and SUFFIX must not contain globbing or regex special
8166
# characters, hashes, percent signs, but SUFFIX may contain a leading
8167
# dot (in which case that matches only a dot).
8170
# pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
8171
# positional parameters, so assign one to ordinary parameter first.
8172
func_stripname_result=${3}
8173
func_stripname_result=${func_stripname_result#"${1}"}
8174
func_stripname_result=${func_stripname_result%"${2}"}
8180
func_opt_split_opt=${1%%=*}
8181
func_opt_split_arg=${1#*=}
8188
*.lo) func_lo2o_result=${1%.lo}.${objext} ;;
8189
*) func_lo2o_result=${1} ;;
8193
# func_xform libobj-or-source
8196
func_xform_result=${1%.*}.lo
8199
# func_arith arithmetic-term...
8202
func_arith_result=$(( $[*] ))
8206
# STRING may not start with a hyphen.
8209
func_len_result=${#1}
8214
*) # Bourne compatible functions.
8215
cat << \_LT_EOF >> "$cfgfile"
8217
# func_dirname file append nondir_replacement
8218
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
8219
# otherwise set result to NONDIR_REPLACEMENT.
8222
# Extract subdirectory from the argument.
8223
func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
8224
if test "X$func_dirname_result" = "X${1}"; then
8225
func_dirname_result="${3}"
8227
func_dirname_result="$func_dirname_result${2}"
8231
# func_basename file
8234
func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
8237
dnl func_dirname_and_basename
8238
dnl A portable version of this function is already defined in general.m4sh
8239
dnl so there is no need for it here.
8241
# func_stripname prefix suffix name
8242
# strip PREFIX and SUFFIX off of NAME.
8243
# PREFIX and SUFFIX must not contain globbing or regex special
8244
# characters, hashes, percent signs, but SUFFIX may contain a leading
8245
# dot (in which case that matches only a dot).
8246
# func_strip_suffix prefix name
8250
.*) func_stripname_result=`$ECHO "X${3}" \
8251
| $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
8252
*) func_stripname_result=`$ECHO "X${3}" \
8253
| $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
8258
my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
8259
my_sed_long_arg='1s/^-[[^=]]*=//'
8264
func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
8265
func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
8271
func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
8274
# func_xform libobj-or-source
8277
func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
8280
# func_arith arithmetic-term...
8283
func_arith_result=`expr "$[@]"`
8287
# STRING may not start with a hyphen.
8290
func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
8296
case $lt_shell_append in
8298
cat << \_LT_EOF >> "$cfgfile"
8300
# func_append var value
8301
# Append VALUE to the end of shell variable VAR.
8309
cat << \_LT_EOF >> "$cfgfile"
8311
# func_append var value
8312
# Append VALUE to the end of shell variable VAR.
8315
eval "$[1]=\$$[1]\$[2]"
8323
# Helper functions for option handling. -*- Autoconf -*-
8325
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
8326
# Written by Gary V. Vaughan, 2004
8328
# This file is free software; the Free Software Foundation gives
8329
# unlimited permission to copy and/or distribute it, with or without
8330
# modifications, as long as this notice is preserved.
8332
# serial 6 ltoptions.m4
8334
# This is to help aclocal find these macros, as it can't see m4_define.
8335
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
8338
# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
8339
# ------------------------------------------
8340
m4_define([_LT_MANGLE_OPTION],
8341
[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
8344
# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
8345
# ---------------------------------------
8346
# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
8347
# matching handler defined, dispatch to it. Other OPTION-NAMEs are
8349
m4_define([_LT_SET_OPTION],
8350
[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
8351
m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
8352
_LT_MANGLE_DEFUN([$1], [$2]),
8353
[m4_warning([Unknown $1 option `$2'])])[]dnl
8357
# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
8358
# ------------------------------------------------------------
8359
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
8360
m4_define([_LT_IF_OPTION],
8361
[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
8364
# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
8365
# -------------------------------------------------------
8366
# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
8368
m4_define([_LT_UNLESS_OPTIONS],
8369
[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
8370
[m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
8371
[m4_define([$0_found])])])[]dnl
8372
m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
8377
# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
8378
# ----------------------------------------
8379
# OPTION-LIST is a space-separated list of Libtool options associated
8380
# with MACRO-NAME. If any OPTION has a matching handler declared with
8381
# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
8382
# the unknown option and exit.
8383
m4_defun([_LT_SET_OPTIONS],
8385
m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
8386
[_LT_SET_OPTION([$1], _LT_Option)])
8388
m4_if([$1],[LT_INIT],[
8390
dnl Simply set some default values (i.e off) if boolean options were not
8392
_LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
8394
_LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
8397
dnl If no reference was made to various pairs of opposing options, then
8398
dnl we run the default mode handler for the pair. For example, if neither
8399
dnl `shared' nor `disable-shared' was passed, we enable building of shared
8400
dnl archives by default:
8401
_LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
8402
_LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
8403
_LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
8404
_LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
8405
[_LT_ENABLE_FAST_INSTALL])
8411
# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
8412
# -----------------------------------------
8413
m4_define([_LT_MANGLE_DEFUN],
8414
[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
8417
# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
8418
# -----------------------------------------------
8419
m4_define([LT_OPTION_DEFINE],
8420
[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
8421
])# LT_OPTION_DEFINE
8426
LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
8429
AU_DEFUN([AC_LIBTOOL_DLOPEN],
8430
[_LT_SET_OPTION([LT_INIT], [dlopen])
8431
AC_DIAGNOSE([obsolete],
8432
[$0: Remove this warning and the call to _LT_SET_OPTION when you
8433
put the `dlopen' option into LT_INIT's first parameter.])
8436
dnl aclocal-1.4 backwards compatibility:
8437
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
8442
# Declare package support for building win32 dll's.
8443
LT_OPTION_DEFINE([LT_INIT], [win32-dll],
8444
[enable_win32_dll=yes
8447
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
8448
AC_CHECK_TOOL(AS, as, false)
8449
AC_CHECK_TOOL(DLLTOOL, dlltool, false)
8450
AC_CHECK_TOOL(OBJDUMP, objdump, false)
8454
test -z "$AS" && AS=as
8455
_LT_DECL([], [AS], [0], [Assembler program])dnl
8457
test -z "$DLLTOOL" && DLLTOOL=dlltool
8458
_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
8460
test -z "$OBJDUMP" && OBJDUMP=objdump
8461
_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
8464
AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
8465
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
8466
_LT_SET_OPTION([LT_INIT], [win32-dll])
8467
AC_DIAGNOSE([obsolete],
8468
[$0: Remove this warning and the call to _LT_SET_OPTION when you
8469
put the `win32-dll' option into LT_INIT's first parameter.])
8472
dnl aclocal-1.4 backwards compatibility:
8473
dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
8476
# _LT_ENABLE_SHARED([DEFAULT])
8477
# ----------------------------
8478
# implement the --enable-shared flag, and supports the `shared' and
8479
# `disable-shared' LT_INIT options.
8480
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
8481
m4_define([_LT_ENABLE_SHARED],
8482
[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
8483
AC_ARG_ENABLE([shared],
8484
[AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
8485
[build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
8486
[p=${PACKAGE-default}
8488
yes) enable_shared=yes ;;
8489
no) enable_shared=no ;;
8492
# Look at the argument we got. We use all the common list separators.
8493
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8494
for pkg in $enableval; do
8496
if test "X$pkg" = "X$p"; then
8503
[enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
8505
_LT_DECL([build_libtool_libs], [enable_shared], [0],
8506
[Whether or not to build shared libraries])
8507
])# _LT_ENABLE_SHARED
8509
LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
8510
LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
8513
AC_DEFUN([AC_ENABLE_SHARED],
8514
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
8517
AC_DEFUN([AC_DISABLE_SHARED],
8518
[_LT_SET_OPTION([LT_INIT], [disable-shared])
8521
AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
8522
AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
8524
dnl aclocal-1.4 backwards compatibility:
8525
dnl AC_DEFUN([AM_ENABLE_SHARED], [])
8526
dnl AC_DEFUN([AM_DISABLE_SHARED], [])
8530
# _LT_ENABLE_STATIC([DEFAULT])
8531
# ----------------------------
8532
# implement the --enable-static flag, and support the `static' and
8533
# `disable-static' LT_INIT options.
8534
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
8535
m4_define([_LT_ENABLE_STATIC],
8536
[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
8537
AC_ARG_ENABLE([static],
8538
[AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
8539
[build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
8540
[p=${PACKAGE-default}
8542
yes) enable_static=yes ;;
8543
no) enable_static=no ;;
8546
# Look at the argument we got. We use all the common list separators.
8547
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8548
for pkg in $enableval; do
8550
if test "X$pkg" = "X$p"; then
8557
[enable_static=]_LT_ENABLE_STATIC_DEFAULT)
8559
_LT_DECL([build_old_libs], [enable_static], [0],
8560
[Whether or not to build static libraries])
8561
])# _LT_ENABLE_STATIC
8563
LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
8564
LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
8567
AC_DEFUN([AC_ENABLE_STATIC],
8568
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
8571
AC_DEFUN([AC_DISABLE_STATIC],
8572
[_LT_SET_OPTION([LT_INIT], [disable-static])
8575
AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
8576
AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
8578
dnl aclocal-1.4 backwards compatibility:
8579
dnl AC_DEFUN([AM_ENABLE_STATIC], [])
8580
dnl AC_DEFUN([AM_DISABLE_STATIC], [])
8584
# _LT_ENABLE_FAST_INSTALL([DEFAULT])
8585
# ----------------------------------
8586
# implement the --enable-fast-install flag, and support the `fast-install'
8587
# and `disable-fast-install' LT_INIT options.
8588
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
8589
m4_define([_LT_ENABLE_FAST_INSTALL],
8590
[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
8591
AC_ARG_ENABLE([fast-install],
8592
[AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
8593
[optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
8594
[p=${PACKAGE-default}
8596
yes) enable_fast_install=yes ;;
8597
no) enable_fast_install=no ;;
8599
enable_fast_install=no
8600
# Look at the argument we got. We use all the common list separators.
8601
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8602
for pkg in $enableval; do
8604
if test "X$pkg" = "X$p"; then
8605
enable_fast_install=yes
8611
[enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
8613
_LT_DECL([fast_install], [enable_fast_install], [0],
8614
[Whether or not to optimize for fast installation])dnl
8615
])# _LT_ENABLE_FAST_INSTALL
8617
LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
8618
LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
8621
AU_DEFUN([AC_ENABLE_FAST_INSTALL],
8622
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
8623
AC_DIAGNOSE([obsolete],
8624
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
8625
the `fast-install' option into LT_INIT's first parameter.])
8628
AU_DEFUN([AC_DISABLE_FAST_INSTALL],
8629
[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
8630
AC_DIAGNOSE([obsolete],
8631
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
8632
the `disable-fast-install' option into LT_INIT's first parameter.])
8635
dnl aclocal-1.4 backwards compatibility:
8636
dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
8637
dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
8640
# _LT_WITH_PIC([MODE])
8641
# --------------------
8642
# implement the --with-pic flag, and support the `pic-only' and `no-pic'
8644
# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
8645
m4_define([_LT_WITH_PIC],
8647
[AS_HELP_STRING([--with-pic],
8648
[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
8649
[pic_mode="$withval"],
8652
test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
8654
_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
8657
LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
8658
LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
8661
AU_DEFUN([AC_LIBTOOL_PICMODE],
8662
[_LT_SET_OPTION([LT_INIT], [pic-only])
8663
AC_DIAGNOSE([obsolete],
8664
[$0: Remove this warning and the call to _LT_SET_OPTION when you
8665
put the `pic-only' option into LT_INIT's first parameter.])
8668
dnl aclocal-1.4 backwards compatibility:
8669
dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
8672
m4_define([_LTDL_MODE], [])
8673
LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
8674
[m4_define([_LTDL_MODE], [nonrecursive])])
8675
LT_OPTION_DEFINE([LTDL_INIT], [recursive],
8676
[m4_define([_LTDL_MODE], [recursive])])
8677
LT_OPTION_DEFINE([LTDL_INIT], [subproject],
8678
[m4_define([_LTDL_MODE], [subproject])])
8680
m4_define([_LTDL_TYPE], [])
8681
LT_OPTION_DEFINE([LTDL_INIT], [installable],
8682
[m4_define([_LTDL_TYPE], [installable])])
8683
LT_OPTION_DEFINE([LTDL_INIT], [convenience],
8684
[m4_define([_LTDL_TYPE], [convenience])])
8686
# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
8688
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
8689
# Written by Gary V. Vaughan, 2004
8691
# This file is free software; the Free Software Foundation gives
8692
# unlimited permission to copy and/or distribute it, with or without
8693
# modifications, as long as this notice is preserved.
8695
# serial 6 ltsugar.m4
8697
# This is to help aclocal find these macros, as it can't see m4_define.
8698
AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
8701
# lt_join(SEP, ARG1, [ARG2...])
8702
# -----------------------------
8703
# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
8704
# associated separator.
8705
# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
8706
# versions in m4sugar had bugs.
8707
m4_define([lt_join],
8708
[m4_if([$#], [1], [],
8710
[m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
8711
m4_define([_lt_join],
8712
[m4_if([$#$2], [2], [],
8713
[m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
8719
# Manipulate m4 lists.
8720
# These macros are necessary as long as will still need to support
8721
# Autoconf-2.59 which quotes differently.
8722
m4_define([lt_car], [[$1]])
8724
[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
8726
[m4_dquote(m4_shift($@))])])
8727
m4_define([lt_unquote], $1)
8730
# lt_append(MACRO-NAME, STRING, [SEPARATOR])
8731
# ------------------------------------------
8732
# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
8733
# Note that neither SEPARATOR nor STRING are expanded; they are appended
8734
# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
8735
# No SEPARATOR is output if MACRO-NAME was previously undefined (different
8736
# than defined and empty).
8738
# This macro is needed until we can rely on Autoconf 2.62, since earlier
8739
# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
8740
m4_define([lt_append],
8742
m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
8746
# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
8747
# ----------------------------------------------------------
8748
# Produce a SEP delimited list of all paired combinations of elements of
8749
# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
8750
# has the form PREFIXmINFIXSUFFIXn.
8751
# Needed until we can rely on m4_combine added in Autoconf 2.62.
8752
m4_define([lt_combine],
8753
[m4_if(m4_eval([$# > 3]), [1],
8754
[m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
8755
[[m4_foreach([_Lt_prefix], [$2],
8756
[m4_foreach([_Lt_suffix],
8757
]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
8758
[_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
8761
# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
8762
# -----------------------------------------------------------------------
8763
# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
8764
# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
8765
m4_define([lt_if_append_uniq],
8767
[m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
8768
[lt_append([$1], [$2], [$3])$4],
8770
[lt_append([$1], [$2], [$3])$4])])
8773
# lt_dict_add(DICT, KEY, VALUE)
8774
# -----------------------------
8775
m4_define([lt_dict_add],
8776
[m4_define([$1($2)], [$3])])
8779
# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
8780
# --------------------------------------------
8781
m4_define([lt_dict_add_subkey],
8782
[m4_define([$1($2:$3)], [$4])])
8785
# lt_dict_fetch(DICT, KEY, [SUBKEY])
8786
# ----------------------------------
8787
m4_define([lt_dict_fetch],
8789
m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
8790
m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
8793
# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
8794
# -----------------------------------------------------------------
8795
m4_define([lt_if_dict_fetch],
8796
[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
8801
# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
8802
# --------------------------------------------------------------
8803
m4_define([lt_dict_filter],
8804
[m4_if([$5], [], [],
8805
[lt_join(m4_quote(m4_default([$4], [[, ]])),
8806
lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
8807
[lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
8810
# ltversion.m4 -- version numbers -*- Autoconf -*-
8812
# Copyright (C) 2004 Free Software Foundation, Inc.
8813
# Written by Scott James Remnant, 2004
8815
# This file is free software; the Free Software Foundation gives
8816
# unlimited permission to copy and/or distribute it, with or without
8817
# modifications, as long as this notice is preserved.
8819
# Generated from ltversion.in.
8821
# serial 3012 ltversion.m4
8822
# This file is part of GNU Libtool
8824
m4_define([LT_PACKAGE_VERSION], [2.2.6])
8825
m4_define([LT_PACKAGE_REVISION], [1.3012])
8827
AC_DEFUN([LTVERSION_VERSION],
8828
[macro_version='2.2.6'
8829
macro_revision='1.3012'
8830
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
8831
_LT_DECL(, macro_revision, 0)
8834
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
8836
# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
8837
# Written by Scott James Remnant, 2004.
8839
# This file is free software; the Free Software Foundation gives
8840
# unlimited permission to copy and/or distribute it, with or without
8841
# modifications, as long as this notice is preserved.
8843
# serial 4 lt~obsolete.m4
8845
# These exist entirely to fool aclocal when bootstrapping libtool.
8847
# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
8848
# which have later been changed to m4_define as they aren't part of the
8849
# exported API, or moved to Autoconf or Automake where they belong.
8851
# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
8852
# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
8853
# using a macro with the same name in our local m4/libtool.m4 it'll
8854
# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
8855
# and doesn't know about Autoconf macros at all.)
8857
# So we provide this file, which has a silly filename so it's always
8858
# included after everything else. This provides aclocal with the
8859
# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
8860
# because those macros already exist, or will be overwritten later.
8861
# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
8863
# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
8864
# Yes, that means every name once taken will need to remain here until
8865
# we give up compatibility with versions before 1.7, at which point
8866
# we need to keep only those names which we still refer to.
8868
# This is to help aclocal find these macros, as it can't see m4_define.
8869
AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
8871
m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
8872
m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
8873
m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
8874
m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
8875
m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
8876
m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
8877
m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
8878
m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
8879
m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
8880
m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
8881
m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
8882
m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
8883
m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
8884
m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
8885
m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
8886
m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
8887
m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
8888
m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
8889
m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
8890
m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
8891
m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
8892
m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
8893
m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
8894
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
8895
m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
8896
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
8897
m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
8898
m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
8899
m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
8900
m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
8901
m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
8902
m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
8903
m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
8904
m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
8905
m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
8906
m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
8907
m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
8908
m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
8909
m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
8910
m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
8911
m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
8912
m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
8913
m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
8914
m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
8915
m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
8916
m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
8917
m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
8918
m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
8919
m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
8920
m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
8921
m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
8922
m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
8923
m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
8924
m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
8925
m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
7603
8927
# nls.m4 serial 3 (gettext-0.15)
7604
8928
dnl Copyright (C) 1995-2003, 2005-2006 Free Software Foundation, Inc.