868
782
# Sed substitution that helps us do robust quoting. It backslashifies
869
783
# metacharacters that are still active within double-quoted strings.
870
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
784
Xsed='sed -e 1s/^X//'
785
[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
872
787
# Same as above, but do not quote variable references.
873
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
788
[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
875
790
# Sed substitution to delay expansion of an escaped shell variable in a
876
791
# double_quote_subst'ed string.
877
792
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
879
# Sed substitution to delay expansion of an escaped single quote.
880
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
882
794
# Sed substitution to avoid accidental globbing in evaled expressions
883
795
no_glob_subst='s/\*/\\\*/g'
885
800
# Global variables:
801
default_ofile=libtool
887
802
can_build_shared=yes
889
804
# All known linkers require a `.a' archive for static linking (except MSVC,
890
805
# which needs '.lib').
807
ltmain="$ac_aux_dir/ltmain.sh"
808
ofile="$default_ofile"
893
809
with_gnu_ld="$lt_cv_prog_gnu_ld"
811
AC_CHECK_TOOL(AR, ar, false)
812
AC_CHECK_TOOL(RANLIB, ranlib, :)
813
AC_CHECK_TOOL(STRIP, strip, :)
896
816
old_CFLAGS="$CFLAGS"
898
818
# Set sane defaults for various variables
819
test -z "$AR" && AR=ar
820
test -z "$AR_FLAGS" && AR_FLAGS=cru
821
test -z "$AS" && AS=as
899
822
test -z "$CC" && CC=cc
900
823
test -z "$LTCC" && LTCC=$CC
901
824
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
825
test -z "$DLLTOOL" && DLLTOOL=dlltool
902
826
test -z "$LD" && LD=ld
827
test -z "$LN_S" && LN_S="ln -s"
828
test -z "$MAGIC_CMD" && MAGIC_CMD=file
829
test -z "$NM" && NM=nm
830
test -z "$SED" && SED=sed
831
test -z "$OBJDUMP" && OBJDUMP=objdump
832
test -z "$RANLIB" && RANLIB=:
833
test -z "$STRIP" && STRIP=:
903
834
test -z "$ac_objext" && ac_objext=o
836
# Determine commands to create old-style static archives.
837
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
838
old_postinstall_cmds='chmod 644 $oldlib'
839
old_postuninstall_cmds=
841
if test -n "$RANLIB"; then
844
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
847
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
850
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
905
853
_LT_CC_BASENAME([$compiler])
907
855
# Only perform the check for file, if the check method requires it
908
test -z "$MAGIC_CMD" && MAGIC_CMD=file
909
856
case $deplibs_check_method in
911
858
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
864
_LT_REQUIRED_DARWIN_CHECKS
866
AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
867
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
868
enable_win32_dll=yes, enable_win32_dll=no)
870
AC_ARG_ENABLE([libtool-lock],
871
[AC_HELP_STRING([--disable-libtool-lock],
872
[avoid locking (might break parallel builds)])])
873
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
876
[AC_HELP_STRING([--with-pic],
877
[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
878
[pic_mode="$withval"],
880
test -z "$pic_mode" && pic_mode=default
917
882
# Use C for the default configuration in the libtool script
918
LT_SUPPORTED_TAG([CC])
920
_LT_LANG_DEFAULT_CONFIG
927
# Note that this code is called both from `configure', and `config.status'
928
# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
929
# `config.status' has no value for ac_aux_dir unless we are using Automake,
930
# so we pass a copy along to make sure it has a sensible value anyway.
931
m4_defun([_LT_PROG_LTMAIN],
932
[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
933
_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
934
ltmain="$ac_aux_dir/ltmain.sh"
939
# So that we can recreate a full libtool script including additional
940
# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
941
# in macros and then make a single call at the end using the `libtool'
945
# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
946
# ----------------------------------------
947
# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
948
m4_define([_LT_CONFIG_LIBTOOL_INIT],
950
[m4_append([_LT_OUTPUT_LIBTOOL_INIT],
955
m4_define([_LT_OUTPUT_LIBTOOL_INIT])
958
# _LT_CONFIG_LIBTOOL([COMMANDS])
959
# ------------------------------
960
# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
961
m4_define([_LT_CONFIG_LIBTOOL],
963
[m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
968
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
971
# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
972
# -----------------------------------------------------
973
m4_defun([_LT_CONFIG_SAVE_COMMANDS],
974
[_LT_CONFIG_LIBTOOL([$1])
975
_LT_CONFIG_LIBTOOL_INIT([$2])
979
# _LT_FORMAT_COMMENT([COMMENT])
980
# -----------------------------
981
# Add leading comment marks to the start of each line, and a trailing
982
# full-stop to the whole comment if one is not present already.
983
m4_define([_LT_FORMAT_COMMENT],
985
m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
986
[['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
993
# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
994
# -------------------------------------------------------------------
995
# CONFIGNAME is the name given to the value in the libtool script.
996
# VARNAME is the (base) name used in the configure script.
997
# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
998
# VARNAME. Any other value will be used directly.
999
m4_define([_LT_DECL],
1000
[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
1001
[lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
1002
[m4_ifval([$1], [$1], [$2])])
1003
lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
1005
[lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
1006
lt_dict_add_subkey([lt_decl_dict], [$2],
1007
[tagged?], [m4_ifval([$5], [yes], [no])])])
1011
# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
1012
# --------------------------------------------------------
1013
m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
1016
# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
1017
# ------------------------------------------------
1018
m4_define([lt_decl_tag_varnames],
1019
[_lt_decl_filter([tagged?], [yes], $@)])
1022
# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
1023
# ---------------------------------------------------------
1024
m4_define([_lt_decl_filter],
1026
[0], [m4_fatal([$0: too few arguments: $#])],
1027
[1], [m4_fatal([$0: too few arguments: $#: $1])],
1028
[2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
1029
[3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
1030
[lt_dict_filter([lt_decl_dict], $@)])[]dnl
1034
# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
1035
# --------------------------------------------------
1036
m4_define([lt_decl_quote_varnames],
1037
[_lt_decl_filter([value], [1], $@)])
1040
# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
1041
# ---------------------------------------------------
1042
m4_define([lt_decl_dquote_varnames],
1043
[_lt_decl_filter([value], [2], $@)])
1046
# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
1047
# ---------------------------------------------------
1048
m4_define([lt_decl_varnames_tagged],
1049
[_$0(m4_quote(m4_default([$1], [[, ]])),
1050
m4_quote(m4_if([$2], [],
1051
m4_quote(lt_decl_tag_varnames),
1052
m4_quote(m4_shift($@)))),
1053
m4_split(m4_normalize(m4_quote(_LT_TAGS))))])
1054
m4_define([_lt_decl_varnames_tagged], [lt_combine([$1], [$2], [_], $3)])
1057
# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
1058
# ------------------------------------------------
1059
m4_define([lt_decl_all_varnames],
1060
[_$0(m4_quote(m4_default([$1], [[, ]])),
1062
m4_quote(lt_decl_varnames),
1063
m4_quote(m4_shift($@))))[]dnl
1065
m4_define([_lt_decl_all_varnames],
1066
[lt_join($@, lt_decl_varnames_tagged([$1],
1067
lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
1071
# _LT_CONFIG_STATUS_DECLARE([VARNAME])
1072
# ------------------------------------
1073
# Quote a variable value, and forward it to `config.status' so that its
1074
# declaration there will have the same value as in `configure'. VARNAME
1075
# must have a single quote delimited value for this to work.
1076
m4_define([_LT_CONFIG_STATUS_DECLARE],
1077
[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
1080
# _LT_CONFIG_STATUS_DECLARATIONS
1081
# ------------------------------
1082
# We delimit libtool config variables with single quotes, so when
1083
# we write them to config.status, we have to be sure to quote all
1084
# embedded single quotes properly. In configure, this macro expands
1085
# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
1087
# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
1088
m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
1089
[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
1090
[m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
1095
# Output comment and list of tags supported by the script
1096
m4_defun([_LT_LIBTOOL_TAGS],
1097
[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
1098
available_tags="_LT_TAGS"dnl
1102
# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
1103
# -----------------------------------
1104
# Extract the dictionary values for VARNAME (optionally with TAG) and
1105
# expand to a commented shell variable setting:
1107
# # Some comment about what VAR is for.
1108
# visible_name=$lt_internal_name
1109
m4_define([_LT_LIBTOOL_DECLARE],
1110
[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
1111
[description])))[]dnl
1112
m4_pushdef([_libtool_name],
1113
m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
1114
m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
1115
[0], [_libtool_name=[$]$1],
1116
[1], [_libtool_name=$lt_[]$1],
1117
[2], [_libtool_name=$lt_[]$1],
1118
[_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
1119
m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
1123
# _LT_LIBTOOL_CONFIG_VARS
1124
# -----------------------
1125
# Produce commented declarations of non-tagged libtool config variables
1126
# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
1127
# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
1128
# section) are produced by _LT_LIBTOOL_TAG_VARS.
1129
m4_defun([_LT_LIBTOOL_CONFIG_VARS],
1130
[m4_foreach([_lt_var],
1131
m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
1132
[m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
1135
# _LT_LIBTOOL_TAG_VARS(TAG)
1136
# -------------------------
1137
m4_define([_LT_LIBTOOL_TAG_VARS],
1138
[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
1139
[m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
1142
# _LT_TAGVAR(VARNAME, [TAGNAME])
1143
# ------------------------------
1144
m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
1147
# _LT_CONFIG_COMMANDS
884
AC_LIBTOOL_LANG_C_CONFIG
889
# _LT_AC_SYS_COMPILER
1148
890
# -------------------
1149
# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
1150
# variables for single and double quote escaping we saved from calls
1151
# to _LT_DECL, we can put quote escaped variables declarations
1152
# into `config.status', and then the shell code to quote escape them in
1153
# for loops in `config.status'. Finally, any additional code accumulated
1154
# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
1155
m4_defun([_LT_CONFIG_COMMANDS],
1156
[AC_PROVIDE_IFELSE([LT_OUTPUT],
1157
dnl If the libtool generation code has been placed in $CONFIG_LT,
1158
dnl instead of duplicating it all over again into config.status,
1159
dnl then we will have config.status run $CONFIG_LT later, so it
1160
dnl needs to know what name is stored there:
1161
[AC_CONFIG_COMMANDS([libtool],
1162
[$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
1163
dnl If the libtool generation code is destined for config.status,
1164
dnl expand the accumulated commands and init code now:
1165
[AC_CONFIG_COMMANDS([libtool],
1166
[_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
1167
])#_LT_CONFIG_COMMANDS
1171
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
1174
# The HP-UX ksh and POSIX shell print the target directory to stdout
1176
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1178
sed_quote_subst='$sed_quote_subst'
1179
double_quote_subst='$double_quote_subst'
1180
delay_variable_subst='$delay_variable_subst'
1181
_LT_CONFIG_STATUS_DECLARATIONS
1183
LTCFLAGS='$LTCFLAGS'
1184
compiler='$compiler_DEFAULT'
1186
# Quote evaled strings.
1187
for var in lt_decl_all_varnames([[ \
1188
]], lt_decl_quote_varnames); do
1189
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
1190
*[[\\\\\\\`\\"\\\$]]*)
1191
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
1194
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1199
# Double-quote double-evaled strings.
1200
for var in lt_decl_all_varnames([[ \
1201
]], lt_decl_dquote_varnames); do
1202
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
1203
*[[\\\\\\\`\\"\\\$]]*)
1204
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
1207
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1212
# Fix-up fallback echo if it was mangled by the above quoting rules.
1214
*'\\\[$]0 --fallback-echo"')dnl "
1215
lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
1219
_LT_OUTPUT_LIBTOOL_INIT
1225
# This macro allows early generation of the libtool script (before
1226
# AC_OUTPUT is called), incase it is used in configure for compilation
1228
AC_DEFUN([LT_OUTPUT],
1229
[: ${CONFIG_LT=./config.lt}
1230
AC_MSG_NOTICE([creating $CONFIG_LT])
1231
cat >"$CONFIG_LT" <<_LTEOF
1233
# Generated by $as_me.
1234
# Run this file to recreate a libtool stub with the current configuration.
1237
SHELL=\${CONFIG_SHELL-$SHELL}
1240
cat >>"$CONFIG_LT" <<\_LTEOF
1244
exec AS_MESSAGE_FD>&1
1245
exec AS_MESSAGE_LOG_FD>>config.log
1248
AS_BOX([Running $as_me.])
1249
} >&AS_MESSAGE_LOG_FD
1252
\`$as_me' creates a local libtool stub from the current configuration,
1253
for use in further configure time tests before the real libtool is
1256
Usage: $[0] [[OPTIONS]]
1258
-h, --help print this help, then exit
1259
-V, --version print version number, then exit
1260
-q, --quiet do not print progress messages
1261
-d, --debug don't remove temporary files
1263
Report bugs to <bug-libtool@gnu.org>."
1266
m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
1267
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
1268
configured by $[0], generated by m4_PACKAGE_STRING.
1270
Copyright (C) 2008 Free Software Foundation, Inc.
1271
This config.lt script is free software; the Free Software Foundation
1272
gives unlimited permision to copy, distribute and modify it."
1274
while test $[#] != 0
1277
--version | --v* | -V )
1278
echo "$lt_cl_version"; exit 0 ;;
1279
--help | --h* | -h )
1280
echo "$lt_cl_help"; exit 0 ;;
1281
--debug | --d* | -d )
1283
--quiet | --q* | --silent | --s* | -q )
1286
-*) AC_MSG_ERROR([unrecognized option: $[1]
1287
Try \`$[0] --help' for more information.]) ;;
1289
*) AC_MSG_ERROR([unrecognized argument: $[1]
1290
Try \`$[0] --help' for more information.]) ;;
1295
if $lt_cl_silent; then
1296
exec AS_MESSAGE_FD>/dev/null
1300
cat >>"$CONFIG_LT" <<_LTEOF
1301
_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
1304
cat >>"$CONFIG_LT" <<\_LTEOF
1305
AC_MSG_NOTICE([creating $ofile])
1306
_LT_OUTPUT_LIBTOOL_COMMANDS
1309
chmod +x "$CONFIG_LT"
1311
# configure is writing to config.log, but config.lt does its own redirection,
1312
# appending to config.log, which fails on DOS, as config.log is still kept
1313
# open by configure. Here we exec the FD to /dev/null, effectively closing
1314
# config.log, so it can be properly (re)opened and appended to by config.lt.
1315
if test "$no_create" != yes; then
1317
test "$silent" = yes &&
1318
lt_config_lt_args="$lt_config_lt_args --quiet"
1319
exec AS_MESSAGE_LOG_FD>/dev/null
1320
$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
1321
exec AS_MESSAGE_LOG_FD>>config.log
1322
$lt_cl_success || AS_EXIT(1)
1329
# If TAG is the built-in tag, create an initial libtool script with a
1330
# default configuration from the untagged config vars. Otherwise add code
1331
# to config.status for appending the configuration named by TAG from the
1332
# matching tagged config vars.
1333
m4_defun([_LT_CONFIG],
1334
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1335
_LT_CONFIG_SAVE_COMMANDS([
1336
m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
1337
m4_if(_LT_TAG, [C], [
1338
# See if we are running on zsh, and set the options which allow our
1339
# commands through without removal of \ escapes.
1340
if test -n "${ZSH_VERSION+set}" ; then
1341
setopt NO_GLOB_SUBST
1345
trap "$RM \"$cfgfile\"; exit 1" 1 2 15
1348
cat <<_LT_EOF >> "$cfgfile"
1351
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
1352
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
1353
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1354
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
1359
# ### BEGIN LIBTOOL CONFIG
1360
_LT_LIBTOOL_CONFIG_VARS
1361
_LT_LIBTOOL_TAG_VARS
1362
# ### END LIBTOOL CONFIG
1368
cat <<\_LT_EOF >> "$cfgfile"
1369
# AIX sometimes has problems with the GCC collect2 program. For some
1370
# reason, if we set the COLLECT_NAMES environment variable, the problems
1371
# vanish in a puff of smoke.
1372
if test "X${COLLECT_NAMES+set}" != Xset; then
1374
export COLLECT_NAMES
1382
# We use sed instead of cat because bash on DJGPP gets confused if
1383
# if finds mixed CR/LF and LF-only lines. Since sed operates in
1384
# text mode, it properly converts lines to CR/LF. This bash problem
1385
# is reportedly fixed, but why not run on old versions too?
1386
sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
1387
|| (rm -f "$cfgfile"; exit 1)
1389
_LT_PROG_XSI_SHELLFNS
1391
sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
1392
|| (rm -f "$cfgfile"; exit 1)
1394
mv -f "$cfgfile" "$ofile" ||
1395
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
1398
[cat <<_LT_EOF >> "$ofile"
1400
dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
1401
dnl in a comment (ie after a #).
1402
# ### BEGIN LIBTOOL TAG CONFIG: $1
1403
_LT_LIBTOOL_TAG_VARS(_LT_TAG)
1404
# ### END LIBTOOL TAG CONFIG: $1
1411
TIMESTAMP='$TIMESTAMP'
1413
ofile='$ofile'], [])
1414
])dnl /_LT_CONFIG_SAVE_COMMANDS
1418
# LT_SUPPORTED_TAG(TAG)
1419
# ---------------------
1420
# Trace this macro to discover what tags are supported by the libtool
1421
# --tag option, using:
1422
# autoconf --trace 'LT_SUPPORTED_TAG:$1'
1423
AC_DEFUN([LT_SUPPORTED_TAG], [])
1426
# C support is built-in for now
1427
m4_define([_LT_LANG_C_enabled], [])
1428
m4_define([_LT_TAGS], [])
1433
# Enable libtool support for the given language if not already enabled.
1435
[AC_BEFORE([$0], [LT_OUTPUT])dnl
1438
[C++], [_LT_LANG(CXX)],
1439
[Java], [_LT_LANG(GCJ)],
1440
[Fortran 77], [_LT_LANG(F77)],
1441
[Fortran], [_LT_LANG(FC)],
1442
[Windows Resource], [_LT_LANG(RC)],
1443
[m4_ifdef([_LT_LANG_]$1[_CONFIG],
1445
[m4_fatal([$0: unsupported language: "$1"])])])dnl
1449
# _LT_LANG(LANGNAME)
1450
# ------------------
1451
m4_defun([_LT_LANG],
1452
[m4_ifdef([_LT_LANG_]$1[_enabled], [],
1453
[LT_SUPPORTED_TAG([$1])dnl
1454
m4_append([_LT_TAGS], [$1 ])dnl
1455
m4_define([_LT_LANG_]$1[_enabled], [])dnl
1456
_LT_LANG_$1_CONFIG($1)])dnl
1460
# _LT_LANG_DEFAULT_CONFIG
1461
# -----------------------
1462
m4_defun([_LT_LANG_DEFAULT_CONFIG],
1463
[AC_PROVIDE_IFELSE([AC_PROG_CXX],
1465
[m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
1467
AC_PROVIDE_IFELSE([AC_PROG_F77],
1469
[m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
1471
AC_PROVIDE_IFELSE([AC_PROG_FC],
1473
[m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
1475
dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
1476
dnl pulling things in needlessly.
1477
AC_PROVIDE_IFELSE([AC_PROG_GCJ],
1479
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
1481
[AC_PROVIDE_IFELSE([LT_PROG_GCJ],
1483
[m4_ifdef([AC_PROG_GCJ],
1484
[m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
1485
m4_ifdef([A][M_PROG_GCJ],
1486
[m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
1487
m4_ifdef([LT_PROG_GCJ],
1488
[m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
1490
AC_PROVIDE_IFELSE([LT_PROG_RC],
1492
[m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
1493
])# _LT_LANG_DEFAULT_CONFIG
1496
AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
1497
AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
1498
AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
1499
AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
1500
dnl aclocal-1.4 backwards compatibility:
1501
dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
1502
dnl AC_DEFUN([AC_LIBTOOL_F77], [])
1503
dnl AC_DEFUN([AC_LIBTOOL_FC], [])
1504
dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
1509
m4_defun([_LT_TAG_COMPILER],
891
AC_DEFUN([_LT_AC_SYS_COMPILER],
1510
892
[AC_REQUIRE([AC_PROG_CC])dnl
1512
_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
1513
_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
1514
_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
1515
_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
1517
894
# If no C compiler was specified, use CC.
1518
895
LTCC=${LTCC-"$CC"}
3937
3301
AC_CHECK_LIB(m, cos, LIBM="-lm")
3944
AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
3945
dnl aclocal-1.4 backwards compatibility:
3946
dnl AC_DEFUN([AC_CHECK_LIBM], [])
3949
# _LT_COMPILER_NO_RTTI([TAGNAME])
3950
# -------------------------------
3951
m4_defun([_LT_COMPILER_NO_RTTI],
3952
[m4_require([_LT_TAG_COMPILER])dnl
3954
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3307
# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
3308
# -----------------------------------
3309
# sets LIBLTDL to the link flags for the libltdl convenience library and
3310
# LTDLINCL to the include flags for the libltdl header and adds
3311
# --enable-ltdl-convenience to the configure arguments. Note that
3312
# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
3313
# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
3314
# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
3315
# (note the single quotes!). If your package is not flat and you're not
3316
# using automake, define top_builddir and top_srcdir appropriately in
3318
AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
3319
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3320
case $enable_ltdl_convenience in
3321
no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
3322
"") enable_ltdl_convenience=yes
3323
ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
3325
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
3326
LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3327
# For backwards non-gettext consistent compatibility...
3329
])# AC_LIBLTDL_CONVENIENCE
3332
# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
3333
# -----------------------------------
3334
# sets LIBLTDL to the link flags for the libltdl installable library and
3335
# LTDLINCL to the include flags for the libltdl header and adds
3336
# --enable-ltdl-install to the configure arguments. Note that
3337
# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
3338
# and an installed libltdl is not found, it is assumed to be `libltdl'.
3339
# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
3340
# '${top_srcdir}/' (note the single quotes!). If your package is not
3341
# flat and you're not using automake, define top_builddir and top_srcdir
3342
# appropriately in the Makefiles.
3343
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
3344
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
3345
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3346
AC_CHECK_LIB(ltdl, lt_dlinit,
3347
[test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
3348
[if test x"$enable_ltdl_install" = xno; then
3349
AC_MSG_WARN([libltdl not installed, but installation disabled])
3351
enable_ltdl_install=yes
3354
if test x"$enable_ltdl_install" = x"yes"; then
3355
ac_configure_args="$ac_configure_args --enable-ltdl-install"
3356
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
3357
LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3359
ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
3363
# For backwards non-gettext consistent compatibility...
3365
])# AC_LIBLTDL_INSTALLABLE
3370
# enable support for C++ libraries
3371
AC_DEFUN([AC_LIBTOOL_CXX],
3372
[AC_REQUIRE([_LT_AC_LANG_CXX])
3378
AC_DEFUN([_LT_AC_LANG_CXX],
3379
[AC_REQUIRE([AC_PROG_CXX])
3380
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
3381
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
3384
# _LT_AC_PROG_CXXCPP
3385
# ------------------
3386
AC_DEFUN([_LT_AC_PROG_CXXCPP],
3388
AC_REQUIRE([AC_PROG_CXX])
3389
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
3390
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
3391
(test "X$CXX" != "Xg++"))) ; then
3394
])# _LT_AC_PROG_CXXCPP
3398
# enable support for Fortran 77 libraries
3399
AC_DEFUN([AC_LIBTOOL_F77],
3400
[AC_REQUIRE([_LT_AC_LANG_F77])
3406
AC_DEFUN([_LT_AC_LANG_F77],
3407
[AC_REQUIRE([AC_PROG_F77])
3408
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
3414
# enable support for GCJ libraries
3415
AC_DEFUN([AC_LIBTOOL_GCJ],
3416
[AC_REQUIRE([_LT_AC_LANG_GCJ])
3422
AC_DEFUN([_LT_AC_LANG_GCJ],
3423
[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
3424
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
3425
[AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
3426
[ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
3427
[ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
3428
[AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
3429
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
3435
# enable support for Windows resource files
3436
AC_DEFUN([AC_LIBTOOL_RC],
3437
[AC_REQUIRE([LT_AC_PROG_RC])
3438
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
3442
# AC_LIBTOOL_LANG_C_CONFIG
3443
# ------------------------
3444
# Ensure that the configuration vars for the C compiler are
3445
# suitably defined. Those variables are subsequently used by
3446
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3447
AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
3448
AC_DEFUN([_LT_AC_LANG_C_CONFIG],
3452
# Source file extension for C test sources.
3455
# Object file extension for compiled C test sources.
3457
_LT_AC_TAGVAR(objext, $1)=$objext
3459
# Code to be used in simple compile tests
3460
lt_simple_compile_test_code="int some_variable = 0;"
3462
# Code to be used in simple link tests
3463
lt_simple_link_test_code='int main(){return(0);}'
3467
# save warnings/boilerplate of simple test code
3468
_LT_COMPILER_BOILERPLATE
3469
_LT_LINKER_BOILERPLATE
3471
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
3472
AC_LIBTOOL_PROG_COMPILER_PIC($1)
3473
AC_LIBTOOL_PROG_CC_C_O($1)
3474
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3475
AC_LIBTOOL_PROG_LD_SHLIBS($1)
3476
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3477
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3478
AC_LIBTOOL_SYS_LIB_STRIP
3479
AC_LIBTOOL_DLOPEN_SELF
3481
# Report which library types will actually be built
3482
AC_MSG_CHECKING([if libtool supports shared libraries])
3483
AC_MSG_RESULT([$can_build_shared])
3485
AC_MSG_CHECKING([whether to build shared libraries])
3486
test "$can_build_shared" = "no" && enable_shared=no
3488
# On AIX, shared libraries and static libraries use the same namespace, and
3489
# are all built from PIC.
3492
test "$enable_shared" = yes && enable_static=no
3493
if test -n "$RANLIB"; then
3494
archive_cmds="$archive_cmds~\$RANLIB \$lib"
3495
postinstall_cmds='$RANLIB $lib'
3500
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
3501
test "$enable_shared" = yes && enable_static=no
3505
AC_MSG_RESULT([$enable_shared])
3507
AC_MSG_CHECKING([whether to build static libraries])
3508
# Make sure either enable_shared or enable_static is yes.
3509
test "$enable_shared" = yes || enable_static=yes
3510
AC_MSG_RESULT([$enable_static])
3512
AC_LIBTOOL_CONFIG($1)
3516
])# AC_LIBTOOL_LANG_C_CONFIG
3519
# AC_LIBTOOL_LANG_CXX_CONFIG
3520
# --------------------------
3521
# Ensure that the configuration vars for the C compiler are
3522
# suitably defined. Those variables are subsequently used by
3523
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3524
AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
3525
AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
3527
AC_REQUIRE([AC_PROG_CXX])
3528
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
3530
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3531
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
3532
_LT_AC_TAGVAR(always_export_symbols, $1)=no
3533
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
3534
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
3535
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3536
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
3537
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
3538
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3539
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
3540
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3541
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
3542
_LT_AC_TAGVAR(module_cmds, $1)=
3543
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
3544
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
3545
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
3546
_LT_AC_TAGVAR(no_undefined_flag, $1)=
3547
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3548
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
3550
# Dependencies to place before and after the object being linked:
3551
_LT_AC_TAGVAR(predep_objects, $1)=
3552
_LT_AC_TAGVAR(postdep_objects, $1)=
3553
_LT_AC_TAGVAR(predeps, $1)=
3554
_LT_AC_TAGVAR(postdeps, $1)=
3555
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
3556
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
3558
# Source file extension for C++ test sources.
3561
# Object file extension for compiled C++ test sources.
3563
_LT_AC_TAGVAR(objext, $1)=$objext
3565
# Code to be used in simple compile tests
3566
lt_simple_compile_test_code="int some_variable = 0;"
3568
# Code to be used in simple link tests
3569
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
3571
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3574
# save warnings/boilerplate of simple test code
3575
_LT_COMPILER_BOILERPLATE
3576
_LT_LINKER_BOILERPLATE
3578
# Allow CC to be a program name with arguments.
3583
lt_save_with_gnu_ld=$with_gnu_ld
3584
lt_save_path_LD=$lt_cv_path_LD
3585
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
3586
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
3588
$as_unset lt_cv_prog_gnu_ld
3590
if test -n "${lt_cv_path_LDCXX+set}"; then
3591
lt_cv_path_LD=$lt_cv_path_LDCXX
3593
$as_unset lt_cv_path_LD
3595
test -z "${LDCXX+set}" || LD=$LDCXX
3598
_LT_AC_TAGVAR(compiler, $1)=$CC
3599
_LT_CC_BASENAME([$compiler])
3601
# We don't want -fno-exception wen compiling C++ code, so set the
3602
# no_builtin_flag separately
3603
if test "$GXX" = yes; then
3604
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
3606
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3609
if test "$GXX" = yes; then
3610
# Set up default GNU C++ configuration
3614
# Check if GNU C++ uses GNU ld as the underlying linker, since the
3615
# archiving commands below assume that GNU ld is being used.
3616
if test "$with_gnu_ld" = yes; then
3617
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3618
_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'
3620
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3621
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3623
# If archive_cmds runs LD, not CC, wlarc should be empty
3624
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
3625
# investigate it a little bit more. (MM)
3628
# ancient GNU ld didn't support --whole-archive et. al.
3629
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
3630
grep 'no-whole-archive' > /dev/null; then
3631
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3633
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3639
# A generic and very simple default shared library creation
3640
# command for GNU C++ for the case where it uses the native
3641
# linker, instead of GNU ld. If possible, this setting should
3642
# overridden to take advantage of the native linker features on
3643
# the platform it is being used on.
3644
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3647
# Commands to make compiler produce verbose output that lists
3648
# what "hidden" libraries, object files and flags are used when
3649
# linking a shared library.
3650
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3658
# PORTME: fill in a description of your system's C++ link characteristics
3659
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
3660
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
3663
# FIXME: insert proper C++ library support
3664
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3667
if test "$host_cpu" = ia64; then
3668
# On IA64, the linker does run time linking by default, so we don't
3669
# have to do anything special.
3670
aix_use_runtimelinking=no
3671
exp_sym_flag='-Bexport'
3674
aix_use_runtimelinking=no
3676
# Test if we are trying to use run time linking or normal
3677
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
3678
# need to do runtime linking.
3679
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
3680
for ld_flag in $LDFLAGS; do
3683
aix_use_runtimelinking=yes
3691
exp_sym_flag='-bexport'
3692
no_entry_flag='-bnoentry'
3695
# When large executables or shared objects are built, AIX ld can
3696
# have problems creating the table of contents. If linking a library
3697
# or program results in "error TOC overflow" add -mminimal-toc to
3698
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
3699
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
3701
_LT_AC_TAGVAR(archive_cmds, $1)=''
3702
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3703
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3704
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3706
if test "$GXX" = yes; then
3707
case $host_os in aix4.[[012]]|aix4.[[012]].*)
3708
# We only want to do this on AIX 4.2 and lower, the check
3709
# below for broken collect2 doesn't work under 4.3+
3710
collect2name=`${CC} -print-prog-name=collect2`
3711
if test -f "$collect2name" && \
3712
strings "$collect2name" | grep resolve_lib_name >/dev/null
3714
# We have reworked collect2
3717
# We have old collect2
3718
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3719
# It fails to find uninstalled libraries when the uninstalled
3720
# path is not listed in the libpath. Setting hardcode_minus_L
3721
# to unsupported forces relinking
3722
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
3723
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3724
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3728
shared_flag='-shared'
3729
if test "$aix_use_runtimelinking" = yes; then
3730
shared_flag="$shared_flag "'${wl}-G'
3734
if test "$host_cpu" = ia64; then
3735
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
3736
# chokes on -Wl,-G. The following line is correct:
3739
if test "$aix_use_runtimelinking" = yes; then
3740
shared_flag='${wl}-G'
3742
shared_flag='${wl}-bM:SRE'
3747
# It seems that -bexpall does not export symbols beginning with
3748
# underscore (_), so it is better to generate a list of symbols to export.
3749
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
3750
if test "$aix_use_runtimelinking" = yes; then
3751
# Warning - without using the other runtime loading flags (-brtl),
3752
# -berok will link without error, but may produce a broken library.
3753
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
3754
# Determine the default libpath from the value encoded in an empty executable.
3755
_LT_AC_SYS_LIBPATH_AIX
3756
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3758
_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"
3760
if test "$host_cpu" = ia64; then
3761
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
3762
_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
3763
_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"
3765
# Determine the default libpath from the value encoded in an empty executable.
3766
_LT_AC_SYS_LIBPATH_AIX
3767
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3768
# Warning - without using the other run time loading flags,
3769
# -berok will link without error, but may produce a broken library.
3770
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
3771
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
3772
# Exported symbols can be pulled into shared objects from archives
3773
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
3774
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
3775
# This is similar to how AIX traditionally builds its shared libraries.
3776
_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'
3782
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
3783
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3784
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3785
# support --undefined. This deserves some investigation. FIXME
3786
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3788
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3793
case $cc_basename in
3795
# FIXME: insert proper C++ library support
3796
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3801
cygwin* | mingw* | pw32*)
3802
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
3803
# as there is no search path for DLLs.
3804
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3805
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3806
_LT_AC_TAGVAR(always_export_symbols, $1)=no
3807
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
3809
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
3810
_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'
3811
# If the export-symbols file already is a .def file (1st line
3812
# is EXPORTS), use it as is; otherwise, prepend...
3813
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
3814
cp $export_symbols $output_objdir/$soname.def;
3816
echo EXPORTS > $output_objdir/$soname.def;
3817
cat $export_symbols >> $output_objdir/$soname.def;
3819
$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'
3821
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3824
darwin* | rhapsody*)
3825
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3826
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3827
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3828
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3829
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3830
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3831
_LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
3832
if test "$GXX" = yes ; then
3833
output_verbose_link_cmd='echo'
3834
_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}"
3835
_LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
3836
_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}"
3837
_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}"
3838
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
3839
_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}"
3840
_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}"
3843
case $cc_basename in
3845
output_verbose_link_cmd='echo'
3846
_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'
3847
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3848
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3849
_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}'
3850
_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}'
3853
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3860
case $cc_basename in
3862
# FIXME: insert proper C++ library support
3863
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3866
# Green Hills C++ Compiler
3867
# FIXME: insert proper C++ library support
3868
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3871
# FIXME: insert proper C++ library support
3872
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3877
# C++ shared libraries reported to be fairly broken before switch to ELF
3878
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3881
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3883
freebsd* | dragonfly*)
3884
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3886
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
3891
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3892
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3893
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3894
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3895
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3896
# but as the default
3897
# location of the library.
3899
case $cc_basename in
3901
# FIXME: insert proper C++ library support
3902
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3905
_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'
3906
# Commands to make compiler produce verbose output that lists
3907
# what "hidden" libraries, object files and flags are used when
3908
# linking a shared library.
3910
# There doesn't appear to be a way to prevent this compiler from
3911
# explicitly linking system object files so we need to strip them
3912
# from the output so that they don't get included in the library
3914
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'
3917
if test "$GXX" = yes; then
3918
_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'
3920
# FIXME: insert proper C++ library support
3921
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3927
if test $with_gnu_ld = no; then
3928
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3929
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3934
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3940
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3941
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3944
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3945
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3946
# but as the default
3947
# location of the library.
3951
case $cc_basename in
3953
# FIXME: insert proper C++ library support
3954
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3959
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3962
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3965
_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'
3968
# Commands to make compiler produce verbose output that lists
3969
# what "hidden" libraries, object files and flags are used when
3970
# linking a shared library.
3972
# There doesn't appear to be a way to prevent this compiler from
3973
# explicitly linking system object files so we need to strip them
3974
# from the output so that they don't get included in the library
3976
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'
3979
if test "$GXX" = yes; then
3980
if test $with_gnu_ld = no; then
3983
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3986
_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'
3989
_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'
3994
# FIXME: insert proper C++ library support
3995
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4001
_LT_AC_TAGVAR(hardcode_direct, $1)=no
4002
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4003
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4004
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4005
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
4006
# Instead, shared libraries are loaded at an image base (0x10000000 by
4007
# default) and relocated if they conflict, which is a slow very memory
4008
# consuming and fragmenting process. To avoid this, we pick a random,
4009
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
4010
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
4011
_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'
4012
_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'
4015
case $cc_basename in
4018
_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'
4020
# Archives containing C++ object files must be created using
4021
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
4022
# necessary to make sure instantiated templates are included
4024
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
4027
if test "$GXX" = yes; then
4028
if test "$with_gnu_ld" = no; then
4029
_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'
4031
_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'
4034
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4037
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4038
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4040
linux* | k*bsd*-gnu)
4041
case $cc_basename in
4043
# Kuck and Associates, Inc. (KAI) C++ Compiler
4045
# KCC will only create a shared library if the output file
4046
# ends with ".so" (or ".sl" for HP-UX), so rename the library
4047
# to its proper name (with version) after linking.
4048
_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'
4049
_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'
4050
# Commands to make compiler produce verbose output that lists
4051
# what "hidden" libraries, object files and flags are used when
4052
# linking a shared library.
4054
# There doesn't appear to be a way to prevent this compiler from
4055
# explicitly linking system object files so we need to strip them
4056
# from the output so that they don't get included in the library
4058
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'
4060
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
4061
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4063
# Archives containing C++ object files must be created using
4064
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
4065
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
4070
# version 8.0 and above of icpc choke on multiply defined symbols
4071
# if we add $predep_objects and $postdep_objects, however 7.1 and
4072
# earlier do not add the objects themselves.
4073
case `$CC -V 2>&1` in
4075
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4076
_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'
4078
*) # Version 8.0 or newer
4081
ia64*) tmp_idyn=' -i_dynamic';;
4083
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4084
_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'
4087
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4088
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4089
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4090
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
4093
# Portland Group C++ compiler
4094
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
4095
_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'
4097
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
4098
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4099
_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'
4103
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4104
_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'
4106
runpath_var=LD_RUN_PATH
4107
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4108
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4110
# Commands to make compiler produce verbose output that lists
4111
# what "hidden" libraries, object files and flags are used when
4112
# linking a shared library.
4114
# There doesn't appear to be a way to prevent this compiler from
4115
# explicitly linking system object files so we need to strip them
4116
# from the output so that they don't get included in the library
4118
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'
4121
case `$CC -V 2>&1 | sed 5q` in
4124
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
4125
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4126
_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'
4127
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4128
_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'
4130
# Not sure whether something based on
4131
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
4133
output_verbose_link_cmd='echo'
4135
# Archives containing C++ object files must be created using
4136
# "CC -xar", where "CC" is the Sun C++ compiler. This is
4137
# necessary to make sure instantiated templates are included
4139
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
4146
# FIXME: insert proper C++ library support
4147
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4150
# FIXME: insert proper C++ library support
4151
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4154
case $cc_basename in
4156
# FIXME: insert proper C++ library support
4157
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4160
# FIXME: insert proper C++ library support
4161
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4166
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4167
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
4169
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4170
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
4171
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4173
# Workaround some broken pre-1.5 toolchains
4174
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
4177
# C++ shared libraries are fairly broken
4178
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4181
if test -f /usr/libexec/ld.so; then
4182
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
4183
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4184
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
4185
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4186
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4187
_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'
4188
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4189
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4191
output_verbose_link_cmd='echo'
4193
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4197
case $cc_basename in
4199
# Kuck and Associates, Inc. (KAI) C++ Compiler
4201
# KCC will only create a shared library if the output file
4202
# ends with ".so" (or ".sl" for HP-UX), so rename the library
4203
# to its proper name (with version) after linking.
4204
_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'
4206
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4207
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4209
# Archives containing C++ object files must be created using
4210
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
4211
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
4215
# Rational C++ 2.4.1
4216
# FIXME: insert proper C++ library support
4217
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4220
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4221
_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'
4223
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4224
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4226
# Commands to make compiler produce verbose output that lists
4227
# what "hidden" libraries, object files and flags are used when
4228
# linking a shared library.
4230
# There doesn't appear to be a way to prevent this compiler from
4231
# explicitly linking system object files so we need to strip them
4232
# from the output so that they don't get included in the library
4234
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'
4237
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4238
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4239
_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'
4241
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4242
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4244
# Commands to make compiler produce verbose output that lists
4245
# what "hidden" libraries, object files and flags are used when
4246
# linking a shared library.
4247
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4250
# FIXME: insert proper C++ library support
4251
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4257
case $cc_basename in
4259
# Kuck and Associates, Inc. (KAI) C++ Compiler
4261
# KCC will only create a shared library if the output file
4262
# ends with ".so" (or ".sl" for HP-UX), so rename the library
4263
# to its proper name (with version) after linking.
4264
_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'
4266
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4267
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4269
# Archives containing C++ object files must be created using
4270
# the KAI C++ compiler.
4271
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
4274
# Rational C++ 2.4.1
4275
# FIXME: insert proper C++ library support
4276
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4279
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4280
_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'
4281
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
4282
echo "-hidden">> $lib.exp~
4283
$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~
4286
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4287
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4289
# Commands to make compiler produce verbose output that lists
4290
# what "hidden" libraries, object files and flags are used when
4291
# linking a shared library.
4293
# There doesn't appear to be a way to prevent this compiler from
4294
# explicitly linking system object files so we need to strip them
4295
# from the output so that they don't get included in the library
4297
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'
4300
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4301
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4302
_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'
4304
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4305
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4307
# Commands to make compiler produce verbose output that lists
4308
# what "hidden" libraries, object files and flags are used when
4309
# linking a shared library.
4310
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4313
# FIXME: insert proper C++ library support
4314
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4320
# FIXME: insert proper C++ library support
4321
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4324
case $cc_basename in
4327
# FIXME: insert proper C++ library support
4328
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4332
# FIXME: insert proper C++ library support
4333
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4336
# FIXME: insert proper C++ library support
4337
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4342
case $cc_basename in
4344
# Sun C++ 4.2, 5.x and Centerline C++
4345
_LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
4346
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
4347
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4348
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4349
$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'
4351
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4352
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4354
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
4356
# The compiler driver will combine and reorder linker options,
4357
# but understands `-z linker_flag'.
4358
# Supported since Solaris 2.6 (maybe 2.5.1?)
4359
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
4362
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4364
output_verbose_link_cmd='echo'
4366
# Archives containing C++ object files must be created using
4367
# "CC -xar", where "CC" is the Sun C++ compiler. This is
4368
# necessary to make sure instantiated templates are included
4370
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
4373
# Green Hills C++ Compiler
4374
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4376
# The C++ compiler must be used to create the archive.
4377
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
4380
# GNU C++ compiler with Solaris linker
4381
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4382
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
4383
if $CC --version | grep -v '^2\.7' > /dev/null; then
4384
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4385
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4386
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4388
# Commands to make compiler produce verbose output that lists
4389
# what "hidden" libraries, object files and flags are used when
4390
# linking a shared library.
4391
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
4393
# g++ 2.7 appears to require `-G' NOT `-shared' on this
4395
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4396
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4397
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4399
# Commands to make compiler produce verbose output that lists
4400
# what "hidden" libraries, object files and flags are used when
4401
# linking a shared library.
4402
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
4405
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
4407
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
4409
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
4416
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
4417
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
4418
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4419
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4420
runpath_var='LD_RUN_PATH'
4422
case $cc_basename in
4424
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4425
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4428
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4429
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4433
sysv5* | sco3.2v5* | sco5v6*)
4434
# Note: We can NOT use -z defs as we might desire, because we do not
4435
# link with -lc, and that would cause any symbols used from libc to
4436
# always be unresolved, which means just about no library would
4437
# ever link correctly. If we're not using GNU ld we use -z text
4438
# though, which does catch some bad symbols but isn't as heavy-handed
4440
# For security reasons, it is highly recommended that you always
4441
# use absolute paths for naming shared libraries, and exclude the
4442
# DT_RUNPATH tag from executables and libraries. But doing so
4443
# requires that you compile everything twice, which is a pain.
4444
# So that behaviour is only enabled if SCOABSPATH is set to a
4445
# non-empty value in the environment. Most likely only useful for
4446
# creating official distributions of packages.
4447
# This is a hack until libtool officially supports absolute path
4448
# names for shared libraries.
4449
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
4450
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
4451
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4452
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4453
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
4454
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
4455
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4456
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
4457
runpath_var='LD_RUN_PATH'
4459
case $cc_basename in
4461
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4462
_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'
4465
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4466
_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'
4471
case $cc_basename in
4473
# NonStop-UX NCC 3.20
4474
# FIXME: insert proper C++ library support
4475
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4478
# FIXME: insert proper C++ library support
4479
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4484
# FIXME: insert proper C++ library support
4485
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4488
# FIXME: insert proper C++ library support
4489
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4492
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
4493
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
4495
_LT_AC_TAGVAR(GCC, $1)="$GXX"
4496
_LT_AC_TAGVAR(LD, $1)="$LD"
4498
AC_LIBTOOL_POSTDEP_PREDEP($1)
4499
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4500
AC_LIBTOOL_PROG_CC_C_O($1)
4501
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4502
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4503
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4504
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4506
AC_LIBTOOL_CONFIG($1)
4513
with_gnu_ldcxx=$with_gnu_ld
4514
with_gnu_ld=$lt_save_with_gnu_ld
4515
lt_cv_path_LDCXX=$lt_cv_path_LD
4516
lt_cv_path_LD=$lt_save_path_LD
4517
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
4518
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
4519
])# AC_LIBTOOL_LANG_CXX_CONFIG
4521
# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
4522
# ------------------------------------
4523
# Figure out "hidden" library dependencies from verbose
4524
# compiler output when linking a shared library.
4525
# Parse the compiler output and extract the necessary
4526
# objects, libraries and library flags.
4527
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],
4528
[AC_REQUIRE([LT_AC_PROG_SED])dnl
4529
dnl we can't use the lt_simple_compile_test_code here,
4530
dnl because it contains code intended for an executable,
4531
dnl not a library. It's possible we should let each
4532
dnl tag define a new lt_????_link_test_code variable,
4533
dnl but it's only used here...
4534
ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
4536
void foo (void) { a = 0; }
4538
],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
4542
Foo (void) { a = 0; }
4547
],[$1],[F77],[cat > conftest.$ac_ext <<EOF
4555
],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
4558
public void bar (void) {
4564
dnl Parse the compiler output and extract the necessary
4565
dnl objects, libraries and library flags.
4566
if AC_TRY_EVAL(ac_compile); then
4567
# Parse the compiler output and extract the necessary
4568
# objects, libraries and library flags.
4570
# Sentinel used to keep track of whether or not we are before
4571
# the conftest object file.
4572
pre_test_object_deps_done=no
4574
# The `*' in the case matches for architectures that use `case' in
4575
# $output_verbose_cmd can trigger glob expansion during the loop
4576
# eval without this substitution.
4577
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
4579
for p in `eval $output_verbose_link_cmd`; do
4583
# Some compilers place space between "-{L,R}" and the path.
4586
|| test $p = "-R"; then
4593
if test "$pre_test_object_deps_done" = no; then
4596
# Internal compiler library paths should come after those
4597
# provided the user. The postdeps already come after the
4598
# user supplied libs so there is no need to process them.
4599
if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
4600
_LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
4602
_LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
4605
# The "-l" case would never come before the object being
4606
# linked, so don't bother handling this case.
4609
if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
4610
_LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
4612
_LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
4618
# This assumes that the test object file only shows up
4619
# once in the compiler output.
4620
if test "$p" = "conftest.$objext"; then
4621
pre_test_object_deps_done=yes
4625
if test "$pre_test_object_deps_done" = no; then
4626
if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
4627
_LT_AC_TAGVAR(predep_objects, $1)="$p"
4629
_LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
4632
if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
4633
_LT_AC_TAGVAR(postdep_objects, $1)="$p"
4635
_LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
4640
*) ;; # Ignore the rest.
4648
echo "libtool.m4: error: problem compiling $1 test program"
4651
$rm -f confest.$objext
4653
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
4654
if test -n "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
4655
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_AC_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
4658
# PORTME: override above test on systems where it is broken
4662
# Interix 3.5 installs completely hosed .la files for C++, so rather than
4663
# hack all around it, let's just trust "g++" to DTRT.
4664
_LT_AC_TAGVAR(predep_objects,$1)=
4665
_LT_AC_TAGVAR(postdep_objects,$1)=
4666
_LT_AC_TAGVAR(postdeps,$1)=
4670
case `$CC -V 2>&1 | sed 5q` in
4674
# The more standards-conforming stlport4 library is
4675
# incompatible with the Cstd library. Avoid specifying
4676
# it if it's in CXXFLAGS. Ignore libCrun as
4677
# -library=stlport4 depends on it.
4678
case " $CXX $CXXFLAGS " in
4679
*" -library=stlport4 "*)
4680
solaris_use_stlport4=yes
4683
if test "$solaris_use_stlport4" != yes; then
4684
_LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
4691
case $cc_basename in
4693
# The more standards-conforming stlport4 library is
4694
# incompatible with the Cstd library. Avoid specifying
4695
# it if it's in CXXFLAGS. Ignore libCrun as
4696
# -library=stlport4 depends on it.
4697
case " $CXX $CXXFLAGS " in
4698
*" -library=stlport4 "*)
4699
solaris_use_stlport4=yes
4703
# Adding this requires a known-good setup of shared libraries for
4704
# Sun compiler versions before 5.6, else PIC objects from an old
4705
# archive will be linked into the output, leading to subtle bugs.
4706
if test "$solaris_use_stlport4" != yes; then
4707
_LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
4714
case " $_LT_AC_TAGVAR(postdeps, $1) " in
4715
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
4717
])# AC_LIBTOOL_POSTDEP_PREDEP
4719
# AC_LIBTOOL_LANG_F77_CONFIG
4720
# --------------------------
4721
# Ensure that the configuration vars for the C compiler are
4722
# suitably defined. Those variables are subsequently used by
4723
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4724
AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
4725
AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
4726
[AC_REQUIRE([AC_PROG_F77])
4727
AC_LANG_PUSH(Fortran 77)
4729
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4730
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
4731
_LT_AC_TAGVAR(always_export_symbols, $1)=no
4732
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
4733
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
4734
_LT_AC_TAGVAR(hardcode_direct, $1)=no
4735
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
4736
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4737
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4738
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
4739
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
4740
_LT_AC_TAGVAR(module_cmds, $1)=
4741
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
4742
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
4743
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4744
_LT_AC_TAGVAR(no_undefined_flag, $1)=
4745
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4746
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4748
# Source file extension for f77 test sources.
4751
# Object file extension for compiled f77 test sources.
4753
_LT_AC_TAGVAR(objext, $1)=$objext
4755
# Code to be used in simple compile tests
4756
lt_simple_compile_test_code="\
4762
# Code to be used in simple link tests
4763
lt_simple_link_test_code="\
4768
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4771
# save warnings/boilerplate of simple test code
4772
_LT_COMPILER_BOILERPLATE
4773
_LT_LINKER_BOILERPLATE
4775
# Allow CC to be a program name with arguments.
4779
_LT_AC_TAGVAR(compiler, $1)=$CC
4780
_LT_CC_BASENAME([$compiler])
4782
AC_MSG_CHECKING([if libtool supports shared libraries])
4783
AC_MSG_RESULT([$can_build_shared])
4785
AC_MSG_CHECKING([whether to build shared libraries])
4786
test "$can_build_shared" = "no" && enable_shared=no
4788
# On AIX, shared libraries and static libraries use the same namespace, and
4789
# are all built from PIC.
4792
test "$enable_shared" = yes && enable_static=no
4793
if test -n "$RANLIB"; then
4794
archive_cmds="$archive_cmds~\$RANLIB \$lib"
4795
postinstall_cmds='$RANLIB $lib'
4799
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4800
test "$enable_shared" = yes && enable_static=no
4804
AC_MSG_RESULT([$enable_shared])
4806
AC_MSG_CHECKING([whether to build static libraries])
4807
# Make sure either enable_shared or enable_static is yes.
4808
test "$enable_shared" = yes || enable_static=yes
4809
AC_MSG_RESULT([$enable_static])
4811
_LT_AC_TAGVAR(GCC, $1)="$G77"
4812
_LT_AC_TAGVAR(LD, $1)="$LD"
4814
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4815
AC_LIBTOOL_PROG_CC_C_O($1)
4816
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4817
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4818
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4819
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4821
AC_LIBTOOL_CONFIG($1)
4825
])# AC_LIBTOOL_LANG_F77_CONFIG
4828
# AC_LIBTOOL_LANG_GCJ_CONFIG
4829
# --------------------------
4830
# Ensure that the configuration vars for the C compiler are
4831
# suitably defined. Those variables are subsequently used by
4832
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4833
AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
4834
AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
4837
# Source file extension for Java test sources.
4840
# Object file extension for compiled Java test sources.
4842
_LT_AC_TAGVAR(objext, $1)=$objext
4844
# Code to be used in simple compile tests
4845
lt_simple_compile_test_code="class foo {}"
4847
# Code to be used in simple link tests
4848
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
4850
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4853
# save warnings/boilerplate of simple test code
4854
_LT_COMPILER_BOILERPLATE
4855
_LT_LINKER_BOILERPLATE
4857
# Allow CC to be a program name with arguments.
4861
_LT_AC_TAGVAR(compiler, $1)=$CC
4862
_LT_CC_BASENAME([$compiler])
4864
# GCJ did not exist at the time GCC didn't implicitly link libc in.
4865
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4867
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4869
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
4870
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4871
AC_LIBTOOL_PROG_CC_C_O($1)
4872
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4873
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4874
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4875
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4877
AC_LIBTOOL_CONFIG($1)
4881
])# AC_LIBTOOL_LANG_GCJ_CONFIG
4884
# AC_LIBTOOL_LANG_RC_CONFIG
4885
# -------------------------
4886
# Ensure that the configuration vars for the Windows resource compiler are
4887
# suitably defined. Those variables are subsequently used by
4888
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4889
AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
4890
AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
4893
# Source file extension for RC test sources.
4896
# Object file extension for compiled RC test sources.
4898
_LT_AC_TAGVAR(objext, $1)=$objext
4900
# Code to be used in simple compile tests
4901
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
4903
# Code to be used in simple link tests
4904
lt_simple_link_test_code="$lt_simple_compile_test_code"
4906
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4909
# save warnings/boilerplate of simple test code
4910
_LT_COMPILER_BOILERPLATE
4911
_LT_LINKER_BOILERPLATE
4913
# Allow CC to be a program name with arguments.
4917
_LT_AC_TAGVAR(compiler, $1)=$CC
4918
_LT_CC_BASENAME([$compiler])
4919
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
4921
AC_LIBTOOL_CONFIG($1)
4925
])# AC_LIBTOOL_LANG_RC_CONFIG
4928
# AC_LIBTOOL_CONFIG([TAGNAME])
4929
# ----------------------------
4930
# If TAGNAME is not passed, then create an initial libtool script
4931
# with a default configuration from the untagged config vars. Otherwise
4932
# add code to config.status for appending the configuration named by
4933
# TAGNAME from the matching tagged config vars.
4934
AC_DEFUN([AC_LIBTOOL_CONFIG],
4935
[# The else clause should only fire when bootstrapping the
4936
# libtool distribution, otherwise you forgot to ship ltmain.sh
4937
# with your package, and you will get complaints that there are
4938
# no rules to generate ltmain.sh.
4939
if test -f "$ltmain"; then
4940
# See if we are running on zsh, and set the options which allow our commands through
4941
# without removal of \ escapes.
4942
if test -n "${ZSH_VERSION+set}" ; then
4943
setopt NO_GLOB_SUBST
4945
# Now quote all the things that may contain metacharacters while being
4946
# careful not to overquote the AC_SUBSTed values. We take copies of the
4947
# variables and quote the copies for generation of the libtool script.
4948
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
4950
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
4951
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
4952
deplibs_check_method reload_flag reload_cmds need_locks \
4953
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
4954
lt_cv_sys_global_symbol_to_c_name_address \
4955
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
4956
old_postinstall_cmds old_postuninstall_cmds \
4957
_LT_AC_TAGVAR(compiler, $1) \
4958
_LT_AC_TAGVAR(CC, $1) \
4959
_LT_AC_TAGVAR(LD, $1) \
4960
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
4961
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
4962
_LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
4963
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
4964
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
4965
_LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
4966
_LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
4967
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
4968
_LT_AC_TAGVAR(old_archive_cmds, $1) \
4969
_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
4970
_LT_AC_TAGVAR(predep_objects, $1) \
4971
_LT_AC_TAGVAR(postdep_objects, $1) \
4972
_LT_AC_TAGVAR(predeps, $1) \
4973
_LT_AC_TAGVAR(postdeps, $1) \
4974
_LT_AC_TAGVAR(compiler_lib_search_path, $1) \
4975
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1) \
4976
_LT_AC_TAGVAR(archive_cmds, $1) \
4977
_LT_AC_TAGVAR(archive_expsym_cmds, $1) \
4978
_LT_AC_TAGVAR(postinstall_cmds, $1) \
4979
_LT_AC_TAGVAR(postuninstall_cmds, $1) \
4980
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
4981
_LT_AC_TAGVAR(allow_undefined_flag, $1) \
4982
_LT_AC_TAGVAR(no_undefined_flag, $1) \
4983
_LT_AC_TAGVAR(export_symbols_cmds, $1) \
4984
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
4985
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
4986
_LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
4987
_LT_AC_TAGVAR(hardcode_automatic, $1) \
4988
_LT_AC_TAGVAR(module_cmds, $1) \
4989
_LT_AC_TAGVAR(module_expsym_cmds, $1) \
4990
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
4991
_LT_AC_TAGVAR(fix_srcfile_path, $1) \
4992
_LT_AC_TAGVAR(exclude_expsyms, $1) \
4993
_LT_AC_TAGVAR(include_expsyms, $1); do
4996
_LT_AC_TAGVAR(old_archive_cmds, $1) | \
4997
_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
4998
_LT_AC_TAGVAR(archive_cmds, $1) | \
4999
_LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
5000
_LT_AC_TAGVAR(module_cmds, $1) | \
5001
_LT_AC_TAGVAR(module_expsym_cmds, $1) | \
5002
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
5003
_LT_AC_TAGVAR(export_symbols_cmds, $1) | \
5004
extract_expsyms_cmds | reload_cmds | finish_cmds | \
5005
postinstall_cmds | postuninstall_cmds | \
5006
old_postinstall_cmds | old_postuninstall_cmds | \
5007
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
5008
# Double-quote double-evaled strings.
5009
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
5012
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
5018
*'\[$]0 --fallback-echo"')
5019
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
5024
[cfgfile="${ofile}T"
5025
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
5027
AC_MSG_NOTICE([creating $ofile])],
5030
cat <<__EOF__ >> "$cfgfile"
5034
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
5035
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
5036
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
5038
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
5039
# Free Software Foundation, Inc.
5041
# This file is part of GNU Libtool:
5042
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
5044
# This program is free software; you can redistribute it and/or modify
5045
# it under the terms of the GNU General Public License as published by
5046
# the Free Software Foundation; either version 2 of the License, or
5047
# (at your option) any later version.
5049
# This program is distributed in the hope that it will be useful, but
5050
# WITHOUT ANY WARRANTY; without even the implied warranty of
5051
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
5052
# General Public License for more details.
5054
# You should have received a copy of the GNU General Public License
5055
# along with this program; if not, write to the Free Software
5056
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
5058
# As a special exception to the GNU General Public License, if you
5059
# distribute this file as part of a program that contains a
5060
# configuration script generated by Autoconf, you may include it under
5061
# the same distribution terms that you use for the rest of that program.
5063
# A sed program that does not truncate output.
5066
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
5067
Xsed="$SED -e 1s/^X//"
5069
# The HP-UX ksh and POSIX shell print the target directory to stdout
5071
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5073
# The names of the tagged configurations supported by this script.
5076
# ### BEGIN LIBTOOL CONFIG],
5077
[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
5079
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5081
# Shell to use when invoking shell scripts.
5084
# Whether or not to build shared libraries.
5085
build_libtool_libs=$enable_shared
5087
# Whether or not to build static libraries.
5088
build_old_libs=$enable_static
5090
# Whether or not to add -lc for building shared libraries.
5091
build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
5093
# Whether or not to disallow shared libs when runtime libs are static
5094
allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
5096
# Whether or not to optimize for fast installation.
5097
fast_install=$enable_fast_install
5100
host_alias=$host_alias
5105
build_alias=$build_alias
5109
# An echo program that does not interpret backslashes.
5114
AR_FLAGS=$lt_AR_FLAGS
5119
# LTCC compiler flags.
5120
LTCFLAGS=$lt_LTCFLAGS
5122
# A language-specific compiler.
5123
CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
5125
# Is the compiler the GNU C compiler?
5126
with_gcc=$_LT_AC_TAGVAR(GCC, $1)
5131
# The linker used to build libraries.
5132
LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
5134
# Whether we need hard or soft links.
5137
# A BSD-compatible nm program.
5140
# A symbol stripping program
5143
# Used to examine libraries when file_magic_cmd begins "file"
5144
MAGIC_CMD=$MAGIC_CMD
5146
# Used on cygwin: DLL creation program.
5149
# Used on cygwin: object dumper.
5152
# Used on cygwin: assembler.
5155
# The name of the directory that contains temporary libtool files.
5158
# How to create reloadable object files.
5159
reload_flag=$lt_reload_flag
5160
reload_cmds=$lt_reload_cmds
5162
# How to pass a linker flag through the compiler.
5163
wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
5165
# Object file suffix (normally "o").
5168
# Old archive suffix (normally "a").
5171
# Shared library suffix (normally ".so").
5172
shrext_cmds='$shrext_cmds'
5174
# Executable file suffix (normally "").
5177
# Additional compiler flags for building library objects.
5178
pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
5181
# What is the maximum length of a command?
5182
max_cmd_len=$lt_cv_sys_max_cmd_len
5184
# Does compiler simultaneously support -c and -o options?
5185
compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
5187
# Must we lock files when doing compilation?
5188
need_locks=$lt_need_locks
5190
# Do we need the lib prefix for modules?
5191
need_lib_prefix=$need_lib_prefix
5193
# Do we need a version for libraries?
5194
need_version=$need_version
5196
# Whether dlopen is supported.
5197
dlopen_support=$enable_dlopen
5199
# Whether dlopen of programs is supported.
5200
dlopen_self=$enable_dlopen_self
5202
# Whether dlopen of statically linked programs is supported.
5203
dlopen_self_static=$enable_dlopen_self_static
5205
# Compiler flag to prevent dynamic linking.
5206
link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
5208
# Compiler flag to turn off builtin functions.
5209
no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
5211
# Compiler flag to allow reflexive dlopens.
5212
export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
5214
# Compiler flag to generate shared objects directly from archives.
5215
whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
5217
# Compiler flag to generate thread-safe objects.
5218
thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
5220
# Library versioning type.
5221
version_type=$version_type
5223
# Format of library name prefix.
5224
libname_spec=$lt_libname_spec
5226
# List of archive names. First name is the real one, the rest are links.
5227
# The last name is the one that the linker finds with -lNAME.
5228
library_names_spec=$lt_library_names_spec
5230
# The coded name of the library, if different from the real name.
5231
soname_spec=$lt_soname_spec
5233
# Commands used to build and install an old-style archive.
5235
old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
5236
old_postinstall_cmds=$lt_old_postinstall_cmds
5237
old_postuninstall_cmds=$lt_old_postuninstall_cmds
5239
# Create an old-style archive from a shared archive.
5240
old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
5242
# Create a temporary old-style archive to link instead of a shared archive.
5243
old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
5245
# Commands used to build and install a shared archive.
5246
archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
5247
archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
5248
postinstall_cmds=$lt_postinstall_cmds
5249
postuninstall_cmds=$lt_postuninstall_cmds
5251
# Commands used to build a loadable module (assumed same as above if empty)
5252
module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
5253
module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
5255
# Commands to strip libraries.
5256
old_striplib=$lt_old_striplib
5257
striplib=$lt_striplib
5259
# Dependencies to place before the objects being linked to create a
5261
predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
5263
# Dependencies to place after the objects being linked to create a
5265
postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
5267
# Dependencies to place before the objects being linked to create a
5269
predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
5271
# Dependencies to place after the objects being linked to create a
5273
postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
5275
# The directories searched by this compiler when creating a shared
5277
compiler_lib_search_dirs=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)
5279
# The library search path used internally by the compiler when linking
5281
compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
5283
# Method to check whether dependent libraries are shared objects.
5284
deplibs_check_method=$lt_deplibs_check_method
5286
# Command to use when deplibs_check_method == file_magic.
5287
file_magic_cmd=$lt_file_magic_cmd
5289
# Flag that allows shared libraries with undefined symbols to be built.
5290
allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
5292
# Flag that forces no undefined symbols.
5293
no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
5295
# Commands used to finish a libtool library installation in a directory.
5296
finish_cmds=$lt_finish_cmds
5298
# Same as above, but a single script fragment to be evaled but not shown.
5299
finish_eval=$lt_finish_eval
5301
# Take the output of nm and produce a listing of raw symbols and C names.
5302
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
5304
# Transform the output of nm in a proper C declaration
5305
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
5307
# Transform the output of nm in a C name address pair
5308
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
5310
# This is the shared library runtime path variable.
5311
runpath_var=$runpath_var
5313
# This is the shared library path variable.
5314
shlibpath_var=$shlibpath_var
5316
# Is shlibpath searched before the hard-coded library search path?
5317
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
5319
# How to hardcode a shared library path into an executable.
5320
hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
5322
# Whether we should hardcode library paths into libraries.
5323
hardcode_into_libs=$hardcode_into_libs
5325
# Flag to hardcode \$libdir into a binary during linking.
5326
# This must work even if \$libdir does not exist.
5327
hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
5329
# If ld is used when linking, flag to hardcode \$libdir into
5330
# a binary during linking. This must work even if \$libdir does
5332
hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
5334
# Whether we need a single -rpath flag with a separated argument.
5335
hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
5337
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
5339
hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
5341
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
5343
hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
5345
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
5346
# the resulting binary.
5347
hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
5349
# Set to yes if building a shared library automatically hardcodes DIR into the library
5350
# and all subsequent libraries and executables linked against it.
5351
hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
5353
# Variables whose values should be saved in libtool wrapper scripts and
5354
# restored at relink time.
5355
variables_saved_for_relink="$variables_saved_for_relink"
5357
# Whether libtool must link a program against all its dependency libraries.
5358
link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
5360
# Compile-time system search path for libraries
5361
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
5363
# Run-time system search path for libraries
5364
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
5366
# Fix the shell variable \$srcfile for the compiler.
5367
fix_srcfile_path=$lt_fix_srcfile_path
5369
# Set to yes if exported symbols are required.
5370
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
5372
# The commands to list exported symbols.
5373
export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
5375
# The commands to extract the exported symbol list from a shared archive.
5376
extract_expsyms_cmds=$lt_extract_expsyms_cmds
5378
# Symbols that should not be listed in the preloaded symbols.
5379
exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
5381
# Symbols that must always be exported.
5382
include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
5385
[# ### END LIBTOOL CONFIG],
5386
[# ### END LIBTOOL TAG CONFIG: $tagname])
5393
cat <<\EOF >> "$cfgfile"
5395
# AIX sometimes has problems with the GCC collect2 program. For some
5396
# reason, if we set the COLLECT_NAMES environment variable, the problems
5397
# vanish in a puff of smoke.
5398
if test "X${COLLECT_NAMES+set}" != Xset; then
5400
export COLLECT_NAMES
5406
# We use sed instead of cat because bash on DJGPP gets confused if
5407
# if finds mixed CR/LF and LF-only lines. Since sed operates in
5408
# text mode, it properly converts lines to CR/LF. This bash problem
5409
# is reportedly fixed, but why not run on old versions too?
5410
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
5412
mv -f "$cfgfile" "$ofile" || \
5413
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
5417
# If there is no Makefile yet, we rely on a make rule to execute
5418
# `config.status --recheck' to rerun these tests and create the
5419
# libtool script then.
5420
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
5421
if test -f "$ltmain_in"; then
5422
test -f Makefile && make "$ltmain"
5425
])# AC_LIBTOOL_CONFIG
5428
# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
5429
# -------------------------------------------
5430
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
5431
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
5433
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3956
5435
if test "$GCC" = yes; then
3957
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
5436
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
3959
_LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
5438
AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
3960
5439
lt_cv_prog_compiler_rtti_exceptions,
3961
5440
[-fno-rtti -fno-exceptions], [],
3962
[_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
5441
[_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
3964
_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
3965
[Compiler flag to turn off builtin functions])
3966
])# _LT_COMPILER_NO_RTTI
3969
# _LT_CMD_GLOBAL_SYMBOLS
3970
# ----------------------
3971
m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
3972
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3973
AC_REQUIRE([AC_PROG_CC])dnl
3974
AC_REQUIRE([LT_PATH_NM])dnl
3975
AC_REQUIRE([LT_PATH_LD])dnl
3976
m4_require([_LT_DECL_SED])dnl
3977
m4_require([_LT_DECL_EGREP])dnl
3978
m4_require([_LT_TAG_COMPILER])dnl
5443
])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
5446
# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
5447
# ---------------------------------
5448
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
5449
[AC_REQUIRE([AC_CANONICAL_HOST])
5450
AC_REQUIRE([LT_AC_PROG_SED])
5451
AC_REQUIRE([AC_PROG_NM])
5452
AC_REQUIRE([AC_OBJEXT])
3980
5453
# Check for command to grab the raw symbol name followed by C symbol from nm.
3981
5454
AC_MSG_CHECKING([command to parse $NM output from $compiler object])
3982
5455
AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
4625
6051
# +Z the default
4628
_LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
6054
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4631
6057
# Is there a better lt_prog_compiler_static that works with the bundled CC?
4632
_LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
6058
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4635
6061
irix5* | irix6* | nonstopux*)
4636
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6062
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4637
6063
# PIC (with -KPIC) is the default.
4638
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6064
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6068
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6069
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4641
6072
linux* | k*bsd*-gnu)
4642
6073
case $cc_basename in
4643
icc* | ecc* | ifort*)
4644
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4645
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4646
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
6075
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6076
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6077
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
4648
6079
pgcc* | pgf77* | pgf90* | pgf95*)
4649
6080
# Portland Group compilers (*not* the Pentium gcc compiler,
4650
6081
# which looks to be a dead project)
4651
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4652
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4653
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6082
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6083
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
6084
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4656
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6087
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4657
6088
# All Alpha code is PIC.
4658
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6089
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4661
# IBM XL C 8.0/Fortran 10.1 on PPC
4662
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4663
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4664
_LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4667
case `$CC -V 2>&1 | sed 5q` in
6092
case `$CC -V 2>&1 | sed 5q` in
4670
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4671
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4672
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6095
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6096
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6097
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4675
6100
# Sun Fortran 8.3 passes all unrecognized flags to the linker
4676
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4677
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4678
_LT_TAGVAR(lt_prog_compiler_wl, $1)=''
6101
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6102
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6103
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
4686
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4687
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4691
# QNX uses GNU C++, but need to define -shared option too, otherwise
4693
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4696
6110
osf3* | osf4* | osf5*)
4697
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6111
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4698
6112
# All OSF/1 code is PIC.
4699
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6113
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4703
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6117
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4707
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4708
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6121
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6122
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4709
6123
case $cc_basename in
4710
6124
f77* | f90* | f95*)
4711
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
6125
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
4713
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
6127
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
4718
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4719
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4720
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6132
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
6133
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
6134
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4723
6137
sysv4 | sysv4.2uw2* | sysv4.3*)
4724
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4725
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4726
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6138
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6139
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6140
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4730
6144
if test -d /usr/nec ;then
4731
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
4732
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6145
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
6146
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4736
6150
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
4737
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4738
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4739
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6151
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6152
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6153
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4743
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4744
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6157
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6158
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4748
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4749
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6162
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6163
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4753
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6167
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4759
# For platforms which do not support PIC, -DPIC is meaningless:
4761
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4764
_LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
4767
AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
4768
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
4769
[How to pass a linker flag through the compiler])
6172
AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
4772
6175
# Check to make sure the PIC flag actually works.
4774
if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4775
_LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
4776
[_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
4777
[$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
4778
[case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
6177
if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
6178
AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
6179
_LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1),
6180
[$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
6181
[case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
4780
*) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
6183
*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
4782
[_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4783
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
6185
[_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6186
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
4785
_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
4786
[Additional compiler flags for building library objects])
6189
# For platforms which do not support PIC, -DPIC is meaningless:
6191
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6194
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
4789
6199
# Check to make sure the static flag actually works.
4791
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
4792
_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
4793
_LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
6201
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
6202
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
6203
_LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1),
4794
6204
$lt_tmp_static_flag,
4796
[_LT_TAGVAR(lt_prog_compiler_static, $1)=])
4797
_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
4798
[Compiler flag to prevent dynamic linking])
4799
])# _LT_COMPILER_PIC
4802
# _LT_LINKER_SHLIBS([TAGNAME])
4803
# ----------------------------
6206
[_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
6210
# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
6211
# ------------------------------------
4804
6212
# See if the linker supports building shared libraries.
4805
m4_defun([_LT_LINKER_SHLIBS],
4806
[AC_REQUIRE([LT_PATH_LD])dnl
4807
AC_REQUIRE([LT_PATH_NM])dnl
4808
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
4809
m4_require([_LT_DECL_EGREP])dnl
4810
m4_require([_LT_DECL_SED])dnl
4811
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
4812
m4_require([_LT_TAG_COMPILER])dnl
6213
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
6214
[AC_REQUIRE([LT_AC_PROG_SED])dnl
4813
6215
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
4814
m4_if([$1], [CXX], [
4815
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6217
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4816
6218
case $host_os in
4818
6220
# If we're using GNU nm, then we don't want the "-C" option.
4819
6221
# -C means demangle to AIX nm, but means don't demangle with GNU nm
4820
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4821
_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'
6222
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6223
_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'
4823
_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'
6225
_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'
4827
_LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
6229
_LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
4829
6231
cygwin* | mingw*)
4830
_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'
4832
linux* | k*bsd*-gnu)
4833
_LT_TAGVAR(link_all_deplibs, $1)=no
6232
_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
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6235
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4839
_LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
6238
_LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4842
_LT_TAGVAR(allow_undefined_flag, $1)=
4843
_LT_TAGVAR(always_export_symbols, $1)=no
4844
_LT_TAGVAR(archive_cmds, $1)=
4845
_LT_TAGVAR(archive_expsym_cmds, $1)=
4846
_LT_TAGVAR(compiler_needs_object, $1)=no
4847
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4848
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
4849
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4850
_LT_TAGVAR(hardcode_automatic, $1)=no
4851
_LT_TAGVAR(hardcode_direct, $1)=no
4852
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
4853
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4854
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4855
_LT_TAGVAR(hardcode_libdir_separator, $1)=
4856
_LT_TAGVAR(hardcode_minus_L, $1)=no
4857
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4858
_LT_TAGVAR(inherit_rpath, $1)=no
4859
_LT_TAGVAR(link_all_deplibs, $1)=unknown
4860
_LT_TAGVAR(module_cmds, $1)=
4861
_LT_TAGVAR(module_expsym_cmds, $1)=
4862
_LT_TAGVAR(old_archive_from_new_cmds, $1)=
4863
_LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
4864
_LT_TAGVAR(thread_safe_flag_spec, $1)=
4865
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6241
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
6242
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6243
_LT_AC_TAGVAR(archive_cmds, $1)=
6244
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
6245
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
6246
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
6247
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
6248
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6249
_LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
6250
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
6251
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6252
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
6253
_LT_AC_TAGVAR(hardcode_direct, $1)=no
6254
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
6255
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6256
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
6257
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
6258
_LT_AC_TAGVAR(module_cmds, $1)=
6259
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
6260
_LT_AC_TAGVAR(always_export_symbols, $1)=no
6261
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4866
6262
# include_expsyms should be a list of space-separated symbols to be *always*
4867
6263
# included in the symbol list
4868
_LT_TAGVAR(include_expsyms, $1)=
6264
_LT_AC_TAGVAR(include_expsyms, $1)=
4869
6265
# exclude_expsyms can be an extended regexp of symbols to exclude
4870
6266
# it will be wrapped by ` (' and `)$', so one must not match beginning or
4871
6267
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4872
6268
# as well as any symbol that contains `d'.
4873
_LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
6269
_LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4874
6270
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4875
6271
# platforms (ab)use it in PIC code, but their linkers get confused if
4876
6272
# the symbol is explicitly referenced. Since portable code cannot
5468
6866
irix5* | irix6* | nonstopux*)
5469
6867
if test "$GCC" = yes; then
5470
_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'
5471
# Try to use the -exported_symbol ld option, if it does not
5472
# work, assume that -exports_file does not work either and
5473
# implicitly export all symbols.
5474
save_LDFLAGS="$LDFLAGS"
5475
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5476
AC_LINK_IFELSE(int foo(void) {},
5477
_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'
5479
LDFLAGS="$save_LDFLAGS"
6868
_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'
5481
_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'
5482
_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'
6870
_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'
6871
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
5484
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5485
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5486
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5487
_LT_TAGVAR(inherit_rpath, $1)=yes
5488
_LT_TAGVAR(link_all_deplibs, $1)=yes
6873
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6874
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6875
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5491
netbsd* | netbsdelf*-gnu)
5492
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5493
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6879
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6880
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5495
_LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6882
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5497
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5498
_LT_TAGVAR(hardcode_direct, $1)=yes
5499
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6884
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6885
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6886
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5503
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5504
_LT_TAGVAR(hardcode_direct, $1)=yes
5505
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5506
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5507
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6890
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6891
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6892
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6893
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6894
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5514
6898
if test -f /usr/libexec/ld.so; then
5515
_LT_TAGVAR(hardcode_direct, $1)=yes
5516
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5517
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5518
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5519
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5520
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
5521
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5522
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6899
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6900
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6901
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6902
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6903
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6904
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6905
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5524
6907
case $host_os in
5525
6908
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
5526
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5527
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6909
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6910
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5530
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5531
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6913
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6914
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5536
_LT_TAGVAR(ld_shlibs, $1)=no
6919
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5541
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5542
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5543
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5544
_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'
5545
_LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6924
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6925
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6926
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6927
_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'
6928
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5549
6932
if test "$GCC" = yes; then
5550
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5551
_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'
6933
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6934
_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'
5553
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5554
_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'
6936
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6937
_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'
5556
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5557
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5558
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6939
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6940
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5561
6943
osf4* | osf5*) # as osf3* with the addition of -msym flag
5562
6944
if test "$GCC" = yes; then
5563
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5564
_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'
5565
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6945
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6946
_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'
6947
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5567
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5568
_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'
5569
_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~
5570
$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'
6949
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6950
_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'
6951
_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~
6952
$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'
5572
6954
# Both c and cxx compiler support -rpath directly
5573
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6955
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5575
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5576
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6957
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5580
_LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
6961
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
5581
6962
if test "$GCC" = yes; then
5583
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5584
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5585
$CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
6964
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6965
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6966
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
5587
case `$CC -V 2>&1` in
5590
_LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5591
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5592
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
5596
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
5597
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5598
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
6969
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6970
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6971
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5602
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5603
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6973
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6974
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5604
6975
case $host_os in
5605
6976
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
5607
6978
# The compiler driver will combine and reorder linker options,
5608
6979
# but understands `-z linker_flag'. GCC discards it without `$wl',
5609
6980
# but is careful enough not to reorder.
5610
# Supported since Solaris 2.6 (maybe 2.5.1?)
6981
# Supported since Solaris 2.6 (maybe 2.5.1?)
5611
6982
if test "$GCC" = yes; then
5612
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6983
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
5614
_LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6985
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
5618
_LT_TAGVAR(link_all_deplibs, $1)=yes
6989
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5622
6993
if test "x$host_vendor" = xsequent; then
5623
6994
# Use $CC to link under sequent, because it throws in some extra .o
5624
6995
# files that make .init and .fini sections work.
5625
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6996
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5627
_LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6998
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5629
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5630
_LT_TAGVAR(hardcode_direct, $1)=yes
5631
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5632
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7000
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7001
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
7002
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7003
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5636
7007
case $host_vendor in
5638
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5639
_LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
7009
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7010
_LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
5642
7013
## LD is ld it makes a PLAMLIB
5643
7014
## CC just makes a GrossModule.
5644
_LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5645
_LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
5646
_LT_TAGVAR(hardcode_direct, $1)=no
7015
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7016
_LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
7017
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5649
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5650
_LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
7020
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7021
_LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
5653
7024
runpath_var='LD_RUN_PATH'
5654
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7025
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5658
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5659
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5660
_LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
7029
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7030
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7031
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
5664
7035
if test -d /usr/nec; then
5665
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5666
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7036
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7037
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5667
7038
runpath_var=LD_RUN_PATH
5668
7039
hardcode_runpath_var=yes
5669
_LT_TAGVAR(ld_shlibs, $1)=yes
7040
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
5673
7044
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
5674
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5675
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5676
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7045
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7046
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7047
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5677
7048
runpath_var='LD_RUN_PATH'
5679
7050
if test "$GCC" = yes; then
5680
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5681
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7051
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7052
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5683
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5684
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7054
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7055
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5768
7124
libobjs=conftest.$ac_objext
5770
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5771
pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
7126
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
7127
pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
5772
7128
compiler_flags=-v
5773
7129
linker_flags=-v
5775
7131
output_objdir=.
5776
7132
libname=conftest
5777
lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5778
_LT_TAGVAR(allow_undefined_flag, $1)=
5779
if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
7133
lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
7134
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
7135
if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
5781
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7137
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5783
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
7139
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
5785
_LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
7141
_LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5787
7143
cat conftest.err 1>&5
5790
AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
7146
AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
5797
_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
5798
[Whether or not to add -lc for building shared libraries])
5799
_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
5800
[enable_shared_with_static_runtimes], [0],
5801
[Whether or not to disallow shared libs when runtime libs are static])
5802
_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
5803
[Compiler flag to allow reflexive dlopens])
5804
_LT_TAGDECL([], [whole_archive_flag_spec], [1],
5805
[Compiler flag to generate shared objects directly from archives])
5806
_LT_TAGDECL([], [compiler_needs_object], [1],
5807
[Whether the compiler copes with passing no objects directly])
5808
_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
5809
[Create an old-style archive from a shared archive])
5810
_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
5811
[Create a temporary old-style archive to link instead of a shared archive])
5812
_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
5813
_LT_TAGDECL([], [archive_expsym_cmds], [2])
5814
_LT_TAGDECL([], [module_cmds], [2],
5815
[Commands used to build a loadable module if different from building
5817
_LT_TAGDECL([], [module_expsym_cmds], [2])
5818
_LT_TAGDECL([], [with_gnu_ld], [1],
5819
[Whether we are building with GNU ld or not])
5820
_LT_TAGDECL([], [allow_undefined_flag], [1],
5821
[Flag that allows shared libraries with undefined symbols to be built])
5822
_LT_TAGDECL([], [no_undefined_flag], [1],
5823
[Flag that enforces no undefined symbols])
5824
_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
5825
[Flag to hardcode $libdir into a binary during linking.
5826
This must work even if $libdir does not exist])
5827
_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
5828
[[If ld is used when linking, flag to hardcode $libdir into a binary
5829
during linking. This must work even if $libdir does not exist]])
5830
_LT_TAGDECL([], [hardcode_libdir_separator], [1],
5831
[Whether we need a single "-rpath" flag with a separated argument])
5832
_LT_TAGDECL([], [hardcode_direct], [0],
5833
[Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
5834
DIR into the resulting binary])
5835
_LT_TAGDECL([], [hardcode_direct_absolute], [0],
5836
[Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
5837
DIR into the resulting binary and the resulting library dependency is
5838
"absolute", i.e impossible to change by setting ${shlibpath_var} if the
5839
library is relocated])
5840
_LT_TAGDECL([], [hardcode_minus_L], [0],
5841
[Set to "yes" if using the -LDIR flag during linking hardcodes DIR
5842
into the resulting binary])
5843
_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
5844
[Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
5845
into the resulting binary])
5846
_LT_TAGDECL([], [hardcode_automatic], [0],
5847
[Set to "yes" if building a shared library automatically hardcodes DIR
5848
into the library and all subsequent libraries and executables linked
5850
_LT_TAGDECL([], [inherit_rpath], [0],
5851
[Set to yes if linker adds runtime paths of dependent libraries
5852
to runtime path list])
5853
_LT_TAGDECL([], [link_all_deplibs], [0],
5854
[Whether libtool must link a program against all its dependency libraries])
5855
_LT_TAGDECL([], [fix_srcfile_path], [1],
5856
[Fix the shell variable $srcfile for the compiler])
5857
_LT_TAGDECL([], [always_export_symbols], [0],
5858
[Set to "yes" if exported symbols are required])
5859
_LT_TAGDECL([], [export_symbols_cmds], [2],
5860
[The commands to list exported symbols])
5861
_LT_TAGDECL([], [exclude_expsyms], [1],
5862
[Symbols that should not be listed in the preloaded symbols])
5863
_LT_TAGDECL([], [include_expsyms], [1],
5864
[Symbols that must always be exported])
5865
_LT_TAGDECL([], [prelink_cmds], [2],
5866
[Commands necessary for linking programs (against libraries) with templates])
5867
_LT_TAGDECL([], [file_list_spec], [1],
5868
[Specify filename containing input files])
5869
dnl FIXME: Not yet implemented
5870
dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
5871
dnl [Compiler flag to generate thread safe objects])
5872
])# _LT_LINKER_SHLIBS
5875
# _LT_LANG_C_CONFIG([TAG])
5876
# ------------------------
5877
# Ensure that the configuration variables for a C compiler are suitably
5878
# defined. These variables are subsequently used by _LT_CONFIG to write
5879
# the compiler configuration to `libtool'.
5880
m4_defun([_LT_LANG_C_CONFIG],
5881
[m4_require([_LT_DECL_EGREP])dnl
5885
# Source file extension for C test sources.
5888
# Object file extension for compiled C test sources.
5890
_LT_TAGVAR(objext, $1)=$objext
5892
# Code to be used in simple compile tests
5893
lt_simple_compile_test_code="int some_variable = 0;"
5895
# Code to be used in simple link tests
5896
lt_simple_link_test_code='int main(){return(0);}'
5899
# Save the default compiler, since it gets overwritten when the other
5900
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
5901
compiler_DEFAULT=$CC
5903
# save warnings/boilerplate of simple test code
5904
_LT_COMPILER_BOILERPLATE
5905
_LT_LINKER_BOILERPLATE
5907
if test -n "$compiler"; then
5908
_LT_COMPILER_NO_RTTI($1)
5909
_LT_COMPILER_PIC($1)
5910
_LT_COMPILER_C_O($1)
5911
_LT_COMPILER_FILE_LOCKS($1)
5912
_LT_LINKER_SHLIBS($1)
5913
_LT_SYS_DYNAMIC_LINKER($1)
5914
_LT_LINKER_HARDCODE_LIBPATH($1)
5918
# Report which library types will actually be built
5919
AC_MSG_CHECKING([if libtool supports shared libraries])
5920
AC_MSG_RESULT([$can_build_shared])
5922
AC_MSG_CHECKING([whether to build shared libraries])
5923
test "$can_build_shared" = "no" && enable_shared=no
5925
# On AIX, shared libraries and static libraries use the same namespace, and
5926
# are all built from PIC.
5929
test "$enable_shared" = yes && enable_static=no
5930
if test -n "$RANLIB"; then
5931
archive_cmds="$archive_cmds~\$RANLIB \$lib"
5932
postinstall_cmds='$RANLIB $lib'
5937
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5938
test "$enable_shared" = yes && enable_static=no
5942
AC_MSG_RESULT([$enable_shared])
5944
AC_MSG_CHECKING([whether to build static libraries])
5945
# Make sure either enable_shared or enable_static is yes.
5946
test "$enable_shared" = yes || enable_static=yes
5947
AC_MSG_RESULT([$enable_static])
5953
])# _LT_LANG_C_CONFIG
5958
# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
5959
# compiler, we have our own version here.
5960
m4_defun([_LT_PROG_CXX],
5962
pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
5964
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5965
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5966
(test "X$CXX" != "Xg++"))) ; then
5969
_lt_caught_CXX_error=yes
5971
popdef([AC_MSG_ERROR])
5974
dnl aclocal-1.4 backwards compatibility:
5975
dnl AC_DEFUN([_LT_PROG_CXX], [])
5978
# _LT_LANG_CXX_CONFIG([TAG])
5979
# --------------------------
5980
# Ensure that the configuration variables for a C++ compiler are suitably
5981
# defined. These variables are subsequently used by _LT_CONFIG to write
5982
# the compiler configuration to `libtool'.
5983
m4_defun([_LT_LANG_CXX_CONFIG],
5984
[AC_REQUIRE([_LT_PROG_CXX])dnl
5985
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5986
m4_require([_LT_DECL_EGREP])dnl
5989
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5990
_LT_TAGVAR(allow_undefined_flag, $1)=
5991
_LT_TAGVAR(always_export_symbols, $1)=no
5992
_LT_TAGVAR(archive_expsym_cmds, $1)=
5993
_LT_TAGVAR(compiler_needs_object, $1)=no
5994
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
5995
_LT_TAGVAR(hardcode_direct, $1)=no
5996
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
5997
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5998
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5999
_LT_TAGVAR(hardcode_libdir_separator, $1)=
6000
_LT_TAGVAR(hardcode_minus_L, $1)=no
6001
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6002
_LT_TAGVAR(hardcode_automatic, $1)=no
6003
_LT_TAGVAR(inherit_rpath, $1)=no
6004
_LT_TAGVAR(module_cmds, $1)=
6005
_LT_TAGVAR(module_expsym_cmds, $1)=
6006
_LT_TAGVAR(link_all_deplibs, $1)=unknown
6007
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6008
_LT_TAGVAR(no_undefined_flag, $1)=
6009
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6010
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6012
# Source file extension for C++ test sources.
6015
# Object file extension for compiled C++ test sources.
6017
_LT_TAGVAR(objext, $1)=$objext
6019
# No sense in running all these tests if we already determined that
6020
# the CXX compiler isn't working. Some variables (like enable_shared)
6021
# are currently assumed to apply to all compilers on this platform,
6022
# and will be corrupted by setting them based on a non-working compiler.
6023
if test "$_lt_caught_CXX_error" != yes; then
6024
# Code to be used in simple compile tests
6025
lt_simple_compile_test_code="int some_variable = 0;"
6027
# Code to be used in simple link tests
6028
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
6030
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
6033
# save warnings/boilerplate of simple test code
6034
_LT_COMPILER_BOILERPLATE
6035
_LT_LINKER_BOILERPLATE
6037
# Allow CC to be a program name with arguments.
6042
lt_save_with_gnu_ld=$with_gnu_ld
6043
lt_save_path_LD=$lt_cv_path_LD
6044
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
6045
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
6047
$as_unset lt_cv_prog_gnu_ld
6049
if test -n "${lt_cv_path_LDCXX+set}"; then
6050
lt_cv_path_LD=$lt_cv_path_LDCXX
6052
$as_unset lt_cv_path_LD
6054
test -z "${LDCXX+set}" || LD=$LDCXX
6057
_LT_TAGVAR(compiler, $1)=$CC
6058
_LT_CC_BASENAME([$compiler])
6060
if test -n "$compiler"; then
6061
# We don't want -fno-exception when compiling C++ code, so set the
6062
# no_builtin_flag separately
6063
if test "$GXX" = yes; then
6064
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
6066
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
6069
if test "$GXX" = yes; then
6070
# Set up default GNU C++ configuration
6074
# Check if GNU C++ uses GNU ld as the underlying linker, since the
6075
# archiving commands below assume that GNU ld is being used.
6076
if test "$with_gnu_ld" = yes; then
6077
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6078
_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'
6080
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6081
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6083
# If archive_cmds runs LD, not CC, wlarc should be empty
6084
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
6085
# investigate it a little bit more. (MM)
6088
# ancient GNU ld didn't support --whole-archive et. al.
6089
if eval "`$CC -print-prog-name=ld` --help 2>&1" |
6090
$GREP 'no-whole-archive' > /dev/null; then
6091
_LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6093
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6099
# A generic and very simple default shared library creation
6100
# command for GNU C++ for the case where it uses the native
6101
# linker, instead of GNU ld. If possible, this setting should
6102
# overridden to take advantage of the native linker features on
6103
# the platform it is being used on.
6104
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6107
# Commands to make compiler produce verbose output that lists
6108
# what "hidden" libraries, object files and flags are used when
6109
# linking a shared library.
6110
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6118
# PORTME: fill in a description of your system's C++ link characteristics
6119
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
6120
_LT_TAGVAR(ld_shlibs, $1)=yes
6123
# FIXME: insert proper C++ library support
6124
_LT_TAGVAR(ld_shlibs, $1)=no
6127
if test "$host_cpu" = ia64; then
6128
# On IA64, the linker does run time linking by default, so we don't
6129
# have to do anything special.
6130
aix_use_runtimelinking=no
6131
exp_sym_flag='-Bexport'
6134
aix_use_runtimelinking=no
6136
# Test if we are trying to use run time linking or normal
6137
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
6138
# need to do runtime linking.
6139
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
6140
for ld_flag in $LDFLAGS; do
6143
aix_use_runtimelinking=yes
6151
exp_sym_flag='-bexport'
6152
no_entry_flag='-bnoentry'
6155
# When large executables or shared objects are built, AIX ld can
6156
# have problems creating the table of contents. If linking a library
6157
# or program results in "error TOC overflow" add -mminimal-toc to
6158
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6159
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6161
_LT_TAGVAR(archive_cmds, $1)=''
6162
_LT_TAGVAR(hardcode_direct, $1)=yes
6163
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6164
_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6165
_LT_TAGVAR(link_all_deplibs, $1)=yes
6166
_LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
6168
if test "$GXX" = yes; then
6169
case $host_os in aix4.[[012]]|aix4.[[012]].*)
6170
# We only want to do this on AIX 4.2 and lower, the check
6171
# below for broken collect2 doesn't work under 4.3+
6172
collect2name=`${CC} -print-prog-name=collect2`
6173
if test -f "$collect2name" &&
6174
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
6176
# We have reworked collect2
6179
# We have old collect2
6180
_LT_TAGVAR(hardcode_direct, $1)=unsupported
6181
# It fails to find uninstalled libraries when the uninstalled
6182
# path is not listed in the libpath. Setting hardcode_minus_L
6183
# to unsupported forces relinking
6184
_LT_TAGVAR(hardcode_minus_L, $1)=yes
6185
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6186
_LT_TAGVAR(hardcode_libdir_separator, $1)=
6189
shared_flag='-shared'
6190
if test "$aix_use_runtimelinking" = yes; then
6191
shared_flag="$shared_flag "'${wl}-G'
6195
if test "$host_cpu" = ia64; then
6196
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6197
# chokes on -Wl,-G. The following line is correct:
6200
if test "$aix_use_runtimelinking" = yes; then
6201
shared_flag='${wl}-G'
6203
shared_flag='${wl}-bM:SRE'
6208
# It seems that -bexpall does not export symbols beginning with
6209
# underscore (_), so it is better to generate a list of symbols to
6211
_LT_TAGVAR(always_export_symbols, $1)=yes
6212
if test "$aix_use_runtimelinking" = yes; then
6213
# Warning - without using the other runtime loading flags (-brtl),
6214
# -berok will link without error, but may produce a broken library.
6215
_LT_TAGVAR(allow_undefined_flag, $1)='-berok'
6216
# Determine the default libpath from the value encoded in an empty
6218
_LT_SYS_MODULE_PATH_AIX
6219
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6221
_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"
6223
if test "$host_cpu" = ia64; then
6224
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6225
_LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6226
_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"
6228
# Determine the default libpath from the value encoded in an
6230
_LT_SYS_MODULE_PATH_AIX
6231
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6232
# Warning - without using the other run time loading flags,
6233
# -berok will link without error, but may produce a broken library.
6234
_LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6235
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6236
# Exported symbols can be pulled into shared objects from archives
6237
_LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6238
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6239
# This is similar to how AIX traditionally builds its shared
6241
_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'
6247
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6248
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6249
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6250
# support --undefined. This deserves some investigation. FIXME
6251
_LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6253
_LT_TAGVAR(ld_shlibs, $1)=no
6258
case $cc_basename in
6260
# FIXME: insert proper C++ library support
6261
_LT_TAGVAR(ld_shlibs, $1)=no
6266
cygwin* | mingw* | pw32*)
6267
# _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6268
# as there is no search path for DLLs.
6269
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6270
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6271
_LT_TAGVAR(always_export_symbols, $1)=no
6272
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6274
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6275
_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'
6276
# If the export-symbols file already is a .def file (1st line
6277
# is EXPORTS), use it as is; otherwise, prepend...
6278
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6279
cp $export_symbols $output_objdir/$soname.def;
6281
echo EXPORTS > $output_objdir/$soname.def;
6282
cat $export_symbols >> $output_objdir/$soname.def;
6284
$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'
6286
_LT_TAGVAR(ld_shlibs, $1)=no
6289
darwin* | rhapsody*)
6290
_LT_DARWIN_LINKER_FEATURES($1)
6294
case $cc_basename in
6296
# FIXME: insert proper C++ library support
6297
_LT_TAGVAR(ld_shlibs, $1)=no
6300
# Green Hills C++ Compiler
6301
# FIXME: insert proper C++ library support
6302
_LT_TAGVAR(ld_shlibs, $1)=no
6305
# FIXME: insert proper C++ library support
6306
_LT_TAGVAR(ld_shlibs, $1)=no
6312
# C++ shared libraries reported to be fairly broken before
6314
_LT_TAGVAR(ld_shlibs, $1)=no
6318
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6321
freebsd* | dragonfly*)
6322
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
6324
_LT_TAGVAR(ld_shlibs, $1)=yes
6331
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6332
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6333
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6334
_LT_TAGVAR(hardcode_direct, $1)=yes
6335
_LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6336
# but as the default
6337
# location of the library.
6339
case $cc_basename in
6341
# FIXME: insert proper C++ library support
6342
_LT_TAGVAR(ld_shlibs, $1)=no
6345
_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'
6346
# Commands to make compiler produce verbose output that lists
6347
# what "hidden" libraries, object files and flags are used when
6348
# linking a shared library.
6350
# There doesn't appear to be a way to prevent this compiler from
6351
# explicitly linking system object files so we need to strip them
6352
# from the output so that they don't get included in the library
6354
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'
6357
if test "$GXX" = yes; then
6358
_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'
6360
# FIXME: insert proper C++ library support
6361
_LT_TAGVAR(ld_shlibs, $1)=no
6368
if test $with_gnu_ld = no; then
6369
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6370
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6376
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6382
_LT_TAGVAR(hardcode_direct, $1)=no
6383
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6386
_LT_TAGVAR(hardcode_direct, $1)=yes
6387
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6388
_LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6389
# but as the default
6390
# location of the library.
6394
case $cc_basename in
6396
# FIXME: insert proper C++ library support
6397
_LT_TAGVAR(ld_shlibs, $1)=no
6402
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6405
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6408
_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'
6411
# Commands to make compiler produce verbose output that lists
6412
# what "hidden" libraries, object files and flags are used when
6413
# linking a shared library.
6415
# There doesn't appear to be a way to prevent this compiler from
6416
# explicitly linking system object files so we need to strip them
6417
# from the output so that they don't get included in the library
6419
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'
6422
if test "$GXX" = yes; then
6423
if test $with_gnu_ld = no; then
6426
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6429
_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'
6432
_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'
6437
# FIXME: insert proper C++ library support
6438
_LT_TAGVAR(ld_shlibs, $1)=no
6445
_LT_TAGVAR(hardcode_direct, $1)=no
6446
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6447
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6448
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6449
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6450
# Instead, shared libraries are loaded at an image base (0x10000000 by
6451
# default) and relocated if they conflict, which is a slow very memory
6452
# consuming and fragmenting process. To avoid this, we pick a random,
6453
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6454
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
6455
_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'
6456
_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'
6459
case $cc_basename in
6462
_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'
6464
# Archives containing C++ object files must be created using
6465
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
6466
# necessary to make sure instantiated templates are included
6468
_LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
6471
if test "$GXX" = yes; then
6472
if test "$with_gnu_ld" = no; then
6473
_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'
6475
_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'
6478
_LT_TAGVAR(link_all_deplibs, $1)=yes
6481
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6482
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6483
_LT_TAGVAR(inherit_rpath, $1)=yes
6486
linux* | k*bsd*-gnu)
6487
case $cc_basename in
6489
# Kuck and Associates, Inc. (KAI) C++ Compiler
6491
# KCC will only create a shared library if the output file
6492
# ends with ".so" (or ".sl" for HP-UX), so rename the library
6493
# to its proper name (with version) after linking.
6494
_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'
6495
_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'
6496
# Commands to make compiler produce verbose output that lists
6497
# what "hidden" libraries, object files and flags are used when
6498
# linking a shared library.
6500
# There doesn't appear to be a way to prevent this compiler from
6501
# explicitly linking system object files so we need to strip them
6502
# from the output so that they don't get included in the library
6504
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'
6506
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6507
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6509
# Archives containing C++ object files must be created using
6510
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
6511
_LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
6516
# version 8.0 and above of icpc choke on multiply defined symbols
6517
# if we add $predep_objects and $postdep_objects, however 7.1 and
6518
# earlier do not add the objects themselves.
6519
case `$CC -V 2>&1` in
6521
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6522
_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'
6524
*) # Version 8.0 or newer
6527
ia64*) tmp_idyn=' -i_dynamic';;
6529
_LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6530
_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'
6533
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6534
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6535
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6536
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6539
# Portland Group C++ compiler
6541
*pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
6542
_LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
6544
$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
6545
compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
6546
_LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
6548
$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
6549
$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
6551
_LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
6553
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6554
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6555
_LT_TAGVAR(archive_expsym_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 ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
6560
*) # Version 6 will use weak symbols
6561
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6562
_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'
6566
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6567
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6568
_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'
6572
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6573
_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'
6575
runpath_var=LD_RUN_PATH
6576
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6577
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6579
# Commands to make compiler produce verbose output that lists
6580
# what "hidden" libraries, object files and flags are used when
6581
# linking a shared library.
6583
# There doesn't appear to be a way to prevent this compiler from
6584
# explicitly linking system object files so we need to strip them
6585
# from the output so that they don't get included in the library
6587
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'
6590
# IBM XL 8.0 on PPC, with GNU ld
6591
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6592
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6593
_LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6594
if test "x$supports_anon_versioning" = xyes; then
6595
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
6596
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6597
echo "local: *; };" >> $output_objdir/$libname.ver~
6598
$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6602
case `$CC -V 2>&1 | sed 5q` in
6605
_LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6606
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6607
_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'
6608
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6609
_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'
6610
_LT_TAGVAR(compiler_needs_object, $1)=yes
6612
# Not sure whether something based on
6613
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
6615
output_verbose_link_cmd='echo'
6617
# Archives containing C++ object files must be created using
6618
# "CC -xar", where "CC" is the Sun C++ compiler. This is
6619
# necessary to make sure instantiated templates are included
6621
_LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6629
# FIXME: insert proper C++ library support
6630
_LT_TAGVAR(ld_shlibs, $1)=no
6634
# FIXME: insert proper C++ library support
6635
_LT_TAGVAR(ld_shlibs, $1)=no
6639
case $cc_basename in
6641
# FIXME: insert proper C++ library support
6642
_LT_TAGVAR(ld_shlibs, $1)=no
6645
# FIXME: insert proper C++ library support
6646
_LT_TAGVAR(ld_shlibs, $1)=no
6652
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6653
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
6655
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6656
_LT_TAGVAR(hardcode_direct, $1)=yes
6657
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6659
# Workaround some broken pre-1.5 toolchains
6660
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
6664
_LT_TAGVAR(ld_shlibs, $1)=yes
6668
# C++ shared libraries are fairly broken
6669
_LT_TAGVAR(ld_shlibs, $1)=no
6673
if test -f /usr/libexec/ld.so; then
6674
_LT_TAGVAR(hardcode_direct, $1)=yes
6675
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6676
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6677
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6678
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6679
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6680
_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'
6681
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6682
_LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6684
output_verbose_link_cmd=echo
6686
_LT_TAGVAR(ld_shlibs, $1)=no
6690
osf3* | osf4* | osf5*)
6691
case $cc_basename in
6693
# Kuck and Associates, Inc. (KAI) C++ Compiler
6695
# KCC will only create a shared library if the output file
6696
# ends with ".so" (or ".sl" for HP-UX), so rename the library
6697
# to its proper name (with version) after linking.
6698
_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'
6700
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6701
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6703
# Archives containing C++ object files must be created using
6704
# the KAI C++ compiler.
6706
osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
6707
*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
6711
# Rational C++ 2.4.1
6712
# FIXME: insert proper C++ library support
6713
_LT_TAGVAR(ld_shlibs, $1)=no
6718
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6719
_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'
6720
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6723
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6724
_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'
6725
_LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
6726
echo "-hidden">> $lib.exp~
6727
$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~
6729
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6733
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6735
# Commands to make compiler produce verbose output that lists
6736
# what "hidden" libraries, object files and flags are used when
6737
# linking a shared library.
6739
# There doesn't appear to be a way to prevent this compiler from
6740
# explicitly linking system object files so we need to strip them
6741
# from the output so that they don't get included in the library
6743
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'
6746
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6747
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6750
_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'
6753
_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'
6757
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6758
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6760
# Commands to make compiler produce verbose output that lists
6761
# what "hidden" libraries, object files and flags are used when
6762
# linking a shared library.
6763
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6766
# FIXME: insert proper C++ library support
6767
_LT_TAGVAR(ld_shlibs, $1)=no
6774
# FIXME: insert proper C++ library support
6775
_LT_TAGVAR(ld_shlibs, $1)=no
6779
case $cc_basename in
6782
# FIXME: insert proper C++ library support
6783
_LT_TAGVAR(ld_shlibs, $1)=no
6787
# FIXME: insert proper C++ library support
6788
_LT_TAGVAR(ld_shlibs, $1)=no
6791
# FIXME: insert proper C++ library support
6792
_LT_TAGVAR(ld_shlibs, $1)=no
6798
case $cc_basename in
6800
# Sun C++ 4.2, 5.x and Centerline C++
6801
_LT_TAGVAR(archive_cmds_need_lc,$1)=yes
6802
_LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6803
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6804
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6805
$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'
6807
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6808
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6810
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6812
# The compiler driver will combine and reorder linker options,
6813
# but understands `-z linker_flag'.
6814
# Supported since Solaris 2.6 (maybe 2.5.1?)
6815
_LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6818
_LT_TAGVAR(link_all_deplibs, $1)=yes
6820
output_verbose_link_cmd='echo'
6822
# Archives containing C++ object files must be created using
6823
# "CC -xar", where "CC" is the Sun C++ compiler. This is
6824
# necessary to make sure instantiated templates are included
6826
_LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6829
# Green Hills C++ Compiler
6830
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6832
# The C++ compiler must be used to create the archive.
6833
_LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
6836
# GNU C++ compiler with Solaris linker
6837
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6838
_LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
6839
if $CC --version | $GREP -v '^2\.7' > /dev/null; then
6840
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6841
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6842
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6844
# Commands to make compiler produce verbose output that lists
6845
# what "hidden" libraries, object files and flags are used when
6846
# linking a shared library.
6847
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6849
# g++ 2.7 appears to require `-G' NOT `-shared' on this
6851
_LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6852
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6853
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6855
# Commands to make compiler produce verbose output that lists
6856
# what "hidden" libraries, object files and flags are used when
6857
# linking a shared library.
6858
output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6861
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
6863
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6865
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6873
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6874
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6875
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6876
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6877
runpath_var='LD_RUN_PATH'
6879
case $cc_basename in
6881
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6882
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6885
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6886
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6891
sysv5* | sco3.2v5* | sco5v6*)
6892
# Note: We can NOT use -z defs as we might desire, because we do not
6893
# link with -lc, and that would cause any symbols used from libc to
6894
# always be unresolved, which means just about no library would
6895
# ever link correctly. If we're not using GNU ld we use -z text
6896
# though, which does catch some bad symbols but isn't as heavy-handed
6898
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6899
_LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6900
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6901
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6902
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
6903
_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6904
_LT_TAGVAR(link_all_deplibs, $1)=yes
6905
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6906
runpath_var='LD_RUN_PATH'
6908
case $cc_basename in
6910
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6911
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6914
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6915
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6921
case $cc_basename in
6923
# NonStop-UX NCC 3.20
6924
# FIXME: insert proper C++ library support
6925
_LT_TAGVAR(ld_shlibs, $1)=no
6928
# FIXME: insert proper C++ library support
6929
_LT_TAGVAR(ld_shlibs, $1)=no
6935
# FIXME: insert proper C++ library support
6936
_LT_TAGVAR(ld_shlibs, $1)=no
6940
# FIXME: insert proper C++ library support
6941
_LT_TAGVAR(ld_shlibs, $1)=no
6945
AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
6946
test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6948
_LT_TAGVAR(GCC, $1)="$GXX"
6949
_LT_TAGVAR(LD, $1)="$LD"
6952
## There is no encapsulation within the following macros, do not change
6953
## the running order or otherwise move them around unless you know exactly
6954
## what you are doing...
6955
_LT_SYS_HIDDEN_LIBDEPS($1)
6956
_LT_COMPILER_PIC($1)
6957
_LT_COMPILER_C_O($1)
6958
_LT_COMPILER_FILE_LOCKS($1)
6959
_LT_LINKER_SHLIBS($1)
6960
_LT_SYS_DYNAMIC_LINKER($1)
6961
_LT_LINKER_HARDCODE_LIBPATH($1)
6964
fi # test -n "$compiler"
6970
with_gnu_ld=$lt_save_with_gnu_ld
6971
lt_cv_path_LDCXX=$lt_cv_path_LD
6972
lt_cv_path_LD=$lt_save_path_LD
6973
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
6974
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
6975
fi # test "$_lt_caught_CXX_error" != yes
6978
])# _LT_LANG_CXX_CONFIG
6981
# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
7152
])# AC_LIBTOOL_PROG_LD_SHLIBS
7155
# _LT_AC_FILE_LTDLL_C
7156
# -------------------
7157
# Be careful that the start marker always follows a newline.
7158
AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
7159
# /* ltdll.c starts here */
7160
# #define WIN32_LEAN_AND_MEAN
7161
# #include <windows.h>
7162
# #undef WIN32_LEAN_AND_MEAN
7163
# #include <stdio.h>
7165
# #ifndef __CYGWIN__
7166
# # ifdef __CYGWIN32__
7167
# # define __CYGWIN__ __CYGWIN32__
7171
# #ifdef __cplusplus
7174
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7175
# #ifdef __cplusplus
7180
# #include <cygwin/cygwin_dll.h>
7181
# DECLARE_CYGWIN_DLL( DllMain );
7183
# HINSTANCE __hDllInstance_base;
7186
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7188
# __hDllInstance_base = hInst;
7191
# /* ltdll.c ends here */
7192
])# _LT_AC_FILE_LTDLL_C
7195
# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
6982
7196
# ---------------------------------
6983
# Figure out "hidden" library dependencies from verbose
6984
# compiler output when linking a shared library.
6985
# Parse the compiler output and extract the necessary
6986
# objects, libraries and library flags.
6987
m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
6988
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6989
# Dependencies to place before and after the object being linked:
6990
_LT_TAGVAR(predep_objects, $1)=
6991
_LT_TAGVAR(postdep_objects, $1)=
6992
_LT_TAGVAR(predeps, $1)=
6993
_LT_TAGVAR(postdeps, $1)=
6994
_LT_TAGVAR(compiler_lib_search_path, $1)=
6996
dnl we can't use the lt_simple_compile_test_code here,
6997
dnl because it contains code intended for an executable,
6998
dnl not a library. It's possible we should let each
6999
dnl tag define a new lt_????_link_test_code variable,
7000
dnl but it's only used here...
7001
m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
7003
void foo (void) { a = 0; }
7005
], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
7009
Foo (void) { a = 0; }
7014
], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
7022
], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
7030
], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
7033
public void bar (void) {
7039
dnl Parse the compiler output and extract the necessary
7040
dnl objects, libraries and library flags.
7041
if AC_TRY_EVAL(ac_compile); then
7042
# Parse the compiler output and extract the necessary
7043
# objects, libraries and library flags.
7045
# Sentinel used to keep track of whether or not we are before
7046
# the conftest object file.
7047
pre_test_object_deps_done=no
7049
for p in `eval "$output_verbose_link_cmd"`; do
7053
# Some compilers place space between "-{L,R}" and the path.
7055
if test $p = "-L" ||
7056
test $p = "-R"; then
7063
if test "$pre_test_object_deps_done" = no; then
7066
# Internal compiler library paths should come after those
7067
# provided the user. The postdeps already come after the
7068
# user supplied libs so there is no need to process them.
7069
if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
7070
_LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
7072
_LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
7075
# The "-l" case would never come before the object being
7076
# linked, so don't bother handling this case.
7079
if test -z "$_LT_TAGVAR(postdeps, $1)"; then
7080
_LT_TAGVAR(postdeps, $1)="${prev}${p}"
7082
_LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
7088
# This assumes that the test object file only shows up
7089
# once in the compiler output.
7090
if test "$p" = "conftest.$objext"; then
7091
pre_test_object_deps_done=yes
7095
if test "$pre_test_object_deps_done" = no; then
7096
if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
7097
_LT_TAGVAR(predep_objects, $1)="$p"
7099
_LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
7102
if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
7103
_LT_TAGVAR(postdep_objects, $1)="$p"
7105
_LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
7110
*) ;; # Ignore the rest.
7197
AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
7201
AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
7202
AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
7203
AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
7204
AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
7205
AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
7206
AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
7207
AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
7209
# This is just to silence aclocal about the macro not being used
7210
ifelse([AC_DISABLE_FAST_INSTALL])
7212
AC_DEFUN([LT_AC_PROG_GCJ],
7213
[AC_CHECK_TOOL(GCJ, gcj, no)
7214
test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
7218
AC_DEFUN([LT_AC_PROG_RC],
7219
[AC_CHECK_TOOL(RC, windres, no)
7223
# Cheap backport of AS_EXECUTABLE_P and required macros
7224
# from Autoconf 2.59; we should not use $as_executable_p directly.
7228
m4_ifndef([_AS_TEST_PREPARE],
7229
[m4_defun([_AS_TEST_PREPARE],
7230
[if test -x / >/dev/null 2>&1; then
7231
as_executable_p='test -x'
7118
echo "libtool.m4: error: problem compiling $1 test program"
7121
$RM -f confest.$objext
7123
# PORTME: override above test on systems where it is broken
7127
# Interix 3.5 installs completely hosed .la files for C++, so rather than
7128
# hack all around it, let's just trust "g++" to DTRT.
7129
_LT_TAGVAR(predep_objects,$1)=
7130
_LT_TAGVAR(postdep_objects,$1)=
7131
_LT_TAGVAR(postdeps,$1)=
7135
case `$CC -V 2>&1 | sed 5q` in
7139
# The more standards-conforming stlport4 library is
7140
# incompatible with the Cstd library. Avoid specifying
7141
# it if it's in CXXFLAGS. Ignore libCrun as
7142
# -library=stlport4 depends on it.
7143
case " $CXX $CXXFLAGS " in
7144
*" -library=stlport4 "*)
7145
solaris_use_stlport4=yes
7149
if test "$solaris_use_stlport4" != yes; then
7150
_LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7157
case $cc_basename in
7159
# The more standards-conforming stlport4 library is
7160
# incompatible with the Cstd library. Avoid specifying
7161
# it if it's in CXXFLAGS. Ignore libCrun as
7162
# -library=stlport4 depends on it.
7163
case " $CXX $CXXFLAGS " in
7164
*" -library=stlport4 "*)
7165
solaris_use_stlport4=yes
7169
# Adding this requires a known-good setup of shared libraries for
7170
# Sun compiler versions before 5.6, else PIC objects from an old
7171
# archive will be linked into the output, leading to subtle bugs.
7172
if test "$solaris_use_stlport4" != yes; then
7173
_LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7181
case " $_LT_TAGVAR(postdeps, $1) " in
7182
*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
7184
_LT_TAGVAR(compiler_lib_search_dirs, $1)=
7185
if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
7186
_LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
7188
_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
7189
[The directories searched by this compiler when creating a shared library])
7190
_LT_TAGDECL([], [predep_objects], [1],
7191
[Dependencies to place before and after the objects being linked to
7192
create a shared library])
7193
_LT_TAGDECL([], [postdep_objects], [1])
7194
_LT_TAGDECL([], [predeps], [1])
7195
_LT_TAGDECL([], [postdeps], [1])
7196
_LT_TAGDECL([], [compiler_lib_search_path], [1],
7197
[The library search path used internally by the compiler when linking
7199
])# _LT_SYS_HIDDEN_LIBDEPS
7204
# Since AC_PROG_F77 is broken, in that it returns the empty string
7205
# if there is no fortran compiler, we have our own version here.
7206
m4_defun([_LT_PROG_F77],
7208
pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
7210
if test -z "$F77" || test "X$F77" = "Xno"; then
7213
popdef([AC_MSG_ERROR])
7216
dnl aclocal-1.4 backwards compatibility:
7217
dnl AC_DEFUN([_LT_PROG_F77], [])
7220
# _LT_LANG_F77_CONFIG([TAG])
7221
# --------------------------
7222
# Ensure that the configuration variables for a Fortran 77 compiler are
7223
# suitably defined. These variables are subsequently used by _LT_CONFIG
7224
# to write the compiler configuration to `libtool'.
7225
m4_defun([_LT_LANG_F77_CONFIG],
7226
[AC_REQUIRE([_LT_PROG_F77])dnl
7227
AC_LANG_PUSH(Fortran 77)
7229
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7230
_LT_TAGVAR(allow_undefined_flag, $1)=
7231
_LT_TAGVAR(always_export_symbols, $1)=no
7232
_LT_TAGVAR(archive_expsym_cmds, $1)=
7233
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
7234
_LT_TAGVAR(hardcode_direct, $1)=no
7235
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
7236
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7237
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7238
_LT_TAGVAR(hardcode_libdir_separator, $1)=
7239
_LT_TAGVAR(hardcode_minus_L, $1)=no
7240
_LT_TAGVAR(hardcode_automatic, $1)=no
7241
_LT_TAGVAR(inherit_rpath, $1)=no
7242
_LT_TAGVAR(module_cmds, $1)=
7243
_LT_TAGVAR(module_expsym_cmds, $1)=
7244
_LT_TAGVAR(link_all_deplibs, $1)=unknown
7245
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7246
_LT_TAGVAR(no_undefined_flag, $1)=
7247
_LT_TAGVAR(whole_archive_flag_spec, $1)=
7248
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7250
# Source file extension for f77 test sources.
7253
# Object file extension for compiled f77 test sources.
7255
_LT_TAGVAR(objext, $1)=$objext
7257
# No sense in running all these tests if we already determined that
7258
# the F77 compiler isn't working. Some variables (like enable_shared)
7259
# are currently assumed to apply to all compilers on this platform,
7260
# and will be corrupted by setting them based on a non-working compiler.
7261
if test "$_lt_disable_F77" != yes; then
7262
# Code to be used in simple compile tests
7263
lt_simple_compile_test_code="\
7269
# Code to be used in simple link tests
7270
lt_simple_link_test_code="\
7275
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7278
# save warnings/boilerplate of simple test code
7279
_LT_COMPILER_BOILERPLATE
7280
_LT_LINKER_BOILERPLATE
7282
# Allow CC to be a program name with arguments.
7287
_LT_TAGVAR(compiler, $1)=$CC
7288
_LT_CC_BASENAME([$compiler])
7290
if test -n "$compiler"; then
7291
AC_MSG_CHECKING([if libtool supports shared libraries])
7292
AC_MSG_RESULT([$can_build_shared])
7294
AC_MSG_CHECKING([whether to build shared libraries])
7295
test "$can_build_shared" = "no" && enable_shared=no
7297
# On AIX, shared libraries and static libraries use the same namespace, and
7298
# are all built from PIC.
7301
test "$enable_shared" = yes && enable_static=no
7302
if test -n "$RANLIB"; then
7303
archive_cmds="$archive_cmds~\$RANLIB \$lib"
7304
postinstall_cmds='$RANLIB $lib'
7308
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7309
test "$enable_shared" = yes && enable_static=no
7313
AC_MSG_RESULT([$enable_shared])
7315
AC_MSG_CHECKING([whether to build static libraries])
7316
# Make sure either enable_shared or enable_static is yes.
7317
test "$enable_shared" = yes || enable_static=yes
7318
AC_MSG_RESULT([$enable_static])
7320
_LT_TAGVAR(GCC, $1)="$G77"
7321
_LT_TAGVAR(LD, $1)="$LD"
7324
## There is no encapsulation within the following macros, do not change
7325
## the running order or otherwise move them around unless you know exactly
7326
## what you are doing...
7327
_LT_COMPILER_PIC($1)
7328
_LT_COMPILER_C_O($1)
7329
_LT_COMPILER_FILE_LOCKS($1)
7330
_LT_LINKER_SHLIBS($1)
7331
_LT_SYS_DYNAMIC_LINKER($1)
7332
_LT_LINKER_HARDCODE_LIBPATH($1)
7335
fi # test -n "$compiler"
7339
fi # test "$_lt_disable_F77" != yes
7342
])# _LT_LANG_F77_CONFIG
7347
# Since AC_PROG_FC is broken, in that it returns the empty string
7348
# if there is no fortran compiler, we have our own version here.
7349
m4_defun([_LT_PROG_FC],
7351
pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
7353
if test -z "$FC" || test "X$FC" = "Xno"; then
7356
popdef([AC_MSG_ERROR])
7359
dnl aclocal-1.4 backwards compatibility:
7360
dnl AC_DEFUN([_LT_PROG_FC], [])
7363
# _LT_LANG_FC_CONFIG([TAG])
7364
# -------------------------
7365
# Ensure that the configuration variables for a Fortran compiler are
7366
# suitably defined. These variables are subsequently used by _LT_CONFIG
7367
# to write the compiler configuration to `libtool'.
7368
m4_defun([_LT_LANG_FC_CONFIG],
7369
[AC_REQUIRE([_LT_PROG_FC])dnl
7370
AC_LANG_PUSH(Fortran)
7372
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7373
_LT_TAGVAR(allow_undefined_flag, $1)=
7374
_LT_TAGVAR(always_export_symbols, $1)=no
7375
_LT_TAGVAR(archive_expsym_cmds, $1)=
7376
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
7377
_LT_TAGVAR(hardcode_direct, $1)=no
7378
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
7379
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7380
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7381
_LT_TAGVAR(hardcode_libdir_separator, $1)=
7382
_LT_TAGVAR(hardcode_minus_L, $1)=no
7383
_LT_TAGVAR(hardcode_automatic, $1)=no
7384
_LT_TAGVAR(inherit_rpath, $1)=no
7385
_LT_TAGVAR(module_cmds, $1)=
7386
_LT_TAGVAR(module_expsym_cmds, $1)=
7387
_LT_TAGVAR(link_all_deplibs, $1)=unknown
7388
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7389
_LT_TAGVAR(no_undefined_flag, $1)=
7390
_LT_TAGVAR(whole_archive_flag_spec, $1)=
7391
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7393
# Source file extension for fc test sources.
7394
ac_ext=${ac_fc_srcext-f}
7396
# Object file extension for compiled fc test sources.
7398
_LT_TAGVAR(objext, $1)=$objext
7400
# No sense in running all these tests if we already determined that
7401
# the FC compiler isn't working. Some variables (like enable_shared)
7402
# are currently assumed to apply to all compilers on this platform,
7403
# and will be corrupted by setting them based on a non-working compiler.
7404
if test "$_lt_disable_FC" != yes; then
7405
# Code to be used in simple compile tests
7406
lt_simple_compile_test_code="\
7412
# Code to be used in simple link tests
7413
lt_simple_link_test_code="\
7418
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7421
# save warnings/boilerplate of simple test code
7422
_LT_COMPILER_BOILERPLATE
7423
_LT_LINKER_BOILERPLATE
7425
# Allow CC to be a program name with arguments.
7430
GCC=$ac_cv_fc_compiler_gnu
7432
_LT_TAGVAR(compiler, $1)=$CC
7433
_LT_CC_BASENAME([$compiler])
7435
if test -n "$compiler"; then
7436
AC_MSG_CHECKING([if libtool supports shared libraries])
7437
AC_MSG_RESULT([$can_build_shared])
7439
AC_MSG_CHECKING([whether to build shared libraries])
7440
test "$can_build_shared" = "no" && enable_shared=no
7442
# On AIX, shared libraries and static libraries use the same namespace, and
7443
# are all built from PIC.
7446
test "$enable_shared" = yes && enable_static=no
7447
if test -n "$RANLIB"; then
7448
archive_cmds="$archive_cmds~\$RANLIB \$lib"
7449
postinstall_cmds='$RANLIB $lib'
7453
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7454
test "$enable_shared" = yes && enable_static=no
7458
AC_MSG_RESULT([$enable_shared])
7460
AC_MSG_CHECKING([whether to build static libraries])
7461
# Make sure either enable_shared or enable_static is yes.
7462
test "$enable_shared" = yes || enable_static=yes
7463
AC_MSG_RESULT([$enable_static])
7465
_LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
7466
_LT_TAGVAR(LD, $1)="$LD"
7469
## There is no encapsulation within the following macros, do not change
7470
## the running order or otherwise move them around unless you know exactly
7471
## what you are doing...
7472
_LT_SYS_HIDDEN_LIBDEPS($1)
7473
_LT_COMPILER_PIC($1)
7474
_LT_COMPILER_C_O($1)
7475
_LT_COMPILER_FILE_LOCKS($1)
7476
_LT_LINKER_SHLIBS($1)
7477
_LT_SYS_DYNAMIC_LINKER($1)
7478
_LT_LINKER_HARDCODE_LIBPATH($1)
7481
fi # test -n "$compiler"
7485
fi # test "$_lt_disable_FC" != yes
7488
])# _LT_LANG_FC_CONFIG
7491
# _LT_LANG_GCJ_CONFIG([TAG])
7492
# --------------------------
7493
# Ensure that the configuration variables for the GNU Java Compiler compiler
7494
# are suitably defined. These variables are subsequently used by _LT_CONFIG
7495
# to write the compiler configuration to `libtool'.
7496
m4_defun([_LT_LANG_GCJ_CONFIG],
7497
[AC_REQUIRE([LT_PROG_GCJ])dnl
7500
# Source file extension for Java test sources.
7503
# Object file extension for compiled Java test sources.
7505
_LT_TAGVAR(objext, $1)=$objext
7507
# Code to be used in simple compile tests
7508
lt_simple_compile_test_code="class foo {}"
7510
# Code to be used in simple link tests
7511
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
7513
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7516
# save warnings/boilerplate of simple test code
7517
_LT_COMPILER_BOILERPLATE
7518
_LT_LINKER_BOILERPLATE
7520
# Allow CC to be a program name with arguments.
7526
_LT_TAGVAR(compiler, $1)=$CC
7527
_LT_TAGVAR(LD, $1)="$LD"
7528
_LT_CC_BASENAME([$compiler])
7530
# GCJ did not exist at the time GCC didn't implicitly link libc in.
7531
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7533
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7535
if test -n "$compiler"; then
7536
_LT_COMPILER_NO_RTTI($1)
7537
_LT_COMPILER_PIC($1)
7538
_LT_COMPILER_C_O($1)
7539
_LT_COMPILER_FILE_LOCKS($1)
7540
_LT_LINKER_SHLIBS($1)
7541
_LT_LINKER_HARDCODE_LIBPATH($1)
7550
])# _LT_LANG_GCJ_CONFIG
7553
# _LT_LANG_RC_CONFIG([TAG])
7554
# -------------------------
7555
# Ensure that the configuration variables for the Windows resource compiler
7556
# are suitably defined. These variables are subsequently used by _LT_CONFIG
7557
# to write the compiler configuration to `libtool'.
7558
m4_defun([_LT_LANG_RC_CONFIG],
7559
[AC_REQUIRE([LT_PROG_RC])dnl
7562
# Source file extension for RC test sources.
7565
# Object file extension for compiled RC test sources.
7567
_LT_TAGVAR(objext, $1)=$objext
7569
# Code to be used in simple compile tests
7570
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
7572
# Code to be used in simple link tests
7573
lt_simple_link_test_code="$lt_simple_compile_test_code"
7575
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7578
# save warnings/boilerplate of simple test code
7579
_LT_COMPILER_BOILERPLATE
7580
_LT_LINKER_BOILERPLATE
7582
# Allow CC to be a program name with arguments.
7588
_LT_TAGVAR(compiler, $1)=$CC
7589
_LT_CC_BASENAME([$compiler])
7590
_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
7592
if test -n "$compiler"; then
7600
])# _LT_LANG_RC_CONFIG
7605
AC_DEFUN([LT_PROG_GCJ],
7606
[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
7607
[m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
7608
[AC_CHECK_TOOL(GCJ, gcj,)
7609
test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
7610
AC_SUBST(GCJFLAGS)])])[]dnl
7614
AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
7615
dnl aclocal-1.4 backwards compatibility:
7616
dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
7621
AC_DEFUN([LT_PROG_RC],
7622
[AC_CHECK_TOOL(RC, windres,)
7626
AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
7627
dnl aclocal-1.4 backwards compatibility:
7628
dnl AC_DEFUN([LT_AC_PROG_RC], [])
7633
# If we don't have a new enough Autoconf to choose the best grep
7634
# available, choose the one first in the user's PATH.
7635
m4_defun([_LT_DECL_EGREP],
7636
[AC_REQUIRE([AC_PROG_EGREP])dnl
7637
AC_REQUIRE([AC_PROG_FGREP])dnl
7638
test -z "$GREP" && GREP=grep
7639
_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
7640
_LT_DECL([], [EGREP], [1], [An ERE matcher])
7641
_LT_DECL([], [FGREP], [1], [A literal string matcher])
7642
dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
7649
# Check for a fully-functional sed program, that truncates
7650
# as few characters as possible. Prefer GNU sed if found.
7651
m4_defun([_LT_DECL_SED],
7653
test -z "$SED" && SED=sed
7654
Xsed="$SED -e 1s/^X//"
7655
_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
7656
_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
7657
[Sed that helps us avoid accidentally triggering echo(1) options like -n])
7660
m4_ifndef([AC_PROG_SED], [
7233
as_executable_p='test -f'
7235
])])# _AS_TEST_PREPARE
7239
# Check whether a file is executable.
7240
m4_ifndef([AS_EXECUTABLE_P],
7241
[m4_defun([AS_EXECUTABLE_P],
7242
[AS_REQUIRE([_AS_TEST_PREPARE])dnl
7243
$as_executable_p $1[]dnl
7244
])])# AS_EXECUTABLE_P
7661
7246
# NOTE: This macro has been submitted for inclusion into #
7662
7247
# GNU Autoconf as AC_PROG_SED. When it is available in #
7663
7248
# a released version of Autoconf we should remove this #
7664
7249
# macro and use it instead. #
7666
m4_defun([AC_PROG_SED],
7252
# Check for a fully-functional sed program, that truncates
7253
# as few characters as possible. Prefer GNU sed if found.
7254
AC_DEFUN([LT_AC_PROG_SED],
7667
7255
[AC_MSG_CHECKING([for a sed that does not truncate output])
7668
7256
AC_CACHE_VAL(lt_cv_path_SED,
7669
7257
[# Loop through the user's path and test for sed and gsed.
7716
7304
SED=$lt_cv_path_SED
7717
7305
AC_SUBST([SED])
7718
7306
AC_MSG_RESULT([$SED])
7723
AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
7724
dnl aclocal-1.4 backwards compatibility:
7725
dnl AC_DEFUN([LT_AC_PROG_SED], [])
7728
# _LT_CHECK_SHELL_FEATURES
7729
# ------------------------
7730
# Find out whether the shell is Bourne or XSI compatible,
7731
# or has some other useful features.
7732
m4_defun([_LT_CHECK_SHELL_FEATURES],
7733
[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
7734
# Try some XSI features
7737
test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7739
&& eval 'test $(( 1 + 1 )) -eq 2 \
7740
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7742
AC_MSG_RESULT([$xsi_shell])
7743
_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
7745
AC_MSG_CHECKING([whether the shell understands "+="])
7747
( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
7749
&& lt_shell_append=yes
7750
AC_MSG_RESULT([$lt_shell_append])
7751
_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
7753
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7758
_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
7760
# test EBCDIC or ASCII
7761
case `echo X|tr X '\101'` in
7762
A) # ASCII based system
7763
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7764
lt_SP2NL='tr \040 \012'
7765
lt_NL2SP='tr \015\012 \040\040'
7767
*) # EBCDIC based system
7768
lt_SP2NL='tr \100 \n'
7769
lt_NL2SP='tr \r\n \100\100'
7772
_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
7773
_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
7774
])# _LT_CHECK_SHELL_FEATURES
7777
# _LT_PROG_XSI_SHELLFNS
7778
# ---------------------
7779
# Bourne and XSI compatible variants of some useful shell functions.
7780
m4_defun([_LT_PROG_XSI_SHELLFNS],
7783
cat << \_LT_EOF >> "$cfgfile"
7785
# func_dirname file append nondir_replacement
7786
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
7787
# otherwise set result to NONDIR_REPLACEMENT.
7791
*/*) func_dirname_result="${1%/*}${2}" ;;
7792
* ) func_dirname_result="${3}" ;;
7796
# func_basename file
7799
func_basename_result="${1##*/}"
7802
# func_dirname_and_basename file append nondir_replacement
7803
# perform func_basename and func_dirname in a single function
7805
# dirname: Compute the dirname of FILE. If nonempty,
7806
# add APPEND to the result, otherwise set result
7807
# to NONDIR_REPLACEMENT.
7808
# value returned in "$func_dirname_result"
7809
# basename: Compute filename of FILE.
7810
# value retuned in "$func_basename_result"
7811
# Implementation must be kept synchronized with func_dirname
7812
# and func_basename. For efficiency, we do not delegate to
7813
# those functions but instead duplicate the functionality here.
7814
func_dirname_and_basename ()
7817
*/*) func_dirname_result="${1%/*}${2}" ;;
7818
* ) func_dirname_result="${3}" ;;
7820
func_basename_result="${1##*/}"
7823
# func_stripname prefix suffix name
7824
# strip PREFIX and SUFFIX off of NAME.
7825
# PREFIX and SUFFIX must not contain globbing or regex special
7826
# characters, hashes, percent signs, but SUFFIX may contain a leading
7827
# dot (in which case that matches only a dot).
7830
# pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7831
# positional parameters, so assign one to ordinary parameter first.
7832
func_stripname_result=${3}
7833
func_stripname_result=${func_stripname_result#"${1}"}
7834
func_stripname_result=${func_stripname_result%"${2}"}
7840
func_opt_split_opt=${1%%=*}
7841
func_opt_split_arg=${1#*=}
7848
*.lo) func_lo2o_result=${1%.lo}.${objext} ;;
7849
*) func_lo2o_result=${1} ;;
7853
# func_xform libobj-or-source
7856
func_xform_result=${1%.*}.lo
7859
# func_arith arithmetic-term...
7862
func_arith_result=$(( $[*] ))
7866
# STRING may not start with a hyphen.
7869
func_len_result=${#1}
7874
*) # Bourne compatible functions.
7875
cat << \_LT_EOF >> "$cfgfile"
7877
# func_dirname file append nondir_replacement
7878
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
7879
# otherwise set result to NONDIR_REPLACEMENT.
7882
# Extract subdirectory from the argument.
7883
func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
7884
if test "X$func_dirname_result" = "X${1}"; then
7885
func_dirname_result="${3}"
7887
func_dirname_result="$func_dirname_result${2}"
7891
# func_basename file
7894
func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
7897
dnl func_dirname_and_basename
7898
dnl A portable version of this function is already defined in general.m4sh
7899
dnl so there is no need for it here.
7901
# func_stripname prefix suffix name
7902
# strip PREFIX and SUFFIX off of NAME.
7903
# PREFIX and SUFFIX must not contain globbing or regex special
7904
# characters, hashes, percent signs, but SUFFIX may contain a leading
7905
# dot (in which case that matches only a dot).
7906
# func_strip_suffix prefix name
7910
.*) func_stripname_result=`$ECHO "X${3}" \
7911
| $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
7912
*) func_stripname_result=`$ECHO "X${3}" \
7913
| $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
7918
my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
7919
my_sed_long_arg='1s/^-[[^=]]*=//'
7924
func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
7925
func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
7931
func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
7934
# func_xform libobj-or-source
7937
func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
7940
# func_arith arithmetic-term...
7943
func_arith_result=`expr "$[@]"`
7947
# STRING may not start with a hyphen.
7950
func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
7956
case $lt_shell_append in
7958
cat << \_LT_EOF >> "$cfgfile"
7960
# func_append var value
7961
# Append VALUE to the end of shell variable VAR.
7969
cat << \_LT_EOF >> "$cfgfile"
7971
# func_append var value
7972
# Append VALUE to the end of shell variable VAR.
7975
eval "$[1]=\$$[1]\$[2]"
7983
# Helper functions for option handling. -*- Autoconf -*-
7985
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
7986
# Written by Gary V. Vaughan, 2004
7988
# This file is free software; the Free Software Foundation gives
7989
# unlimited permission to copy and/or distribute it, with or without
7990
# modifications, as long as this notice is preserved.
7992
# serial 6 ltoptions.m4
7994
# This is to help aclocal find these macros, as it can't see m4_define.
7995
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
7998
# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
7999
# ------------------------------------------
8000
m4_define([_LT_MANGLE_OPTION],
8001
[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
8004
# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
8005
# ---------------------------------------
8006
# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
8007
# matching handler defined, dispatch to it. Other OPTION-NAMEs are
8009
m4_define([_LT_SET_OPTION],
8010
[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
8011
m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
8012
_LT_MANGLE_DEFUN([$1], [$2]),
8013
[m4_warning([Unknown $1 option `$2'])])[]dnl
8017
# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
8018
# ------------------------------------------------------------
8019
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
8020
m4_define([_LT_IF_OPTION],
8021
[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
8024
# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
8025
# -------------------------------------------------------
8026
# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
8028
m4_define([_LT_UNLESS_OPTIONS],
8029
[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
8030
[m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
8031
[m4_define([$0_found])])])[]dnl
8032
m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
8037
# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
8038
# ----------------------------------------
8039
# OPTION-LIST is a space-separated list of Libtool options associated
8040
# with MACRO-NAME. If any OPTION has a matching handler declared with
8041
# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
8042
# the unknown option and exit.
8043
m4_defun([_LT_SET_OPTIONS],
8045
m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
8046
[_LT_SET_OPTION([$1], _LT_Option)])
8048
m4_if([$1],[LT_INIT],[
8050
dnl Simply set some default values (i.e off) if boolean options were not
8052
_LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
8054
_LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
8057
dnl If no reference was made to various pairs of opposing options, then
8058
dnl we run the default mode handler for the pair. For example, if neither
8059
dnl `shared' nor `disable-shared' was passed, we enable building of shared
8060
dnl archives by default:
8061
_LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
8062
_LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
8063
_LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
8064
_LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
8065
[_LT_ENABLE_FAST_INSTALL])
8071
# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
8072
# -----------------------------------------
8073
m4_define([_LT_MANGLE_DEFUN],
8074
[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
8077
# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
8078
# -----------------------------------------------
8079
m4_define([LT_OPTION_DEFINE],
8080
[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
8081
])# LT_OPTION_DEFINE
8086
LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
8089
AU_DEFUN([AC_LIBTOOL_DLOPEN],
8090
[_LT_SET_OPTION([LT_INIT], [dlopen])
8091
AC_DIAGNOSE([obsolete],
8092
[$0: Remove this warning and the call to _LT_SET_OPTION when you
8093
put the `dlopen' option into LT_INIT's first parameter.])
8096
dnl aclocal-1.4 backwards compatibility:
8097
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
8102
# Declare package support for building win32 dll's.
8103
LT_OPTION_DEFINE([LT_INIT], [win32-dll],
8104
[enable_win32_dll=yes
8107
*-*-cygwin* | *-*-mingw* | *-*-pw32*)
8108
AC_CHECK_TOOL(AS, as, false)
8109
AC_CHECK_TOOL(DLLTOOL, dlltool, false)
8110
AC_CHECK_TOOL(OBJDUMP, objdump, false)
8114
test -z "$AS" && AS=as
8115
_LT_DECL([], [AS], [0], [Assembler program])dnl
8117
test -z "$DLLTOOL" && DLLTOOL=dlltool
8118
_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
8120
test -z "$OBJDUMP" && OBJDUMP=objdump
8121
_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
8124
AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
8125
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
8126
_LT_SET_OPTION([LT_INIT], [win32-dll])
8127
AC_DIAGNOSE([obsolete],
8128
[$0: Remove this warning and the call to _LT_SET_OPTION when you
8129
put the `win32-dll' option into LT_INIT's first parameter.])
8132
dnl aclocal-1.4 backwards compatibility:
8133
dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
8136
# _LT_ENABLE_SHARED([DEFAULT])
8137
# ----------------------------
8138
# implement the --enable-shared flag, and supports the `shared' and
8139
# `disable-shared' LT_INIT options.
8140
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
8141
m4_define([_LT_ENABLE_SHARED],
8142
[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
8143
AC_ARG_ENABLE([shared],
8144
[AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
8145
[build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
8146
[p=${PACKAGE-default}
8148
yes) enable_shared=yes ;;
8149
no) enable_shared=no ;;
8152
# Look at the argument we got. We use all the common list separators.
8153
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8154
for pkg in $enableval; do
8156
if test "X$pkg" = "X$p"; then
8163
[enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
8165
_LT_DECL([build_libtool_libs], [enable_shared], [0],
8166
[Whether or not to build shared libraries])
8167
])# _LT_ENABLE_SHARED
8169
LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
8170
LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
8173
AC_DEFUN([AC_ENABLE_SHARED],
8174
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
8177
AC_DEFUN([AC_DISABLE_SHARED],
8178
[_LT_SET_OPTION([LT_INIT], [disable-shared])
8181
AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
8182
AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
8184
dnl aclocal-1.4 backwards compatibility:
8185
dnl AC_DEFUN([AM_ENABLE_SHARED], [])
8186
dnl AC_DEFUN([AM_DISABLE_SHARED], [])
8190
# _LT_ENABLE_STATIC([DEFAULT])
8191
# ----------------------------
8192
# implement the --enable-static flag, and support the `static' and
8193
# `disable-static' LT_INIT options.
8194
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
8195
m4_define([_LT_ENABLE_STATIC],
8196
[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
8197
AC_ARG_ENABLE([static],
8198
[AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
8199
[build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
8200
[p=${PACKAGE-default}
8202
yes) enable_static=yes ;;
8203
no) enable_static=no ;;
8206
# Look at the argument we got. We use all the common list separators.
8207
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8208
for pkg in $enableval; do
8210
if test "X$pkg" = "X$p"; then
8217
[enable_static=]_LT_ENABLE_STATIC_DEFAULT)
8219
_LT_DECL([build_old_libs], [enable_static], [0],
8220
[Whether or not to build static libraries])
8221
])# _LT_ENABLE_STATIC
8223
LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
8224
LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
8227
AC_DEFUN([AC_ENABLE_STATIC],
8228
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
8231
AC_DEFUN([AC_DISABLE_STATIC],
8232
[_LT_SET_OPTION([LT_INIT], [disable-static])
8235
AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
8236
AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
8238
dnl aclocal-1.4 backwards compatibility:
8239
dnl AC_DEFUN([AM_ENABLE_STATIC], [])
8240
dnl AC_DEFUN([AM_DISABLE_STATIC], [])
8244
# _LT_ENABLE_FAST_INSTALL([DEFAULT])
8245
# ----------------------------------
8246
# implement the --enable-fast-install flag, and support the `fast-install'
8247
# and `disable-fast-install' LT_INIT options.
8248
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
8249
m4_define([_LT_ENABLE_FAST_INSTALL],
8250
[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
8251
AC_ARG_ENABLE([fast-install],
8252
[AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
8253
[optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
8254
[p=${PACKAGE-default}
8256
yes) enable_fast_install=yes ;;
8257
no) enable_fast_install=no ;;
8259
enable_fast_install=no
8260
# Look at the argument we got. We use all the common list separators.
8261
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8262
for pkg in $enableval; do
8264
if test "X$pkg" = "X$p"; then
8265
enable_fast_install=yes
8271
[enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
8273
_LT_DECL([fast_install], [enable_fast_install], [0],
8274
[Whether or not to optimize for fast installation])dnl
8275
])# _LT_ENABLE_FAST_INSTALL
8277
LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
8278
LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
8281
AU_DEFUN([AC_ENABLE_FAST_INSTALL],
8282
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
8283
AC_DIAGNOSE([obsolete],
8284
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
8285
the `fast-install' option into LT_INIT's first parameter.])
8288
AU_DEFUN([AC_DISABLE_FAST_INSTALL],
8289
[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
8290
AC_DIAGNOSE([obsolete],
8291
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
8292
the `disable-fast-install' option into LT_INIT's first parameter.])
8295
dnl aclocal-1.4 backwards compatibility:
8296
dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
8297
dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
8300
# _LT_WITH_PIC([MODE])
8301
# --------------------
8302
# implement the --with-pic flag, and support the `pic-only' and `no-pic'
8304
# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
8305
m4_define([_LT_WITH_PIC],
8307
[AS_HELP_STRING([--with-pic],
8308
[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
8309
[pic_mode="$withval"],
8312
test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
8314
_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
8317
LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
8318
LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
8321
AU_DEFUN([AC_LIBTOOL_PICMODE],
8322
[_LT_SET_OPTION([LT_INIT], [pic-only])
8323
AC_DIAGNOSE([obsolete],
8324
[$0: Remove this warning and the call to _LT_SET_OPTION when you
8325
put the `pic-only' option into LT_INIT's first parameter.])
8328
dnl aclocal-1.4 backwards compatibility:
8329
dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
8332
m4_define([_LTDL_MODE], [])
8333
LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
8334
[m4_define([_LTDL_MODE], [nonrecursive])])
8335
LT_OPTION_DEFINE([LTDL_INIT], [recursive],
8336
[m4_define([_LTDL_MODE], [recursive])])
8337
LT_OPTION_DEFINE([LTDL_INIT], [subproject],
8338
[m4_define([_LTDL_MODE], [subproject])])
8340
m4_define([_LTDL_TYPE], [])
8341
LT_OPTION_DEFINE([LTDL_INIT], [installable],
8342
[m4_define([_LTDL_TYPE], [installable])])
8343
LT_OPTION_DEFINE([LTDL_INIT], [convenience],
8344
[m4_define([_LTDL_TYPE], [convenience])])
8346
# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
8348
# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
8349
# Written by Gary V. Vaughan, 2004
8351
# This file is free software; the Free Software Foundation gives
8352
# unlimited permission to copy and/or distribute it, with or without
8353
# modifications, as long as this notice is preserved.
8355
# serial 5 ltsugar.m4
8357
# This is to help aclocal find these macros, as it can't see m4_define.
8358
AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
8361
# lt_join(SEP, ARG1, [ARG2...])
8362
# -----------------------------
8363
# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
8364
# associated separator.
8365
# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
8366
# versions in m4sugar had bugs.
8367
m4_define([lt_join],
8368
[m4_if([$#], [1], [],
8370
[m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
8371
m4_define([_lt_join],
8372
[m4_if([$#$2], [2], [],
8373
[m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
8379
# Manipulate m4 lists.
8380
# These macros are necessary as long as will still need to support
8381
# Autoconf-2.59 which quotes differently.
8382
m4_define([lt_car], [[$1]])
8384
[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
8386
[m4_dquote(m4_shift($@))])])
8387
m4_define([lt_unquote], $1)
8390
# lt_append(MACRO-NAME, STRING, [SEPARATOR])
8391
# ------------------------------------------
8392
# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
8393
# Note that neither SEPARATOR nor STRING are expanded; they are appended
8394
# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
8395
# No SEPARATOR is output if MACRO-NAME was previously undefined (different
8396
# than defined and empty).
8398
# This macro is needed until we can rely on Autoconf 2.62, since earlier
8399
# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
8400
m4_define([lt_append],
8402
m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
8406
# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
8407
# ----------------------------------------------------------
8408
# Produce a SEP delimited list of all paired combinations of elements of
8409
# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
8410
# has the form PREFIXmINFIXSUFFIXn.
8411
m4_define([lt_combine],
8412
[m4_if([$2], [], [],
8413
[m4_if([$4], [], [],
8414
[lt_join(m4_quote(m4_default([$1], [[, ]])),
8415
lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_prefix, [$2],
8416
[m4_foreach(_Lt_suffix, lt_car([m4_shiftn(3, $@)]),
8417
[_Lt_prefix[]$3[]_Lt_suffix ])])))))])])dnl
8421
# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
8422
# -----------------------------------------------------------------------
8423
# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
8424
# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
8425
m4_define([lt_if_append_uniq],
8427
[m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
8428
[lt_append([$1], [$2], [$3])$4],
8430
[lt_append([$1], [$2], [$3])$4])])
8433
# lt_dict_add(DICT, KEY, VALUE)
8434
# -----------------------------
8435
m4_define([lt_dict_add],
8436
[m4_define([$1($2)], [$3])])
8439
# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
8440
# --------------------------------------------
8441
m4_define([lt_dict_add_subkey],
8442
[m4_define([$1($2:$3)], [$4])])
8445
# lt_dict_fetch(DICT, KEY, [SUBKEY])
8446
# ----------------------------------
8447
m4_define([lt_dict_fetch],
8449
m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
8450
m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
8453
# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
8454
# -----------------------------------------------------------------
8455
m4_define([lt_if_dict_fetch],
8456
[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
8461
# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
8462
# --------------------------------------------------------------
8463
m4_define([lt_dict_filter],
8464
[m4_if([$5], [], [],
8465
[lt_join(m4_quote(m4_default([$4], [[, ]])),
8466
lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
8467
[lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
8470
# ltversion.m4 -- version numbers -*- Autoconf -*-
8472
# Copyright (C) 2004 Free Software Foundation, Inc.
8473
# Written by Scott James Remnant, 2004
8475
# This file is free software; the Free Software Foundation gives
8476
# unlimited permission to copy and/or distribute it, with or without
8477
# modifications, as long as this notice is preserved.
8479
# Generated from ltversion.in.
8481
# serial 2976 ltversion.m4
8482
# This file is part of GNU Libtool
8484
m4_define([LT_PACKAGE_VERSION], [2.2.4])
8485
m4_define([LT_PACKAGE_REVISION], [1.2976])
8487
AC_DEFUN([LTVERSION_VERSION],
8488
[macro_version='2.2.4'
8489
macro_revision='1.2976'
8490
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
8491
_LT_DECL(, macro_revision, 0)
8494
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
8496
# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
8497
# Written by Scott James Remnant, 2004.
8499
# This file is free software; the Free Software Foundation gives
8500
# unlimited permission to copy and/or distribute it, with or without
8501
# modifications, as long as this notice is preserved.
8503
# serial 4 lt~obsolete.m4
8505
# These exist entirely to fool aclocal when bootstrapping libtool.
8507
# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
8508
# which have later been changed to m4_define as they aren't part of the
8509
# exported API, or moved to Autoconf or Automake where they belong.
8511
# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
8512
# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
8513
# using a macro with the same name in our local m4/libtool.m4 it'll
8514
# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
8515
# and doesn't know about Autoconf macros at all.)
8517
# So we provide this file, which has a silly filename so it's always
8518
# included after everything else. This provides aclocal with the
8519
# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
8520
# because those macros already exist, or will be overwritten later.
8521
# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
8523
# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
8524
# Yes, that means every name once taken will need to remain here until
8525
# we give up compatibility with versions before 1.7, at which point
8526
# we need to keep only those names which we still refer to.
8528
# This is to help aclocal find these macros, as it can't see m4_define.
8529
AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
8531
m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
8532
m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
8533
m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
8534
m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
8535
m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
8536
m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
8537
m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
8538
m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
8539
m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
8540
m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
8541
m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
8542
m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
8543
m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
8544
m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
8545
m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
8546
m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
8547
m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
8548
m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
8549
m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
8550
m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
8551
m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
8552
m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
8553
m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
8554
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
8555
m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
8556
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
8557
m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
8558
m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
8559
m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
8560
m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
8561
m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
8562
m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
8563
m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
8564
m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
8565
m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
8566
m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
8567
m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
8568
m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
8569
m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
8570
m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
8571
m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
8572
m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
8573
m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
8574
m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
8575
m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
8576
m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
8577
m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
8578
m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
8579
m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
8580
m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
8581
m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
8582
m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
8583
m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
8584
m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
8585
m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
8587
# nls.m4 serial 3 (gettext-0.15)
8588
dnl Copyright (C) 1995-2003, 2005-2006 Free Software Foundation, Inc.
8589
dnl This file is free software; the Free Software Foundation
8590
dnl gives unlimited permission to copy and/or distribute it,
8591
dnl with or without modifications, as long as this notice is preserved.
8593
dnl This file can can be used in projects which are not available under
8594
dnl the GNU General Public License or the GNU Library General Public
8595
dnl License but which still want to provide support for the GNU gettext
8597
dnl Please note that the actual code of the GNU gettext library is covered
8598
dnl by the GNU Library General Public License, and the rest of the GNU
8599
dnl gettext package package is covered by the GNU General Public License.
8600
dnl They are *not* in the public domain.
8603
dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
8604
dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
8610
AC_MSG_CHECKING([whether NLS is requested])
8611
dnl Default is enabled NLS
8613
[ --disable-nls do not use Native Language Support],
8614
USE_NLS=$enableval, USE_NLS=yes)
8615
AC_MSG_RESULT($USE_NLS)
8619
7309
# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-