921
917
# AC_DEFUN([AC_PROG_INTLTOOL], ...)
920
# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
922
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
924
# This program is free software; you can redistribute it and/or modify
925
# it under the terms of the GNU General Public License as published by
926
# the Free Software Foundation; either version 2 of the License, or
927
# (at your option) any later version.
929
# This program is distributed in the hope that it will be useful, but
930
# WITHOUT ANY WARRANTY; without even the implied warranty of
931
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
932
# General Public License for more details.
934
# You should have received a copy of the GNU General Public License
935
# along with this program; if not, write to the Free Software
936
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
938
# As a special exception to the GNU General Public License, if you
939
# distribute this file as part of a program that contains a
940
# configuration script generated by Autoconf, you may include it under
941
# the same distribution terms that you use for the rest of that program.
943
# PKG_PROG_PKG_CONFIG([MIN-VERSION])
944
# ----------------------------------
945
AC_DEFUN([PKG_PROG_PKG_CONFIG],
946
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
947
m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
948
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
949
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
950
AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
952
if test -n "$PKG_CONFIG"; then
953
_pkg_min_version=m4_default([$1], [0.9.0])
954
AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
955
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
963
])# PKG_PROG_PKG_CONFIG
965
# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
967
# Check to see whether a particular set of modules exists. Similar
968
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
971
# Similar to PKG_CHECK_MODULES, make sure that the first instance of
972
# this or PKG_CHECK_MODULES is called, or make sure to call
973
# PKG_CHECK_EXISTS manually
974
# --------------------------------------------------------------
975
AC_DEFUN([PKG_CHECK_EXISTS],
976
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
977
if test -n "$PKG_CONFIG" && \
978
AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
979
m4_ifval([$2], [$2], [:])
980
m4_ifvaln([$3], [else
985
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
986
# ---------------------------------------------
987
m4_define([_PKG_CONFIG],
988
[if test -n "$$1"; then
990
elif test -n "$PKG_CONFIG"; then
991
PKG_CHECK_EXISTS([$3],
992
[pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
999
# _PKG_SHORT_ERRORS_SUPPORTED
1000
# -----------------------------
1001
AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
1002
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
1003
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
1004
_pkg_short_errors_supported=yes
1006
_pkg_short_errors_supported=no
1008
])# _PKG_SHORT_ERRORS_SUPPORTED
1011
# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
1012
# [ACTION-IF-NOT-FOUND])
1015
# Note that if there is a possibility the first call to
1016
# PKG_CHECK_MODULES might not happen, you should be sure to include an
1017
# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
1020
# --------------------------------------------------------------
1021
AC_DEFUN([PKG_CHECK_MODULES],
1022
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
1023
AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
1024
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
1027
AC_MSG_CHECKING([for $1])
1029
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
1030
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
1032
m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
1033
and $1[]_LIBS to avoid the need to call pkg-config.
1034
See the pkg-config man page for more details.])
1036
if test $pkg_failed = yes; then
1037
_PKG_SHORT_ERRORS_SUPPORTED
1038
if test $_pkg_short_errors_supported = yes; then
1039
$1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
1041
$1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
1043
# Put the nasty error message in config.log where it belongs
1044
echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
1046
ifelse([$4], , [AC_MSG_ERROR(dnl
1047
[Package requirements ($2) were not met:
1051
Consider adjusting the PKG_CONFIG_PATH environment variable if you
1052
installed software in a non-standard prefix.
1056
[AC_MSG_RESULT([no])
1058
elif test $pkg_failed = untried; then
1059
ifelse([$4], , [AC_MSG_FAILURE(dnl
1060
[The pkg-config script could not be found or is too old. Make sure it
1061
is in your PATH or set the PKG_CONFIG environment variable to the full
1066
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
1069
$1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
1070
$1[]_LIBS=$pkg_cv_[]$1[]_LIBS
1071
AC_MSG_RESULT([yes])
1072
ifelse([$3], , :, [$3])
1074
])# PKG_CHECK_MODULES
1076
# isc-posix.m4 serial 2 (gettext-0.11.2)
1077
dnl Copyright (C) 1995-2002 Free Software Foundation, Inc.
1078
dnl This file is free software, distributed under the terms of the GNU
1079
dnl General Public License. As a special exception to the GNU General
1080
dnl Public License, this file may be distributed as part of a program
1081
dnl that contains a configuration script generated by Autoconf, under
1082
dnl the same distribution terms as the rest of that program.
1084
# This file is not needed with autoconf-2.53 and newer. Remove it in 2005.
1086
# This test replaces the one in autoconf.
1087
# Currently this macro should have the same name as the autoconf macro
1088
# because gettext's gettext.m4 (distributed in the automake package)
1089
# still uses it. Otherwise, the use in gettext.m4 makes autoheader
1090
# give these diagnostics:
1091
# configure.in:556: AC_TRY_COMPILE was called before AC_ISC_POSIX
1092
# configure.in:556: AC_TRY_RUN was called before AC_ISC_POSIX
1094
undefine([AC_ISC_POSIX])
1096
AC_DEFUN([AC_ISC_POSIX],
1098
dnl This test replaces the obsolescent AC_ISC_POSIX kludge.
1099
AC_CHECK_LIB(cposix, strerror, [LIBS="$LIBS -lcposix"])
924
1103
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
926
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
927
# 2006, 2007, 2008 Free Software Foundation, Inc.
928
# Written by Gordon Matzigkeit, 1996
930
# This file is free software; the Free Software Foundation gives
931
# unlimited permission to copy and/or distribute it, with or without
932
# modifications, as long as this notice is preserved.
934
m4_define([_LT_COPYING], [dnl
935
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
936
# 2006, 2007, 2008 Free Software Foundation, Inc.
937
# Written by Gordon Matzigkeit, 1996
939
# This file is part of GNU Libtool.
941
# GNU Libtool is free software; you can redistribute it and/or
942
# modify it under the terms of the GNU General Public License as
943
# published by the Free Software Foundation; either version 2 of
944
# the License, or (at your option) any later version.
946
# As a special exception to the GNU General Public License,
947
# if you distribute this file as part of a program or library that
948
# is built using GNU Libtool, you may include this file under the
949
# same distribution terms that you use for the rest of that program.
951
# GNU Libtool is distributed in the hope that it will be useful,
952
# but WITHOUT ANY WARRANTY; without even the implied warranty of
953
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
954
# GNU General Public License for more details.
956
# You should have received a copy of the GNU General Public License
957
# along with GNU Libtool; see the file COPYING. If not, a copy
958
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
959
# obtained by writing to the Free Software Foundation, Inc.,
960
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
968
# Complain and exit if this libtool version is less that VERSION.
969
m4_defun([LT_PREREQ],
970
[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
972
[m4_fatal([Libtool version $1 or higher is required],
979
# Complain if the absolute build directory name contains unusual characters
980
m4_defun([_LT_CHECK_BUILDDIR],
983
AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
991
[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
992
AC_BEFORE([$0], [LT_LANG])dnl
993
AC_BEFORE([$0], [LT_OUTPUT])dnl
994
AC_BEFORE([$0], [LTDL_INIT])dnl
995
m4_require([_LT_CHECK_BUILDDIR])dnl
997
dnl Autoconf doesn't catch unexpanded LT_ macros by default:
998
m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
999
m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
1000
dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
1001
dnl unless we require an AC_DEFUNed macro:
1002
AC_REQUIRE([LTOPTIONS_VERSION])dnl
1003
AC_REQUIRE([LTSUGAR_VERSION])dnl
1004
AC_REQUIRE([LTVERSION_VERSION])dnl
1005
AC_REQUIRE([LTOBSOLETE_VERSION])dnl
1006
m4_require([_LT_PROG_LTMAIN])dnl
1009
_LT_SET_OPTIONS([$0], [$1])
1105
# serial 48 AC_PROG_LIBTOOL
1108
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
1109
# -----------------------------------------------------------
1110
# If this macro is not defined by Autoconf, define it here.
1111
m4_ifdef([AC_PROVIDE_IFELSE],
1113
[m4_define([AC_PROVIDE_IFELSE],
1114
[m4_ifdef([AC_PROVIDE_$1],
1120
AC_DEFUN([AC_PROG_LIBTOOL],
1121
[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
1122
dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
1123
dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
1124
AC_PROVIDE_IFELSE([AC_PROG_CXX],
1126
[define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
1128
dnl And a similar setup for Fortran 77 support
1129
AC_PROVIDE_IFELSE([AC_PROG_F77],
1131
[define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
1134
dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
1135
dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
1136
dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
1137
AC_PROVIDE_IFELSE([AC_PROG_GCJ],
1139
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
1141
[AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
1143
[ifdef([AC_PROG_GCJ],
1144
[define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
1145
ifdef([A][M_PROG_GCJ],
1146
[define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
1147
ifdef([LT_AC_PROG_GCJ],
1148
[define([LT_AC_PROG_GCJ],
1149
defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
1150
])])# AC_PROG_LIBTOOL
1155
AC_DEFUN([_AC_PROG_LIBTOOL],
1156
[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
1157
AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
1158
AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
1159
AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
1011
1161
# This can be used to rebuild libtool when needed
1012
LIBTOOL_DEPS="$ltmain"
1162
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
1014
1164
# Always use our own libtool.
1015
1165
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1016
1166
AC_SUBST(LIBTOOL)dnl
1021
m4_define([LT_INIT])
1025
AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
1026
AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
1027
dnl aclocal-1.4 backwards compatibility:
1028
dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
1029
dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
1032
# _LT_CC_BASENAME(CC)
1033
# -------------------
1034
# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
1035
m4_defun([_LT_CC_BASENAME],
1036
[for cc_temp in $1""; do
1038
compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
1039
distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
1044
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
1048
# _LT_FILEUTILS_DEFAULTS
1049
# ----------------------
1050
# It is okay to use these file commands and assume they have been set
1051
# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
1052
m4_defun([_LT_FILEUTILS_DEFAULTS],
1056
])# _LT_FILEUTILS_DEFAULTS
1061
m4_defun([_LT_SETUP],
1062
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
1168
# Prevent multiple expansion
1169
define([AC_PROG_LIBTOOL], [])
1170
])# _AC_PROG_LIBTOOL
1175
AC_DEFUN([AC_LIBTOOL_SETUP],
1177
AC_REQUIRE([AC_ENABLE_SHARED])dnl
1178
AC_REQUIRE([AC_ENABLE_STATIC])dnl
1179
AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
1180
AC_REQUIRE([AC_CANONICAL_HOST])dnl
1063
1181
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
1064
_LT_DECL([], [host_alias], [0], [The host system])dnl
1065
_LT_DECL([], [host], [0])dnl
1066
_LT_DECL([], [host_os], [0])dnl
1068
_LT_DECL([], [build_alias], [0], [The build system])dnl
1069
_LT_DECL([], [build], [0])dnl
1070
_LT_DECL([], [build_os], [0])dnl
1072
1182
AC_REQUIRE([AC_PROG_CC])dnl
1073
AC_REQUIRE([LT_PATH_LD])dnl
1074
AC_REQUIRE([LT_PATH_NM])dnl
1183
AC_REQUIRE([AC_PROG_LD])dnl
1184
AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
1185
AC_REQUIRE([AC_PROG_NM])dnl
1076
1187
AC_REQUIRE([AC_PROG_LN_S])dnl
1077
test -z "$LN_S" && LN_S="ln -s"
1078
_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
1080
AC_REQUIRE([LT_CMD_MAX_LEN])dnl
1081
_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
1082
_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
1084
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1085
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
1086
m4_require([_LT_CMD_RELOAD])dnl
1087
m4_require([_LT_CHECK_MAGIC_METHOD])dnl
1088
m4_require([_LT_CMD_OLD_ARCHIVE])dnl
1089
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
1091
_LT_CONFIG_LIBTOOL_INIT([
1092
# See if we are running on zsh, and set the options which allow our
1093
# commands through without removal of \ escapes INIT.
1094
if test -n "\${ZSH_VERSION+set}" ; then
1095
setopt NO_GLOB_SUBST
1098
if test -n "${ZSH_VERSION+set}" ; then
1099
setopt NO_GLOB_SUBST
1104
m4_require([_LT_TAG_COMPILER])dnl
1105
_LT_PROG_ECHO_BACKSLASH
1188
AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
1189
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1190
AC_REQUIRE([AC_OBJEXT])dnl
1191
AC_REQUIRE([AC_EXEEXT])dnl
1194
AC_LIBTOOL_SYS_MAX_CMD_LEN
1195
AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
1198
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1199
_LT_AC_PROG_ECHO_BACKSLASH
1107
1201
case $host_os in
1119
1213
# Sed substitution that helps us do robust quoting. It backslashifies
1120
1214
# metacharacters that are still active within double-quoted strings.
1121
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
1215
Xsed='sed -e 1s/^X//'
1216
[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
1123
1218
# Same as above, but do not quote variable references.
1124
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
1219
[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
1126
1221
# Sed substitution to delay expansion of an escaped shell variable in a
1127
1222
# double_quote_subst'ed string.
1128
1223
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1130
# Sed substitution to delay expansion of an escaped single quote.
1131
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
1133
1225
# Sed substitution to avoid accidental globbing in evaled expressions
1134
1226
no_glob_subst='s/\*/\\\*/g'
1136
1231
# Global variables:
1232
default_ofile=libtool
1138
1233
can_build_shared=yes
1140
1235
# All known linkers require a `.a' archive for static linking (except MSVC,
1141
1236
# which needs '.lib').
1238
ltmain="$ac_aux_dir/ltmain.sh"
1239
ofile="$default_ofile"
1144
1240
with_gnu_ld="$lt_cv_prog_gnu_ld"
1242
AC_CHECK_TOOL(AR, ar, false)
1243
AC_CHECK_TOOL(RANLIB, ranlib, :)
1244
AC_CHECK_TOOL(STRIP, strip, :)
1147
1247
old_CFLAGS="$CFLAGS"
1149
1249
# Set sane defaults for various variables
1250
test -z "$AR" && AR=ar
1251
test -z "$AR_FLAGS" && AR_FLAGS=cru
1252
test -z "$AS" && AS=as
1150
1253
test -z "$CC" && CC=cc
1151
1254
test -z "$LTCC" && LTCC=$CC
1152
1255
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
1256
test -z "$DLLTOOL" && DLLTOOL=dlltool
1153
1257
test -z "$LD" && LD=ld
1258
test -z "$LN_S" && LN_S="ln -s"
1259
test -z "$MAGIC_CMD" && MAGIC_CMD=file
1260
test -z "$NM" && NM=nm
1261
test -z "$SED" && SED=sed
1262
test -z "$OBJDUMP" && OBJDUMP=objdump
1263
test -z "$RANLIB" && RANLIB=:
1264
test -z "$STRIP" && STRIP=:
1154
1265
test -z "$ac_objext" && ac_objext=o
1267
# Determine commands to create old-style static archives.
1268
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
1269
old_postinstall_cmds='chmod 644 $oldlib'
1270
old_postuninstall_cmds=
1272
if test -n "$RANLIB"; then
1275
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
1278
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
1281
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1156
1284
_LT_CC_BASENAME([$compiler])
1158
1286
# Only perform the check for file, if the check method requires it
1159
test -z "$MAGIC_CMD" && MAGIC_CMD=file
1160
1287
case $deplibs_check_method in
1162
1289
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1295
AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
1296
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
1297
enable_win32_dll=yes, enable_win32_dll=no)
1299
AC_ARG_ENABLE([libtool-lock],
1300
[AC_HELP_STRING([--disable-libtool-lock],
1301
[avoid locking (might break parallel builds)])])
1302
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1305
[AC_HELP_STRING([--with-pic],
1306
[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
1307
[pic_mode="$withval"],
1309
test -z "$pic_mode" && pic_mode=default
1168
1311
# Use C for the default configuration in the libtool script
1169
LT_SUPPORTED_TAG([CC])
1171
_LT_LANG_DEFAULT_CONFIG
1178
# Note that this code is called both from `configure', and `config.status'
1179
# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
1180
# `config.status' has no value for ac_aux_dir unless we are using Automake,
1181
# so we pass a copy along to make sure it has a sensible value anyway.
1182
m4_defun([_LT_PROG_LTMAIN],
1183
[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
1184
_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
1185
ltmain="$ac_aux_dir/ltmain.sh"
1190
# So that we can recreate a full libtool script including additional
1191
# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
1192
# in macros and then make a single call at the end using the `libtool'
1196
# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
1197
# ----------------------------------------
1198
# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
1199
m4_define([_LT_CONFIG_LIBTOOL_INIT],
1201
[m4_append([_LT_OUTPUT_LIBTOOL_INIT],
1206
m4_define([_LT_OUTPUT_LIBTOOL_INIT])
1209
# _LT_CONFIG_LIBTOOL([COMMANDS])
1210
# ------------------------------
1211
# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
1212
m4_define([_LT_CONFIG_LIBTOOL],
1214
[m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
1219
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
1222
# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
1223
# -----------------------------------------------------
1224
m4_defun([_LT_CONFIG_SAVE_COMMANDS],
1225
[_LT_CONFIG_LIBTOOL([$1])
1226
_LT_CONFIG_LIBTOOL_INIT([$2])
1230
# _LT_FORMAT_COMMENT([COMMENT])
1231
# -----------------------------
1232
# Add leading comment marks to the start of each line, and a trailing
1233
# full-stop to the whole comment if one is not present already.
1234
m4_define([_LT_FORMAT_COMMENT],
1236
m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
1237
[['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
1244
# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
1245
# -------------------------------------------------------------------
1246
# CONFIGNAME is the name given to the value in the libtool script.
1247
# VARNAME is the (base) name used in the configure script.
1248
# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
1249
# VARNAME. Any other value will be used directly.
1250
m4_define([_LT_DECL],
1251
[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
1252
[lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
1253
[m4_ifval([$1], [$1], [$2])])
1254
lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
1256
[lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
1257
lt_dict_add_subkey([lt_decl_dict], [$2],
1258
[tagged?], [m4_ifval([$5], [yes], [no])])])
1262
# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
1263
# --------------------------------------------------------
1264
m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
1267
# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
1268
# ------------------------------------------------
1269
m4_define([lt_decl_tag_varnames],
1270
[_lt_decl_filter([tagged?], [yes], $@)])
1273
# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
1274
# ---------------------------------------------------------
1275
m4_define([_lt_decl_filter],
1277
[0], [m4_fatal([$0: too few arguments: $#])],
1278
[1], [m4_fatal([$0: too few arguments: $#: $1])],
1279
[2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
1280
[3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
1281
[lt_dict_filter([lt_decl_dict], $@)])[]dnl
1285
# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
1286
# --------------------------------------------------
1287
m4_define([lt_decl_quote_varnames],
1288
[_lt_decl_filter([value], [1], $@)])
1291
# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
1292
# ---------------------------------------------------
1293
m4_define([lt_decl_dquote_varnames],
1294
[_lt_decl_filter([value], [2], $@)])
1297
# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
1298
# ---------------------------------------------------
1299
m4_define([lt_decl_varnames_tagged],
1300
[m4_assert([$# <= 2])dnl
1301
_$0(m4_quote(m4_default([$1], [[, ]])),
1302
m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
1303
m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
1304
m4_define([_lt_decl_varnames_tagged],
1305
[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
1308
# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
1309
# ------------------------------------------------
1310
m4_define([lt_decl_all_varnames],
1311
[_$0(m4_quote(m4_default([$1], [[, ]])),
1313
m4_quote(lt_decl_varnames),
1314
m4_quote(m4_shift($@))))[]dnl
1316
m4_define([_lt_decl_all_varnames],
1317
[lt_join($@, lt_decl_varnames_tagged([$1],
1318
lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
1322
# _LT_CONFIG_STATUS_DECLARE([VARNAME])
1323
# ------------------------------------
1324
# Quote a variable value, and forward it to `config.status' so that its
1325
# declaration there will have the same value as in `configure'. VARNAME
1326
# must have a single quote delimited value for this to work.
1327
m4_define([_LT_CONFIG_STATUS_DECLARE],
1328
[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
1331
# _LT_CONFIG_STATUS_DECLARATIONS
1332
# ------------------------------
1333
# We delimit libtool config variables with single quotes, so when
1334
# we write them to config.status, we have to be sure to quote all
1335
# embedded single quotes properly. In configure, this macro expands
1336
# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
1338
# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
1339
m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
1340
[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
1341
[m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
1346
# Output comment and list of tags supported by the script
1347
m4_defun([_LT_LIBTOOL_TAGS],
1348
[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
1349
available_tags="_LT_TAGS"dnl
1353
# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
1354
# -----------------------------------
1355
# Extract the dictionary values for VARNAME (optionally with TAG) and
1356
# expand to a commented shell variable setting:
1358
# # Some comment about what VAR is for.
1359
# visible_name=$lt_internal_name
1360
m4_define([_LT_LIBTOOL_DECLARE],
1361
[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
1362
[description])))[]dnl
1363
m4_pushdef([_libtool_name],
1364
m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
1365
m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
1366
[0], [_libtool_name=[$]$1],
1367
[1], [_libtool_name=$lt_[]$1],
1368
[2], [_libtool_name=$lt_[]$1],
1369
[_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
1370
m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
1374
# _LT_LIBTOOL_CONFIG_VARS
1375
# -----------------------
1376
# Produce commented declarations of non-tagged libtool config variables
1377
# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
1378
# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
1379
# section) are produced by _LT_LIBTOOL_TAG_VARS.
1380
m4_defun([_LT_LIBTOOL_CONFIG_VARS],
1381
[m4_foreach([_lt_var],
1382
m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
1383
[m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
1386
# _LT_LIBTOOL_TAG_VARS(TAG)
1387
# -------------------------
1388
m4_define([_LT_LIBTOOL_TAG_VARS],
1389
[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
1390
[m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
1393
# _LT_TAGVAR(VARNAME, [TAGNAME])
1394
# ------------------------------
1395
m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
1398
# _LT_CONFIG_COMMANDS
1313
AC_LIBTOOL_LANG_C_CONFIG
1315
])# AC_LIBTOOL_SETUP
1318
# _LT_AC_SYS_COMPILER
1399
1319
# -------------------
1400
# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
1401
# variables for single and double quote escaping we saved from calls
1402
# to _LT_DECL, we can put quote escaped variables declarations
1403
# into `config.status', and then the shell code to quote escape them in
1404
# for loops in `config.status'. Finally, any additional code accumulated
1405
# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
1406
m4_defun([_LT_CONFIG_COMMANDS],
1407
[AC_PROVIDE_IFELSE([LT_OUTPUT],
1408
dnl If the libtool generation code has been placed in $CONFIG_LT,
1409
dnl instead of duplicating it all over again into config.status,
1410
dnl then we will have config.status run $CONFIG_LT later, so it
1411
dnl needs to know what name is stored there:
1412
[AC_CONFIG_COMMANDS([libtool],
1413
[$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
1414
dnl If the libtool generation code is destined for config.status,
1415
dnl expand the accumulated commands and init code now:
1416
[AC_CONFIG_COMMANDS([libtool],
1417
[_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
1418
])#_LT_CONFIG_COMMANDS
1422
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
1425
# The HP-UX ksh and POSIX shell print the target directory to stdout
1427
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1429
sed_quote_subst='$sed_quote_subst'
1430
double_quote_subst='$double_quote_subst'
1431
delay_variable_subst='$delay_variable_subst'
1432
_LT_CONFIG_STATUS_DECLARATIONS
1434
LTCFLAGS='$LTCFLAGS'
1435
compiler='$compiler_DEFAULT'
1437
# Quote evaled strings.
1438
for var in lt_decl_all_varnames([[ \
1439
]], lt_decl_quote_varnames); do
1440
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
1441
*[[\\\\\\\`\\"\\\$]]*)
1442
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
1445
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1450
# Double-quote double-evaled strings.
1451
for var in lt_decl_all_varnames([[ \
1452
]], lt_decl_dquote_varnames); do
1453
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
1454
*[[\\\\\\\`\\"\\\$]]*)
1455
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
1458
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1463
# Fix-up fallback echo if it was mangled by the above quoting rules.
1465
*'\\\[$]0 --fallback-echo"')dnl "
1466
lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
1470
_LT_OUTPUT_LIBTOOL_INIT
1476
# This macro allows early generation of the libtool script (before
1477
# AC_OUTPUT is called), incase it is used in configure for compilation
1479
AC_DEFUN([LT_OUTPUT],
1480
[: ${CONFIG_LT=./config.lt}
1481
AC_MSG_NOTICE([creating $CONFIG_LT])
1482
cat >"$CONFIG_LT" <<_LTEOF
1484
# Generated by $as_me.
1485
# Run this file to recreate a libtool stub with the current configuration.
1488
SHELL=\${CONFIG_SHELL-$SHELL}
1491
cat >>"$CONFIG_LT" <<\_LTEOF
1495
exec AS_MESSAGE_FD>&1
1496
exec AS_MESSAGE_LOG_FD>>config.log
1499
AS_BOX([Running $as_me.])
1500
} >&AS_MESSAGE_LOG_FD
1503
\`$as_me' creates a local libtool stub from the current configuration,
1504
for use in further configure time tests before the real libtool is
1507
Usage: $[0] [[OPTIONS]]
1509
-h, --help print this help, then exit
1510
-V, --version print version number, then exit
1511
-q, --quiet do not print progress messages
1512
-d, --debug don't remove temporary files
1514
Report bugs to <bug-libtool@gnu.org>."
1517
m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
1518
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
1519
configured by $[0], generated by m4_PACKAGE_STRING.
1521
Copyright (C) 2008 Free Software Foundation, Inc.
1522
This config.lt script is free software; the Free Software Foundation
1523
gives unlimited permision to copy, distribute and modify it."
1525
while test $[#] != 0
1528
--version | --v* | -V )
1529
echo "$lt_cl_version"; exit 0 ;;
1530
--help | --h* | -h )
1531
echo "$lt_cl_help"; exit 0 ;;
1532
--debug | --d* | -d )
1534
--quiet | --q* | --silent | --s* | -q )
1537
-*) AC_MSG_ERROR([unrecognized option: $[1]
1538
Try \`$[0] --help' for more information.]) ;;
1540
*) AC_MSG_ERROR([unrecognized argument: $[1]
1541
Try \`$[0] --help' for more information.]) ;;
1546
if $lt_cl_silent; then
1547
exec AS_MESSAGE_FD>/dev/null
1551
cat >>"$CONFIG_LT" <<_LTEOF
1552
_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
1555
cat >>"$CONFIG_LT" <<\_LTEOF
1556
AC_MSG_NOTICE([creating $ofile])
1557
_LT_OUTPUT_LIBTOOL_COMMANDS
1560
chmod +x "$CONFIG_LT"
1562
# configure is writing to config.log, but config.lt does its own redirection,
1563
# appending to config.log, which fails on DOS, as config.log is still kept
1564
# open by configure. Here we exec the FD to /dev/null, effectively closing
1565
# config.log, so it can be properly (re)opened and appended to by config.lt.
1566
if test "$no_create" != yes; then
1568
test "$silent" = yes &&
1569
lt_config_lt_args="$lt_config_lt_args --quiet"
1570
exec AS_MESSAGE_LOG_FD>/dev/null
1571
$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
1572
exec AS_MESSAGE_LOG_FD>>config.log
1573
$lt_cl_success || AS_EXIT(1)
1580
# If TAG is the built-in tag, create an initial libtool script with a
1581
# default configuration from the untagged config vars. Otherwise add code
1582
# to config.status for appending the configuration named by TAG from the
1583
# matching tagged config vars.
1584
m4_defun([_LT_CONFIG],
1585
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1586
_LT_CONFIG_SAVE_COMMANDS([
1587
m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
1588
m4_if(_LT_TAG, [C], [
1589
# See if we are running on zsh, and set the options which allow our
1590
# commands through without removal of \ escapes.
1591
if test -n "${ZSH_VERSION+set}" ; then
1592
setopt NO_GLOB_SUBST
1596
trap "$RM \"$cfgfile\"; exit 1" 1 2 15
1599
cat <<_LT_EOF >> "$cfgfile"
1602
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
1603
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
1604
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1605
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
1610
# ### BEGIN LIBTOOL CONFIG
1611
_LT_LIBTOOL_CONFIG_VARS
1612
_LT_LIBTOOL_TAG_VARS
1613
# ### END LIBTOOL CONFIG
1619
cat <<\_LT_EOF >> "$cfgfile"
1620
# AIX sometimes has problems with the GCC collect2 program. For some
1621
# reason, if we set the COLLECT_NAMES environment variable, the problems
1622
# vanish in a puff of smoke.
1623
if test "X${COLLECT_NAMES+set}" != Xset; then
1625
export COLLECT_NAMES
1633
# We use sed instead of cat because bash on DJGPP gets confused if
1634
# if finds mixed CR/LF and LF-only lines. Since sed operates in
1635
# text mode, it properly converts lines to CR/LF. This bash problem
1636
# is reportedly fixed, but why not run on old versions too?
1637
sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
1638
|| (rm -f "$cfgfile"; exit 1)
1640
_LT_PROG_XSI_SHELLFNS
1642
sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
1643
|| (rm -f "$cfgfile"; exit 1)
1645
mv -f "$cfgfile" "$ofile" ||
1646
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
1649
[cat <<_LT_EOF >> "$ofile"
1651
dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
1652
dnl in a comment (ie after a #).
1653
# ### BEGIN LIBTOOL TAG CONFIG: $1
1654
_LT_LIBTOOL_TAG_VARS(_LT_TAG)
1655
# ### END LIBTOOL TAG CONFIG: $1
1662
TIMESTAMP='$TIMESTAMP'
1664
ofile='$ofile'], [])
1665
])dnl /_LT_CONFIG_SAVE_COMMANDS
1669
# LT_SUPPORTED_TAG(TAG)
1670
# ---------------------
1671
# Trace this macro to discover what tags are supported by the libtool
1672
# --tag option, using:
1673
# autoconf --trace 'LT_SUPPORTED_TAG:$1'
1674
AC_DEFUN([LT_SUPPORTED_TAG], [])
1677
# C support is built-in for now
1678
m4_define([_LT_LANG_C_enabled], [])
1679
m4_define([_LT_TAGS], [])
1684
# Enable libtool support for the given language if not already enabled.
1686
[AC_BEFORE([$0], [LT_OUTPUT])dnl
1689
[C++], [_LT_LANG(CXX)],
1690
[Java], [_LT_LANG(GCJ)],
1691
[Fortran 77], [_LT_LANG(F77)],
1692
[Fortran], [_LT_LANG(FC)],
1693
[Windows Resource], [_LT_LANG(RC)],
1694
[m4_ifdef([_LT_LANG_]$1[_CONFIG],
1696
[m4_fatal([$0: unsupported language: "$1"])])])dnl
1700
# _LT_LANG(LANGNAME)
1701
# ------------------
1702
m4_defun([_LT_LANG],
1703
[m4_ifdef([_LT_LANG_]$1[_enabled], [],
1704
[LT_SUPPORTED_TAG([$1])dnl
1705
m4_append([_LT_TAGS], [$1 ])dnl
1706
m4_define([_LT_LANG_]$1[_enabled], [])dnl
1707
_LT_LANG_$1_CONFIG($1)])dnl
1711
# _LT_LANG_DEFAULT_CONFIG
1712
# -----------------------
1713
m4_defun([_LT_LANG_DEFAULT_CONFIG],
1714
[AC_PROVIDE_IFELSE([AC_PROG_CXX],
1716
[m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
1718
AC_PROVIDE_IFELSE([AC_PROG_F77],
1720
[m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
1722
AC_PROVIDE_IFELSE([AC_PROG_FC],
1724
[m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
1726
dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
1727
dnl pulling things in needlessly.
1728
AC_PROVIDE_IFELSE([AC_PROG_GCJ],
1730
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
1732
[AC_PROVIDE_IFELSE([LT_PROG_GCJ],
1734
[m4_ifdef([AC_PROG_GCJ],
1735
[m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
1736
m4_ifdef([A][M_PROG_GCJ],
1737
[m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
1738
m4_ifdef([LT_PROG_GCJ],
1739
[m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
1741
AC_PROVIDE_IFELSE([LT_PROG_RC],
1743
[m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
1744
])# _LT_LANG_DEFAULT_CONFIG
1747
AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
1748
AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
1749
AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
1750
AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
1751
dnl aclocal-1.4 backwards compatibility:
1752
dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
1753
dnl AC_DEFUN([AC_LIBTOOL_F77], [])
1754
dnl AC_DEFUN([AC_LIBTOOL_FC], [])
1755
dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
1760
m4_defun([_LT_TAG_COMPILER],
1320
AC_DEFUN([_LT_AC_SYS_COMPILER],
1761
1321
[AC_REQUIRE([AC_PROG_CC])dnl
1763
_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
1764
_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
1765
_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
1766
_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
1768
1323
# If no C compiler was specified, use CC.
1769
1324
LTCC=${LTCC-"$CC"}
4196
3599
AC_CHECK_LIB(m, cos, LIBM="-lm")
4203
AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
4204
dnl aclocal-1.4 backwards compatibility:
4205
dnl AC_DEFUN([AC_CHECK_LIBM], [])
4208
# _LT_COMPILER_NO_RTTI([TAGNAME])
4209
# -------------------------------
4210
m4_defun([_LT_COMPILER_NO_RTTI],
4211
[m4_require([_LT_TAG_COMPILER])dnl
4213
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3605
# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
3606
# -----------------------------------
3607
# sets LIBLTDL to the link flags for the libltdl convenience library and
3608
# LTDLINCL to the include flags for the libltdl header and adds
3609
# --enable-ltdl-convenience to the configure arguments. Note that
3610
# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
3611
# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
3612
# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
3613
# (note the single quotes!). If your package is not flat and you're not
3614
# using automake, define top_builddir and top_srcdir appropriately in
3616
AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
3617
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3618
case $enable_ltdl_convenience in
3619
no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
3620
"") enable_ltdl_convenience=yes
3621
ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
3623
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
3624
LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3625
# For backwards non-gettext consistent compatibility...
3627
])# AC_LIBLTDL_CONVENIENCE
3630
# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
3631
# -----------------------------------
3632
# sets LIBLTDL to the link flags for the libltdl installable library and
3633
# LTDLINCL to the include flags for the libltdl header and adds
3634
# --enable-ltdl-install to the configure arguments. Note that
3635
# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
3636
# and an installed libltdl is not found, it is assumed to be `libltdl'.
3637
# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
3638
# '${top_srcdir}/' (note the single quotes!). If your package is not
3639
# flat and you're not using automake, define top_builddir and top_srcdir
3640
# appropriately in the Makefiles.
3641
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
3642
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
3643
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3644
AC_CHECK_LIB(ltdl, lt_dlinit,
3645
[test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
3646
[if test x"$enable_ltdl_install" = xno; then
3647
AC_MSG_WARN([libltdl not installed, but installation disabled])
3649
enable_ltdl_install=yes
3652
if test x"$enable_ltdl_install" = x"yes"; then
3653
ac_configure_args="$ac_configure_args --enable-ltdl-install"
3654
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
3655
LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3657
ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
3661
# For backwards non-gettext consistent compatibility...
3663
])# AC_LIBLTDL_INSTALLABLE
3668
# enable support for C++ libraries
3669
AC_DEFUN([AC_LIBTOOL_CXX],
3670
[AC_REQUIRE([_LT_AC_LANG_CXX])
3676
AC_DEFUN([_LT_AC_LANG_CXX],
3677
[AC_REQUIRE([AC_PROG_CXX])
3678
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
3679
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
3682
# _LT_AC_PROG_CXXCPP
3683
# ------------------
3684
AC_DEFUN([_LT_AC_PROG_CXXCPP],
3686
AC_REQUIRE([AC_PROG_CXX])
3687
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
3688
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
3689
(test "X$CXX" != "Xg++"))) ; then
3692
])# _LT_AC_PROG_CXXCPP
3696
# enable support for Fortran 77 libraries
3697
AC_DEFUN([AC_LIBTOOL_F77],
3698
[AC_REQUIRE([_LT_AC_LANG_F77])
3704
AC_DEFUN([_LT_AC_LANG_F77],
3705
[AC_REQUIRE([AC_PROG_F77])
3706
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
3712
# enable support for GCJ libraries
3713
AC_DEFUN([AC_LIBTOOL_GCJ],
3714
[AC_REQUIRE([_LT_AC_LANG_GCJ])
3720
AC_DEFUN([_LT_AC_LANG_GCJ],
3721
[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
3722
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
3723
[AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
3724
[ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
3725
[ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
3726
[AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
3727
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
3733
# enable support for Windows resource files
3734
AC_DEFUN([AC_LIBTOOL_RC],
3735
[AC_REQUIRE([LT_AC_PROG_RC])
3736
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
3740
# AC_LIBTOOL_LANG_C_CONFIG
3741
# ------------------------
3742
# Ensure that the configuration vars for the C compiler are
3743
# suitably defined. Those variables are subsequently used by
3744
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3745
AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
3746
AC_DEFUN([_LT_AC_LANG_C_CONFIG],
3750
# Source file extension for C test sources.
3753
# Object file extension for compiled C test sources.
3755
_LT_AC_TAGVAR(objext, $1)=$objext
3757
# Code to be used in simple compile tests
3758
lt_simple_compile_test_code="int some_variable = 0;\n"
3760
# Code to be used in simple link tests
3761
lt_simple_link_test_code='int main(){return(0);}\n'
3765
# save warnings/boilerplate of simple test code
3766
_LT_COMPILER_BOILERPLATE
3767
_LT_LINKER_BOILERPLATE
3769
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
3770
AC_LIBTOOL_PROG_COMPILER_PIC($1)
3771
AC_LIBTOOL_PROG_CC_C_O($1)
3772
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3773
AC_LIBTOOL_PROG_LD_SHLIBS($1)
3774
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3775
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3776
AC_LIBTOOL_SYS_LIB_STRIP
3777
AC_LIBTOOL_DLOPEN_SELF
3779
# Report which library types will actually be built
3780
AC_MSG_CHECKING([if libtool supports shared libraries])
3781
AC_MSG_RESULT([$can_build_shared])
3783
AC_MSG_CHECKING([whether to build shared libraries])
3784
test "$can_build_shared" = "no" && enable_shared=no
3786
# On AIX, shared libraries and static libraries use the same namespace, and
3787
# are all built from PIC.
3790
test "$enable_shared" = yes && enable_static=no
3791
if test -n "$RANLIB"; then
3792
archive_cmds="$archive_cmds~\$RANLIB \$lib"
3793
postinstall_cmds='$RANLIB $lib'
3798
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
3799
test "$enable_shared" = yes && enable_static=no
3803
AC_MSG_RESULT([$enable_shared])
3805
AC_MSG_CHECKING([whether to build static libraries])
3806
# Make sure either enable_shared or enable_static is yes.
3807
test "$enable_shared" = yes || enable_static=yes
3808
AC_MSG_RESULT([$enable_static])
3810
AC_LIBTOOL_CONFIG($1)
3814
])# AC_LIBTOOL_LANG_C_CONFIG
3817
# AC_LIBTOOL_LANG_CXX_CONFIG
3818
# --------------------------
3819
# Ensure that the configuration vars for the C compiler are
3820
# suitably defined. Those variables are subsequently used by
3821
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3822
AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
3823
AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
3825
AC_REQUIRE([AC_PROG_CXX])
3826
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
3828
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3829
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
3830
_LT_AC_TAGVAR(always_export_symbols, $1)=no
3831
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
3832
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
3833
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3834
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
3835
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
3836
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3837
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
3838
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3839
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
3840
_LT_AC_TAGVAR(module_cmds, $1)=
3841
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
3842
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
3843
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
3844
_LT_AC_TAGVAR(no_undefined_flag, $1)=
3845
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3846
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
3848
# Dependencies to place before and after the object being linked:
3849
_LT_AC_TAGVAR(predep_objects, $1)=
3850
_LT_AC_TAGVAR(postdep_objects, $1)=
3851
_LT_AC_TAGVAR(predeps, $1)=
3852
_LT_AC_TAGVAR(postdeps, $1)=
3853
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
3855
# Source file extension for C++ test sources.
3858
# Object file extension for compiled C++ test sources.
3860
_LT_AC_TAGVAR(objext, $1)=$objext
3862
# Code to be used in simple compile tests
3863
lt_simple_compile_test_code="int some_variable = 0;\n"
3865
# Code to be used in simple link tests
3866
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
3868
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3871
# save warnings/boilerplate of simple test code
3872
_LT_COMPILER_BOILERPLATE
3873
_LT_LINKER_BOILERPLATE
3875
# Allow CC to be a program name with arguments.
3880
lt_save_with_gnu_ld=$with_gnu_ld
3881
lt_save_path_LD=$lt_cv_path_LD
3882
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
3883
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
3885
$as_unset lt_cv_prog_gnu_ld
3887
if test -n "${lt_cv_path_LDCXX+set}"; then
3888
lt_cv_path_LD=$lt_cv_path_LDCXX
3890
$as_unset lt_cv_path_LD
3892
test -z "${LDCXX+set}" || LD=$LDCXX
3895
_LT_AC_TAGVAR(compiler, $1)=$CC
3896
_LT_CC_BASENAME([$compiler])
3898
# We don't want -fno-exception wen compiling C++ code, so set the
3899
# no_builtin_flag separately
3900
if test "$GXX" = yes; then
3901
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
3903
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3906
if test "$GXX" = yes; then
3907
# Set up default GNU C++ configuration
3911
# Check if GNU C++ uses GNU ld as the underlying linker, since the
3912
# archiving commands below assume that GNU ld is being used.
3913
if test "$with_gnu_ld" = yes; then
3914
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3915
_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'
3917
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3918
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3920
# If archive_cmds runs LD, not CC, wlarc should be empty
3921
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
3922
# investigate it a little bit more. (MM)
3925
# ancient GNU ld didn't support --whole-archive et. al.
3926
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
3927
grep 'no-whole-archive' > /dev/null; then
3928
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3930
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3936
# A generic and very simple default shared library creation
3937
# command for GNU C++ for the case where it uses the native
3938
# linker, instead of GNU ld. If possible, this setting should
3939
# overridden to take advantage of the native linker features on
3940
# the platform it is being used on.
3941
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3944
# Commands to make compiler produce verbose output that lists
3945
# what "hidden" libraries, object files and flags are used when
3946
# linking a shared library.
3947
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3955
# PORTME: fill in a description of your system's C++ link characteristics
3956
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
3957
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
3960
# FIXME: insert proper C++ library support
3961
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3964
if test "$host_cpu" = ia64; then
3965
# On IA64, the linker does run time linking by default, so we don't
3966
# have to do anything special.
3967
aix_use_runtimelinking=no
3968
exp_sym_flag='-Bexport'
3971
aix_use_runtimelinking=no
3973
# Test if we are trying to use run time linking or normal
3974
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
3975
# need to do runtime linking.
3976
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
3977
for ld_flag in $LDFLAGS; do
3980
aix_use_runtimelinking=yes
3988
exp_sym_flag='-bexport'
3989
no_entry_flag='-bnoentry'
3992
# When large executables or shared objects are built, AIX ld can
3993
# have problems creating the table of contents. If linking a library
3994
# or program results in "error TOC overflow" add -mminimal-toc to
3995
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
3996
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
3998
_LT_AC_TAGVAR(archive_cmds, $1)=''
3999
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
4000
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
4001
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4003
if test "$GXX" = yes; then
4004
case $host_os in aix4.[[012]]|aix4.[[012]].*)
4005
# We only want to do this on AIX 4.2 and lower, the check
4006
# below for broken collect2 doesn't work under 4.3+
4007
collect2name=`${CC} -print-prog-name=collect2`
4008
if test -f "$collect2name" && \
4009
strings "$collect2name" | grep resolve_lib_name >/dev/null
4011
# We have reworked collect2
4012
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
4014
# We have old collect2
4015
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
4016
# It fails to find uninstalled libraries when the uninstalled
4017
# path is not listed in the libpath. Setting hardcode_minus_L
4018
# to unsupported forces relinking
4019
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
4020
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4021
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4025
shared_flag='-shared'
4026
if test "$aix_use_runtimelinking" = yes; then
4027
shared_flag="$shared_flag "'${wl}-G'
4031
if test "$host_cpu" = ia64; then
4032
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
4033
# chokes on -Wl,-G. The following line is correct:
4036
if test "$aix_use_runtimelinking" = yes; then
4037
shared_flag='${wl}-G'
4039
shared_flag='${wl}-bM:SRE'
4044
# It seems that -bexpall does not export symbols beginning with
4045
# underscore (_), so it is better to generate a list of symbols to export.
4046
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
4047
if test "$aix_use_runtimelinking" = yes; then
4048
# Warning - without using the other runtime loading flags (-brtl),
4049
# -berok will link without error, but may produce a broken library.
4050
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
4051
# Determine the default libpath from the value encoded in an empty executable.
4052
_LT_AC_SYS_LIBPATH_AIX
4053
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4055
_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"
4057
if test "$host_cpu" = ia64; then
4058
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
4059
_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
4060
_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"
4062
# Determine the default libpath from the value encoded in an empty executable.
4063
_LT_AC_SYS_LIBPATH_AIX
4064
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4065
# Warning - without using the other run time loading flags,
4066
# -berok will link without error, but may produce a broken library.
4067
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
4068
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
4069
# Exported symbols can be pulled into shared objects from archives
4070
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
4071
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
4072
# This is similar to how AIX traditionally builds its shared libraries.
4073
_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'
4079
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
4080
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
4081
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4082
# support --undefined. This deserves some investigation. FIXME
4083
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4085
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4090
case $cc_basename in
4092
# FIXME: insert proper C++ library support
4093
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4098
cygwin* | mingw* | pw32*)
4099
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
4100
# as there is no search path for DLLs.
4101
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4102
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
4103
_LT_AC_TAGVAR(always_export_symbols, $1)=no
4104
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4106
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
4107
_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'
4108
# If the export-symbols file already is a .def file (1st line
4109
# is EXPORTS), use it as is; otherwise, prepend...
4110
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
4111
cp $export_symbols $output_objdir/$soname.def;
4113
echo EXPORTS > $output_objdir/$soname.def;
4114
cat $export_symbols >> $output_objdir/$soname.def;
4116
$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'
4118
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4121
darwin* | rhapsody*)
4123
rhapsody* | darwin1.[[012]])
4124
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
4127
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
4128
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
4130
case ${MACOSX_DEPLOYMENT_TARGET} in
4132
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
4135
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
4141
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4142
_LT_AC_TAGVAR(hardcode_direct, $1)=no
4143
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
4144
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4145
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
4146
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4148
if test "$GXX" = yes ; then
4149
lt_int_apple_cc_single_mod=no
4150
output_verbose_link_cmd='echo'
4151
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
4152
lt_int_apple_cc_single_mod=yes
4154
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
4155
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
4157
_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'
4159
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
4160
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
4161
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
4162
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
4164
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
4166
_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}'
4168
case $cc_basename in
4170
output_verbose_link_cmd='echo'
4171
_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` $verstring'
4172
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
4173
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
4174
_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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
4175
_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}'
4178
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4185
case $cc_basename in
4187
# FIXME: insert proper C++ library support
4188
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4191
# Green Hills C++ Compiler
4192
# FIXME: insert proper C++ library support
4193
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4196
# FIXME: insert proper C++ library support
4197
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4202
# C++ shared libraries reported to be fairly broken before switch to ELF
4203
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4206
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4208
freebsd* | kfreebsd*-gnu | dragonfly*)
4209
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
4211
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
4216
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4217
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4218
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4219
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
4220
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
4221
# but as the default
4222
# location of the library.
4224
case $cc_basename in
4226
# FIXME: insert proper C++ library support
4227
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4230
_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'
4231
# Commands to make compiler produce verbose output that lists
4232
# what "hidden" libraries, object files and flags are used when
4233
# linking a shared library.
4235
# There doesn't appear to be a way to prevent this compiler from
4236
# explicitly linking system object files so we need to strip them
4237
# from the output so that they don't get included in the library
4239
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'
4242
if test "$GXX" = yes; then
4243
_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'
4245
# FIXME: insert proper C++ library support
4246
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4252
if test $with_gnu_ld = no; then
4253
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4254
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4258
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
4261
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4267
_LT_AC_TAGVAR(hardcode_direct, $1)=no
4268
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4271
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
4272
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
4273
# but as the default
4274
# location of the library.
4278
case $cc_basename in
4280
# FIXME: insert proper C++ library support
4281
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4286
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4289
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4292
_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'
4295
# Commands to make compiler produce verbose output that lists
4296
# what "hidden" libraries, object files and flags are used when
4297
# linking a shared library.
4299
# There doesn't appear to be a way to prevent this compiler from
4300
# explicitly linking system object files so we need to strip them
4301
# from the output so that they don't get included in the library
4303
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'
4306
if test "$GXX" = yes; then
4307
if test $with_gnu_ld = no; then
4310
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4313
_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'
4316
_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'
4321
# FIXME: insert proper C++ library support
4322
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4328
_LT_AC_TAGVAR(hardcode_direct, $1)=no
4329
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4330
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4331
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4332
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
4333
# Instead, shared libraries are loaded at an image base (0x10000000 by
4334
# default) and relocated if they conflict, which is a slow very memory
4335
# consuming and fragmenting process. To avoid this, we pick a random,
4336
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
4337
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
4338
_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'
4339
_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'
4342
case $cc_basename in
4345
_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'
4347
# Archives containing C++ object files must be created using
4348
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
4349
# necessary to make sure instantiated templates are included
4351
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
4354
if test "$GXX" = yes; then
4355
if test "$with_gnu_ld" = no; then
4356
_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'
4358
_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'
4361
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4364
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4365
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4368
case $cc_basename in
4370
# Kuck and Associates, Inc. (KAI) C++ Compiler
4372
# KCC will only create a shared library if the output file
4373
# ends with ".so" (or ".sl" for HP-UX), so rename the library
4374
# to its proper name (with version) after linking.
4375
_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'
4376
_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'
4377
# Commands to make compiler produce verbose output that lists
4378
# what "hidden" libraries, object files and flags are used when
4379
# linking a shared library.
4381
# There doesn't appear to be a way to prevent this compiler from
4382
# explicitly linking system object files so we need to strip them
4383
# from the output so that they don't get included in the library
4385
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'
4387
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
4388
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4390
# Archives containing C++ object files must be created using
4391
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
4392
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
4397
# version 8.0 and above of icpc choke on multiply defined symbols
4398
# if we add $predep_objects and $postdep_objects, however 7.1 and
4399
# earlier do not add the objects themselves.
4400
case `$CC -V 2>&1` in
4402
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4403
_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'
4405
*) # Version 8.0 or newer
4408
ia64*) tmp_idyn=' -i_dynamic';;
4410
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4411
_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'
4414
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4415
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4416
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4417
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
4420
# Portland Group C++ compiler
4421
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
4422
_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'
4424
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
4425
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4426
_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'
4430
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4431
_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'
4433
runpath_var=LD_RUN_PATH
4434
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4435
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4437
# Commands to make compiler produce verbose output that lists
4438
# what "hidden" libraries, object files and flags are used when
4439
# linking a shared library.
4441
# There doesn't appear to be a way to prevent this compiler from
4442
# explicitly linking system object files so we need to strip them
4443
# from the output so that they don't get included in the library
4445
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'
4450
# FIXME: insert proper C++ library support
4451
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4454
# FIXME: insert proper C++ library support
4455
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4458
case $cc_basename in
4460
# FIXME: insert proper C++ library support
4461
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4464
# FIXME: insert proper C++ library support
4465
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4470
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4471
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
4473
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4474
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
4475
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4477
# Workaround some broken pre-1.5 toolchains
4478
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
4481
# C++ shared libraries are fairly broken
4482
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4485
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
4486
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4487
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
4488
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4489
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4490
_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'
4491
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4492
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4494
output_verbose_link_cmd='echo'
4497
case $cc_basename in
4499
# Kuck and Associates, Inc. (KAI) C++ Compiler
4501
# KCC will only create a shared library if the output file
4502
# ends with ".so" (or ".sl" for HP-UX), so rename the library
4503
# to its proper name (with version) after linking.
4504
_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'
4506
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4507
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4509
# Archives containing C++ object files must be created using
4510
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
4511
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
4515
# Rational C++ 2.4.1
4516
# FIXME: insert proper C++ library support
4517
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4520
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4521
_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'
4523
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4524
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4526
# Commands to make compiler produce verbose output that lists
4527
# what "hidden" libraries, object files and flags are used when
4528
# linking a shared library.
4530
# There doesn't appear to be a way to prevent this compiler from
4531
# explicitly linking system object files so we need to strip them
4532
# from the output so that they don't get included in the library
4534
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'
4537
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4538
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4539
_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'
4541
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4542
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4544
# Commands to make compiler produce verbose output that lists
4545
# what "hidden" libraries, object files and flags are used when
4546
# linking a shared library.
4547
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4550
# FIXME: insert proper C++ library support
4551
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4557
case $cc_basename in
4559
# Kuck and Associates, Inc. (KAI) C++ Compiler
4561
# KCC will only create a shared library if the output file
4562
# ends with ".so" (or ".sl" for HP-UX), so rename the library
4563
# to its proper name (with version) after linking.
4564
_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'
4566
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4567
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4569
# Archives containing C++ object files must be created using
4570
# the KAI C++ compiler.
4571
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
4574
# Rational C++ 2.4.1
4575
# FIXME: insert proper C++ library support
4576
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4579
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4580
_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'
4581
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
4582
echo "-hidden">> $lib.exp~
4583
$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~
4586
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4587
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4589
# Commands to make compiler produce verbose output that lists
4590
# what "hidden" libraries, object files and flags are used when
4591
# linking a shared library.
4593
# There doesn't appear to be a way to prevent this compiler from
4594
# explicitly linking system object files so we need to strip them
4595
# from the output so that they don't get included in the library
4597
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'
4600
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4601
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4602
_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'
4604
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4605
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4607
# Commands to make compiler produce verbose output that lists
4608
# what "hidden" libraries, object files and flags are used when
4609
# linking a shared library.
4610
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4613
# FIXME: insert proper C++ library support
4614
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4620
# FIXME: insert proper C++ library support
4621
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4624
case $cc_basename in
4627
# FIXME: insert proper C++ library support
4628
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4632
# FIXME: insert proper C++ library support
4633
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4636
# FIXME: insert proper C++ library support
4637
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4642
case $cc_basename in
4644
# Sun C++ 4.2, 5.x and Centerline C++
4645
_LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
4646
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
4647
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4648
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4649
$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'
4651
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4652
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4654
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
4656
# The C++ compiler is used as linker so we must use $wl
4657
# flag to pass the commands to the underlying system
4658
# linker. We must also pass each convience library through
4659
# to the system linker between allextract/defaultextract.
4660
# The C++ compiler will combine linker options so we
4661
# cannot just pass the convience library names through
4663
# Supported since Solaris 2.6 (maybe 2.5.1?)
4664
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
4667
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4669
output_verbose_link_cmd='echo'
4671
# Archives containing C++ object files must be created using
4672
# "CC -xar", where "CC" is the Sun C++ compiler. This is
4673
# necessary to make sure instantiated templates are included
4675
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
4678
# Green Hills C++ Compiler
4679
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4681
# The C++ compiler must be used to create the archive.
4682
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
4685
# GNU C++ compiler with Solaris linker
4686
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4687
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
4688
if $CC --version | grep -v '^2\.7' > /dev/null; then
4689
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4690
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4691
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4693
# Commands to make compiler produce verbose output that lists
4694
# what "hidden" libraries, object files and flags are used when
4695
# linking a shared library.
4696
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
4698
# g++ 2.7 appears to require `-G' NOT `-shared' on this
4700
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4701
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4702
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4704
# Commands to make compiler produce verbose output that lists
4705
# what "hidden" libraries, object files and flags are used when
4706
# linking a shared library.
4707
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
4710
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
4715
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
4716
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
4717
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4718
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4719
runpath_var='LD_RUN_PATH'
4721
case $cc_basename in
4723
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4724
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4727
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4728
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4732
sysv5* | sco3.2v5* | sco5v6*)
4733
# Note: We can NOT use -z defs as we might desire, because we do not
4734
# link with -lc, and that would cause any symbols used from libc to
4735
# always be unresolved, which means just about no library would
4736
# ever link correctly. If we're not using GNU ld we use -z text
4737
# though, which does catch some bad symbols but isn't as heavy-handed
4739
# For security reasons, it is highly recommended that you always
4740
# use absolute paths for naming shared libraries, and exclude the
4741
# DT_RUNPATH tag from executables and libraries. But doing so
4742
# requires that you compile everything twice, which is a pain.
4743
# So that behaviour is only enabled if SCOABSPATH is set to a
4744
# non-empty value in the environment. Most likely only useful for
4745
# creating official distributions of packages.
4746
# This is a hack until libtool officially supports absolute path
4747
# names for shared libraries.
4748
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
4749
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
4750
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4751
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4752
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
4753
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
4754
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4755
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
4756
runpath_var='LD_RUN_PATH'
4758
case $cc_basename in
4760
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4761
_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'
4764
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4765
_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'
4770
case $cc_basename in
4772
# NonStop-UX NCC 3.20
4773
# FIXME: insert proper C++ library support
4774
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4777
# FIXME: insert proper C++ library support
4778
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4783
# FIXME: insert proper C++ library support
4784
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4787
# FIXME: insert proper C++ library support
4788
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4791
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
4792
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
4794
_LT_AC_TAGVAR(GCC, $1)="$GXX"
4795
_LT_AC_TAGVAR(LD, $1)="$LD"
4797
AC_LIBTOOL_POSTDEP_PREDEP($1)
4798
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4799
AC_LIBTOOL_PROG_CC_C_O($1)
4800
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4801
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4802
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4803
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4805
AC_LIBTOOL_CONFIG($1)
4812
with_gnu_ldcxx=$with_gnu_ld
4813
with_gnu_ld=$lt_save_with_gnu_ld
4814
lt_cv_path_LDCXX=$lt_cv_path_LD
4815
lt_cv_path_LD=$lt_save_path_LD
4816
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
4817
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
4818
])# AC_LIBTOOL_LANG_CXX_CONFIG
4820
# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
4821
# ------------------------------------
4822
# Figure out "hidden" library dependencies from verbose
4823
# compiler output when linking a shared library.
4824
# Parse the compiler output and extract the necessary
4825
# objects, libraries and library flags.
4826
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
4827
dnl we can't use the lt_simple_compile_test_code here,
4828
dnl because it contains code intended for an executable,
4829
dnl not a library. It's possible we should let each
4830
dnl tag define a new lt_????_link_test_code variable,
4831
dnl but it's only used here...
4832
ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
4834
void foo (void) { a = 0; }
4836
],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
4840
Foo (void) { a = 0; }
4845
],[$1],[F77],[cat > conftest.$ac_ext <<EOF
4853
],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
4856
public void bar (void) {
4862
dnl Parse the compiler output and extract the necessary
4863
dnl objects, libraries and library flags.
4864
if AC_TRY_EVAL(ac_compile); then
4865
# Parse the compiler output and extract the necessary
4866
# objects, libraries and library flags.
4868
# Sentinel used to keep track of whether or not we are before
4869
# the conftest object file.
4870
pre_test_object_deps_done=no
4872
# The `*' in the case matches for architectures that use `case' in
4873
# $output_verbose_cmd can trigger glob expansion during the loop
4874
# eval without this substitution.
4875
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
4877
for p in `eval $output_verbose_link_cmd`; do
4881
# Some compilers place space between "-{L,R}" and the path.
4884
|| test $p = "-R"; then
4891
if test "$pre_test_object_deps_done" = no; then
4894
# Internal compiler library paths should come after those
4895
# provided the user. The postdeps already come after the
4896
# user supplied libs so there is no need to process them.
4897
if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
4898
_LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
4900
_LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
4903
# The "-l" case would never come before the object being
4904
# linked, so don't bother handling this case.
4907
if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
4908
_LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
4910
_LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
4916
# This assumes that the test object file only shows up
4917
# once in the compiler output.
4918
if test "$p" = "conftest.$objext"; then
4919
pre_test_object_deps_done=yes
4923
if test "$pre_test_object_deps_done" = no; then
4924
if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
4925
_LT_AC_TAGVAR(predep_objects, $1)="$p"
4927
_LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
4930
if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
4931
_LT_AC_TAGVAR(postdep_objects, $1)="$p"
4933
_LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
4938
*) ;; # Ignore the rest.
4946
echo "libtool.m4: error: problem compiling $1 test program"
4949
$rm -f confest.$objext
4951
# PORTME: override above test on systems where it is broken
4955
# Interix 3.5 installs completely hosed .la files for C++, so rather than
4956
# hack all around it, let's just trust "g++" to DTRT.
4957
_LT_AC_TAGVAR(predep_objects,$1)=
4958
_LT_AC_TAGVAR(postdep_objects,$1)=
4959
_LT_AC_TAGVAR(postdeps,$1)=
4963
case $cc_basename in
4965
# Adding this requires a known-good setup of shared libraries for
4966
# Sun compiler versions before 5.6, else PIC objects from an old
4967
# archive will be linked into the output, leading to subtle bugs.
4968
_LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
4975
case " $_LT_AC_TAGVAR(postdeps, $1) " in
4976
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
4978
])# AC_LIBTOOL_POSTDEP_PREDEP
4980
# AC_LIBTOOL_LANG_F77_CONFIG
4981
# --------------------------
4982
# Ensure that the configuration vars for the C compiler are
4983
# suitably defined. Those variables are subsequently used by
4984
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4985
AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
4986
AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
4987
[AC_REQUIRE([AC_PROG_F77])
4988
AC_LANG_PUSH(Fortran 77)
4990
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4991
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
4992
_LT_AC_TAGVAR(always_export_symbols, $1)=no
4993
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
4994
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
4995
_LT_AC_TAGVAR(hardcode_direct, $1)=no
4996
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
4997
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4998
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4999
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5000
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
5001
_LT_AC_TAGVAR(module_cmds, $1)=
5002
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
5003
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
5004
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
5005
_LT_AC_TAGVAR(no_undefined_flag, $1)=
5006
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5007
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5009
# Source file extension for f77 test sources.
5012
# Object file extension for compiled f77 test sources.
5014
_LT_AC_TAGVAR(objext, $1)=$objext
5016
# Code to be used in simple compile tests
5017
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
5019
# Code to be used in simple link tests
5020
lt_simple_link_test_code=" program t\n end\n"
5022
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
5025
# save warnings/boilerplate of simple test code
5026
_LT_COMPILER_BOILERPLATE
5027
_LT_LINKER_BOILERPLATE
5029
# Allow CC to be a program name with arguments.
5033
_LT_AC_TAGVAR(compiler, $1)=$CC
5034
_LT_CC_BASENAME([$compiler])
5036
AC_MSG_CHECKING([if libtool supports shared libraries])
5037
AC_MSG_RESULT([$can_build_shared])
5039
AC_MSG_CHECKING([whether to build shared libraries])
5040
test "$can_build_shared" = "no" && enable_shared=no
5042
# On AIX, shared libraries and static libraries use the same namespace, and
5043
# are all built from PIC.
5046
test "$enable_shared" = yes && enable_static=no
5047
if test -n "$RANLIB"; then
5048
archive_cmds="$archive_cmds~\$RANLIB \$lib"
5049
postinstall_cmds='$RANLIB $lib'
5053
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5054
test "$enable_shared" = yes && enable_static=no
5058
AC_MSG_RESULT([$enable_shared])
5060
AC_MSG_CHECKING([whether to build static libraries])
5061
# Make sure either enable_shared or enable_static is yes.
5062
test "$enable_shared" = yes || enable_static=yes
5063
AC_MSG_RESULT([$enable_static])
5065
_LT_AC_TAGVAR(GCC, $1)="$G77"
5066
_LT_AC_TAGVAR(LD, $1)="$LD"
5068
AC_LIBTOOL_PROG_COMPILER_PIC($1)
5069
AC_LIBTOOL_PROG_CC_C_O($1)
5070
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
5071
AC_LIBTOOL_PROG_LD_SHLIBS($1)
5072
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
5073
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
5075
AC_LIBTOOL_CONFIG($1)
5079
])# AC_LIBTOOL_LANG_F77_CONFIG
5082
# AC_LIBTOOL_LANG_GCJ_CONFIG
5083
# --------------------------
5084
# Ensure that the configuration vars for the C compiler are
5085
# suitably defined. Those variables are subsequently used by
5086
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
5087
AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
5088
AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
5091
# Source file extension for Java test sources.
5094
# Object file extension for compiled Java test sources.
5096
_LT_AC_TAGVAR(objext, $1)=$objext
5098
# Code to be used in simple compile tests
5099
lt_simple_compile_test_code="class foo {}\n"
5101
# Code to be used in simple link tests
5102
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
5104
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
5107
# save warnings/boilerplate of simple test code
5108
_LT_COMPILER_BOILERPLATE
5109
_LT_LINKER_BOILERPLATE
5111
# Allow CC to be a program name with arguments.
5115
_LT_AC_TAGVAR(compiler, $1)=$CC
5116
_LT_CC_BASENAME([$compiler])
5118
# GCJ did not exist at the time GCC didn't implicitly link libc in.
5119
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5121
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
5123
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
5124
AC_LIBTOOL_PROG_COMPILER_PIC($1)
5125
AC_LIBTOOL_PROG_CC_C_O($1)
5126
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
5127
AC_LIBTOOL_PROG_LD_SHLIBS($1)
5128
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
5129
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
5131
AC_LIBTOOL_CONFIG($1)
5135
])# AC_LIBTOOL_LANG_GCJ_CONFIG
5138
# AC_LIBTOOL_LANG_RC_CONFIG
5139
# -------------------------
5140
# Ensure that the configuration vars for the Windows resource compiler are
5141
# suitably defined. Those variables are subsequently used by
5142
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
5143
AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
5144
AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
5147
# Source file extension for RC test sources.
5150
# Object file extension for compiled RC test sources.
5152
_LT_AC_TAGVAR(objext, $1)=$objext
5154
# Code to be used in simple compile tests
5155
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
5157
# Code to be used in simple link tests
5158
lt_simple_link_test_code="$lt_simple_compile_test_code"
5160
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
5163
# save warnings/boilerplate of simple test code
5164
_LT_COMPILER_BOILERPLATE
5165
_LT_LINKER_BOILERPLATE
5167
# Allow CC to be a program name with arguments.
5171
_LT_AC_TAGVAR(compiler, $1)=$CC
5172
_LT_CC_BASENAME([$compiler])
5173
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
5175
AC_LIBTOOL_CONFIG($1)
5179
])# AC_LIBTOOL_LANG_RC_CONFIG
5182
# AC_LIBTOOL_CONFIG([TAGNAME])
5183
# ----------------------------
5184
# If TAGNAME is not passed, then create an initial libtool script
5185
# with a default configuration from the untagged config vars. Otherwise
5186
# add code to config.status for appending the configuration named by
5187
# TAGNAME from the matching tagged config vars.
5188
AC_DEFUN([AC_LIBTOOL_CONFIG],
5189
[# The else clause should only fire when bootstrapping the
5190
# libtool distribution, otherwise you forgot to ship ltmain.sh
5191
# with your package, and you will get complaints that there are
5192
# no rules to generate ltmain.sh.
5193
if test -f "$ltmain"; then
5194
# See if we are running on zsh, and set the options which allow our commands through
5195
# without removal of \ escapes.
5196
if test -n "${ZSH_VERSION+set}" ; then
5197
setopt NO_GLOB_SUBST
5199
# Now quote all the things that may contain metacharacters while being
5200
# careful not to overquote the AC_SUBSTed values. We take copies of the
5201
# variables and quote the copies for generation of the libtool script.
5202
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
5204
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
5205
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
5206
deplibs_check_method reload_flag reload_cmds need_locks \
5207
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
5208
lt_cv_sys_global_symbol_to_c_name_address \
5209
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
5210
old_postinstall_cmds old_postuninstall_cmds \
5211
_LT_AC_TAGVAR(compiler, $1) \
5212
_LT_AC_TAGVAR(CC, $1) \
5213
_LT_AC_TAGVAR(LD, $1) \
5214
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
5215
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
5216
_LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
5217
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
5218
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
5219
_LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
5220
_LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
5221
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
5222
_LT_AC_TAGVAR(old_archive_cmds, $1) \
5223
_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
5224
_LT_AC_TAGVAR(predep_objects, $1) \
5225
_LT_AC_TAGVAR(postdep_objects, $1) \
5226
_LT_AC_TAGVAR(predeps, $1) \
5227
_LT_AC_TAGVAR(postdeps, $1) \
5228
_LT_AC_TAGVAR(compiler_lib_search_path, $1) \
5229
_LT_AC_TAGVAR(archive_cmds, $1) \
5230
_LT_AC_TAGVAR(archive_expsym_cmds, $1) \
5231
_LT_AC_TAGVAR(postinstall_cmds, $1) \
5232
_LT_AC_TAGVAR(postuninstall_cmds, $1) \
5233
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
5234
_LT_AC_TAGVAR(allow_undefined_flag, $1) \
5235
_LT_AC_TAGVAR(no_undefined_flag, $1) \
5236
_LT_AC_TAGVAR(export_symbols_cmds, $1) \
5237
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
5238
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
5239
_LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
5240
_LT_AC_TAGVAR(hardcode_automatic, $1) \
5241
_LT_AC_TAGVAR(module_cmds, $1) \
5242
_LT_AC_TAGVAR(module_expsym_cmds, $1) \
5243
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
5244
_LT_AC_TAGVAR(exclude_expsyms, $1) \
5245
_LT_AC_TAGVAR(include_expsyms, $1); do
5248
_LT_AC_TAGVAR(old_archive_cmds, $1) | \
5249
_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
5250
_LT_AC_TAGVAR(archive_cmds, $1) | \
5251
_LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
5252
_LT_AC_TAGVAR(module_cmds, $1) | \
5253
_LT_AC_TAGVAR(module_expsym_cmds, $1) | \
5254
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
5255
_LT_AC_TAGVAR(export_symbols_cmds, $1) | \
5256
extract_expsyms_cmds | reload_cmds | finish_cmds | \
5257
postinstall_cmds | postuninstall_cmds | \
5258
old_postinstall_cmds | old_postuninstall_cmds | \
5259
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
5260
# Double-quote double-evaled strings.
5261
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
5264
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
5270
*'\[$]0 --fallback-echo"')
5271
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
5276
[cfgfile="${ofile}T"
5277
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
5279
AC_MSG_NOTICE([creating $ofile])],
5282
cat <<__EOF__ >> "$cfgfile"
5286
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
5287
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
5288
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
5290
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
5291
# Free Software Foundation, Inc.
5293
# This file is part of GNU Libtool:
5294
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
5296
# This program is free software; you can redistribute it and/or modify
5297
# it under the terms of the GNU General Public License as published by
5298
# the Free Software Foundation; either version 2 of the License, or
5299
# (at your option) any later version.
5301
# This program is distributed in the hope that it will be useful, but
5302
# WITHOUT ANY WARRANTY; without even the implied warranty of
5303
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
5304
# General Public License for more details.
5306
# You should have received a copy of the GNU General Public License
5307
# along with this program; if not, write to the Free Software
5308
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
5310
# As a special exception to the GNU General Public License, if you
5311
# distribute this file as part of a program that contains a
5312
# configuration script generated by Autoconf, you may include it under
5313
# the same distribution terms that you use for the rest of that program.
5315
# A sed program that does not truncate output.
5318
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
5319
Xsed="$SED -e 1s/^X//"
5321
# The HP-UX ksh and POSIX shell print the target directory to stdout
5323
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5325
# The names of the tagged configurations supported by this script.
5328
# ### BEGIN LIBTOOL CONFIG],
5329
[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
5331
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5333
# Shell to use when invoking shell scripts.
5336
# Whether or not to build shared libraries.
5337
build_libtool_libs=$enable_shared
5339
# Whether or not to build static libraries.
5340
build_old_libs=$enable_static
5342
# Whether or not to add -lc for building shared libraries.
5343
build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
5345
# Whether or not to disallow shared libs when runtime libs are static
5346
allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
5348
# Whether or not to optimize for fast installation.
5349
fast_install=$enable_fast_install
5352
host_alias=$host_alias
5357
build_alias=$build_alias
5361
# An echo program that does not interpret backslashes.
5366
AR_FLAGS=$lt_AR_FLAGS
5371
# LTCC compiler flags.
5372
LTCFLAGS=$lt_LTCFLAGS
5374
# A language-specific compiler.
5375
CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
5377
# Is the compiler the GNU C compiler?
5378
with_gcc=$_LT_AC_TAGVAR(GCC, $1)
5383
# The linker used to build libraries.
5384
LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
5386
# Whether we need hard or soft links.
5389
# A BSD-compatible nm program.
5392
# A symbol stripping program
5395
# Used to examine libraries when file_magic_cmd begins "file"
5396
MAGIC_CMD=$MAGIC_CMD
5398
# Used on cygwin: DLL creation program.
5401
# Used on cygwin: object dumper.
5404
# Used on cygwin: assembler.
5407
# The name of the directory that contains temporary libtool files.
5410
# How to create reloadable object files.
5411
reload_flag=$lt_reload_flag
5412
reload_cmds=$lt_reload_cmds
5414
# How to pass a linker flag through the compiler.
5415
wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
5417
# Object file suffix (normally "o").
5420
# Old archive suffix (normally "a").
5423
# Shared library suffix (normally ".so").
5424
shrext_cmds='$shrext_cmds'
5426
# Executable file suffix (normally "").
5429
# Additional compiler flags for building library objects.
5430
pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
5433
# What is the maximum length of a command?
5434
max_cmd_len=$lt_cv_sys_max_cmd_len
5436
# Does compiler simultaneously support -c and -o options?
5437
compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
5439
# Must we lock files when doing compilation?
5440
need_locks=$lt_need_locks
5442
# Do we need the lib prefix for modules?
5443
need_lib_prefix=$need_lib_prefix
5445
# Do we need a version for libraries?
5446
need_version=$need_version
5448
# Whether dlopen is supported.
5449
dlopen_support=$enable_dlopen
5451
# Whether dlopen of programs is supported.
5452
dlopen_self=$enable_dlopen_self
5454
# Whether dlopen of statically linked programs is supported.
5455
dlopen_self_static=$enable_dlopen_self_static
5457
# Compiler flag to prevent dynamic linking.
5458
link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
5460
# Compiler flag to turn off builtin functions.
5461
no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
5463
# Compiler flag to allow reflexive dlopens.
5464
export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
5466
# Compiler flag to generate shared objects directly from archives.
5467
whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
5469
# Compiler flag to generate thread-safe objects.
5470
thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
5472
# Library versioning type.
5473
version_type=$version_type
5475
# Format of library name prefix.
5476
libname_spec=$lt_libname_spec
5478
# List of archive names. First name is the real one, the rest are links.
5479
# The last name is the one that the linker finds with -lNAME.
5480
library_names_spec=$lt_library_names_spec
5482
# The coded name of the library, if different from the real name.
5483
soname_spec=$lt_soname_spec
5485
# Commands used to build and install an old-style archive.
5487
old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
5488
old_postinstall_cmds=$lt_old_postinstall_cmds
5489
old_postuninstall_cmds=$lt_old_postuninstall_cmds
5491
# Create an old-style archive from a shared archive.
5492
old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
5494
# Create a temporary old-style archive to link instead of a shared archive.
5495
old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
5497
# Commands used to build and install a shared archive.
5498
archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
5499
archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
5500
postinstall_cmds=$lt_postinstall_cmds
5501
postuninstall_cmds=$lt_postuninstall_cmds
5503
# Commands used to build a loadable module (assumed same as above if empty)
5504
module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
5505
module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
5507
# Commands to strip libraries.
5508
old_striplib=$lt_old_striplib
5509
striplib=$lt_striplib
5511
# Dependencies to place before the objects being linked to create a
5513
predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
5515
# Dependencies to place after the objects being linked to create a
5517
postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
5519
# Dependencies to place before the objects being linked to create a
5521
predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
5523
# Dependencies to place after the objects being linked to create a
5525
postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
5527
# The library search path used internally by the compiler when linking
5529
compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
5531
# Method to check whether dependent libraries are shared objects.
5532
deplibs_check_method=$lt_deplibs_check_method
5534
# Command to use when deplibs_check_method == file_magic.
5535
file_magic_cmd=$lt_file_magic_cmd
5537
# Flag that allows shared libraries with undefined symbols to be built.
5538
allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
5540
# Flag that forces no undefined symbols.
5541
no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
5543
# Commands used to finish a libtool library installation in a directory.
5544
finish_cmds=$lt_finish_cmds
5546
# Same as above, but a single script fragment to be evaled but not shown.
5547
finish_eval=$lt_finish_eval
5549
# Take the output of nm and produce a listing of raw symbols and C names.
5550
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
5552
# Transform the output of nm in a proper C declaration
5553
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
5555
# Transform the output of nm in a C name address pair
5556
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
5558
# This is the shared library runtime path variable.
5559
runpath_var=$runpath_var
5561
# This is the shared library path variable.
5562
shlibpath_var=$shlibpath_var
5564
# Is shlibpath searched before the hard-coded library search path?
5565
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
5567
# How to hardcode a shared library path into an executable.
5568
hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
5570
# Whether we should hardcode library paths into libraries.
5571
hardcode_into_libs=$hardcode_into_libs
5573
# Flag to hardcode \$libdir into a binary during linking.
5574
# This must work even if \$libdir does not exist.
5575
hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
5577
# If ld is used when linking, flag to hardcode \$libdir into
5578
# a binary during linking. This must work even if \$libdir does
5580
hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
5582
# Whether we need a single -rpath flag with a separated argument.
5583
hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
5585
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
5587
hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
5589
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
5591
hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
5593
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
5594
# the resulting binary.
5595
hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
5597
# Set to yes if building a shared library automatically hardcodes DIR into the library
5598
# and all subsequent libraries and executables linked against it.
5599
hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
5601
# Variables whose values should be saved in libtool wrapper scripts and
5602
# restored at relink time.
5603
variables_saved_for_relink="$variables_saved_for_relink"
5605
# Whether libtool must link a program against all its dependency libraries.
5606
link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
5608
# Compile-time system search path for libraries
5609
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
5611
# Run-time system search path for libraries
5612
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
5614
# Fix the shell variable \$srcfile for the compiler.
5615
fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
5617
# Set to yes if exported symbols are required.
5618
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
5620
# The commands to list exported symbols.
5621
export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
5623
# The commands to extract the exported symbol list from a shared archive.
5624
extract_expsyms_cmds=$lt_extract_expsyms_cmds
5626
# Symbols that should not be listed in the preloaded symbols.
5627
exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
5629
# Symbols that must always be exported.
5630
include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
5633
[# ### END LIBTOOL CONFIG],
5634
[# ### END LIBTOOL TAG CONFIG: $tagname])
5641
cat <<\EOF >> "$cfgfile"
5643
# AIX sometimes has problems with the GCC collect2 program. For some
5644
# reason, if we set the COLLECT_NAMES environment variable, the problems
5645
# vanish in a puff of smoke.
5646
if test "X${COLLECT_NAMES+set}" != Xset; then
5648
export COLLECT_NAMES
5654
# We use sed instead of cat because bash on DJGPP gets confused if
5655
# if finds mixed CR/LF and LF-only lines. Since sed operates in
5656
# text mode, it properly converts lines to CR/LF. This bash problem
5657
# is reportedly fixed, but why not run on old versions too?
5658
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
5660
mv -f "$cfgfile" "$ofile" || \
5661
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
5665
# If there is no Makefile yet, we rely on a make rule to execute
5666
# `config.status --recheck' to rerun these tests and create the
5667
# libtool script then.
5668
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
5669
if test -f "$ltmain_in"; then
5670
test -f Makefile && make "$ltmain"
5673
])# AC_LIBTOOL_CONFIG
5676
# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
5677
# -------------------------------------------
5678
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
5679
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
5681
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
4215
5683
if test "$GCC" = yes; then
4216
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
5684
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
4218
_LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
5686
AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
4219
5687
lt_cv_prog_compiler_rtti_exceptions,
4220
5688
[-fno-rtti -fno-exceptions], [],
4221
[_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
5689
[_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
4223
_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
4224
[Compiler flag to turn off builtin functions])
4225
])# _LT_COMPILER_NO_RTTI
4228
# _LT_CMD_GLOBAL_SYMBOLS
4229
# ----------------------
4230
m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
4231
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
4232
AC_REQUIRE([AC_PROG_CC])dnl
4233
AC_REQUIRE([LT_PATH_NM])dnl
4234
AC_REQUIRE([LT_PATH_LD])dnl
4235
m4_require([_LT_DECL_SED])dnl
4236
m4_require([_LT_DECL_EGREP])dnl
4237
m4_require([_LT_TAG_COMPILER])dnl
5691
])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
5694
# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
5695
# ---------------------------------
5696
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
5697
[AC_REQUIRE([AC_CANONICAL_HOST])
5698
AC_REQUIRE([AC_PROG_NM])
5699
AC_REQUIRE([AC_OBJEXT])
4239
5700
# Check for command to grab the raw symbol name followed by C symbol from nm.
4240
5701
AC_MSG_CHECKING([command to parse $NM output from $compiler object])
4241
5702
AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
4893
6283
# +Z the default
4896
_LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
6286
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4899
6289
# Is there a better lt_prog_compiler_static that works with the bundled CC?
4900
_LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
6290
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4903
6293
irix5* | irix6* | nonstopux*)
4904
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6294
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4905
6295
# PIC (with -KPIC) is the default.
4906
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4909
linux* | k*bsd*-gnu)
6296
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6300
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6301
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4910
6305
case $cc_basename in
4911
# old Intel for x86_64 which still supported -KPIC.
4913
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4914
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4915
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4917
# icc used to be incompatible with GCC.
4918
# ICC 10 doesn't accept -KPIC any more.
4920
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4921
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4922
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4924
# Lahey Fortran 8.1.
4926
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4927
_LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
4928
_LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
6307
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6308
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6309
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
4930
6311
pgcc* | pgf77* | pgf90* | pgf95*)
4931
6312
# Portland Group compilers (*not* the Pentium gcc compiler,
4932
6313
# which looks to be a dead project)
4933
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4934
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4935
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6314
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6315
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
6316
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4938
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6319
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4939
6320
# All Alpha code is PIC.
4940
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6321
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4943
# IBM XL C 8.0/Fortran 10.1 on PPC
4944
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4945
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4946
_LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4949
case `$CC -V 2>&1 | sed 5q` in
4952
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4953
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4954
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4957
# Sun Fortran 8.3 passes all unrecognized flags to the linker
4958
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4959
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4960
_LT_TAGVAR(lt_prog_compiler_wl, $1)=''
4968
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4969
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4973
# QNX uses GNU C++, but need to define -shared option too, otherwise
4975
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4978
6326
osf3* | osf4* | osf5*)
4979
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6327
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4980
6328
# All OSF/1 code is PIC.
4981
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4985
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6329
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4989
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4990
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6333
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6334
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4991
6335
case $cc_basename in
4992
6336
f77* | f90* | f95*)
4993
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
6337
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
4995
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
6339
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
5000
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5001
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5002
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6344
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
6345
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
6346
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5005
6349
sysv4 | sysv4.2uw2* | sysv4.3*)
5006
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5007
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5008
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6350
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6351
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6352
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5012
6356
if test -d /usr/nec ;then
5013
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
5014
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6357
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
6358
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5018
6362
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5019
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5020
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5021
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6363
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6364
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6365
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5025
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5026
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6369
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6370
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5030
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5031
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6374
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6375
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5035
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6379
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6384
AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
6387
# Check to make sure the PIC flag actually works.
6389
if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
6390
AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
6391
_LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
6392
[$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
6393
[case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
6395
*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
6397
[_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6398
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
5040
6400
case $host_os in
5041
6401
# For platforms which do not support PIC, -DPIC is meaningless:
5043
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
6403
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5046
_LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
6406
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
5049
AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
5050
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
5051
[How to pass a linker flag through the compiler])
5054
# Check to make sure the PIC flag actually works.
5056
if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
5057
_LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
5058
[_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
5059
[$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
5060
[case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
5062
*) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
5064
[_LT_TAGVAR(lt_prog_compiler_pic, $1)=
5065
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
5067
_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
5068
[Additional compiler flags for building library objects])
5071
6411
# Check to make sure the static flag actually works.
5073
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
5074
_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
5075
_LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
6413
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
6414
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
6415
_LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
5076
6416
$lt_tmp_static_flag,
5078
[_LT_TAGVAR(lt_prog_compiler_static, $1)=])
5079
_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
5080
[Compiler flag to prevent dynamic linking])
5081
])# _LT_COMPILER_PIC
5084
# _LT_LINKER_SHLIBS([TAGNAME])
5085
# ----------------------------
6418
[_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
6422
# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
6423
# ------------------------------------
5086
6424
# See if the linker supports building shared libraries.
5087
m4_defun([_LT_LINKER_SHLIBS],
5088
[AC_REQUIRE([LT_PATH_LD])dnl
5089
AC_REQUIRE([LT_PATH_NM])dnl
5090
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5091
m4_require([_LT_DECL_EGREP])dnl
5092
m4_require([_LT_DECL_SED])dnl
5093
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
5094
m4_require([_LT_TAG_COMPILER])dnl
5095
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5096
m4_if([$1], [CXX], [
5097
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6425
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
6426
[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
6428
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5098
6429
case $host_os in
5100
6431
# If we're using GNU nm, then we don't want the "-C" option.
5101
6432
# -C means demangle to AIX nm, but means don't demangle with GNU nm
5102
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
5103
_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'
6433
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6434
_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'
5105
_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'
6436
_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'
5109
_LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5111
cygwin* | mingw* | cegcc*)
5112
_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'
5114
linux* | k*bsd*-gnu)
5115
_LT_TAGVAR(link_all_deplibs, $1)=no
6440
_LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
6443
_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'
5118
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6446
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5121
_LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5124
_LT_TAGVAR(allow_undefined_flag, $1)=
5125
_LT_TAGVAR(always_export_symbols, $1)=no
5126
_LT_TAGVAR(archive_cmds, $1)=
5127
_LT_TAGVAR(archive_expsym_cmds, $1)=
5128
_LT_TAGVAR(compiler_needs_object, $1)=no
5129
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5130
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
5131
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5132
_LT_TAGVAR(hardcode_automatic, $1)=no
5133
_LT_TAGVAR(hardcode_direct, $1)=no
5134
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
5135
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5136
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5137
_LT_TAGVAR(hardcode_libdir_separator, $1)=
5138
_LT_TAGVAR(hardcode_minus_L, $1)=no
5139
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5140
_LT_TAGVAR(inherit_rpath, $1)=no
5141
_LT_TAGVAR(link_all_deplibs, $1)=unknown
5142
_LT_TAGVAR(module_cmds, $1)=
5143
_LT_TAGVAR(module_expsym_cmds, $1)=
5144
_LT_TAGVAR(old_archive_from_new_cmds, $1)=
5145
_LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
5146
_LT_TAGVAR(thread_safe_flag_spec, $1)=
5147
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6451
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
6452
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6453
_LT_AC_TAGVAR(archive_cmds, $1)=
6454
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
6455
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
6456
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
6457
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
6458
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6459
_LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
6460
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
6461
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6462
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
6463
_LT_AC_TAGVAR(hardcode_direct, $1)=no
6464
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
6465
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6466
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
6467
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
6468
_LT_AC_TAGVAR(module_cmds, $1)=
6469
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
6470
_LT_AC_TAGVAR(always_export_symbols, $1)=no
6471
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5148
6472
# include_expsyms should be a list of space-separated symbols to be *always*
5149
6473
# included in the symbol list
5150
_LT_TAGVAR(include_expsyms, $1)=
6474
_LT_AC_TAGVAR(include_expsyms, $1)=
5151
6475
# exclude_expsyms can be an extended regexp of symbols to exclude
5152
6476
# it will be wrapped by ` (' and `)$', so one must not match beginning or
5153
6477
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5154
6478
# as well as any symbol that contains `d'.
5155
_LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
6479
_LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
5156
6480
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5157
6481
# platforms (ab)use it in PIC code, but their linkers get confused if
5158
6482
# the symbol is explicitly referenced. Since portable code cannot
5159
6483
# rely on this symbol name, it's probably fine to never include it in
5160
6484
# preloaded symbol tables.
5161
# Exclude shared library initialization/finalization symbols.
5162
dnl Note also adjust exclude_expsyms for C++ above.
5163
6485
extract_expsyms_cmds=
6486
# Just being paranoid about ensuring that cc_basename is set.
6487
_LT_CC_BASENAME([$compiler])
5165
6488
case $host_os in
5166
cygwin* | mingw* | pw32* | cegcc*)
6489
cygwin* | mingw* | pw32*)
5167
6490
# FIXME: the MSVC++ port hasn't been tested in a loooong time
5168
6491
# When not using gcc, we currently assume that we are using
5169
6492
# Microsoft Visual C++.
5757
7066
irix5* | irix6* | nonstopux*)
5758
7067
if test "$GCC" = yes; then
5759
_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'
5760
# Try to use the -exported_symbol ld option, if it does not
5761
# work, assume that -exports_file does not work either and
5762
# implicitly export all symbols.
5763
save_LDFLAGS="$LDFLAGS"
5764
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5765
AC_LINK_IFELSE(int foo(void) {},
5766
_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'
5768
LDFLAGS="$save_LDFLAGS"
7068
_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'
5770
_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'
5771
_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'
7070
_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'
7071
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
5773
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5774
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5775
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5776
_LT_TAGVAR(inherit_rpath, $1)=yes
5777
_LT_TAGVAR(link_all_deplibs, $1)=yes
7073
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7074
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7075
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5780
netbsd* | netbsdelf*-gnu)
5781
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5782
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7079
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7080
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5784
_LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7082
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5786
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5787
_LT_TAGVAR(hardcode_direct, $1)=yes
5788
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7084
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7085
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
7086
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5792
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5793
_LT_TAGVAR(hardcode_direct, $1)=yes
5794
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5795
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5796
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7090
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7091
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
7092
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7093
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7094
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5803
if test -f /usr/libexec/ld.so; then
5804
_LT_TAGVAR(hardcode_direct, $1)=yes
5805
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5806
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5807
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5808
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5809
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
5810
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5811
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5814
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
5815
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5816
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5819
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5820
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7098
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
7099
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7100
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7101
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7102
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7103
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7104
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5825
_LT_TAGVAR(ld_shlibs, $1)=no
7107
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
7108
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7109
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7112
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7113
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5830
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5831
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5832
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5833
_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'
5834
_LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7120
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7121
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7122
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
7123
_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'
7124
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5838
7128
if test "$GCC" = yes; then
5839
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5840
_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'
7129
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7130
_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'
5842
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5843
_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'
7132
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
7133
_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'
5845
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5846
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5847
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
7135
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7136
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5850
7139
osf4* | osf5*) # as osf3* with the addition of -msym flag
5851
7140
if test "$GCC" = yes; then
5852
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5853
_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'
5854
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7141
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7142
_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'
7143
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5856
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5857
_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'
5858
_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~
5859
$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'
7145
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
7146
_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'
7147
_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~
7148
$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'
5861
7150
# Both c and cxx compiler support -rpath directly
5862
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
7151
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5864
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5865
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
7153
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5869
_LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
7157
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
5870
7158
if test "$GCC" = yes; then
5872
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5873
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5874
$CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7160
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7161
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7162
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
5876
case `$CC -V 2>&1` in
5879
_LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5880
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5881
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
5885
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
5886
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5887
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7165
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7166
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7167
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5891
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5892
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7169
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7170
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5893
7171
case $host_os in
5894
7172
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
5896
# The compiler driver will combine and reorder linker options,
5897
# but understands `-z linker_flag'. GCC discards it without `$wl',
5898
# but is careful enough not to reorder.
5899
# Supported since Solaris 2.6 (maybe 2.5.1?)
5900
if test "$GCC" = yes; then
5901
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
5903
_LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
7174
# The compiler driver will combine linker options so we
7175
# cannot just pass the convience library names through
7176
# without $wl, iff we do not link with $LD.
7177
# Luckily, gcc supports the same syntax we need for Sun Studio.
7178
# Supported since Solaris 2.6 (maybe 2.5.1?)
7181
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
7183
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
5907
_LT_TAGVAR(link_all_deplibs, $1)=yes
7186
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5911
7190
if test "x$host_vendor" = xsequent; then
5912
7191
# Use $CC to link under sequent, because it throws in some extra .o
5913
7192
# files that make .init and .fini sections work.
5914
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7193
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5916
_LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7195
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5918
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5919
_LT_TAGVAR(hardcode_direct, $1)=yes
5920
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5921
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7197
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7198
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
7199
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7200
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5925
7204
case $host_vendor in
5927
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5928
_LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
7206
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7207
_LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
5931
7210
## LD is ld it makes a PLAMLIB
5932
7211
## CC just makes a GrossModule.
5933
_LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5934
_LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
5935
_LT_TAGVAR(hardcode_direct, $1)=no
7212
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7213
_LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
7214
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5938
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5939
_LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
7217
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7218
_LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
5942
7221
runpath_var='LD_RUN_PATH'
5943
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7222
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5947
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5948
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5949
_LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
7226
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7227
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7228
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
5953
7232
if test -d /usr/nec; then
5954
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5955
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7233
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7234
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5956
7235
runpath_var=LD_RUN_PATH
5957
7236
hardcode_runpath_var=yes
5958
_LT_TAGVAR(ld_shlibs, $1)=yes
7237
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
5962
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
5963
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5964
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5965
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7241
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
7242
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7243
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7244
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5966
7245
runpath_var='LD_RUN_PATH'
5968
7247
if test "$GCC" = yes; then
5969
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5970
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7248
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7249
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5972
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5973
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7251
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7252
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6048
7312
# systems, -lgcc has to come before -lc. If gcc already passes -lc
6049
7313
# to ld, don't add -lc before -lgcc.
6050
7314
AC_MSG_CHECKING([whether -lc should be explicitly linked in])
6052
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7316
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6054
7318
if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6055
7319
soname=conftest
6057
7321
libobjs=conftest.$ac_objext
6059
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
6060
pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
7323
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
7324
pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
6061
7325
compiler_flags=-v
6062
7326
linker_flags=-v
6064
7328
output_objdir=.
6065
7329
libname=conftest
6066
lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
6067
_LT_TAGVAR(allow_undefined_flag, $1)=
6068
if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
7330
lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
7331
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
7332
if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
6070
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7334
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6072
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
7336
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6074
_LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
7338
_LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
6076
7340
cat conftest.err 1>&5
6079
AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
7343
AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
6086
_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
6087
[Whether or not to add -lc for building shared libraries])
6088
_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
6089
[enable_shared_with_static_runtimes], [0],
6090
[Whether or not to disallow shared libs when runtime libs are static])
6091
_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
6092
[Compiler flag to allow reflexive dlopens])
6093
_LT_TAGDECL([], [whole_archive_flag_spec], [1],
6094
[Compiler flag to generate shared objects directly from archives])
6095
_LT_TAGDECL([], [compiler_needs_object], [1],
6096
[Whether the compiler copes with passing no objects directly])
6097
_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
6098
[Create an old-style archive from a shared archive])
6099
_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
6100
[Create a temporary old-style archive to link instead of a shared archive])
6101
_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
6102
_LT_TAGDECL([], [archive_expsym_cmds], [2])
6103
_LT_TAGDECL([], [module_cmds], [2],
6104
[Commands used to build a loadable module if different from building
6106
_LT_TAGDECL([], [module_expsym_cmds], [2])
6107
_LT_TAGDECL([], [with_gnu_ld], [1],
6108
[Whether we are building with GNU ld or not])
6109
_LT_TAGDECL([], [allow_undefined_flag], [1],
6110
[Flag that allows shared libraries with undefined symbols to be built])
6111
_LT_TAGDECL([], [no_undefined_flag], [1],
6112
[Flag that enforces no undefined symbols])
6113
_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
6114
[Flag to hardcode $libdir into a binary during linking.
6115
This must work even if $libdir does not exist])
6116
_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
6117
[[If ld is used when linking, flag to hardcode $libdir into a binary
6118
during linking. This must work even if $libdir does not exist]])
6119
_LT_TAGDECL([], [hardcode_libdir_separator], [1],
6120
[Whether we need a single "-rpath" flag with a separated argument])
6121
_LT_TAGDECL([], [hardcode_direct], [0],
6122
[Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
6123
DIR into the resulting binary])
6124
_LT_TAGDECL([], [hardcode_direct_absolute], [0],
6125
[Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
6126
DIR into the resulting binary and the resulting library dependency is
6127
"absolute", i.e impossible to change by setting ${shlibpath_var} if the
6128
library is relocated])
6129
_LT_TAGDECL([], [hardcode_minus_L], [0],
6130
[Set to "yes" if using the -LDIR flag during linking hardcodes DIR
6131
into the resulting binary])
6132
_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
6133
[Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
6134
into the resulting binary])
6135
_LT_TAGDECL([], [hardcode_automatic], [0],
6136
[Set to "yes" if building a shared library automatically hardcodes DIR
6137
into the library and all subsequent libraries and executables linked
6139
_LT_TAGDECL([], [inherit_rpath], [0],
6140
[Set to yes if linker adds runtime paths of dependent libraries
6141
to runtime path list])
6142
_LT_TAGDECL([], [link_all_deplibs], [0],
6143
[Whether libtool must link a program against all its dependency libraries])
6144
_LT_TAGDECL([], [fix_srcfile_path], [1],
6145
[Fix the shell variable $srcfile for the compiler])
6146
_LT_TAGDECL([], [always_export_symbols], [0],
6147
[Set to "yes" if exported symbols are required])
6148
_LT_TAGDECL([], [export_symbols_cmds], [2],
6149
[The commands to list exported symbols])
6150
_LT_TAGDECL([], [exclude_expsyms], [1],
6151
[Symbols that should not be listed in the preloaded symbols])
6152
_LT_TAGDECL([], [include_expsyms], [1],
6153
[Symbols that must always be exported])
6154
_LT_TAGDECL([], [prelink_cmds], [2],
6155
[Commands necessary for linking programs (against libraries) with templates])
6156
_LT_TAGDECL([], [file_list_spec], [1],
6157
[Specify filename containing input files])
6158
dnl FIXME: Not yet implemented
6159
dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
6160
dnl [Compiler flag to generate thread safe objects])
6161
])# _LT_LINKER_SHLIBS
6164
# _LT_LANG_C_CONFIG([TAG])
6165
# ------------------------
6166
# Ensure that the configuration variables for a C compiler are suitably
6167
# defined. These variables are subsequently used by _LT_CONFIG to write
6168
# the compiler configuration to `libtool'.
6169
m4_defun([_LT_LANG_C_CONFIG],
6170
[m4_require([_LT_DECL_EGREP])dnl
6174
# Source file extension for C test sources.
6177
# Object file extension for compiled C test sources.
6179
_LT_TAGVAR(objext, $1)=$objext
6181
# Code to be used in simple compile tests
6182
lt_simple_compile_test_code="int some_variable = 0;"
6184
# Code to be used in simple link tests
6185
lt_simple_link_test_code='int main(){return(0);}'
6188
# Save the default compiler, since it gets overwritten when the other
6189
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6190
compiler_DEFAULT=$CC
6192
# save warnings/boilerplate of simple test code
6193
_LT_COMPILER_BOILERPLATE
6194
_LT_LINKER_BOILERPLATE
6196
if test -n "$compiler"; then
6197
_LT_COMPILER_NO_RTTI($1)
6198
_LT_COMPILER_PIC($1)
6199
_LT_COMPILER_C_O($1)
6200
_LT_COMPILER_FILE_LOCKS($1)
6201
_LT_LINKER_SHLIBS($1)
6202
_LT_SYS_DYNAMIC_LINKER($1)
6203
_LT_LINKER_HARDCODE_LIBPATH($1)
6207
# Report which library types will actually be built
6208
AC_MSG_CHECKING([if libtool supports shared libraries])
6209
AC_MSG_RESULT([$can_build_shared])
6211
AC_MSG_CHECKING([whether to build shared libraries])
6212
test "$can_build_shared" = "no" && enable_shared=no
6214
# On AIX, shared libraries and static libraries use the same namespace, and
6215
# are all built from PIC.
6218
test "$enable_shared" = yes && enable_static=no
6219
if test -n "$RANLIB"; then
6220
archive_cmds="$archive_cmds~\$RANLIB \$lib"
6221
postinstall_cmds='$RANLIB $lib'
6226
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6227
test "$enable_shared" = yes && enable_static=no
6231
AC_MSG_RESULT([$enable_shared])
6233
AC_MSG_CHECKING([whether to build static libraries])
6234
# Make sure either enable_shared or enable_static is yes.
6235
test "$enable_shared" = yes || enable_static=yes
6236
AC_MSG_RESULT([$enable_static])
6242
])# _LT_LANG_C_CONFIG
6247
# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
6248
# compiler, we have our own version here.
6249
m4_defun([_LT_PROG_CXX],
6251
pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
6253
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6254
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6255
(test "X$CXX" != "Xg++"))) ; then
6258
_lt_caught_CXX_error=yes
6260
popdef([AC_MSG_ERROR])
6263
dnl aclocal-1.4 backwards compatibility:
6264
dnl AC_DEFUN([_LT_PROG_CXX], [])
6267
# _LT_LANG_CXX_CONFIG([TAG])
6268
# --------------------------
6269
# Ensure that the configuration variables for a C++ compiler are suitably
6270
# defined. These variables are subsequently used by _LT_CONFIG to write
6271
# the compiler configuration to `libtool'.
6272
m4_defun([_LT_LANG_CXX_CONFIG],
6273
[AC_REQUIRE([_LT_PROG_CXX])dnl
6274
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6275
m4_require([_LT_DECL_EGREP])dnl
6278
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6279
_LT_TAGVAR(allow_undefined_flag, $1)=
6280
_LT_TAGVAR(always_export_symbols, $1)=no
6281
_LT_TAGVAR(archive_expsym_cmds, $1)=
6282
_LT_TAGVAR(compiler_needs_object, $1)=no
6283
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
6284
_LT_TAGVAR(hardcode_direct, $1)=no
6285
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
6286
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6287
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6288
_LT_TAGVAR(hardcode_libdir_separator, $1)=
6289
_LT_TAGVAR(hardcode_minus_L, $1)=no
6290
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6291
_LT_TAGVAR(hardcode_automatic, $1)=no
6292
_LT_TAGVAR(inherit_rpath, $1)=no
6293
_LT_TAGVAR(module_cmds, $1)=
6294
_LT_TAGVAR(module_expsym_cmds, $1)=
6295
_LT_TAGVAR(link_all_deplibs, $1)=unknown
6296
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6297
_LT_TAGVAR(no_undefined_flag, $1)=
6298
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6299
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6301
# Source file extension for C++ test sources.
6304
# Object file extension for compiled C++ test sources.
6306
_LT_TAGVAR(objext, $1)=$objext
6308
# No sense in running all these tests if we already determined that
6309
# the CXX compiler isn't working. Some variables (like enable_shared)
6310
# are currently assumed to apply to all compilers on this platform,
6311
# and will be corrupted by setting them based on a non-working compiler.
6312
if test "$_lt_caught_CXX_error" != yes; then
6313
# Code to be used in simple compile tests
6314
lt_simple_compile_test_code="int some_variable = 0;"
6316
# Code to be used in simple link tests
6317
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
6319
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
6322
# save warnings/boilerplate of simple test code
6323
_LT_COMPILER_BOILERPLATE
6324
_LT_LINKER_BOILERPLATE
6326
# Allow CC to be a program name with arguments.
6331
lt_save_with_gnu_ld=$with_gnu_ld
6332
lt_save_path_LD=$lt_cv_path_LD
6333
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
6334
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
6336
$as_unset lt_cv_prog_gnu_ld
6338
if test -n "${lt_cv_path_LDCXX+set}"; then
6339
lt_cv_path_LD=$lt_cv_path_LDCXX
6341
$as_unset lt_cv_path_LD
6343
test -z "${LDCXX+set}" || LD=$LDCXX
6346
_LT_TAGVAR(compiler, $1)=$CC
6347
_LT_CC_BASENAME([$compiler])
6349
if test -n "$compiler"; then
6350
# We don't want -fno-exception when compiling C++ code, so set the
6351
# no_builtin_flag separately
6352
if test "$GXX" = yes; then
6353
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
6355
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
6358
if test "$GXX" = yes; then
6359
# Set up default GNU C++ configuration
6363
# Check if GNU C++ uses GNU ld as the underlying linker, since the
6364
# archiving commands below assume that GNU ld is being used.
6365
if test "$with_gnu_ld" = yes; then
6366
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6367
_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'
6369
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6370
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6372
# If archive_cmds runs LD, not CC, wlarc should be empty
6373
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
6374
# investigate it a little bit more. (MM)
6377
# ancient GNU ld didn't support --whole-archive et. al.
6378
if eval "`$CC -print-prog-name=ld` --help 2>&1" |
6379
$GREP 'no-whole-archive' > /dev/null; then
6380
_LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6382
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6388
# A generic and very simple default shared library creation
6389
# command for GNU C++ for the case where it uses the native
6390
# linker, instead of GNU ld. If possible, this setting should
6391
# overridden to take advantage of the native linker features on
6392
# the platform it is being used on.
6393
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6396
# Commands to make compiler produce verbose output that lists
6397
# what "hidden" libraries, object files and flags are used when
6398
# linking a shared library.
6399
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6407
# PORTME: fill in a description of your system's C++ link characteristics
6408
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
6409
_LT_TAGVAR(ld_shlibs, $1)=yes
6412
# FIXME: insert proper C++ library support
6413
_LT_TAGVAR(ld_shlibs, $1)=no
6416
if test "$host_cpu" = ia64; then
6417
# On IA64, the linker does run time linking by default, so we don't
6418
# have to do anything special.
6419
aix_use_runtimelinking=no
6420
exp_sym_flag='-Bexport'
6423
aix_use_runtimelinking=no
6425
# Test if we are trying to use run time linking or normal
6426
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
6427
# need to do runtime linking.
6428
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
6429
for ld_flag in $LDFLAGS; do
6432
aix_use_runtimelinking=yes
6440
exp_sym_flag='-bexport'
6441
no_entry_flag='-bnoentry'
6444
# When large executables or shared objects are built, AIX ld can
6445
# have problems creating the table of contents. If linking a library
6446
# or program results in "error TOC overflow" add -mminimal-toc to
6447
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6448
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6450
_LT_TAGVAR(archive_cmds, $1)=''
6451
_LT_TAGVAR(hardcode_direct, $1)=yes
6452
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6453
_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6454
_LT_TAGVAR(link_all_deplibs, $1)=yes
6455
_LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
6457
if test "$GXX" = yes; then
6458
case $host_os in aix4.[[012]]|aix4.[[012]].*)
6459
# We only want to do this on AIX 4.2 and lower, the check
6460
# below for broken collect2 doesn't work under 4.3+
6461
collect2name=`${CC} -print-prog-name=collect2`
6462
if test -f "$collect2name" &&
6463
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
6465
# We have reworked collect2
6468
# We have old collect2
6469
_LT_TAGVAR(hardcode_direct, $1)=unsupported
6470
# It fails to find uninstalled libraries when the uninstalled
6471
# path is not listed in the libpath. Setting hardcode_minus_L
6472
# to unsupported forces relinking
6473
_LT_TAGVAR(hardcode_minus_L, $1)=yes
6474
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6475
_LT_TAGVAR(hardcode_libdir_separator, $1)=
6478
shared_flag='-shared'
6479
if test "$aix_use_runtimelinking" = yes; then
6480
shared_flag="$shared_flag "'${wl}-G'
6484
if test "$host_cpu" = ia64; then
6485
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6486
# chokes on -Wl,-G. The following line is correct:
6489
if test "$aix_use_runtimelinking" = yes; then
6490
shared_flag='${wl}-G'
6492
shared_flag='${wl}-bM:SRE'
6497
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
6498
# It seems that -bexpall does not export symbols beginning with
6499
# underscore (_), so it is better to generate a list of symbols to
6501
_LT_TAGVAR(always_export_symbols, $1)=yes
6502
if test "$aix_use_runtimelinking" = yes; then
6503
# Warning - without using the other runtime loading flags (-brtl),
6504
# -berok will link without error, but may produce a broken library.
6505
_LT_TAGVAR(allow_undefined_flag, $1)='-berok'
6506
# Determine the default libpath from the value encoded in an empty
6508
_LT_SYS_MODULE_PATH_AIX
6509
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6511
_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"
6513
if test "$host_cpu" = ia64; then
6514
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6515
_LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6516
_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"
6518
# Determine the default libpath from the value encoded in an
6520
_LT_SYS_MODULE_PATH_AIX
6521
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6522
# Warning - without using the other run time loading flags,
6523
# -berok will link without error, but may produce a broken library.
6524
_LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6525
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6526
# Exported symbols can be pulled into shared objects from archives
6527
_LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6528
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6529
# This is similar to how AIX traditionally builds its shared
6531
_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'
6537
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6538
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6539
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6540
# support --undefined. This deserves some investigation. FIXME
6541
_LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6543
_LT_TAGVAR(ld_shlibs, $1)=no
6548
case $cc_basename in
6550
# FIXME: insert proper C++ library support
6551
_LT_TAGVAR(ld_shlibs, $1)=no
6556
cygwin* | mingw* | pw32* | cegcc*)
6557
# _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6558
# as there is no search path for DLLs.
6559
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6560
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6561
_LT_TAGVAR(always_export_symbols, $1)=no
6562
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6564
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6565
_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'
6566
# If the export-symbols file already is a .def file (1st line
6567
# is EXPORTS), use it as is; otherwise, prepend...
6568
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6569
cp $export_symbols $output_objdir/$soname.def;
6571
echo EXPORTS > $output_objdir/$soname.def;
6572
cat $export_symbols >> $output_objdir/$soname.def;
6574
$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'
6576
_LT_TAGVAR(ld_shlibs, $1)=no
6579
darwin* | rhapsody*)
6580
_LT_DARWIN_LINKER_FEATURES($1)
6584
case $cc_basename in
6586
# FIXME: insert proper C++ library support
6587
_LT_TAGVAR(ld_shlibs, $1)=no
6590
# Green Hills C++ Compiler
6591
# FIXME: insert proper C++ library support
6592
_LT_TAGVAR(ld_shlibs, $1)=no
6595
# FIXME: insert proper C++ library support
6596
_LT_TAGVAR(ld_shlibs, $1)=no
6602
# C++ shared libraries reported to be fairly broken before
6604
_LT_TAGVAR(ld_shlibs, $1)=no
6608
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6611
freebsd* | dragonfly*)
6612
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
6614
_LT_TAGVAR(ld_shlibs, $1)=yes
6621
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6622
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6623
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6624
_LT_TAGVAR(hardcode_direct, $1)=yes
6625
_LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6626
# but as the default
6627
# location of the library.
6629
case $cc_basename in
6631
# FIXME: insert proper C++ library support
6632
_LT_TAGVAR(ld_shlibs, $1)=no
6635
_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'
6636
# Commands to make compiler produce verbose output that lists
6637
# what "hidden" libraries, object files and flags are used when
6638
# linking a shared library.
6640
# There doesn't appear to be a way to prevent this compiler from
6641
# explicitly linking system object files so we need to strip them
6642
# from the output so that they don't get included in the library
6644
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'
6647
if test "$GXX" = yes; then
6648
_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'
6650
# FIXME: insert proper C++ library support
6651
_LT_TAGVAR(ld_shlibs, $1)=no
6658
if test $with_gnu_ld = no; then
6659
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6660
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6666
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6672
_LT_TAGVAR(hardcode_direct, $1)=no
6673
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6676
_LT_TAGVAR(hardcode_direct, $1)=yes
6677
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6678
_LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6679
# but as the default
6680
# location of the library.
6684
case $cc_basename in
6686
# FIXME: insert proper C++ library support
6687
_LT_TAGVAR(ld_shlibs, $1)=no
6692
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6695
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6698
_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'
6701
# Commands to make compiler produce verbose output that lists
6702
# what "hidden" libraries, object files and flags are used when
6703
# linking a shared library.
6705
# There doesn't appear to be a way to prevent this compiler from
6706
# explicitly linking system object files so we need to strip them
6707
# from the output so that they don't get included in the library
6709
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'
6712
if test "$GXX" = yes; then
6713
if test $with_gnu_ld = no; then
6716
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6719
_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'
6722
_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'
6727
# FIXME: insert proper C++ library support
6728
_LT_TAGVAR(ld_shlibs, $1)=no
6735
_LT_TAGVAR(hardcode_direct, $1)=no
6736
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6737
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6738
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6739
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6740
# Instead, shared libraries are loaded at an image base (0x10000000 by
6741
# default) and relocated if they conflict, which is a slow very memory
6742
# consuming and fragmenting process. To avoid this, we pick a random,
6743
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6744
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
6745
_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'
6746
_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'
6749
case $cc_basename in
6752
_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'
6754
# Archives containing C++ object files must be created using
6755
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
6756
# necessary to make sure instantiated templates are included
6758
_LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
6761
if test "$GXX" = yes; then
6762
if test "$with_gnu_ld" = no; then
6763
_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'
6765
_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'
6768
_LT_TAGVAR(link_all_deplibs, $1)=yes
6771
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6772
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6773
_LT_TAGVAR(inherit_rpath, $1)=yes
6776
linux* | k*bsd*-gnu)
6777
case $cc_basename in
6779
# Kuck and Associates, Inc. (KAI) C++ Compiler
6781
# KCC will only create a shared library if the output file
6782
# ends with ".so" (or ".sl" for HP-UX), so rename the library
6783
# to its proper name (with version) after linking.
6784
_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'
6785
_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'
6786
# Commands to make compiler produce verbose output that lists
6787
# what "hidden" libraries, object files and flags are used when
6788
# linking a shared library.
6790
# There doesn't appear to be a way to prevent this compiler from
6791
# explicitly linking system object files so we need to strip them
6792
# from the output so that they don't get included in the library
6794
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'
6796
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6797
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6799
# Archives containing C++ object files must be created using
6800
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
6801
_LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
6806
# version 8.0 and above of icpc choke on multiply defined symbols
6807
# if we add $predep_objects and $postdep_objects, however 7.1 and
6808
# earlier do not add the objects themselves.
6809
case `$CC -V 2>&1` in
6811
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6812
_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'
6814
*) # Version 8.0 or newer
6817
ia64*) tmp_idyn=' -i_dynamic';;
6819
_LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6820
_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'
6823
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6824
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6825
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6826
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6829
# Portland Group C++ compiler
6831
*pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
6832
_LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
6834
$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
6835
compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
6836
_LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
6838
$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
6839
$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
6841
_LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
6843
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6844
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6845
_LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
6847
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6848
$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'
6850
*) # Version 6 will use weak symbols
6851
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6852
_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'
6856
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6857
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6858
_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'
6862
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6863
_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'
6865
runpath_var=LD_RUN_PATH
6866
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6867
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6869
# Commands to make compiler produce verbose output that lists
6870
# what "hidden" libraries, object files and flags are used when
6871
# linking a shared library.
6873
# There doesn't appear to be a way to prevent this compiler from
6874
# explicitly linking system object files so we need to strip them
6875
# from the output so that they don't get included in the library
6877
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'
6880
# IBM XL 8.0 on PPC, with GNU ld
6881
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6882
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6883
_LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6884
if test "x$supports_anon_versioning" = xyes; then
6885
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
6886
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6887
echo "local: *; };" >> $output_objdir/$libname.ver~
6888
$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6892
case `$CC -V 2>&1 | sed 5q` in
6895
_LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6896
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6897
_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'
6898
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6899
_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'
6900
_LT_TAGVAR(compiler_needs_object, $1)=yes
6902
# Not sure whether something based on
6903
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
6905
output_verbose_link_cmd='echo'
6907
# Archives containing C++ object files must be created using
6908
# "CC -xar", where "CC" is the Sun C++ compiler. This is
6909
# necessary to make sure instantiated templates are included
6911
_LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6919
# FIXME: insert proper C++ library support
6920
_LT_TAGVAR(ld_shlibs, $1)=no
6924
# FIXME: insert proper C++ library support
6925
_LT_TAGVAR(ld_shlibs, $1)=no
6929
case $cc_basename in
6931
# FIXME: insert proper C++ library support
6932
_LT_TAGVAR(ld_shlibs, $1)=no
6935
# FIXME: insert proper C++ library support
6936
_LT_TAGVAR(ld_shlibs, $1)=no
6942
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6943
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
6945
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6946
_LT_TAGVAR(hardcode_direct, $1)=yes
6947
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6949
# Workaround some broken pre-1.5 toolchains
6950
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
6954
_LT_TAGVAR(ld_shlibs, $1)=yes
6958
# C++ shared libraries are fairly broken
6959
_LT_TAGVAR(ld_shlibs, $1)=no
6963
if test -f /usr/libexec/ld.so; then
6964
_LT_TAGVAR(hardcode_direct, $1)=yes
6965
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6966
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6967
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6968
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6969
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6970
_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'
6971
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6972
_LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6974
output_verbose_link_cmd=echo
6976
_LT_TAGVAR(ld_shlibs, $1)=no
6980
osf3* | osf4* | osf5*)
6981
case $cc_basename in
6983
# Kuck and Associates, Inc. (KAI) C++ Compiler
6985
# KCC will only create a shared library if the output file
6986
# ends with ".so" (or ".sl" for HP-UX), so rename the library
6987
# to its proper name (with version) after linking.
6988
_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'
6990
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6991
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6993
# Archives containing C++ object files must be created using
6994
# the KAI C++ compiler.
6996
osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
6997
*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
7001
# Rational C++ 2.4.1
7002
# FIXME: insert proper C++ library support
7003
_LT_TAGVAR(ld_shlibs, $1)=no
7008
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7009
_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'
7010
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7013
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
7014
_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'
7015
_LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
7016
echo "-hidden">> $lib.exp~
7017
$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~
7019
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
7023
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
7025
# Commands to make compiler produce verbose output that lists
7026
# what "hidden" libraries, object files and flags are used when
7027
# linking a shared library.
7029
# There doesn't appear to be a way to prevent this compiler from
7030
# explicitly linking system object files so we need to strip them
7031
# from the output so that they don't get included in the library
7033
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'
7036
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
7037
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7040
_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'
7043
_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'
7047
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7048
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
7050
# Commands to make compiler produce verbose output that lists
7051
# what "hidden" libraries, object files and flags are used when
7052
# linking a shared library.
7053
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
7056
# FIXME: insert proper C++ library support
7057
_LT_TAGVAR(ld_shlibs, $1)=no
7064
# FIXME: insert proper C++ library support
7065
_LT_TAGVAR(ld_shlibs, $1)=no
7069
case $cc_basename in
7072
# FIXME: insert proper C++ library support
7073
_LT_TAGVAR(ld_shlibs, $1)=no
7077
# FIXME: insert proper C++ library support
7078
_LT_TAGVAR(ld_shlibs, $1)=no
7081
# FIXME: insert proper C++ library support
7082
_LT_TAGVAR(ld_shlibs, $1)=no
7088
case $cc_basename in
7090
# Sun C++ 4.2, 5.x and Centerline C++
7091
_LT_TAGVAR(archive_cmds_need_lc,$1)=yes
7092
_LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
7093
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7094
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7095
$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'
7097
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7098
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7100
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7102
# The compiler driver will combine and reorder linker options,
7103
# but understands `-z linker_flag'.
7104
# Supported since Solaris 2.6 (maybe 2.5.1?)
7105
_LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
7108
_LT_TAGVAR(link_all_deplibs, $1)=yes
7110
output_verbose_link_cmd='echo'
7112
# Archives containing C++ object files must be created using
7113
# "CC -xar", where "CC" is the Sun C++ compiler. This is
7114
# necessary to make sure instantiated templates are included
7116
_LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
7119
# Green Hills C++ Compiler
7120
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
7122
# The C++ compiler must be used to create the archive.
7123
_LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
7126
# GNU C++ compiler with Solaris linker
7127
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
7128
_LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
7129
if $CC --version | $GREP -v '^2\.7' > /dev/null; then
7130
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
7131
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7132
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
7134
# Commands to make compiler produce verbose output that lists
7135
# what "hidden" libraries, object files and flags are used when
7136
# linking a shared library.
7137
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
7139
# g++ 2.7 appears to require `-G' NOT `-shared' on this
7141
_LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
7142
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7143
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
7145
# Commands to make compiler produce verbose output that lists
7146
# what "hidden" libraries, object files and flags are used when
7147
# linking a shared library.
7148
output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
7151
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
7153
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7155
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7163
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
7164
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7165
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7166
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7167
runpath_var='LD_RUN_PATH'
7169
case $cc_basename in
7171
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7172
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7175
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7176
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7181
sysv5* | sco3.2v5* | sco5v6*)
7182
# Note: We can NOT use -z defs as we might desire, because we do not
7183
# link with -lc, and that would cause any symbols used from libc to
7184
# always be unresolved, which means just about no library would
7185
# ever link correctly. If we're not using GNU ld we use -z text
7186
# though, which does catch some bad symbols but isn't as heavy-handed
7188
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7189
_LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
7190
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7191
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7192
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
7193
_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
7194
_LT_TAGVAR(link_all_deplibs, $1)=yes
7195
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
7196
runpath_var='LD_RUN_PATH'
7198
case $cc_basename in
7200
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7201
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7204
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7205
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7211
case $cc_basename in
7213
# NonStop-UX NCC 3.20
7214
# FIXME: insert proper C++ library support
7215
_LT_TAGVAR(ld_shlibs, $1)=no
7218
# FIXME: insert proper C++ library support
7219
_LT_TAGVAR(ld_shlibs, $1)=no
7225
# FIXME: insert proper C++ library support
7226
_LT_TAGVAR(ld_shlibs, $1)=no
7230
# FIXME: insert proper C++ library support
7231
_LT_TAGVAR(ld_shlibs, $1)=no
7235
AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
7236
test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
7238
_LT_TAGVAR(GCC, $1)="$GXX"
7239
_LT_TAGVAR(LD, $1)="$LD"
7242
## There is no encapsulation within the following macros, do not change
7243
## the running order or otherwise move them around unless you know exactly
7244
## what you are doing...
7245
_LT_SYS_HIDDEN_LIBDEPS($1)
7246
_LT_COMPILER_PIC($1)
7247
_LT_COMPILER_C_O($1)
7248
_LT_COMPILER_FILE_LOCKS($1)
7249
_LT_LINKER_SHLIBS($1)
7250
_LT_SYS_DYNAMIC_LINKER($1)
7251
_LT_LINKER_HARDCODE_LIBPATH($1)
7254
fi # test -n "$compiler"
7260
with_gnu_ld=$lt_save_with_gnu_ld
7261
lt_cv_path_LDCXX=$lt_cv_path_LD
7262
lt_cv_path_LD=$lt_save_path_LD
7263
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
7264
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
7265
fi # test "$_lt_caught_CXX_error" != yes
7268
])# _LT_LANG_CXX_CONFIG
7271
# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
7349
])# AC_LIBTOOL_PROG_LD_SHLIBS
7352
# _LT_AC_FILE_LTDLL_C
7353
# -------------------
7354
# Be careful that the start marker always follows a newline.
7355
AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
7356
# /* ltdll.c starts here */
7357
# #define WIN32_LEAN_AND_MEAN
7358
# #include <windows.h>
7359
# #undef WIN32_LEAN_AND_MEAN
7360
# #include <stdio.h>
7362
# #ifndef __CYGWIN__
7363
# # ifdef __CYGWIN32__
7364
# # define __CYGWIN__ __CYGWIN32__
7368
# #ifdef __cplusplus
7371
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7372
# #ifdef __cplusplus
7377
# #include <cygwin/cygwin_dll.h>
7378
# DECLARE_CYGWIN_DLL( DllMain );
7380
# HINSTANCE __hDllInstance_base;
7383
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7385
# __hDllInstance_base = hInst;
7388
# /* ltdll.c ends here */
7389
])# _LT_AC_FILE_LTDLL_C
7392
# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
7272
7393
# ---------------------------------
7273
# Figure out "hidden" library dependencies from verbose
7274
# compiler output when linking a shared library.
7275
# Parse the compiler output and extract the necessary
7276
# objects, libraries and library flags.
7277
m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
7278
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
7279
# Dependencies to place before and after the object being linked:
7280
_LT_TAGVAR(predep_objects, $1)=
7281
_LT_TAGVAR(postdep_objects, $1)=
7282
_LT_TAGVAR(predeps, $1)=
7283
_LT_TAGVAR(postdeps, $1)=
7284
_LT_TAGVAR(compiler_lib_search_path, $1)=
7286
dnl we can't use the lt_simple_compile_test_code here,
7287
dnl because it contains code intended for an executable,
7288
dnl not a library. It's possible we should let each
7289
dnl tag define a new lt_????_link_test_code variable,
7290
dnl but it's only used here...
7291
m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
7293
void foo (void) { a = 0; }
7295
], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
7299
Foo (void) { a = 0; }
7304
], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
7312
], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
7320
], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
7323
public void bar (void) {
7329
dnl Parse the compiler output and extract the necessary
7330
dnl objects, libraries and library flags.
7331
if AC_TRY_EVAL(ac_compile); then
7332
# Parse the compiler output and extract the necessary
7333
# objects, libraries and library flags.
7335
# Sentinel used to keep track of whether or not we are before
7336
# the conftest object file.
7337
pre_test_object_deps_done=no
7339
for p in `eval "$output_verbose_link_cmd"`; do
7343
# Some compilers place space between "-{L,R}" and the path.
7345
if test $p = "-L" ||
7346
test $p = "-R"; then
7353
if test "$pre_test_object_deps_done" = no; then
7356
# Internal compiler library paths should come after those
7357
# provided the user. The postdeps already come after the
7358
# user supplied libs so there is no need to process them.
7359
if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
7360
_LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
7362
_LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
7365
# The "-l" case would never come before the object being
7366
# linked, so don't bother handling this case.
7369
if test -z "$_LT_TAGVAR(postdeps, $1)"; then
7370
_LT_TAGVAR(postdeps, $1)="${prev}${p}"
7372
_LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
7378
# This assumes that the test object file only shows up
7379
# once in the compiler output.
7380
if test "$p" = "conftest.$objext"; then
7381
pre_test_object_deps_done=yes
7385
if test "$pre_test_object_deps_done" = no; then
7386
if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
7387
_LT_TAGVAR(predep_objects, $1)="$p"
7389
_LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
7392
if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
7393
_LT_TAGVAR(postdep_objects, $1)="$p"
7395
_LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
7400
*) ;; # Ignore the rest.
7408
echo "libtool.m4: error: problem compiling $1 test program"
7411
$RM -f confest.$objext
7413
# PORTME: override above test on systems where it is broken
7417
# Interix 3.5 installs completely hosed .la files for C++, so rather than
7418
# hack all around it, let's just trust "g++" to DTRT.
7419
_LT_TAGVAR(predep_objects,$1)=
7420
_LT_TAGVAR(postdep_objects,$1)=
7421
_LT_TAGVAR(postdeps,$1)=
7425
case `$CC -V 2>&1 | sed 5q` in
7429
# The more standards-conforming stlport4 library is
7430
# incompatible with the Cstd library. Avoid specifying
7431
# it if it's in CXXFLAGS. Ignore libCrun as
7432
# -library=stlport4 depends on it.
7433
case " $CXX $CXXFLAGS " in
7434
*" -library=stlport4 "*)
7435
solaris_use_stlport4=yes
7439
if test "$solaris_use_stlport4" != yes; then
7440
_LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7447
case $cc_basename in
7449
# The more standards-conforming stlport4 library is
7450
# incompatible with the Cstd library. Avoid specifying
7451
# it if it's in CXXFLAGS. Ignore libCrun as
7452
# -library=stlport4 depends on it.
7453
case " $CXX $CXXFLAGS " in
7454
*" -library=stlport4 "*)
7455
solaris_use_stlport4=yes
7459
# Adding this requires a known-good setup of shared libraries for
7460
# Sun compiler versions before 5.6, else PIC objects from an old
7461
# archive will be linked into the output, leading to subtle bugs.
7462
if test "$solaris_use_stlport4" != yes; then
7463
_LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7471
case " $_LT_TAGVAR(postdeps, $1) " in
7472
*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
7474
_LT_TAGVAR(compiler_lib_search_dirs, $1)=
7475
if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
7476
_LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
7478
_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
7479
[The directories searched by this compiler when creating a shared library])
7480
_LT_TAGDECL([], [predep_objects], [1],
7481
[Dependencies to place before and after the objects being linked to
7482
create a shared library])
7483
_LT_TAGDECL([], [postdep_objects], [1])
7484
_LT_TAGDECL([], [predeps], [1])
7485
_LT_TAGDECL([], [postdeps], [1])
7486
_LT_TAGDECL([], [compiler_lib_search_path], [1],
7487
[The library search path used internally by the compiler when linking
7489
])# _LT_SYS_HIDDEN_LIBDEPS
7494
# Since AC_PROG_F77 is broken, in that it returns the empty string
7495
# if there is no fortran compiler, we have our own version here.
7496
m4_defun([_LT_PROG_F77],
7498
pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
7500
if test -z "$F77" || test "X$F77" = "Xno"; then
7503
popdef([AC_MSG_ERROR])
7506
dnl aclocal-1.4 backwards compatibility:
7507
dnl AC_DEFUN([_LT_PROG_F77], [])
7510
# _LT_LANG_F77_CONFIG([TAG])
7511
# --------------------------
7512
# Ensure that the configuration variables for a Fortran 77 compiler are
7513
# suitably defined. These variables are subsequently used by _LT_CONFIG
7514
# to write the compiler configuration to `libtool'.
7515
m4_defun([_LT_LANG_F77_CONFIG],
7516
[AC_REQUIRE([_LT_PROG_F77])dnl
7517
AC_LANG_PUSH(Fortran 77)
7519
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7520
_LT_TAGVAR(allow_undefined_flag, $1)=
7521
_LT_TAGVAR(always_export_symbols, $1)=no
7522
_LT_TAGVAR(archive_expsym_cmds, $1)=
7523
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
7524
_LT_TAGVAR(hardcode_direct, $1)=no
7525
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
7526
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7527
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7528
_LT_TAGVAR(hardcode_libdir_separator, $1)=
7529
_LT_TAGVAR(hardcode_minus_L, $1)=no
7530
_LT_TAGVAR(hardcode_automatic, $1)=no
7531
_LT_TAGVAR(inherit_rpath, $1)=no
7532
_LT_TAGVAR(module_cmds, $1)=
7533
_LT_TAGVAR(module_expsym_cmds, $1)=
7534
_LT_TAGVAR(link_all_deplibs, $1)=unknown
7535
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7536
_LT_TAGVAR(no_undefined_flag, $1)=
7537
_LT_TAGVAR(whole_archive_flag_spec, $1)=
7538
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7540
# Source file extension for f77 test sources.
7543
# Object file extension for compiled f77 test sources.
7545
_LT_TAGVAR(objext, $1)=$objext
7547
# No sense in running all these tests if we already determined that
7548
# the F77 compiler isn't working. Some variables (like enable_shared)
7549
# are currently assumed to apply to all compilers on this platform,
7550
# and will be corrupted by setting them based on a non-working compiler.
7551
if test "$_lt_disable_F77" != yes; then
7552
# Code to be used in simple compile tests
7553
lt_simple_compile_test_code="\
7559
# Code to be used in simple link tests
7560
lt_simple_link_test_code="\
7565
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7568
# save warnings/boilerplate of simple test code
7569
_LT_COMPILER_BOILERPLATE
7570
_LT_LINKER_BOILERPLATE
7572
# Allow CC to be a program name with arguments.
7577
_LT_TAGVAR(compiler, $1)=$CC
7578
_LT_CC_BASENAME([$compiler])
7580
if test -n "$compiler"; then
7581
AC_MSG_CHECKING([if libtool supports shared libraries])
7582
AC_MSG_RESULT([$can_build_shared])
7584
AC_MSG_CHECKING([whether to build shared libraries])
7585
test "$can_build_shared" = "no" && enable_shared=no
7587
# On AIX, shared libraries and static libraries use the same namespace, and
7588
# are all built from PIC.
7591
test "$enable_shared" = yes && enable_static=no
7592
if test -n "$RANLIB"; then
7593
archive_cmds="$archive_cmds~\$RANLIB \$lib"
7594
postinstall_cmds='$RANLIB $lib'
7598
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7599
test "$enable_shared" = yes && enable_static=no
7603
AC_MSG_RESULT([$enable_shared])
7605
AC_MSG_CHECKING([whether to build static libraries])
7606
# Make sure either enable_shared or enable_static is yes.
7607
test "$enable_shared" = yes || enable_static=yes
7608
AC_MSG_RESULT([$enable_static])
7610
_LT_TAGVAR(GCC, $1)="$G77"
7611
_LT_TAGVAR(LD, $1)="$LD"
7614
## There is no encapsulation within the following macros, do not change
7615
## the running order or otherwise move them around unless you know exactly
7616
## what you are doing...
7617
_LT_COMPILER_PIC($1)
7618
_LT_COMPILER_C_O($1)
7619
_LT_COMPILER_FILE_LOCKS($1)
7620
_LT_LINKER_SHLIBS($1)
7621
_LT_SYS_DYNAMIC_LINKER($1)
7622
_LT_LINKER_HARDCODE_LIBPATH($1)
7625
fi # test -n "$compiler"
7629
fi # test "$_lt_disable_F77" != yes
7632
])# _LT_LANG_F77_CONFIG
7637
# Since AC_PROG_FC is broken, in that it returns the empty string
7638
# if there is no fortran compiler, we have our own version here.
7639
m4_defun([_LT_PROG_FC],
7641
pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
7643
if test -z "$FC" || test "X$FC" = "Xno"; then
7646
popdef([AC_MSG_ERROR])
7649
dnl aclocal-1.4 backwards compatibility:
7650
dnl AC_DEFUN([_LT_PROG_FC], [])
7653
# _LT_LANG_FC_CONFIG([TAG])
7654
# -------------------------
7655
# Ensure that the configuration variables for a Fortran compiler are
7656
# suitably defined. These variables are subsequently used by _LT_CONFIG
7657
# to write the compiler configuration to `libtool'.
7658
m4_defun([_LT_LANG_FC_CONFIG],
7659
[AC_REQUIRE([_LT_PROG_FC])dnl
7660
AC_LANG_PUSH(Fortran)
7662
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7663
_LT_TAGVAR(allow_undefined_flag, $1)=
7664
_LT_TAGVAR(always_export_symbols, $1)=no
7665
_LT_TAGVAR(archive_expsym_cmds, $1)=
7666
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
7667
_LT_TAGVAR(hardcode_direct, $1)=no
7668
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
7669
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7670
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7671
_LT_TAGVAR(hardcode_libdir_separator, $1)=
7672
_LT_TAGVAR(hardcode_minus_L, $1)=no
7673
_LT_TAGVAR(hardcode_automatic, $1)=no
7674
_LT_TAGVAR(inherit_rpath, $1)=no
7675
_LT_TAGVAR(module_cmds, $1)=
7676
_LT_TAGVAR(module_expsym_cmds, $1)=
7677
_LT_TAGVAR(link_all_deplibs, $1)=unknown
7678
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7679
_LT_TAGVAR(no_undefined_flag, $1)=
7680
_LT_TAGVAR(whole_archive_flag_spec, $1)=
7681
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7683
# Source file extension for fc test sources.
7684
ac_ext=${ac_fc_srcext-f}
7686
# Object file extension for compiled fc test sources.
7688
_LT_TAGVAR(objext, $1)=$objext
7690
# No sense in running all these tests if we already determined that
7691
# the FC compiler isn't working. Some variables (like enable_shared)
7692
# are currently assumed to apply to all compilers on this platform,
7693
# and will be corrupted by setting them based on a non-working compiler.
7694
if test "$_lt_disable_FC" != yes; then
7695
# Code to be used in simple compile tests
7696
lt_simple_compile_test_code="\
7702
# Code to be used in simple link tests
7703
lt_simple_link_test_code="\
7708
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7711
# save warnings/boilerplate of simple test code
7712
_LT_COMPILER_BOILERPLATE
7713
_LT_LINKER_BOILERPLATE
7715
# Allow CC to be a program name with arguments.
7720
GCC=$ac_cv_fc_compiler_gnu
7722
_LT_TAGVAR(compiler, $1)=$CC
7723
_LT_CC_BASENAME([$compiler])
7725
if test -n "$compiler"; then
7726
AC_MSG_CHECKING([if libtool supports shared libraries])
7727
AC_MSG_RESULT([$can_build_shared])
7729
AC_MSG_CHECKING([whether to build shared libraries])
7730
test "$can_build_shared" = "no" && enable_shared=no
7732
# On AIX, shared libraries and static libraries use the same namespace, and
7733
# are all built from PIC.
7736
test "$enable_shared" = yes && enable_static=no
7737
if test -n "$RANLIB"; then
7738
archive_cmds="$archive_cmds~\$RANLIB \$lib"
7739
postinstall_cmds='$RANLIB $lib'
7743
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7744
test "$enable_shared" = yes && enable_static=no
7748
AC_MSG_RESULT([$enable_shared])
7750
AC_MSG_CHECKING([whether to build static libraries])
7751
# Make sure either enable_shared or enable_static is yes.
7752
test "$enable_shared" = yes || enable_static=yes
7753
AC_MSG_RESULT([$enable_static])
7755
_LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
7756
_LT_TAGVAR(LD, $1)="$LD"
7759
## There is no encapsulation within the following macros, do not change
7760
## the running order or otherwise move them around unless you know exactly
7761
## what you are doing...
7762
_LT_SYS_HIDDEN_LIBDEPS($1)
7763
_LT_COMPILER_PIC($1)
7764
_LT_COMPILER_C_O($1)
7765
_LT_COMPILER_FILE_LOCKS($1)
7766
_LT_LINKER_SHLIBS($1)
7767
_LT_SYS_DYNAMIC_LINKER($1)
7768
_LT_LINKER_HARDCODE_LIBPATH($1)
7771
fi # test -n "$compiler"
7775
fi # test "$_lt_disable_FC" != yes
7778
])# _LT_LANG_FC_CONFIG
7781
# _LT_LANG_GCJ_CONFIG([TAG])
7782
# --------------------------
7783
# Ensure that the configuration variables for the GNU Java Compiler compiler
7784
# are suitably defined. These variables are subsequently used by _LT_CONFIG
7785
# to write the compiler configuration to `libtool'.
7786
m4_defun([_LT_LANG_GCJ_CONFIG],
7787
[AC_REQUIRE([LT_PROG_GCJ])dnl
7790
# Source file extension for Java test sources.
7793
# Object file extension for compiled Java test sources.
7795
_LT_TAGVAR(objext, $1)=$objext
7797
# Code to be used in simple compile tests
7798
lt_simple_compile_test_code="class foo {}"
7800
# Code to be used in simple link tests
7801
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
7803
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7806
# save warnings/boilerplate of simple test code
7807
_LT_COMPILER_BOILERPLATE
7808
_LT_LINKER_BOILERPLATE
7810
# Allow CC to be a program name with arguments.
7816
_LT_TAGVAR(compiler, $1)=$CC
7817
_LT_TAGVAR(LD, $1)="$LD"
7818
_LT_CC_BASENAME([$compiler])
7820
# GCJ did not exist at the time GCC didn't implicitly link libc in.
7821
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7823
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7825
if test -n "$compiler"; then
7826
_LT_COMPILER_NO_RTTI($1)
7827
_LT_COMPILER_PIC($1)
7828
_LT_COMPILER_C_O($1)
7829
_LT_COMPILER_FILE_LOCKS($1)
7830
_LT_LINKER_SHLIBS($1)
7831
_LT_LINKER_HARDCODE_LIBPATH($1)
7840
])# _LT_LANG_GCJ_CONFIG
7843
# _LT_LANG_RC_CONFIG([TAG])
7844
# -------------------------
7845
# Ensure that the configuration variables for the Windows resource compiler
7846
# are suitably defined. These variables are subsequently used by _LT_CONFIG
7847
# to write the compiler configuration to `libtool'.
7848
m4_defun([_LT_LANG_RC_CONFIG],
7849
[AC_REQUIRE([LT_PROG_RC])dnl
7852
# Source file extension for RC test sources.
7855
# Object file extension for compiled RC test sources.
7857
_LT_TAGVAR(objext, $1)=$objext
7859
# Code to be used in simple compile tests
7860
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
7862
# Code to be used in simple link tests
7863
lt_simple_link_test_code="$lt_simple_compile_test_code"
7865
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7868
# save warnings/boilerplate of simple test code
7869
_LT_COMPILER_BOILERPLATE
7870
_LT_LINKER_BOILERPLATE
7872
# Allow CC to be a program name with arguments.
7878
_LT_TAGVAR(compiler, $1)=$CC
7879
_LT_CC_BASENAME([$compiler])
7880
_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
7882
if test -n "$compiler"; then
7890
])# _LT_LANG_RC_CONFIG
7895
AC_DEFUN([LT_PROG_GCJ],
7896
[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
7897
[m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
7898
[AC_CHECK_TOOL(GCJ, gcj,)
7899
test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
7900
AC_SUBST(GCJFLAGS)])])[]dnl
7904
AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
7905
dnl aclocal-1.4 backwards compatibility:
7906
dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
7911
AC_DEFUN([LT_PROG_RC],
7912
[AC_CHECK_TOOL(RC, windres,)
7916
AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
7917
dnl aclocal-1.4 backwards compatibility:
7918
dnl AC_DEFUN([LT_AC_PROG_RC], [])
7923
# If we don't have a new enough Autoconf to choose the best grep
7924
# available, choose the one first in the user's PATH.
7925
m4_defun([_LT_DECL_EGREP],
7926
[AC_REQUIRE([AC_PROG_EGREP])dnl
7927
AC_REQUIRE([AC_PROG_FGREP])dnl
7928
test -z "$GREP" && GREP=grep
7929
_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
7930
_LT_DECL([], [EGREP], [1], [An ERE matcher])
7931
_LT_DECL([], [FGREP], [1], [A literal string matcher])
7932
dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
7939
# If we don't have a new enough Autoconf to choose the best objdump
7940
# available, choose the one first in the user's PATH.
7941
m4_defun([_LT_DECL_OBJDUMP],
7942
[AC_CHECK_TOOL(OBJDUMP, objdump, false)
7943
test -z "$OBJDUMP" && OBJDUMP=objdump
7944
_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
7951
# Check for a fully-functional sed program, that truncates
7952
# as few characters as possible. Prefer GNU sed if found.
7953
m4_defun([_LT_DECL_SED],
7955
test -z "$SED" && SED=sed
7956
Xsed="$SED -e 1s/^X//"
7957
_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
7958
_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
7959
[Sed that helps us avoid accidentally triggering echo(1) options like -n])
7962
m4_ifndef([AC_PROG_SED], [
7394
AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
7398
AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
7399
AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
7400
AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
7401
AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
7402
AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
7403
AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
7404
AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
7406
# This is just to silence aclocal about the macro not being used
7407
ifelse([AC_DISABLE_FAST_INSTALL])
7409
AC_DEFUN([LT_AC_PROG_GCJ],
7410
[AC_CHECK_TOOL(GCJ, gcj, no)
7411
test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
7415
AC_DEFUN([LT_AC_PROG_RC],
7416
[AC_CHECK_TOOL(RC, windres, no)
7963
7419
# NOTE: This macro has been submitted for inclusion into #
7964
7420
# GNU Autoconf as AC_PROG_SED. When it is available in #
7965
7421
# a released version of Autoconf we should remove this #
7966
7422
# macro and use it instead. #
7968
m4_defun([AC_PROG_SED],
7425
# Check for a fully-functional sed program, that truncates
7426
# as few characters as possible. Prefer GNU sed if found.
7427
AC_DEFUN([LT_AC_PROG_SED],
7969
7428
[AC_MSG_CHECKING([for a sed that does not truncate output])
7970
7429
AC_CACHE_VAL(lt_cv_path_SED,
7971
7430
[# Loop through the user's path and test for sed and gsed.
8018
7476
SED=$lt_cv_path_SED
8020
7477
AC_MSG_RESULT([$SED])
8025
AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
8026
dnl aclocal-1.4 backwards compatibility:
8027
dnl AC_DEFUN([LT_AC_PROG_SED], [])
8030
# _LT_CHECK_SHELL_FEATURES
8031
# ------------------------
8032
# Find out whether the shell is Bourne or XSI compatible,
8033
# or has some other useful features.
8034
m4_defun([_LT_CHECK_SHELL_FEATURES],
8035
[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
8036
# Try some XSI features
8039
test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
8041
&& eval 'test $(( 1 + 1 )) -eq 2 \
8042
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
8044
AC_MSG_RESULT([$xsi_shell])
8045
_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
8047
AC_MSG_CHECKING([whether the shell understands "+="])
8049
( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
8051
&& lt_shell_append=yes
8052
AC_MSG_RESULT([$lt_shell_append])
8053
_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
8055
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8060
_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
8062
# test EBCDIC or ASCII
8063
case `echo X|tr X '\101'` in
8064
A) # ASCII based system
8065
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8066
lt_SP2NL='tr \040 \012'
8067
lt_NL2SP='tr \015\012 \040\040'
8069
*) # EBCDIC based system
8070
lt_SP2NL='tr \100 \n'
8071
lt_NL2SP='tr \r\n \100\100'
8074
_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
8075
_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
8076
])# _LT_CHECK_SHELL_FEATURES
8079
# _LT_PROG_XSI_SHELLFNS
8080
# ---------------------
8081
# Bourne and XSI compatible variants of some useful shell functions.
8082
m4_defun([_LT_PROG_XSI_SHELLFNS],
8085
cat << \_LT_EOF >> "$cfgfile"
8087
# func_dirname file append nondir_replacement
8088
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
8089
# otherwise set result to NONDIR_REPLACEMENT.
8093
*/*) func_dirname_result="${1%/*}${2}" ;;
8094
* ) func_dirname_result="${3}" ;;
8098
# func_basename file
8101
func_basename_result="${1##*/}"
8104
# func_dirname_and_basename file append nondir_replacement
8105
# perform func_basename and func_dirname in a single function
8107
# dirname: Compute the dirname of FILE. If nonempty,
8108
# add APPEND to the result, otherwise set result
8109
# to NONDIR_REPLACEMENT.
8110
# value returned in "$func_dirname_result"
8111
# basename: Compute filename of FILE.
8112
# value retuned in "$func_basename_result"
8113
# Implementation must be kept synchronized with func_dirname
8114
# and func_basename. For efficiency, we do not delegate to
8115
# those functions but instead duplicate the functionality here.
8116
func_dirname_and_basename ()
8119
*/*) func_dirname_result="${1%/*}${2}" ;;
8120
* ) func_dirname_result="${3}" ;;
8122
func_basename_result="${1##*/}"
8125
# func_stripname prefix suffix name
8126
# strip PREFIX and SUFFIX off of NAME.
8127
# PREFIX and SUFFIX must not contain globbing or regex special
8128
# characters, hashes, percent signs, but SUFFIX may contain a leading
8129
# dot (in which case that matches only a dot).
8132
# pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
8133
# positional parameters, so assign one to ordinary parameter first.
8134
func_stripname_result=${3}
8135
func_stripname_result=${func_stripname_result#"${1}"}
8136
func_stripname_result=${func_stripname_result%"${2}"}
8142
func_opt_split_opt=${1%%=*}
8143
func_opt_split_arg=${1#*=}
8150
*.lo) func_lo2o_result=${1%.lo}.${objext} ;;
8151
*) func_lo2o_result=${1} ;;
8155
# func_xform libobj-or-source
8158
func_xform_result=${1%.*}.lo
8161
# func_arith arithmetic-term...
8164
func_arith_result=$(( $[*] ))
8168
# STRING may not start with a hyphen.
8171
func_len_result=${#1}
8176
*) # Bourne compatible functions.
8177
cat << \_LT_EOF >> "$cfgfile"
8179
# func_dirname file append nondir_replacement
8180
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
8181
# otherwise set result to NONDIR_REPLACEMENT.
8184
# Extract subdirectory from the argument.
8185
func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
8186
if test "X$func_dirname_result" = "X${1}"; then
8187
func_dirname_result="${3}"
8189
func_dirname_result="$func_dirname_result${2}"
8193
# func_basename file
8196
func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
8199
dnl func_dirname_and_basename
8200
dnl A portable version of this function is already defined in general.m4sh
8201
dnl so there is no need for it here.
8203
# func_stripname prefix suffix name
8204
# strip PREFIX and SUFFIX off of NAME.
8205
# PREFIX and SUFFIX must not contain globbing or regex special
8206
# characters, hashes, percent signs, but SUFFIX may contain a leading
8207
# dot (in which case that matches only a dot).
8208
# func_strip_suffix prefix name
8212
.*) func_stripname_result=`$ECHO "X${3}" \
8213
| $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
8214
*) func_stripname_result=`$ECHO "X${3}" \
8215
| $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
8220
my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
8221
my_sed_long_arg='1s/^-[[^=]]*=//'
8226
func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
8227
func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
8233
func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
8236
# func_xform libobj-or-source
8239
func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
8242
# func_arith arithmetic-term...
8245
func_arith_result=`expr "$[@]"`
8249
# STRING may not start with a hyphen.
8252
func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
8258
case $lt_shell_append in
8260
cat << \_LT_EOF >> "$cfgfile"
8262
# func_append var value
8263
# Append VALUE to the end of shell variable VAR.
8271
cat << \_LT_EOF >> "$cfgfile"
8273
# func_append var value
8274
# Append VALUE to the end of shell variable VAR.
8277
eval "$[1]=\$$[1]\$[2]"
8285
# Helper functions for option handling. -*- Autoconf -*-
8287
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
8288
# Written by Gary V. Vaughan, 2004
8290
# This file is free software; the Free Software Foundation gives
8291
# unlimited permission to copy and/or distribute it, with or without
8292
# modifications, as long as this notice is preserved.
8294
# serial 6 ltoptions.m4
8296
# This is to help aclocal find these macros, as it can't see m4_define.
8297
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
8300
# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
8301
# ------------------------------------------
8302
m4_define([_LT_MANGLE_OPTION],
8303
[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
8306
# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
8307
# ---------------------------------------
8308
# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
8309
# matching handler defined, dispatch to it. Other OPTION-NAMEs are
8311
m4_define([_LT_SET_OPTION],
8312
[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
8313
m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
8314
_LT_MANGLE_DEFUN([$1], [$2]),
8315
[m4_warning([Unknown $1 option `$2'])])[]dnl
8319
# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
8320
# ------------------------------------------------------------
8321
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
8322
m4_define([_LT_IF_OPTION],
8323
[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
8326
# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
8327
# -------------------------------------------------------
8328
# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
8330
m4_define([_LT_UNLESS_OPTIONS],
8331
[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
8332
[m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
8333
[m4_define([$0_found])])])[]dnl
8334
m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
8339
# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
8340
# ----------------------------------------
8341
# OPTION-LIST is a space-separated list of Libtool options associated
8342
# with MACRO-NAME. If any OPTION has a matching handler declared with
8343
# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
8344
# the unknown option and exit.
8345
m4_defun([_LT_SET_OPTIONS],
8347
m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
8348
[_LT_SET_OPTION([$1], _LT_Option)])
8350
m4_if([$1],[LT_INIT],[
8352
dnl Simply set some default values (i.e off) if boolean options were not
8354
_LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
8356
_LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
8359
dnl If no reference was made to various pairs of opposing options, then
8360
dnl we run the default mode handler for the pair. For example, if neither
8361
dnl `shared' nor `disable-shared' was passed, we enable building of shared
8362
dnl archives by default:
8363
_LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
8364
_LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
8365
_LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
8366
_LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
8367
[_LT_ENABLE_FAST_INSTALL])
8373
# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
8374
# -----------------------------------------
8375
m4_define([_LT_MANGLE_DEFUN],
8376
[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
8379
# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
8380
# -----------------------------------------------
8381
m4_define([LT_OPTION_DEFINE],
8382
[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
8383
])# LT_OPTION_DEFINE
8388
LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
8391
AU_DEFUN([AC_LIBTOOL_DLOPEN],
8392
[_LT_SET_OPTION([LT_INIT], [dlopen])
8393
AC_DIAGNOSE([obsolete],
8394
[$0: Remove this warning and the call to _LT_SET_OPTION when you
8395
put the `dlopen' option into LT_INIT's first parameter.])
8398
dnl aclocal-1.4 backwards compatibility:
8399
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
8404
# Declare package support for building win32 dll's.
8405
LT_OPTION_DEFINE([LT_INIT], [win32-dll],
8406
[enable_win32_dll=yes
8409
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
8410
AC_CHECK_TOOL(AS, as, false)
8411
AC_CHECK_TOOL(DLLTOOL, dlltool, false)
8412
AC_CHECK_TOOL(OBJDUMP, objdump, false)
8416
test -z "$AS" && AS=as
8417
_LT_DECL([], [AS], [0], [Assembler program])dnl
8419
test -z "$DLLTOOL" && DLLTOOL=dlltool
8420
_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
8422
test -z "$OBJDUMP" && OBJDUMP=objdump
8423
_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
8426
AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
8427
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
8428
_LT_SET_OPTION([LT_INIT], [win32-dll])
8429
AC_DIAGNOSE([obsolete],
8430
[$0: Remove this warning and the call to _LT_SET_OPTION when you
8431
put the `win32-dll' option into LT_INIT's first parameter.])
8434
dnl aclocal-1.4 backwards compatibility:
8435
dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
8438
# _LT_ENABLE_SHARED([DEFAULT])
8439
# ----------------------------
8440
# implement the --enable-shared flag, and supports the `shared' and
8441
# `disable-shared' LT_INIT options.
8442
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
8443
m4_define([_LT_ENABLE_SHARED],
8444
[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
8445
AC_ARG_ENABLE([shared],
8446
[AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
8447
[build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
8448
[p=${PACKAGE-default}
8450
yes) enable_shared=yes ;;
8451
no) enable_shared=no ;;
8454
# Look at the argument we got. We use all the common list separators.
8455
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8456
for pkg in $enableval; do
8458
if test "X$pkg" = "X$p"; then
8465
[enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
8467
_LT_DECL([build_libtool_libs], [enable_shared], [0],
8468
[Whether or not to build shared libraries])
8469
])# _LT_ENABLE_SHARED
8471
LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
8472
LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
8475
AC_DEFUN([AC_ENABLE_SHARED],
8476
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
8479
AC_DEFUN([AC_DISABLE_SHARED],
8480
[_LT_SET_OPTION([LT_INIT], [disable-shared])
8483
AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
8484
AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
8486
dnl aclocal-1.4 backwards compatibility:
8487
dnl AC_DEFUN([AM_ENABLE_SHARED], [])
8488
dnl AC_DEFUN([AM_DISABLE_SHARED], [])
8492
# _LT_ENABLE_STATIC([DEFAULT])
8493
# ----------------------------
8494
# implement the --enable-static flag, and support the `static' and
8495
# `disable-static' LT_INIT options.
8496
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
8497
m4_define([_LT_ENABLE_STATIC],
8498
[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
8499
AC_ARG_ENABLE([static],
8500
[AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
8501
[build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
8502
[p=${PACKAGE-default}
8504
yes) enable_static=yes ;;
8505
no) enable_static=no ;;
8508
# Look at the argument we got. We use all the common list separators.
8509
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8510
for pkg in $enableval; do
8512
if test "X$pkg" = "X$p"; then
8519
[enable_static=]_LT_ENABLE_STATIC_DEFAULT)
8521
_LT_DECL([build_old_libs], [enable_static], [0],
8522
[Whether or not to build static libraries])
8523
])# _LT_ENABLE_STATIC
8525
LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
8526
LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
8529
AC_DEFUN([AC_ENABLE_STATIC],
8530
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
8533
AC_DEFUN([AC_DISABLE_STATIC],
8534
[_LT_SET_OPTION([LT_INIT], [disable-static])
8537
AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
8538
AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
8540
dnl aclocal-1.4 backwards compatibility:
8541
dnl AC_DEFUN([AM_ENABLE_STATIC], [])
8542
dnl AC_DEFUN([AM_DISABLE_STATIC], [])
8546
# _LT_ENABLE_FAST_INSTALL([DEFAULT])
8547
# ----------------------------------
8548
# implement the --enable-fast-install flag, and support the `fast-install'
8549
# and `disable-fast-install' LT_INIT options.
8550
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
8551
m4_define([_LT_ENABLE_FAST_INSTALL],
8552
[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
8553
AC_ARG_ENABLE([fast-install],
8554
[AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
8555
[optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
8556
[p=${PACKAGE-default}
8558
yes) enable_fast_install=yes ;;
8559
no) enable_fast_install=no ;;
8561
enable_fast_install=no
8562
# Look at the argument we got. We use all the common list separators.
8563
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8564
for pkg in $enableval; do
8566
if test "X$pkg" = "X$p"; then
8567
enable_fast_install=yes
8573
[enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
8575
_LT_DECL([fast_install], [enable_fast_install], [0],
8576
[Whether or not to optimize for fast installation])dnl
8577
])# _LT_ENABLE_FAST_INSTALL
8579
LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
8580
LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
8583
AU_DEFUN([AC_ENABLE_FAST_INSTALL],
8584
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
8585
AC_DIAGNOSE([obsolete],
8586
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
8587
the `fast-install' option into LT_INIT's first parameter.])
8590
AU_DEFUN([AC_DISABLE_FAST_INSTALL],
8591
[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
8592
AC_DIAGNOSE([obsolete],
8593
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
8594
the `disable-fast-install' option into LT_INIT's first parameter.])
8597
dnl aclocal-1.4 backwards compatibility:
8598
dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
8599
dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
8602
# _LT_WITH_PIC([MODE])
8603
# --------------------
8604
# implement the --with-pic flag, and support the `pic-only' and `no-pic'
8606
# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
8607
m4_define([_LT_WITH_PIC],
8609
[AS_HELP_STRING([--with-pic],
8610
[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
8611
[pic_mode="$withval"],
8614
test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
8616
_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
8619
LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
8620
LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
8623
AU_DEFUN([AC_LIBTOOL_PICMODE],
8624
[_LT_SET_OPTION([LT_INIT], [pic-only])
8625
AC_DIAGNOSE([obsolete],
8626
[$0: Remove this warning and the call to _LT_SET_OPTION when you
8627
put the `pic-only' option into LT_INIT's first parameter.])
8630
dnl aclocal-1.4 backwards compatibility:
8631
dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
8634
m4_define([_LTDL_MODE], [])
8635
LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
8636
[m4_define([_LTDL_MODE], [nonrecursive])])
8637
LT_OPTION_DEFINE([LTDL_INIT], [recursive],
8638
[m4_define([_LTDL_MODE], [recursive])])
8639
LT_OPTION_DEFINE([LTDL_INIT], [subproject],
8640
[m4_define([_LTDL_MODE], [subproject])])
8642
m4_define([_LTDL_TYPE], [])
8643
LT_OPTION_DEFINE([LTDL_INIT], [installable],
8644
[m4_define([_LTDL_TYPE], [installable])])
8645
LT_OPTION_DEFINE([LTDL_INIT], [convenience],
8646
[m4_define([_LTDL_TYPE], [convenience])])
8648
# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
8650
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
8651
# Written by Gary V. Vaughan, 2004
8653
# This file is free software; the Free Software Foundation gives
8654
# unlimited permission to copy and/or distribute it, with or without
8655
# modifications, as long as this notice is preserved.
8657
# serial 6 ltsugar.m4
8659
# This is to help aclocal find these macros, as it can't see m4_define.
8660
AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
8663
# lt_join(SEP, ARG1, [ARG2...])
8664
# -----------------------------
8665
# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
8666
# associated separator.
8667
# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
8668
# versions in m4sugar had bugs.
8669
m4_define([lt_join],
8670
[m4_if([$#], [1], [],
8672
[m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
8673
m4_define([_lt_join],
8674
[m4_if([$#$2], [2], [],
8675
[m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
8681
# Manipulate m4 lists.
8682
# These macros are necessary as long as will still need to support
8683
# Autoconf-2.59 which quotes differently.
8684
m4_define([lt_car], [[$1]])
8686
[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
8688
[m4_dquote(m4_shift($@))])])
8689
m4_define([lt_unquote], $1)
8692
# lt_append(MACRO-NAME, STRING, [SEPARATOR])
8693
# ------------------------------------------
8694
# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
8695
# Note that neither SEPARATOR nor STRING are expanded; they are appended
8696
# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
8697
# No SEPARATOR is output if MACRO-NAME was previously undefined (different
8698
# than defined and empty).
8700
# This macro is needed until we can rely on Autoconf 2.62, since earlier
8701
# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
8702
m4_define([lt_append],
8704
m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
8708
# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
8709
# ----------------------------------------------------------
8710
# Produce a SEP delimited list of all paired combinations of elements of
8711
# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
8712
# has the form PREFIXmINFIXSUFFIXn.
8713
# Needed until we can rely on m4_combine added in Autoconf 2.62.
8714
m4_define([lt_combine],
8715
[m4_if(m4_eval([$# > 3]), [1],
8716
[m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
8717
[[m4_foreach([_Lt_prefix], [$2],
8718
[m4_foreach([_Lt_suffix],
8719
]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
8720
[_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
8723
# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
8724
# -----------------------------------------------------------------------
8725
# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
8726
# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
8727
m4_define([lt_if_append_uniq],
8729
[m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
8730
[lt_append([$1], [$2], [$3])$4],
8732
[lt_append([$1], [$2], [$3])$4])])
8735
# lt_dict_add(DICT, KEY, VALUE)
8736
# -----------------------------
8737
m4_define([lt_dict_add],
8738
[m4_define([$1($2)], [$3])])
8741
# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
8742
# --------------------------------------------
8743
m4_define([lt_dict_add_subkey],
8744
[m4_define([$1($2:$3)], [$4])])
8747
# lt_dict_fetch(DICT, KEY, [SUBKEY])
8748
# ----------------------------------
8749
m4_define([lt_dict_fetch],
8751
m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
8752
m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
8755
# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
8756
# -----------------------------------------------------------------
8757
m4_define([lt_if_dict_fetch],
8758
[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
8763
# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
8764
# --------------------------------------------------------------
8765
m4_define([lt_dict_filter],
8766
[m4_if([$5], [], [],
8767
[lt_join(m4_quote(m4_default([$4], [[, ]])),
8768
lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
8769
[lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
8772
# ltversion.m4 -- version numbers -*- Autoconf -*-
8774
# Copyright (C) 2004 Free Software Foundation, Inc.
8775
# Written by Scott James Remnant, 2004
8777
# This file is free software; the Free Software Foundation gives
8778
# unlimited permission to copy and/or distribute it, with or without
8779
# modifications, as long as this notice is preserved.
8781
# Generated from ltversion.in.
8783
# serial 3012 ltversion.m4
8784
# This file is part of GNU Libtool
8786
m4_define([LT_PACKAGE_VERSION], [2.2.6])
8787
m4_define([LT_PACKAGE_REVISION], [1.3012])
8789
AC_DEFUN([LTVERSION_VERSION],
8790
[macro_version='2.2.6'
8791
macro_revision='1.3012'
8792
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
8793
_LT_DECL(, macro_revision, 0)
8796
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
8798
# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
8799
# Written by Scott James Remnant, 2004.
8801
# This file is free software; the Free Software Foundation gives
8802
# unlimited permission to copy and/or distribute it, with or without
8803
# modifications, as long as this notice is preserved.
8805
# serial 4 lt~obsolete.m4
8807
# These exist entirely to fool aclocal when bootstrapping libtool.
8809
# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
8810
# which have later been changed to m4_define as they aren't part of the
8811
# exported API, or moved to Autoconf or Automake where they belong.
8813
# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
8814
# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
8815
# using a macro with the same name in our local m4/libtool.m4 it'll
8816
# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
8817
# and doesn't know about Autoconf macros at all.)
8819
# So we provide this file, which has a silly filename so it's always
8820
# included after everything else. This provides aclocal with the
8821
# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
8822
# because those macros already exist, or will be overwritten later.
8823
# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
8825
# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
8826
# Yes, that means every name once taken will need to remain here until
8827
# we give up compatibility with versions before 1.7, at which point
8828
# we need to keep only those names which we still refer to.
8830
# This is to help aclocal find these macros, as it can't see m4_define.
8831
AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
8833
m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
8834
m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
8835
m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
8836
m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
8837
m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
8838
m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
8839
m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
8840
m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
8841
m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
8842
m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
8843
m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
8844
m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
8845
m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
8846
m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
8847
m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
8848
m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
8849
m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
8850
m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
8851
m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
8852
m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
8853
m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
8854
m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
8855
m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
8856
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
8857
m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
8858
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
8859
m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
8860
m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
8861
m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
8862
m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
8863
m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
8864
m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
8865
m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
8866
m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
8867
m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
8868
m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
8869
m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
8870
m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
8871
m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
8872
m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
8873
m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
8874
m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
8875
m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
8876
m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
8877
m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
8878
m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
8879
m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
8880
m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
8881
m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
8882
m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
8883
m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
8884
m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
8885
m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
8886
m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
8887
m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
8889
# nls.m4 serial 3 (gettext-0.15)
8890
dnl Copyright (C) 1995-2003, 2005-2006 Free Software Foundation, Inc.
8891
dnl This file is free software; the Free Software Foundation
8892
dnl gives unlimited permission to copy and/or distribute it,
8893
dnl with or without modifications, as long as this notice is preserved.
7480
# nls.m4 serial 1 (gettext-0.12)
7481
dnl Copyright (C) 1995-2003 Free Software Foundation, Inc.
7482
dnl This file is free software, distributed under the terms of the GNU
7483
dnl General Public License. As a special exception to the GNU General
7484
dnl Public License, this file may be distributed as part of a program
7485
dnl that contains a configuration script generated by Autoconf, under
7486
dnl the same distribution terms as the rest of that program.
8895
7488
dnl This file can can be used in projects which are not available under
8896
7489
dnl the GNU General Public License or the GNU Library General Public