871
961
# Sed substitution that helps us do robust quoting. It backslashifies
872
962
# metacharacters that are still active within double-quoted strings.
873
Xsed='sed -e 1s/^X//'
874
[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
963
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
876
965
# Same as above, but do not quote variable references.
877
[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
966
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
879
968
# Sed substitution to delay expansion of an escaped shell variable in a
880
969
# double_quote_subst'ed string.
881
970
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
972
# Sed substitution to delay expansion of an escaped single quote.
973
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
883
975
# Sed substitution to avoid accidental globbing in evaled expressions
884
976
no_glob_subst='s/\*/\\\*/g'
889
978
# Global variables:
890
default_ofile=libtool
891
980
can_build_shared=yes
893
982
# All known linkers require a `.a' archive for static linking (except MSVC,
894
983
# which needs '.lib').
896
ltmain="$ac_aux_dir/ltmain.sh"
897
ofile="$default_ofile"
898
986
with_gnu_ld="$lt_cv_prog_gnu_ld"
900
AC_CHECK_TOOL(AR, ar, false)
901
AC_CHECK_TOOL(RANLIB, ranlib, :)
902
AC_CHECK_TOOL(STRIP, strip, :)
905
989
old_CFLAGS="$CFLAGS"
907
991
# Set sane defaults for various variables
908
test -z "$AR" && AR=ar
909
test -z "$AR_FLAGS" && AR_FLAGS=cru
910
test -z "$AS" && AS=as
911
992
test -z "$CC" && CC=cc
912
993
test -z "$LTCC" && LTCC=$CC
913
994
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
914
test -z "$DLLTOOL" && DLLTOOL=dlltool
915
995
test -z "$LD" && LD=ld
916
test -z "$LN_S" && LN_S="ln -s"
917
test -z "$MAGIC_CMD" && MAGIC_CMD=file
918
test -z "$NM" && NM=nm
919
test -z "$SED" && SED=sed
920
test -z "$OBJDUMP" && OBJDUMP=objdump
921
test -z "$RANLIB" && RANLIB=:
922
test -z "$STRIP" && STRIP=:
923
996
test -z "$ac_objext" && ac_objext=o
925
# Determine commands to create old-style static archives.
926
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
927
old_postinstall_cmds='chmod 644 $oldlib'
928
old_postuninstall_cmds=
930
if test -n "$RANLIB"; then
933
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
936
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
939
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
942
998
_LT_CC_BASENAME([$compiler])
944
1000
# Only perform the check for file, if the check method requires it
1001
test -z "$MAGIC_CMD" && MAGIC_CMD=file
945
1002
case $deplibs_check_method in
947
1004
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
953
_LT_REQUIRED_DARWIN_CHECKS
955
AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
956
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
957
enable_win32_dll=yes, enable_win32_dll=no)
959
AC_ARG_ENABLE([libtool-lock],
960
[AC_HELP_STRING([--disable-libtool-lock],
961
[avoid locking (might break parallel builds)])])
962
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
965
[AC_HELP_STRING([--with-pic],
966
[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
967
[pic_mode="$withval"],
969
test -z "$pic_mode" && pic_mode=default
971
1010
# Use C for the default configuration in the libtool script
973
AC_LIBTOOL_LANG_C_CONFIG
978
# _LT_AC_SYS_COMPILER
1011
LT_SUPPORTED_TAG([CC])
1013
_LT_LANG_DEFAULT_CONFIG
1020
# Note that this code is called both from `configure', and `config.status'
1021
# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
1022
# `config.status' has no value for ac_aux_dir unless we are using Automake,
1023
# so we pass a copy along to make sure it has a sensible value anyway.
1024
m4_defun([_LT_PROG_LTMAIN],
1025
[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
1026
_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
1027
ltmain="$ac_aux_dir/ltmain.sh"
1032
# So that we can recreate a full libtool script including additional
1033
# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
1034
# in macros and then make a single call at the end using the `libtool'
1038
# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
1039
# ----------------------------------------
1040
# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
1041
m4_define([_LT_CONFIG_LIBTOOL_INIT],
1043
[m4_append([_LT_OUTPUT_LIBTOOL_INIT],
1048
m4_define([_LT_OUTPUT_LIBTOOL_INIT])
1051
# _LT_CONFIG_LIBTOOL([COMMANDS])
1052
# ------------------------------
1053
# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
1054
m4_define([_LT_CONFIG_LIBTOOL],
1056
[m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
1061
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
1064
# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
1065
# -----------------------------------------------------
1066
m4_defun([_LT_CONFIG_SAVE_COMMANDS],
1067
[_LT_CONFIG_LIBTOOL([$1])
1068
_LT_CONFIG_LIBTOOL_INIT([$2])
1072
# _LT_FORMAT_COMMENT([COMMENT])
1073
# -----------------------------
1074
# Add leading comment marks to the start of each line, and a trailing
1075
# full-stop to the whole comment if one is not present already.
1076
m4_define([_LT_FORMAT_COMMENT],
1078
m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
1079
[['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
1086
# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
1087
# -------------------------------------------------------------------
1088
# CONFIGNAME is the name given to the value in the libtool script.
1089
# VARNAME is the (base) name used in the configure script.
1090
# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
1091
# VARNAME. Any other value will be used directly.
1092
m4_define([_LT_DECL],
1093
[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
1094
[lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
1095
[m4_ifval([$1], [$1], [$2])])
1096
lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
1098
[lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
1099
lt_dict_add_subkey([lt_decl_dict], [$2],
1100
[tagged?], [m4_ifval([$5], [yes], [no])])])
1104
# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
1105
# --------------------------------------------------------
1106
m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
1109
# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
1110
# ------------------------------------------------
1111
m4_define([lt_decl_tag_varnames],
1112
[_lt_decl_filter([tagged?], [yes], $@)])
1115
# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
1116
# ---------------------------------------------------------
1117
m4_define([_lt_decl_filter],
1119
[0], [m4_fatal([$0: too few arguments: $#])],
1120
[1], [m4_fatal([$0: too few arguments: $#: $1])],
1121
[2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
1122
[3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
1123
[lt_dict_filter([lt_decl_dict], $@)])[]dnl
1127
# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
1128
# --------------------------------------------------
1129
m4_define([lt_decl_quote_varnames],
1130
[_lt_decl_filter([value], [1], $@)])
1133
# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
1134
# ---------------------------------------------------
1135
m4_define([lt_decl_dquote_varnames],
1136
[_lt_decl_filter([value], [2], $@)])
1139
# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
1140
# ---------------------------------------------------
1141
m4_define([lt_decl_varnames_tagged],
1142
[m4_assert([$# <= 2])dnl
1143
_$0(m4_quote(m4_default([$1], [[, ]])),
1144
m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
1145
m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
1146
m4_define([_lt_decl_varnames_tagged],
1147
[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
1150
# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
1151
# ------------------------------------------------
1152
m4_define([lt_decl_all_varnames],
1153
[_$0(m4_quote(m4_default([$1], [[, ]])),
1155
m4_quote(lt_decl_varnames),
1156
m4_quote(m4_shift($@))))[]dnl
1158
m4_define([_lt_decl_all_varnames],
1159
[lt_join($@, lt_decl_varnames_tagged([$1],
1160
lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
1164
# _LT_CONFIG_STATUS_DECLARE([VARNAME])
1165
# ------------------------------------
1166
# Quote a variable value, and forward it to `config.status' so that its
1167
# declaration there will have the same value as in `configure'. VARNAME
1168
# must have a single quote delimited value for this to work.
1169
m4_define([_LT_CONFIG_STATUS_DECLARE],
1170
[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
1173
# _LT_CONFIG_STATUS_DECLARATIONS
1174
# ------------------------------
1175
# We delimit libtool config variables with single quotes, so when
1176
# we write them to config.status, we have to be sure to quote all
1177
# embedded single quotes properly. In configure, this macro expands
1178
# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
1180
# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
1181
m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
1182
[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
1183
[m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
1188
# Output comment and list of tags supported by the script
1189
m4_defun([_LT_LIBTOOL_TAGS],
1190
[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
1191
available_tags="_LT_TAGS"dnl
1195
# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
1196
# -----------------------------------
1197
# Extract the dictionary values for VARNAME (optionally with TAG) and
1198
# expand to a commented shell variable setting:
1200
# # Some comment about what VAR is for.
1201
# visible_name=$lt_internal_name
1202
m4_define([_LT_LIBTOOL_DECLARE],
1203
[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
1204
[description])))[]dnl
1205
m4_pushdef([_libtool_name],
1206
m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
1207
m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
1208
[0], [_libtool_name=[$]$1],
1209
[1], [_libtool_name=$lt_[]$1],
1210
[2], [_libtool_name=$lt_[]$1],
1211
[_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
1212
m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
1216
# _LT_LIBTOOL_CONFIG_VARS
1217
# -----------------------
1218
# Produce commented declarations of non-tagged libtool config variables
1219
# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
1220
# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
1221
# section) are produced by _LT_LIBTOOL_TAG_VARS.
1222
m4_defun([_LT_LIBTOOL_CONFIG_VARS],
1223
[m4_foreach([_lt_var],
1224
m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
1225
[m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
1228
# _LT_LIBTOOL_TAG_VARS(TAG)
1229
# -------------------------
1230
m4_define([_LT_LIBTOOL_TAG_VARS],
1231
[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
1232
[m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
1235
# _LT_TAGVAR(VARNAME, [TAGNAME])
1236
# ------------------------------
1237
m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
1240
# _LT_CONFIG_COMMANDS
979
1241
# -------------------
980
AC_DEFUN([_LT_AC_SYS_COMPILER],
1242
# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
1243
# variables for single and double quote escaping we saved from calls
1244
# to _LT_DECL, we can put quote escaped variables declarations
1245
# into `config.status', and then the shell code to quote escape them in
1246
# for loops in `config.status'. Finally, any additional code accumulated
1247
# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
1248
m4_defun([_LT_CONFIG_COMMANDS],
1249
[AC_PROVIDE_IFELSE([LT_OUTPUT],
1250
dnl If the libtool generation code has been placed in $CONFIG_LT,
1251
dnl instead of duplicating it all over again into config.status,
1252
dnl then we will have config.status run $CONFIG_LT later, so it
1253
dnl needs to know what name is stored there:
1254
[AC_CONFIG_COMMANDS([libtool],
1255
[$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
1256
dnl If the libtool generation code is destined for config.status,
1257
dnl expand the accumulated commands and init code now:
1258
[AC_CONFIG_COMMANDS([libtool],
1259
[_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
1260
])#_LT_CONFIG_COMMANDS
1264
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
1267
# The HP-UX ksh and POSIX shell print the target directory to stdout
1269
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1271
sed_quote_subst='$sed_quote_subst'
1272
double_quote_subst='$double_quote_subst'
1273
delay_variable_subst='$delay_variable_subst'
1274
_LT_CONFIG_STATUS_DECLARATIONS
1276
LTCFLAGS='$LTCFLAGS'
1277
compiler='$compiler_DEFAULT'
1279
# Quote evaled strings.
1280
for var in lt_decl_all_varnames([[ \
1281
]], lt_decl_quote_varnames); do
1282
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
1283
*[[\\\\\\\`\\"\\\$]]*)
1284
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
1287
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1292
# Double-quote double-evaled strings.
1293
for var in lt_decl_all_varnames([[ \
1294
]], lt_decl_dquote_varnames); do
1295
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
1296
*[[\\\\\\\`\\"\\\$]]*)
1297
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
1300
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1305
# Fix-up fallback echo if it was mangled by the above quoting rules.
1307
*'\\\[$]0 --fallback-echo"')dnl "
1308
lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
1312
_LT_OUTPUT_LIBTOOL_INIT
1318
# This macro allows early generation of the libtool script (before
1319
# AC_OUTPUT is called), incase it is used in configure for compilation
1321
AC_DEFUN([LT_OUTPUT],
1322
[: ${CONFIG_LT=./config.lt}
1323
AC_MSG_NOTICE([creating $CONFIG_LT])
1324
cat >"$CONFIG_LT" <<_LTEOF
1326
# Generated by $as_me.
1327
# Run this file to recreate a libtool stub with the current configuration.
1330
SHELL=\${CONFIG_SHELL-$SHELL}
1333
cat >>"$CONFIG_LT" <<\_LTEOF
1337
exec AS_MESSAGE_FD>&1
1338
exec AS_MESSAGE_LOG_FD>>config.log
1341
AS_BOX([Running $as_me.])
1342
} >&AS_MESSAGE_LOG_FD
1345
\`$as_me' creates a local libtool stub from the current configuration,
1346
for use in further configure time tests before the real libtool is
1349
Usage: $[0] [[OPTIONS]]
1351
-h, --help print this help, then exit
1352
-V, --version print version number, then exit
1353
-q, --quiet do not print progress messages
1354
-d, --debug don't remove temporary files
1356
Report bugs to <bug-libtool@gnu.org>."
1359
m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
1360
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
1361
configured by $[0], generated by m4_PACKAGE_STRING.
1363
Copyright (C) 2008 Free Software Foundation, Inc.
1364
This config.lt script is free software; the Free Software Foundation
1365
gives unlimited permision to copy, distribute and modify it."
1367
while test $[#] != 0
1370
--version | --v* | -V )
1371
echo "$lt_cl_version"; exit 0 ;;
1372
--help | --h* | -h )
1373
echo "$lt_cl_help"; exit 0 ;;
1374
--debug | --d* | -d )
1376
--quiet | --q* | --silent | --s* | -q )
1379
-*) AC_MSG_ERROR([unrecognized option: $[1]
1380
Try \`$[0] --help' for more information.]) ;;
1382
*) AC_MSG_ERROR([unrecognized argument: $[1]
1383
Try \`$[0] --help' for more information.]) ;;
1388
if $lt_cl_silent; then
1389
exec AS_MESSAGE_FD>/dev/null
1393
cat >>"$CONFIG_LT" <<_LTEOF
1394
_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
1397
cat >>"$CONFIG_LT" <<\_LTEOF
1398
AC_MSG_NOTICE([creating $ofile])
1399
_LT_OUTPUT_LIBTOOL_COMMANDS
1402
chmod +x "$CONFIG_LT"
1404
# configure is writing to config.log, but config.lt does its own redirection,
1405
# appending to config.log, which fails on DOS, as config.log is still kept
1406
# open by configure. Here we exec the FD to /dev/null, effectively closing
1407
# config.log, so it can be properly (re)opened and appended to by config.lt.
1408
if test "$no_create" != yes; then
1410
test "$silent" = yes &&
1411
lt_config_lt_args="$lt_config_lt_args --quiet"
1412
exec AS_MESSAGE_LOG_FD>/dev/null
1413
$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
1414
exec AS_MESSAGE_LOG_FD>>config.log
1415
$lt_cl_success || AS_EXIT(1)
1422
# If TAG is the built-in tag, create an initial libtool script with a
1423
# default configuration from the untagged config vars. Otherwise add code
1424
# to config.status for appending the configuration named by TAG from the
1425
# matching tagged config vars.
1426
m4_defun([_LT_CONFIG],
1427
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1428
_LT_CONFIG_SAVE_COMMANDS([
1429
m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
1430
m4_if(_LT_TAG, [C], [
1431
# See if we are running on zsh, and set the options which allow our
1432
# commands through without removal of \ escapes.
1433
if test -n "${ZSH_VERSION+set}" ; then
1434
setopt NO_GLOB_SUBST
1438
trap "$RM \"$cfgfile\"; exit 1" 1 2 15
1441
cat <<_LT_EOF >> "$cfgfile"
1444
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
1445
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
1446
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1447
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
1452
# ### BEGIN LIBTOOL CONFIG
1453
_LT_LIBTOOL_CONFIG_VARS
1454
_LT_LIBTOOL_TAG_VARS
1455
# ### END LIBTOOL CONFIG
1461
cat <<\_LT_EOF >> "$cfgfile"
1462
# AIX sometimes has problems with the GCC collect2 program. For some
1463
# reason, if we set the COLLECT_NAMES environment variable, the problems
1464
# vanish in a puff of smoke.
1465
if test "X${COLLECT_NAMES+set}" != Xset; then
1467
export COLLECT_NAMES
1475
# We use sed instead of cat because bash on DJGPP gets confused if
1476
# if finds mixed CR/LF and LF-only lines. Since sed operates in
1477
# text mode, it properly converts lines to CR/LF. This bash problem
1478
# is reportedly fixed, but why not run on old versions too?
1479
sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
1480
|| (rm -f "$cfgfile"; exit 1)
1482
_LT_PROG_XSI_SHELLFNS
1484
sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
1485
|| (rm -f "$cfgfile"; exit 1)
1487
mv -f "$cfgfile" "$ofile" ||
1488
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
1491
[cat <<_LT_EOF >> "$ofile"
1493
dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
1494
dnl in a comment (ie after a #).
1495
# ### BEGIN LIBTOOL TAG CONFIG: $1
1496
_LT_LIBTOOL_TAG_VARS(_LT_TAG)
1497
# ### END LIBTOOL TAG CONFIG: $1
1504
TIMESTAMP='$TIMESTAMP'
1506
ofile='$ofile'], [])
1507
])dnl /_LT_CONFIG_SAVE_COMMANDS
1511
# LT_SUPPORTED_TAG(TAG)
1512
# ---------------------
1513
# Trace this macro to discover what tags are supported by the libtool
1514
# --tag option, using:
1515
# autoconf --trace 'LT_SUPPORTED_TAG:$1'
1516
AC_DEFUN([LT_SUPPORTED_TAG], [])
1519
# C support is built-in for now
1520
m4_define([_LT_LANG_C_enabled], [])
1521
m4_define([_LT_TAGS], [])
1526
# Enable libtool support for the given language if not already enabled.
1528
[AC_BEFORE([$0], [LT_OUTPUT])dnl
1531
[C++], [_LT_LANG(CXX)],
1532
[Java], [_LT_LANG(GCJ)],
1533
[Fortran 77], [_LT_LANG(F77)],
1534
[Fortran], [_LT_LANG(FC)],
1535
[Windows Resource], [_LT_LANG(RC)],
1536
[m4_ifdef([_LT_LANG_]$1[_CONFIG],
1538
[m4_fatal([$0: unsupported language: "$1"])])])dnl
1542
# _LT_LANG(LANGNAME)
1543
# ------------------
1544
m4_defun([_LT_LANG],
1545
[m4_ifdef([_LT_LANG_]$1[_enabled], [],
1546
[LT_SUPPORTED_TAG([$1])dnl
1547
m4_append([_LT_TAGS], [$1 ])dnl
1548
m4_define([_LT_LANG_]$1[_enabled], [])dnl
1549
_LT_LANG_$1_CONFIG($1)])dnl
1553
# _LT_LANG_DEFAULT_CONFIG
1554
# -----------------------
1555
m4_defun([_LT_LANG_DEFAULT_CONFIG],
1556
[AC_PROVIDE_IFELSE([AC_PROG_CXX],
1558
[m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
1560
AC_PROVIDE_IFELSE([AC_PROG_F77],
1562
[m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
1564
AC_PROVIDE_IFELSE([AC_PROG_FC],
1566
[m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
1568
dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
1569
dnl pulling things in needlessly.
1570
AC_PROVIDE_IFELSE([AC_PROG_GCJ],
1572
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
1574
[AC_PROVIDE_IFELSE([LT_PROG_GCJ],
1576
[m4_ifdef([AC_PROG_GCJ],
1577
[m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
1578
m4_ifdef([A][M_PROG_GCJ],
1579
[m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
1580
m4_ifdef([LT_PROG_GCJ],
1581
[m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
1583
AC_PROVIDE_IFELSE([LT_PROG_RC],
1585
[m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
1586
])# _LT_LANG_DEFAULT_CONFIG
1589
AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
1590
AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
1591
AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
1592
AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
1593
dnl aclocal-1.4 backwards compatibility:
1594
dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
1595
dnl AC_DEFUN([AC_LIBTOOL_F77], [])
1596
dnl AC_DEFUN([AC_LIBTOOL_FC], [])
1597
dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
1602
m4_defun([_LT_TAG_COMPILER],
981
1603
[AC_REQUIRE([AC_PROG_CC])dnl
1605
_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
1606
_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
1607
_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
1608
_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
983
1610
# If no C compiler was specified, use CC.
984
1611
LTCC=${LTCC-"$CC"}
3390
4026
AC_CHECK_LIB(m, cos, LIBM="-lm")
3396
# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
3397
# -----------------------------------
3398
# sets LIBLTDL to the link flags for the libltdl convenience library and
3399
# LTDLINCL to the include flags for the libltdl header and adds
3400
# --enable-ltdl-convenience to the configure arguments. Note that
3401
# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
3402
# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
3403
# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
3404
# (note the single quotes!). If your package is not flat and you're not
3405
# using automake, define top_builddir and top_srcdir appropriately in
3407
AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
3408
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3409
case $enable_ltdl_convenience in
3410
no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
3411
"") enable_ltdl_convenience=yes
3412
ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
3414
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
3415
LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3416
# For backwards non-gettext consistent compatibility...
3418
])# AC_LIBLTDL_CONVENIENCE
3421
# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
3422
# -----------------------------------
3423
# sets LIBLTDL to the link flags for the libltdl installable library and
3424
# LTDLINCL to the include flags for the libltdl header and adds
3425
# --enable-ltdl-install to the configure arguments. Note that
3426
# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
3427
# and an installed libltdl is not found, it is assumed to be `libltdl'.
3428
# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
3429
# '${top_srcdir}/' (note the single quotes!). If your package is not
3430
# flat and you're not using automake, define top_builddir and top_srcdir
3431
# appropriately in the Makefiles.
3432
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
3433
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
3434
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3435
AC_CHECK_LIB(ltdl, lt_dlinit,
3436
[test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
3437
[if test x"$enable_ltdl_install" = xno; then
3438
AC_MSG_WARN([libltdl not installed, but installation disabled])
3440
enable_ltdl_install=yes
3443
if test x"$enable_ltdl_install" = x"yes"; then
3444
ac_configure_args="$ac_configure_args --enable-ltdl-install"
3445
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
3446
LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3448
ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
3452
# For backwards non-gettext consistent compatibility...
3454
])# AC_LIBLTDL_INSTALLABLE
3459
# enable support for C++ libraries
3460
AC_DEFUN([AC_LIBTOOL_CXX],
3461
[AC_REQUIRE([_LT_AC_LANG_CXX])
3467
AC_DEFUN([_LT_AC_LANG_CXX],
3468
[AC_REQUIRE([AC_PROG_CXX])
3469
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
3470
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
3473
# _LT_AC_PROG_CXXCPP
3474
# ------------------
3475
AC_DEFUN([_LT_AC_PROG_CXXCPP],
3477
AC_REQUIRE([AC_PROG_CXX])
3478
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
3479
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
3480
(test "X$CXX" != "Xg++"))) ; then
3483
])# _LT_AC_PROG_CXXCPP
3487
# enable support for Fortran 77 libraries
3488
AC_DEFUN([AC_LIBTOOL_F77],
3489
[AC_REQUIRE([_LT_AC_LANG_F77])
3495
AC_DEFUN([_LT_AC_LANG_F77],
3496
[AC_REQUIRE([AC_PROG_F77])
3497
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
3503
# enable support for GCJ libraries
3504
AC_DEFUN([AC_LIBTOOL_GCJ],
3505
[AC_REQUIRE([_LT_AC_LANG_GCJ])
3511
AC_DEFUN([_LT_AC_LANG_GCJ],
3512
[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
3513
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
3514
[AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
3515
[ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
3516
[ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
3517
[AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
3518
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
3524
# enable support for Windows resource files
3525
AC_DEFUN([AC_LIBTOOL_RC],
3526
[AC_REQUIRE([LT_AC_PROG_RC])
3527
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
3531
# AC_LIBTOOL_LANG_C_CONFIG
3532
# ------------------------
3533
# Ensure that the configuration vars for the C compiler are
3534
# suitably defined. Those variables are subsequently used by
3535
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3536
AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
3537
AC_DEFUN([_LT_AC_LANG_C_CONFIG],
3541
# Source file extension for C test sources.
3544
# Object file extension for compiled C test sources.
3546
_LT_AC_TAGVAR(objext, $1)=$objext
3548
# Code to be used in simple compile tests
3549
lt_simple_compile_test_code="int some_variable = 0;"
3551
# Code to be used in simple link tests
3552
lt_simple_link_test_code='int main(){return(0);}'
3556
# save warnings/boilerplate of simple test code
3557
_LT_COMPILER_BOILERPLATE
3558
_LT_LINKER_BOILERPLATE
3560
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
3561
AC_LIBTOOL_PROG_COMPILER_PIC($1)
3562
AC_LIBTOOL_PROG_CC_C_O($1)
3563
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3564
AC_LIBTOOL_PROG_LD_SHLIBS($1)
3565
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3566
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3567
AC_LIBTOOL_SYS_LIB_STRIP
3568
AC_LIBTOOL_DLOPEN_SELF
3570
# Report which library types will actually be built
3571
AC_MSG_CHECKING([if libtool supports shared libraries])
3572
AC_MSG_RESULT([$can_build_shared])
3574
AC_MSG_CHECKING([whether to build shared libraries])
3575
test "$can_build_shared" = "no" && enable_shared=no
3577
# On AIX, shared libraries and static libraries use the same namespace, and
3578
# are all built from PIC.
3581
test "$enable_shared" = yes && enable_static=no
3582
if test -n "$RANLIB"; then
3583
archive_cmds="$archive_cmds~\$RANLIB \$lib"
3584
postinstall_cmds='$RANLIB $lib'
3589
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
3590
test "$enable_shared" = yes && enable_static=no
3594
AC_MSG_RESULT([$enable_shared])
3596
AC_MSG_CHECKING([whether to build static libraries])
3597
# Make sure either enable_shared or enable_static is yes.
3598
test "$enable_shared" = yes || enable_static=yes
3599
AC_MSG_RESULT([$enable_static])
3601
AC_LIBTOOL_CONFIG($1)
3605
])# AC_LIBTOOL_LANG_C_CONFIG
3608
# AC_LIBTOOL_LANG_CXX_CONFIG
3609
# --------------------------
3610
# Ensure that the configuration vars for the C compiler are
3611
# suitably defined. Those variables are subsequently used by
3612
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3613
AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
3614
AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
3616
AC_REQUIRE([AC_PROG_CXX])
3617
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
3619
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3620
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
3621
_LT_AC_TAGVAR(always_export_symbols, $1)=no
3622
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
3623
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
3624
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3625
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
3626
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
3627
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3628
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
3629
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3630
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
3631
_LT_AC_TAGVAR(module_cmds, $1)=
3632
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
3633
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
3634
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
3635
_LT_AC_TAGVAR(no_undefined_flag, $1)=
3636
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3637
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
3639
# Dependencies to place before and after the object being linked:
3640
_LT_AC_TAGVAR(predep_objects, $1)=
3641
_LT_AC_TAGVAR(postdep_objects, $1)=
3642
_LT_AC_TAGVAR(predeps, $1)=
3643
_LT_AC_TAGVAR(postdeps, $1)=
3644
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
3645
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
3647
# Source file extension for C++ test sources.
3650
# Object file extension for compiled C++ test sources.
3652
_LT_AC_TAGVAR(objext, $1)=$objext
3654
# Code to be used in simple compile tests
3655
lt_simple_compile_test_code="int some_variable = 0;"
3657
# Code to be used in simple link tests
3658
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
3660
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3663
# save warnings/boilerplate of simple test code
3664
_LT_COMPILER_BOILERPLATE
3665
_LT_LINKER_BOILERPLATE
3667
# Allow CC to be a program name with arguments.
3672
lt_save_with_gnu_ld=$with_gnu_ld
3673
lt_save_path_LD=$lt_cv_path_LD
3674
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
3675
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
3677
$as_unset lt_cv_prog_gnu_ld
3679
if test -n "${lt_cv_path_LDCXX+set}"; then
3680
lt_cv_path_LD=$lt_cv_path_LDCXX
3682
$as_unset lt_cv_path_LD
3684
test -z "${LDCXX+set}" || LD=$LDCXX
3687
_LT_AC_TAGVAR(compiler, $1)=$CC
3688
_LT_CC_BASENAME([$compiler])
3690
# We don't want -fno-exception wen compiling C++ code, so set the
3691
# no_builtin_flag separately
3692
if test "$GXX" = yes; then
3693
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
3695
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3698
if test "$GXX" = yes; then
3699
# Set up default GNU C++ configuration
3703
# Check if GNU C++ uses GNU ld as the underlying linker, since the
3704
# archiving commands below assume that GNU ld is being used.
3705
if test "$with_gnu_ld" = yes; then
3706
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3707
_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'
3709
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3710
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3712
# If archive_cmds runs LD, not CC, wlarc should be empty
3713
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
3714
# investigate it a little bit more. (MM)
3717
# ancient GNU ld didn't support --whole-archive et. al.
3718
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
3719
grep 'no-whole-archive' > /dev/null; then
3720
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3722
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3728
# A generic and very simple default shared library creation
3729
# command for GNU C++ for the case where it uses the native
3730
# linker, instead of GNU ld. If possible, this setting should
3731
# overridden to take advantage of the native linker features on
3732
# the platform it is being used on.
3733
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3736
# Commands to make compiler produce verbose output that lists
3737
# what "hidden" libraries, object files and flags are used when
3738
# linking a shared library.
3739
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3747
# PORTME: fill in a description of your system's C++ link characteristics
3748
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
3749
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
3752
# FIXME: insert proper C++ library support
3753
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3756
if test "$host_cpu" = ia64; then
3757
# On IA64, the linker does run time linking by default, so we don't
3758
# have to do anything special.
3759
aix_use_runtimelinking=no
3760
exp_sym_flag='-Bexport'
3763
aix_use_runtimelinking=no
3765
# Test if we are trying to use run time linking or normal
3766
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
3767
# need to do runtime linking.
3768
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
3769
for ld_flag in $LDFLAGS; do
3772
aix_use_runtimelinking=yes
3780
exp_sym_flag='-bexport'
3781
no_entry_flag='-bnoentry'
3784
# When large executables or shared objects are built, AIX ld can
3785
# have problems creating the table of contents. If linking a library
3786
# or program results in "error TOC overflow" add -mminimal-toc to
3787
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
3788
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
3790
_LT_AC_TAGVAR(archive_cmds, $1)=''
3791
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3792
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3793
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3795
if test "$GXX" = yes; then
3796
case $host_os in aix4.[[012]]|aix4.[[012]].*)
3797
# We only want to do this on AIX 4.2 and lower, the check
3798
# below for broken collect2 doesn't work under 4.3+
3799
collect2name=`${CC} -print-prog-name=collect2`
3800
if test -f "$collect2name" && \
3801
strings "$collect2name" | grep resolve_lib_name >/dev/null
3803
# We have reworked collect2
3806
# We have old collect2
3807
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3808
# It fails to find uninstalled libraries when the uninstalled
3809
# path is not listed in the libpath. Setting hardcode_minus_L
3810
# to unsupported forces relinking
3811
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
3812
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3813
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3817
shared_flag='-shared'
3818
if test "$aix_use_runtimelinking" = yes; then
3819
shared_flag="$shared_flag "'${wl}-G'
3823
if test "$host_cpu" = ia64; then
3824
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
3825
# chokes on -Wl,-G. The following line is correct:
3828
if test "$aix_use_runtimelinking" = yes; then
3829
shared_flag='${wl}-G'
3831
shared_flag='${wl}-bM:SRE'
3836
# It seems that -bexpall does not export symbols beginning with
3837
# underscore (_), so it is better to generate a list of symbols to export.
3838
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
3839
if test "$aix_use_runtimelinking" = yes; then
3840
# Warning - without using the other runtime loading flags (-brtl),
3841
# -berok will link without error, but may produce a broken library.
3842
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
3843
# Determine the default libpath from the value encoded in an empty executable.
3844
_LT_AC_SYS_LIBPATH_AIX
3845
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3847
_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"
3849
if test "$host_cpu" = ia64; then
3850
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
3851
_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
3852
_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"
3854
# Determine the default libpath from the value encoded in an empty executable.
3855
_LT_AC_SYS_LIBPATH_AIX
3856
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3857
# Warning - without using the other run time loading flags,
3858
# -berok will link without error, but may produce a broken library.
3859
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
3860
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
3861
# Exported symbols can be pulled into shared objects from archives
3862
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
3863
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
3864
# This is similar to how AIX traditionally builds its shared libraries.
3865
_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'
3871
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
3872
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3873
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3874
# support --undefined. This deserves some investigation. FIXME
3875
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3877
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3882
case $cc_basename in
3884
# FIXME: insert proper C++ library support
3885
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3890
cygwin* | mingw* | pw32*)
3891
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
3892
# as there is no search path for DLLs.
3893
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3894
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3895
_LT_AC_TAGVAR(always_export_symbols, $1)=no
3896
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
3898
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
3899
_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'
3900
# If the export-symbols file already is a .def file (1st line
3901
# is EXPORTS), use it as is; otherwise, prepend...
3902
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
3903
cp $export_symbols $output_objdir/$soname.def;
3905
echo EXPORTS > $output_objdir/$soname.def;
3906
cat $export_symbols >> $output_objdir/$soname.def;
3908
$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'
3910
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3913
darwin* | rhapsody*)
3914
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3915
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3916
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3917
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3918
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3919
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3920
_LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
3921
if test "$GXX" = yes ; then
3922
output_verbose_link_cmd='echo'
3923
_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}"
3924
_LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
3925
_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}"
3926
_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}"
3927
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
3928
_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}"
3929
_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}"
3932
case $cc_basename in
3934
output_verbose_link_cmd='echo'
3935
_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'
3936
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3937
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3938
_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}'
3939
_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}'
3942
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3949
case $cc_basename in
3951
# FIXME: insert proper C++ library support
3952
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3955
# Green Hills C++ Compiler
3956
# FIXME: insert proper C++ library support
3957
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3960
# FIXME: insert proper C++ library support
3961
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3966
# C++ shared libraries reported to be fairly broken before switch to ELF
3967
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3970
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3972
freebsd* | dragonfly*)
3973
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3975
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
3980
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3981
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3982
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3983
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3984
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3985
# but as the default
3986
# location of the library.
3988
case $cc_basename in
3990
# FIXME: insert proper C++ library support
3991
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3994
_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'
3995
# Commands to make compiler produce verbose output that lists
3996
# what "hidden" libraries, object files and flags are used when
3997
# linking a shared library.
3999
# There doesn't appear to be a way to prevent this compiler from
4000
# explicitly linking system object files so we need to strip them
4001
# from the output so that they don't get included in the library
4003
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'
4006
if test "$GXX" = yes; then
4007
_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'
4009
# FIXME: insert proper C++ library support
4010
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4016
if test $with_gnu_ld = no; then
4017
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4018
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4023
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4029
_LT_AC_TAGVAR(hardcode_direct, $1)=no
4030
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4033
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
4034
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
4035
# but as the default
4036
# location of the library.
4040
case $cc_basename in
4042
# FIXME: insert proper C++ library support
4043
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4048
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4051
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4054
_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'
4057
# Commands to make compiler produce verbose output that lists
4058
# what "hidden" libraries, object files and flags are used when
4059
# linking a shared library.
4061
# There doesn't appear to be a way to prevent this compiler from
4062
# explicitly linking system object files so we need to strip them
4063
# from the output so that they don't get included in the library
4065
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'
4068
if test "$GXX" = yes; then
4069
if test $with_gnu_ld = no; then
4072
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4075
_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'
4078
_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'
4083
# FIXME: insert proper C++ library support
4084
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4090
_LT_AC_TAGVAR(hardcode_direct, $1)=no
4091
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4092
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4093
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4094
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
4095
# Instead, shared libraries are loaded at an image base (0x10000000 by
4096
# default) and relocated if they conflict, which is a slow very memory
4097
# consuming and fragmenting process. To avoid this, we pick a random,
4098
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
4099
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
4100
_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'
4101
_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'
4104
case $cc_basename in
4107
_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'
4109
# Archives containing C++ object files must be created using
4110
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
4111
# necessary to make sure instantiated templates are included
4113
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
4116
if test "$GXX" = yes; then
4117
if test "$with_gnu_ld" = no; then
4118
_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'
4120
_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'
4123
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4126
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4127
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4129
linux* | k*bsd*-gnu)
4130
case $cc_basename in
4132
# Kuck and Associates, Inc. (KAI) C++ Compiler
4134
# KCC will only create a shared library if the output file
4135
# ends with ".so" (or ".sl" for HP-UX), so rename the library
4136
# to its proper name (with version) after linking.
4137
_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'
4138
_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'
4139
# Commands to make compiler produce verbose output that lists
4140
# what "hidden" libraries, object files and flags are used when
4141
# linking a shared library.
4143
# There doesn't appear to be a way to prevent this compiler from
4144
# explicitly linking system object files so we need to strip them
4145
# from the output so that they don't get included in the library
4147
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'
4149
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
4150
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4152
# Archives containing C++ object files must be created using
4153
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
4154
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
4159
# version 8.0 and above of icpc choke on multiply defined symbols
4160
# if we add $predep_objects and $postdep_objects, however 7.1 and
4161
# earlier do not add the objects themselves.
4162
case `$CC -V 2>&1` in
4164
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4165
_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'
4167
*) # Version 8.0 or newer
4170
ia64*) tmp_idyn=' -i_dynamic';;
4172
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4173
_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'
4176
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4177
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4178
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4179
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
4182
# Portland Group C++ compiler
4183
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
4184
_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'
4186
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
4187
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4188
_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'
4192
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4193
_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'
4195
runpath_var=LD_RUN_PATH
4196
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4197
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4199
# Commands to make compiler produce verbose output that lists
4200
# what "hidden" libraries, object files and flags are used when
4201
# linking a shared library.
4203
# There doesn't appear to be a way to prevent this compiler from
4204
# explicitly linking system object files so we need to strip them
4205
# from the output so that they don't get included in the library
4207
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'
4210
case `$CC -V 2>&1 | sed 5q` in
4213
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
4214
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4215
_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'
4216
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4217
_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'
4219
# Not sure whether something based on
4220
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
4222
output_verbose_link_cmd='echo'
4224
# Archives containing C++ object files must be created using
4225
# "CC -xar", where "CC" is the Sun C++ compiler. This is
4226
# necessary to make sure instantiated templates are included
4228
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
4235
# FIXME: insert proper C++ library support
4236
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4239
# FIXME: insert proper C++ library support
4240
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4243
case $cc_basename in
4245
# FIXME: insert proper C++ library support
4246
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4249
# FIXME: insert proper C++ library support
4250
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4255
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4256
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
4258
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4259
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
4260
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4262
# Workaround some broken pre-1.5 toolchains
4263
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
4266
# C++ shared libraries are fairly broken
4267
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4270
if test -f /usr/libexec/ld.so; then
4271
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
4272
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4273
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
4274
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4275
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4276
_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'
4277
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4278
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4280
output_verbose_link_cmd='echo'
4282
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4286
case $cc_basename in
4288
# Kuck and Associates, Inc. (KAI) C++ Compiler
4290
# KCC will only create a shared library if the output file
4291
# ends with ".so" (or ".sl" for HP-UX), so rename the library
4292
# to its proper name (with version) after linking.
4293
_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'
4295
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4296
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4298
# Archives containing C++ object files must be created using
4299
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
4300
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
4304
# Rational C++ 2.4.1
4305
# FIXME: insert proper C++ library support
4306
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4309
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4310
_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'
4312
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4313
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4315
# Commands to make compiler produce verbose output that lists
4316
# what "hidden" libraries, object files and flags are used when
4317
# linking a shared library.
4319
# There doesn't appear to be a way to prevent this compiler from
4320
# explicitly linking system object files so we need to strip them
4321
# from the output so that they don't get included in the library
4323
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'
4326
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4327
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4328
_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'
4330
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4331
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4333
# Commands to make compiler produce verbose output that lists
4334
# what "hidden" libraries, object files and flags are used when
4335
# linking a shared library.
4336
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4339
# FIXME: insert proper C++ library support
4340
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4346
case $cc_basename in
4348
# Kuck and Associates, Inc. (KAI) C++ Compiler
4350
# KCC will only create a shared library if the output file
4351
# ends with ".so" (or ".sl" for HP-UX), so rename the library
4352
# to its proper name (with version) after linking.
4353
_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'
4355
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4356
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4358
# Archives containing C++ object files must be created using
4359
# the KAI C++ compiler.
4360
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
4363
# Rational C++ 2.4.1
4364
# FIXME: insert proper C++ library support
4365
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4368
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4369
_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'
4370
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
4371
echo "-hidden">> $lib.exp~
4372
$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~
4375
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4376
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4378
# Commands to make compiler produce verbose output that lists
4379
# what "hidden" libraries, object files and flags are used when
4380
# linking a shared library.
4382
# There doesn't appear to be a way to prevent this compiler from
4383
# explicitly linking system object files so we need to strip them
4384
# from the output so that they don't get included in the library
4386
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'
4389
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4390
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4391
_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'
4393
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4394
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4396
# Commands to make compiler produce verbose output that lists
4397
# what "hidden" libraries, object files and flags are used when
4398
# linking a shared library.
4399
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4402
# FIXME: insert proper C++ library support
4403
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4409
# FIXME: insert proper C++ library support
4410
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4413
case $cc_basename in
4416
# FIXME: insert proper C++ library support
4417
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4421
# FIXME: insert proper C++ library support
4422
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4425
# FIXME: insert proper C++ library support
4426
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4431
case $cc_basename in
4433
# Sun C++ 4.2, 5.x and Centerline C++
4434
_LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
4435
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
4436
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4437
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4438
$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'
4440
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4441
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4443
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
4445
# The compiler driver will combine and reorder linker options,
4446
# but understands `-z linker_flag'.
4447
# Supported since Solaris 2.6 (maybe 2.5.1?)
4448
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
4451
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4453
output_verbose_link_cmd='echo'
4455
# Archives containing C++ object files must be created using
4456
# "CC -xar", where "CC" is the Sun C++ compiler. This is
4457
# necessary to make sure instantiated templates are included
4459
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
4462
# Green Hills C++ Compiler
4463
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4465
# The C++ compiler must be used to create the archive.
4466
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
4469
# GNU C++ compiler with Solaris linker
4470
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4471
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
4472
if $CC --version | grep -v '^2\.7' > /dev/null; then
4473
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4474
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4475
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4477
# Commands to make compiler produce verbose output that lists
4478
# what "hidden" libraries, object files and flags are used when
4479
# linking a shared library.
4480
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
4482
# g++ 2.7 appears to require `-G' NOT `-shared' on this
4484
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4485
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4486
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4488
# Commands to make compiler produce verbose output that lists
4489
# what "hidden" libraries, object files and flags are used when
4490
# linking a shared library.
4491
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
4494
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
4496
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
4498
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
4505
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
4506
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
4507
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4508
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4509
runpath_var='LD_RUN_PATH'
4511
case $cc_basename in
4513
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4514
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4517
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4518
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4522
sysv5* | sco3.2v5* | sco5v6*)
4523
# Note: We can NOT use -z defs as we might desire, because we do not
4524
# link with -lc, and that would cause any symbols used from libc to
4525
# always be unresolved, which means just about no library would
4526
# ever link correctly. If we're not using GNU ld we use -z text
4527
# though, which does catch some bad symbols but isn't as heavy-handed
4529
# For security reasons, it is highly recommended that you always
4530
# use absolute paths for naming shared libraries, and exclude the
4531
# DT_RUNPATH tag from executables and libraries. But doing so
4532
# requires that you compile everything twice, which is a pain.
4533
# So that behaviour is only enabled if SCOABSPATH is set to a
4534
# non-empty value in the environment. Most likely only useful for
4535
# creating official distributions of packages.
4536
# This is a hack until libtool officially supports absolute path
4537
# names for shared libraries.
4538
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
4539
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
4540
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4541
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4542
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
4543
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
4544
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4545
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
4546
runpath_var='LD_RUN_PATH'
4548
case $cc_basename in
4550
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4551
_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'
4554
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4555
_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'
4560
case $cc_basename in
4562
# NonStop-UX NCC 3.20
4563
# FIXME: insert proper C++ library support
4564
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4567
# FIXME: insert proper C++ library support
4568
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4573
# FIXME: insert proper C++ library support
4574
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4577
# FIXME: insert proper C++ library support
4578
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4581
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
4582
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
4584
_LT_AC_TAGVAR(GCC, $1)="$GXX"
4585
_LT_AC_TAGVAR(LD, $1)="$LD"
4587
AC_LIBTOOL_POSTDEP_PREDEP($1)
4588
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4589
AC_LIBTOOL_PROG_CC_C_O($1)
4590
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4591
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4592
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4593
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4595
AC_LIBTOOL_CONFIG($1)
4602
with_gnu_ldcxx=$with_gnu_ld
4603
with_gnu_ld=$lt_save_with_gnu_ld
4604
lt_cv_path_LDCXX=$lt_cv_path_LD
4605
lt_cv_path_LD=$lt_save_path_LD
4606
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
4607
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
4608
])# AC_LIBTOOL_LANG_CXX_CONFIG
4610
# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
4611
# ------------------------------------
4612
# Figure out "hidden" library dependencies from verbose
4613
# compiler output when linking a shared library.
4614
# Parse the compiler output and extract the necessary
4615
# objects, libraries and library flags.
4616
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],
4617
[AC_REQUIRE([LT_AC_PROG_SED])dnl
4618
dnl we can't use the lt_simple_compile_test_code here,
4619
dnl because it contains code intended for an executable,
4620
dnl not a library. It's possible we should let each
4621
dnl tag define a new lt_????_link_test_code variable,
4622
dnl but it's only used here...
4623
ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
4625
void foo (void) { a = 0; }
4627
],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
4631
Foo (void) { a = 0; }
4636
],[$1],[F77],[cat > conftest.$ac_ext <<EOF
4644
],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
4647
public void bar (void) {
4653
dnl Parse the compiler output and extract the necessary
4654
dnl objects, libraries and library flags.
4655
if AC_TRY_EVAL(ac_compile); then
4656
# Parse the compiler output and extract the necessary
4657
# objects, libraries and library flags.
4659
# Sentinel used to keep track of whether or not we are before
4660
# the conftest object file.
4661
pre_test_object_deps_done=no
4663
# The `*' in the case matches for architectures that use `case' in
4664
# $output_verbose_cmd can trigger glob expansion during the loop
4665
# eval without this substitution.
4666
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
4668
for p in `eval $output_verbose_link_cmd`; do
4672
# Some compilers place space between "-{L,R}" and the path.
4675
|| test $p = "-R"; then
4682
if test "$pre_test_object_deps_done" = no; then
4685
# Internal compiler library paths should come after those
4686
# provided the user. The postdeps already come after the
4687
# user supplied libs so there is no need to process them.
4688
if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
4689
_LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
4691
_LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
4694
# The "-l" case would never come before the object being
4695
# linked, so don't bother handling this case.
4698
if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
4699
_LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
4701
_LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
4707
# This assumes that the test object file only shows up
4708
# once in the compiler output.
4709
if test "$p" = "conftest.$objext"; then
4710
pre_test_object_deps_done=yes
4714
if test "$pre_test_object_deps_done" = no; then
4715
if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
4716
_LT_AC_TAGVAR(predep_objects, $1)="$p"
4718
_LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
4721
if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
4722
_LT_AC_TAGVAR(postdep_objects, $1)="$p"
4724
_LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
4729
*) ;; # Ignore the rest.
4737
echo "libtool.m4: error: problem compiling $1 test program"
4740
$rm -f confest.$objext
4742
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
4743
if test -n "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
4744
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_AC_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
4747
# PORTME: override above test on systems where it is broken
4751
# Interix 3.5 installs completely hosed .la files for C++, so rather than
4752
# hack all around it, let's just trust "g++" to DTRT.
4753
_LT_AC_TAGVAR(predep_objects,$1)=
4754
_LT_AC_TAGVAR(postdep_objects,$1)=
4755
_LT_AC_TAGVAR(postdeps,$1)=
4759
case `$CC -V 2>&1 | sed 5q` in
4763
# The more standards-conforming stlport4 library is
4764
# incompatible with the Cstd library. Avoid specifying
4765
# it if it's in CXXFLAGS. Ignore libCrun as
4766
# -library=stlport4 depends on it.
4767
case " $CXX $CXXFLAGS " in
4768
*" -library=stlport4 "*)
4769
solaris_use_stlport4=yes
4772
if test "$solaris_use_stlport4" != yes; then
4773
_LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
4780
case $cc_basename in
4782
# The more standards-conforming stlport4 library is
4783
# incompatible with the Cstd library. Avoid specifying
4784
# it if it's in CXXFLAGS. Ignore libCrun as
4785
# -library=stlport4 depends on it.
4786
case " $CXX $CXXFLAGS " in
4787
*" -library=stlport4 "*)
4788
solaris_use_stlport4=yes
4792
# Adding this requires a known-good setup of shared libraries for
4793
# Sun compiler versions before 5.6, else PIC objects from an old
4794
# archive will be linked into the output, leading to subtle bugs.
4795
if test "$solaris_use_stlport4" != yes; then
4796
_LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
4803
case " $_LT_AC_TAGVAR(postdeps, $1) " in
4804
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
4806
])# AC_LIBTOOL_POSTDEP_PREDEP
4808
# AC_LIBTOOL_LANG_F77_CONFIG
4809
# --------------------------
4810
# Ensure that the configuration vars for the C compiler are
4811
# suitably defined. Those variables are subsequently used by
4812
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4813
AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
4814
AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
4815
[AC_REQUIRE([AC_PROG_F77])
4816
AC_LANG_PUSH(Fortran 77)
4818
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4819
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
4820
_LT_AC_TAGVAR(always_export_symbols, $1)=no
4821
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
4822
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
4823
_LT_AC_TAGVAR(hardcode_direct, $1)=no
4824
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
4825
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4826
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4827
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
4828
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
4829
_LT_AC_TAGVAR(module_cmds, $1)=
4830
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
4831
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
4832
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4833
_LT_AC_TAGVAR(no_undefined_flag, $1)=
4834
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4835
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4837
# Source file extension for f77 test sources.
4840
# Object file extension for compiled f77 test sources.
4842
_LT_AC_TAGVAR(objext, $1)=$objext
4844
# Code to be used in simple compile tests
4845
lt_simple_compile_test_code="\
4851
# Code to be used in simple link tests
4852
lt_simple_link_test_code="\
4857
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4860
# save warnings/boilerplate of simple test code
4861
_LT_COMPILER_BOILERPLATE
4862
_LT_LINKER_BOILERPLATE
4864
# Allow CC to be a program name with arguments.
4868
_LT_AC_TAGVAR(compiler, $1)=$CC
4869
_LT_CC_BASENAME([$compiler])
4871
AC_MSG_CHECKING([if libtool supports shared libraries])
4872
AC_MSG_RESULT([$can_build_shared])
4874
AC_MSG_CHECKING([whether to build shared libraries])
4875
test "$can_build_shared" = "no" && enable_shared=no
4877
# On AIX, shared libraries and static libraries use the same namespace, and
4878
# are all built from PIC.
4881
test "$enable_shared" = yes && enable_static=no
4882
if test -n "$RANLIB"; then
4883
archive_cmds="$archive_cmds~\$RANLIB \$lib"
4884
postinstall_cmds='$RANLIB $lib'
4888
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4889
test "$enable_shared" = yes && enable_static=no
4893
AC_MSG_RESULT([$enable_shared])
4895
AC_MSG_CHECKING([whether to build static libraries])
4896
# Make sure either enable_shared or enable_static is yes.
4897
test "$enable_shared" = yes || enable_static=yes
4898
AC_MSG_RESULT([$enable_static])
4900
_LT_AC_TAGVAR(GCC, $1)="$G77"
4901
_LT_AC_TAGVAR(LD, $1)="$LD"
4903
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4904
AC_LIBTOOL_PROG_CC_C_O($1)
4905
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4906
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4907
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4908
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4910
AC_LIBTOOL_CONFIG($1)
4914
])# AC_LIBTOOL_LANG_F77_CONFIG
4917
# AC_LIBTOOL_LANG_GCJ_CONFIG
4918
# --------------------------
4919
# Ensure that the configuration vars for the C compiler are
4920
# suitably defined. Those variables are subsequently used by
4921
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4922
AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
4923
AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
4926
# Source file extension for Java test sources.
4929
# Object file extension for compiled Java test sources.
4931
_LT_AC_TAGVAR(objext, $1)=$objext
4933
# Code to be used in simple compile tests
4934
lt_simple_compile_test_code="class foo {}"
4936
# Code to be used in simple link tests
4937
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
4939
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4942
# save warnings/boilerplate of simple test code
4943
_LT_COMPILER_BOILERPLATE
4944
_LT_LINKER_BOILERPLATE
4946
# Allow CC to be a program name with arguments.
4950
_LT_AC_TAGVAR(compiler, $1)=$CC
4951
_LT_CC_BASENAME([$compiler])
4953
# GCJ did not exist at the time GCC didn't implicitly link libc in.
4954
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4956
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4958
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
4959
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4960
AC_LIBTOOL_PROG_CC_C_O($1)
4961
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4962
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4963
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4964
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4966
AC_LIBTOOL_CONFIG($1)
4970
])# AC_LIBTOOL_LANG_GCJ_CONFIG
4973
# AC_LIBTOOL_LANG_RC_CONFIG
4974
# -------------------------
4975
# Ensure that the configuration vars for the Windows resource compiler are
4976
# suitably defined. Those variables are subsequently used by
4977
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4978
AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
4979
AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
4982
# Source file extension for RC test sources.
4985
# Object file extension for compiled RC test sources.
4987
_LT_AC_TAGVAR(objext, $1)=$objext
4989
# Code to be used in simple compile tests
4990
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
4992
# Code to be used in simple link tests
4993
lt_simple_link_test_code="$lt_simple_compile_test_code"
4995
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4998
# save warnings/boilerplate of simple test code
4999
_LT_COMPILER_BOILERPLATE
5000
_LT_LINKER_BOILERPLATE
5002
# Allow CC to be a program name with arguments.
5006
_LT_AC_TAGVAR(compiler, $1)=$CC
5007
_LT_CC_BASENAME([$compiler])
5008
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
5010
AC_LIBTOOL_CONFIG($1)
5014
])# AC_LIBTOOL_LANG_RC_CONFIG
5017
# AC_LIBTOOL_CONFIG([TAGNAME])
5018
# ----------------------------
5019
# If TAGNAME is not passed, then create an initial libtool script
5020
# with a default configuration from the untagged config vars. Otherwise
5021
# add code to config.status for appending the configuration named by
5022
# TAGNAME from the matching tagged config vars.
5023
AC_DEFUN([AC_LIBTOOL_CONFIG],
5024
[# The else clause should only fire when bootstrapping the
5025
# libtool distribution, otherwise you forgot to ship ltmain.sh
5026
# with your package, and you will get complaints that there are
5027
# no rules to generate ltmain.sh.
5028
if test -f "$ltmain"; then
5029
# See if we are running on zsh, and set the options which allow our commands through
5030
# without removal of \ escapes.
5031
if test -n "${ZSH_VERSION+set}" ; then
5032
setopt NO_GLOB_SUBST
5034
# Now quote all the things that may contain metacharacters while being
5035
# careful not to overquote the AC_SUBSTed values. We take copies of the
5036
# variables and quote the copies for generation of the libtool script.
5037
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
5039
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
5040
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
5041
deplibs_check_method reload_flag reload_cmds need_locks \
5042
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
5043
lt_cv_sys_global_symbol_to_c_name_address \
5044
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
5045
old_postinstall_cmds old_postuninstall_cmds \
5046
_LT_AC_TAGVAR(compiler, $1) \
5047
_LT_AC_TAGVAR(CC, $1) \
5048
_LT_AC_TAGVAR(LD, $1) \
5049
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
5050
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
5051
_LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
5052
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
5053
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
5054
_LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
5055
_LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
5056
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
5057
_LT_AC_TAGVAR(old_archive_cmds, $1) \
5058
_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
5059
_LT_AC_TAGVAR(predep_objects, $1) \
5060
_LT_AC_TAGVAR(postdep_objects, $1) \
5061
_LT_AC_TAGVAR(predeps, $1) \
5062
_LT_AC_TAGVAR(postdeps, $1) \
5063
_LT_AC_TAGVAR(compiler_lib_search_path, $1) \
5064
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1) \
5065
_LT_AC_TAGVAR(archive_cmds, $1) \
5066
_LT_AC_TAGVAR(archive_expsym_cmds, $1) \
5067
_LT_AC_TAGVAR(postinstall_cmds, $1) \
5068
_LT_AC_TAGVAR(postuninstall_cmds, $1) \
5069
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
5070
_LT_AC_TAGVAR(allow_undefined_flag, $1) \
5071
_LT_AC_TAGVAR(no_undefined_flag, $1) \
5072
_LT_AC_TAGVAR(export_symbols_cmds, $1) \
5073
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
5074
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
5075
_LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
5076
_LT_AC_TAGVAR(hardcode_automatic, $1) \
5077
_LT_AC_TAGVAR(module_cmds, $1) \
5078
_LT_AC_TAGVAR(module_expsym_cmds, $1) \
5079
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
5080
_LT_AC_TAGVAR(fix_srcfile_path, $1) \
5081
_LT_AC_TAGVAR(exclude_expsyms, $1) \
5082
_LT_AC_TAGVAR(include_expsyms, $1); do
5085
_LT_AC_TAGVAR(old_archive_cmds, $1) | \
5086
_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
5087
_LT_AC_TAGVAR(archive_cmds, $1) | \
5088
_LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
5089
_LT_AC_TAGVAR(module_cmds, $1) | \
5090
_LT_AC_TAGVAR(module_expsym_cmds, $1) | \
5091
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
5092
_LT_AC_TAGVAR(export_symbols_cmds, $1) | \
5093
extract_expsyms_cmds | reload_cmds | finish_cmds | \
5094
postinstall_cmds | postuninstall_cmds | \
5095
old_postinstall_cmds | old_postuninstall_cmds | \
5096
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
5097
# Double-quote double-evaled strings.
5098
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
5101
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
5107
*'\[$]0 --fallback-echo"')
5108
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
5113
[cfgfile="${ofile}T"
5114
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
5116
AC_MSG_NOTICE([creating $ofile])],
5119
cat <<__EOF__ >> "$cfgfile"
5123
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
5124
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
5125
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
5127
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
5128
# Free Software Foundation, Inc.
5130
# This file is part of GNU Libtool:
5131
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
5133
# This program is free software; you can redistribute it and/or modify
5134
# it under the terms of the GNU General Public License as published by
5135
# the Free Software Foundation; either version 2 of the License, or
5136
# (at your option) any later version.
5138
# This program is distributed in the hope that it will be useful, but
5139
# WITHOUT ANY WARRANTY; without even the implied warranty of
5140
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
5141
# General Public License for more details.
5143
# You should have received a copy of the GNU General Public License
5144
# along with this program; if not, write to the Free Software
5145
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
5147
# As a special exception to the GNU General Public License, if you
5148
# distribute this file as part of a program that contains a
5149
# configuration script generated by Autoconf, you may include it under
5150
# the same distribution terms that you use for the rest of that program.
5152
# A sed program that does not truncate output.
5155
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
5156
Xsed="$SED -e 1s/^X//"
5158
# The HP-UX ksh and POSIX shell print the target directory to stdout
5160
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5162
# The names of the tagged configurations supported by this script.
5165
# ### BEGIN LIBTOOL CONFIG],
5166
[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
5168
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5170
# Shell to use when invoking shell scripts.
5173
# Whether or not to build shared libraries.
5174
build_libtool_libs=$enable_shared
5176
# Whether or not to build static libraries.
5177
build_old_libs=$enable_static
5179
# Whether or not to add -lc for building shared libraries.
5180
build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
5182
# Whether or not to disallow shared libs when runtime libs are static
5183
allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
5185
# Whether or not to optimize for fast installation.
5186
fast_install=$enable_fast_install
5189
host_alias=$host_alias
5194
build_alias=$build_alias
5198
# An echo program that does not interpret backslashes.
5203
AR_FLAGS=$lt_AR_FLAGS
5208
# LTCC compiler flags.
5209
LTCFLAGS=$lt_LTCFLAGS
5211
# A language-specific compiler.
5212
CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
5214
# Is the compiler the GNU C compiler?
5215
with_gcc=$_LT_AC_TAGVAR(GCC, $1)
5220
# The linker used to build libraries.
5221
LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
5223
# Whether we need hard or soft links.
5226
# A BSD-compatible nm program.
5229
# A symbol stripping program
5232
# Used to examine libraries when file_magic_cmd begins "file"
5233
MAGIC_CMD=$MAGIC_CMD
5235
# Used on cygwin: DLL creation program.
5238
# Used on cygwin: object dumper.
5241
# Used on cygwin: assembler.
5244
# The name of the directory that contains temporary libtool files.
5247
# How to create reloadable object files.
5248
reload_flag=$lt_reload_flag
5249
reload_cmds=$lt_reload_cmds
5251
# How to pass a linker flag through the compiler.
5252
wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
5254
# Object file suffix (normally "o").
5257
# Old archive suffix (normally "a").
5260
# Shared library suffix (normally ".so").
5261
shrext_cmds='$shrext_cmds'
5263
# Executable file suffix (normally "").
5266
# Additional compiler flags for building library objects.
5267
pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
5270
# What is the maximum length of a command?
5271
max_cmd_len=$lt_cv_sys_max_cmd_len
5273
# Does compiler simultaneously support -c and -o options?
5274
compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
5276
# Must we lock files when doing compilation?
5277
need_locks=$lt_need_locks
5279
# Do we need the lib prefix for modules?
5280
need_lib_prefix=$need_lib_prefix
5282
# Do we need a version for libraries?
5283
need_version=$need_version
5285
# Whether dlopen is supported.
5286
dlopen_support=$enable_dlopen
5288
# Whether dlopen of programs is supported.
5289
dlopen_self=$enable_dlopen_self
5291
# Whether dlopen of statically linked programs is supported.
5292
dlopen_self_static=$enable_dlopen_self_static
5294
# Compiler flag to prevent dynamic linking.
5295
link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
5297
# Compiler flag to turn off builtin functions.
5298
no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
5300
# Compiler flag to allow reflexive dlopens.
5301
export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
5303
# Compiler flag to generate shared objects directly from archives.
5304
whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
5306
# Compiler flag to generate thread-safe objects.
5307
thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
5309
# Library versioning type.
5310
version_type=$version_type
5312
# Format of library name prefix.
5313
libname_spec=$lt_libname_spec
5315
# List of archive names. First name is the real one, the rest are links.
5316
# The last name is the one that the linker finds with -lNAME.
5317
library_names_spec=$lt_library_names_spec
5319
# The coded name of the library, if different from the real name.
5320
soname_spec=$lt_soname_spec
5322
# Commands used to build and install an old-style archive.
5324
old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
5325
old_postinstall_cmds=$lt_old_postinstall_cmds
5326
old_postuninstall_cmds=$lt_old_postuninstall_cmds
5328
# Create an old-style archive from a shared archive.
5329
old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
5331
# Create a temporary old-style archive to link instead of a shared archive.
5332
old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
5334
# Commands used to build and install a shared archive.
5335
archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
5336
archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
5337
postinstall_cmds=$lt_postinstall_cmds
5338
postuninstall_cmds=$lt_postuninstall_cmds
5340
# Commands used to build a loadable module (assumed same as above if empty)
5341
module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
5342
module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
5344
# Commands to strip libraries.
5345
old_striplib=$lt_old_striplib
5346
striplib=$lt_striplib
5348
# Dependencies to place before the objects being linked to create a
5350
predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
5352
# Dependencies to place after the objects being linked to create a
5354
postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
5356
# Dependencies to place before the objects being linked to create a
5358
predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
5360
# Dependencies to place after the objects being linked to create a
5362
postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
5364
# The directories searched by this compiler when creating a shared
5366
compiler_lib_search_dirs=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)
5368
# The library search path used internally by the compiler when linking
5370
compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
5372
# Method to check whether dependent libraries are shared objects.
5373
deplibs_check_method=$lt_deplibs_check_method
5375
# Command to use when deplibs_check_method == file_magic.
5376
file_magic_cmd=$lt_file_magic_cmd
5378
# Flag that allows shared libraries with undefined symbols to be built.
5379
allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
5381
# Flag that forces no undefined symbols.
5382
no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
5384
# Commands used to finish a libtool library installation in a directory.
5385
finish_cmds=$lt_finish_cmds
5387
# Same as above, but a single script fragment to be evaled but not shown.
5388
finish_eval=$lt_finish_eval
5390
# Take the output of nm and produce a listing of raw symbols and C names.
5391
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
5393
# Transform the output of nm in a proper C declaration
5394
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
5396
# Transform the output of nm in a C name address pair
5397
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
5399
# This is the shared library runtime path variable.
5400
runpath_var=$runpath_var
5402
# This is the shared library path variable.
5403
shlibpath_var=$shlibpath_var
5405
# Is shlibpath searched before the hard-coded library search path?
5406
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
5408
# How to hardcode a shared library path into an executable.
5409
hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
5411
# Whether we should hardcode library paths into libraries.
5412
hardcode_into_libs=$hardcode_into_libs
5414
# Flag to hardcode \$libdir into a binary during linking.
5415
# This must work even if \$libdir does not exist.
5416
hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
5418
# If ld is used when linking, flag to hardcode \$libdir into
5419
# a binary during linking. This must work even if \$libdir does
5421
hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
5423
# Whether we need a single -rpath flag with a separated argument.
5424
hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
5426
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
5428
hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
5430
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
5432
hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
5434
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
5435
# the resulting binary.
5436
hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
5438
# Set to yes if building a shared library automatically hardcodes DIR into the library
5439
# and all subsequent libraries and executables linked against it.
5440
hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
5442
# Variables whose values should be saved in libtool wrapper scripts and
5443
# restored at relink time.
5444
variables_saved_for_relink="$variables_saved_for_relink"
5446
# Whether libtool must link a program against all its dependency libraries.
5447
link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
5449
# Compile-time system search path for libraries
5450
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
5452
# Run-time system search path for libraries
5453
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
5455
# Fix the shell variable \$srcfile for the compiler.
5456
fix_srcfile_path=$lt_fix_srcfile_path
5458
# Set to yes if exported symbols are required.
5459
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
5461
# The commands to list exported symbols.
5462
export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
5464
# The commands to extract the exported symbol list from a shared archive.
5465
extract_expsyms_cmds=$lt_extract_expsyms_cmds
5467
# Symbols that should not be listed in the preloaded symbols.
5468
exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
5470
# Symbols that must always be exported.
5471
include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
5474
[# ### END LIBTOOL CONFIG],
5475
[# ### END LIBTOOL TAG CONFIG: $tagname])
5482
cat <<\EOF >> "$cfgfile"
5484
# AIX sometimes has problems with the GCC collect2 program. For some
5485
# reason, if we set the COLLECT_NAMES environment variable, the problems
5486
# vanish in a puff of smoke.
5487
if test "X${COLLECT_NAMES+set}" != Xset; then
5489
export COLLECT_NAMES
5495
# We use sed instead of cat because bash on DJGPP gets confused if
5496
# if finds mixed CR/LF and LF-only lines. Since sed operates in
5497
# text mode, it properly converts lines to CR/LF. This bash problem
5498
# is reportedly fixed, but why not run on old versions too?
5499
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
5501
mv -f "$cfgfile" "$ofile" || \
5502
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
5506
# If there is no Makefile yet, we rely on a make rule to execute
5507
# `config.status --recheck' to rerun these tests and create the
5508
# libtool script then.
5509
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
5510
if test -f "$ltmain_in"; then
5511
test -f Makefile && make "$ltmain"
5514
])# AC_LIBTOOL_CONFIG
5517
# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
5518
# -------------------------------------------
5519
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
5520
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
5522
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
4033
AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
4034
dnl aclocal-1.4 backwards compatibility:
4035
dnl AC_DEFUN([AC_CHECK_LIBM], [])
4038
# _LT_COMPILER_NO_RTTI([TAGNAME])
4039
# -------------------------------
4040
m4_defun([_LT_COMPILER_NO_RTTI],
4041
[m4_require([_LT_TAG_COMPILER])dnl
4043
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
5524
4045
if test "$GCC" = yes; then
5525
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
4046
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
5527
AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
4048
_LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
5528
4049
lt_cv_prog_compiler_rtti_exceptions,
5529
4050
[-fno-rtti -fno-exceptions], [],
5530
[_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
4051
[_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
5532
])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
5535
# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
5536
# ---------------------------------
5537
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
5538
[AC_REQUIRE([AC_CANONICAL_HOST])
5539
AC_REQUIRE([LT_AC_PROG_SED])
5540
AC_REQUIRE([AC_PROG_NM])
5541
AC_REQUIRE([AC_OBJEXT])
4053
_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
4054
[Compiler flag to turn off builtin functions])
4055
])# _LT_COMPILER_NO_RTTI
4058
# _LT_CMD_GLOBAL_SYMBOLS
4059
# ----------------------
4060
m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
4061
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
4062
AC_REQUIRE([AC_PROG_CC])dnl
4063
AC_REQUIRE([LT_PATH_NM])dnl
4064
AC_REQUIRE([LT_PATH_LD])dnl
4065
m4_require([_LT_DECL_SED])dnl
4066
m4_require([_LT_DECL_EGREP])dnl
4067
m4_require([_LT_TAG_COMPILER])dnl
5542
4069
# Check for command to grab the raw symbol name followed by C symbol from nm.
5543
4070
AC_MSG_CHECKING([command to parse $NM output from $compiler object])
5544
4071
AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
6140
4723
# +Z the default
6143
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4726
_LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
6146
4729
# Is there a better lt_prog_compiler_static that works with the bundled CC?
6147
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4730
_LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
6150
4733
irix5* | irix6* | nonstopux*)
6151
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4734
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6152
4735
# PIC (with -KPIC) is the default.
6153
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6157
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6158
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4736
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6161
4739
linux* | k*bsd*-gnu)
6162
4740
case $cc_basename in
6164
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6165
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6166
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
4741
# old Intel for x86_64 which still supported -KPIC.
4743
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4744
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4745
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4747
# icc used to be incompatible with GCC.
4748
# ICC 10 doesn't accept -KPIC any more.
4750
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4751
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4752
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4754
# Lahey Fortran 8.1.
4756
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4757
_LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
4758
_LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
6168
4760
pgcc* | pgf77* | pgf90* | pgf95*)
6169
4761
# Portland Group compilers (*not* the Pentium gcc compiler,
6170
4762
# which looks to be a dead project)
6171
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6172
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
6173
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4763
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4764
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4765
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6176
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4768
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6177
4769
# All Alpha code is PIC.
6178
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4770
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4773
# IBM XL C 8.0/Fortran 10.1 on PPC
4774
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4775
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4776
_LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
6181
case `$CC -V 2>&1 | sed 5q` in
4779
case `$CC -V 2>&1 | sed 5q` in
6184
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6185
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6186
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4782
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4783
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4784
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6189
4787
# Sun Fortran 8.3 passes all unrecognized flags to the linker
6190
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6191
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6192
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
4788
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4789
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4790
_LT_TAGVAR(lt_prog_compiler_wl, $1)=''
4798
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4799
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4803
# QNX uses GNU C++, but need to define -shared option too, otherwise
4805
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
6199
4808
osf3* | osf4* | osf5*)
6200
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4809
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6201
4810
# All OSF/1 code is PIC.
6202
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4811
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6206
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4815
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6210
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6211
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4819
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4820
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6212
4821
case $cc_basename in
6213
4822
f77* | f90* | f95*)
6214
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
4823
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
6216
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
4825
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
6221
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
6222
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
6223
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4830
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4831
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4832
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6226
4835
sysv4 | sysv4.2uw2* | sysv4.3*)
6227
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6228
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6229
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4836
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4837
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4838
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6233
4842
if test -d /usr/nec ;then
6234
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
6235
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4843
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
4844
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6239
4848
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6240
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6241
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6242
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4849
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4850
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4851
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6246
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6247
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4855
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4856
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6251
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6252
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4860
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4861
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6256
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4865
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6261
AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
4871
# For platforms which do not support PIC, -DPIC is meaningless:
4873
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4876
_LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
4879
AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
4880
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
4881
[How to pass a linker flag through the compiler])
6264
4884
# Check to make sure the PIC flag actually works.
6266
if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
6267
AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
6268
_LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1),
6269
[$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
6270
[case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
4886
if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4887
_LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
4888
[_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
4889
[$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
4890
[case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
6272
*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
4892
*) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
6274
[_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6275
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
4894
[_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4895
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
6278
# For platforms which do not support PIC, -DPIC is meaningless:
6280
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6283
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
4897
_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
4898
[Additional compiler flags for building library objects])
6288
4901
# Check to make sure the static flag actually works.
6290
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
6291
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
6292
_LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1),
4903
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
4904
_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
4905
_LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
6293
4906
$lt_tmp_static_flag,
6295
[_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
6299
# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
6300
# ------------------------------------
4908
[_LT_TAGVAR(lt_prog_compiler_static, $1)=])
4909
_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
4910
[Compiler flag to prevent dynamic linking])
4911
])# _LT_COMPILER_PIC
4914
# _LT_LINKER_SHLIBS([TAGNAME])
4915
# ----------------------------
6301
4916
# See if the linker supports building shared libraries.
6302
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
6303
[AC_REQUIRE([LT_AC_PROG_SED])dnl
4917
m4_defun([_LT_LINKER_SHLIBS],
4918
[AC_REQUIRE([LT_PATH_LD])dnl
4919
AC_REQUIRE([LT_PATH_NM])dnl
4920
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
4921
m4_require([_LT_DECL_EGREP])dnl
4922
m4_require([_LT_DECL_SED])dnl
4923
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
4924
m4_require([_LT_TAG_COMPILER])dnl
6304
4925
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
6306
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4926
m4_if([$1], [CXX], [
4927
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6307
4928
case $host_os in
6309
4930
# If we're using GNU nm, then we don't want the "-C" option.
6310
4931
# -C means demangle to AIX nm, but means don't demangle with GNU nm
6311
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6312
_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'
4932
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4933
_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'
6314
_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'
4935
_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'
6318
_LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
4939
_LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
6321
_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'
4941
cygwin* | mingw* | cegcc*)
4942
_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'
6324
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4945
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6327
_LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4948
_LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
6330
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
6331
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6332
_LT_AC_TAGVAR(archive_cmds, $1)=
6333
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
6334
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
6335
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
6336
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
6337
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6338
_LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
6339
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
6340
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6341
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
6342
_LT_AC_TAGVAR(hardcode_direct, $1)=no
6343
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
6344
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6345
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
6346
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
6347
_LT_AC_TAGVAR(module_cmds, $1)=
6348
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
6349
_LT_AC_TAGVAR(always_export_symbols, $1)=no
6350
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4951
_LT_TAGVAR(allow_undefined_flag, $1)=
4952
_LT_TAGVAR(always_export_symbols, $1)=no
4953
_LT_TAGVAR(archive_cmds, $1)=
4954
_LT_TAGVAR(archive_expsym_cmds, $1)=
4955
_LT_TAGVAR(compiler_needs_object, $1)=no
4956
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4957
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
4958
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4959
_LT_TAGVAR(hardcode_automatic, $1)=no
4960
_LT_TAGVAR(hardcode_direct, $1)=no
4961
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
4962
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4963
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4964
_LT_TAGVAR(hardcode_libdir_separator, $1)=
4965
_LT_TAGVAR(hardcode_minus_L, $1)=no
4966
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4967
_LT_TAGVAR(inherit_rpath, $1)=no
4968
_LT_TAGVAR(link_all_deplibs, $1)=unknown
4969
_LT_TAGVAR(module_cmds, $1)=
4970
_LT_TAGVAR(module_expsym_cmds, $1)=
4971
_LT_TAGVAR(old_archive_from_new_cmds, $1)=
4972
_LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
4973
_LT_TAGVAR(thread_safe_flag_spec, $1)=
4974
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6351
4975
# include_expsyms should be a list of space-separated symbols to be *always*
6352
4976
# included in the symbol list
6353
_LT_AC_TAGVAR(include_expsyms, $1)=
4977
_LT_TAGVAR(include_expsyms, $1)=
6354
4978
# exclude_expsyms can be an extended regexp of symbols to exclude
6355
4979
# it will be wrapped by ` (' and `)$', so one must not match beginning or
6356
4980
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6357
4981
# as well as any symbol that contains `d'.
6358
_LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4982
_LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
6359
4983
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6360
4984
# platforms (ab)use it in PIC code, but their linkers get confused if
6361
4985
# the symbol is explicitly referenced. Since portable code cannot
6955
5580
irix5* | irix6* | nonstopux*)
6956
5581
if test "$GCC" = yes; then
6957
_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'
5582
_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'
5583
# Try to use the -exported_symbol ld option, if it does not
5584
# work, assume that -exports_file does not work either and
5585
# implicitly export all symbols.
5586
save_LDFLAGS="$LDFLAGS"
5587
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5588
AC_LINK_IFELSE(int foo(void) {},
5589
_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'
5591
LDFLAGS="$save_LDFLAGS"
6959
_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'
6960
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
5593
_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'
5594
_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'
6962
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6963
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6964
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5596
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5597
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5598
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5599
_LT_TAGVAR(inherit_rpath, $1)=yes
5600
_LT_TAGVAR(link_all_deplibs, $1)=yes
6968
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6969
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5604
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5605
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6971
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5607
_LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6973
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6974
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6975
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5609
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5610
_LT_TAGVAR(hardcode_direct, $1)=yes
5611
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6979
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6980
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6981
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6982
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6983
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5615
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5616
_LT_TAGVAR(hardcode_direct, $1)=yes
5617
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5618
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5619
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6987
5626
if test -f /usr/libexec/ld.so; then
6988
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6989
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6990
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6991
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6992
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6993
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6994
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5627
_LT_TAGVAR(hardcode_direct, $1)=yes
5628
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5629
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5630
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5631
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5632
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
5633
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5634
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6996
5636
case $host_os in
6997
5637
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6998
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6999
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5638
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5639
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7002
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7003
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5642
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5643
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7008
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5648
_LT_TAGVAR(ld_shlibs, $1)=no
7013
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7014
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7015
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
7016
_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'
7017
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5653
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5654
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5655
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5656
_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'
5657
_LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7021
5661
if test "$GCC" = yes; then
7022
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7023
_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'
5662
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5663
_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'
7025
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
7026
_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'
5665
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5666
_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'
7028
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7029
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5668
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5669
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5670
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
7032
5673
osf4* | osf5*) # as osf3* with the addition of -msym flag
7033
5674
if test "$GCC" = yes; then
7034
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7035
_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'
7036
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5675
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5676
_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'
5677
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7038
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
7039
_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'
7040
_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~
7041
$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'
5679
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5680
_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'
5681
_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~
5682
$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'
7043
5684
# Both c and cxx compiler support -rpath directly
7044
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5685
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
7046
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5687
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5688
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
7050
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
5692
_LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
7051
5693
if test "$GCC" = yes; then
7053
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7054
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7055
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
5695
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5696
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5697
$CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7058
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7059
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7060
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5699
case `$CC -V 2>&1` in
5702
_LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5703
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5704
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
5708
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
5709
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5710
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7062
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7063
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5714
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5715
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7064
5716
case $host_os in
7065
5717
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7067
5719
# The compiler driver will combine and reorder linker options,
7068
5720
# but understands `-z linker_flag'. GCC discards it without `$wl',
7069
5721
# but is careful enough not to reorder.
7070
# Supported since Solaris 2.6 (maybe 2.5.1?)
5722
# Supported since Solaris 2.6 (maybe 2.5.1?)
7071
5723
if test "$GCC" = yes; then
7072
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
5724
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7074
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
5726
_LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
7078
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5730
_LT_TAGVAR(link_all_deplibs, $1)=yes
7082
5734
if test "x$host_vendor" = xsequent; then
7083
5735
# Use $CC to link under sequent, because it throws in some extra .o
7084
5736
# files that make .init and .fini sections work.
7085
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5737
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7087
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5739
_LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7089
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7090
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
7091
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7092
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5741
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5742
_LT_TAGVAR(hardcode_direct, $1)=yes
5743
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5744
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7096
5748
case $host_vendor in
7098
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7099
_LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
5750
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5751
_LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
7102
5754
## LD is ld it makes a PLAMLIB
7103
5755
## CC just makes a GrossModule.
7104
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7105
_LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
7106
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5756
_LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5757
_LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
5758
_LT_TAGVAR(hardcode_direct, $1)=no
7109
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7110
_LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
5761
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5762
_LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
7113
5765
runpath_var='LD_RUN_PATH'
7114
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5766
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7118
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7119
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7120
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
5770
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5771
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5772
_LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
7124
5776
if test -d /usr/nec; then
7125
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7126
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5777
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5778
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7127
5779
runpath_var=LD_RUN_PATH
7128
5780
hardcode_runpath_var=yes
7129
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
5781
_LT_TAGVAR(ld_shlibs, $1)=yes
7133
5785
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
7134
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7135
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7136
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5786
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5787
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5788
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7137
5789
runpath_var='LD_RUN_PATH'
7139
5791
if test "$GCC" = yes; then
7140
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7141
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5792
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5793
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7143
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7144
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5795
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5796
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7213
5880
libobjs=conftest.$ac_objext
7215
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
7216
pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
5882
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5883
pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
7217
5884
compiler_flags=-v
7218
5885
linker_flags=-v
7220
5887
output_objdir=.
7221
5888
libname=conftest
7222
lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
7223
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
7224
if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
5889
lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5890
_LT_TAGVAR(allow_undefined_flag, $1)=
5891
if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
7226
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5893
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7228
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
5895
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
7230
_LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5897
_LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
7232
5899
cat conftest.err 1>&5
7235
AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
5902
AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
7241
])# AC_LIBTOOL_PROG_LD_SHLIBS
7244
# _LT_AC_FILE_LTDLL_C
7245
# -------------------
7246
# Be careful that the start marker always follows a newline.
7247
AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
7248
# /* ltdll.c starts here */
7249
# #define WIN32_LEAN_AND_MEAN
7250
# #include <windows.h>
7251
# #undef WIN32_LEAN_AND_MEAN
7252
# #include <stdio.h>
7254
# #ifndef __CYGWIN__
7255
# # ifdef __CYGWIN32__
7256
# # define __CYGWIN__ __CYGWIN32__
7260
# #ifdef __cplusplus
7263
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7264
# #ifdef __cplusplus
7269
# #include <cygwin/cygwin_dll.h>
7270
# DECLARE_CYGWIN_DLL( DllMain );
7272
# HINSTANCE __hDllInstance_base;
7275
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7277
# __hDllInstance_base = hInst;
7280
# /* ltdll.c ends here */
7281
])# _LT_AC_FILE_LTDLL_C
7284
# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
5909
_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
5910
[Whether or not to add -lc for building shared libraries])
5911
_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
5912
[enable_shared_with_static_runtimes], [0],
5913
[Whether or not to disallow shared libs when runtime libs are static])
5914
_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
5915
[Compiler flag to allow reflexive dlopens])
5916
_LT_TAGDECL([], [whole_archive_flag_spec], [1],
5917
[Compiler flag to generate shared objects directly from archives])
5918
_LT_TAGDECL([], [compiler_needs_object], [1],
5919
[Whether the compiler copes with passing no objects directly])
5920
_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
5921
[Create an old-style archive from a shared archive])
5922
_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
5923
[Create a temporary old-style archive to link instead of a shared archive])
5924
_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
5925
_LT_TAGDECL([], [archive_expsym_cmds], [2])
5926
_LT_TAGDECL([], [module_cmds], [2],
5927
[Commands used to build a loadable module if different from building
5929
_LT_TAGDECL([], [module_expsym_cmds], [2])
5930
_LT_TAGDECL([], [with_gnu_ld], [1],
5931
[Whether we are building with GNU ld or not])
5932
_LT_TAGDECL([], [allow_undefined_flag], [1],
5933
[Flag that allows shared libraries with undefined symbols to be built])
5934
_LT_TAGDECL([], [no_undefined_flag], [1],
5935
[Flag that enforces no undefined symbols])
5936
_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
5937
[Flag to hardcode $libdir into a binary during linking.
5938
This must work even if $libdir does not exist])
5939
_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
5940
[[If ld is used when linking, flag to hardcode $libdir into a binary
5941
during linking. This must work even if $libdir does not exist]])
5942
_LT_TAGDECL([], [hardcode_libdir_separator], [1],
5943
[Whether we need a single "-rpath" flag with a separated argument])
5944
_LT_TAGDECL([], [hardcode_direct], [0],
5945
[Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
5946
DIR into the resulting binary])
5947
_LT_TAGDECL([], [hardcode_direct_absolute], [0],
5948
[Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
5949
DIR into the resulting binary and the resulting library dependency is
5950
"absolute", i.e impossible to change by setting ${shlibpath_var} if the
5951
library is relocated])
5952
_LT_TAGDECL([], [hardcode_minus_L], [0],
5953
[Set to "yes" if using the -LDIR flag during linking hardcodes DIR
5954
into the resulting binary])
5955
_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
5956
[Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
5957
into the resulting binary])
5958
_LT_TAGDECL([], [hardcode_automatic], [0],
5959
[Set to "yes" if building a shared library automatically hardcodes DIR
5960
into the library and all subsequent libraries and executables linked
5962
_LT_TAGDECL([], [inherit_rpath], [0],
5963
[Set to yes if linker adds runtime paths of dependent libraries
5964
to runtime path list])
5965
_LT_TAGDECL([], [link_all_deplibs], [0],
5966
[Whether libtool must link a program against all its dependency libraries])
5967
_LT_TAGDECL([], [fix_srcfile_path], [1],
5968
[Fix the shell variable $srcfile for the compiler])
5969
_LT_TAGDECL([], [always_export_symbols], [0],
5970
[Set to "yes" if exported symbols are required])
5971
_LT_TAGDECL([], [export_symbols_cmds], [2],
5972
[The commands to list exported symbols])
5973
_LT_TAGDECL([], [exclude_expsyms], [1],
5974
[Symbols that should not be listed in the preloaded symbols])
5975
_LT_TAGDECL([], [include_expsyms], [1],
5976
[Symbols that must always be exported])
5977
_LT_TAGDECL([], [prelink_cmds], [2],
5978
[Commands necessary for linking programs (against libraries) with templates])
5979
_LT_TAGDECL([], [file_list_spec], [1],
5980
[Specify filename containing input files])
5981
dnl FIXME: Not yet implemented
5982
dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
5983
dnl [Compiler flag to generate thread safe objects])
5984
])# _LT_LINKER_SHLIBS
5987
# _LT_LANG_C_CONFIG([TAG])
5988
# ------------------------
5989
# Ensure that the configuration variables for a C compiler are suitably
5990
# defined. These variables are subsequently used by _LT_CONFIG to write
5991
# the compiler configuration to `libtool'.
5992
m4_defun([_LT_LANG_C_CONFIG],
5993
[m4_require([_LT_DECL_EGREP])dnl
5997
# Source file extension for C test sources.
6000
# Object file extension for compiled C test sources.
6002
_LT_TAGVAR(objext, $1)=$objext
6004
# Code to be used in simple compile tests
6005
lt_simple_compile_test_code="int some_variable = 0;"
6007
# Code to be used in simple link tests
6008
lt_simple_link_test_code='int main(){return(0);}'
6011
# Save the default compiler, since it gets overwritten when the other
6012
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6013
compiler_DEFAULT=$CC
6015
# save warnings/boilerplate of simple test code
6016
_LT_COMPILER_BOILERPLATE
6017
_LT_LINKER_BOILERPLATE
6019
if test -n "$compiler"; then
6020
_LT_COMPILER_NO_RTTI($1)
6021
_LT_COMPILER_PIC($1)
6022
_LT_COMPILER_C_O($1)
6023
_LT_COMPILER_FILE_LOCKS($1)
6024
_LT_LINKER_SHLIBS($1)
6025
_LT_SYS_DYNAMIC_LINKER($1)
6026
_LT_LINKER_HARDCODE_LIBPATH($1)
6030
# Report which library types will actually be built
6031
AC_MSG_CHECKING([if libtool supports shared libraries])
6032
AC_MSG_RESULT([$can_build_shared])
6034
AC_MSG_CHECKING([whether to build shared libraries])
6035
test "$can_build_shared" = "no" && enable_shared=no
6037
# On AIX, shared libraries and static libraries use the same namespace, and
6038
# are all built from PIC.
6041
test "$enable_shared" = yes && enable_static=no
6042
if test -n "$RANLIB"; then
6043
archive_cmds="$archive_cmds~\$RANLIB \$lib"
6044
postinstall_cmds='$RANLIB $lib'
6049
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6050
test "$enable_shared" = yes && enable_static=no
6054
AC_MSG_RESULT([$enable_shared])
6056
AC_MSG_CHECKING([whether to build static libraries])
6057
# Make sure either enable_shared or enable_static is yes.
6058
test "$enable_shared" = yes || enable_static=yes
6059
AC_MSG_RESULT([$enable_static])
6065
])# _LT_LANG_C_CONFIG
6070
# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
6071
# compiler, we have our own version here.
6072
m4_defun([_LT_PROG_CXX],
6074
pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
6076
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6077
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6078
(test "X$CXX" != "Xg++"))) ; then
6081
_lt_caught_CXX_error=yes
6083
popdef([AC_MSG_ERROR])
6086
dnl aclocal-1.4 backwards compatibility:
6087
dnl AC_DEFUN([_LT_PROG_CXX], [])
6090
# _LT_LANG_CXX_CONFIG([TAG])
6091
# --------------------------
6092
# Ensure that the configuration variables for a C++ compiler are suitably
6093
# defined. These variables are subsequently used by _LT_CONFIG to write
6094
# the compiler configuration to `libtool'.
6095
m4_defun([_LT_LANG_CXX_CONFIG],
6096
[AC_REQUIRE([_LT_PROG_CXX])dnl
6097
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6098
m4_require([_LT_DECL_EGREP])dnl
6101
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6102
_LT_TAGVAR(allow_undefined_flag, $1)=
6103
_LT_TAGVAR(always_export_symbols, $1)=no
6104
_LT_TAGVAR(archive_expsym_cmds, $1)=
6105
_LT_TAGVAR(compiler_needs_object, $1)=no
6106
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
6107
_LT_TAGVAR(hardcode_direct, $1)=no
6108
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
6109
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6110
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6111
_LT_TAGVAR(hardcode_libdir_separator, $1)=
6112
_LT_TAGVAR(hardcode_minus_L, $1)=no
6113
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6114
_LT_TAGVAR(hardcode_automatic, $1)=no
6115
_LT_TAGVAR(inherit_rpath, $1)=no
6116
_LT_TAGVAR(module_cmds, $1)=
6117
_LT_TAGVAR(module_expsym_cmds, $1)=
6118
_LT_TAGVAR(link_all_deplibs, $1)=unknown
6119
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6120
_LT_TAGVAR(no_undefined_flag, $1)=
6121
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6122
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6124
# Source file extension for C++ test sources.
6127
# Object file extension for compiled C++ test sources.
6129
_LT_TAGVAR(objext, $1)=$objext
6131
# No sense in running all these tests if we already determined that
6132
# the CXX compiler isn't working. Some variables (like enable_shared)
6133
# are currently assumed to apply to all compilers on this platform,
6134
# and will be corrupted by setting them based on a non-working compiler.
6135
if test "$_lt_caught_CXX_error" != yes; then
6136
# Code to be used in simple compile tests
6137
lt_simple_compile_test_code="int some_variable = 0;"
6139
# Code to be used in simple link tests
6140
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
6142
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
6145
# save warnings/boilerplate of simple test code
6146
_LT_COMPILER_BOILERPLATE
6147
_LT_LINKER_BOILERPLATE
6149
# Allow CC to be a program name with arguments.
6154
lt_save_with_gnu_ld=$with_gnu_ld
6155
lt_save_path_LD=$lt_cv_path_LD
6156
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
6157
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
6159
$as_unset lt_cv_prog_gnu_ld
6161
if test -n "${lt_cv_path_LDCXX+set}"; then
6162
lt_cv_path_LD=$lt_cv_path_LDCXX
6164
$as_unset lt_cv_path_LD
6166
test -z "${LDCXX+set}" || LD=$LDCXX
6169
_LT_TAGVAR(compiler, $1)=$CC
6170
_LT_CC_BASENAME([$compiler])
6172
if test -n "$compiler"; then
6173
# We don't want -fno-exception when compiling C++ code, so set the
6174
# no_builtin_flag separately
6175
if test "$GXX" = yes; then
6176
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
6178
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
6181
if test "$GXX" = yes; then
6182
# Set up default GNU C++ configuration
6186
# Check if GNU C++ uses GNU ld as the underlying linker, since the
6187
# archiving commands below assume that GNU ld is being used.
6188
if test "$with_gnu_ld" = yes; then
6189
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6190
_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'
6192
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6193
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6195
# If archive_cmds runs LD, not CC, wlarc should be empty
6196
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
6197
# investigate it a little bit more. (MM)
6200
# ancient GNU ld didn't support --whole-archive et. al.
6201
if eval "`$CC -print-prog-name=ld` --help 2>&1" |
6202
$GREP 'no-whole-archive' > /dev/null; then
6203
_LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6205
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6211
# A generic and very simple default shared library creation
6212
# command for GNU C++ for the case where it uses the native
6213
# linker, instead of GNU ld. If possible, this setting should
6214
# overridden to take advantage of the native linker features on
6215
# the platform it is being used on.
6216
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6219
# Commands to make compiler produce verbose output that lists
6220
# what "hidden" libraries, object files and flags are used when
6221
# linking a shared library.
6222
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6230
# PORTME: fill in a description of your system's C++ link characteristics
6231
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
6232
_LT_TAGVAR(ld_shlibs, $1)=yes
6235
# FIXME: insert proper C++ library support
6236
_LT_TAGVAR(ld_shlibs, $1)=no
6239
if test "$host_cpu" = ia64; then
6240
# On IA64, the linker does run time linking by default, so we don't
6241
# have to do anything special.
6242
aix_use_runtimelinking=no
6243
exp_sym_flag='-Bexport'
6246
aix_use_runtimelinking=no
6248
# Test if we are trying to use run time linking or normal
6249
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
6250
# need to do runtime linking.
6251
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
6252
for ld_flag in $LDFLAGS; do
6255
aix_use_runtimelinking=yes
6263
exp_sym_flag='-bexport'
6264
no_entry_flag='-bnoentry'
6267
# When large executables or shared objects are built, AIX ld can
6268
# have problems creating the table of contents. If linking a library
6269
# or program results in "error TOC overflow" add -mminimal-toc to
6270
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6271
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6273
_LT_TAGVAR(archive_cmds, $1)=''
6274
_LT_TAGVAR(hardcode_direct, $1)=yes
6275
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6276
_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6277
_LT_TAGVAR(link_all_deplibs, $1)=yes
6278
_LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
6280
if test "$GXX" = yes; then
6281
case $host_os in aix4.[[012]]|aix4.[[012]].*)
6282
# We only want to do this on AIX 4.2 and lower, the check
6283
# below for broken collect2 doesn't work under 4.3+
6284
collect2name=`${CC} -print-prog-name=collect2`
6285
if test -f "$collect2name" &&
6286
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
6288
# We have reworked collect2
6291
# We have old collect2
6292
_LT_TAGVAR(hardcode_direct, $1)=unsupported
6293
# It fails to find uninstalled libraries when the uninstalled
6294
# path is not listed in the libpath. Setting hardcode_minus_L
6295
# to unsupported forces relinking
6296
_LT_TAGVAR(hardcode_minus_L, $1)=yes
6297
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6298
_LT_TAGVAR(hardcode_libdir_separator, $1)=
6301
shared_flag='-shared'
6302
if test "$aix_use_runtimelinking" = yes; then
6303
shared_flag="$shared_flag "'${wl}-G'
6307
if test "$host_cpu" = ia64; then
6308
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6309
# chokes on -Wl,-G. The following line is correct:
6312
if test "$aix_use_runtimelinking" = yes; then
6313
shared_flag='${wl}-G'
6315
shared_flag='${wl}-bM:SRE'
6320
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
6321
# It seems that -bexpall does not export symbols beginning with
6322
# underscore (_), so it is better to generate a list of symbols to
6324
_LT_TAGVAR(always_export_symbols, $1)=yes
6325
if test "$aix_use_runtimelinking" = yes; then
6326
# Warning - without using the other runtime loading flags (-brtl),
6327
# -berok will link without error, but may produce a broken library.
6328
_LT_TAGVAR(allow_undefined_flag, $1)='-berok'
6329
# Determine the default libpath from the value encoded in an empty
6331
_LT_SYS_MODULE_PATH_AIX
6332
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6334
_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"
6336
if test "$host_cpu" = ia64; then
6337
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6338
_LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6339
_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"
6341
# Determine the default libpath from the value encoded in an
6343
_LT_SYS_MODULE_PATH_AIX
6344
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6345
# Warning - without using the other run time loading flags,
6346
# -berok will link without error, but may produce a broken library.
6347
_LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6348
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6349
# Exported symbols can be pulled into shared objects from archives
6350
_LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6351
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6352
# This is similar to how AIX traditionally builds its shared
6354
_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'
6360
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6361
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6362
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6363
# support --undefined. This deserves some investigation. FIXME
6364
_LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6366
_LT_TAGVAR(ld_shlibs, $1)=no
6371
case $cc_basename in
6373
# FIXME: insert proper C++ library support
6374
_LT_TAGVAR(ld_shlibs, $1)=no
6379
cygwin* | mingw* | pw32* | cegcc*)
6380
# _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6381
# as there is no search path for DLLs.
6382
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6383
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6384
_LT_TAGVAR(always_export_symbols, $1)=no
6385
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6387
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6388
_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'
6389
# If the export-symbols file already is a .def file (1st line
6390
# is EXPORTS), use it as is; otherwise, prepend...
6391
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6392
cp $export_symbols $output_objdir/$soname.def;
6394
echo EXPORTS > $output_objdir/$soname.def;
6395
cat $export_symbols >> $output_objdir/$soname.def;
6397
$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'
6399
_LT_TAGVAR(ld_shlibs, $1)=no
6402
darwin* | rhapsody*)
6403
_LT_DARWIN_LINKER_FEATURES($1)
6407
case $cc_basename in
6409
# FIXME: insert proper C++ library support
6410
_LT_TAGVAR(ld_shlibs, $1)=no
6413
# Green Hills C++ Compiler
6414
# FIXME: insert proper C++ library support
6415
_LT_TAGVAR(ld_shlibs, $1)=no
6418
# FIXME: insert proper C++ library support
6419
_LT_TAGVAR(ld_shlibs, $1)=no
6425
# C++ shared libraries reported to be fairly broken before
6427
_LT_TAGVAR(ld_shlibs, $1)=no
6431
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6434
freebsd* | dragonfly*)
6435
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
6437
_LT_TAGVAR(ld_shlibs, $1)=yes
6444
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6445
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6446
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6447
_LT_TAGVAR(hardcode_direct, $1)=yes
6448
_LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6449
# but as the default
6450
# location of the library.
6452
case $cc_basename in
6454
# FIXME: insert proper C++ library support
6455
_LT_TAGVAR(ld_shlibs, $1)=no
6458
_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'
6459
# Commands to make compiler produce verbose output that lists
6460
# what "hidden" libraries, object files and flags are used when
6461
# linking a shared library.
6463
# There doesn't appear to be a way to prevent this compiler from
6464
# explicitly linking system object files so we need to strip them
6465
# from the output so that they don't get included in the library
6467
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'
6470
if test "$GXX" = yes; then
6471
_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'
6473
# FIXME: insert proper C++ library support
6474
_LT_TAGVAR(ld_shlibs, $1)=no
6481
if test $with_gnu_ld = no; then
6482
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6483
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6489
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6495
_LT_TAGVAR(hardcode_direct, $1)=no
6496
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6499
_LT_TAGVAR(hardcode_direct, $1)=yes
6500
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6501
_LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6502
# but as the default
6503
# location of the library.
6507
case $cc_basename in
6509
# FIXME: insert proper C++ library support
6510
_LT_TAGVAR(ld_shlibs, $1)=no
6515
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6518
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6521
_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'
6524
# Commands to make compiler produce verbose output that lists
6525
# what "hidden" libraries, object files and flags are used when
6526
# linking a shared library.
6528
# There doesn't appear to be a way to prevent this compiler from
6529
# explicitly linking system object files so we need to strip them
6530
# from the output so that they don't get included in the library
6532
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'
6535
if test "$GXX" = yes; then
6536
if test $with_gnu_ld = no; then
6539
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6542
_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'
6545
_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'
6550
# FIXME: insert proper C++ library support
6551
_LT_TAGVAR(ld_shlibs, $1)=no
6558
_LT_TAGVAR(hardcode_direct, $1)=no
6559
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6560
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6561
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6562
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6563
# Instead, shared libraries are loaded at an image base (0x10000000 by
6564
# default) and relocated if they conflict, which is a slow very memory
6565
# consuming and fragmenting process. To avoid this, we pick a random,
6566
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6567
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
6568
_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'
6569
_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'
6572
case $cc_basename in
6575
_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'
6577
# Archives containing C++ object files must be created using
6578
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
6579
# necessary to make sure instantiated templates are included
6581
_LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
6584
if test "$GXX" = yes; then
6585
if test "$with_gnu_ld" = no; then
6586
_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'
6588
_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'
6591
_LT_TAGVAR(link_all_deplibs, $1)=yes
6594
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6595
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6596
_LT_TAGVAR(inherit_rpath, $1)=yes
6599
linux* | k*bsd*-gnu)
6600
case $cc_basename in
6602
# Kuck and Associates, Inc. (KAI) C++ Compiler
6604
# KCC will only create a shared library if the output file
6605
# ends with ".so" (or ".sl" for HP-UX), so rename the library
6606
# to its proper name (with version) after linking.
6607
_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'
6608
_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'
6609
# Commands to make compiler produce verbose output that lists
6610
# what "hidden" libraries, object files and flags are used when
6611
# linking a shared library.
6613
# There doesn't appear to be a way to prevent this compiler from
6614
# explicitly linking system object files so we need to strip them
6615
# from the output so that they don't get included in the library
6617
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'
6619
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6620
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6622
# Archives containing C++ object files must be created using
6623
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
6624
_LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
6629
# version 8.0 and above of icpc choke on multiply defined symbols
6630
# if we add $predep_objects and $postdep_objects, however 7.1 and
6631
# earlier do not add the objects themselves.
6632
case `$CC -V 2>&1` in
6634
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6635
_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'
6637
*) # Version 8.0 or newer
6640
ia64*) tmp_idyn=' -i_dynamic';;
6642
_LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6643
_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'
6646
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6647
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6648
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6649
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6652
# Portland Group C++ compiler
6654
*pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
6655
_LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
6657
$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
6658
compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
6659
_LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
6661
$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
6662
$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
6664
_LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
6666
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6667
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6668
_LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
6670
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6671
$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'
6673
*) # Version 6 will use weak symbols
6674
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6675
_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'
6679
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6680
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6681
_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'
6685
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6686
_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'
6688
runpath_var=LD_RUN_PATH
6689
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6690
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6692
# Commands to make compiler produce verbose output that lists
6693
# what "hidden" libraries, object files and flags are used when
6694
# linking a shared library.
6696
# There doesn't appear to be a way to prevent this compiler from
6697
# explicitly linking system object files so we need to strip them
6698
# from the output so that they don't get included in the library
6700
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'
6703
# IBM XL 8.0 on PPC, with GNU ld
6704
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6705
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6706
_LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6707
if test "x$supports_anon_versioning" = xyes; then
6708
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
6709
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6710
echo "local: *; };" >> $output_objdir/$libname.ver~
6711
$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6715
case `$CC -V 2>&1 | sed 5q` in
6718
_LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6719
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6720
_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'
6721
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6722
_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'
6723
_LT_TAGVAR(compiler_needs_object, $1)=yes
6725
# Not sure whether something based on
6726
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
6728
output_verbose_link_cmd='echo'
6730
# Archives containing C++ object files must be created using
6731
# "CC -xar", where "CC" is the Sun C++ compiler. This is
6732
# necessary to make sure instantiated templates are included
6734
_LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6742
# FIXME: insert proper C++ library support
6743
_LT_TAGVAR(ld_shlibs, $1)=no
6747
# FIXME: insert proper C++ library support
6748
_LT_TAGVAR(ld_shlibs, $1)=no
6752
case $cc_basename in
6754
# FIXME: insert proper C++ library support
6755
_LT_TAGVAR(ld_shlibs, $1)=no
6758
# FIXME: insert proper C++ library support
6759
_LT_TAGVAR(ld_shlibs, $1)=no
6765
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6766
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
6768
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6769
_LT_TAGVAR(hardcode_direct, $1)=yes
6770
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6772
# Workaround some broken pre-1.5 toolchains
6773
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
6777
_LT_TAGVAR(ld_shlibs, $1)=yes
6781
# C++ shared libraries are fairly broken
6782
_LT_TAGVAR(ld_shlibs, $1)=no
6786
if test -f /usr/libexec/ld.so; then
6787
_LT_TAGVAR(hardcode_direct, $1)=yes
6788
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6789
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6790
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6791
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6792
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6793
_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'
6794
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6795
_LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6797
output_verbose_link_cmd=echo
6799
_LT_TAGVAR(ld_shlibs, $1)=no
6803
osf3* | osf4* | osf5*)
6804
case $cc_basename in
6806
# Kuck and Associates, Inc. (KAI) C++ Compiler
6808
# KCC will only create a shared library if the output file
6809
# ends with ".so" (or ".sl" for HP-UX), so rename the library
6810
# to its proper name (with version) after linking.
6811
_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'
6813
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6814
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6816
# Archives containing C++ object files must be created using
6817
# the KAI C++ compiler.
6819
osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
6820
*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
6824
# Rational C++ 2.4.1
6825
# FIXME: insert proper C++ library support
6826
_LT_TAGVAR(ld_shlibs, $1)=no
6831
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6832
_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'
6833
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6836
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6837
_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'
6838
_LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
6839
echo "-hidden">> $lib.exp~
6840
$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~
6842
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6846
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6848
# Commands to make compiler produce verbose output that lists
6849
# what "hidden" libraries, object files and flags are used when
6850
# linking a shared library.
6852
# There doesn't appear to be a way to prevent this compiler from
6853
# explicitly linking system object files so we need to strip them
6854
# from the output so that they don't get included in the library
6856
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'
6859
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6860
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6863
_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'
6866
_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'
6870
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6871
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6873
# Commands to make compiler produce verbose output that lists
6874
# what "hidden" libraries, object files and flags are used when
6875
# linking a shared library.
6876
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6879
# FIXME: insert proper C++ library support
6880
_LT_TAGVAR(ld_shlibs, $1)=no
6887
# FIXME: insert proper C++ library support
6888
_LT_TAGVAR(ld_shlibs, $1)=no
6892
case $cc_basename in
6895
# FIXME: insert proper C++ library support
6896
_LT_TAGVAR(ld_shlibs, $1)=no
6900
# FIXME: insert proper C++ library support
6901
_LT_TAGVAR(ld_shlibs, $1)=no
6904
# FIXME: insert proper C++ library support
6905
_LT_TAGVAR(ld_shlibs, $1)=no
6911
case $cc_basename in
6913
# Sun C++ 4.2, 5.x and Centerline C++
6914
_LT_TAGVAR(archive_cmds_need_lc,$1)=yes
6915
_LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6916
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6917
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6918
$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'
6920
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6921
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6923
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6925
# The compiler driver will combine and reorder linker options,
6926
# but understands `-z linker_flag'.
6927
# Supported since Solaris 2.6 (maybe 2.5.1?)
6928
_LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6931
_LT_TAGVAR(link_all_deplibs, $1)=yes
6933
output_verbose_link_cmd='echo'
6935
# Archives containing C++ object files must be created using
6936
# "CC -xar", where "CC" is the Sun C++ compiler. This is
6937
# necessary to make sure instantiated templates are included
6939
_LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6942
# Green Hills C++ Compiler
6943
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6945
# The C++ compiler must be used to create the archive.
6946
_LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
6949
# GNU C++ compiler with Solaris linker
6950
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6951
_LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
6952
if $CC --version | $GREP -v '^2\.7' > /dev/null; then
6953
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6954
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6955
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6957
# Commands to make compiler produce verbose output that lists
6958
# what "hidden" libraries, object files and flags are used when
6959
# linking a shared library.
6960
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6962
# g++ 2.7 appears to require `-G' NOT `-shared' on this
6964
_LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6965
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6966
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6968
# Commands to make compiler produce verbose output that lists
6969
# what "hidden" libraries, object files and flags are used when
6970
# linking a shared library.
6971
output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6974
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
6976
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6978
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6986
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6987
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6988
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6989
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6990
runpath_var='LD_RUN_PATH'
6992
case $cc_basename in
6994
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6995
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6998
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6999
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7004
sysv5* | sco3.2v5* | sco5v6*)
7005
# Note: We can NOT use -z defs as we might desire, because we do not
7006
# link with -lc, and that would cause any symbols used from libc to
7007
# always be unresolved, which means just about no library would
7008
# ever link correctly. If we're not using GNU ld we use -z text
7009
# though, which does catch some bad symbols but isn't as heavy-handed
7011
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7012
_LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
7013
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7014
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7015
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
7016
_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
7017
_LT_TAGVAR(link_all_deplibs, $1)=yes
7018
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
7019
runpath_var='LD_RUN_PATH'
7021
case $cc_basename in
7023
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7024
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7027
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7028
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7034
case $cc_basename in
7036
# NonStop-UX NCC 3.20
7037
# FIXME: insert proper C++ library support
7038
_LT_TAGVAR(ld_shlibs, $1)=no
7041
# FIXME: insert proper C++ library support
7042
_LT_TAGVAR(ld_shlibs, $1)=no
7048
# FIXME: insert proper C++ library support
7049
_LT_TAGVAR(ld_shlibs, $1)=no
7053
# FIXME: insert proper C++ library support
7054
_LT_TAGVAR(ld_shlibs, $1)=no
7058
AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
7059
test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
7061
_LT_TAGVAR(GCC, $1)="$GXX"
7062
_LT_TAGVAR(LD, $1)="$LD"
7065
## There is no encapsulation within the following macros, do not change
7066
## the running order or otherwise move them around unless you know exactly
7067
## what you are doing...
7068
_LT_SYS_HIDDEN_LIBDEPS($1)
7069
_LT_COMPILER_PIC($1)
7070
_LT_COMPILER_C_O($1)
7071
_LT_COMPILER_FILE_LOCKS($1)
7072
_LT_LINKER_SHLIBS($1)
7073
_LT_SYS_DYNAMIC_LINKER($1)
7074
_LT_LINKER_HARDCODE_LIBPATH($1)
7077
fi # test -n "$compiler"
7083
with_gnu_ld=$lt_save_with_gnu_ld
7084
lt_cv_path_LDCXX=$lt_cv_path_LD
7085
lt_cv_path_LD=$lt_save_path_LD
7086
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
7087
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
7088
fi # test "$_lt_caught_CXX_error" != yes
7091
])# _LT_LANG_CXX_CONFIG
7094
# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
7285
7095
# ---------------------------------
7286
AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
7290
AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
7291
AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
7292
AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
7293
AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
7294
AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
7295
AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
7296
AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
7298
# This is just to silence aclocal about the macro not being used
7299
ifelse([AC_DISABLE_FAST_INSTALL])
7301
AC_DEFUN([LT_AC_PROG_GCJ],
7302
[AC_CHECK_TOOL(GCJ, gcj, no)
7303
test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
7307
AC_DEFUN([LT_AC_PROG_RC],
7308
[AC_CHECK_TOOL(RC, windres, no)
7312
# Cheap backport of AS_EXECUTABLE_P and required macros
7313
# from Autoconf 2.59; we should not use $as_executable_p directly.
7317
m4_ifndef([_AS_TEST_PREPARE],
7318
[m4_defun([_AS_TEST_PREPARE],
7319
[if test -x / >/dev/null 2>&1; then
7320
as_executable_p='test -x'
7096
# Figure out "hidden" library dependencies from verbose
7097
# compiler output when linking a shared library.
7098
# Parse the compiler output and extract the necessary
7099
# objects, libraries and library flags.
7100
m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
7101
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
7102
# Dependencies to place before and after the object being linked:
7103
_LT_TAGVAR(predep_objects, $1)=
7104
_LT_TAGVAR(postdep_objects, $1)=
7105
_LT_TAGVAR(predeps, $1)=
7106
_LT_TAGVAR(postdeps, $1)=
7107
_LT_TAGVAR(compiler_lib_search_path, $1)=
7109
dnl we can't use the lt_simple_compile_test_code here,
7110
dnl because it contains code intended for an executable,
7111
dnl not a library. It's possible we should let each
7112
dnl tag define a new lt_????_link_test_code variable,
7113
dnl but it's only used here...
7114
m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
7116
void foo (void) { a = 0; }
7118
], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
7122
Foo (void) { a = 0; }
7127
], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
7135
], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
7143
], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
7146
public void bar (void) {
7152
dnl Parse the compiler output and extract the necessary
7153
dnl objects, libraries and library flags.
7154
if AC_TRY_EVAL(ac_compile); then
7155
# Parse the compiler output and extract the necessary
7156
# objects, libraries and library flags.
7158
# Sentinel used to keep track of whether or not we are before
7159
# the conftest object file.
7160
pre_test_object_deps_done=no
7162
for p in `eval "$output_verbose_link_cmd"`; do
7166
# Some compilers place space between "-{L,R}" and the path.
7168
if test $p = "-L" ||
7169
test $p = "-R"; then
7176
if test "$pre_test_object_deps_done" = no; then
7179
# Internal compiler library paths should come after those
7180
# provided the user. The postdeps already come after the
7181
# user supplied libs so there is no need to process them.
7182
if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
7183
_LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
7185
_LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
7188
# The "-l" case would never come before the object being
7189
# linked, so don't bother handling this case.
7192
if test -z "$_LT_TAGVAR(postdeps, $1)"; then
7193
_LT_TAGVAR(postdeps, $1)="${prev}${p}"
7195
_LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
7201
# This assumes that the test object file only shows up
7202
# once in the compiler output.
7203
if test "$p" = "conftest.$objext"; then
7204
pre_test_object_deps_done=yes
7208
if test "$pre_test_object_deps_done" = no; then
7209
if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
7210
_LT_TAGVAR(predep_objects, $1)="$p"
7212
_LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
7215
if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
7216
_LT_TAGVAR(postdep_objects, $1)="$p"
7218
_LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
7223
*) ;; # Ignore the rest.
7322
as_executable_p='test -f'
7324
])])# _AS_TEST_PREPARE
7328
# Check whether a file is executable.
7329
m4_ifndef([AS_EXECUTABLE_P],
7330
[m4_defun([AS_EXECUTABLE_P],
7331
[AS_REQUIRE([_AS_TEST_PREPARE])dnl
7332
$as_executable_p $1[]dnl
7333
])])# AS_EXECUTABLE_P
7231
echo "libtool.m4: error: problem compiling $1 test program"
7234
$RM -f confest.$objext
7236
# PORTME: override above test on systems where it is broken
7240
# Interix 3.5 installs completely hosed .la files for C++, so rather than
7241
# hack all around it, let's just trust "g++" to DTRT.
7242
_LT_TAGVAR(predep_objects,$1)=
7243
_LT_TAGVAR(postdep_objects,$1)=
7244
_LT_TAGVAR(postdeps,$1)=
7248
case `$CC -V 2>&1 | sed 5q` in
7252
# The more standards-conforming stlport4 library is
7253
# incompatible with the Cstd library. Avoid specifying
7254
# it if it's in CXXFLAGS. Ignore libCrun as
7255
# -library=stlport4 depends on it.
7256
case " $CXX $CXXFLAGS " in
7257
*" -library=stlport4 "*)
7258
solaris_use_stlport4=yes
7262
if test "$solaris_use_stlport4" != yes; then
7263
_LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7270
case $cc_basename in
7272
# The more standards-conforming stlport4 library is
7273
# incompatible with the Cstd library. Avoid specifying
7274
# it if it's in CXXFLAGS. Ignore libCrun as
7275
# -library=stlport4 depends on it.
7276
case " $CXX $CXXFLAGS " in
7277
*" -library=stlport4 "*)
7278
solaris_use_stlport4=yes
7282
# Adding this requires a known-good setup of shared libraries for
7283
# Sun compiler versions before 5.6, else PIC objects from an old
7284
# archive will be linked into the output, leading to subtle bugs.
7285
if test "$solaris_use_stlport4" != yes; then
7286
_LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7294
case " $_LT_TAGVAR(postdeps, $1) " in
7295
*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
7297
_LT_TAGVAR(compiler_lib_search_dirs, $1)=
7298
if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
7299
_LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
7301
_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
7302
[The directories searched by this compiler when creating a shared library])
7303
_LT_TAGDECL([], [predep_objects], [1],
7304
[Dependencies to place before and after the objects being linked to
7305
create a shared library])
7306
_LT_TAGDECL([], [postdep_objects], [1])
7307
_LT_TAGDECL([], [predeps], [1])
7308
_LT_TAGDECL([], [postdeps], [1])
7309
_LT_TAGDECL([], [compiler_lib_search_path], [1],
7310
[The library search path used internally by the compiler when linking
7312
])# _LT_SYS_HIDDEN_LIBDEPS
7317
# Since AC_PROG_F77 is broken, in that it returns the empty string
7318
# if there is no fortran compiler, we have our own version here.
7319
m4_defun([_LT_PROG_F77],
7321
pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
7323
if test -z "$F77" || test "X$F77" = "Xno"; then
7326
popdef([AC_MSG_ERROR])
7329
dnl aclocal-1.4 backwards compatibility:
7330
dnl AC_DEFUN([_LT_PROG_F77], [])
7333
# _LT_LANG_F77_CONFIG([TAG])
7334
# --------------------------
7335
# Ensure that the configuration variables for a Fortran 77 compiler are
7336
# suitably defined. These variables are subsequently used by _LT_CONFIG
7337
# to write the compiler configuration to `libtool'.
7338
m4_defun([_LT_LANG_F77_CONFIG],
7339
[AC_REQUIRE([_LT_PROG_F77])dnl
7340
AC_LANG_PUSH(Fortran 77)
7342
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7343
_LT_TAGVAR(allow_undefined_flag, $1)=
7344
_LT_TAGVAR(always_export_symbols, $1)=no
7345
_LT_TAGVAR(archive_expsym_cmds, $1)=
7346
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
7347
_LT_TAGVAR(hardcode_direct, $1)=no
7348
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
7349
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7350
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7351
_LT_TAGVAR(hardcode_libdir_separator, $1)=
7352
_LT_TAGVAR(hardcode_minus_L, $1)=no
7353
_LT_TAGVAR(hardcode_automatic, $1)=no
7354
_LT_TAGVAR(inherit_rpath, $1)=no
7355
_LT_TAGVAR(module_cmds, $1)=
7356
_LT_TAGVAR(module_expsym_cmds, $1)=
7357
_LT_TAGVAR(link_all_deplibs, $1)=unknown
7358
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7359
_LT_TAGVAR(no_undefined_flag, $1)=
7360
_LT_TAGVAR(whole_archive_flag_spec, $1)=
7361
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7363
# Source file extension for f77 test sources.
7366
# Object file extension for compiled f77 test sources.
7368
_LT_TAGVAR(objext, $1)=$objext
7370
# No sense in running all these tests if we already determined that
7371
# the F77 compiler isn't working. Some variables (like enable_shared)
7372
# are currently assumed to apply to all compilers on this platform,
7373
# and will be corrupted by setting them based on a non-working compiler.
7374
if test "$_lt_disable_F77" != yes; then
7375
# Code to be used in simple compile tests
7376
lt_simple_compile_test_code="\
7382
# Code to be used in simple link tests
7383
lt_simple_link_test_code="\
7388
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7391
# save warnings/boilerplate of simple test code
7392
_LT_COMPILER_BOILERPLATE
7393
_LT_LINKER_BOILERPLATE
7395
# Allow CC to be a program name with arguments.
7400
_LT_TAGVAR(compiler, $1)=$CC
7401
_LT_CC_BASENAME([$compiler])
7403
if test -n "$compiler"; then
7404
AC_MSG_CHECKING([if libtool supports shared libraries])
7405
AC_MSG_RESULT([$can_build_shared])
7407
AC_MSG_CHECKING([whether to build shared libraries])
7408
test "$can_build_shared" = "no" && enable_shared=no
7410
# On AIX, shared libraries and static libraries use the same namespace, and
7411
# are all built from PIC.
7414
test "$enable_shared" = yes && enable_static=no
7415
if test -n "$RANLIB"; then
7416
archive_cmds="$archive_cmds~\$RANLIB \$lib"
7417
postinstall_cmds='$RANLIB $lib'
7421
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7422
test "$enable_shared" = yes && enable_static=no
7426
AC_MSG_RESULT([$enable_shared])
7428
AC_MSG_CHECKING([whether to build static libraries])
7429
# Make sure either enable_shared or enable_static is yes.
7430
test "$enable_shared" = yes || enable_static=yes
7431
AC_MSG_RESULT([$enable_static])
7433
_LT_TAGVAR(GCC, $1)="$G77"
7434
_LT_TAGVAR(LD, $1)="$LD"
7437
## There is no encapsulation within the following macros, do not change
7438
## the running order or otherwise move them around unless you know exactly
7439
## what you are doing...
7440
_LT_COMPILER_PIC($1)
7441
_LT_COMPILER_C_O($1)
7442
_LT_COMPILER_FILE_LOCKS($1)
7443
_LT_LINKER_SHLIBS($1)
7444
_LT_SYS_DYNAMIC_LINKER($1)
7445
_LT_LINKER_HARDCODE_LIBPATH($1)
7448
fi # test -n "$compiler"
7452
fi # test "$_lt_disable_F77" != yes
7455
])# _LT_LANG_F77_CONFIG
7460
# Since AC_PROG_FC is broken, in that it returns the empty string
7461
# if there is no fortran compiler, we have our own version here.
7462
m4_defun([_LT_PROG_FC],
7464
pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
7466
if test -z "$FC" || test "X$FC" = "Xno"; then
7469
popdef([AC_MSG_ERROR])
7472
dnl aclocal-1.4 backwards compatibility:
7473
dnl AC_DEFUN([_LT_PROG_FC], [])
7476
# _LT_LANG_FC_CONFIG([TAG])
7477
# -------------------------
7478
# Ensure that the configuration variables for a Fortran compiler are
7479
# suitably defined. These variables are subsequently used by _LT_CONFIG
7480
# to write the compiler configuration to `libtool'.
7481
m4_defun([_LT_LANG_FC_CONFIG],
7482
[AC_REQUIRE([_LT_PROG_FC])dnl
7483
AC_LANG_PUSH(Fortran)
7485
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7486
_LT_TAGVAR(allow_undefined_flag, $1)=
7487
_LT_TAGVAR(always_export_symbols, $1)=no
7488
_LT_TAGVAR(archive_expsym_cmds, $1)=
7489
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
7490
_LT_TAGVAR(hardcode_direct, $1)=no
7491
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
7492
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7493
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7494
_LT_TAGVAR(hardcode_libdir_separator, $1)=
7495
_LT_TAGVAR(hardcode_minus_L, $1)=no
7496
_LT_TAGVAR(hardcode_automatic, $1)=no
7497
_LT_TAGVAR(inherit_rpath, $1)=no
7498
_LT_TAGVAR(module_cmds, $1)=
7499
_LT_TAGVAR(module_expsym_cmds, $1)=
7500
_LT_TAGVAR(link_all_deplibs, $1)=unknown
7501
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7502
_LT_TAGVAR(no_undefined_flag, $1)=
7503
_LT_TAGVAR(whole_archive_flag_spec, $1)=
7504
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7506
# Source file extension for fc test sources.
7507
ac_ext=${ac_fc_srcext-f}
7509
# Object file extension for compiled fc test sources.
7511
_LT_TAGVAR(objext, $1)=$objext
7513
# No sense in running all these tests if we already determined that
7514
# the FC compiler isn't working. Some variables (like enable_shared)
7515
# are currently assumed to apply to all compilers on this platform,
7516
# and will be corrupted by setting them based on a non-working compiler.
7517
if test "$_lt_disable_FC" != yes; then
7518
# Code to be used in simple compile tests
7519
lt_simple_compile_test_code="\
7525
# Code to be used in simple link tests
7526
lt_simple_link_test_code="\
7531
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7534
# save warnings/boilerplate of simple test code
7535
_LT_COMPILER_BOILERPLATE
7536
_LT_LINKER_BOILERPLATE
7538
# Allow CC to be a program name with arguments.
7543
GCC=$ac_cv_fc_compiler_gnu
7545
_LT_TAGVAR(compiler, $1)=$CC
7546
_LT_CC_BASENAME([$compiler])
7548
if test -n "$compiler"; then
7549
AC_MSG_CHECKING([if libtool supports shared libraries])
7550
AC_MSG_RESULT([$can_build_shared])
7552
AC_MSG_CHECKING([whether to build shared libraries])
7553
test "$can_build_shared" = "no" && enable_shared=no
7555
# On AIX, shared libraries and static libraries use the same namespace, and
7556
# are all built from PIC.
7559
test "$enable_shared" = yes && enable_static=no
7560
if test -n "$RANLIB"; then
7561
archive_cmds="$archive_cmds~\$RANLIB \$lib"
7562
postinstall_cmds='$RANLIB $lib'
7566
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7567
test "$enable_shared" = yes && enable_static=no
7571
AC_MSG_RESULT([$enable_shared])
7573
AC_MSG_CHECKING([whether to build static libraries])
7574
# Make sure either enable_shared or enable_static is yes.
7575
test "$enable_shared" = yes || enable_static=yes
7576
AC_MSG_RESULT([$enable_static])
7578
_LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
7579
_LT_TAGVAR(LD, $1)="$LD"
7582
## There is no encapsulation within the following macros, do not change
7583
## the running order or otherwise move them around unless you know exactly
7584
## what you are doing...
7585
_LT_SYS_HIDDEN_LIBDEPS($1)
7586
_LT_COMPILER_PIC($1)
7587
_LT_COMPILER_C_O($1)
7588
_LT_COMPILER_FILE_LOCKS($1)
7589
_LT_LINKER_SHLIBS($1)
7590
_LT_SYS_DYNAMIC_LINKER($1)
7591
_LT_LINKER_HARDCODE_LIBPATH($1)
7594
fi # test -n "$compiler"
7598
fi # test "$_lt_disable_FC" != yes
7601
])# _LT_LANG_FC_CONFIG
7604
# _LT_LANG_GCJ_CONFIG([TAG])
7605
# --------------------------
7606
# Ensure that the configuration variables for the GNU Java Compiler compiler
7607
# are suitably defined. These variables are subsequently used by _LT_CONFIG
7608
# to write the compiler configuration to `libtool'.
7609
m4_defun([_LT_LANG_GCJ_CONFIG],
7610
[AC_REQUIRE([LT_PROG_GCJ])dnl
7613
# Source file extension for Java test sources.
7616
# Object file extension for compiled Java test sources.
7618
_LT_TAGVAR(objext, $1)=$objext
7620
# Code to be used in simple compile tests
7621
lt_simple_compile_test_code="class foo {}"
7623
# Code to be used in simple link tests
7624
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
7626
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7629
# save warnings/boilerplate of simple test code
7630
_LT_COMPILER_BOILERPLATE
7631
_LT_LINKER_BOILERPLATE
7633
# Allow CC to be a program name with arguments.
7639
_LT_TAGVAR(compiler, $1)=$CC
7640
_LT_TAGVAR(LD, $1)="$LD"
7641
_LT_CC_BASENAME([$compiler])
7643
# GCJ did not exist at the time GCC didn't implicitly link libc in.
7644
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7646
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7648
if test -n "$compiler"; then
7649
_LT_COMPILER_NO_RTTI($1)
7650
_LT_COMPILER_PIC($1)
7651
_LT_COMPILER_C_O($1)
7652
_LT_COMPILER_FILE_LOCKS($1)
7653
_LT_LINKER_SHLIBS($1)
7654
_LT_LINKER_HARDCODE_LIBPATH($1)
7663
])# _LT_LANG_GCJ_CONFIG
7666
# _LT_LANG_RC_CONFIG([TAG])
7667
# -------------------------
7668
# Ensure that the configuration variables for the Windows resource compiler
7669
# are suitably defined. These variables are subsequently used by _LT_CONFIG
7670
# to write the compiler configuration to `libtool'.
7671
m4_defun([_LT_LANG_RC_CONFIG],
7672
[AC_REQUIRE([LT_PROG_RC])dnl
7675
# Source file extension for RC test sources.
7678
# Object file extension for compiled RC test sources.
7680
_LT_TAGVAR(objext, $1)=$objext
7682
# Code to be used in simple compile tests
7683
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
7685
# Code to be used in simple link tests
7686
lt_simple_link_test_code="$lt_simple_compile_test_code"
7688
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7691
# save warnings/boilerplate of simple test code
7692
_LT_COMPILER_BOILERPLATE
7693
_LT_LINKER_BOILERPLATE
7695
# Allow CC to be a program name with arguments.
7701
_LT_TAGVAR(compiler, $1)=$CC
7702
_LT_CC_BASENAME([$compiler])
7703
_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
7705
if test -n "$compiler"; then
7713
])# _LT_LANG_RC_CONFIG
7718
AC_DEFUN([LT_PROG_GCJ],
7719
[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
7720
[m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
7721
[AC_CHECK_TOOL(GCJ, gcj,)
7722
test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
7723
AC_SUBST(GCJFLAGS)])])[]dnl
7727
AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
7728
dnl aclocal-1.4 backwards compatibility:
7729
dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
7734
AC_DEFUN([LT_PROG_RC],
7735
[AC_CHECK_TOOL(RC, windres,)
7739
AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
7740
dnl aclocal-1.4 backwards compatibility:
7741
dnl AC_DEFUN([LT_AC_PROG_RC], [])
7746
# If we don't have a new enough Autoconf to choose the best grep
7747
# available, choose the one first in the user's PATH.
7748
m4_defun([_LT_DECL_EGREP],
7749
[AC_REQUIRE([AC_PROG_EGREP])dnl
7750
AC_REQUIRE([AC_PROG_FGREP])dnl
7751
test -z "$GREP" && GREP=grep
7752
_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
7753
_LT_DECL([], [EGREP], [1], [An ERE matcher])
7754
_LT_DECL([], [FGREP], [1], [A literal string matcher])
7755
dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
7762
# If we don't have a new enough Autoconf to choose the best objdump
7763
# available, choose the one first in the user's PATH.
7764
m4_defun([_LT_DECL_OBJDUMP],
7765
[AC_CHECK_TOOL(OBJDUMP, objdump, false)
7766
test -z "$OBJDUMP" && OBJDUMP=objdump
7767
_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
7774
# Check for a fully-functional sed program, that truncates
7775
# as few characters as possible. Prefer GNU sed if found.
7776
m4_defun([_LT_DECL_SED],
7778
test -z "$SED" && SED=sed
7779
Xsed="$SED -e 1s/^X//"
7780
_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
7781
_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
7782
[Sed that helps us avoid accidentally triggering echo(1) options like -n])
7785
m4_ifndef([AC_PROG_SED], [
7335
7786
# NOTE: This macro has been submitted for inclusion into #
7336
7787
# GNU Autoconf as AC_PROG_SED. When it is available in #
7337
7788
# a released version of Autoconf we should remove this #
7338
7789
# macro and use it instead. #
7341
# Check for a fully-functional sed program, that truncates
7342
# as few characters as possible. Prefer GNU sed if found.
7343
AC_DEFUN([LT_AC_PROG_SED],
7791
m4_defun([AC_PROG_SED],
7344
7792
[AC_MSG_CHECKING([for a sed that does not truncate output])
7345
7793
AC_CACHE_VAL(lt_cv_path_SED,
7346
7794
[# Loop through the user's path and test for sed and gsed.
7393
7841
SED=$lt_cv_path_SED
7394
7842
AC_SUBST([SED])
7395
7843
AC_MSG_RESULT([$SED])
7848
AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
7849
dnl aclocal-1.4 backwards compatibility:
7850
dnl AC_DEFUN([LT_AC_PROG_SED], [])
7853
# _LT_CHECK_SHELL_FEATURES
7854
# ------------------------
7855
# Find out whether the shell is Bourne or XSI compatible,
7856
# or has some other useful features.
7857
m4_defun([_LT_CHECK_SHELL_FEATURES],
7858
[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
7859
# Try some XSI features
7862
test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7864
&& eval 'test $(( 1 + 1 )) -eq 2 \
7865
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7867
AC_MSG_RESULT([$xsi_shell])
7868
_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
7870
AC_MSG_CHECKING([whether the shell understands "+="])
7872
( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
7874
&& lt_shell_append=yes
7875
AC_MSG_RESULT([$lt_shell_append])
7876
_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
7878
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7883
_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
7885
# test EBCDIC or ASCII
7886
case `echo X|tr X '\101'` in
7887
A) # ASCII based system
7888
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7889
lt_SP2NL='tr \040 \012'
7890
lt_NL2SP='tr \015\012 \040\040'
7892
*) # EBCDIC based system
7893
lt_SP2NL='tr \100 \n'
7894
lt_NL2SP='tr \r\n \100\100'
7897
_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
7898
_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
7899
])# _LT_CHECK_SHELL_FEATURES
7902
# _LT_PROG_XSI_SHELLFNS
7903
# ---------------------
7904
# Bourne and XSI compatible variants of some useful shell functions.
7905
m4_defun([_LT_PROG_XSI_SHELLFNS],
7908
cat << \_LT_EOF >> "$cfgfile"
7910
# func_dirname file append nondir_replacement
7911
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
7912
# otherwise set result to NONDIR_REPLACEMENT.
7916
*/*) func_dirname_result="${1%/*}${2}" ;;
7917
* ) func_dirname_result="${3}" ;;
7921
# func_basename file
7924
func_basename_result="${1##*/}"
7927
# func_dirname_and_basename file append nondir_replacement
7928
# perform func_basename and func_dirname in a single function
7930
# dirname: Compute the dirname of FILE. If nonempty,
7931
# add APPEND to the result, otherwise set result
7932
# to NONDIR_REPLACEMENT.
7933
# value returned in "$func_dirname_result"
7934
# basename: Compute filename of FILE.
7935
# value retuned in "$func_basename_result"
7936
# Implementation must be kept synchronized with func_dirname
7937
# and func_basename. For efficiency, we do not delegate to
7938
# those functions but instead duplicate the functionality here.
7939
func_dirname_and_basename ()
7942
*/*) func_dirname_result="${1%/*}${2}" ;;
7943
* ) func_dirname_result="${3}" ;;
7945
func_basename_result="${1##*/}"
7948
# func_stripname prefix suffix name
7949
# strip PREFIX and SUFFIX off of NAME.
7950
# PREFIX and SUFFIX must not contain globbing or regex special
7951
# characters, hashes, percent signs, but SUFFIX may contain a leading
7952
# dot (in which case that matches only a dot).
7955
# pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7956
# positional parameters, so assign one to ordinary parameter first.
7957
func_stripname_result=${3}
7958
func_stripname_result=${func_stripname_result#"${1}"}
7959
func_stripname_result=${func_stripname_result%"${2}"}
7965
func_opt_split_opt=${1%%=*}
7966
func_opt_split_arg=${1#*=}
7973
*.lo) func_lo2o_result=${1%.lo}.${objext} ;;
7974
*) func_lo2o_result=${1} ;;
7978
# func_xform libobj-or-source
7981
func_xform_result=${1%.*}.lo
7984
# func_arith arithmetic-term...
7987
func_arith_result=$(( $[*] ))
7991
# STRING may not start with a hyphen.
7994
func_len_result=${#1}
7999
*) # Bourne compatible functions.
8000
cat << \_LT_EOF >> "$cfgfile"
8002
# func_dirname file append nondir_replacement
8003
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
8004
# otherwise set result to NONDIR_REPLACEMENT.
8007
# Extract subdirectory from the argument.
8008
func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
8009
if test "X$func_dirname_result" = "X${1}"; then
8010
func_dirname_result="${3}"
8012
func_dirname_result="$func_dirname_result${2}"
8016
# func_basename file
8019
func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
8022
dnl func_dirname_and_basename
8023
dnl A portable version of this function is already defined in general.m4sh
8024
dnl so there is no need for it here.
8026
# func_stripname prefix suffix name
8027
# strip PREFIX and SUFFIX off of NAME.
8028
# PREFIX and SUFFIX must not contain globbing or regex special
8029
# characters, hashes, percent signs, but SUFFIX may contain a leading
8030
# dot (in which case that matches only a dot).
8031
# func_strip_suffix prefix name
8035
.*) func_stripname_result=`$ECHO "X${3}" \
8036
| $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
8037
*) func_stripname_result=`$ECHO "X${3}" \
8038
| $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
8043
my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
8044
my_sed_long_arg='1s/^-[[^=]]*=//'
8049
func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
8050
func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
8056
func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
8059
# func_xform libobj-or-source
8062
func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
8065
# func_arith arithmetic-term...
8068
func_arith_result=`expr "$[@]"`
8072
# STRING may not start with a hyphen.
8075
func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
8081
case $lt_shell_append in
8083
cat << \_LT_EOF >> "$cfgfile"
8085
# func_append var value
8086
# Append VALUE to the end of shell variable VAR.
8094
cat << \_LT_EOF >> "$cfgfile"
8096
# func_append var value
8097
# Append VALUE to the end of shell variable VAR.
8100
eval "$[1]=\$$[1]\$[2]"
8108
# Helper functions for option handling. -*- Autoconf -*-
8110
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
8111
# Written by Gary V. Vaughan, 2004
8113
# This file is free software; the Free Software Foundation gives
8114
# unlimited permission to copy and/or distribute it, with or without
8115
# modifications, as long as this notice is preserved.
8117
# serial 6 ltoptions.m4
8119
# This is to help aclocal find these macros, as it can't see m4_define.
8120
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
8123
# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
8124
# ------------------------------------------
8125
m4_define([_LT_MANGLE_OPTION],
8126
[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
8129
# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
8130
# ---------------------------------------
8131
# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
8132
# matching handler defined, dispatch to it. Other OPTION-NAMEs are
8134
m4_define([_LT_SET_OPTION],
8135
[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
8136
m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
8137
_LT_MANGLE_DEFUN([$1], [$2]),
8138
[m4_warning([Unknown $1 option `$2'])])[]dnl
8142
# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
8143
# ------------------------------------------------------------
8144
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
8145
m4_define([_LT_IF_OPTION],
8146
[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
8149
# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
8150
# -------------------------------------------------------
8151
# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
8153
m4_define([_LT_UNLESS_OPTIONS],
8154
[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
8155
[m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
8156
[m4_define([$0_found])])])[]dnl
8157
m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
8162
# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
8163
# ----------------------------------------
8164
# OPTION-LIST is a space-separated list of Libtool options associated
8165
# with MACRO-NAME. If any OPTION has a matching handler declared with
8166
# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
8167
# the unknown option and exit.
8168
m4_defun([_LT_SET_OPTIONS],
8170
m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
8171
[_LT_SET_OPTION([$1], _LT_Option)])
8173
m4_if([$1],[LT_INIT],[
8175
dnl Simply set some default values (i.e off) if boolean options were not
8177
_LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
8179
_LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
8182
dnl If no reference was made to various pairs of opposing options, then
8183
dnl we run the default mode handler for the pair. For example, if neither
8184
dnl `shared' nor `disable-shared' was passed, we enable building of shared
8185
dnl archives by default:
8186
_LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
8187
_LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
8188
_LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
8189
_LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
8190
[_LT_ENABLE_FAST_INSTALL])
8196
# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
8197
# -----------------------------------------
8198
m4_define([_LT_MANGLE_DEFUN],
8199
[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
8202
# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
8203
# -----------------------------------------------
8204
m4_define([LT_OPTION_DEFINE],
8205
[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
8206
])# LT_OPTION_DEFINE
8211
LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
8214
AU_DEFUN([AC_LIBTOOL_DLOPEN],
8215
[_LT_SET_OPTION([LT_INIT], [dlopen])
8216
AC_DIAGNOSE([obsolete],
8217
[$0: Remove this warning and the call to _LT_SET_OPTION when you
8218
put the `dlopen' option into LT_INIT's first parameter.])
8221
dnl aclocal-1.4 backwards compatibility:
8222
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
8227
# Declare package support for building win32 dll's.
8228
LT_OPTION_DEFINE([LT_INIT], [win32-dll],
8229
[enable_win32_dll=yes
8232
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
8233
AC_CHECK_TOOL(AS, as, false)
8234
AC_CHECK_TOOL(DLLTOOL, dlltool, false)
8235
AC_CHECK_TOOL(OBJDUMP, objdump, false)
8239
test -z "$AS" && AS=as
8240
_LT_DECL([], [AS], [0], [Assembler program])dnl
8242
test -z "$DLLTOOL" && DLLTOOL=dlltool
8243
_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
8245
test -z "$OBJDUMP" && OBJDUMP=objdump
8246
_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
8249
AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
8250
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
8251
_LT_SET_OPTION([LT_INIT], [win32-dll])
8252
AC_DIAGNOSE([obsolete],
8253
[$0: Remove this warning and the call to _LT_SET_OPTION when you
8254
put the `win32-dll' option into LT_INIT's first parameter.])
8257
dnl aclocal-1.4 backwards compatibility:
8258
dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
8261
# _LT_ENABLE_SHARED([DEFAULT])
8262
# ----------------------------
8263
# implement the --enable-shared flag, and supports the `shared' and
8264
# `disable-shared' LT_INIT options.
8265
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
8266
m4_define([_LT_ENABLE_SHARED],
8267
[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
8268
AC_ARG_ENABLE([shared],
8269
[AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
8270
[build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
8271
[p=${PACKAGE-default}
8273
yes) enable_shared=yes ;;
8274
no) enable_shared=no ;;
8277
# Look at the argument we got. We use all the common list separators.
8278
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8279
for pkg in $enableval; do
8281
if test "X$pkg" = "X$p"; then
8288
[enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
8290
_LT_DECL([build_libtool_libs], [enable_shared], [0],
8291
[Whether or not to build shared libraries])
8292
])# _LT_ENABLE_SHARED
8294
LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
8295
LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
8298
AC_DEFUN([AC_ENABLE_SHARED],
8299
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
8302
AC_DEFUN([AC_DISABLE_SHARED],
8303
[_LT_SET_OPTION([LT_INIT], [disable-shared])
8306
AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
8307
AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
8309
dnl aclocal-1.4 backwards compatibility:
8310
dnl AC_DEFUN([AM_ENABLE_SHARED], [])
8311
dnl AC_DEFUN([AM_DISABLE_SHARED], [])
8315
# _LT_ENABLE_STATIC([DEFAULT])
8316
# ----------------------------
8317
# implement the --enable-static flag, and support the `static' and
8318
# `disable-static' LT_INIT options.
8319
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
8320
m4_define([_LT_ENABLE_STATIC],
8321
[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
8322
AC_ARG_ENABLE([static],
8323
[AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
8324
[build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
8325
[p=${PACKAGE-default}
8327
yes) enable_static=yes ;;
8328
no) enable_static=no ;;
8331
# Look at the argument we got. We use all the common list separators.
8332
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8333
for pkg in $enableval; do
8335
if test "X$pkg" = "X$p"; then
8342
[enable_static=]_LT_ENABLE_STATIC_DEFAULT)
8344
_LT_DECL([build_old_libs], [enable_static], [0],
8345
[Whether or not to build static libraries])
8346
])# _LT_ENABLE_STATIC
8348
LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
8349
LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
8352
AC_DEFUN([AC_ENABLE_STATIC],
8353
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
8356
AC_DEFUN([AC_DISABLE_STATIC],
8357
[_LT_SET_OPTION([LT_INIT], [disable-static])
8360
AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
8361
AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
8363
dnl aclocal-1.4 backwards compatibility:
8364
dnl AC_DEFUN([AM_ENABLE_STATIC], [])
8365
dnl AC_DEFUN([AM_DISABLE_STATIC], [])
8369
# _LT_ENABLE_FAST_INSTALL([DEFAULT])
8370
# ----------------------------------
8371
# implement the --enable-fast-install flag, and support the `fast-install'
8372
# and `disable-fast-install' LT_INIT options.
8373
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
8374
m4_define([_LT_ENABLE_FAST_INSTALL],
8375
[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
8376
AC_ARG_ENABLE([fast-install],
8377
[AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
8378
[optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
8379
[p=${PACKAGE-default}
8381
yes) enable_fast_install=yes ;;
8382
no) enable_fast_install=no ;;
8384
enable_fast_install=no
8385
# Look at the argument we got. We use all the common list separators.
8386
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8387
for pkg in $enableval; do
8389
if test "X$pkg" = "X$p"; then
8390
enable_fast_install=yes
8396
[enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
8398
_LT_DECL([fast_install], [enable_fast_install], [0],
8399
[Whether or not to optimize for fast installation])dnl
8400
])# _LT_ENABLE_FAST_INSTALL
8402
LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
8403
LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
8406
AU_DEFUN([AC_ENABLE_FAST_INSTALL],
8407
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
8408
AC_DIAGNOSE([obsolete],
8409
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
8410
the `fast-install' option into LT_INIT's first parameter.])
8413
AU_DEFUN([AC_DISABLE_FAST_INSTALL],
8414
[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
8415
AC_DIAGNOSE([obsolete],
8416
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
8417
the `disable-fast-install' option into LT_INIT's first parameter.])
8420
dnl aclocal-1.4 backwards compatibility:
8421
dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
8422
dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
8425
# _LT_WITH_PIC([MODE])
8426
# --------------------
8427
# implement the --with-pic flag, and support the `pic-only' and `no-pic'
8429
# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
8430
m4_define([_LT_WITH_PIC],
8432
[AS_HELP_STRING([--with-pic],
8433
[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
8434
[pic_mode="$withval"],
8437
test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
8439
_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
8442
LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
8443
LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
8446
AU_DEFUN([AC_LIBTOOL_PICMODE],
8447
[_LT_SET_OPTION([LT_INIT], [pic-only])
8448
AC_DIAGNOSE([obsolete],
8449
[$0: Remove this warning and the call to _LT_SET_OPTION when you
8450
put the `pic-only' option into LT_INIT's first parameter.])
8453
dnl aclocal-1.4 backwards compatibility:
8454
dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
8457
m4_define([_LTDL_MODE], [])
8458
LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
8459
[m4_define([_LTDL_MODE], [nonrecursive])])
8460
LT_OPTION_DEFINE([LTDL_INIT], [recursive],
8461
[m4_define([_LTDL_MODE], [recursive])])
8462
LT_OPTION_DEFINE([LTDL_INIT], [subproject],
8463
[m4_define([_LTDL_MODE], [subproject])])
8465
m4_define([_LTDL_TYPE], [])
8466
LT_OPTION_DEFINE([LTDL_INIT], [installable],
8467
[m4_define([_LTDL_TYPE], [installable])])
8468
LT_OPTION_DEFINE([LTDL_INIT], [convenience],
8469
[m4_define([_LTDL_TYPE], [convenience])])
8471
# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
8473
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
8474
# Written by Gary V. Vaughan, 2004
8476
# This file is free software; the Free Software Foundation gives
8477
# unlimited permission to copy and/or distribute it, with or without
8478
# modifications, as long as this notice is preserved.
8480
# serial 6 ltsugar.m4
8482
# This is to help aclocal find these macros, as it can't see m4_define.
8483
AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
8486
# lt_join(SEP, ARG1, [ARG2...])
8487
# -----------------------------
8488
# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
8489
# associated separator.
8490
# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
8491
# versions in m4sugar had bugs.
8492
m4_define([lt_join],
8493
[m4_if([$#], [1], [],
8495
[m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
8496
m4_define([_lt_join],
8497
[m4_if([$#$2], [2], [],
8498
[m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
8504
# Manipulate m4 lists.
8505
# These macros are necessary as long as will still need to support
8506
# Autoconf-2.59 which quotes differently.
8507
m4_define([lt_car], [[$1]])
8509
[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
8511
[m4_dquote(m4_shift($@))])])
8512
m4_define([lt_unquote], $1)
8515
# lt_append(MACRO-NAME, STRING, [SEPARATOR])
8516
# ------------------------------------------
8517
# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
8518
# Note that neither SEPARATOR nor STRING are expanded; they are appended
8519
# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
8520
# No SEPARATOR is output if MACRO-NAME was previously undefined (different
8521
# than defined and empty).
8523
# This macro is needed until we can rely on Autoconf 2.62, since earlier
8524
# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
8525
m4_define([lt_append],
8527
m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
8531
# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
8532
# ----------------------------------------------------------
8533
# Produce a SEP delimited list of all paired combinations of elements of
8534
# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
8535
# has the form PREFIXmINFIXSUFFIXn.
8536
# Needed until we can rely on m4_combine added in Autoconf 2.62.
8537
m4_define([lt_combine],
8538
[m4_if(m4_eval([$# > 3]), [1],
8539
[m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
8540
[[m4_foreach([_Lt_prefix], [$2],
8541
[m4_foreach([_Lt_suffix],
8542
]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
8543
[_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
8546
# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
8547
# -----------------------------------------------------------------------
8548
# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
8549
# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
8550
m4_define([lt_if_append_uniq],
8552
[m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
8553
[lt_append([$1], [$2], [$3])$4],
8555
[lt_append([$1], [$2], [$3])$4])])
8558
# lt_dict_add(DICT, KEY, VALUE)
8559
# -----------------------------
8560
m4_define([lt_dict_add],
8561
[m4_define([$1($2)], [$3])])
8564
# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
8565
# --------------------------------------------
8566
m4_define([lt_dict_add_subkey],
8567
[m4_define([$1($2:$3)], [$4])])
8570
# lt_dict_fetch(DICT, KEY, [SUBKEY])
8571
# ----------------------------------
8572
m4_define([lt_dict_fetch],
8574
m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
8575
m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
8578
# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
8579
# -----------------------------------------------------------------
8580
m4_define([lt_if_dict_fetch],
8581
[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
8586
# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
8587
# --------------------------------------------------------------
8588
m4_define([lt_dict_filter],
8589
[m4_if([$5], [], [],
8590
[lt_join(m4_quote(m4_default([$4], [[, ]])),
8591
lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
8592
[lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
8595
# ltversion.m4 -- version numbers -*- Autoconf -*-
8597
# Copyright (C) 2004 Free Software Foundation, Inc.
8598
# Written by Scott James Remnant, 2004
8600
# This file is free software; the Free Software Foundation gives
8601
# unlimited permission to copy and/or distribute it, with or without
8602
# modifications, as long as this notice is preserved.
8604
# Generated from ltversion.in.
8606
# serial 3012 ltversion.m4
8607
# This file is part of GNU Libtool
8609
m4_define([LT_PACKAGE_VERSION], [2.2.6])
8610
m4_define([LT_PACKAGE_REVISION], [1.3012])
8612
AC_DEFUN([LTVERSION_VERSION],
8613
[macro_version='2.2.6'
8614
macro_revision='1.3012'
8615
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
8616
_LT_DECL(, macro_revision, 0)
8619
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
8621
# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
8622
# Written by Scott James Remnant, 2004.
8624
# This file is free software; the Free Software Foundation gives
8625
# unlimited permission to copy and/or distribute it, with or without
8626
# modifications, as long as this notice is preserved.
8628
# serial 4 lt~obsolete.m4
8630
# These exist entirely to fool aclocal when bootstrapping libtool.
8632
# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
8633
# which have later been changed to m4_define as they aren't part of the
8634
# exported API, or moved to Autoconf or Automake where they belong.
8636
# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
8637
# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
8638
# using a macro with the same name in our local m4/libtool.m4 it'll
8639
# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
8640
# and doesn't know about Autoconf macros at all.)
8642
# So we provide this file, which has a silly filename so it's always
8643
# included after everything else. This provides aclocal with the
8644
# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
8645
# because those macros already exist, or will be overwritten later.
8646
# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
8648
# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
8649
# Yes, that means every name once taken will need to remain here until
8650
# we give up compatibility with versions before 1.7, at which point
8651
# we need to keep only those names which we still refer to.
8653
# This is to help aclocal find these macros, as it can't see m4_define.
8654
AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
8656
m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
8657
m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
8658
m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
8659
m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
8660
m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
8661
m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
8662
m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
8663
m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
8664
m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
8665
m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
8666
m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
8667
m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
8668
m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
8669
m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
8670
m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
8671
m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
8672
m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
8673
m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
8674
m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
8675
m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
8676
m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
8677
m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
8678
m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
8679
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
8680
m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
8681
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
8682
m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
8683
m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
8684
m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
8685
m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
8686
m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
8687
m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
8688
m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
8689
m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
8690
m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
8691
m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
8692
m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
8693
m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
8694
m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
8695
m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
8696
m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
8697
m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
8698
m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
8699
m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
8700
m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
8701
m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
8702
m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
8703
m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
8704
m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
8705
m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
8706
m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
8707
m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
8708
m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
8709
m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
8710
m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
8712
# nls.m4 serial 3 (gettext-0.15)
8713
dnl Copyright (C) 1995-2003, 2005-2006 Free Software Foundation, Inc.
8714
dnl This file is free software; the Free Software Foundation
8715
dnl gives unlimited permission to copy and/or distribute it,
8716
dnl with or without modifications, as long as this notice is preserved.
8718
dnl This file can can be used in projects which are not available under
8719
dnl the GNU General Public License or the GNU Library General Public
8720
dnl License but which still want to provide support for the GNU gettext
8722
dnl Please note that the actual code of the GNU gettext library is covered
8723
dnl by the GNU Library General Public License, and the rest of the GNU
8724
dnl gettext package package is covered by the GNU General Public License.
8725
dnl They are *not* in the public domain.
8728
dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
8729
dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
8735
AC_MSG_CHECKING([whether NLS is requested])
8736
dnl Default is enabled NLS
8738
[ --disable-nls do not use Native Language Support],
8739
USE_NLS=$enableval, USE_NLS=yes)
8740
AC_MSG_RESULT($USE_NLS)
7398
8744
# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-