872
816
# Sed substitution that helps us do robust quoting. It backslashifies
873
817
# metacharacters that are still active within double-quoted strings.
874
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
818
Xsed='sed -e 1s/^X//'
819
[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
876
821
# Same as above, but do not quote variable references.
877
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
822
[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
879
824
# Sed substitution to delay expansion of an escaped shell variable in a
880
825
# double_quote_subst'ed string.
881
826
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
883
# Sed substitution to delay expansion of an escaped single quote.
884
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
886
828
# Sed substitution to avoid accidental globbing in evaled expressions
887
829
no_glob_subst='s/\*/\\\*/g'
889
834
# Global variables:
835
default_ofile=libtool
891
836
can_build_shared=yes
893
838
# All known linkers require a `.a' archive for static linking (except MSVC,
894
839
# which needs '.lib').
841
ltmain="$ac_aux_dir/ltmain.sh"
842
ofile="$default_ofile"
897
843
with_gnu_ld="$lt_cv_prog_gnu_ld"
845
AC_CHECK_TOOL(AR, ar, false)
846
AC_CHECK_TOOL(RANLIB, ranlib, :)
847
AC_CHECK_TOOL(STRIP, strip, :)
900
850
old_CFLAGS="$CFLAGS"
902
852
# Set sane defaults for various variables
853
test -z "$AR" && AR=ar
854
test -z "$AR_FLAGS" && AR_FLAGS=cru
855
test -z "$AS" && AS=as
903
856
test -z "$CC" && CC=cc
904
857
test -z "$LTCC" && LTCC=$CC
905
858
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
859
test -z "$DLLTOOL" && DLLTOOL=dlltool
906
860
test -z "$LD" && LD=ld
861
test -z "$LN_S" && LN_S="ln -s"
862
test -z "$MAGIC_CMD" && MAGIC_CMD=file
863
test -z "$NM" && NM=nm
864
test -z "$SED" && SED=sed
865
test -z "$OBJDUMP" && OBJDUMP=objdump
866
test -z "$RANLIB" && RANLIB=:
867
test -z "$STRIP" && STRIP=:
907
868
test -z "$ac_objext" && ac_objext=o
870
# Determine commands to create old-style static archives.
871
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
872
old_postinstall_cmds='chmod 644 $oldlib'
873
old_postuninstall_cmds=
875
if test -n "$RANLIB"; then
878
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
881
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
884
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
909
887
_LT_CC_BASENAME([$compiler])
911
889
# Only perform the check for file, if the check method requires it
912
test -z "$MAGIC_CMD" && MAGIC_CMD=file
913
890
case $deplibs_check_method in
915
892
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
898
_LT_REQUIRED_DARWIN_CHECKS
900
AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
901
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
902
enable_win32_dll=yes, enable_win32_dll=no)
904
AC_ARG_ENABLE([libtool-lock],
905
[AC_HELP_STRING([--disable-libtool-lock],
906
[avoid locking (might break parallel builds)])])
907
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
910
[AC_HELP_STRING([--with-pic],
911
[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
912
[pic_mode="$withval"],
914
test -z "$pic_mode" && pic_mode=default
921
916
# Use C for the default configuration in the libtool script
922
LT_SUPPORTED_TAG([CC])
924
_LT_LANG_DEFAULT_CONFIG
931
# Note that this code is called both from `configure', and `config.status'
932
# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
933
# `config.status' has no value for ac_aux_dir unless we are using Automake,
934
# so we pass a copy along to make sure it has a sensible value anyway.
935
m4_defun([_LT_PROG_LTMAIN],
936
[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
937
_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
938
ltmain="$ac_aux_dir/ltmain.sh"
943
# So that we can recreate a full libtool script including additional
944
# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
945
# in macros and then make a single call at the end using the `libtool'
949
# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
950
# ----------------------------------------
951
# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
952
m4_define([_LT_CONFIG_LIBTOOL_INIT],
954
[m4_append([_LT_OUTPUT_LIBTOOL_INIT],
959
m4_define([_LT_OUTPUT_LIBTOOL_INIT])
962
# _LT_CONFIG_LIBTOOL([COMMANDS])
963
# ------------------------------
964
# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
965
m4_define([_LT_CONFIG_LIBTOOL],
967
[m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
972
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
975
# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
976
# -----------------------------------------------------
977
m4_defun([_LT_CONFIG_SAVE_COMMANDS],
978
[_LT_CONFIG_LIBTOOL([$1])
979
_LT_CONFIG_LIBTOOL_INIT([$2])
983
# _LT_FORMAT_COMMENT([COMMENT])
984
# -----------------------------
985
# Add leading comment marks to the start of each line, and a trailing
986
# full-stop to the whole comment if one is not present already.
987
m4_define([_LT_FORMAT_COMMENT],
989
m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
990
[['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
997
# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
998
# -------------------------------------------------------------------
999
# CONFIGNAME is the name given to the value in the libtool script.
1000
# VARNAME is the (base) name used in the configure script.
1001
# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
1002
# VARNAME. Any other value will be used directly.
1003
m4_define([_LT_DECL],
1004
[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
1005
[lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
1006
[m4_ifval([$1], [$1], [$2])])
1007
lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
1009
[lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
1010
lt_dict_add_subkey([lt_decl_dict], [$2],
1011
[tagged?], [m4_ifval([$5], [yes], [no])])])
1015
# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
1016
# --------------------------------------------------------
1017
m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
1020
# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
1021
# ------------------------------------------------
1022
m4_define([lt_decl_tag_varnames],
1023
[_lt_decl_filter([tagged?], [yes], $@)])
1026
# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
1027
# ---------------------------------------------------------
1028
m4_define([_lt_decl_filter],
1030
[0], [m4_fatal([$0: too few arguments: $#])],
1031
[1], [m4_fatal([$0: too few arguments: $#: $1])],
1032
[2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
1033
[3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
1034
[lt_dict_filter([lt_decl_dict], $@)])[]dnl
1038
# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
1039
# --------------------------------------------------
1040
m4_define([lt_decl_quote_varnames],
1041
[_lt_decl_filter([value], [1], $@)])
1044
# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
1045
# ---------------------------------------------------
1046
m4_define([lt_decl_dquote_varnames],
1047
[_lt_decl_filter([value], [2], $@)])
1050
# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
1051
# ---------------------------------------------------
1052
m4_define([lt_decl_varnames_tagged],
1053
[_$0(m4_quote(m4_default([$1], [[, ]])),
1054
m4_quote(m4_if([$2], [],
1055
m4_quote(lt_decl_tag_varnames),
1056
m4_quote(m4_shift($@)))),
1057
m4_split(m4_normalize(m4_quote(_LT_TAGS))))])
1058
m4_define([_lt_decl_varnames_tagged], [lt_combine([$1], [$2], [_], $3)])
1061
# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
1062
# ------------------------------------------------
1063
m4_define([lt_decl_all_varnames],
1064
[_$0(m4_quote(m4_default([$1], [[, ]])),
1066
m4_quote(lt_decl_varnames),
1067
m4_quote(m4_shift($@))))[]dnl
1069
m4_define([_lt_decl_all_varnames],
1070
[lt_join($@, lt_decl_varnames_tagged([$1],
1071
lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
1075
# _LT_CONFIG_STATUS_DECLARE([VARNAME])
1076
# ------------------------------------
1077
# Quote a variable value, and forward it to `config.status' so that its
1078
# declaration there will have the same value as in `configure'. VARNAME
1079
# must have a single quote delimited value for this to work.
1080
m4_define([_LT_CONFIG_STATUS_DECLARE],
1081
[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
1084
# _LT_CONFIG_STATUS_DECLARATIONS
1085
# ------------------------------
1086
# We delimit libtool config variables with single quotes, so when
1087
# we write them to config.status, we have to be sure to quote all
1088
# embedded single quotes properly. In configure, this macro expands
1089
# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
1091
# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
1092
m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
1093
[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
1094
[m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
1099
# Output comment and list of tags supported by the script
1100
m4_defun([_LT_LIBTOOL_TAGS],
1101
[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
1102
available_tags="_LT_TAGS"dnl
1106
# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
1107
# -----------------------------------
1108
# Extract the dictionary values for VARNAME (optionally with TAG) and
1109
# expand to a commented shell variable setting:
1111
# # Some comment about what VAR is for.
1112
# visible_name=$lt_internal_name
1113
m4_define([_LT_LIBTOOL_DECLARE],
1114
[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
1115
[description])))[]dnl
1116
m4_pushdef([_libtool_name],
1117
m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
1118
m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
1119
[0], [_libtool_name=[$]$1],
1120
[1], [_libtool_name=$lt_[]$1],
1121
[2], [_libtool_name=$lt_[]$1],
1122
[_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
1123
m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
1127
# _LT_LIBTOOL_CONFIG_VARS
1128
# -----------------------
1129
# Produce commented declarations of non-tagged libtool config variables
1130
# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
1131
# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
1132
# section) are produced by _LT_LIBTOOL_TAG_VARS.
1133
m4_defun([_LT_LIBTOOL_CONFIG_VARS],
1134
[m4_foreach([_lt_var],
1135
m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
1136
[m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
1139
# _LT_LIBTOOL_TAG_VARS(TAG)
1140
# -------------------------
1141
m4_define([_LT_LIBTOOL_TAG_VARS],
1142
[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
1143
[m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
1146
# _LT_TAGVAR(VARNAME, [TAGNAME])
1147
# ------------------------------
1148
m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
1151
# _LT_CONFIG_COMMANDS
918
AC_LIBTOOL_LANG_C_CONFIG
923
# _LT_AC_SYS_COMPILER
1152
924
# -------------------
1153
# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
1154
# variables for single and double quote escaping we saved from calls
1155
# to _LT_DECL, we can put quote escaped variables declarations
1156
# into `config.status', and then the shell code to quote escape them in
1157
# for loops in `config.status'. Finally, any additional code accumulated
1158
# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
1159
m4_defun([_LT_CONFIG_COMMANDS],
1160
[AC_PROVIDE_IFELSE([LT_OUTPUT],
1161
dnl If the libtool generation code has been placed in $CONFIG_LT,
1162
dnl instead of duplicating it all over again into config.status,
1163
dnl then we will have config.status run $CONFIG_LT later, so it
1164
dnl needs to know what name is stored there:
1165
[AC_CONFIG_COMMANDS([libtool],
1166
[$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
1167
dnl If the libtool generation code is destined for config.status,
1168
dnl expand the accumulated commands and init code now:
1169
[AC_CONFIG_COMMANDS([libtool],
1170
[_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
1171
])#_LT_CONFIG_COMMANDS
1175
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
1178
# The HP-UX ksh and POSIX shell print the target directory to stdout
1180
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1182
sed_quote_subst='$sed_quote_subst'
1183
double_quote_subst='$double_quote_subst'
1184
delay_variable_subst='$delay_variable_subst'
1185
_LT_CONFIG_STATUS_DECLARATIONS
1187
LTCFLAGS='$LTCFLAGS'
1188
compiler='$compiler_DEFAULT'
1190
# Quote evaled strings.
1191
for var in lt_decl_all_varnames([[ \
1192
]], lt_decl_quote_varnames); do
1193
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
1194
*[[\\\\\\\`\\"\\\$]]*)
1195
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
1198
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1203
# Double-quote double-evaled strings.
1204
for var in lt_decl_all_varnames([[ \
1205
]], lt_decl_dquote_varnames); do
1206
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
1207
*[[\\\\\\\`\\"\\\$]]*)
1208
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
1211
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1216
# Fix-up fallback echo if it was mangled by the above quoting rules.
1218
*'\\\[$]0 --fallback-echo"')dnl "
1219
lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
1223
_LT_OUTPUT_LIBTOOL_INIT
1229
# This macro allows early generation of the libtool script (before
1230
# AC_OUTPUT is called), incase it is used in configure for compilation
1232
AC_DEFUN([LT_OUTPUT],
1233
[: ${CONFIG_LT=./config.lt}
1234
AC_MSG_NOTICE([creating $CONFIG_LT])
1235
cat >"$CONFIG_LT" <<_LTEOF
1237
# Generated by $as_me.
1238
# Run this file to recreate a libtool stub with the current configuration.
1241
SHELL=\${CONFIG_SHELL-$SHELL}
1244
cat >>"$CONFIG_LT" <<\_LTEOF
1248
exec AS_MESSAGE_FD>&1
1249
exec AS_MESSAGE_LOG_FD>>config.log
1252
AS_BOX([Running $as_me.])
1253
} >&AS_MESSAGE_LOG_FD
1256
\`$as_me' creates a local libtool stub from the current configuration,
1257
for use in further configure time tests before the real libtool is
1260
Usage: $[0] [[OPTIONS]]
1262
-h, --help print this help, then exit
1263
-V, --version print version number, then exit
1264
-q, --quiet do not print progress messages
1265
-d, --debug don't remove temporary files
1267
Report bugs to <bug-libtool@gnu.org>."
1270
m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
1271
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
1272
configured by $[0], generated by m4_PACKAGE_STRING.
1274
Copyright (C) 2008 Free Software Foundation, Inc.
1275
This config.lt script is free software; the Free Software Foundation
1276
gives unlimited permision to copy, distribute and modify it."
1278
while test $[#] != 0
1281
--version | --v* | -V )
1282
echo "$lt_cl_version"; exit 0 ;;
1283
--help | --h* | -h )
1284
echo "$lt_cl_help"; exit 0 ;;
1285
--debug | --d* | -d )
1287
--quiet | --q* | --silent | --s* | -q )
1290
-*) AC_MSG_ERROR([unrecognized option: $[1]
1291
Try \`$[0] --help' for more information.]) ;;
1293
*) AC_MSG_ERROR([unrecognized argument: $[1]
1294
Try \`$[0] --help' for more information.]) ;;
1299
if $lt_cl_silent; then
1300
exec AS_MESSAGE_FD>/dev/null
1304
cat >>"$CONFIG_LT" <<_LTEOF
1305
_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
1308
cat >>"$CONFIG_LT" <<\_LTEOF
1309
AC_MSG_NOTICE([creating $ofile])
1310
_LT_OUTPUT_LIBTOOL_COMMANDS
1313
chmod +x "$CONFIG_LT"
1315
# configure is writing to config.log, but config.lt does its own redirection,
1316
# appending to config.log, which fails on DOS, as config.log is still kept
1317
# open by configure. Here we exec the FD to /dev/null, effectively closing
1318
# config.log, so it can be properly (re)opened and appended to by config.lt.
1319
if test "$no_create" != yes; then
1321
test "$silent" = yes &&
1322
lt_config_lt_args="$lt_config_lt_args --quiet"
1323
exec AS_MESSAGE_LOG_FD>/dev/null
1324
$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
1325
exec AS_MESSAGE_LOG_FD>>config.log
1326
$lt_cl_success || AS_EXIT(1)
1333
# If TAG is the built-in tag, create an initial libtool script with a
1334
# default configuration from the untagged config vars. Otherwise add code
1335
# to config.status for appending the configuration named by TAG from the
1336
# matching tagged config vars.
1337
m4_defun([_LT_CONFIG],
1338
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1339
_LT_CONFIG_SAVE_COMMANDS([
1340
m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
1341
m4_if(_LT_TAG, [C], [
1342
# See if we are running on zsh, and set the options which allow our
1343
# commands through without removal of \ escapes.
1344
if test -n "${ZSH_VERSION+set}" ; then
1345
setopt NO_GLOB_SUBST
1349
trap "$RM \"$cfgfile\"; exit 1" 1 2 15
1352
cat <<_LT_EOF >> "$cfgfile"
1355
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
1356
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
1357
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1358
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
1363
# ### BEGIN LIBTOOL CONFIG
1364
_LT_LIBTOOL_CONFIG_VARS
1365
_LT_LIBTOOL_TAG_VARS
1366
# ### END LIBTOOL CONFIG
1372
cat <<\_LT_EOF >> "$cfgfile"
1373
# AIX sometimes has problems with the GCC collect2 program. For some
1374
# reason, if we set the COLLECT_NAMES environment variable, the problems
1375
# vanish in a puff of smoke.
1376
if test "X${COLLECT_NAMES+set}" != Xset; then
1378
export COLLECT_NAMES
1386
# We use sed instead of cat because bash on DJGPP gets confused if
1387
# if finds mixed CR/LF and LF-only lines. Since sed operates in
1388
# text mode, it properly converts lines to CR/LF. This bash problem
1389
# is reportedly fixed, but why not run on old versions too?
1390
sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
1391
|| (rm -f "$cfgfile"; exit 1)
1393
_LT_PROG_XSI_SHELLFNS
1395
sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
1396
|| (rm -f "$cfgfile"; exit 1)
1398
mv -f "$cfgfile" "$ofile" ||
1399
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
1402
[cat <<_LT_EOF >> "$ofile"
1404
dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
1405
dnl in a comment (ie after a #).
1406
# ### BEGIN LIBTOOL TAG CONFIG: $1
1407
_LT_LIBTOOL_TAG_VARS(_LT_TAG)
1408
# ### END LIBTOOL TAG CONFIG: $1
1415
TIMESTAMP='$TIMESTAMP'
1417
ofile='$ofile'], [])
1418
])dnl /_LT_CONFIG_SAVE_COMMANDS
1422
# LT_SUPPORTED_TAG(TAG)
1423
# ---------------------
1424
# Trace this macro to discover what tags are supported by the libtool
1425
# --tag option, using:
1426
# autoconf --trace 'LT_SUPPORTED_TAG:$1'
1427
AC_DEFUN([LT_SUPPORTED_TAG], [])
1430
# C support is built-in for now
1431
m4_define([_LT_LANG_C_enabled], [])
1432
m4_define([_LT_TAGS], [])
1437
# Enable libtool support for the given language if not already enabled.
1439
[AC_BEFORE([$0], [LT_OUTPUT])dnl
1442
[C++], [_LT_LANG(CXX)],
1443
[Java], [_LT_LANG(GCJ)],
1444
[Fortran 77], [_LT_LANG(F77)],
1445
[Fortran], [_LT_LANG(FC)],
1446
[Windows Resource], [_LT_LANG(RC)],
1447
[m4_ifdef([_LT_LANG_]$1[_CONFIG],
1449
[m4_fatal([$0: unsupported language: "$1"])])])dnl
1453
# _LT_LANG(LANGNAME)
1454
# ------------------
1455
m4_defun([_LT_LANG],
1456
[m4_ifdef([_LT_LANG_]$1[_enabled], [],
1457
[LT_SUPPORTED_TAG([$1])dnl
1458
m4_append([_LT_TAGS], [$1 ])dnl
1459
m4_define([_LT_LANG_]$1[_enabled], [])dnl
1460
_LT_LANG_$1_CONFIG($1)])dnl
1464
# _LT_LANG_DEFAULT_CONFIG
1465
# -----------------------
1466
m4_defun([_LT_LANG_DEFAULT_CONFIG],
1467
[AC_PROVIDE_IFELSE([AC_PROG_CXX],
1469
[m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
1471
AC_PROVIDE_IFELSE([AC_PROG_F77],
1473
[m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
1475
AC_PROVIDE_IFELSE([AC_PROG_FC],
1477
[m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
1479
dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
1480
dnl pulling things in needlessly.
1481
AC_PROVIDE_IFELSE([AC_PROG_GCJ],
1483
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
1485
[AC_PROVIDE_IFELSE([LT_PROG_GCJ],
1487
[m4_ifdef([AC_PROG_GCJ],
1488
[m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
1489
m4_ifdef([A][M_PROG_GCJ],
1490
[m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
1491
m4_ifdef([LT_PROG_GCJ],
1492
[m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
1494
AC_PROVIDE_IFELSE([LT_PROG_RC],
1496
[m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
1497
])# _LT_LANG_DEFAULT_CONFIG
1500
AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
1501
AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
1502
AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
1503
AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
1504
dnl aclocal-1.4 backwards compatibility:
1505
dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
1506
dnl AC_DEFUN([AC_LIBTOOL_F77], [])
1507
dnl AC_DEFUN([AC_LIBTOOL_FC], [])
1508
dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
1513
m4_defun([_LT_TAG_COMPILER],
925
AC_DEFUN([_LT_AC_SYS_COMPILER],
1514
926
[AC_REQUIRE([AC_PROG_CC])dnl
1516
_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
1517
_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
1518
_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
1519
_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
1521
928
# If no C compiler was specified, use CC.
1522
929
LTCC=${LTCC-"$CC"}
3941
3347
AC_CHECK_LIB(m, cos, LIBM="-lm")
3948
AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
3949
dnl aclocal-1.4 backwards compatibility:
3950
dnl AC_DEFUN([AC_CHECK_LIBM], [])
3953
# _LT_COMPILER_NO_RTTI([TAGNAME])
3954
# -------------------------------
3955
m4_defun([_LT_COMPILER_NO_RTTI],
3956
[m4_require([_LT_TAG_COMPILER])dnl
3958
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3353
# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
3354
# -----------------------------------
3355
# sets LIBLTDL to the link flags for the libltdl convenience library and
3356
# LTDLINCL to the include flags for the libltdl header and adds
3357
# --enable-ltdl-convenience to the configure arguments. Note that
3358
# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
3359
# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
3360
# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
3361
# (note the single quotes!). If your package is not flat and you're not
3362
# using automake, define top_builddir and top_srcdir appropriately in
3364
AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
3365
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3366
case $enable_ltdl_convenience in
3367
no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
3368
"") enable_ltdl_convenience=yes
3369
ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
3371
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
3372
LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3373
# For backwards non-gettext consistent compatibility...
3375
])# AC_LIBLTDL_CONVENIENCE
3378
# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
3379
# -----------------------------------
3380
# sets LIBLTDL to the link flags for the libltdl installable library and
3381
# LTDLINCL to the include flags for the libltdl header and adds
3382
# --enable-ltdl-install to the configure arguments. Note that
3383
# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
3384
# and an installed libltdl is not found, it is assumed to be `libltdl'.
3385
# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
3386
# '${top_srcdir}/' (note the single quotes!). If your package is not
3387
# flat and you're not using automake, define top_builddir and top_srcdir
3388
# appropriately in the Makefiles.
3389
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
3390
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
3391
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3392
AC_CHECK_LIB(ltdl, lt_dlinit,
3393
[test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
3394
[if test x"$enable_ltdl_install" = xno; then
3395
AC_MSG_WARN([libltdl not installed, but installation disabled])
3397
enable_ltdl_install=yes
3400
if test x"$enable_ltdl_install" = x"yes"; then
3401
ac_configure_args="$ac_configure_args --enable-ltdl-install"
3402
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
3403
LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3405
ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
3409
# For backwards non-gettext consistent compatibility...
3411
])# AC_LIBLTDL_INSTALLABLE
3416
# enable support for C++ libraries
3417
AC_DEFUN([AC_LIBTOOL_CXX],
3418
[AC_REQUIRE([_LT_AC_LANG_CXX])
3424
AC_DEFUN([_LT_AC_LANG_CXX],
3425
[AC_REQUIRE([AC_PROG_CXX])
3426
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
3427
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
3430
# _LT_AC_PROG_CXXCPP
3431
# ------------------
3432
AC_DEFUN([_LT_AC_PROG_CXXCPP],
3434
AC_REQUIRE([AC_PROG_CXX])
3435
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
3436
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
3437
(test "X$CXX" != "Xg++"))) ; then
3440
])# _LT_AC_PROG_CXXCPP
3444
# enable support for Fortran 77 libraries
3445
AC_DEFUN([AC_LIBTOOL_F77],
3446
[AC_REQUIRE([_LT_AC_LANG_F77])
3452
AC_DEFUN([_LT_AC_LANG_F77],
3453
[AC_REQUIRE([AC_PROG_F77])
3454
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
3460
# enable support for GCJ libraries
3461
AC_DEFUN([AC_LIBTOOL_GCJ],
3462
[AC_REQUIRE([_LT_AC_LANG_GCJ])
3468
AC_DEFUN([_LT_AC_LANG_GCJ],
3469
[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
3470
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
3471
[AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
3472
[ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
3473
[ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
3474
[AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
3475
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
3481
# enable support for Windows resource files
3482
AC_DEFUN([AC_LIBTOOL_RC],
3483
[AC_REQUIRE([LT_AC_PROG_RC])
3484
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
3488
# AC_LIBTOOL_LANG_C_CONFIG
3489
# ------------------------
3490
# Ensure that the configuration vars for the C compiler are
3491
# suitably defined. Those variables are subsequently used by
3492
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3493
AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
3494
AC_DEFUN([_LT_AC_LANG_C_CONFIG],
3498
# Source file extension for C test sources.
3501
# Object file extension for compiled C test sources.
3503
_LT_AC_TAGVAR(objext, $1)=$objext
3505
# Code to be used in simple compile tests
3506
lt_simple_compile_test_code="int some_variable = 0;"
3508
# Code to be used in simple link tests
3509
lt_simple_link_test_code='int main(){return(0);}'
3513
# save warnings/boilerplate of simple test code
3514
_LT_COMPILER_BOILERPLATE
3515
_LT_LINKER_BOILERPLATE
3517
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
3518
AC_LIBTOOL_PROG_COMPILER_PIC($1)
3519
AC_LIBTOOL_PROG_CC_C_O($1)
3520
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3521
AC_LIBTOOL_PROG_LD_SHLIBS($1)
3522
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3523
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3524
AC_LIBTOOL_SYS_LIB_STRIP
3525
AC_LIBTOOL_DLOPEN_SELF
3527
# Report which library types will actually be built
3528
AC_MSG_CHECKING([if libtool supports shared libraries])
3529
AC_MSG_RESULT([$can_build_shared])
3531
AC_MSG_CHECKING([whether to build shared libraries])
3532
test "$can_build_shared" = "no" && enable_shared=no
3534
# On AIX, shared libraries and static libraries use the same namespace, and
3535
# are all built from PIC.
3538
test "$enable_shared" = yes && enable_static=no
3539
if test -n "$RANLIB"; then
3540
archive_cmds="$archive_cmds~\$RANLIB \$lib"
3541
postinstall_cmds='$RANLIB $lib'
3546
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
3547
test "$enable_shared" = yes && enable_static=no
3551
AC_MSG_RESULT([$enable_shared])
3553
AC_MSG_CHECKING([whether to build static libraries])
3554
# Make sure either enable_shared or enable_static is yes.
3555
test "$enable_shared" = yes || enable_static=yes
3556
AC_MSG_RESULT([$enable_static])
3558
AC_LIBTOOL_CONFIG($1)
3562
])# AC_LIBTOOL_LANG_C_CONFIG
3565
# AC_LIBTOOL_LANG_CXX_CONFIG
3566
# --------------------------
3567
# Ensure that the configuration vars for the C compiler are
3568
# suitably defined. Those variables are subsequently used by
3569
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3570
AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
3571
AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
3573
AC_REQUIRE([AC_PROG_CXX])
3574
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
3576
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3577
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
3578
_LT_AC_TAGVAR(always_export_symbols, $1)=no
3579
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
3580
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
3581
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3582
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
3583
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
3584
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3585
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
3586
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3587
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
3588
_LT_AC_TAGVAR(module_cmds, $1)=
3589
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
3590
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
3591
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
3592
_LT_AC_TAGVAR(no_undefined_flag, $1)=
3593
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3594
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
3596
# Dependencies to place before and after the object being linked:
3597
_LT_AC_TAGVAR(predep_objects, $1)=
3598
_LT_AC_TAGVAR(postdep_objects, $1)=
3599
_LT_AC_TAGVAR(predeps, $1)=
3600
_LT_AC_TAGVAR(postdeps, $1)=
3601
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
3602
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
3604
# Source file extension for C++ test sources.
3607
# Object file extension for compiled C++ test sources.
3609
_LT_AC_TAGVAR(objext, $1)=$objext
3611
# Code to be used in simple compile tests
3612
lt_simple_compile_test_code="int some_variable = 0;"
3614
# Code to be used in simple link tests
3615
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
3617
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3620
# save warnings/boilerplate of simple test code
3621
_LT_COMPILER_BOILERPLATE
3622
_LT_LINKER_BOILERPLATE
3624
# Allow CC to be a program name with arguments.
3629
lt_save_with_gnu_ld=$with_gnu_ld
3630
lt_save_path_LD=$lt_cv_path_LD
3631
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
3632
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
3634
$as_unset lt_cv_prog_gnu_ld
3636
if test -n "${lt_cv_path_LDCXX+set}"; then
3637
lt_cv_path_LD=$lt_cv_path_LDCXX
3639
$as_unset lt_cv_path_LD
3641
test -z "${LDCXX+set}" || LD=$LDCXX
3644
_LT_AC_TAGVAR(compiler, $1)=$CC
3645
_LT_CC_BASENAME([$compiler])
3647
# We don't want -fno-exception wen compiling C++ code, so set the
3648
# no_builtin_flag separately
3649
if test "$GXX" = yes; then
3650
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
3652
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3655
if test "$GXX" = yes; then
3656
# Set up default GNU C++ configuration
3660
# Check if GNU C++ uses GNU ld as the underlying linker, since the
3661
# archiving commands below assume that GNU ld is being used.
3662
if test "$with_gnu_ld" = yes; then
3663
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3664
_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'
3666
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3667
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3669
# If archive_cmds runs LD, not CC, wlarc should be empty
3670
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
3671
# investigate it a little bit more. (MM)
3674
# ancient GNU ld didn't support --whole-archive et. al.
3675
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
3676
grep 'no-whole-archive' > /dev/null; then
3677
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3679
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3685
# A generic and very simple default shared library creation
3686
# command for GNU C++ for the case where it uses the native
3687
# linker, instead of GNU ld. If possible, this setting should
3688
# overridden to take advantage of the native linker features on
3689
# the platform it is being used on.
3690
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3693
# Commands to make compiler produce verbose output that lists
3694
# what "hidden" libraries, object files and flags are used when
3695
# linking a shared library.
3696
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3704
# PORTME: fill in a description of your system's C++ link characteristics
3705
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
3706
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
3709
# FIXME: insert proper C++ library support
3710
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3713
if test "$host_cpu" = ia64; then
3714
# On IA64, the linker does run time linking by default, so we don't
3715
# have to do anything special.
3716
aix_use_runtimelinking=no
3717
exp_sym_flag='-Bexport'
3720
aix_use_runtimelinking=no
3722
# Test if we are trying to use run time linking or normal
3723
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
3724
# need to do runtime linking.
3725
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
3726
for ld_flag in $LDFLAGS; do
3729
aix_use_runtimelinking=yes
3737
exp_sym_flag='-bexport'
3738
no_entry_flag='-bnoentry'
3741
# When large executables or shared objects are built, AIX ld can
3742
# have problems creating the table of contents. If linking a library
3743
# or program results in "error TOC overflow" add -mminimal-toc to
3744
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
3745
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
3747
_LT_AC_TAGVAR(archive_cmds, $1)=''
3748
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3749
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3750
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3752
if test "$GXX" = yes; then
3753
case $host_os in aix4.[[012]]|aix4.[[012]].*)
3754
# We only want to do this on AIX 4.2 and lower, the check
3755
# below for broken collect2 doesn't work under 4.3+
3756
collect2name=`${CC} -print-prog-name=collect2`
3757
if test -f "$collect2name" && \
3758
strings "$collect2name" | grep resolve_lib_name >/dev/null
3760
# We have reworked collect2
3763
# We have old collect2
3764
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3765
# It fails to find uninstalled libraries when the uninstalled
3766
# path is not listed in the libpath. Setting hardcode_minus_L
3767
# to unsupported forces relinking
3768
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
3769
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3770
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3774
shared_flag='-shared'
3775
if test "$aix_use_runtimelinking" = yes; then
3776
shared_flag="$shared_flag "'${wl}-G'
3780
if test "$host_cpu" = ia64; then
3781
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
3782
# chokes on -Wl,-G. The following line is correct:
3785
if test "$aix_use_runtimelinking" = yes; then
3786
shared_flag='${wl}-G'
3788
shared_flag='${wl}-bM:SRE'
3793
# It seems that -bexpall does not export symbols beginning with
3794
# underscore (_), so it is better to generate a list of symbols to export.
3795
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
3796
if test "$aix_use_runtimelinking" = yes; then
3797
# Warning - without using the other runtime loading flags (-brtl),
3798
# -berok will link without error, but may produce a broken library.
3799
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
3800
# Determine the default libpath from the value encoded in an empty executable.
3801
_LT_AC_SYS_LIBPATH_AIX
3802
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3804
_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"
3806
if test "$host_cpu" = ia64; then
3807
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
3808
_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
3809
_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"
3811
# Determine the default libpath from the value encoded in an empty executable.
3812
_LT_AC_SYS_LIBPATH_AIX
3813
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3814
# Warning - without using the other run time loading flags,
3815
# -berok will link without error, but may produce a broken library.
3816
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
3817
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
3818
# Exported symbols can be pulled into shared objects from archives
3819
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
3820
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
3821
# This is similar to how AIX traditionally builds its shared libraries.
3822
_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'
3828
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
3829
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3830
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3831
# support --undefined. This deserves some investigation. FIXME
3832
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3834
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3839
case $cc_basename in
3841
# FIXME: insert proper C++ library support
3842
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3847
cygwin* | mingw* | pw32*)
3848
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
3849
# as there is no search path for DLLs.
3850
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3851
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3852
_LT_AC_TAGVAR(always_export_symbols, $1)=no
3853
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
3855
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
3856
_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'
3857
# If the export-symbols file already is a .def file (1st line
3858
# is EXPORTS), use it as is; otherwise, prepend...
3859
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
3860
cp $export_symbols $output_objdir/$soname.def;
3862
echo EXPORTS > $output_objdir/$soname.def;
3863
cat $export_symbols >> $output_objdir/$soname.def;
3865
$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'
3867
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3870
darwin* | rhapsody*)
3871
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3872
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3873
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3874
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3875
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3876
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3877
_LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
3878
if test "$GXX" = yes ; then
3879
output_verbose_link_cmd='echo'
3880
_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}"
3881
_LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
3882
_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}"
3883
_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}"
3884
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
3885
_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}"
3886
_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}"
3889
case $cc_basename in
3891
output_verbose_link_cmd='echo'
3892
_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'
3893
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3894
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3895
_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}'
3896
_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}'
3899
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3906
case $cc_basename in
3908
# FIXME: insert proper C++ library support
3909
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3912
# Green Hills C++ Compiler
3913
# FIXME: insert proper C++ library support
3914
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3917
# FIXME: insert proper C++ library support
3918
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3923
# C++ shared libraries reported to be fairly broken before switch to ELF
3924
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3927
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3929
freebsd* | dragonfly*)
3930
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3932
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
3937
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3938
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3939
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3940
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3941
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3942
# but as the default
3943
# location of the library.
3945
case $cc_basename in
3947
# FIXME: insert proper C++ library support
3948
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3951
_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'
3952
# Commands to make compiler produce verbose output that lists
3953
# what "hidden" libraries, object files and flags are used when
3954
# linking a shared library.
3956
# There doesn't appear to be a way to prevent this compiler from
3957
# explicitly linking system object files so we need to strip them
3958
# from the output so that they don't get included in the library
3960
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'
3963
if test "$GXX" = yes; then
3964
_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'
3966
# FIXME: insert proper C++ library support
3967
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3973
if test $with_gnu_ld = no; then
3974
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3975
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3980
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3986
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3987
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3990
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3991
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3992
# but as the default
3993
# location of the library.
3997
case $cc_basename in
3999
# FIXME: insert proper C++ library support
4000
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4005
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4008
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4011
_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'
4014
# Commands to make compiler produce verbose output that lists
4015
# what "hidden" libraries, object files and flags are used when
4016
# linking a shared library.
4018
# There doesn't appear to be a way to prevent this compiler from
4019
# explicitly linking system object files so we need to strip them
4020
# from the output so that they don't get included in the library
4022
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'
4025
if test "$GXX" = yes; then
4026
if test $with_gnu_ld = no; then
4029
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4032
_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'
4035
_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'
4040
# FIXME: insert proper C++ library support
4041
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4047
_LT_AC_TAGVAR(hardcode_direct, $1)=no
4048
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4049
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4050
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4051
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
4052
# Instead, shared libraries are loaded at an image base (0x10000000 by
4053
# default) and relocated if they conflict, which is a slow very memory
4054
# consuming and fragmenting process. To avoid this, we pick a random,
4055
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
4056
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
4057
_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'
4058
_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'
4061
case $cc_basename in
4064
_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'
4066
# Archives containing C++ object files must be created using
4067
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
4068
# necessary to make sure instantiated templates are included
4070
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
4073
if test "$GXX" = yes; then
4074
if test "$with_gnu_ld" = no; then
4075
_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'
4077
_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'
4080
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4083
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4084
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4086
linux* | k*bsd*-gnu)
4087
case $cc_basename in
4089
# Kuck and Associates, Inc. (KAI) C++ Compiler
4091
# KCC will only create a shared library if the output file
4092
# ends with ".so" (or ".sl" for HP-UX), so rename the library
4093
# to its proper name (with version) after linking.
4094
_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'
4095
_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'
4096
# Commands to make compiler produce verbose output that lists
4097
# what "hidden" libraries, object files and flags are used when
4098
# linking a shared library.
4100
# There doesn't appear to be a way to prevent this compiler from
4101
# explicitly linking system object files so we need to strip them
4102
# from the output so that they don't get included in the library
4104
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'
4106
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
4107
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4109
# Archives containing C++ object files must be created using
4110
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
4111
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
4116
# version 8.0 and above of icpc choke on multiply defined symbols
4117
# if we add $predep_objects and $postdep_objects, however 7.1 and
4118
# earlier do not add the objects themselves.
4119
case `$CC -V 2>&1` in
4121
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4122
_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'
4124
*) # Version 8.0 or newer
4127
ia64*) tmp_idyn=' -i_dynamic';;
4129
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4130
_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'
4133
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4134
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4135
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4136
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
4139
# Portland Group C++ compiler
4140
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
4141
_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'
4143
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
4144
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4145
_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'
4149
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4150
_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'
4152
runpath_var=LD_RUN_PATH
4153
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4154
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4156
# Commands to make compiler produce verbose output that lists
4157
# what "hidden" libraries, object files and flags are used when
4158
# linking a shared library.
4160
# There doesn't appear to be a way to prevent this compiler from
4161
# explicitly linking system object files so we need to strip them
4162
# from the output so that they don't get included in the library
4164
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'
4167
case `$CC -V 2>&1 | sed 5q` in
4170
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
4171
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4172
_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'
4173
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4174
_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'
4176
# Not sure whether something based on
4177
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
4179
output_verbose_link_cmd='echo'
4181
# Archives containing C++ object files must be created using
4182
# "CC -xar", where "CC" is the Sun C++ compiler. This is
4183
# necessary to make sure instantiated templates are included
4185
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
4192
# FIXME: insert proper C++ library support
4193
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4196
# FIXME: insert proper C++ library support
4197
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4200
case $cc_basename in
4202
# FIXME: insert proper C++ library support
4203
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4206
# FIXME: insert proper C++ library support
4207
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4211
netbsd* | netbsdelf*-gnu)
4212
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4213
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
4215
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4216
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
4217
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4219
# Workaround some broken pre-1.5 toolchains
4220
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
4223
# C++ shared libraries are fairly broken
4224
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4227
if test -f /usr/libexec/ld.so; then
4228
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
4229
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4230
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
4231
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4232
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4233
_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'
4234
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4235
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4237
output_verbose_link_cmd='echo'
4239
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4243
case $cc_basename in
4245
# Kuck and Associates, Inc. (KAI) C++ Compiler
4247
# KCC will only create a shared library if the output file
4248
# ends with ".so" (or ".sl" for HP-UX), so rename the library
4249
# to its proper name (with version) after linking.
4250
_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'
4252
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4253
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4255
# Archives containing C++ object files must be created using
4256
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
4257
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
4261
# Rational C++ 2.4.1
4262
# FIXME: insert proper C++ library support
4263
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4266
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4267
_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'
4269
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4270
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4272
# Commands to make compiler produce verbose output that lists
4273
# what "hidden" libraries, object files and flags are used when
4274
# linking a shared library.
4276
# There doesn't appear to be a way to prevent this compiler from
4277
# explicitly linking system object files so we need to strip them
4278
# from the output so that they don't get included in the library
4280
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'
4283
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4284
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4285
_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'
4287
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4288
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4290
# Commands to make compiler produce verbose output that lists
4291
# what "hidden" libraries, object files and flags are used when
4292
# linking a shared library.
4293
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4296
# FIXME: insert proper C++ library support
4297
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4303
case $cc_basename in
4305
# Kuck and Associates, Inc. (KAI) C++ Compiler
4307
# KCC will only create a shared library if the output file
4308
# ends with ".so" (or ".sl" for HP-UX), so rename the library
4309
# to its proper name (with version) after linking.
4310
_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'
4312
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4313
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4315
# Archives containing C++ object files must be created using
4316
# the KAI C++ compiler.
4317
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
4320
# Rational C++ 2.4.1
4321
# FIXME: insert proper C++ library support
4322
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4325
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4326
_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'
4327
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
4328
echo "-hidden">> $lib.exp~
4329
$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~
4332
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4333
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4335
# Commands to make compiler produce verbose output that lists
4336
# what "hidden" libraries, object files and flags are used when
4337
# linking a shared library.
4339
# There doesn't appear to be a way to prevent this compiler from
4340
# explicitly linking system object files so we need to strip them
4341
# from the output so that they don't get included in the library
4343
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'
4346
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4347
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4348
_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'
4350
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4351
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4353
# Commands to make compiler produce verbose output that lists
4354
# what "hidden" libraries, object files and flags are used when
4355
# linking a shared library.
4356
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4359
# FIXME: insert proper C++ library support
4360
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4366
# FIXME: insert proper C++ library support
4367
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4370
case $cc_basename in
4373
# FIXME: insert proper C++ library support
4374
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4378
# FIXME: insert proper C++ library support
4379
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4382
# FIXME: insert proper C++ library support
4383
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4388
case $cc_basename in
4390
# Sun C++ 4.2, 5.x and Centerline C++
4391
_LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
4392
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
4393
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4394
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4395
$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'
4397
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4398
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4400
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
4402
# The compiler driver will combine and reorder linker options,
4403
# but understands `-z linker_flag'.
4404
# Supported since Solaris 2.6 (maybe 2.5.1?)
4405
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
4408
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4410
output_verbose_link_cmd='echo'
4412
# Archives containing C++ object files must be created using
4413
# "CC -xar", where "CC" is the Sun C++ compiler. This is
4414
# necessary to make sure instantiated templates are included
4416
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
4419
# Green Hills C++ Compiler
4420
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4422
# The C++ compiler must be used to create the archive.
4423
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
4426
# GNU C++ compiler with Solaris linker
4427
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4428
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
4429
if $CC --version | grep -v '^2\.7' > /dev/null; then
4430
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4431
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4432
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4434
# Commands to make compiler produce verbose output that lists
4435
# what "hidden" libraries, object files and flags are used when
4436
# linking a shared library.
4437
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
4439
# g++ 2.7 appears to require `-G' NOT `-shared' on this
4441
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4442
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4443
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4445
# Commands to make compiler produce verbose output that lists
4446
# what "hidden" libraries, object files and flags are used when
4447
# linking a shared library.
4448
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
4451
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
4453
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
4455
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
4462
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
4463
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
4464
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4465
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4466
runpath_var='LD_RUN_PATH'
4468
case $cc_basename in
4470
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4471
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4474
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4475
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4479
sysv5* | sco3.2v5* | sco5v6*)
4480
# Note: We can NOT use -z defs as we might desire, because we do not
4481
# link with -lc, and that would cause any symbols used from libc to
4482
# always be unresolved, which means just about no library would
4483
# ever link correctly. If we're not using GNU ld we use -z text
4484
# though, which does catch some bad symbols but isn't as heavy-handed
4486
# For security reasons, it is highly recommended that you always
4487
# use absolute paths for naming shared libraries, and exclude the
4488
# DT_RUNPATH tag from executables and libraries. But doing so
4489
# requires that you compile everything twice, which is a pain.
4490
# So that behaviour is only enabled if SCOABSPATH is set to a
4491
# non-empty value in the environment. Most likely only useful for
4492
# creating official distributions of packages.
4493
# This is a hack until libtool officially supports absolute path
4494
# names for shared libraries.
4495
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
4496
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
4497
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4498
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4499
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
4500
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
4501
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4502
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
4503
runpath_var='LD_RUN_PATH'
4505
case $cc_basename in
4507
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4508
_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'
4511
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4512
_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'
4517
case $cc_basename in
4519
# NonStop-UX NCC 3.20
4520
# FIXME: insert proper C++ library support
4521
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4524
# FIXME: insert proper C++ library support
4525
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4530
# FIXME: insert proper C++ library support
4531
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4534
# FIXME: insert proper C++ library support
4535
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4538
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
4539
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
4541
_LT_AC_TAGVAR(GCC, $1)="$GXX"
4542
_LT_AC_TAGVAR(LD, $1)="$LD"
4544
AC_LIBTOOL_POSTDEP_PREDEP($1)
4545
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4546
AC_LIBTOOL_PROG_CC_C_O($1)
4547
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4548
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4549
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4550
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4552
AC_LIBTOOL_CONFIG($1)
4559
with_gnu_ldcxx=$with_gnu_ld
4560
with_gnu_ld=$lt_save_with_gnu_ld
4561
lt_cv_path_LDCXX=$lt_cv_path_LD
4562
lt_cv_path_LD=$lt_save_path_LD
4563
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
4564
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
4565
])# AC_LIBTOOL_LANG_CXX_CONFIG
4567
# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
4568
# ------------------------------------
4569
# Figure out "hidden" library dependencies from verbose
4570
# compiler output when linking a shared library.
4571
# Parse the compiler output and extract the necessary
4572
# objects, libraries and library flags.
4573
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],
4574
[AC_REQUIRE([LT_AC_PROG_SED])dnl
4575
dnl we can't use the lt_simple_compile_test_code here,
4576
dnl because it contains code intended for an executable,
4577
dnl not a library. It's possible we should let each
4578
dnl tag define a new lt_????_link_test_code variable,
4579
dnl but it's only used here...
4580
ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
4582
void foo (void) { a = 0; }
4584
],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
4588
Foo (void) { a = 0; }
4593
],[$1],[F77],[cat > conftest.$ac_ext <<EOF
4601
],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
4604
public void bar (void) {
4610
dnl Parse the compiler output and extract the necessary
4611
dnl objects, libraries and library flags.
4612
if AC_TRY_EVAL(ac_compile); then
4613
# Parse the compiler output and extract the necessary
4614
# objects, libraries and library flags.
4616
# Sentinel used to keep track of whether or not we are before
4617
# the conftest object file.
4618
pre_test_object_deps_done=no
4620
# The `*' in the case matches for architectures that use `case' in
4621
# $output_verbose_cmd can trigger glob expansion during the loop
4622
# eval without this substitution.
4623
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
4625
for p in `eval $output_verbose_link_cmd`; do
4629
# Some compilers place space between "-{L,R}" and the path.
4632
|| test $p = "-R"; then
4639
if test "$pre_test_object_deps_done" = no; then
4642
# Internal compiler library paths should come after those
4643
# provided the user. The postdeps already come after the
4644
# user supplied libs so there is no need to process them.
4645
if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
4646
_LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
4648
_LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
4651
# The "-l" case would never come before the object being
4652
# linked, so don't bother handling this case.
4655
if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
4656
_LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
4658
_LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
4664
# This assumes that the test object file only shows up
4665
# once in the compiler output.
4666
if test "$p" = "conftest.$objext"; then
4667
pre_test_object_deps_done=yes
4671
if test "$pre_test_object_deps_done" = no; then
4672
if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
4673
_LT_AC_TAGVAR(predep_objects, $1)="$p"
4675
_LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
4678
if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
4679
_LT_AC_TAGVAR(postdep_objects, $1)="$p"
4681
_LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
4686
*) ;; # Ignore the rest.
4694
echo "libtool.m4: error: problem compiling $1 test program"
4697
$rm -f confest.$objext
4699
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
4700
if test -n "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
4701
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_AC_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
4704
# PORTME: override above test on systems where it is broken
4708
# Interix 3.5 installs completely hosed .la files for C++, so rather than
4709
# hack all around it, let's just trust "g++" to DTRT.
4710
_LT_AC_TAGVAR(predep_objects,$1)=
4711
_LT_AC_TAGVAR(postdep_objects,$1)=
4712
_LT_AC_TAGVAR(postdeps,$1)=
4716
case `$CC -V 2>&1 | sed 5q` in
4720
# The more standards-conforming stlport4 library is
4721
# incompatible with the Cstd library. Avoid specifying
4722
# it if it's in CXXFLAGS. Ignore libCrun as
4723
# -library=stlport4 depends on it.
4724
case " $CXX $CXXFLAGS " in
4725
*" -library=stlport4 "*)
4726
solaris_use_stlport4=yes
4729
if test "$solaris_use_stlport4" != yes; then
4730
_LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
4737
case $cc_basename in
4739
# The more standards-conforming stlport4 library is
4740
# incompatible with the Cstd library. Avoid specifying
4741
# it if it's in CXXFLAGS. Ignore libCrun as
4742
# -library=stlport4 depends on it.
4743
case " $CXX $CXXFLAGS " in
4744
*" -library=stlport4 "*)
4745
solaris_use_stlport4=yes
4749
# Adding this requires a known-good setup of shared libraries for
4750
# Sun compiler versions before 5.6, else PIC objects from an old
4751
# archive will be linked into the output, leading to subtle bugs.
4752
if test "$solaris_use_stlport4" != yes; then
4753
_LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
4760
case " $_LT_AC_TAGVAR(postdeps, $1) " in
4761
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
4763
])# AC_LIBTOOL_POSTDEP_PREDEP
4765
# AC_LIBTOOL_LANG_F77_CONFIG
4766
# --------------------------
4767
# Ensure that the configuration vars for the C compiler are
4768
# suitably defined. Those variables are subsequently used by
4769
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4770
AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
4771
AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
4772
[AC_REQUIRE([AC_PROG_F77])
4773
AC_LANG_PUSH(Fortran 77)
4775
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4776
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
4777
_LT_AC_TAGVAR(always_export_symbols, $1)=no
4778
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
4779
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
4780
_LT_AC_TAGVAR(hardcode_direct, $1)=no
4781
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
4782
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4783
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4784
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
4785
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
4786
_LT_AC_TAGVAR(module_cmds, $1)=
4787
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
4788
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
4789
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4790
_LT_AC_TAGVAR(no_undefined_flag, $1)=
4791
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4792
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4794
# Source file extension for f77 test sources.
4797
# Object file extension for compiled f77 test sources.
4799
_LT_AC_TAGVAR(objext, $1)=$objext
4801
# Code to be used in simple compile tests
4802
lt_simple_compile_test_code="\
4808
# Code to be used in simple link tests
4809
lt_simple_link_test_code="\
4814
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4817
# save warnings/boilerplate of simple test code
4818
_LT_COMPILER_BOILERPLATE
4819
_LT_LINKER_BOILERPLATE
4821
# Allow CC to be a program name with arguments.
4825
_LT_AC_TAGVAR(compiler, $1)=$CC
4826
_LT_CC_BASENAME([$compiler])
4828
AC_MSG_CHECKING([if libtool supports shared libraries])
4829
AC_MSG_RESULT([$can_build_shared])
4831
AC_MSG_CHECKING([whether to build shared libraries])
4832
test "$can_build_shared" = "no" && enable_shared=no
4834
# On AIX, shared libraries and static libraries use the same namespace, and
4835
# are all built from PIC.
4838
test "$enable_shared" = yes && enable_static=no
4839
if test -n "$RANLIB"; then
4840
archive_cmds="$archive_cmds~\$RANLIB \$lib"
4841
postinstall_cmds='$RANLIB $lib'
4845
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4846
test "$enable_shared" = yes && enable_static=no
4850
AC_MSG_RESULT([$enable_shared])
4852
AC_MSG_CHECKING([whether to build static libraries])
4853
# Make sure either enable_shared or enable_static is yes.
4854
test "$enable_shared" = yes || enable_static=yes
4855
AC_MSG_RESULT([$enable_static])
4857
_LT_AC_TAGVAR(GCC, $1)="$G77"
4858
_LT_AC_TAGVAR(LD, $1)="$LD"
4860
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4861
AC_LIBTOOL_PROG_CC_C_O($1)
4862
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4863
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4864
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4865
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4867
AC_LIBTOOL_CONFIG($1)
4871
])# AC_LIBTOOL_LANG_F77_CONFIG
4874
# AC_LIBTOOL_LANG_GCJ_CONFIG
4875
# --------------------------
4876
# Ensure that the configuration vars for the C compiler are
4877
# suitably defined. Those variables are subsequently used by
4878
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4879
AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
4880
AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
4883
# Source file extension for Java test sources.
4886
# Object file extension for compiled Java test sources.
4888
_LT_AC_TAGVAR(objext, $1)=$objext
4890
# Code to be used in simple compile tests
4891
lt_simple_compile_test_code="class foo {}"
4893
# Code to be used in simple link tests
4894
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
4896
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4899
# save warnings/boilerplate of simple test code
4900
_LT_COMPILER_BOILERPLATE
4901
_LT_LINKER_BOILERPLATE
4903
# Allow CC to be a program name with arguments.
4907
_LT_AC_TAGVAR(compiler, $1)=$CC
4908
_LT_CC_BASENAME([$compiler])
4910
# GCJ did not exist at the time GCC didn't implicitly link libc in.
4911
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4913
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4915
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
4916
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4917
AC_LIBTOOL_PROG_CC_C_O($1)
4918
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4919
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4920
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4921
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4923
AC_LIBTOOL_CONFIG($1)
4927
])# AC_LIBTOOL_LANG_GCJ_CONFIG
4930
# AC_LIBTOOL_LANG_RC_CONFIG
4931
# -------------------------
4932
# Ensure that the configuration vars for the Windows resource compiler are
4933
# suitably defined. Those variables are subsequently used by
4934
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4935
AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
4936
AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
4939
# Source file extension for RC test sources.
4942
# Object file extension for compiled RC test sources.
4944
_LT_AC_TAGVAR(objext, $1)=$objext
4946
# Code to be used in simple compile tests
4947
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
4949
# Code to be used in simple link tests
4950
lt_simple_link_test_code="$lt_simple_compile_test_code"
4952
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4955
# save warnings/boilerplate of simple test code
4956
_LT_COMPILER_BOILERPLATE
4957
_LT_LINKER_BOILERPLATE
4959
# Allow CC to be a program name with arguments.
4963
_LT_AC_TAGVAR(compiler, $1)=$CC
4964
_LT_CC_BASENAME([$compiler])
4965
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
4967
AC_LIBTOOL_CONFIG($1)
4971
])# AC_LIBTOOL_LANG_RC_CONFIG
4974
# AC_LIBTOOL_CONFIG([TAGNAME])
4975
# ----------------------------
4976
# If TAGNAME is not passed, then create an initial libtool script
4977
# with a default configuration from the untagged config vars. Otherwise
4978
# add code to config.status for appending the configuration named by
4979
# TAGNAME from the matching tagged config vars.
4980
AC_DEFUN([AC_LIBTOOL_CONFIG],
4981
[# The else clause should only fire when bootstrapping the
4982
# libtool distribution, otherwise you forgot to ship ltmain.sh
4983
# with your package, and you will get complaints that there are
4984
# no rules to generate ltmain.sh.
4985
if test -f "$ltmain"; then
4986
# See if we are running on zsh, and set the options which allow our commands through
4987
# without removal of \ escapes.
4988
if test -n "${ZSH_VERSION+set}" ; then
4989
setopt NO_GLOB_SUBST
4991
# Now quote all the things that may contain metacharacters while being
4992
# careful not to overquote the AC_SUBSTed values. We take copies of the
4993
# variables and quote the copies for generation of the libtool script.
4994
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
4996
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
4997
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
4998
deplibs_check_method reload_flag reload_cmds need_locks \
4999
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
5000
lt_cv_sys_global_symbol_to_c_name_address \
5001
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
5002
old_postinstall_cmds old_postuninstall_cmds \
5003
_LT_AC_TAGVAR(compiler, $1) \
5004
_LT_AC_TAGVAR(CC, $1) \
5005
_LT_AC_TAGVAR(LD, $1) \
5006
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
5007
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
5008
_LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
5009
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
5010
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
5011
_LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
5012
_LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
5013
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
5014
_LT_AC_TAGVAR(old_archive_cmds, $1) \
5015
_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
5016
_LT_AC_TAGVAR(predep_objects, $1) \
5017
_LT_AC_TAGVAR(postdep_objects, $1) \
5018
_LT_AC_TAGVAR(predeps, $1) \
5019
_LT_AC_TAGVAR(postdeps, $1) \
5020
_LT_AC_TAGVAR(compiler_lib_search_path, $1) \
5021
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1) \
5022
_LT_AC_TAGVAR(archive_cmds, $1) \
5023
_LT_AC_TAGVAR(archive_expsym_cmds, $1) \
5024
_LT_AC_TAGVAR(postinstall_cmds, $1) \
5025
_LT_AC_TAGVAR(postuninstall_cmds, $1) \
5026
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
5027
_LT_AC_TAGVAR(allow_undefined_flag, $1) \
5028
_LT_AC_TAGVAR(no_undefined_flag, $1) \
5029
_LT_AC_TAGVAR(export_symbols_cmds, $1) \
5030
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
5031
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
5032
_LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
5033
_LT_AC_TAGVAR(hardcode_automatic, $1) \
5034
_LT_AC_TAGVAR(module_cmds, $1) \
5035
_LT_AC_TAGVAR(module_expsym_cmds, $1) \
5036
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
5037
_LT_AC_TAGVAR(fix_srcfile_path, $1) \
5038
_LT_AC_TAGVAR(exclude_expsyms, $1) \
5039
_LT_AC_TAGVAR(include_expsyms, $1); do
5042
_LT_AC_TAGVAR(old_archive_cmds, $1) | \
5043
_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
5044
_LT_AC_TAGVAR(archive_cmds, $1) | \
5045
_LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
5046
_LT_AC_TAGVAR(module_cmds, $1) | \
5047
_LT_AC_TAGVAR(module_expsym_cmds, $1) | \
5048
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
5049
_LT_AC_TAGVAR(export_symbols_cmds, $1) | \
5050
extract_expsyms_cmds | reload_cmds | finish_cmds | \
5051
postinstall_cmds | postuninstall_cmds | \
5052
old_postinstall_cmds | old_postuninstall_cmds | \
5053
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
5054
# Double-quote double-evaled strings.
5055
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
5058
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
5064
*'\[$]0 --fallback-echo"')
5065
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
5070
[cfgfile="${ofile}T"
5071
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
5073
AC_MSG_NOTICE([creating $ofile])],
5076
cat <<__EOF__ >> "$cfgfile"
5080
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
5081
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
5082
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
5084
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
5085
# Free Software Foundation, Inc.
5087
# This file is part of GNU Libtool:
5088
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
5090
# This program is free software; you can redistribute it and/or modify
5091
# it under the terms of the GNU General Public License as published by
5092
# the Free Software Foundation; either version 2 of the License, or
5093
# (at your option) any later version.
5095
# This program is distributed in the hope that it will be useful, but
5096
# WITHOUT ANY WARRANTY; without even the implied warranty of
5097
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
5098
# General Public License for more details.
5100
# You should have received a copy of the GNU General Public License
5101
# along with this program; if not, write to the Free Software
5102
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
5104
# As a special exception to the GNU General Public License, if you
5105
# distribute this file as part of a program that contains a
5106
# configuration script generated by Autoconf, you may include it under
5107
# the same distribution terms that you use for the rest of that program.
5109
# A sed program that does not truncate output.
5112
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
5113
Xsed="$SED -e 1s/^X//"
5115
# The HP-UX ksh and POSIX shell print the target directory to stdout
5117
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5119
# The names of the tagged configurations supported by this script.
5122
# ### BEGIN LIBTOOL CONFIG],
5123
[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
5125
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5127
# Shell to use when invoking shell scripts.
5130
# Whether or not to build shared libraries.
5131
build_libtool_libs=$enable_shared
5133
# Whether or not to build static libraries.
5134
build_old_libs=$enable_static
5136
# Whether or not to add -lc for building shared libraries.
5137
build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
5139
# Whether or not to disallow shared libs when runtime libs are static
5140
allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
5142
# Whether or not to optimize for fast installation.
5143
fast_install=$enable_fast_install
5146
host_alias=$host_alias
5151
build_alias=$build_alias
5155
# An echo program that does not interpret backslashes.
5160
AR_FLAGS=$lt_AR_FLAGS
5165
# LTCC compiler flags.
5166
LTCFLAGS=$lt_LTCFLAGS
5168
# A language-specific compiler.
5169
CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
5171
# Is the compiler the GNU C compiler?
5172
with_gcc=$_LT_AC_TAGVAR(GCC, $1)
5177
# The linker used to build libraries.
5178
LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
5180
# Whether we need hard or soft links.
5183
# A BSD-compatible nm program.
5186
# A symbol stripping program
5189
# Used to examine libraries when file_magic_cmd begins "file"
5190
MAGIC_CMD=$MAGIC_CMD
5192
# Used on cygwin: DLL creation program.
5195
# Used on cygwin: object dumper.
5198
# Used on cygwin: assembler.
5201
# The name of the directory that contains temporary libtool files.
5204
# How to create reloadable object files.
5205
reload_flag=$lt_reload_flag
5206
reload_cmds=$lt_reload_cmds
5208
# How to pass a linker flag through the compiler.
5209
wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
5211
# Object file suffix (normally "o").
5214
# Old archive suffix (normally "a").
5217
# Shared library suffix (normally ".so").
5218
shrext_cmds='$shrext_cmds'
5220
# Executable file suffix (normally "").
5223
# Additional compiler flags for building library objects.
5224
pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
5227
# What is the maximum length of a command?
5228
max_cmd_len=$lt_cv_sys_max_cmd_len
5230
# Does compiler simultaneously support -c and -o options?
5231
compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
5233
# Must we lock files when doing compilation?
5234
need_locks=$lt_need_locks
5236
# Do we need the lib prefix for modules?
5237
need_lib_prefix=$need_lib_prefix
5239
# Do we need a version for libraries?
5240
need_version=$need_version
5242
# Whether dlopen is supported.
5243
dlopen_support=$enable_dlopen
5245
# Whether dlopen of programs is supported.
5246
dlopen_self=$enable_dlopen_self
5248
# Whether dlopen of statically linked programs is supported.
5249
dlopen_self_static=$enable_dlopen_self_static
5251
# Compiler flag to prevent dynamic linking.
5252
link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
5254
# Compiler flag to turn off builtin functions.
5255
no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
5257
# Compiler flag to allow reflexive dlopens.
5258
export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
5260
# Compiler flag to generate shared objects directly from archives.
5261
whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
5263
# Compiler flag to generate thread-safe objects.
5264
thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
5266
# Library versioning type.
5267
version_type=$version_type
5269
# Format of library name prefix.
5270
libname_spec=$lt_libname_spec
5272
# List of archive names. First name is the real one, the rest are links.
5273
# The last name is the one that the linker finds with -lNAME.
5274
library_names_spec=$lt_library_names_spec
5276
# The coded name of the library, if different from the real name.
5277
soname_spec=$lt_soname_spec
5279
# Commands used to build and install an old-style archive.
5281
old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
5282
old_postinstall_cmds=$lt_old_postinstall_cmds
5283
old_postuninstall_cmds=$lt_old_postuninstall_cmds
5285
# Create an old-style archive from a shared archive.
5286
old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
5288
# Create a temporary old-style archive to link instead of a shared archive.
5289
old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
5291
# Commands used to build and install a shared archive.
5292
archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
5293
archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
5294
postinstall_cmds=$lt_postinstall_cmds
5295
postuninstall_cmds=$lt_postuninstall_cmds
5297
# Commands used to build a loadable module (assumed same as above if empty)
5298
module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
5299
module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
5301
# Commands to strip libraries.
5302
old_striplib=$lt_old_striplib
5303
striplib=$lt_striplib
5305
# Dependencies to place before the objects being linked to create a
5307
predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
5309
# Dependencies to place after the objects being linked to create a
5311
postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
5313
# Dependencies to place before the objects being linked to create a
5315
predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
5317
# Dependencies to place after the objects being linked to create a
5319
postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
5321
# The directories searched by this compiler when creating a shared
5323
compiler_lib_search_dirs=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)
5325
# The library search path used internally by the compiler when linking
5327
compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
5329
# Method to check whether dependent libraries are shared objects.
5330
deplibs_check_method=$lt_deplibs_check_method
5332
# Command to use when deplibs_check_method == file_magic.
5333
file_magic_cmd=$lt_file_magic_cmd
5335
# Flag that allows shared libraries with undefined symbols to be built.
5336
allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
5338
# Flag that forces no undefined symbols.
5339
no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
5341
# Commands used to finish a libtool library installation in a directory.
5342
finish_cmds=$lt_finish_cmds
5344
# Same as above, but a single script fragment to be evaled but not shown.
5345
finish_eval=$lt_finish_eval
5347
# Take the output of nm and produce a listing of raw symbols and C names.
5348
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
5350
# Transform the output of nm in a proper C declaration
5351
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
5353
# Transform the output of nm in a C name address pair
5354
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
5356
# This is the shared library runtime path variable.
5357
runpath_var=$runpath_var
5359
# This is the shared library path variable.
5360
shlibpath_var=$shlibpath_var
5362
# Is shlibpath searched before the hard-coded library search path?
5363
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
5365
# How to hardcode a shared library path into an executable.
5366
hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
5368
# Whether we should hardcode library paths into libraries.
5369
hardcode_into_libs=$hardcode_into_libs
5371
# Flag to hardcode \$libdir into a binary during linking.
5372
# This must work even if \$libdir does not exist.
5373
hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
5375
# If ld is used when linking, flag to hardcode \$libdir into
5376
# a binary during linking. This must work even if \$libdir does
5378
hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
5380
# Whether we need a single -rpath flag with a separated argument.
5381
hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
5383
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
5385
hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
5387
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
5389
hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
5391
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
5392
# the resulting binary.
5393
hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
5395
# Set to yes if building a shared library automatically hardcodes DIR into the library
5396
# and all subsequent libraries and executables linked against it.
5397
hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
5399
# Variables whose values should be saved in libtool wrapper scripts and
5400
# restored at relink time.
5401
variables_saved_for_relink="$variables_saved_for_relink"
5403
# Whether libtool must link a program against all its dependency libraries.
5404
link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
5406
# Compile-time system search path for libraries
5407
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
5409
# Run-time system search path for libraries
5410
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
5412
# Fix the shell variable \$srcfile for the compiler.
5413
fix_srcfile_path=$lt_fix_srcfile_path
5415
# Set to yes if exported symbols are required.
5416
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
5418
# The commands to list exported symbols.
5419
export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
5421
# The commands to extract the exported symbol list from a shared archive.
5422
extract_expsyms_cmds=$lt_extract_expsyms_cmds
5424
# Symbols that should not be listed in the preloaded symbols.
5425
exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
5427
# Symbols that must always be exported.
5428
include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
5431
[# ### END LIBTOOL CONFIG],
5432
[# ### END LIBTOOL TAG CONFIG: $tagname])
5439
cat <<\EOF >> "$cfgfile"
5441
# AIX sometimes has problems with the GCC collect2 program. For some
5442
# reason, if we set the COLLECT_NAMES environment variable, the problems
5443
# vanish in a puff of smoke.
5444
if test "X${COLLECT_NAMES+set}" != Xset; then
5446
export COLLECT_NAMES
5452
# We use sed instead of cat because bash on DJGPP gets confused if
5453
# if finds mixed CR/LF and LF-only lines. Since sed operates in
5454
# text mode, it properly converts lines to CR/LF. This bash problem
5455
# is reportedly fixed, but why not run on old versions too?
5456
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
5458
mv -f "$cfgfile" "$ofile" || \
5459
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
5463
# If there is no Makefile yet, we rely on a make rule to execute
5464
# `config.status --recheck' to rerun these tests and create the
5465
# libtool script then.
5466
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
5467
if test -f "$ltmain_in"; then
5468
test -f Makefile && make "$ltmain"
5471
])# AC_LIBTOOL_CONFIG
5474
# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
5475
# -------------------------------------------
5476
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
5477
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
5479
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3960
5481
if test "$GCC" = yes; then
3961
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
5482
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
3963
_LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
5484
AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
3964
5485
lt_cv_prog_compiler_rtti_exceptions,
3965
5486
[-fno-rtti -fno-exceptions], [],
3966
[_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
5487
[_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
3968
_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
3969
[Compiler flag to turn off builtin functions])
3970
])# _LT_COMPILER_NO_RTTI
3973
# _LT_CMD_GLOBAL_SYMBOLS
3974
# ----------------------
3975
m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
3976
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3977
AC_REQUIRE([AC_PROG_CC])dnl
3978
AC_REQUIRE([LT_PATH_NM])dnl
3979
AC_REQUIRE([LT_PATH_LD])dnl
3980
m4_require([_LT_DECL_SED])dnl
3981
m4_require([_LT_DECL_EGREP])dnl
3982
m4_require([_LT_TAG_COMPILER])dnl
5489
])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
5492
# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
5493
# ---------------------------------
5494
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
5495
[AC_REQUIRE([AC_CANONICAL_HOST])
5496
AC_REQUIRE([LT_AC_PROG_SED])
5497
AC_REQUIRE([AC_PROG_NM])
5498
AC_REQUIRE([AC_OBJEXT])
3984
5499
# Check for command to grab the raw symbol name followed by C symbol from nm.
3985
5500
AC_MSG_CHECKING([command to parse $NM output from $compiler object])
3986
5501
AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
4629
6097
# +Z the default
4632
_LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
6100
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4635
6103
# Is there a better lt_prog_compiler_static that works with the bundled CC?
4636
_LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
6104
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4639
6107
irix5* | irix6* | nonstopux*)
4640
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6108
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4641
6109
# PIC (with -KPIC) is the default.
4642
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6110
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6114
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6115
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4645
6118
linux* | k*bsd*-gnu)
4646
6119
case $cc_basename in
4647
icc* | ecc* | ifort*)
4648
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4649
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4650
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
6121
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6122
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6123
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
4652
6125
pgcc* | pgf77* | pgf90* | pgf95*)
4653
6126
# Portland Group compilers (*not* the Pentium gcc compiler,
4654
6127
# which looks to be a dead project)
4655
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4656
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4657
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6128
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6129
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
6130
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4660
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6133
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4661
6134
# All Alpha code is PIC.
4662
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6135
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4665
# IBM XL C 8.0/Fortran 10.1 on PPC
4666
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4667
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4668
_LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4671
case `$CC -V 2>&1 | sed 5q` in
6138
case `$CC -V 2>&1 | sed 5q` in
4674
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4675
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4676
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6141
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6142
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6143
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4679
6146
# Sun Fortran 8.3 passes all unrecognized flags to the linker
4680
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4681
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4682
_LT_TAGVAR(lt_prog_compiler_wl, $1)=''
6147
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6148
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6149
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
4690
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4691
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4695
# QNX uses GNU C++, but need to define -shared option too, otherwise
4697
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4700
6156
osf3* | osf4* | osf5*)
4701
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6157
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4702
6158
# All OSF/1 code is PIC.
4703
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6159
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4707
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6163
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4711
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4712
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6167
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6168
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4713
6169
case $cc_basename in
4714
6170
f77* | f90* | f95*)
4715
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
6171
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
4717
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
6173
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
4722
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4723
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4724
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6178
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
6179
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
6180
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4727
6183
sysv4 | sysv4.2uw2* | sysv4.3*)
4728
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4729
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4730
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6184
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6185
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6186
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4734
6190
if test -d /usr/nec ;then
4735
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
4736
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6191
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
6192
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4740
6196
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
4741
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4742
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4743
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6197
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6198
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6199
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4747
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4748
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6203
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6204
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4752
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4753
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6208
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6209
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4757
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6213
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4763
# For platforms which do not support PIC, -DPIC is meaningless:
4765
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4768
_LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
4771
AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
4772
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
4773
[How to pass a linker flag through the compiler])
6218
AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
4776
6221
# Check to make sure the PIC flag actually works.
4778
if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4779
_LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
4780
[_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
4781
[$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
4782
[case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
6223
if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
6224
AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
6225
_LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1),
6226
[$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
6227
[case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
4784
*) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
6229
*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
4786
[_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4787
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
6231
[_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6232
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
4789
_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
4790
[Additional compiler flags for building library objects])
6235
# For platforms which do not support PIC, -DPIC is meaningless:
6237
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6240
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
4793
6245
# Check to make sure the static flag actually works.
4795
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
4796
_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
4797
_LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
6247
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
6248
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
6249
_LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1),
4798
6250
$lt_tmp_static_flag,
4800
[_LT_TAGVAR(lt_prog_compiler_static, $1)=])
4801
_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
4802
[Compiler flag to prevent dynamic linking])
4803
])# _LT_COMPILER_PIC
4806
# _LT_LINKER_SHLIBS([TAGNAME])
4807
# ----------------------------
6252
[_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
6256
# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
6257
# ------------------------------------
4808
6258
# See if the linker supports building shared libraries.
4809
m4_defun([_LT_LINKER_SHLIBS],
4810
[AC_REQUIRE([LT_PATH_LD])dnl
4811
AC_REQUIRE([LT_PATH_NM])dnl
4812
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
4813
m4_require([_LT_DECL_EGREP])dnl
4814
m4_require([_LT_DECL_SED])dnl
4815
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
4816
m4_require([_LT_TAG_COMPILER])dnl
6259
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
6260
[AC_REQUIRE([LT_AC_PROG_SED])dnl
4817
6261
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
4818
m4_if([$1], [CXX], [
4819
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6263
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4820
6264
case $host_os in
4822
6266
# If we're using GNU nm, then we don't want the "-C" option.
4823
6267
# -C means demangle to AIX nm, but means don't demangle with GNU nm
4824
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4825
_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'
6268
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6269
_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'
4827
_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'
6271
_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'
4831
_LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
6275
_LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
4833
6277
cygwin* | mingw*)
4834
_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'
6278
_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'
4836
6280
linux* | k*bsd*-gnu)
4837
_LT_TAGVAR(link_all_deplibs, $1)=no
6281
_LT_AC_TAGVAR(link_all_deplibs, $1)=no
4840
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6284
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4843
_LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
6287
_LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4846
_LT_TAGVAR(allow_undefined_flag, $1)=
4847
_LT_TAGVAR(always_export_symbols, $1)=no
4848
_LT_TAGVAR(archive_cmds, $1)=
4849
_LT_TAGVAR(archive_expsym_cmds, $1)=
4850
_LT_TAGVAR(compiler_needs_object, $1)=no
4851
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4852
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
4853
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4854
_LT_TAGVAR(hardcode_automatic, $1)=no
4855
_LT_TAGVAR(hardcode_direct, $1)=no
4856
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
4857
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4858
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4859
_LT_TAGVAR(hardcode_libdir_separator, $1)=
4860
_LT_TAGVAR(hardcode_minus_L, $1)=no
4861
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4862
_LT_TAGVAR(inherit_rpath, $1)=no
4863
_LT_TAGVAR(link_all_deplibs, $1)=unknown
4864
_LT_TAGVAR(module_cmds, $1)=
4865
_LT_TAGVAR(module_expsym_cmds, $1)=
4866
_LT_TAGVAR(old_archive_from_new_cmds, $1)=
4867
_LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
4868
_LT_TAGVAR(thread_safe_flag_spec, $1)=
4869
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6290
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
6291
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6292
_LT_AC_TAGVAR(archive_cmds, $1)=
6293
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
6294
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
6295
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
6296
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
6297
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6298
_LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
6299
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
6300
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6301
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
6302
_LT_AC_TAGVAR(hardcode_direct, $1)=no
6303
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
6304
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6305
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
6306
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
6307
_LT_AC_TAGVAR(module_cmds, $1)=
6308
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
6309
_LT_AC_TAGVAR(always_export_symbols, $1)=no
6310
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4870
6311
# include_expsyms should be a list of space-separated symbols to be *always*
4871
6312
# included in the symbol list
4872
_LT_TAGVAR(include_expsyms, $1)=
6313
_LT_AC_TAGVAR(include_expsyms, $1)=
4873
6314
# exclude_expsyms can be an extended regexp of symbols to exclude
4874
6315
# it will be wrapped by ` (' and `)$', so one must not match beginning or
4875
6316
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4876
6317
# as well as any symbol that contains `d'.
4877
_LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
6318
_LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4878
6319
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4879
6320
# platforms (ab)use it in PIC code, but their linkers get confused if
4880
6321
# the symbol is explicitly referenced. Since portable code cannot
5472
6916
irix5* | irix6* | nonstopux*)
5473
6917
if test "$GCC" = yes; then
5474
_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'
5475
# Try to use the -exported_symbol ld option, if it does not
5476
# work, assume that -exports_file does not work either and
5477
# implicitly export all symbols.
5478
save_LDFLAGS="$LDFLAGS"
5479
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5480
AC_LINK_IFELSE(int foo(void) {},
5481
_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'
5483
LDFLAGS="$save_LDFLAGS"
6918
_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'
5485
_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'
5486
_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'
6920
_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'
6921
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
5488
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5489
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5490
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5491
_LT_TAGVAR(inherit_rpath, $1)=yes
5492
_LT_TAGVAR(link_all_deplibs, $1)=yes
6923
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6924
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6925
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5495
6928
netbsd* | netbsdelf*-gnu)
5496
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5497
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6929
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6930
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5499
_LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6932
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5501
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5502
_LT_TAGVAR(hardcode_direct, $1)=yes
5503
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6934
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6935
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6936
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5507
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5508
_LT_TAGVAR(hardcode_direct, $1)=yes
5509
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5510
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5511
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6940
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6941
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6942
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6943
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6944
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5518
6948
if test -f /usr/libexec/ld.so; then
5519
_LT_TAGVAR(hardcode_direct, $1)=yes
5520
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5521
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5522
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5523
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5524
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
5525
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5526
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6949
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6950
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6951
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6952
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6953
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6954
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6955
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5528
6957
case $host_os in
5529
6958
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
5530
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5531
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6959
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6960
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5534
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5535
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6963
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6964
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5540
_LT_TAGVAR(ld_shlibs, $1)=no
6969
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5545
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5546
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5547
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5548
_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'
5549
_LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6974
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6975
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6976
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6977
_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'
6978
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5553
6982
if test "$GCC" = yes; then
5554
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5555
_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'
6983
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6984
_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'
5557
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5558
_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'
6986
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6987
_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'
5560
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5561
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5562
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6989
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6990
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5565
6993
osf4* | osf5*) # as osf3* with the addition of -msym flag
5566
6994
if test "$GCC" = yes; then
5567
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5568
_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'
5569
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6995
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6996
_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'
6997
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5571
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5572
_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'
5573
_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~
5574
$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'
6999
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
7000
_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'
7001
_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~
7002
$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'
5576
7004
# Both c and cxx compiler support -rpath directly
5577
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
7005
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5579
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5580
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
7007
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5584
_LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
7011
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
5585
7012
if test "$GCC" = yes; then
5587
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5588
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5589
$CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7014
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7015
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7016
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
5591
case `$CC -V 2>&1` in
5594
_LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5595
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5596
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
5600
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
5601
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5602
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7019
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7020
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7021
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5606
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5607
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7023
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7024
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5608
7025
case $host_os in
5609
7026
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
5611
7028
# The compiler driver will combine and reorder linker options,
5612
7029
# but understands `-z linker_flag'. GCC discards it without `$wl',
5613
7030
# but is careful enough not to reorder.
5614
# Supported since Solaris 2.6 (maybe 2.5.1?)
7031
# Supported since Solaris 2.6 (maybe 2.5.1?)
5615
7032
if test "$GCC" = yes; then
5616
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7033
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
5618
_LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
7035
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
5622
_LT_TAGVAR(link_all_deplibs, $1)=yes
7039
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5626
7043
if test "x$host_vendor" = xsequent; then
5627
7044
# Use $CC to link under sequent, because it throws in some extra .o
5628
7045
# files that make .init and .fini sections work.
5629
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7046
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5631
_LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7048
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5633
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5634
_LT_TAGVAR(hardcode_direct, $1)=yes
5635
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5636
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7050
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7051
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
7052
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7053
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5640
7057
case $host_vendor in
5642
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5643
_LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
7059
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7060
_LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
5646
7063
## LD is ld it makes a PLAMLIB
5647
7064
## CC just makes a GrossModule.
5648
_LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5649
_LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
5650
_LT_TAGVAR(hardcode_direct, $1)=no
7065
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7066
_LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
7067
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5653
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5654
_LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
7070
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7071
_LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
5657
7074
runpath_var='LD_RUN_PATH'
5658
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7075
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5662
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5663
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5664
_LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
7079
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7080
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7081
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
5668
7085
if test -d /usr/nec; then
5669
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5670
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7086
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7087
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5671
7088
runpath_var=LD_RUN_PATH
5672
7089
hardcode_runpath_var=yes
5673
_LT_TAGVAR(ld_shlibs, $1)=yes
7090
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
5677
7094
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
5678
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5679
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5680
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7095
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7096
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7097
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5681
7098
runpath_var='LD_RUN_PATH'
5683
7100
if test "$GCC" = yes; then
5684
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5685
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7101
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7102
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5687
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5688
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7104
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7105
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5772
7174
libobjs=conftest.$ac_objext
5774
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5775
pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
7176
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
7177
pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
5776
7178
compiler_flags=-v
5777
7179
linker_flags=-v
5779
7181
output_objdir=.
5780
7182
libname=conftest
5781
lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5782
_LT_TAGVAR(allow_undefined_flag, $1)=
5783
if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
7183
lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
7184
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
7185
if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
5785
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7187
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5787
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
7189
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
5789
_LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
7191
_LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5791
7193
cat conftest.err 1>&5
5794
AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
7196
AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
5801
_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
5802
[Whether or not to add -lc for building shared libraries])
5803
_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
5804
[enable_shared_with_static_runtimes], [0],
5805
[Whether or not to disallow shared libs when runtime libs are static])
5806
_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
5807
[Compiler flag to allow reflexive dlopens])
5808
_LT_TAGDECL([], [whole_archive_flag_spec], [1],
5809
[Compiler flag to generate shared objects directly from archives])
5810
_LT_TAGDECL([], [compiler_needs_object], [1],
5811
[Whether the compiler copes with passing no objects directly])
5812
_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
5813
[Create an old-style archive from a shared archive])
5814
_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
5815
[Create a temporary old-style archive to link instead of a shared archive])
5816
_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
5817
_LT_TAGDECL([], [archive_expsym_cmds], [2])
5818
_LT_TAGDECL([], [module_cmds], [2],
5819
[Commands used to build a loadable module if different from building
5821
_LT_TAGDECL([], [module_expsym_cmds], [2])
5822
_LT_TAGDECL([], [with_gnu_ld], [1],
5823
[Whether we are building with GNU ld or not])
5824
_LT_TAGDECL([], [allow_undefined_flag], [1],
5825
[Flag that allows shared libraries with undefined symbols to be built])
5826
_LT_TAGDECL([], [no_undefined_flag], [1],
5827
[Flag that enforces no undefined symbols])
5828
_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
5829
[Flag to hardcode $libdir into a binary during linking.
5830
This must work even if $libdir does not exist])
5831
_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
5832
[[If ld is used when linking, flag to hardcode $libdir into a binary
5833
during linking. This must work even if $libdir does not exist]])
5834
_LT_TAGDECL([], [hardcode_libdir_separator], [1],
5835
[Whether we need a single "-rpath" flag with a separated argument])
5836
_LT_TAGDECL([], [hardcode_direct], [0],
5837
[Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
5838
DIR into the resulting binary])
5839
_LT_TAGDECL([], [hardcode_direct_absolute], [0],
5840
[Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
5841
DIR into the resulting binary and the resulting library dependency is
5842
"absolute", i.e impossible to change by setting ${shlibpath_var} if the
5843
library is relocated])
5844
_LT_TAGDECL([], [hardcode_minus_L], [0],
5845
[Set to "yes" if using the -LDIR flag during linking hardcodes DIR
5846
into the resulting binary])
5847
_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
5848
[Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
5849
into the resulting binary])
5850
_LT_TAGDECL([], [hardcode_automatic], [0],
5851
[Set to "yes" if building a shared library automatically hardcodes DIR
5852
into the library and all subsequent libraries and executables linked
5854
_LT_TAGDECL([], [inherit_rpath], [0],
5855
[Set to yes if linker adds runtime paths of dependent libraries
5856
to runtime path list])
5857
_LT_TAGDECL([], [link_all_deplibs], [0],
5858
[Whether libtool must link a program against all its dependency libraries])
5859
_LT_TAGDECL([], [fix_srcfile_path], [1],
5860
[Fix the shell variable $srcfile for the compiler])
5861
_LT_TAGDECL([], [always_export_symbols], [0],
5862
[Set to "yes" if exported symbols are required])
5863
_LT_TAGDECL([], [export_symbols_cmds], [2],
5864
[The commands to list exported symbols])
5865
_LT_TAGDECL([], [exclude_expsyms], [1],
5866
[Symbols that should not be listed in the preloaded symbols])
5867
_LT_TAGDECL([], [include_expsyms], [1],
5868
[Symbols that must always be exported])
5869
_LT_TAGDECL([], [prelink_cmds], [2],
5870
[Commands necessary for linking programs (against libraries) with templates])
5871
_LT_TAGDECL([], [file_list_spec], [1],
5872
[Specify filename containing input files])
5873
dnl FIXME: Not yet implemented
5874
dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
5875
dnl [Compiler flag to generate thread safe objects])
5876
])# _LT_LINKER_SHLIBS
5879
# _LT_LANG_C_CONFIG([TAG])
5880
# ------------------------
5881
# Ensure that the configuration variables for a C compiler are suitably
5882
# defined. These variables are subsequently used by _LT_CONFIG to write
5883
# the compiler configuration to `libtool'.
5884
m4_defun([_LT_LANG_C_CONFIG],
5885
[m4_require([_LT_DECL_EGREP])dnl
5889
# Source file extension for C test sources.
5892
# Object file extension for compiled C test sources.
5894
_LT_TAGVAR(objext, $1)=$objext
5896
# Code to be used in simple compile tests
5897
lt_simple_compile_test_code="int some_variable = 0;"
5899
# Code to be used in simple link tests
5900
lt_simple_link_test_code='int main(){return(0);}'
5903
# Save the default compiler, since it gets overwritten when the other
5904
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
5905
compiler_DEFAULT=$CC
5907
# save warnings/boilerplate of simple test code
5908
_LT_COMPILER_BOILERPLATE
5909
_LT_LINKER_BOILERPLATE
5911
if test -n "$compiler"; then
5912
_LT_COMPILER_NO_RTTI($1)
5913
_LT_COMPILER_PIC($1)
5914
_LT_COMPILER_C_O($1)
5915
_LT_COMPILER_FILE_LOCKS($1)
5916
_LT_LINKER_SHLIBS($1)
5917
_LT_SYS_DYNAMIC_LINKER($1)
5918
_LT_LINKER_HARDCODE_LIBPATH($1)
5922
# Report which library types will actually be built
5923
AC_MSG_CHECKING([if libtool supports shared libraries])
5924
AC_MSG_RESULT([$can_build_shared])
5926
AC_MSG_CHECKING([whether to build shared libraries])
5927
test "$can_build_shared" = "no" && enable_shared=no
5929
# On AIX, shared libraries and static libraries use the same namespace, and
5930
# are all built from PIC.
5933
test "$enable_shared" = yes && enable_static=no
5934
if test -n "$RANLIB"; then
5935
archive_cmds="$archive_cmds~\$RANLIB \$lib"
5936
postinstall_cmds='$RANLIB $lib'
5941
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5942
test "$enable_shared" = yes && enable_static=no
5946
AC_MSG_RESULT([$enable_shared])
5948
AC_MSG_CHECKING([whether to build static libraries])
5949
# Make sure either enable_shared or enable_static is yes.
5950
test "$enable_shared" = yes || enable_static=yes
5951
AC_MSG_RESULT([$enable_static])
5957
])# _LT_LANG_C_CONFIG
5962
# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
5963
# compiler, we have our own version here.
5964
m4_defun([_LT_PROG_CXX],
5966
pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
5968
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5969
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5970
(test "X$CXX" != "Xg++"))) ; then
5973
_lt_caught_CXX_error=yes
5975
popdef([AC_MSG_ERROR])
5978
dnl aclocal-1.4 backwards compatibility:
5979
dnl AC_DEFUN([_LT_PROG_CXX], [])
5982
# _LT_LANG_CXX_CONFIG([TAG])
5983
# --------------------------
5984
# Ensure that the configuration variables for a C++ compiler are suitably
5985
# defined. These variables are subsequently used by _LT_CONFIG to write
5986
# the compiler configuration to `libtool'.
5987
m4_defun([_LT_LANG_CXX_CONFIG],
5988
[AC_REQUIRE([_LT_PROG_CXX])dnl
5989
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5990
m4_require([_LT_DECL_EGREP])dnl
5993
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5994
_LT_TAGVAR(allow_undefined_flag, $1)=
5995
_LT_TAGVAR(always_export_symbols, $1)=no
5996
_LT_TAGVAR(archive_expsym_cmds, $1)=
5997
_LT_TAGVAR(compiler_needs_object, $1)=no
5998
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
5999
_LT_TAGVAR(hardcode_direct, $1)=no
6000
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
6001
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6002
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6003
_LT_TAGVAR(hardcode_libdir_separator, $1)=
6004
_LT_TAGVAR(hardcode_minus_L, $1)=no
6005
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6006
_LT_TAGVAR(hardcode_automatic, $1)=no
6007
_LT_TAGVAR(inherit_rpath, $1)=no
6008
_LT_TAGVAR(module_cmds, $1)=
6009
_LT_TAGVAR(module_expsym_cmds, $1)=
6010
_LT_TAGVAR(link_all_deplibs, $1)=unknown
6011
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6012
_LT_TAGVAR(no_undefined_flag, $1)=
6013
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6014
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6016
# Source file extension for C++ test sources.
6019
# Object file extension for compiled C++ test sources.
6021
_LT_TAGVAR(objext, $1)=$objext
6023
# No sense in running all these tests if we already determined that
6024
# the CXX compiler isn't working. Some variables (like enable_shared)
6025
# are currently assumed to apply to all compilers on this platform,
6026
# and will be corrupted by setting them based on a non-working compiler.
6027
if test "$_lt_caught_CXX_error" != yes; then
6028
# Code to be used in simple compile tests
6029
lt_simple_compile_test_code="int some_variable = 0;"
6031
# Code to be used in simple link tests
6032
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
6034
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
6037
# save warnings/boilerplate of simple test code
6038
_LT_COMPILER_BOILERPLATE
6039
_LT_LINKER_BOILERPLATE
6041
# Allow CC to be a program name with arguments.
6046
lt_save_with_gnu_ld=$with_gnu_ld
6047
lt_save_path_LD=$lt_cv_path_LD
6048
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
6049
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
6051
$as_unset lt_cv_prog_gnu_ld
6053
if test -n "${lt_cv_path_LDCXX+set}"; then
6054
lt_cv_path_LD=$lt_cv_path_LDCXX
6056
$as_unset lt_cv_path_LD
6058
test -z "${LDCXX+set}" || LD=$LDCXX
6061
_LT_TAGVAR(compiler, $1)=$CC
6062
_LT_CC_BASENAME([$compiler])
6064
if test -n "$compiler"; then
6065
# We don't want -fno-exception when compiling C++ code, so set the
6066
# no_builtin_flag separately
6067
if test "$GXX" = yes; then
6068
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
6070
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
6073
if test "$GXX" = yes; then
6074
# Set up default GNU C++ configuration
6078
# Check if GNU C++ uses GNU ld as the underlying linker, since the
6079
# archiving commands below assume that GNU ld is being used.
6080
if test "$with_gnu_ld" = yes; then
6081
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6082
_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'
6084
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6085
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6087
# If archive_cmds runs LD, not CC, wlarc should be empty
6088
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
6089
# investigate it a little bit more. (MM)
6092
# ancient GNU ld didn't support --whole-archive et. al.
6093
if eval "`$CC -print-prog-name=ld` --help 2>&1" |
6094
$GREP 'no-whole-archive' > /dev/null; then
6095
_LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6097
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6103
# A generic and very simple default shared library creation
6104
# command for GNU C++ for the case where it uses the native
6105
# linker, instead of GNU ld. If possible, this setting should
6106
# overridden to take advantage of the native linker features on
6107
# the platform it is being used on.
6108
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6111
# Commands to make compiler produce verbose output that lists
6112
# what "hidden" libraries, object files and flags are used when
6113
# linking a shared library.
6114
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6122
# PORTME: fill in a description of your system's C++ link characteristics
6123
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
6124
_LT_TAGVAR(ld_shlibs, $1)=yes
6127
# FIXME: insert proper C++ library support
6128
_LT_TAGVAR(ld_shlibs, $1)=no
6131
if test "$host_cpu" = ia64; then
6132
# On IA64, the linker does run time linking by default, so we don't
6133
# have to do anything special.
6134
aix_use_runtimelinking=no
6135
exp_sym_flag='-Bexport'
6138
aix_use_runtimelinking=no
6140
# Test if we are trying to use run time linking or normal
6141
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
6142
# need to do runtime linking.
6143
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
6144
for ld_flag in $LDFLAGS; do
6147
aix_use_runtimelinking=yes
6155
exp_sym_flag='-bexport'
6156
no_entry_flag='-bnoentry'
6159
# When large executables or shared objects are built, AIX ld can
6160
# have problems creating the table of contents. If linking a library
6161
# or program results in "error TOC overflow" add -mminimal-toc to
6162
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6163
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6165
_LT_TAGVAR(archive_cmds, $1)=''
6166
_LT_TAGVAR(hardcode_direct, $1)=yes
6167
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6168
_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6169
_LT_TAGVAR(link_all_deplibs, $1)=yes
6170
_LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
6172
if test "$GXX" = yes; then
6173
case $host_os in aix4.[[012]]|aix4.[[012]].*)
6174
# We only want to do this on AIX 4.2 and lower, the check
6175
# below for broken collect2 doesn't work under 4.3+
6176
collect2name=`${CC} -print-prog-name=collect2`
6177
if test -f "$collect2name" &&
6178
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
6180
# We have reworked collect2
6183
# We have old collect2
6184
_LT_TAGVAR(hardcode_direct, $1)=unsupported
6185
# It fails to find uninstalled libraries when the uninstalled
6186
# path is not listed in the libpath. Setting hardcode_minus_L
6187
# to unsupported forces relinking
6188
_LT_TAGVAR(hardcode_minus_L, $1)=yes
6189
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6190
_LT_TAGVAR(hardcode_libdir_separator, $1)=
6193
shared_flag='-shared'
6194
if test "$aix_use_runtimelinking" = yes; then
6195
shared_flag="$shared_flag "'${wl}-G'
6199
if test "$host_cpu" = ia64; then
6200
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6201
# chokes on -Wl,-G. The following line is correct:
6204
if test "$aix_use_runtimelinking" = yes; then
6205
shared_flag='${wl}-G'
6207
shared_flag='${wl}-bM:SRE'
6212
# It seems that -bexpall does not export symbols beginning with
6213
# underscore (_), so it is better to generate a list of symbols to
6215
_LT_TAGVAR(always_export_symbols, $1)=yes
6216
if test "$aix_use_runtimelinking" = yes; then
6217
# Warning - without using the other runtime loading flags (-brtl),
6218
# -berok will link without error, but may produce a broken library.
6219
_LT_TAGVAR(allow_undefined_flag, $1)='-berok'
6220
# Determine the default libpath from the value encoded in an empty
6222
_LT_SYS_MODULE_PATH_AIX
6223
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6225
_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"
6227
if test "$host_cpu" = ia64; then
6228
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6229
_LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6230
_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"
6232
# Determine the default libpath from the value encoded in an
6234
_LT_SYS_MODULE_PATH_AIX
6235
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6236
# Warning - without using the other run time loading flags,
6237
# -berok will link without error, but may produce a broken library.
6238
_LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6239
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6240
# Exported symbols can be pulled into shared objects from archives
6241
_LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6242
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6243
# This is similar to how AIX traditionally builds its shared
6245
_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'
6251
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6252
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6253
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6254
# support --undefined. This deserves some investigation. FIXME
6255
_LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6257
_LT_TAGVAR(ld_shlibs, $1)=no
6262
case $cc_basename in
6264
# FIXME: insert proper C++ library support
6265
_LT_TAGVAR(ld_shlibs, $1)=no
6270
cygwin* | mingw* | pw32*)
6271
# _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6272
# as there is no search path for DLLs.
6273
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6274
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6275
_LT_TAGVAR(always_export_symbols, $1)=no
6276
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6278
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6279
_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'
6280
# If the export-symbols file already is a .def file (1st line
6281
# is EXPORTS), use it as is; otherwise, prepend...
6282
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6283
cp $export_symbols $output_objdir/$soname.def;
6285
echo EXPORTS > $output_objdir/$soname.def;
6286
cat $export_symbols >> $output_objdir/$soname.def;
6288
$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'
6290
_LT_TAGVAR(ld_shlibs, $1)=no
6293
darwin* | rhapsody*)
6294
_LT_DARWIN_LINKER_FEATURES($1)
6298
case $cc_basename in
6300
# FIXME: insert proper C++ library support
6301
_LT_TAGVAR(ld_shlibs, $1)=no
6304
# Green Hills C++ Compiler
6305
# FIXME: insert proper C++ library support
6306
_LT_TAGVAR(ld_shlibs, $1)=no
6309
# FIXME: insert proper C++ library support
6310
_LT_TAGVAR(ld_shlibs, $1)=no
6316
# C++ shared libraries reported to be fairly broken before
6318
_LT_TAGVAR(ld_shlibs, $1)=no
6322
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6325
freebsd* | dragonfly*)
6326
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
6328
_LT_TAGVAR(ld_shlibs, $1)=yes
6335
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6336
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6337
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6338
_LT_TAGVAR(hardcode_direct, $1)=yes
6339
_LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6340
# but as the default
6341
# location of the library.
6343
case $cc_basename in
6345
# FIXME: insert proper C++ library support
6346
_LT_TAGVAR(ld_shlibs, $1)=no
6349
_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'
6350
# Commands to make compiler produce verbose output that lists
6351
# what "hidden" libraries, object files and flags are used when
6352
# linking a shared library.
6354
# There doesn't appear to be a way to prevent this compiler from
6355
# explicitly linking system object files so we need to strip them
6356
# from the output so that they don't get included in the library
6358
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'
6361
if test "$GXX" = yes; then
6362
_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'
6364
# FIXME: insert proper C++ library support
6365
_LT_TAGVAR(ld_shlibs, $1)=no
6372
if test $with_gnu_ld = no; then
6373
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6374
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6380
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6386
_LT_TAGVAR(hardcode_direct, $1)=no
6387
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6390
_LT_TAGVAR(hardcode_direct, $1)=yes
6391
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6392
_LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6393
# but as the default
6394
# location of the library.
6398
case $cc_basename in
6400
# FIXME: insert proper C++ library support
6401
_LT_TAGVAR(ld_shlibs, $1)=no
6406
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6409
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6412
_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'
6415
# Commands to make compiler produce verbose output that lists
6416
# what "hidden" libraries, object files and flags are used when
6417
# linking a shared library.
6419
# There doesn't appear to be a way to prevent this compiler from
6420
# explicitly linking system object files so we need to strip them
6421
# from the output so that they don't get included in the library
6423
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'
6426
if test "$GXX" = yes; then
6427
if test $with_gnu_ld = no; then
6430
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6433
_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'
6436
_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'
6441
# FIXME: insert proper C++ library support
6442
_LT_TAGVAR(ld_shlibs, $1)=no
6449
_LT_TAGVAR(hardcode_direct, $1)=no
6450
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6451
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6452
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6453
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6454
# Instead, shared libraries are loaded at an image base (0x10000000 by
6455
# default) and relocated if they conflict, which is a slow very memory
6456
# consuming and fragmenting process. To avoid this, we pick a random,
6457
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6458
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
6459
_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'
6460
_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'
6463
case $cc_basename in
6466
_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'
6468
# Archives containing C++ object files must be created using
6469
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
6470
# necessary to make sure instantiated templates are included
6472
_LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
6475
if test "$GXX" = yes; then
6476
if test "$with_gnu_ld" = no; then
6477
_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'
6479
_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'
6482
_LT_TAGVAR(link_all_deplibs, $1)=yes
6485
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6486
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6487
_LT_TAGVAR(inherit_rpath, $1)=yes
6490
linux* | k*bsd*-gnu)
6491
case $cc_basename in
6493
# Kuck and Associates, Inc. (KAI) C++ Compiler
6495
# KCC will only create a shared library if the output file
6496
# ends with ".so" (or ".sl" for HP-UX), so rename the library
6497
# to its proper name (with version) after linking.
6498
_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'
6499
_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'
6500
# Commands to make compiler produce verbose output that lists
6501
# what "hidden" libraries, object files and flags are used when
6502
# linking a shared library.
6504
# There doesn't appear to be a way to prevent this compiler from
6505
# explicitly linking system object files so we need to strip them
6506
# from the output so that they don't get included in the library
6508
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'
6510
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6511
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6513
# Archives containing C++ object files must be created using
6514
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
6515
_LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
6520
# version 8.0 and above of icpc choke on multiply defined symbols
6521
# if we add $predep_objects and $postdep_objects, however 7.1 and
6522
# earlier do not add the objects themselves.
6523
case `$CC -V 2>&1` in
6525
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6526
_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'
6528
*) # Version 8.0 or newer
6531
ia64*) tmp_idyn=' -i_dynamic';;
6533
_LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6534
_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'
6537
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6538
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6539
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6540
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6543
# Portland Group C++ compiler
6545
*pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
6546
_LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
6548
$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
6549
compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
6550
_LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
6552
$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
6553
$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
6555
_LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
6557
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6558
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6559
_LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
6561
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6562
$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'
6564
*) # Version 6 will use weak symbols
6565
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6566
_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'
6570
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6571
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6572
_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'
6576
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6577
_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'
6579
runpath_var=LD_RUN_PATH
6580
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6581
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6583
# Commands to make compiler produce verbose output that lists
6584
# what "hidden" libraries, object files and flags are used when
6585
# linking a shared library.
6587
# There doesn't appear to be a way to prevent this compiler from
6588
# explicitly linking system object files so we need to strip them
6589
# from the output so that they don't get included in the library
6591
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'
6594
# IBM XL 8.0 on PPC, with GNU ld
6595
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6596
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6597
_LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6598
if test "x$supports_anon_versioning" = xyes; then
6599
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
6600
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6601
echo "local: *; };" >> $output_objdir/$libname.ver~
6602
$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6606
case `$CC -V 2>&1 | sed 5q` in
6609
_LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6610
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6611
_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'
6612
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6613
_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'
6614
_LT_TAGVAR(compiler_needs_object, $1)=yes
6616
# Not sure whether something based on
6617
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
6619
output_verbose_link_cmd='echo'
6621
# Archives containing C++ object files must be created using
6622
# "CC -xar", where "CC" is the Sun C++ compiler. This is
6623
# necessary to make sure instantiated templates are included
6625
_LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6633
# FIXME: insert proper C++ library support
6634
_LT_TAGVAR(ld_shlibs, $1)=no
6638
# FIXME: insert proper C++ library support
6639
_LT_TAGVAR(ld_shlibs, $1)=no
6643
case $cc_basename in
6645
# FIXME: insert proper C++ library support
6646
_LT_TAGVAR(ld_shlibs, $1)=no
6649
# FIXME: insert proper C++ library support
6650
_LT_TAGVAR(ld_shlibs, $1)=no
6656
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6657
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
6659
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6660
_LT_TAGVAR(hardcode_direct, $1)=yes
6661
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6663
# Workaround some broken pre-1.5 toolchains
6664
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
6668
_LT_TAGVAR(ld_shlibs, $1)=yes
6672
# C++ shared libraries are fairly broken
6673
_LT_TAGVAR(ld_shlibs, $1)=no
6677
if test -f /usr/libexec/ld.so; then
6678
_LT_TAGVAR(hardcode_direct, $1)=yes
6679
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6680
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6681
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6682
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6683
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6684
_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'
6685
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6686
_LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6688
output_verbose_link_cmd=echo
6690
_LT_TAGVAR(ld_shlibs, $1)=no
6694
osf3* | osf4* | osf5*)
6695
case $cc_basename in
6697
# Kuck and Associates, Inc. (KAI) C++ Compiler
6699
# KCC will only create a shared library if the output file
6700
# ends with ".so" (or ".sl" for HP-UX), so rename the library
6701
# to its proper name (with version) after linking.
6702
_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'
6704
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6705
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6707
# Archives containing C++ object files must be created using
6708
# the KAI C++ compiler.
6710
osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
6711
*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
6715
# Rational C++ 2.4.1
6716
# FIXME: insert proper C++ library support
6717
_LT_TAGVAR(ld_shlibs, $1)=no
6722
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6723
_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'
6724
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6727
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6728
_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'
6729
_LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
6730
echo "-hidden">> $lib.exp~
6731
$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~
6733
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6737
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6739
# Commands to make compiler produce verbose output that lists
6740
# what "hidden" libraries, object files and flags are used when
6741
# linking a shared library.
6743
# There doesn't appear to be a way to prevent this compiler from
6744
# explicitly linking system object files so we need to strip them
6745
# from the output so that they don't get included in the library
6747
output_verbose_link_cmd='templist=`$CC -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'
6750
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6751
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6754
_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'
6757
_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'
6761
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6762
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6764
# Commands to make compiler produce verbose output that lists
6765
# what "hidden" libraries, object files and flags are used when
6766
# linking a shared library.
6767
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6770
# FIXME: insert proper C++ library support
6771
_LT_TAGVAR(ld_shlibs, $1)=no
6778
# FIXME: insert proper C++ library support
6779
_LT_TAGVAR(ld_shlibs, $1)=no
6783
case $cc_basename in
6786
# FIXME: insert proper C++ library support
6787
_LT_TAGVAR(ld_shlibs, $1)=no
6791
# FIXME: insert proper C++ library support
6792
_LT_TAGVAR(ld_shlibs, $1)=no
6795
# FIXME: insert proper C++ library support
6796
_LT_TAGVAR(ld_shlibs, $1)=no
6802
case $cc_basename in
6804
# Sun C++ 4.2, 5.x and Centerline C++
6805
_LT_TAGVAR(archive_cmds_need_lc,$1)=yes
6806
_LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6807
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6808
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6809
$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'
6811
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6812
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6814
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6816
# The compiler driver will combine and reorder linker options,
6817
# but understands `-z linker_flag'.
6818
# Supported since Solaris 2.6 (maybe 2.5.1?)
6819
_LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6822
_LT_TAGVAR(link_all_deplibs, $1)=yes
6824
output_verbose_link_cmd='echo'
6826
# Archives containing C++ object files must be created using
6827
# "CC -xar", where "CC" is the Sun C++ compiler. This is
6828
# necessary to make sure instantiated templates are included
6830
_LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6833
# Green Hills C++ Compiler
6834
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6836
# The C++ compiler must be used to create the archive.
6837
_LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
6840
# GNU C++ compiler with Solaris linker
6841
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6842
_LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
6843
if $CC --version | $GREP -v '^2\.7' > /dev/null; then
6844
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6845
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6846
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
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.
6851
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6853
# g++ 2.7 appears to require `-G' NOT `-shared' on this
6855
_LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6856
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6857
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6859
# Commands to make compiler produce verbose output that lists
6860
# what "hidden" libraries, object files and flags are used when
6861
# linking a shared library.
6862
output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6865
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
6867
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6869
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6877
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6878
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6879
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6880
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6881
runpath_var='LD_RUN_PATH'
6883
case $cc_basename in
6885
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6886
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6889
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6890
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6895
sysv5* | sco3.2v5* | sco5v6*)
6896
# Note: We can NOT use -z defs as we might desire, because we do not
6897
# link with -lc, and that would cause any symbols used from libc to
6898
# always be unresolved, which means just about no library would
6899
# ever link correctly. If we're not using GNU ld we use -z text
6900
# though, which does catch some bad symbols but isn't as heavy-handed
6902
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6903
_LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6904
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6905
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6906
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
6907
_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6908
_LT_TAGVAR(link_all_deplibs, $1)=yes
6909
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6910
runpath_var='LD_RUN_PATH'
6912
case $cc_basename in
6914
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6915
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6918
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6919
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6925
case $cc_basename in
6927
# NonStop-UX NCC 3.20
6928
# FIXME: insert proper C++ library support
6929
_LT_TAGVAR(ld_shlibs, $1)=no
6932
# FIXME: insert proper C++ library support
6933
_LT_TAGVAR(ld_shlibs, $1)=no
6939
# FIXME: insert proper C++ library support
6940
_LT_TAGVAR(ld_shlibs, $1)=no
6944
# FIXME: insert proper C++ library support
6945
_LT_TAGVAR(ld_shlibs, $1)=no
6949
AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
6950
test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6952
_LT_TAGVAR(GCC, $1)="$GXX"
6953
_LT_TAGVAR(LD, $1)="$LD"
6956
## There is no encapsulation within the following macros, do not change
6957
## the running order or otherwise move them around unless you know exactly
6958
## what you are doing...
6959
_LT_SYS_HIDDEN_LIBDEPS($1)
6960
_LT_COMPILER_PIC($1)
6961
_LT_COMPILER_C_O($1)
6962
_LT_COMPILER_FILE_LOCKS($1)
6963
_LT_LINKER_SHLIBS($1)
6964
_LT_SYS_DYNAMIC_LINKER($1)
6965
_LT_LINKER_HARDCODE_LIBPATH($1)
6968
fi # test -n "$compiler"
6974
with_gnu_ld=$lt_save_with_gnu_ld
6975
lt_cv_path_LDCXX=$lt_cv_path_LD
6976
lt_cv_path_LD=$lt_save_path_LD
6977
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
6978
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
6979
fi # test "$_lt_caught_CXX_error" != yes
6982
])# _LT_LANG_CXX_CONFIG
6985
# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
7202
])# AC_LIBTOOL_PROG_LD_SHLIBS
7205
# _LT_AC_FILE_LTDLL_C
7206
# -------------------
7207
# Be careful that the start marker always follows a newline.
7208
AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
7209
# /* ltdll.c starts here */
7210
# #define WIN32_LEAN_AND_MEAN
7211
# #include <windows.h>
7212
# #undef WIN32_LEAN_AND_MEAN
7213
# #include <stdio.h>
7215
# #ifndef __CYGWIN__
7216
# # ifdef __CYGWIN32__
7217
# # define __CYGWIN__ __CYGWIN32__
7221
# #ifdef __cplusplus
7224
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7225
# #ifdef __cplusplus
7230
# #include <cygwin/cygwin_dll.h>
7231
# DECLARE_CYGWIN_DLL( DllMain );
7233
# HINSTANCE __hDllInstance_base;
7236
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7238
# __hDllInstance_base = hInst;
7241
# /* ltdll.c ends here */
7242
])# _LT_AC_FILE_LTDLL_C
7245
# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
6986
7246
# ---------------------------------
6987
# Figure out "hidden" library dependencies from verbose
6988
# compiler output when linking a shared library.
6989
# Parse the compiler output and extract the necessary
6990
# objects, libraries and library flags.
6991
m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
6992
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6993
# Dependencies to place before and after the object being linked:
6994
_LT_TAGVAR(predep_objects, $1)=
6995
_LT_TAGVAR(postdep_objects, $1)=
6996
_LT_TAGVAR(predeps, $1)=
6997
_LT_TAGVAR(postdeps, $1)=
6998
_LT_TAGVAR(compiler_lib_search_path, $1)=
7000
dnl we can't use the lt_simple_compile_test_code here,
7001
dnl because it contains code intended for an executable,
7002
dnl not a library. It's possible we should let each
7003
dnl tag define a new lt_????_link_test_code variable,
7004
dnl but it's only used here...
7005
m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
7007
void foo (void) { a = 0; }
7009
], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
7013
Foo (void) { a = 0; }
7018
], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
7026
], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
7034
], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
7037
public void bar (void) {
7043
dnl Parse the compiler output and extract the necessary
7044
dnl objects, libraries and library flags.
7045
if AC_TRY_EVAL(ac_compile); then
7046
# Parse the compiler output and extract the necessary
7047
# objects, libraries and library flags.
7049
# Sentinel used to keep track of whether or not we are before
7050
# the conftest object file.
7051
pre_test_object_deps_done=no
7053
for p in `eval "$output_verbose_link_cmd"`; do
7057
# Some compilers place space between "-{L,R}" and the path.
7059
if test $p = "-L" ||
7060
test $p = "-R"; then
7067
if test "$pre_test_object_deps_done" = no; then
7070
# Internal compiler library paths should come after those
7071
# provided the user. The postdeps already come after the
7072
# user supplied libs so there is no need to process them.
7073
if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
7074
_LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
7076
_LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
7079
# The "-l" case would never come before the object being
7080
# linked, so don't bother handling this case.
7083
if test -z "$_LT_TAGVAR(postdeps, $1)"; then
7084
_LT_TAGVAR(postdeps, $1)="${prev}${p}"
7086
_LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
7092
# This assumes that the test object file only shows up
7093
# once in the compiler output.
7094
if test "$p" = "conftest.$objext"; then
7095
pre_test_object_deps_done=yes
7099
if test "$pre_test_object_deps_done" = no; then
7100
if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
7101
_LT_TAGVAR(predep_objects, $1)="$p"
7103
_LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
7106
if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
7107
_LT_TAGVAR(postdep_objects, $1)="$p"
7109
_LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
7114
*) ;; # Ignore the rest.
7247
AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
7251
AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
7252
AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
7253
AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
7254
AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
7255
AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
7256
AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
7257
AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
7259
# This is just to silence aclocal about the macro not being used
7260
ifelse([AC_DISABLE_FAST_INSTALL])
7262
AC_DEFUN([LT_AC_PROG_GCJ],
7263
[AC_CHECK_TOOL(GCJ, gcj, no)
7264
test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
7268
AC_DEFUN([LT_AC_PROG_RC],
7269
[AC_CHECK_TOOL(RC, windres, no)
7273
# Cheap backport of AS_EXECUTABLE_P and required macros
7274
# from Autoconf 2.59; we should not use $as_executable_p directly.
7278
m4_ifndef([_AS_TEST_PREPARE],
7279
[m4_defun([_AS_TEST_PREPARE],
7280
[if test -x / >/dev/null 2>&1; then
7281
as_executable_p='test -x'
7122
echo "libtool.m4: error: problem compiling $1 test program"
7125
$RM -f confest.$objext
7127
# PORTME: override above test on systems where it is broken
7131
# Interix 3.5 installs completely hosed .la files for C++, so rather than
7132
# hack all around it, let's just trust "g++" to DTRT.
7133
_LT_TAGVAR(predep_objects,$1)=
7134
_LT_TAGVAR(postdep_objects,$1)=
7135
_LT_TAGVAR(postdeps,$1)=
7139
case `$CC -V 2>&1 | sed 5q` in
7143
# The more standards-conforming stlport4 library is
7144
# incompatible with the Cstd library. Avoid specifying
7145
# it if it's in CXXFLAGS. Ignore libCrun as
7146
# -library=stlport4 depends on it.
7147
case " $CXX $CXXFLAGS " in
7148
*" -library=stlport4 "*)
7149
solaris_use_stlport4=yes
7153
if test "$solaris_use_stlport4" != yes; then
7154
_LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7161
case $cc_basename in
7163
# The more standards-conforming stlport4 library is
7164
# incompatible with the Cstd library. Avoid specifying
7165
# it if it's in CXXFLAGS. Ignore libCrun as
7166
# -library=stlport4 depends on it.
7167
case " $CXX $CXXFLAGS " in
7168
*" -library=stlport4 "*)
7169
solaris_use_stlport4=yes
7173
# Adding this requires a known-good setup of shared libraries for
7174
# Sun compiler versions before 5.6, else PIC objects from an old
7175
# archive will be linked into the output, leading to subtle bugs.
7176
if test "$solaris_use_stlport4" != yes; then
7177
_LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7185
case " $_LT_TAGVAR(postdeps, $1) " in
7186
*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
7188
_LT_TAGVAR(compiler_lib_search_dirs, $1)=
7189
if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
7190
_LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
7192
_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
7193
[The directories searched by this compiler when creating a shared library])
7194
_LT_TAGDECL([], [predep_objects], [1],
7195
[Dependencies to place before and after the objects being linked to
7196
create a shared library])
7197
_LT_TAGDECL([], [postdep_objects], [1])
7198
_LT_TAGDECL([], [predeps], [1])
7199
_LT_TAGDECL([], [postdeps], [1])
7200
_LT_TAGDECL([], [compiler_lib_search_path], [1],
7201
[The library search path used internally by the compiler when linking
7203
])# _LT_SYS_HIDDEN_LIBDEPS
7208
# Since AC_PROG_F77 is broken, in that it returns the empty string
7209
# if there is no fortran compiler, we have our own version here.
7210
m4_defun([_LT_PROG_F77],
7212
pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
7214
if test -z "$F77" || test "X$F77" = "Xno"; then
7217
popdef([AC_MSG_ERROR])
7220
dnl aclocal-1.4 backwards compatibility:
7221
dnl AC_DEFUN([_LT_PROG_F77], [])
7224
# _LT_LANG_F77_CONFIG([TAG])
7225
# --------------------------
7226
# Ensure that the configuration variables for a Fortran 77 compiler are
7227
# suitably defined. These variables are subsequently used by _LT_CONFIG
7228
# to write the compiler configuration to `libtool'.
7229
m4_defun([_LT_LANG_F77_CONFIG],
7230
[AC_REQUIRE([_LT_PROG_F77])dnl
7231
AC_LANG_PUSH(Fortran 77)
7233
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7234
_LT_TAGVAR(allow_undefined_flag, $1)=
7235
_LT_TAGVAR(always_export_symbols, $1)=no
7236
_LT_TAGVAR(archive_expsym_cmds, $1)=
7237
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
7238
_LT_TAGVAR(hardcode_direct, $1)=no
7239
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
7240
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7241
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7242
_LT_TAGVAR(hardcode_libdir_separator, $1)=
7243
_LT_TAGVAR(hardcode_minus_L, $1)=no
7244
_LT_TAGVAR(hardcode_automatic, $1)=no
7245
_LT_TAGVAR(inherit_rpath, $1)=no
7246
_LT_TAGVAR(module_cmds, $1)=
7247
_LT_TAGVAR(module_expsym_cmds, $1)=
7248
_LT_TAGVAR(link_all_deplibs, $1)=unknown
7249
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7250
_LT_TAGVAR(no_undefined_flag, $1)=
7251
_LT_TAGVAR(whole_archive_flag_spec, $1)=
7252
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7254
# Source file extension for f77 test sources.
7257
# Object file extension for compiled f77 test sources.
7259
_LT_TAGVAR(objext, $1)=$objext
7261
# No sense in running all these tests if we already determined that
7262
# the F77 compiler isn't working. Some variables (like enable_shared)
7263
# are currently assumed to apply to all compilers on this platform,
7264
# and will be corrupted by setting them based on a non-working compiler.
7265
if test "$_lt_disable_F77" != yes; then
7266
# Code to be used in simple compile tests
7267
lt_simple_compile_test_code="\
7273
# Code to be used in simple link tests
7274
lt_simple_link_test_code="\
7279
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7282
# save warnings/boilerplate of simple test code
7283
_LT_COMPILER_BOILERPLATE
7284
_LT_LINKER_BOILERPLATE
7286
# Allow CC to be a program name with arguments.
7291
_LT_TAGVAR(compiler, $1)=$CC
7292
_LT_CC_BASENAME([$compiler])
7294
if test -n "$compiler"; then
7295
AC_MSG_CHECKING([if libtool supports shared libraries])
7296
AC_MSG_RESULT([$can_build_shared])
7298
AC_MSG_CHECKING([whether to build shared libraries])
7299
test "$can_build_shared" = "no" && enable_shared=no
7301
# On AIX, shared libraries and static libraries use the same namespace, and
7302
# are all built from PIC.
7305
test "$enable_shared" = yes && enable_static=no
7306
if test -n "$RANLIB"; then
7307
archive_cmds="$archive_cmds~\$RANLIB \$lib"
7308
postinstall_cmds='$RANLIB $lib'
7312
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7313
test "$enable_shared" = yes && enable_static=no
7317
AC_MSG_RESULT([$enable_shared])
7319
AC_MSG_CHECKING([whether to build static libraries])
7320
# Make sure either enable_shared or enable_static is yes.
7321
test "$enable_shared" = yes || enable_static=yes
7322
AC_MSG_RESULT([$enable_static])
7324
_LT_TAGVAR(GCC, $1)="$G77"
7325
_LT_TAGVAR(LD, $1)="$LD"
7328
## There is no encapsulation within the following macros, do not change
7329
## the running order or otherwise move them around unless you know exactly
7330
## what you are doing...
7331
_LT_COMPILER_PIC($1)
7332
_LT_COMPILER_C_O($1)
7333
_LT_COMPILER_FILE_LOCKS($1)
7334
_LT_LINKER_SHLIBS($1)
7335
_LT_SYS_DYNAMIC_LINKER($1)
7336
_LT_LINKER_HARDCODE_LIBPATH($1)
7339
fi # test -n "$compiler"
7343
fi # test "$_lt_disable_F77" != yes
7346
])# _LT_LANG_F77_CONFIG
7351
# Since AC_PROG_FC is broken, in that it returns the empty string
7352
# if there is no fortran compiler, we have our own version here.
7353
m4_defun([_LT_PROG_FC],
7355
pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
7357
if test -z "$FC" || test "X$FC" = "Xno"; then
7360
popdef([AC_MSG_ERROR])
7363
dnl aclocal-1.4 backwards compatibility:
7364
dnl AC_DEFUN([_LT_PROG_FC], [])
7367
# _LT_LANG_FC_CONFIG([TAG])
7368
# -------------------------
7369
# Ensure that the configuration variables for a Fortran compiler are
7370
# suitably defined. These variables are subsequently used by _LT_CONFIG
7371
# to write the compiler configuration to `libtool'.
7372
m4_defun([_LT_LANG_FC_CONFIG],
7373
[AC_REQUIRE([_LT_PROG_FC])dnl
7374
AC_LANG_PUSH(Fortran)
7376
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7377
_LT_TAGVAR(allow_undefined_flag, $1)=
7378
_LT_TAGVAR(always_export_symbols, $1)=no
7379
_LT_TAGVAR(archive_expsym_cmds, $1)=
7380
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
7381
_LT_TAGVAR(hardcode_direct, $1)=no
7382
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
7383
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7384
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7385
_LT_TAGVAR(hardcode_libdir_separator, $1)=
7386
_LT_TAGVAR(hardcode_minus_L, $1)=no
7387
_LT_TAGVAR(hardcode_automatic, $1)=no
7388
_LT_TAGVAR(inherit_rpath, $1)=no
7389
_LT_TAGVAR(module_cmds, $1)=
7390
_LT_TAGVAR(module_expsym_cmds, $1)=
7391
_LT_TAGVAR(link_all_deplibs, $1)=unknown
7392
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7393
_LT_TAGVAR(no_undefined_flag, $1)=
7394
_LT_TAGVAR(whole_archive_flag_spec, $1)=
7395
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7397
# Source file extension for fc test sources.
7398
ac_ext=${ac_fc_srcext-f}
7400
# Object file extension for compiled fc test sources.
7402
_LT_TAGVAR(objext, $1)=$objext
7404
# No sense in running all these tests if we already determined that
7405
# the FC compiler isn't working. Some variables (like enable_shared)
7406
# are currently assumed to apply to all compilers on this platform,
7407
# and will be corrupted by setting them based on a non-working compiler.
7408
if test "$_lt_disable_FC" != yes; then
7409
# Code to be used in simple compile tests
7410
lt_simple_compile_test_code="\
7416
# Code to be used in simple link tests
7417
lt_simple_link_test_code="\
7422
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7425
# save warnings/boilerplate of simple test code
7426
_LT_COMPILER_BOILERPLATE
7427
_LT_LINKER_BOILERPLATE
7429
# Allow CC to be a program name with arguments.
7434
GCC=$ac_cv_fc_compiler_gnu
7436
_LT_TAGVAR(compiler, $1)=$CC
7437
_LT_CC_BASENAME([$compiler])
7439
if test -n "$compiler"; then
7440
AC_MSG_CHECKING([if libtool supports shared libraries])
7441
AC_MSG_RESULT([$can_build_shared])
7443
AC_MSG_CHECKING([whether to build shared libraries])
7444
test "$can_build_shared" = "no" && enable_shared=no
7446
# On AIX, shared libraries and static libraries use the same namespace, and
7447
# are all built from PIC.
7450
test "$enable_shared" = yes && enable_static=no
7451
if test -n "$RANLIB"; then
7452
archive_cmds="$archive_cmds~\$RANLIB \$lib"
7453
postinstall_cmds='$RANLIB $lib'
7457
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7458
test "$enable_shared" = yes && enable_static=no
7462
AC_MSG_RESULT([$enable_shared])
7464
AC_MSG_CHECKING([whether to build static libraries])
7465
# Make sure either enable_shared or enable_static is yes.
7466
test "$enable_shared" = yes || enable_static=yes
7467
AC_MSG_RESULT([$enable_static])
7469
_LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
7470
_LT_TAGVAR(LD, $1)="$LD"
7473
## There is no encapsulation within the following macros, do not change
7474
## the running order or otherwise move them around unless you know exactly
7475
## what you are doing...
7476
_LT_SYS_HIDDEN_LIBDEPS($1)
7477
_LT_COMPILER_PIC($1)
7478
_LT_COMPILER_C_O($1)
7479
_LT_COMPILER_FILE_LOCKS($1)
7480
_LT_LINKER_SHLIBS($1)
7481
_LT_SYS_DYNAMIC_LINKER($1)
7482
_LT_LINKER_HARDCODE_LIBPATH($1)
7485
fi # test -n "$compiler"
7489
fi # test "$_lt_disable_FC" != yes
7492
])# _LT_LANG_FC_CONFIG
7495
# _LT_LANG_GCJ_CONFIG([TAG])
7496
# --------------------------
7497
# Ensure that the configuration variables for the GNU Java Compiler compiler
7498
# are suitably defined. These variables are subsequently used by _LT_CONFIG
7499
# to write the compiler configuration to `libtool'.
7500
m4_defun([_LT_LANG_GCJ_CONFIG],
7501
[AC_REQUIRE([LT_PROG_GCJ])dnl
7504
# Source file extension for Java test sources.
7507
# Object file extension for compiled Java test sources.
7509
_LT_TAGVAR(objext, $1)=$objext
7511
# Code to be used in simple compile tests
7512
lt_simple_compile_test_code="class foo {}"
7514
# Code to be used in simple link tests
7515
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
7517
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7520
# save warnings/boilerplate of simple test code
7521
_LT_COMPILER_BOILERPLATE
7522
_LT_LINKER_BOILERPLATE
7524
# Allow CC to be a program name with arguments.
7530
_LT_TAGVAR(compiler, $1)=$CC
7531
_LT_TAGVAR(LD, $1)="$LD"
7532
_LT_CC_BASENAME([$compiler])
7534
# GCJ did not exist at the time GCC didn't implicitly link libc in.
7535
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7537
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7539
if test -n "$compiler"; then
7540
_LT_COMPILER_NO_RTTI($1)
7541
_LT_COMPILER_PIC($1)
7542
_LT_COMPILER_C_O($1)
7543
_LT_COMPILER_FILE_LOCKS($1)
7544
_LT_LINKER_SHLIBS($1)
7545
_LT_LINKER_HARDCODE_LIBPATH($1)
7554
])# _LT_LANG_GCJ_CONFIG
7557
# _LT_LANG_RC_CONFIG([TAG])
7558
# -------------------------
7559
# Ensure that the configuration variables for the Windows resource compiler
7560
# are suitably defined. These variables are subsequently used by _LT_CONFIG
7561
# to write the compiler configuration to `libtool'.
7562
m4_defun([_LT_LANG_RC_CONFIG],
7563
[AC_REQUIRE([LT_PROG_RC])dnl
7566
# Source file extension for RC test sources.
7569
# Object file extension for compiled RC test sources.
7571
_LT_TAGVAR(objext, $1)=$objext
7573
# Code to be used in simple compile tests
7574
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
7576
# Code to be used in simple link tests
7577
lt_simple_link_test_code="$lt_simple_compile_test_code"
7579
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7582
# save warnings/boilerplate of simple test code
7583
_LT_COMPILER_BOILERPLATE
7584
_LT_LINKER_BOILERPLATE
7586
# Allow CC to be a program name with arguments.
7592
_LT_TAGVAR(compiler, $1)=$CC
7593
_LT_CC_BASENAME([$compiler])
7594
_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
7596
if test -n "$compiler"; then
7604
])# _LT_LANG_RC_CONFIG
7609
AC_DEFUN([LT_PROG_GCJ],
7610
[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
7611
[m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
7612
[AC_CHECK_TOOL(GCJ, gcj,)
7613
test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
7614
AC_SUBST(GCJFLAGS)])])[]dnl
7618
AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
7619
dnl aclocal-1.4 backwards compatibility:
7620
dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
7625
AC_DEFUN([LT_PROG_RC],
7626
[AC_CHECK_TOOL(RC, windres,)
7630
AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
7631
dnl aclocal-1.4 backwards compatibility:
7632
dnl AC_DEFUN([LT_AC_PROG_RC], [])
7637
# If we don't have a new enough Autoconf to choose the best grep
7638
# available, choose the one first in the user's PATH.
7639
m4_defun([_LT_DECL_EGREP],
7640
[AC_REQUIRE([AC_PROG_EGREP])dnl
7641
AC_REQUIRE([AC_PROG_FGREP])dnl
7642
test -z "$GREP" && GREP=grep
7643
_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
7644
_LT_DECL([], [EGREP], [1], [An ERE matcher])
7645
_LT_DECL([], [FGREP], [1], [A literal string matcher])
7646
dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
7653
# Check for a fully-functional sed program, that truncates
7654
# as few characters as possible. Prefer GNU sed if found.
7655
m4_defun([_LT_DECL_SED],
7657
test -z "$SED" && SED=sed
7658
Xsed="$SED -e 1s/^X//"
7659
_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
7660
_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
7661
[Sed that helps us avoid accidentally triggering echo(1) options like -n])
7664
m4_ifndef([AC_PROG_SED], [
7283
as_executable_p='test -f'
7285
])])# _AS_TEST_PREPARE
7289
# Check whether a file is executable.
7290
m4_ifndef([AS_EXECUTABLE_P],
7291
[m4_defun([AS_EXECUTABLE_P],
7292
[AS_REQUIRE([_AS_TEST_PREPARE])dnl
7293
$as_executable_p $1[]dnl
7294
])])# AS_EXECUTABLE_P
7665
7296
# NOTE: This macro has been submitted for inclusion into #
7666
7297
# GNU Autoconf as AC_PROG_SED. When it is available in #
7667
7298
# a released version of Autoconf we should remove this #
7668
7299
# macro and use it instead. #
7670
m4_defun([AC_PROG_SED],
7302
# Check for a fully-functional sed program, that truncates
7303
# as few characters as possible. Prefer GNU sed if found.
7304
AC_DEFUN([LT_AC_PROG_SED],
7671
7305
[AC_MSG_CHECKING([for a sed that does not truncate output])
7672
7306
AC_CACHE_VAL(lt_cv_path_SED,
7673
7307
[# Loop through the user's path and test for sed and gsed.
7720
7354
SED=$lt_cv_path_SED
7721
7355
AC_SUBST([SED])
7722
7356
AC_MSG_RESULT([$SED])
7727
AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
7728
dnl aclocal-1.4 backwards compatibility:
7729
dnl AC_DEFUN([LT_AC_PROG_SED], [])
7732
# _LT_CHECK_SHELL_FEATURES
7733
# ------------------------
7734
# Find out whether the shell is Bourne or XSI compatible,
7735
# or has some other useful features.
7736
m4_defun([_LT_CHECK_SHELL_FEATURES],
7737
[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
7738
# Try some XSI features
7741
test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7743
&& eval 'test $(( 1 + 1 )) -eq 2 \
7744
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7746
AC_MSG_RESULT([$xsi_shell])
7747
_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
7749
AC_MSG_CHECKING([whether the shell understands "+="])
7751
( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
7753
&& lt_shell_append=yes
7754
AC_MSG_RESULT([$lt_shell_append])
7755
_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
7757
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7762
_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
7764
# test EBCDIC or ASCII
7765
case `echo X|tr X '\101'` in
7766
A) # ASCII based system
7767
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7768
lt_SP2NL='tr \040 \012'
7769
lt_NL2SP='tr \015\012 \040\040'
7771
*) # EBCDIC based system
7772
lt_SP2NL='tr \100 \n'
7773
lt_NL2SP='tr \r\n \100\100'
7776
_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
7777
_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
7778
])# _LT_CHECK_SHELL_FEATURES
7781
# _LT_PROG_XSI_SHELLFNS
7782
# ---------------------
7783
# Bourne and XSI compatible variants of some useful shell functions.
7784
m4_defun([_LT_PROG_XSI_SHELLFNS],
7787
cat << \_LT_EOF >> "$cfgfile"
7789
# func_dirname file append nondir_replacement
7790
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
7791
# otherwise set result to NONDIR_REPLACEMENT.
7795
*/*) func_dirname_result="${1%/*}${2}" ;;
7796
* ) func_dirname_result="${3}" ;;
7800
# func_basename file
7803
func_basename_result="${1##*/}"
7806
# func_dirname_and_basename file append nondir_replacement
7807
# perform func_basename and func_dirname in a single function
7809
# dirname: Compute the dirname of FILE. If nonempty,
7810
# add APPEND to the result, otherwise set result
7811
# to NONDIR_REPLACEMENT.
7812
# value returned in "$func_dirname_result"
7813
# basename: Compute filename of FILE.
7814
# value retuned in "$func_basename_result"
7815
# Implementation must be kept synchronized with func_dirname
7816
# and func_basename. For efficiency, we do not delegate to
7817
# those functions but instead duplicate the functionality here.
7818
func_dirname_and_basename ()
7821
*/*) func_dirname_result="${1%/*}${2}" ;;
7822
* ) func_dirname_result="${3}" ;;
7824
func_basename_result="${1##*/}"
7827
# func_stripname prefix suffix name
7828
# strip PREFIX and SUFFIX off of NAME.
7829
# PREFIX and SUFFIX must not contain globbing or regex special
7830
# characters, hashes, percent signs, but SUFFIX may contain a leading
7831
# dot (in which case that matches only a dot).
7834
# pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7835
# positional parameters, so assign one to ordinary parameter first.
7836
func_stripname_result=${3}
7837
func_stripname_result=${func_stripname_result#"${1}"}
7838
func_stripname_result=${func_stripname_result%"${2}"}
7844
func_opt_split_opt=${1%%=*}
7845
func_opt_split_arg=${1#*=}
7852
*.lo) func_lo2o_result=${1%.lo}.${objext} ;;
7853
*) func_lo2o_result=${1} ;;
7857
# func_xform libobj-or-source
7860
func_xform_result=${1%.*}.lo
7863
# func_arith arithmetic-term...
7866
func_arith_result=$(( $[*] ))
7870
# STRING may not start with a hyphen.
7873
func_len_result=${#1}
7878
*) # Bourne compatible functions.
7879
cat << \_LT_EOF >> "$cfgfile"
7881
# func_dirname file append nondir_replacement
7882
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
7883
# otherwise set result to NONDIR_REPLACEMENT.
7886
# Extract subdirectory from the argument.
7887
func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
7888
if test "X$func_dirname_result" = "X${1}"; then
7889
func_dirname_result="${3}"
7891
func_dirname_result="$func_dirname_result${2}"
7895
# func_basename file
7898
func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
7901
dnl func_dirname_and_basename
7902
dnl A portable version of this function is already defined in general.m4sh
7903
dnl so there is no need for it here.
7905
# func_stripname prefix suffix name
7906
# strip PREFIX and SUFFIX off of NAME.
7907
# PREFIX and SUFFIX must not contain globbing or regex special
7908
# characters, hashes, percent signs, but SUFFIX may contain a leading
7909
# dot (in which case that matches only a dot).
7910
# func_strip_suffix prefix name
7914
.*) func_stripname_result=`$ECHO "X${3}" \
7915
| $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
7916
*) func_stripname_result=`$ECHO "X${3}" \
7917
| $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
7922
my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
7923
my_sed_long_arg='1s/^-[[^=]]*=//'
7928
func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
7929
func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
7935
func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
7938
# func_xform libobj-or-source
7941
func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
7944
# func_arith arithmetic-term...
7947
func_arith_result=`expr "$[@]"`
7951
# STRING may not start with a hyphen.
7954
func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
7960
case $lt_shell_append in
7962
cat << \_LT_EOF >> "$cfgfile"
7964
# func_append var value
7965
# Append VALUE to the end of shell variable VAR.
7973
cat << \_LT_EOF >> "$cfgfile"
7975
# func_append var value
7976
# Append VALUE to the end of shell variable VAR.
7979
eval "$[1]=\$$[1]\$[2]"
7987
# Helper functions for option handling. -*- Autoconf -*-
7989
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
7990
# Written by Gary V. Vaughan, 2004
7992
# This file is free software; the Free Software Foundation gives
7993
# unlimited permission to copy and/or distribute it, with or without
7994
# modifications, as long as this notice is preserved.
7996
# serial 6 ltoptions.m4
7998
# This is to help aclocal find these macros, as it can't see m4_define.
7999
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
8002
# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
8003
# ------------------------------------------
8004
m4_define([_LT_MANGLE_OPTION],
8005
[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
8008
# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
8009
# ---------------------------------------
8010
# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
8011
# matching handler defined, dispatch to it. Other OPTION-NAMEs are
8013
m4_define([_LT_SET_OPTION],
8014
[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
8015
m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
8016
_LT_MANGLE_DEFUN([$1], [$2]),
8017
[m4_warning([Unknown $1 option `$2'])])[]dnl
8021
# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
8022
# ------------------------------------------------------------
8023
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
8024
m4_define([_LT_IF_OPTION],
8025
[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
8028
# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
8029
# -------------------------------------------------------
8030
# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
8032
m4_define([_LT_UNLESS_OPTIONS],
8033
[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
8034
[m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
8035
[m4_define([$0_found])])])[]dnl
8036
m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
8041
# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
8042
# ----------------------------------------
8043
# OPTION-LIST is a space-separated list of Libtool options associated
8044
# with MACRO-NAME. If any OPTION has a matching handler declared with
8045
# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
8046
# the unknown option and exit.
8047
m4_defun([_LT_SET_OPTIONS],
8049
m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
8050
[_LT_SET_OPTION([$1], _LT_Option)])
8052
m4_if([$1],[LT_INIT],[
8054
dnl Simply set some default values (i.e off) if boolean options were not
8056
_LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
8058
_LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
8061
dnl If no reference was made to various pairs of opposing options, then
8062
dnl we run the default mode handler for the pair. For example, if neither
8063
dnl `shared' nor `disable-shared' was passed, we enable building of shared
8064
dnl archives by default:
8065
_LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
8066
_LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
8067
_LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
8068
_LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
8069
[_LT_ENABLE_FAST_INSTALL])
8075
# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
8076
# -----------------------------------------
8077
m4_define([_LT_MANGLE_DEFUN],
8078
[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
8081
# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
8082
# -----------------------------------------------
8083
m4_define([LT_OPTION_DEFINE],
8084
[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
8085
])# LT_OPTION_DEFINE
8090
LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
8093
AU_DEFUN([AC_LIBTOOL_DLOPEN],
8094
[_LT_SET_OPTION([LT_INIT], [dlopen])
8095
AC_DIAGNOSE([obsolete],
8096
[$0: Remove this warning and the call to _LT_SET_OPTION when you
8097
put the `dlopen' option into LT_INIT's first parameter.])
8100
dnl aclocal-1.4 backwards compatibility:
8101
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
8106
# Declare package support for building win32 dll's.
8107
LT_OPTION_DEFINE([LT_INIT], [win32-dll],
8108
[enable_win32_dll=yes
8111
*-*-cygwin* | *-*-mingw* | *-*-pw32*)
8112
AC_CHECK_TOOL(AS, as, false)
8113
AC_CHECK_TOOL(DLLTOOL, dlltool, false)
8114
AC_CHECK_TOOL(OBJDUMP, objdump, false)
8118
test -z "$AS" && AS=as
8119
_LT_DECL([], [AS], [0], [Assembler program])dnl
8121
test -z "$DLLTOOL" && DLLTOOL=dlltool
8122
_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
8124
test -z "$OBJDUMP" && OBJDUMP=objdump
8125
_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
8128
AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
8129
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
8130
_LT_SET_OPTION([LT_INIT], [win32-dll])
8131
AC_DIAGNOSE([obsolete],
8132
[$0: Remove this warning and the call to _LT_SET_OPTION when you
8133
put the `win32-dll' option into LT_INIT's first parameter.])
8136
dnl aclocal-1.4 backwards compatibility:
8137
dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
8140
# _LT_ENABLE_SHARED([DEFAULT])
8141
# ----------------------------
8142
# implement the --enable-shared flag, and supports the `shared' and
8143
# `disable-shared' LT_INIT options.
8144
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
8145
m4_define([_LT_ENABLE_SHARED],
8146
[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
8147
AC_ARG_ENABLE([shared],
8148
[AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
8149
[build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
8150
[p=${PACKAGE-default}
8152
yes) enable_shared=yes ;;
8153
no) enable_shared=no ;;
8156
# Look at the argument we got. We use all the common list separators.
8157
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8158
for pkg in $enableval; do
8160
if test "X$pkg" = "X$p"; then
8167
[enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
8169
_LT_DECL([build_libtool_libs], [enable_shared], [0],
8170
[Whether or not to build shared libraries])
8171
])# _LT_ENABLE_SHARED
8173
LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
8174
LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
8177
AC_DEFUN([AC_ENABLE_SHARED],
8178
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
8181
AC_DEFUN([AC_DISABLE_SHARED],
8182
[_LT_SET_OPTION([LT_INIT], [disable-shared])
8185
AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
8186
AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
8188
dnl aclocal-1.4 backwards compatibility:
8189
dnl AC_DEFUN([AM_ENABLE_SHARED], [])
8190
dnl AC_DEFUN([AM_DISABLE_SHARED], [])
8194
# _LT_ENABLE_STATIC([DEFAULT])
8195
# ----------------------------
8196
# implement the --enable-static flag, and support the `static' and
8197
# `disable-static' LT_INIT options.
8198
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
8199
m4_define([_LT_ENABLE_STATIC],
8200
[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
8201
AC_ARG_ENABLE([static],
8202
[AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
8203
[build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
8204
[p=${PACKAGE-default}
8206
yes) enable_static=yes ;;
8207
no) enable_static=no ;;
8210
# Look at the argument we got. We use all the common list separators.
8211
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8212
for pkg in $enableval; do
8214
if test "X$pkg" = "X$p"; then
8221
[enable_static=]_LT_ENABLE_STATIC_DEFAULT)
8223
_LT_DECL([build_old_libs], [enable_static], [0],
8224
[Whether or not to build static libraries])
8225
])# _LT_ENABLE_STATIC
8227
LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
8228
LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
8231
AC_DEFUN([AC_ENABLE_STATIC],
8232
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
8235
AC_DEFUN([AC_DISABLE_STATIC],
8236
[_LT_SET_OPTION([LT_INIT], [disable-static])
8239
AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
8240
AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
8242
dnl aclocal-1.4 backwards compatibility:
8243
dnl AC_DEFUN([AM_ENABLE_STATIC], [])
8244
dnl AC_DEFUN([AM_DISABLE_STATIC], [])
8248
# _LT_ENABLE_FAST_INSTALL([DEFAULT])
8249
# ----------------------------------
8250
# implement the --enable-fast-install flag, and support the `fast-install'
8251
# and `disable-fast-install' LT_INIT options.
8252
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
8253
m4_define([_LT_ENABLE_FAST_INSTALL],
8254
[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
8255
AC_ARG_ENABLE([fast-install],
8256
[AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
8257
[optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
8258
[p=${PACKAGE-default}
8260
yes) enable_fast_install=yes ;;
8261
no) enable_fast_install=no ;;
8263
enable_fast_install=no
8264
# Look at the argument we got. We use all the common list separators.
8265
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8266
for pkg in $enableval; do
8268
if test "X$pkg" = "X$p"; then
8269
enable_fast_install=yes
8275
[enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
8277
_LT_DECL([fast_install], [enable_fast_install], [0],
8278
[Whether or not to optimize for fast installation])dnl
8279
])# _LT_ENABLE_FAST_INSTALL
8281
LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
8282
LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
8285
AU_DEFUN([AC_ENABLE_FAST_INSTALL],
8286
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
8287
AC_DIAGNOSE([obsolete],
8288
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
8289
the `fast-install' option into LT_INIT's first parameter.])
8292
AU_DEFUN([AC_DISABLE_FAST_INSTALL],
8293
[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
8294
AC_DIAGNOSE([obsolete],
8295
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
8296
the `disable-fast-install' option into LT_INIT's first parameter.])
8299
dnl aclocal-1.4 backwards compatibility:
8300
dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
8301
dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
8304
# _LT_WITH_PIC([MODE])
8305
# --------------------
8306
# implement the --with-pic flag, and support the `pic-only' and `no-pic'
8308
# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
8309
m4_define([_LT_WITH_PIC],
8311
[AS_HELP_STRING([--with-pic],
8312
[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
8313
[pic_mode="$withval"],
8316
test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
8318
_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
8321
LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
8322
LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
8325
AU_DEFUN([AC_LIBTOOL_PICMODE],
8326
[_LT_SET_OPTION([LT_INIT], [pic-only])
8327
AC_DIAGNOSE([obsolete],
8328
[$0: Remove this warning and the call to _LT_SET_OPTION when you
8329
put the `pic-only' option into LT_INIT's first parameter.])
8332
dnl aclocal-1.4 backwards compatibility:
8333
dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
8336
m4_define([_LTDL_MODE], [])
8337
LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
8338
[m4_define([_LTDL_MODE], [nonrecursive])])
8339
LT_OPTION_DEFINE([LTDL_INIT], [recursive],
8340
[m4_define([_LTDL_MODE], [recursive])])
8341
LT_OPTION_DEFINE([LTDL_INIT], [subproject],
8342
[m4_define([_LTDL_MODE], [subproject])])
8344
m4_define([_LTDL_TYPE], [])
8345
LT_OPTION_DEFINE([LTDL_INIT], [installable],
8346
[m4_define([_LTDL_TYPE], [installable])])
8347
LT_OPTION_DEFINE([LTDL_INIT], [convenience],
8348
[m4_define([_LTDL_TYPE], [convenience])])
8350
# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
8352
# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
8353
# Written by Gary V. Vaughan, 2004
8355
# This file is free software; the Free Software Foundation gives
8356
# unlimited permission to copy and/or distribute it, with or without
8357
# modifications, as long as this notice is preserved.
8359
# serial 5 ltsugar.m4
8361
# This is to help aclocal find these macros, as it can't see m4_define.
8362
AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
8365
# lt_join(SEP, ARG1, [ARG2...])
8366
# -----------------------------
8367
# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
8368
# associated separator.
8369
# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
8370
# versions in m4sugar had bugs.
8371
m4_define([lt_join],
8372
[m4_if([$#], [1], [],
8374
[m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
8375
m4_define([_lt_join],
8376
[m4_if([$#$2], [2], [],
8377
[m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
8383
# Manipulate m4 lists.
8384
# These macros are necessary as long as will still need to support
8385
# Autoconf-2.59 which quotes differently.
8386
m4_define([lt_car], [[$1]])
8388
[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
8390
[m4_dquote(m4_shift($@))])])
8391
m4_define([lt_unquote], $1)
8394
# lt_append(MACRO-NAME, STRING, [SEPARATOR])
8395
# ------------------------------------------
8396
# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
8397
# Note that neither SEPARATOR nor STRING are expanded; they are appended
8398
# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
8399
# No SEPARATOR is output if MACRO-NAME was previously undefined (different
8400
# than defined and empty).
8402
# This macro is needed until we can rely on Autoconf 2.62, since earlier
8403
# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
8404
m4_define([lt_append],
8406
m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
8410
# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
8411
# ----------------------------------------------------------
8412
# Produce a SEP delimited list of all paired combinations of elements of
8413
# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
8414
# has the form PREFIXmINFIXSUFFIXn.
8415
m4_define([lt_combine],
8416
[m4_if([$2], [], [],
8417
[m4_if([$4], [], [],
8418
[lt_join(m4_quote(m4_default([$1], [[, ]])),
8419
lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_prefix, [$2],
8420
[m4_foreach(_Lt_suffix, lt_car([m4_shiftn(3, $@)]),
8421
[_Lt_prefix[]$3[]_Lt_suffix ])])))))])])dnl
8425
# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
8426
# -----------------------------------------------------------------------
8427
# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
8428
# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
8429
m4_define([lt_if_append_uniq],
8431
[m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
8432
[lt_append([$1], [$2], [$3])$4],
8434
[lt_append([$1], [$2], [$3])$4])])
8437
# lt_dict_add(DICT, KEY, VALUE)
8438
# -----------------------------
8439
m4_define([lt_dict_add],
8440
[m4_define([$1($2)], [$3])])
8443
# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
8444
# --------------------------------------------
8445
m4_define([lt_dict_add_subkey],
8446
[m4_define([$1($2:$3)], [$4])])
8449
# lt_dict_fetch(DICT, KEY, [SUBKEY])
8450
# ----------------------------------
8451
m4_define([lt_dict_fetch],
8453
m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
8454
m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
8457
# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
8458
# -----------------------------------------------------------------
8459
m4_define([lt_if_dict_fetch],
8460
[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
8465
# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
8466
# --------------------------------------------------------------
8467
m4_define([lt_dict_filter],
8468
[m4_if([$5], [], [],
8469
[lt_join(m4_quote(m4_default([$4], [[, ]])),
8470
lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
8471
[lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
8474
# ltversion.m4 -- version numbers -*- Autoconf -*-
8476
# Copyright (C) 2004 Free Software Foundation, Inc.
8477
# Written by Scott James Remnant, 2004
8479
# This file is free software; the Free Software Foundation gives
8480
# unlimited permission to copy and/or distribute it, with or without
8481
# modifications, as long as this notice is preserved.
8483
# Generated from ltversion.in.
8485
# serial 2976 ltversion.m4
8486
# This file is part of GNU Libtool
8488
m4_define([LT_PACKAGE_VERSION], [2.2.4])
8489
m4_define([LT_PACKAGE_REVISION], [1.2976])
8491
AC_DEFUN([LTVERSION_VERSION],
8492
[macro_version='2.2.4'
8493
macro_revision='1.2976'
8494
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
8495
_LT_DECL(, macro_revision, 0)
8498
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
8500
# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
8501
# Written by Scott James Remnant, 2004.
8503
# This file is free software; the Free Software Foundation gives
8504
# unlimited permission to copy and/or distribute it, with or without
8505
# modifications, as long as this notice is preserved.
8507
# serial 4 lt~obsolete.m4
8509
# These exist entirely to fool aclocal when bootstrapping libtool.
8511
# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
8512
# which have later been changed to m4_define as they aren't part of the
8513
# exported API, or moved to Autoconf or Automake where they belong.
8515
# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
8516
# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
8517
# using a macro with the same name in our local m4/libtool.m4 it'll
8518
# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
8519
# and doesn't know about Autoconf macros at all.)
8521
# So we provide this file, which has a silly filename so it's always
8522
# included after everything else. This provides aclocal with the
8523
# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
8524
# because those macros already exist, or will be overwritten later.
8525
# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
8527
# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
8528
# Yes, that means every name once taken will need to remain here until
8529
# we give up compatibility with versions before 1.7, at which point
8530
# we need to keep only those names which we still refer to.
8532
# This is to help aclocal find these macros, as it can't see m4_define.
8533
AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
8535
m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
8536
m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
8537
m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
8538
m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
8539
m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
8540
m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
8541
m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
8542
m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
8543
m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
8544
m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
8545
m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
8546
m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
8547
m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
8548
m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
8549
m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
8550
m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
8551
m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
8552
m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
8553
m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
8554
m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
8555
m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
8556
m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
8557
m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
8558
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
8559
m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
8560
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
8561
m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
8562
m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
8563
m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
8564
m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
8565
m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
8566
m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
8567
m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
8568
m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
8569
m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
8570
m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
8571
m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
8572
m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
8573
m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
8574
m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
8575
m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
8576
m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
8577
m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
8578
m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
8579
m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
8580
m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
8581
m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
8582
m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
8583
m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
8584
m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
8585
m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
8586
m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
8587
m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
8588
m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
8589
m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
8591
# nls.m4 serial 3 (gettext-0.15)
8592
dnl Copyright (C) 1995-2003, 2005-2006 Free Software Foundation, Inc.
8593
dnl This file is free software; the Free Software Foundation
8594
dnl gives unlimited permission to copy and/or distribute it,
8595
dnl with or without modifications, as long as this notice is preserved.
8597
dnl This file can can be used in projects which are not available under
8598
dnl the GNU General Public License or the GNU Library General Public
8599
dnl License but which still want to provide support for the GNU gettext
8601
dnl Please note that the actual code of the GNU gettext library is covered
8602
dnl by the GNU Library General Public License, and the rest of the GNU
8603
dnl gettext package package is covered by the GNU General Public License.
8604
dnl They are *not* in the public domain.
8607
dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
8608
dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
8614
AC_MSG_CHECKING([whether NLS is requested])
8615
dnl Default is enabled NLS
8617
[ --disable-nls do not use Native Language Support],
8618
USE_NLS=$enableval, USE_NLS=yes)
8619
AC_MSG_RESULT($USE_NLS)
8623
7359
# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-