~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to m4/libtool.m4

  • Committer: Monty Taylor
  • Date: 2008-10-16 20:02:16 UTC
  • mfrom: (511.1.9 codestyle)
  • Revision ID: monty@inaugust.com-20081016200216-dvp7f7xx6k5wppkl
MergedĀ fromĀ trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
2
 
## Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007,
3
 
## 2008  Free Software Foundation, Inc.
4
 
## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
5
 
##
6
 
## This file is free software; the Free Software Foundation gives
7
 
## unlimited permission to copy and/or distribute it, with or without
8
 
## modifications, as long as this notice is preserved.
9
 
 
10
 
# serial 52 Debian 1.5.26-1ubuntu1 AC_PROG_LIBTOOL
11
 
 
12
 
 
13
 
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
14
 
# -----------------------------------------------------------
15
 
# If this macro is not defined by Autoconf, define it here.
16
 
m4_ifdef([AC_PROVIDE_IFELSE],
17
 
         [],
18
 
         [m4_define([AC_PROVIDE_IFELSE],
19
 
                 [m4_ifdef([AC_PROVIDE_$1],
20
 
                           [$2], [$3])])])
21
 
 
22
 
 
23
 
# AC_PROG_LIBTOOL
24
 
# ---------------
25
 
AC_DEFUN([AC_PROG_LIBTOOL],
26
 
[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
27
 
dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
28
 
dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
29
 
  AC_PROVIDE_IFELSE([AC_PROG_CXX],
30
 
    [AC_LIBTOOL_CXX],
31
 
    [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
32
 
  ])])
33
 
dnl And a similar setup for Fortran 77 support
34
 
  AC_PROVIDE_IFELSE([AC_PROG_F77],
35
 
    [AC_LIBTOOL_F77],
36
 
    [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
37
 
])])
38
 
 
39
 
dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
40
 
dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
41
 
dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
42
 
  AC_PROVIDE_IFELSE([AC_PROG_GCJ],
43
 
    [AC_LIBTOOL_GCJ],
44
 
    [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
45
 
      [AC_LIBTOOL_GCJ],
46
 
      [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
47
 
        [AC_LIBTOOL_GCJ],
48
 
      [ifdef([AC_PROG_GCJ],
49
 
             [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
50
 
       ifdef([A][M_PROG_GCJ],
51
 
             [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
52
 
       ifdef([LT_AC_PROG_GCJ],
53
 
             [define([LT_AC_PROG_GCJ],
54
 
                defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
55
 
])])# AC_PROG_LIBTOOL
56
 
 
57
 
 
58
 
# _AC_PROG_LIBTOOL
59
 
# ----------------
60
 
AC_DEFUN([_AC_PROG_LIBTOOL],
61
 
[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
62
 
AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
63
 
AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
64
 
AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
 
2
#
 
3
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
 
4
#                 2006, 2007, 2008 Free Software Foundation, Inc.
 
5
#   Written by Gordon Matzigkeit, 1996
 
6
#
 
7
# This file is free software; the Free Software Foundation gives
 
8
# unlimited permission to copy and/or distribute it, with or without
 
9
# modifications, as long as this notice is preserved.
 
10
 
 
11
m4_define([_LT_COPYING], [dnl
 
12
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
 
13
#                 2006, 2007, 2008 Free Software Foundation, Inc.
 
14
#   Written by Gordon Matzigkeit, 1996
 
15
#
 
16
#   This file is part of GNU Libtool.
 
17
#
 
18
# GNU Libtool is free software; you can redistribute it and/or
 
19
# modify it under the terms of the GNU General Public License as
 
20
# published by the Free Software Foundation; either version 2 of
 
21
# the License, or (at your option) any later version.
 
22
#
 
23
# As a special exception to the GNU General Public License,
 
24
# if you distribute this file as part of a program or library that
 
25
# is built using GNU Libtool, you may include this file under the
 
26
# same distribution terms that you use for the rest of that program.
 
27
#
 
28
# GNU Libtool is distributed in the hope that it will be useful,
 
29
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
30
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
31
# GNU General Public License for more details.
 
32
#
 
33
# You should have received a copy of the GNU General Public License
 
34
# along with GNU Libtool; see the file COPYING.  If not, a copy
 
35
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
 
36
# obtained by writing to the Free Software Foundation, Inc.,
 
37
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
38
])
 
39
 
 
40
# serial 56 LT_INIT
 
41
 
 
42
 
 
43
# LT_PREREQ(VERSION)
 
44
# ------------------
 
45
# Complain and exit if this libtool version is less that VERSION.
 
46
m4_defun([LT_PREREQ],
 
47
[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
 
48
       [m4_default([$3],
 
49
                   [m4_fatal([Libtool version $1 or higher is required],
 
50
                             63)])],
 
51
       [$2])])
 
52
 
 
53
 
 
54
# _LT_CHECK_BUILDDIR
 
55
# ------------------
 
56
# Complain if the absolute build directory name contains unusual characters
 
57
m4_defun([_LT_CHECK_BUILDDIR],
 
58
[case `pwd` in
 
59
  *\ * | *\     *)
 
60
    AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
 
61
esac
 
62
])
 
63
 
 
64
 
 
65
# LT_INIT([OPTIONS])
 
66
# ------------------
 
67
AC_DEFUN([LT_INIT],
 
68
[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
 
69
AC_BEFORE([$0], [LT_LANG])dnl
 
70
AC_BEFORE([$0], [LT_OUTPUT])dnl
 
71
AC_BEFORE([$0], [LTDL_INIT])dnl
 
72
m4_require([_LT_CHECK_BUILDDIR])dnl
 
73
 
 
74
dnl Autoconf doesn't catch unexpanded LT_ macros by default:
 
75
m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
 
76
m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
 
77
dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
 
78
dnl unless we require an AC_DEFUNed macro:
 
79
AC_REQUIRE([LTOPTIONS_VERSION])dnl
 
80
AC_REQUIRE([LTSUGAR_VERSION])dnl
 
81
AC_REQUIRE([LTVERSION_VERSION])dnl
 
82
AC_REQUIRE([LTOBSOLETE_VERSION])dnl
 
83
m4_require([_LT_PROG_LTMAIN])dnl
 
84
 
 
85
dnl Parse OPTIONS
 
86
_LT_SET_OPTIONS([$0], [$1])
65
87
 
66
88
# This can be used to rebuild libtool when needed
67
 
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
 
89
LIBTOOL_DEPS="$ltmain"
68
90
 
69
91
# Always use our own libtool.
70
92
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
71
93
AC_SUBST(LIBTOOL)dnl
72
94
 
73
 
# Prevent multiple expansion
74
 
define([AC_PROG_LIBTOOL], [])
75
 
])# _AC_PROG_LIBTOOL
76
 
 
77
 
 
78
 
# AC_LIBTOOL_SETUP
79
 
# ----------------
80
 
AC_DEFUN([AC_LIBTOOL_SETUP],
81
 
[AC_PREREQ(2.50)dnl
82
 
AC_REQUIRE([AC_ENABLE_SHARED])dnl
83
 
AC_REQUIRE([AC_ENABLE_STATIC])dnl
84
 
AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
85
 
AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
95
_LT_SETUP
 
96
 
 
97
# Only expand once:
 
98
m4_define([LT_INIT])
 
99
])# LT_INIT
 
100
 
 
101
# Old names:
 
102
AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
 
103
AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
 
104
dnl aclocal-1.4 backwards compatibility:
 
105
dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
 
106
dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
 
107
 
 
108
 
 
109
# _LT_CC_BASENAME(CC)
 
110
# -------------------
 
111
# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
 
112
m4_defun([_LT_CC_BASENAME],
 
113
[for cc_temp in $1""; do
 
114
  case $cc_temp in
 
115
    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
 
116
    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
 
117
    \-*) ;;
 
118
    *) break;;
 
119
  esac
 
120
done
 
121
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
122
])
 
123
 
 
124
 
 
125
# _LT_FILEUTILS_DEFAULTS
 
126
# ----------------------
 
127
# It is okay to use these file commands and assume they have been set
 
128
# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
 
129
m4_defun([_LT_FILEUTILS_DEFAULTS],
 
130
[: ${CP="cp -f"}
 
131
: ${MV="mv -f"}
 
132
: ${RM="rm -f"}
 
133
])# _LT_FILEUTILS_DEFAULTS
 
134
 
 
135
 
 
136
# _LT_SETUP
 
137
# ---------
 
138
m4_defun([_LT_SETUP],
 
139
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
86
140
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
 
141
_LT_DECL([], [host_alias], [0], [The host system])dnl
 
142
_LT_DECL([], [host], [0])dnl
 
143
_LT_DECL([], [host_os], [0])dnl
 
144
dnl
 
145
_LT_DECL([], [build_alias], [0], [The build system])dnl
 
146
_LT_DECL([], [build], [0])dnl
 
147
_LT_DECL([], [build_os], [0])dnl
 
148
dnl
87
149
AC_REQUIRE([AC_PROG_CC])dnl
88
 
AC_REQUIRE([AC_PROG_LD])dnl
89
 
AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
90
 
AC_REQUIRE([AC_PROG_NM])dnl
91
 
 
 
150
AC_REQUIRE([LT_PATH_LD])dnl
 
151
AC_REQUIRE([LT_PATH_NM])dnl
 
152
dnl
92
153
AC_REQUIRE([AC_PROG_LN_S])dnl
93
 
AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
94
 
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
95
 
AC_REQUIRE([AC_OBJEXT])dnl
96
 
AC_REQUIRE([AC_EXEEXT])dnl
97
 
dnl
98
 
AC_LIBTOOL_SYS_MAX_CMD_LEN
99
 
AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
100
 
AC_LIBTOOL_OBJDIR
101
 
 
102
 
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
103
 
_LT_AC_PROG_ECHO_BACKSLASH
 
154
test -z "$LN_S" && LN_S="ln -s"
 
155
_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
 
156
dnl
 
157
AC_REQUIRE([LT_CMD_MAX_LEN])dnl
 
158
_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
 
159
_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
 
160
dnl
 
161
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
162
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
 
163
m4_require([_LT_CMD_RELOAD])dnl
 
164
m4_require([_LT_CHECK_MAGIC_METHOD])dnl
 
165
m4_require([_LT_CMD_OLD_ARCHIVE])dnl
 
166
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
 
167
 
 
168
_LT_CONFIG_LIBTOOL_INIT([
 
169
# See if we are running on zsh, and set the options which allow our
 
170
# commands through without removal of \ escapes INIT.
 
171
if test -n "\${ZSH_VERSION+set}" ; then
 
172
   setopt NO_GLOB_SUBST
 
173
fi
 
174
])
 
175
if test -n "${ZSH_VERSION+set}" ; then
 
176
   setopt NO_GLOB_SUBST
 
177
fi
 
178
 
 
179
_LT_CHECK_OBJDIR
 
180
 
 
181
m4_require([_LT_TAG_COMPILER])dnl
 
182
_LT_PROG_ECHO_BACKSLASH
104
183
 
105
184
case $host_os in
106
185
aix3*)
116
195
 
117
196
# Sed substitution that helps us do robust quoting.  It backslashifies
118
197
# metacharacters that are still active within double-quoted strings.
119
 
Xsed='sed -e 1s/^X//'
120
 
[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
 
198
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
121
199
 
122
200
# Same as above, but do not quote variable references.
123
 
[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
 
201
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
124
202
 
125
203
# Sed substitution to delay expansion of an escaped shell variable in a
126
204
# double_quote_subst'ed string.
127
205
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
128
206
 
 
207
# Sed substitution to delay expansion of an escaped single quote.
 
208
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
 
209
 
129
210
# Sed substitution to avoid accidental globbing in evaled expressions
130
211
no_glob_subst='s/\*/\\\*/g'
131
212
 
132
 
# Constants:
133
 
rm="rm -f"
134
 
 
135
213
# Global variables:
136
 
default_ofile=libtool
 
214
ofile=libtool
137
215
can_build_shared=yes
138
216
 
139
217
# All known linkers require a `.a' archive for static linking (except MSVC,
140
218
# which needs '.lib').
141
219
libext=a
142
 
ltmain="$ac_aux_dir/ltmain.sh"
143
 
ofile="$default_ofile"
 
220
 
144
221
with_gnu_ld="$lt_cv_prog_gnu_ld"
145
222
 
146
 
AC_CHECK_TOOL(AR, ar, false)
147
 
AC_CHECK_TOOL(RANLIB, ranlib, :)
148
 
AC_CHECK_TOOL(STRIP, strip, :)
149
 
 
150
223
old_CC="$CC"
151
224
old_CFLAGS="$CFLAGS"
152
225
 
153
226
# Set sane defaults for various variables
154
 
test -z "$AR" && AR=ar
155
 
test -z "$AR_FLAGS" && AR_FLAGS=cru
156
 
test -z "$AS" && AS=as
157
227
test -z "$CC" && CC=cc
158
228
test -z "$LTCC" && LTCC=$CC
159
229
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
160
 
test -z "$DLLTOOL" && DLLTOOL=dlltool
161
230
test -z "$LD" && LD=ld
162
 
test -z "$LN_S" && LN_S="ln -s"
163
 
test -z "$MAGIC_CMD" && MAGIC_CMD=file
164
 
test -z "$NM" && NM=nm
165
 
test -z "$SED" && SED=sed
166
 
test -z "$OBJDUMP" && OBJDUMP=objdump
167
 
test -z "$RANLIB" && RANLIB=:
168
 
test -z "$STRIP" && STRIP=:
169
231
test -z "$ac_objext" && ac_objext=o
170
232
 
171
 
# Determine commands to create old-style static archives.
172
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
173
 
old_postinstall_cmds='chmod 644 $oldlib'
174
 
old_postuninstall_cmds=
175
 
 
176
 
if test -n "$RANLIB"; then
177
 
  case $host_os in
178
 
  openbsd*)
179
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
180
 
    ;;
181
 
  *)
182
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
183
 
    ;;
184
 
  esac
185
 
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
186
 
fi
187
 
 
188
233
_LT_CC_BASENAME([$compiler])
189
234
 
190
235
# Only perform the check for file, if the check method requires it
 
236
test -z "$MAGIC_CMD" && MAGIC_CMD=file
191
237
case $deplibs_check_method in
192
238
file_magic*)
193
239
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
194
 
    AC_PATH_MAGIC
 
240
    _LT_PATH_MAGIC
195
241
  fi
196
242
  ;;
197
243
esac
198
244
 
199
 
_LT_REQUIRED_DARWIN_CHECKS
200
 
 
201
 
AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
202
 
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
203
 
enable_win32_dll=yes, enable_win32_dll=no)
204
 
 
205
 
AC_ARG_ENABLE([libtool-lock],
206
 
    [AC_HELP_STRING([--disable-libtool-lock],
207
 
        [avoid locking (might break parallel builds)])])
208
 
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
209
 
 
210
 
AC_ARG_WITH([pic],
211
 
    [AC_HELP_STRING([--with-pic],
212
 
        [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
213
 
    [pic_mode="$withval"],
214
 
    [pic_mode=default])
215
 
test -z "$pic_mode" && pic_mode=default
216
 
 
217
245
# Use C for the default configuration in the libtool script
218
 
tagname=
219
 
AC_LIBTOOL_LANG_C_CONFIG
220
 
_LT_AC_TAGCONFIG
221
 
])# AC_LIBTOOL_SETUP
222
 
 
223
 
 
224
 
# _LT_AC_SYS_COMPILER
 
246
LT_SUPPORTED_TAG([CC])
 
247
_LT_LANG_C_CONFIG
 
248
_LT_LANG_DEFAULT_CONFIG
 
249
_LT_CONFIG_COMMANDS
 
250
])# _LT_SETUP
 
251
 
 
252
 
 
253
# _LT_PROG_LTMAIN
 
254
# ---------------
 
255
# Note that this code is called both from `configure', and `config.status'
 
256
# now that we use AC_CONFIG_COMMANDS to generate libtool.  Notably,
 
257
# `config.status' has no value for ac_aux_dir unless we are using Automake,
 
258
# so we pass a copy along to make sure it has a sensible value anyway.
 
259
m4_defun([_LT_PROG_LTMAIN],
 
260
[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
 
261
_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
 
262
ltmain="$ac_aux_dir/ltmain.sh"
 
263
])# _LT_PROG_LTMAIN
 
264
 
 
265
 
 
266
## ------------------------------------- ##
 
267
## Accumulate code for creating libtool. ##
 
268
## ------------------------------------- ##
 
269
 
 
270
# So that we can recreate a full libtool script including additional
 
271
# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
 
272
# in macros and then make a single call at the end using the `libtool'
 
273
# label.
 
274
 
 
275
 
 
276
# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
 
277
# ----------------------------------------
 
278
# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
 
279
m4_define([_LT_CONFIG_LIBTOOL_INIT],
 
280
[m4_ifval([$1],
 
281
          [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
 
282
                     [$1
 
283
])])])
 
284
 
 
285
# Initialize.
 
286
m4_define([_LT_OUTPUT_LIBTOOL_INIT])
 
287
 
 
288
 
 
289
# _LT_CONFIG_LIBTOOL([COMMANDS])
 
290
# ------------------------------
 
291
# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
 
292
m4_define([_LT_CONFIG_LIBTOOL],
 
293
[m4_ifval([$1],
 
294
          [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
 
295
                     [$1
 
296
])])])
 
297
 
 
298
# Initialize.
 
299
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
 
300
 
 
301
 
 
302
# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
 
303
# -----------------------------------------------------
 
304
m4_defun([_LT_CONFIG_SAVE_COMMANDS],
 
305
[_LT_CONFIG_LIBTOOL([$1])
 
306
_LT_CONFIG_LIBTOOL_INIT([$2])
 
307
])
 
308
 
 
309
 
 
310
# _LT_FORMAT_COMMENT([COMMENT])
 
311
# -----------------------------
 
312
# Add leading comment marks to the start of each line, and a trailing
 
313
# full-stop to the whole comment if one is not present already.
 
314
m4_define([_LT_FORMAT_COMMENT],
 
315
[m4_ifval([$1], [
 
316
m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
 
317
              [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
 
318
)])
 
319
 
 
320
 
 
321
 
 
322
## ------------------------ ##
 
323
## FIXME: Eliminate VARNAME ##
 
324
## ------------------------ ##
 
325
 
 
326
 
 
327
# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
 
328
# -------------------------------------------------------------------
 
329
# CONFIGNAME is the name given to the value in the libtool script.
 
330
# VARNAME is the (base) name used in the configure script.
 
331
# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
 
332
# VARNAME.  Any other value will be used directly.
 
333
m4_define([_LT_DECL],
 
334
[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
 
335
    [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
 
336
        [m4_ifval([$1], [$1], [$2])])
 
337
    lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
 
338
    m4_ifval([$4],
 
339
        [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
 
340
    lt_dict_add_subkey([lt_decl_dict], [$2],
 
341
        [tagged?], [m4_ifval([$5], [yes], [no])])])
 
342
])
 
343
 
 
344
 
 
345
# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
 
346
# --------------------------------------------------------
 
347
m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
 
348
 
 
349
 
 
350
# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
 
351
# ------------------------------------------------
 
352
m4_define([lt_decl_tag_varnames],
 
353
[_lt_decl_filter([tagged?], [yes], $@)])
 
354
 
 
355
 
 
356
# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
 
357
# ---------------------------------------------------------
 
358
m4_define([_lt_decl_filter],
 
359
[m4_case([$#],
 
360
  [0], [m4_fatal([$0: too few arguments: $#])],
 
361
  [1], [m4_fatal([$0: too few arguments: $#: $1])],
 
362
  [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
 
363
  [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
 
364
  [lt_dict_filter([lt_decl_dict], $@)])[]dnl
 
365
])
 
366
 
 
367
 
 
368
# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
 
369
# --------------------------------------------------
 
370
m4_define([lt_decl_quote_varnames],
 
371
[_lt_decl_filter([value], [1], $@)])
 
372
 
 
373
 
 
374
# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
 
375
# ---------------------------------------------------
 
376
m4_define([lt_decl_dquote_varnames],
 
377
[_lt_decl_filter([value], [2], $@)])
 
378
 
 
379
 
 
380
# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
 
381
# ---------------------------------------------------
 
382
m4_define([lt_decl_varnames_tagged],
 
383
[_$0(m4_quote(m4_default([$1], [[, ]])),
 
384
     m4_quote(m4_if([$2], [],
 
385
                     m4_quote(lt_decl_tag_varnames),
 
386
                  m4_quote(m4_shift($@)))),
 
387
     m4_split(m4_normalize(m4_quote(_LT_TAGS))))])
 
388
m4_define([_lt_decl_varnames_tagged], [lt_combine([$1], [$2], [_], $3)])
 
389
 
 
390
 
 
391
# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
 
392
# ------------------------------------------------
 
393
m4_define([lt_decl_all_varnames],
 
394
[_$0(m4_quote(m4_default([$1], [[, ]])),
 
395
     m4_if([$2], [],
 
396
           m4_quote(lt_decl_varnames),
 
397
        m4_quote(m4_shift($@))))[]dnl
 
398
])
 
399
m4_define([_lt_decl_all_varnames],
 
400
[lt_join($@, lt_decl_varnames_tagged([$1],
 
401
                        lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
 
402
])
 
403
 
 
404
 
 
405
# _LT_CONFIG_STATUS_DECLARE([VARNAME])
 
406
# ------------------------------------
 
407
# Quote a variable value, and forward it to `config.status' so that its
 
408
# declaration there will have the same value as in `configure'.  VARNAME
 
409
# must have a single quote delimited value for this to work.
 
410
m4_define([_LT_CONFIG_STATUS_DECLARE],
 
411
[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
 
412
 
 
413
 
 
414
# _LT_CONFIG_STATUS_DECLARATIONS
 
415
# ------------------------------
 
416
# We delimit libtool config variables with single quotes, so when
 
417
# we write them to config.status, we have to be sure to quote all
 
418
# embedded single quotes properly.  In configure, this macro expands
 
419
# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
 
420
#
 
421
#    <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
 
422
m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
 
423
[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
 
424
    [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
 
425
 
 
426
 
 
427
# _LT_LIBTOOL_TAGS
 
428
# ----------------
 
429
# Output comment and list of tags supported by the script
 
430
m4_defun([_LT_LIBTOOL_TAGS],
 
431
[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
 
432
available_tags="_LT_TAGS"dnl
 
433
])
 
434
 
 
435
 
 
436
# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
 
437
# -----------------------------------
 
438
# Extract the dictionary values for VARNAME (optionally with TAG) and
 
439
# expand to a commented shell variable setting:
 
440
#
 
441
#    # Some comment about what VAR is for.
 
442
#    visible_name=$lt_internal_name
 
443
m4_define([_LT_LIBTOOL_DECLARE],
 
444
[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
 
445
                                           [description])))[]dnl
 
446
m4_pushdef([_libtool_name],
 
447
    m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
 
448
m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
 
449
    [0], [_libtool_name=[$]$1],
 
450
    [1], [_libtool_name=$lt_[]$1],
 
451
    [2], [_libtool_name=$lt_[]$1],
 
452
    [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
 
453
m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
 
454
])
 
455
 
 
456
 
 
457
# _LT_LIBTOOL_CONFIG_VARS
 
458
# -----------------------
 
459
# Produce commented declarations of non-tagged libtool config variables
 
460
# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
 
461
# script.  Tagged libtool config variables (even for the LIBTOOL CONFIG
 
462
# section) are produced by _LT_LIBTOOL_TAG_VARS.
 
463
m4_defun([_LT_LIBTOOL_CONFIG_VARS],
 
464
[m4_foreach([_lt_var],
 
465
    m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
 
466
    [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
 
467
 
 
468
 
 
469
# _LT_LIBTOOL_TAG_VARS(TAG)
 
470
# -------------------------
 
471
m4_define([_LT_LIBTOOL_TAG_VARS],
 
472
[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
 
473
    [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
 
474
 
 
475
 
 
476
# _LT_TAGVAR(VARNAME, [TAGNAME])
 
477
# ------------------------------
 
478
m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
 
479
 
 
480
 
 
481
# _LT_CONFIG_COMMANDS
225
482
# -------------------
226
 
AC_DEFUN([_LT_AC_SYS_COMPILER],
 
483
# Send accumulated output to $CONFIG_STATUS.  Thanks to the lists of
 
484
# variables for single and double quote escaping we saved from calls
 
485
# to _LT_DECL, we can put quote escaped variables declarations
 
486
# into `config.status', and then the shell code to quote escape them in
 
487
# for loops in `config.status'.  Finally, any additional code accumulated
 
488
# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
 
489
m4_defun([_LT_CONFIG_COMMANDS],
 
490
[AC_PROVIDE_IFELSE([LT_OUTPUT],
 
491
        dnl If the libtool generation code has been placed in $CONFIG_LT,
 
492
        dnl instead of duplicating it all over again into config.status,
 
493
        dnl then we will have config.status run $CONFIG_LT later, so it
 
494
        dnl needs to know what name is stored there:
 
495
        [AC_CONFIG_COMMANDS([libtool],
 
496
            [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
 
497
    dnl If the libtool generation code is destined for config.status,
 
498
    dnl expand the accumulated commands and init code now:
 
499
    [AC_CONFIG_COMMANDS([libtool],
 
500
        [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
 
501
])#_LT_CONFIG_COMMANDS
 
502
 
 
503
 
 
504
# Initialize.
 
505
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
 
506
[
 
507
 
 
508
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
509
# if CDPATH is set.
 
510
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
511
 
 
512
sed_quote_subst='$sed_quote_subst'
 
513
double_quote_subst='$double_quote_subst'
 
514
delay_variable_subst='$delay_variable_subst'
 
515
_LT_CONFIG_STATUS_DECLARATIONS
 
516
LTCC='$LTCC'
 
517
LTCFLAGS='$LTCFLAGS'
 
518
compiler='$compiler_DEFAULT'
 
519
 
 
520
# Quote evaled strings.
 
521
for var in lt_decl_all_varnames([[ \
 
522
]], lt_decl_quote_varnames); do
 
523
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
524
    *[[\\\\\\\`\\"\\\$]]*)
 
525
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
 
526
      ;;
 
527
    *)
 
528
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
529
      ;;
 
530
    esac
 
531
done
 
532
 
 
533
# Double-quote double-evaled strings.
 
534
for var in lt_decl_all_varnames([[ \
 
535
]], lt_decl_dquote_varnames); do
 
536
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
537
    *[[\\\\\\\`\\"\\\$]]*)
 
538
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
 
539
      ;;
 
540
    *)
 
541
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
542
      ;;
 
543
    esac
 
544
done
 
545
 
 
546
# Fix-up fallback echo if it was mangled by the above quoting rules.
 
547
case \$lt_ECHO in
 
548
*'\\\[$]0 --fallback-echo"')dnl "
 
549
  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
 
550
  ;;
 
551
esac
 
552
 
 
553
_LT_OUTPUT_LIBTOOL_INIT
 
554
])
 
555
 
 
556
 
 
557
# LT_OUTPUT
 
558
# ---------
 
559
# This macro allows early generation of the libtool script (before
 
560
# AC_OUTPUT is called), incase it is used in configure for compilation
 
561
# tests.
 
562
AC_DEFUN([LT_OUTPUT],
 
563
[: ${CONFIG_LT=./config.lt}
 
564
AC_MSG_NOTICE([creating $CONFIG_LT])
 
565
cat >"$CONFIG_LT" <<_LTEOF
 
566
#! $SHELL
 
567
# Generated by $as_me.
 
568
# Run this file to recreate a libtool stub with the current configuration.
 
569
 
 
570
lt_cl_silent=false
 
571
SHELL=\${CONFIG_SHELL-$SHELL}
 
572
_LTEOF
 
573
 
 
574
cat >>"$CONFIG_LT" <<\_LTEOF
 
575
AS_SHELL_SANITIZE
 
576
_AS_PREPARE
 
577
 
 
578
exec AS_MESSAGE_FD>&1
 
579
exec AS_MESSAGE_LOG_FD>>config.log
 
580
{
 
581
  echo
 
582
  AS_BOX([Running $as_me.])
 
583
} >&AS_MESSAGE_LOG_FD
 
584
 
 
585
lt_cl_help="\
 
586
\`$as_me' creates a local libtool stub from the current configuration,
 
587
for use in further configure time tests before the real libtool is
 
588
generated.
 
589
 
 
590
Usage: $[0] [[OPTIONS]]
 
591
 
 
592
  -h, --help      print this help, then exit
 
593
  -V, --version   print version number, then exit
 
594
  -q, --quiet     do not print progress messages
 
595
  -d, --debug     don't remove temporary files
 
596
 
 
597
Report bugs to <bug-libtool@gnu.org>."
 
598
 
 
599
lt_cl_version="\
 
600
m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
 
601
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
 
602
configured by $[0], generated by m4_PACKAGE_STRING.
 
603
 
 
604
Copyright (C) 2008 Free Software Foundation, Inc.
 
605
This config.lt script is free software; the Free Software Foundation
 
606
gives unlimited permision to copy, distribute and modify it."
 
607
 
 
608
while test $[#] != 0
 
609
do
 
610
  case $[1] in
 
611
    --version | --v* | -V )
 
612
      echo "$lt_cl_version"; exit 0 ;;
 
613
    --help | --h* | -h )
 
614
      echo "$lt_cl_help"; exit 0 ;;
 
615
    --debug | --d* | -d )
 
616
      debug=: ;;
 
617
    --quiet | --q* | --silent | --s* | -q )
 
618
      lt_cl_silent=: ;;
 
619
 
 
620
    -*) AC_MSG_ERROR([unrecognized option: $[1]
 
621
Try \`$[0] --help' for more information.]) ;;
 
622
 
 
623
    *) AC_MSG_ERROR([unrecognized argument: $[1]
 
624
Try \`$[0] --help' for more information.]) ;;
 
625
  esac
 
626
  shift
 
627
done
 
628
 
 
629
if $lt_cl_silent; then
 
630
  exec AS_MESSAGE_FD>/dev/null
 
631
fi
 
632
_LTEOF
 
633
 
 
634
cat >>"$CONFIG_LT" <<_LTEOF
 
635
_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
 
636
_LTEOF
 
637
 
 
638
cat >>"$CONFIG_LT" <<\_LTEOF
 
639
AC_MSG_NOTICE([creating $ofile])
 
640
_LT_OUTPUT_LIBTOOL_COMMANDS
 
641
AS_EXIT(0)
 
642
_LTEOF
 
643
chmod +x "$CONFIG_LT"
 
644
 
 
645
# configure is writing to config.log, but config.lt does its own redirection,
 
646
# appending to config.log, which fails on DOS, as config.log is still kept
 
647
# open by configure.  Here we exec the FD to /dev/null, effectively closing
 
648
# config.log, so it can be properly (re)opened and appended to by config.lt.
 
649
if test "$no_create" != yes; then
 
650
  lt_cl_success=:
 
651
  test "$silent" = yes &&
 
652
    lt_config_lt_args="$lt_config_lt_args --quiet"
 
653
  exec AS_MESSAGE_LOG_FD>/dev/null
 
654
  $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
 
655
  exec AS_MESSAGE_LOG_FD>>config.log
 
656
  $lt_cl_success || AS_EXIT(1)
 
657
fi
 
658
])# LT_OUTPUT
 
659
 
 
660
 
 
661
# _LT_CONFIG(TAG)
 
662
# ---------------
 
663
# If TAG is the built-in tag, create an initial libtool script with a
 
664
# default configuration from the untagged config vars.  Otherwise add code
 
665
# to config.status for appending the configuration named by TAG from the
 
666
# matching tagged config vars.
 
667
m4_defun([_LT_CONFIG],
 
668
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
669
_LT_CONFIG_SAVE_COMMANDS([
 
670
  m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
 
671
  m4_if(_LT_TAG, [C], [
 
672
    # See if we are running on zsh, and set the options which allow our
 
673
    # commands through without removal of \ escapes.
 
674
    if test -n "${ZSH_VERSION+set}" ; then
 
675
      setopt NO_GLOB_SUBST
 
676
    fi
 
677
 
 
678
    cfgfile="${ofile}T"
 
679
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
 
680
    $RM "$cfgfile"
 
681
 
 
682
    cat <<_LT_EOF >> "$cfgfile"
 
683
#! $SHELL
 
684
 
 
685
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
686
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
 
687
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
688
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
689
#
 
690
_LT_COPYING
 
691
_LT_LIBTOOL_TAGS
 
692
 
 
693
# ### BEGIN LIBTOOL CONFIG
 
694
_LT_LIBTOOL_CONFIG_VARS
 
695
_LT_LIBTOOL_TAG_VARS
 
696
# ### END LIBTOOL CONFIG
 
697
 
 
698
_LT_EOF
 
699
 
 
700
  case $host_os in
 
701
  aix3*)
 
702
    cat <<\_LT_EOF >> "$cfgfile"
 
703
# AIX sometimes has problems with the GCC collect2 program.  For some
 
704
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
705
# vanish in a puff of smoke.
 
706
if test "X${COLLECT_NAMES+set}" != Xset; then
 
707
  COLLECT_NAMES=
 
708
  export COLLECT_NAMES
 
709
fi
 
710
_LT_EOF
 
711
    ;;
 
712
  esac
 
713
 
 
714
  _LT_PROG_LTMAIN
 
715
 
 
716
  # We use sed instead of cat because bash on DJGPP gets confused if
 
717
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
718
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
719
  # is reportedly fixed, but why not run on old versions too?
 
720
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
 
721
    || (rm -f "$cfgfile"; exit 1)
 
722
 
 
723
  _LT_PROG_XSI_SHELLFNS
 
724
 
 
725
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
 
726
    || (rm -f "$cfgfile"; exit 1)
 
727
 
 
728
  mv -f "$cfgfile" "$ofile" ||
 
729
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
730
  chmod +x "$ofile"
 
731
],
 
732
[cat <<_LT_EOF >> "$ofile"
 
733
 
 
734
dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
 
735
dnl in a comment (ie after a #).
 
736
# ### BEGIN LIBTOOL TAG CONFIG: $1
 
737
_LT_LIBTOOL_TAG_VARS(_LT_TAG)
 
738
# ### END LIBTOOL TAG CONFIG: $1
 
739
_LT_EOF
 
740
])dnl /m4_if
 
741
],
 
742
[m4_if([$1], [], [
 
743
    PACKAGE='$PACKAGE'
 
744
    VERSION='$VERSION'
 
745
    TIMESTAMP='$TIMESTAMP'
 
746
    RM='$RM'
 
747
    ofile='$ofile'], [])
 
748
])dnl /_LT_CONFIG_SAVE_COMMANDS
 
749
])# _LT_CONFIG
 
750
 
 
751
 
 
752
# LT_SUPPORTED_TAG(TAG)
 
753
# ---------------------
 
754
# Trace this macro to discover what tags are supported by the libtool
 
755
# --tag option, using:
 
756
#    autoconf --trace 'LT_SUPPORTED_TAG:$1'
 
757
AC_DEFUN([LT_SUPPORTED_TAG], [])
 
758
 
 
759
 
 
760
# C support is built-in for now
 
761
m4_define([_LT_LANG_C_enabled], [])
 
762
m4_define([_LT_TAGS], [])
 
763
 
 
764
 
 
765
# LT_LANG(LANG)
 
766
# -------------
 
767
# Enable libtool support for the given language if not already enabled.
 
768
AC_DEFUN([LT_LANG],
 
769
[AC_BEFORE([$0], [LT_OUTPUT])dnl
 
770
m4_case([$1],
 
771
  [C],                  [_LT_LANG(C)],
 
772
  [C++],                [_LT_LANG(CXX)],
 
773
  [Java],               [_LT_LANG(GCJ)],
 
774
  [Fortran 77],         [_LT_LANG(F77)],
 
775
  [Fortran],            [_LT_LANG(FC)],
 
776
  [Windows Resource],   [_LT_LANG(RC)],
 
777
  [m4_ifdef([_LT_LANG_]$1[_CONFIG],
 
778
    [_LT_LANG($1)],
 
779
    [m4_fatal([$0: unsupported language: "$1"])])])dnl
 
780
])# LT_LANG
 
781
 
 
782
 
 
783
# _LT_LANG(LANGNAME)
 
784
# ------------------
 
785
m4_defun([_LT_LANG],
 
786
[m4_ifdef([_LT_LANG_]$1[_enabled], [],
 
787
  [LT_SUPPORTED_TAG([$1])dnl
 
788
  m4_append([_LT_TAGS], [$1 ])dnl
 
789
  m4_define([_LT_LANG_]$1[_enabled], [])dnl
 
790
  _LT_LANG_$1_CONFIG($1)])dnl
 
791
])# _LT_LANG
 
792
 
 
793
 
 
794
# _LT_LANG_DEFAULT_CONFIG
 
795
# -----------------------
 
796
m4_defun([_LT_LANG_DEFAULT_CONFIG],
 
797
[AC_PROVIDE_IFELSE([AC_PROG_CXX],
 
798
  [LT_LANG(CXX)],
 
799
  [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
 
800
 
 
801
AC_PROVIDE_IFELSE([AC_PROG_F77],
 
802
  [LT_LANG(F77)],
 
803
  [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
 
804
 
 
805
AC_PROVIDE_IFELSE([AC_PROG_FC],
 
806
  [LT_LANG(FC)],
 
807
  [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
 
808
 
 
809
dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
 
810
dnl pulling things in needlessly.
 
811
AC_PROVIDE_IFELSE([AC_PROG_GCJ],
 
812
  [LT_LANG(GCJ)],
 
813
  [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
 
814
    [LT_LANG(GCJ)],
 
815
    [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
 
816
      [LT_LANG(GCJ)],
 
817
      [m4_ifdef([AC_PROG_GCJ],
 
818
        [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
 
819
       m4_ifdef([A][M_PROG_GCJ],
 
820
        [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
 
821
       m4_ifdef([LT_PROG_GCJ],
 
822
        [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
 
823
 
 
824
AC_PROVIDE_IFELSE([LT_PROG_RC],
 
825
  [LT_LANG(RC)],
 
826
  [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
 
827
])# _LT_LANG_DEFAULT_CONFIG
 
828
 
 
829
# Obsolete macros:
 
830
AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
 
831
AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
 
832
AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
 
833
AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
 
834
dnl aclocal-1.4 backwards compatibility:
 
835
dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
 
836
dnl AC_DEFUN([AC_LIBTOOL_F77], [])
 
837
dnl AC_DEFUN([AC_LIBTOOL_FC], [])
 
838
dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
 
839
 
 
840
 
 
841
# _LT_TAG_COMPILER
 
842
# ----------------
 
843
m4_defun([_LT_TAG_COMPILER],
227
844
[AC_REQUIRE([AC_PROG_CC])dnl
228
845
 
 
846
_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
 
847
_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
 
848
_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
 
849
_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
 
850
 
229
851
# If no C compiler was specified, use CC.
230
852
LTCC=${LTCC-"$CC"}
231
853
 
234
856
 
235
857
# Allow CC to be a program name with arguments.
236
858
compiler=$CC
237
 
])# _LT_AC_SYS_COMPILER
238
 
 
239
 
 
240
 
# _LT_CC_BASENAME(CC)
241
 
# -------------------
242
 
# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
243
 
AC_DEFUN([_LT_CC_BASENAME],
244
 
[for cc_temp in $1""; do
245
 
  case $cc_temp in
246
 
    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
247
 
    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
248
 
    \-*) ;;
249
 
    *) break;;
250
 
  esac
251
 
done
252
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
253
 
])
 
859
])# _LT_TAG_COMPILER
254
860
 
255
861
 
256
862
# _LT_COMPILER_BOILERPLATE
257
863
# ------------------------
258
864
# Check for compiler boilerplate output or warnings with
259
865
# the simple compiler test code.
260
 
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
261
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
866
m4_defun([_LT_COMPILER_BOILERPLATE],
 
867
[m4_require([_LT_DECL_SED])dnl
262
868
ac_outfile=conftest.$ac_objext
263
869
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
264
870
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
265
871
_lt_compiler_boilerplate=`cat conftest.err`
266
 
$rm conftest*
 
872
$RM conftest*
267
873
])# _LT_COMPILER_BOILERPLATE
268
874
 
269
875
 
271
877
# ----------------------
272
878
# Check for linker boilerplate output or warnings with
273
879
# the simple link test code.
274
 
AC_DEFUN([_LT_LINKER_BOILERPLATE],
275
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
880
m4_defun([_LT_LINKER_BOILERPLATE],
 
881
[m4_require([_LT_DECL_SED])dnl
276
882
ac_outfile=conftest.$ac_objext
277
883
echo "$lt_simple_link_test_code" >conftest.$ac_ext
278
884
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
279
885
_lt_linker_boilerplate=`cat conftest.err`
280
 
$rm -r conftest*
 
886
$RM -r conftest*
281
887
])# _LT_LINKER_BOILERPLATE
282
888
 
283
889
# _LT_REQUIRED_DARWIN_CHECKS
284
 
# --------------------------
285
 
# Check for some things on darwin
286
 
AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[
 
890
# -------------------------
 
891
m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
287
892
  case $host_os in
288
893
    rhapsody* | darwin*)
289
894
    AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
290
895
    AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
 
896
    AC_CHECK_TOOL([LIPO], [lipo], [:])
 
897
    AC_CHECK_TOOL([OTOOL], [otool], [:])
 
898
    AC_CHECK_TOOL([OTOOL64], [otool64], [:])
 
899
    _LT_DECL([], [DSYMUTIL], [1],
 
900
      [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
 
901
    _LT_DECL([], [NMEDIT], [1],
 
902
      [Tool to change global to local symbols on Mac OS X])
 
903
    _LT_DECL([], [LIPO], [1],
 
904
      [Tool to manipulate fat objects and archives on Mac OS X])
 
905
    _LT_DECL([], [OTOOL], [1],
 
906
      [ldd/readelf like tool for Mach-O binaries on Mac OS X])
 
907
    _LT_DECL([], [OTOOL64], [1],
 
908
      [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
291
909
 
292
910
    AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
293
911
      [lt_cv_apple_cc_single_mod=no
294
912
      if test -z "${LT_MULTI_MODULE}"; then
295
 
   # By default we will add the -single_module flag. You can override
296
 
   # by either setting the environment variable LT_MULTI_MODULE
297
 
   # non-empty at configure time, or by adding -multi_module to the
298
 
   # link flags.
299
 
   echo "int foo(void){return 1;}" > conftest.c
300
 
   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
301
 
     -dynamiclib ${wl}-single_module conftest.c
302
 
   if test -f libconftest.dylib; then
303
 
     lt_cv_apple_cc_single_mod=yes
304
 
     rm -rf libconftest.dylib*
305
 
   fi
306
 
   rm conftest.c
 
913
        # By default we will add the -single_module flag. You can override
 
914
        # by either setting the environment variable LT_MULTI_MODULE
 
915
        # non-empty at configure time, or by adding -multi_module to the
 
916
        # link flags.
 
917
        rm -rf libconftest.dylib*
 
918
        echo "int foo(void){return 1;}" > conftest.c
 
919
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
920
-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
 
921
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
922
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
 
923
        _lt_result=$?
 
924
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
 
925
          lt_cv_apple_cc_single_mod=yes
 
926
        else
 
927
          cat conftest.err >&AS_MESSAGE_LOG_FD
 
928
        fi
 
929
        rm -rf libconftest.dylib*
 
930
        rm -f conftest.*
307
931
      fi])
308
932
    AC_CACHE_CHECK([for -exported_symbols_list linker flag],
309
933
      [lt_cv_ld_exported_symbols_list],
312
936
      echo "_main" > conftest.sym
313
937
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
314
938
      AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
315
 
   [lt_cv_ld_exported_symbols_list=yes],
316
 
   [lt_cv_ld_exported_symbols_list=no])
317
 
   LDFLAGS="$save_LDFLAGS"
 
939
        [lt_cv_ld_exported_symbols_list=yes],
 
940
        [lt_cv_ld_exported_symbols_list=no])
 
941
        LDFLAGS="$save_LDFLAGS"
318
942
    ])
319
943
    case $host_os in
320
 
    rhapsody* | darwin1.[[0123]])
 
944
    rhapsody* | darwin1.[[012]])
321
945
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
322
946
    darwin1.*)
323
 
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
324
 
    darwin*)
 
947
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
948
    darwin*) # darwin 5.x on 
325
949
      # if running on 10.5 or later, the deployment target defaults
326
950
      # to the OS version, if on x86, and 10.4, the deployment
327
 
      # target defaults to 10.4. Don't you love it?
 
951
      # target defaults to 10.4. Don't you love it? 
328
952
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
329
 
   10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
330
 
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
331
 
   10.[[012]]*)
332
 
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
333
 
   10.*)
334
 
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
953
        10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
 
954
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
955
        10.[[012]]*)
 
956
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
957
        10.*)
 
958
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
335
959
      esac
336
960
    ;;
337
961
  esac
341
965
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
342
966
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
343
967
    else
344
 
      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
 
968
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
345
969
    fi
346
970
    if test "$DSYMUTIL" != ":"; then
347
 
      _lt_dsymutil="~$DSYMUTIL \$lib || :"
 
971
      _lt_dsymutil='~$DSYMUTIL $lib || :'
348
972
    else
349
973
      _lt_dsymutil=
350
974
    fi
352
976
  esac
353
977
])
354
978
 
355
 
# _LT_AC_SYS_LIBPATH_AIX
356
 
# ----------------------
 
979
 
 
980
# _LT_DARWIN_LINKER_FEATURES
 
981
# --------------------------
 
982
# Checks for linker and compiler features on darwin
 
983
m4_defun([_LT_DARWIN_LINKER_FEATURES],
 
984
[
 
985
  m4_require([_LT_REQUIRED_DARWIN_CHECKS])
 
986
  _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
987
  _LT_TAGVAR(hardcode_direct, $1)=no
 
988
  _LT_TAGVAR(hardcode_automatic, $1)=yes
 
989
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
990
  _LT_TAGVAR(whole_archive_flag_spec, $1)=''
 
991
  _LT_TAGVAR(link_all_deplibs, $1)=yes
 
992
  _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
 
993
  if test "$GCC" = "yes"; then
 
994
    output_verbose_link_cmd=echo
 
995
    _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
996
    _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
997
    _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
 
998
    _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
 
999
    m4_if([$1], [CXX],
 
1000
[   if test "$lt_cv_apple_cc_single_mod" != "yes"; then
 
1001
      _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
 
1002
      _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
 
1003
    fi
 
1004
],[])
 
1005
  else
 
1006
  _LT_TAGVAR(ld_shlibs, $1)=no
 
1007
  fi
 
1008
])
 
1009
 
 
1010
# _LT_SYS_MODULE_PATH_AIX
 
1011
# -----------------------
357
1012
# Links a minimal program and checks the executable
358
1013
# for the system default hardcoded library path. In most cases,
359
1014
# this is /usr/lib:/lib, but when the MPI compilers are used
360
1015
# the location of the communication and MPI libs are included too.
361
1016
# If we don't find anything, use the default library path according
362
1017
# to the aix ld manual.
363
 
AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
364
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1018
m4_defun([_LT_SYS_MODULE_PATH_AIX],
 
1019
[m4_require([_LT_DECL_SED])dnl
365
1020
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
366
1021
lt_aix_libpath_sed='
367
1022
    /Import File Strings/,/^$/ {
376
1031
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
377
1032
fi],[])
378
1033
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
379
 
])# _LT_AC_SYS_LIBPATH_AIX
380
 
 
381
 
 
382
 
# _LT_AC_SHELL_INIT(ARG)
383
 
# ----------------------
384
 
AC_DEFUN([_LT_AC_SHELL_INIT],
 
1034
])# _LT_SYS_MODULE_PATH_AIX
 
1035
 
 
1036
 
 
1037
# _LT_SHELL_INIT(ARG)
 
1038
# -------------------
 
1039
m4_define([_LT_SHELL_INIT],
385
1040
[ifdef([AC_DIVERSION_NOTICE],
386
1041
             [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
387
1042
         [AC_DIVERT_PUSH(NOTICE)])
388
1043
$1
389
1044
AC_DIVERT_POP
390
 
])# _LT_AC_SHELL_INIT
391
 
 
392
 
 
393
 
# _LT_AC_PROG_ECHO_BACKSLASH
394
 
# --------------------------
 
1045
])# _LT_SHELL_INIT
 
1046
 
 
1047
 
 
1048
# _LT_PROG_ECHO_BACKSLASH
 
1049
# -----------------------
395
1050
# Add some code to the start of the generated configure script which
396
1051
# will find an echo command which doesn't interpret backslashes.
397
 
AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
398
 
[_LT_AC_SHELL_INIT([
 
1052
m4_defun([_LT_PROG_ECHO_BACKSLASH],
 
1053
[_LT_SHELL_INIT([
399
1054
# Check that we are running under the correct shell.
400
1055
SHELL=${CONFIG_SHELL-/bin/sh}
401
1056
 
402
 
case X$ECHO in
 
1057
case X$lt_ECHO in
403
1058
X*--fallback-echo)
404
1059
  # Remove one level of quotation (which was required for Make).
405
 
  ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
 
1060
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
406
1061
  ;;
407
1062
esac
408
1063
 
409
 
echo=${ECHO-echo}
 
1064
ECHO=${lt_ECHO-echo}
410
1065
if test "X[$]1" = X--no-reexec; then
411
1066
  # Discard the --no-reexec flag, and continue.
412
1067
  shift
413
1068
elif test "X[$]1" = X--fallback-echo; then
414
1069
  # Avoid inline document here, it may be left over
415
1070
  :
416
 
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
417
 
  # Yippee, $echo works!
 
1071
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
 
1072
  # Yippee, $ECHO works!
418
1073
  :
419
1074
else
420
1075
  # Restart under the correct shell.
424
1079
if test "X[$]1" = X--fallback-echo; then
425
1080
  # used as fallback echo
426
1081
  shift
427
 
  cat <<EOF
 
1082
  cat <<_LT_EOF
428
1083
[$]*
429
 
EOF
 
1084
_LT_EOF
430
1085
  exit 0
431
1086
fi
432
1087
 
434
1089
# if CDPATH is set.
435
1090
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
436
1091
 
437
 
if test -z "$ECHO"; then
438
 
if test "X${echo_test_string+set}" != Xset; then
439
 
# find a string as large as possible, as long as the shell can cope with it
440
 
  for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
441
 
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
442
 
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
443
 
       echo_test_string=`eval $cmd` &&
444
 
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
445
 
    then
446
 
      break
447
 
    fi
448
 
  done
449
 
fi
450
 
 
451
 
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
452
 
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
453
 
   test "X$echo_testing_string" = "X$echo_test_string"; then
454
 
  :
455
 
else
456
 
  # The Solaris, AIX, and Digital Unix default echo programs unquote
457
 
  # backslashes.  This makes it impossible to quote backslashes using
458
 
  #   echo "$something" | sed 's/\\/\\\\/g'
459
 
  #
460
 
  # So, first we look for a working echo in the user's PATH.
461
 
 
462
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
463
 
  for dir in $PATH /usr/ucb; do
 
1092
if test -z "$lt_ECHO"; then
 
1093
  if test "X${echo_test_string+set}" != Xset; then
 
1094
    # find a string as large as possible, as long as the shell can cope with it
 
1095
    for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
 
1096
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
1097
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
 
1098
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
 
1099
      then
 
1100
        break
 
1101
      fi
 
1102
    done
 
1103
  fi
 
1104
 
 
1105
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
 
1106
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
 
1107
     test "X$echo_testing_string" = "X$echo_test_string"; then
 
1108
    :
 
1109
  else
 
1110
    # The Solaris, AIX, and Digital Unix default echo programs unquote
 
1111
    # backslashes.  This makes it impossible to quote backslashes using
 
1112
    #   echo "$something" | sed 's/\\/\\\\/g'
 
1113
    #
 
1114
    # So, first we look for a working echo in the user's PATH.
 
1115
 
 
1116
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
1117
    for dir in $PATH /usr/ucb; do
 
1118
      IFS="$lt_save_ifs"
 
1119
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
1120
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
1121
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
1122
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
1123
        ECHO="$dir/echo"
 
1124
        break
 
1125
      fi
 
1126
    done
464
1127
    IFS="$lt_save_ifs"
465
 
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
466
 
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
467
 
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
468
 
       test "X$echo_testing_string" = "X$echo_test_string"; then
469
 
      echo="$dir/echo"
470
 
      break
471
 
    fi
472
 
  done
473
 
  IFS="$lt_save_ifs"
474
1128
 
475
 
  if test "X$echo" = Xecho; then
476
 
    # We didn't find a better echo, so look for alternatives.
477
 
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
478
 
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
479
 
       test "X$echo_testing_string" = "X$echo_test_string"; then
480
 
      # This shell has a builtin print -r that does the trick.
481
 
      echo='print -r'
482
 
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
483
 
         test "X$CONFIG_SHELL" != X/bin/ksh; then
484
 
      # If we have ksh, try running configure again with it.
485
 
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
486
 
      export ORIGINAL_CONFIG_SHELL
487
 
      CONFIG_SHELL=/bin/ksh
488
 
      export CONFIG_SHELL
489
 
      exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
490
 
    else
491
 
      # Try using printf.
492
 
      echo='printf %s\n'
493
 
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
494
 
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
495
 
         test "X$echo_testing_string" = "X$echo_test_string"; then
496
 
        # Cool, printf works
497
 
        :
498
 
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
499
 
           test "X$echo_testing_string" = 'X\t' &&
500
 
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
501
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
502
 
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
503
 
        export CONFIG_SHELL
504
 
        SHELL="$CONFIG_SHELL"
505
 
        export SHELL
506
 
        echo="$CONFIG_SHELL [$]0 --fallback-echo"
507
 
      elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
508
 
           test "X$echo_testing_string" = 'X\t' &&
509
 
           echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
510
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
511
 
        echo="$CONFIG_SHELL [$]0 --fallback-echo"
 
1129
    if test "X$ECHO" = Xecho; then
 
1130
      # We didn't find a better echo, so look for alternatives.
 
1131
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
 
1132
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
 
1133
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
1134
        # This shell has a builtin print -r that does the trick.
 
1135
        ECHO='print -r'
 
1136
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
 
1137
           test "X$CONFIG_SHELL" != X/bin/ksh; then
 
1138
        # If we have ksh, try running configure again with it.
 
1139
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
1140
        export ORIGINAL_CONFIG_SHELL
 
1141
        CONFIG_SHELL=/bin/ksh
 
1142
        export CONFIG_SHELL
 
1143
        exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
512
1144
      else
513
 
        # maybe with a smaller string...
514
 
        prev=:
515
 
 
516
 
        for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
517
 
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
518
 
          then
519
 
            break
 
1145
        # Try using printf.
 
1146
        ECHO='printf %s\n'
 
1147
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
 
1148
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
 
1149
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
1150
          # Cool, printf works
 
1151
          :
 
1152
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
 
1153
             test "X$echo_testing_string" = 'X\t' &&
 
1154
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
1155
             test "X$echo_testing_string" = "X$echo_test_string"; then
 
1156
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
1157
          export CONFIG_SHELL
 
1158
          SHELL="$CONFIG_SHELL"
 
1159
          export SHELL
 
1160
          ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
 
1161
        elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
 
1162
             test "X$echo_testing_string" = 'X\t' &&
 
1163
             echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
1164
             test "X$echo_testing_string" = "X$echo_test_string"; then
 
1165
          ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
 
1166
        else
 
1167
          # maybe with a smaller string...
 
1168
          prev=:
 
1169
 
 
1170
          for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
 
1171
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
 
1172
            then
 
1173
              break
 
1174
            fi
 
1175
            prev="$cmd"
 
1176
          done
 
1177
 
 
1178
          if test "$prev" != 'sed 50q "[$]0"'; then
 
1179
            echo_test_string=`eval $prev`
 
1180
            export echo_test_string
 
1181
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
 
1182
          else
 
1183
            # Oops.  We lost completely, so just stick with echo.
 
1184
            ECHO=echo
520
1185
          fi
521
 
          prev="$cmd"
522
 
        done
523
 
 
524
 
        if test "$prev" != 'sed 50q "[$]0"'; then
525
 
          echo_test_string=`eval $prev`
526
 
          export echo_test_string
527
 
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
528
 
        else
529
 
          # Oops.  We lost completely, so just stick with echo.
530
 
          echo=echo
531
 
        fi
 
1186
        fi
532
1187
      fi
533
1188
    fi
534
1189
  fi
535
1190
fi
536
 
fi
537
1191
 
538
1192
# Copy echo and quote the copy suitably for passing to libtool from
539
1193
# the Makefile, instead of quoting the original, which is used later.
540
 
ECHO=$echo
541
 
if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
542
 
   ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
 
1194
lt_ECHO=$ECHO
 
1195
if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
 
1196
   lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
543
1197
fi
544
1198
 
545
 
AC_SUBST(ECHO)
546
 
])])# _LT_AC_PROG_ECHO_BACKSLASH
547
 
 
548
 
 
549
 
# _LT_AC_LOCK
550
 
# -----------
551
 
AC_DEFUN([_LT_AC_LOCK],
 
1199
AC_SUBST(lt_ECHO)
 
1200
])
 
1201
_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
 
1202
_LT_DECL([], [ECHO], [1],
 
1203
    [An echo program that does not interpret backslashes])
 
1204
])# _LT_PROG_ECHO_BACKSLASH
 
1205
 
 
1206
 
 
1207
# _LT_ENABLE_LOCK
 
1208
# ---------------
 
1209
m4_defun([_LT_ENABLE_LOCK],
552
1210
[AC_ARG_ENABLE([libtool-lock],
553
 
    [AC_HELP_STRING([--disable-libtool-lock],
554
 
        [avoid locking (might break parallel builds)])])
 
1211
  [AS_HELP_STRING([--disable-libtool-lock],
 
1212
    [avoid locking (might break parallel builds)])])
555
1213
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
556
1214
 
557
1215
# Some flags need to be propagated to the compiler or linker for good
562
1220
  echo 'int i;' > conftest.$ac_ext
563
1221
  if AC_TRY_EVAL(ac_compile); then
564
1222
    case `/usr/bin/file conftest.$ac_objext` in
565
 
    *ELF-32*)
566
 
      HPUX_IA64_MODE="32"
567
 
      ;;
568
 
    *ELF-64*)
569
 
      HPUX_IA64_MODE="64"
570
 
      ;;
 
1223
      *ELF-32*)
 
1224
        HPUX_IA64_MODE="32"
 
1225
        ;;
 
1226
      *ELF-64*)
 
1227
        HPUX_IA64_MODE="64"
 
1228
        ;;
571
1229
    esac
572
1230
  fi
573
1231
  rm -rf conftest*
576
1234
  # Find out which ABI we are using.
577
1235
  echo '[#]line __oline__ "configure"' > conftest.$ac_ext
578
1236
  if AC_TRY_EVAL(ac_compile); then
579
 
   if test "$lt_cv_prog_gnu_ld" = yes; then
580
 
    case `/usr/bin/file conftest.$ac_objext` in
581
 
    *32-bit*)
582
 
      LD="${LD-ld} -melf32bsmip"
583
 
      ;;
584
 
    *N32*)
585
 
      LD="${LD-ld} -melf32bmipn32"
586
 
      ;;
587
 
    *64-bit*)
588
 
      LD="${LD-ld} -melf64bmip"
589
 
      ;;
590
 
    esac
591
 
   else
592
 
    case `/usr/bin/file conftest.$ac_objext` in
593
 
    *32-bit*)
594
 
      LD="${LD-ld} -32"
595
 
      ;;
596
 
    *N32*)
597
 
      LD="${LD-ld} -n32"
598
 
      ;;
599
 
    *64-bit*)
600
 
      LD="${LD-ld} -64"
601
 
      ;;
602
 
    esac
603
 
   fi
 
1237
    if test "$lt_cv_prog_gnu_ld" = yes; then
 
1238
      case `/usr/bin/file conftest.$ac_objext` in
 
1239
        *32-bit*)
 
1240
          LD="${LD-ld} -melf32bsmip"
 
1241
          ;;
 
1242
        *N32*)
 
1243
          LD="${LD-ld} -melf32bmipn32"
 
1244
          ;;
 
1245
        *64-bit*)
 
1246
          LD="${LD-ld} -melf64bmip"
 
1247
        ;;
 
1248
      esac
 
1249
    else
 
1250
      case `/usr/bin/file conftest.$ac_objext` in
 
1251
        *32-bit*)
 
1252
          LD="${LD-ld} -32"
 
1253
          ;;
 
1254
        *N32*)
 
1255
          LD="${LD-ld} -n32"
 
1256
          ;;
 
1257
        *64-bit*)
 
1258
          LD="${LD-ld} -64"
 
1259
          ;;
 
1260
      esac
 
1261
    fi
604
1262
  fi
605
1263
  rm -rf conftest*
606
1264
  ;;
607
1265
 
608
1266
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
609
 
s390*-*linux*|sparc*-*linux*)
 
1267
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
610
1268
  # Find out which ABI we are using.
611
1269
  echo 'int i;' > conftest.$ac_ext
612
1270
  if AC_TRY_EVAL(ac_compile); then
613
1271
    case `/usr/bin/file conftest.o` in
614
 
    *32-bit*)
615
 
      case $host in
616
 
        x86_64-*kfreebsd*-gnu)
617
 
          LD="${LD-ld} -m elf_i386_fbsd"
618
 
          ;;
619
 
        x86_64-*linux*)
620
 
          LD="${LD-ld} -m elf_i386"
621
 
          ;;
622
 
        ppc64-*linux*|powerpc64-*linux*)
623
 
          LD="${LD-ld} -m elf32ppclinux"
624
 
          ;;
625
 
        s390x-*linux*)
626
 
          LD="${LD-ld} -m elf_s390"
627
 
          ;;
628
 
        sparc64-*linux*)
629
 
          LD="${LD-ld} -m elf32_sparc"
630
 
          ;;
631
 
      esac
632
 
      ;;
633
 
    *64-bit*)
634
 
      case $host in
635
 
        x86_64-*kfreebsd*-gnu)
636
 
          LD="${LD-ld} -m elf_x86_64_fbsd"
637
 
          ;;
638
 
        x86_64-*linux*)
639
 
          LD="${LD-ld} -m elf_x86_64"
640
 
          ;;
641
 
        ppc*-*linux*|powerpc*-*linux*)
642
 
          LD="${LD-ld} -m elf64ppc"
643
 
          ;;
644
 
        s390*-*linux*)
645
 
          LD="${LD-ld} -m elf64_s390"
646
 
          ;;
647
 
        sparc*-*linux*)
648
 
          LD="${LD-ld} -m elf64_sparc"
649
 
          ;;
650
 
      esac
651
 
      ;;
 
1272
      *32-bit*)
 
1273
        case $host in
 
1274
          x86_64-*kfreebsd*-gnu)
 
1275
            LD="${LD-ld} -m elf_i386_fbsd"
 
1276
            ;;
 
1277
          x86_64-*linux*)
 
1278
            LD="${LD-ld} -m elf_i386"
 
1279
            ;;
 
1280
          ppc64-*linux*|powerpc64-*linux*)
 
1281
            LD="${LD-ld} -m elf32ppclinux"
 
1282
            ;;
 
1283
          s390x-*linux*)
 
1284
            LD="${LD-ld} -m elf_s390"
 
1285
            ;;
 
1286
          sparc64-*linux*)
 
1287
            LD="${LD-ld} -m elf32_sparc"
 
1288
            ;;
 
1289
        esac
 
1290
        ;;
 
1291
      *64-bit*)
 
1292
        case $host in
 
1293
          x86_64-*kfreebsd*-gnu)
 
1294
            LD="${LD-ld} -m elf_x86_64_fbsd"
 
1295
            ;;
 
1296
          x86_64-*linux*)
 
1297
            LD="${LD-ld} -m elf_x86_64"
 
1298
            ;;
 
1299
          ppc*-*linux*|powerpc*-*linux*)
 
1300
            LD="${LD-ld} -m elf64ppc"
 
1301
            ;;
 
1302
          s390*-*linux*|s390*-*tpf*)
 
1303
            LD="${LD-ld} -m elf64_s390"
 
1304
            ;;
 
1305
          sparc*-*linux*)
 
1306
            LD="${LD-ld} -m elf64_sparc"
 
1307
            ;;
 
1308
        esac
 
1309
        ;;
652
1310
    esac
653
1311
  fi
654
1312
  rm -rf conftest*
660
1318
  CFLAGS="$CFLAGS -belf"
661
1319
  AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
662
1320
    [AC_LANG_PUSH(C)
663
 
     AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
 
1321
     AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
664
1322
     AC_LANG_POP])
665
1323
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
666
1324
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
676
1334
      case $lt_cv_prog_gnu_ld in
677
1335
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
678
1336
      *)
679
 
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
1337
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
680
1338
          LD="${LD-ld} -64"
681
1339
        fi
682
1340
        ;;
686
1344
  fi
687
1345
  rm -rf conftest*
688
1346
  ;;
689
 
 
690
 
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
691
 
[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
692
 
  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
693
 
  AC_CHECK_TOOL(AS, as, false)
694
 
  AC_CHECK_TOOL(OBJDUMP, objdump, false)
695
 
  ;;
696
 
  ])
697
1347
esac
698
1348
 
699
1349
need_locks="$enable_libtool_lock"
700
 
 
701
 
])# _LT_AC_LOCK
702
 
 
703
 
 
704
 
# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
 
1350
])# _LT_ENABLE_LOCK
 
1351
 
 
1352
 
 
1353
# _LT_CMD_OLD_ARCHIVE
 
1354
# -------------------
 
1355
m4_defun([_LT_CMD_OLD_ARCHIVE],
 
1356
[AC_CHECK_TOOL(AR, ar, false)
 
1357
test -z "$AR" && AR=ar
 
1358
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
1359
_LT_DECL([], [AR], [1], [The archiver])
 
1360
_LT_DECL([], [AR_FLAGS], [1])
 
1361
 
 
1362
AC_CHECK_TOOL(STRIP, strip, :)
 
1363
test -z "$STRIP" && STRIP=:
 
1364
_LT_DECL([], [STRIP], [1], [A symbol stripping program])
 
1365
 
 
1366
AC_CHECK_TOOL(RANLIB, ranlib, :)
 
1367
test -z "$RANLIB" && RANLIB=:
 
1368
_LT_DECL([], [RANLIB], [1],
 
1369
    [Commands used to install an old-style archive])
 
1370
 
 
1371
# Determine commands to create old-style static archives.
 
1372
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
1373
old_postinstall_cmds='chmod 644 $oldlib'
 
1374
old_postuninstall_cmds=
 
1375
 
 
1376
if test -n "$RANLIB"; then
 
1377
  case $host_os in
 
1378
  openbsd*)
 
1379
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
1380
    ;;
 
1381
  *)
 
1382
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
1383
    ;;
 
1384
  esac
 
1385
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
1386
fi
 
1387
_LT_DECL([], [old_postinstall_cmds], [2])
 
1388
_LT_DECL([], [old_postuninstall_cmds], [2])
 
1389
_LT_TAGDECL([], [old_archive_cmds], [2],
 
1390
    [Commands used to build an old-style archive])
 
1391
])# _LT_CMD_OLD_ARCHIVE
 
1392
 
 
1393
 
 
1394
# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
705
1395
#               [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
706
1396
# ----------------------------------------------------------------
707
1397
# Check whether the given compiler option works
708
 
AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
709
 
[AC_REQUIRE([LT_AC_PROG_SED])
 
1398
AC_DEFUN([_LT_COMPILER_OPTION],
 
1399
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
1400
m4_require([_LT_DECL_SED])dnl
710
1401
AC_CACHE_CHECK([$1], [$2],
711
1402
  [$2=no
712
 
  ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
 
1403
   m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
713
1404
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
714
1405
   lt_compiler_flag="$3"
715
1406
   # Insert the option either (1) after the last *FLAGS variable, or
729
1420
   if (exit $ac_status) && test -s "$ac_outfile"; then
730
1421
     # The compiler can only warn and ignore the option if not recognized
731
1422
     # So say no if there are warnings other than the usual output.
732
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
1423
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
733
1424
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
734
1425
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
735
1426
       $2=yes
736
1427
     fi
737
1428
   fi
738
 
   $rm conftest*
 
1429
   $RM conftest*
739
1430
])
740
1431
 
741
1432
if test x"[$]$2" = xyes; then
742
 
    ifelse([$5], , :, [$5])
 
1433
    m4_if([$5], , :, [$5])
743
1434
else
744
 
    ifelse([$6], , :, [$6])
 
1435
    m4_if([$6], , :, [$6])
745
1436
fi
746
 
])# AC_LIBTOOL_COMPILER_OPTION
747
 
 
748
 
 
749
 
# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
750
 
#                          [ACTION-SUCCESS], [ACTION-FAILURE])
751
 
# ------------------------------------------------------------
752
 
# Check whether the given compiler option works
753
 
AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
754
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1437
])# _LT_COMPILER_OPTION
 
1438
 
 
1439
# Old name:
 
1440
AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
 
1441
dnl aclocal-1.4 backwards compatibility:
 
1442
dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
 
1443
 
 
1444
 
 
1445
# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
 
1446
#                  [ACTION-SUCCESS], [ACTION-FAILURE])
 
1447
# ----------------------------------------------------
 
1448
# Check whether the given linker option works
 
1449
AC_DEFUN([_LT_LINKER_OPTION],
 
1450
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
1451
m4_require([_LT_DECL_SED])dnl
755
1452
AC_CACHE_CHECK([$1], [$2],
756
1453
  [$2=no
757
1454
   save_LDFLAGS="$LDFLAGS"
763
1460
     if test -s conftest.err; then
764
1461
       # Append any errors to the config.log.
765
1462
       cat conftest.err 1>&AS_MESSAGE_LOG_FD
766
 
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
1463
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
767
1464
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
768
1465
       if diff conftest.exp conftest.er2 >/dev/null; then
769
1466
         $2=yes
772
1469
       $2=yes
773
1470
     fi
774
1471
   fi
775
 
   $rm -r conftest*
 
1472
   $RM -r conftest*
776
1473
   LDFLAGS="$save_LDFLAGS"
777
1474
])
778
1475
 
779
1476
if test x"[$]$2" = xyes; then
780
 
    ifelse([$4], , :, [$4])
 
1477
    m4_if([$4], , :, [$4])
781
1478
else
782
 
    ifelse([$5], , :, [$5])
 
1479
    m4_if([$5], , :, [$5])
783
1480
fi
784
 
])# AC_LIBTOOL_LINKER_OPTION
785
 
 
786
 
 
787
 
# AC_LIBTOOL_SYS_MAX_CMD_LEN
788
 
# --------------------------
789
 
AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
790
 
[# find the maximum length of command line arguments
 
1481
])# _LT_LINKER_OPTION
 
1482
 
 
1483
# Old name:
 
1484
AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
 
1485
dnl aclocal-1.4 backwards compatibility:
 
1486
dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
 
1487
 
 
1488
 
 
1489
# LT_CMD_MAX_LEN
 
1490
#---------------
 
1491
AC_DEFUN([LT_CMD_MAX_LEN],
 
1492
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
1493
# find the maximum length of command line arguments
791
1494
AC_MSG_CHECKING([the maximum length of command line arguments])
792
1495
AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
793
1496
  i=0
864
1567
  sysv5* | sco5v6* | sysv4.2uw2*)
865
1568
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
866
1569
    if test -n "$kargmax"; then
867
 
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[        ]]//'`
 
1570
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[         ]]//'`
868
1571
    else
869
1572
      lt_cv_sys_max_cmd_len=32768
870
1573
    fi
875
1578
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
876
1579
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
877
1580
    else
 
1581
      # Make teststring a little bigger before we do anything with it.
 
1582
      # a 1K string should be a reasonable start.
 
1583
      for i in 1 2 3 4 5 6 7 8 ; do
 
1584
        teststring=$teststring$teststring
 
1585
      done
878
1586
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
879
 
      while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
880
 
               = "XX$teststring") >/dev/null 2>&1 &&
881
 
              new_result=`expr "X$teststring" : ".*" 2>&1` &&
882
 
              lt_cv_sys_max_cmd_len=$new_result &&
 
1587
      # If test is not a shell built-in, we'll probably end up computing a
 
1588
      # maximum length that is only half of the actual maximum length, but
 
1589
      # we can't tell.
 
1590
      while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
 
1591
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
883
1592
              test $i != 17 # 1/2 MB should be enough
884
1593
      do
885
1594
        i=`expr $i + 1`
886
1595
        teststring=$teststring$teststring
887
1596
      done
 
1597
      # Only check the string length outside the loop.
 
1598
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
888
1599
      teststring=
889
 
      # Add a significant safety factor because C++ compilers can tack on massive
890
 
      # amounts of additional arguments before passing them to the linker.
891
 
      # It appears as though 1/2 is a usable value.
 
1600
      # Add a significant safety factor because C++ compilers can tack on
 
1601
      # massive amounts of additional arguments before passing them to the
 
1602
      # linker.  It appears as though 1/2 is a usable value.
892
1603
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
893
1604
    fi
894
1605
    ;;
899
1610
else
900
1611
  AC_MSG_RESULT(none)
901
1612
fi
902
 
])# AC_LIBTOOL_SYS_MAX_CMD_LEN
903
 
 
904
 
 
905
 
# _LT_AC_CHECK_DLFCN
906
 
# ------------------
907
 
AC_DEFUN([_LT_AC_CHECK_DLFCN],
908
 
[AC_CHECK_HEADERS(dlfcn.h)dnl
909
 
])# _LT_AC_CHECK_DLFCN
910
 
 
911
 
 
912
 
# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
913
 
#                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
914
 
# ---------------------------------------------------------------------
915
 
AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
916
 
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
 
1613
max_cmd_len=$lt_cv_sys_max_cmd_len
 
1614
_LT_DECL([], [max_cmd_len], [0],
 
1615
    [What is the maximum length of a command?])
 
1616
])# LT_CMD_MAX_LEN
 
1617
 
 
1618
# Old name:
 
1619
AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
 
1620
dnl aclocal-1.4 backwards compatibility:
 
1621
dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
 
1622
 
 
1623
 
 
1624
# _LT_HEADER_DLFCN
 
1625
# ----------------
 
1626
m4_defun([_LT_HEADER_DLFCN],
 
1627
[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
 
1628
])# _LT_HEADER_DLFCN
 
1629
 
 
1630
 
 
1631
# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
 
1632
#                      ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
 
1633
# ----------------------------------------------------------------
 
1634
m4_defun([_LT_TRY_DLOPEN_SELF],
 
1635
[m4_require([_LT_HEADER_DLFCN])dnl
917
1636
if test "$cross_compiling" = yes; then :
918
1637
  [$4]
919
1638
else
920
1639
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
921
1640
  lt_status=$lt_dlunknown
922
 
  cat > conftest.$ac_ext <<EOF
 
1641
  cat > conftest.$ac_ext <<_LT_EOF
923
1642
[#line __oline__ "configure"
924
1643
#include "confdefs.h"
925
1644
 
982
1701
 
983
1702
    exit (status);
984
1703
}]
985
 
EOF
 
1704
_LT_EOF
986
1705
  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
987
1706
    (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
988
1707
    lt_status=$?
997
1716
  fi
998
1717
fi
999
1718
rm -fr conftest*
1000
 
])# _LT_AC_TRY_DLOPEN_SELF
1001
 
 
1002
 
 
1003
 
# AC_LIBTOOL_DLOPEN_SELF
1004
 
# ----------------------
1005
 
AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
1006
 
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
 
1719
])# _LT_TRY_DLOPEN_SELF
 
1720
 
 
1721
 
 
1722
# LT_SYS_DLOPEN_SELF
 
1723
# ------------------
 
1724
AC_DEFUN([LT_SYS_DLOPEN_SELF],
 
1725
[m4_require([_LT_HEADER_DLFCN])dnl
1007
1726
if test "x$enable_dlopen" != xyes; then
1008
1727
  enable_dlopen=unknown
1009
1728
  enable_dlopen_self=unknown
1022
1741
  mingw* | pw32*)
1023
1742
    lt_cv_dlopen="LoadLibrary"
1024
1743
    lt_cv_dlopen_libs=
1025
 
   ;;
 
1744
    ;;
1026
1745
 
1027
1746
  cygwin*)
1028
1747
    lt_cv_dlopen="dlopen"
1029
1748
    lt_cv_dlopen_libs=
1030
 
   ;;
 
1749
    ;;
1031
1750
 
1032
1751
  darwin*)
1033
1752
  # if libdl is installed we need to link against it
1037
1756
    lt_cv_dlopen_libs=
1038
1757
    lt_cv_dlopen_self=yes
1039
1758
    ])
1040
 
   ;;
 
1759
    ;;
1041
1760
 
1042
1761
  *)
1043
1762
    AC_CHECK_FUNC([shl_load],
1079
1798
 
1080
1799
    AC_CACHE_CHECK([whether a program can dlopen itself],
1081
1800
          lt_cv_dlopen_self, [dnl
1082
 
          _LT_AC_TRY_DLOPEN_SELF(
 
1801
          _LT_TRY_DLOPEN_SELF(
1083
1802
            lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
1084
1803
            lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
1085
1804
    ])
1087
1806
    if test "x$lt_cv_dlopen_self" = xyes; then
1088
1807
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1089
1808
      AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
1090
 
          lt_cv_dlopen_self_static, [dnl
1091
 
          _LT_AC_TRY_DLOPEN_SELF(
 
1809
          lt_cv_dlopen_self_static, [dnl
 
1810
          _LT_TRY_DLOPEN_SELF(
1092
1811
            lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
1093
1812
            lt_cv_dlopen_self_static=no,  lt_cv_dlopen_self_static=cross)
1094
1813
      ])
1110
1829
  *) enable_dlopen_self_static=unknown ;;
1111
1830
  esac
1112
1831
fi
1113
 
])# AC_LIBTOOL_DLOPEN_SELF
1114
 
 
1115
 
 
1116
 
# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
1117
 
# ---------------------------------
1118
 
# Check to see if options -c and -o are simultaneously supported by compiler
1119
 
AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1120
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
1121
 
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
 
1832
_LT_DECL([dlopen_support], [enable_dlopen], [0],
 
1833
         [Whether dlopen is supported])
 
1834
_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
 
1835
         [Whether dlopen of programs is supported])
 
1836
_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
 
1837
         [Whether dlopen of statically linked programs is supported])
 
1838
])# LT_SYS_DLOPEN_SELF
 
1839
 
 
1840
# Old name:
 
1841
AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
 
1842
dnl aclocal-1.4 backwards compatibility:
 
1843
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
 
1844
 
 
1845
 
 
1846
# _LT_COMPILER_C_O([TAGNAME])
 
1847
# ---------------------------
 
1848
# Check to see if options -c and -o are simultaneously supported by compiler.
 
1849
# This macro does not hard code the compiler like AC_PROG_CC_C_O.
 
1850
m4_defun([_LT_COMPILER_C_O],
 
1851
[m4_require([_LT_DECL_SED])dnl
 
1852
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
1853
m4_require([_LT_TAG_COMPILER])dnl
1122
1854
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1123
 
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1124
 
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1125
 
   $rm -r conftest 2>/dev/null
 
1855
  [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
 
1856
  [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
 
1857
   $RM -r conftest 2>/dev/null
1126
1858
   mkdir conftest
1127
1859
   cd conftest
1128
1860
   mkdir out
1146
1878
   then
1147
1879
     # The compiler can only warn and ignore the option if not recognized
1148
1880
     # So say no if there are warnings
1149
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
1881
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
1150
1882
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
1151
1883
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1152
 
       _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
 
1884
       _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1153
1885
     fi
1154
1886
   fi
1155
1887
   chmod u+w . 2>&AS_MESSAGE_LOG_FD
1156
 
   $rm conftest*
 
1888
   $RM conftest*
1157
1889
   # SGI C++ compiler will create directory out/ii_files/ for
1158
1890
   # template instantiation
1159
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
1160
 
   $rm out/* && rmdir out
 
1891
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
1892
   $RM out/* && rmdir out
1161
1893
   cd ..
1162
 
   rmdir conftest
1163
 
   $rm conftest*
 
1894
   $RM -r conftest
 
1895
   $RM conftest*
1164
1896
])
1165
 
])# AC_LIBTOOL_PROG_CC_C_O
1166
 
 
1167
 
 
1168
 
# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
1169
 
# -----------------------------------------
 
1897
_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
 
1898
        [Does compiler simultaneously support -c and -o options?])
 
1899
])# _LT_COMPILER_C_O
 
1900
 
 
1901
 
 
1902
# _LT_COMPILER_FILE_LOCKS([TAGNAME])
 
1903
# ----------------------------------
1170
1904
# Check to see if we can do hard links to lock some files if needed
1171
 
AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
1172
 
[AC_REQUIRE([_LT_AC_LOCK])dnl
 
1905
m4_defun([_LT_COMPILER_FILE_LOCKS],
 
1906
[m4_require([_LT_ENABLE_LOCK])dnl
 
1907
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
1908
_LT_COMPILER_C_O([$1])
1173
1909
 
1174
1910
hard_links="nottested"
1175
 
if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
 
1911
if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
1176
1912
  # do not overwrite the value of need_locks provided by the user
1177
1913
  AC_MSG_CHECKING([if we can lock with hard links])
1178
1914
  hard_links=yes
1179
 
  $rm conftest*
 
1915
  $RM conftest*
1180
1916
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
1181
1917
  touch conftest.a
1182
1918
  ln conftest.a conftest.b 2>&5 || hard_links=no
1189
1925
else
1190
1926
  need_locks=no
1191
1927
fi
1192
 
])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
1193
 
 
1194
 
 
1195
 
# AC_LIBTOOL_OBJDIR
1196
 
# -----------------
1197
 
AC_DEFUN([AC_LIBTOOL_OBJDIR],
 
1928
_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
 
1929
])# _LT_COMPILER_FILE_LOCKS
 
1930
 
 
1931
 
 
1932
# _LT_CHECK_OBJDIR
 
1933
# ----------------
 
1934
m4_defun([_LT_CHECK_OBJDIR],
1198
1935
[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
1199
1936
[rm -f .libs 2>/dev/null
1200
1937
mkdir .libs 2>/dev/null
1206
1943
fi
1207
1944
rmdir .libs 2>/dev/null])
1208
1945
objdir=$lt_cv_objdir
1209
 
])# AC_LIBTOOL_OBJDIR
1210
 
 
1211
 
 
1212
 
# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
1213
 
# ----------------------------------------------
 
1946
_LT_DECL([], [objdir], [0],
 
1947
         [The name of the directory that contains temporary libtool files])dnl
 
1948
m4_pattern_allow([LT_OBJDIR])dnl
 
1949
AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
 
1950
  [Define to the sub-directory in which libtool stores uninstalled libraries.])
 
1951
])# _LT_CHECK_OBJDIR
 
1952
 
 
1953
 
 
1954
# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
 
1955
# --------------------------------------
1214
1956
# Check hardcoding attributes.
1215
 
AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
 
1957
m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
1216
1958
[AC_MSG_CHECKING([how to hardcode library paths into programs])
1217
 
_LT_AC_TAGVAR(hardcode_action, $1)=
1218
 
if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
1219
 
   test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
1220
 
   test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
 
1959
_LT_TAGVAR(hardcode_action, $1)=
 
1960
if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
 
1961
   test -n "$_LT_TAGVAR(runpath_var, $1)" ||
 
1962
   test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
1221
1963
 
1222
 
  # We can hardcode non-existant directories.
1223
 
  if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
 
1964
  # We can hardcode non-existent directories.
 
1965
  if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
1224
1966
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
1225
1967
     # have to relink, otherwise we might link with an installed library
1226
1968
     # when we should be linking with a yet-to-be-installed one
1227
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
1228
 
     test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
 
1969
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
 
1970
     test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
1229
1971
    # Linking always hardcodes the temporary library directory.
1230
 
    _LT_AC_TAGVAR(hardcode_action, $1)=relink
 
1972
    _LT_TAGVAR(hardcode_action, $1)=relink
1231
1973
  else
1232
1974
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
1233
 
    _LT_AC_TAGVAR(hardcode_action, $1)=immediate
 
1975
    _LT_TAGVAR(hardcode_action, $1)=immediate
1234
1976
  fi
1235
1977
else
1236
1978
  # We cannot hardcode anything, or else we can only hardcode existing
1237
1979
  # directories.
1238
 
  _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
 
1980
  _LT_TAGVAR(hardcode_action, $1)=unsupported
1239
1981
fi
1240
 
AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
 
1982
AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
1241
1983
 
1242
 
if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
 
1984
if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
 
1985
   test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
1243
1986
  # Fast installation is not supported
1244
1987
  enable_fast_install=no
1245
1988
elif test "$shlibpath_overrides_runpath" = yes ||
1247
1990
  # Fast installation is not necessary
1248
1991
  enable_fast_install=needless
1249
1992
fi
1250
 
])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
1251
 
 
1252
 
 
1253
 
# AC_LIBTOOL_SYS_LIB_STRIP
1254
 
# ------------------------
1255
 
AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
1256
 
[striplib=
 
1993
_LT_TAGDECL([], [hardcode_action], [0],
 
1994
    [How to hardcode a shared library path into an executable])
 
1995
])# _LT_LINKER_HARDCODE_LIBPATH
 
1996
 
 
1997
 
 
1998
# _LT_CMD_STRIPLIB
 
1999
# ----------------
 
2000
m4_defun([_LT_CMD_STRIPLIB],
 
2001
[m4_require([_LT_DECL_EGREP])
 
2002
striplib=
1257
2003
old_striplib=
1258
2004
AC_MSG_CHECKING([whether stripping libraries is possible])
1259
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
2005
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
1260
2006
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
1261
2007
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1262
2008
  AC_MSG_RESULT([yes])
1263
2009
else
1264
2010
# FIXME - insert some real tests, host_os isn't really good enough
1265
2011
  case $host_os in
1266
 
   darwin*)
1267
 
       if test -n "$STRIP" ; then
1268
 
         striplib="$STRIP -x"
1269
 
         old_striplib="$STRIP -S"
1270
 
         AC_MSG_RESULT([yes])
1271
 
       else
1272
 
  AC_MSG_RESULT([no])
1273
 
fi
1274
 
       ;;
1275
 
   *)
1276
 
  AC_MSG_RESULT([no])
 
2012
  darwin*)
 
2013
    if test -n "$STRIP" ; then
 
2014
      striplib="$STRIP -x"
 
2015
      old_striplib="$STRIP -S"
 
2016
      AC_MSG_RESULT([yes])
 
2017
    else
 
2018
      AC_MSG_RESULT([no])
 
2019
    fi
 
2020
    ;;
 
2021
  *)
 
2022
    AC_MSG_RESULT([no])
1277
2023
    ;;
1278
2024
  esac
1279
2025
fi
1280
 
])# AC_LIBTOOL_SYS_LIB_STRIP
1281
 
 
1282
 
 
1283
 
# AC_LIBTOOL_SYS_DYNAMIC_LINKER
 
2026
_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
 
2027
_LT_DECL([], [striplib], [1])
 
2028
])# _LT_CMD_STRIPLIB
 
2029
 
 
2030
 
 
2031
# _LT_SYS_DYNAMIC_LINKER([TAG])
1284
2032
# -----------------------------
1285
2033
# PORTME Fill in your ld.so characteristics
1286
 
AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
1287
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
2034
m4_defun([_LT_SYS_DYNAMIC_LINKER],
 
2035
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
2036
m4_require([_LT_DECL_EGREP])dnl
 
2037
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
2038
m4_require([_LT_DECL_SED])dnl
1288
2039
AC_MSG_CHECKING([dynamic linker characteristics])
1289
 
library_names_spec=
1290
 
libname_spec='lib$name'
1291
 
soname_spec=
1292
 
shrext_cmds=".so"
1293
 
postinstall_cmds=
1294
 
postuninstall_cmds=
1295
 
finish_cmds=
1296
 
finish_eval=
1297
 
shlibpath_var=
1298
 
shlibpath_overrides_runpath=unknown
1299
 
version_type=none
1300
 
dynamic_linker="$host_os ld.so"
1301
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
1302
 
m4_if($1,[],[
 
2040
m4_if([$1],
 
2041
        [], [
1303
2042
if test "$GCC" = yes; then
1304
2043
  case $host_os in
1305
2044
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
1306
2045
    *) lt_awk_arg="/^libraries:/" ;;
1307
2046
  esac
1308
2047
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1309
 
  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
 
2048
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
1310
2049
    # if the path contains ";" then we assume it to be the separator
1311
2050
    # otherwise default to the standard path separator (i.e. ":") - it is
1312
2051
    # assumed that no part of a normal pathname contains ";" but that should
1313
2052
    # okay in the real world where ";" in dirpaths is itself problematic.
1314
 
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
 
2053
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
1315
2054
  else
1316
 
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
2055
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
1317
2056
  fi
1318
2057
  # Ok, now we have the path, separated by spaces, we can step through it
1319
2058
  # and add multilib dir if necessary.
1327
2066
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
1328
2067
    fi
1329
2068
  done
1330
 
  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
 
2069
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
1331
2070
BEGIN {RS=" "; FS="/|\n";} {
1332
2071
  lt_foo="";
1333
2072
  lt_count=0;
1347
2086
  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
1348
2087
  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
1349
2088
}'`
1350
 
  sys_lib_search_path_spec=`echo $lt_search_path_spec`
 
2089
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
1351
2090
else
1352
2091
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1353
2092
fi])
 
2093
library_names_spec=
 
2094
libname_spec='lib$name'
 
2095
soname_spec=
 
2096
shrext_cmds=".so"
 
2097
postinstall_cmds=
 
2098
postuninstall_cmds=
 
2099
finish_cmds=
 
2100
finish_eval=
 
2101
shlibpath_var=
 
2102
shlibpath_overrides_runpath=unknown
 
2103
version_type=none
 
2104
dynamic_linker="$host_os ld.so"
 
2105
sys_lib_dlsearch_path_spec="/lib /usr/lib"
1354
2106
need_lib_prefix=unknown
1355
2107
hardcode_into_libs=no
1356
2108
 
1387
2139
      aix4 | aix4.[[01]] | aix4.[[01]].*)
1388
2140
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
1389
2141
           echo ' yes '
1390
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
2142
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
1391
2143
        :
1392
2144
      else
1393
2145
        can_build_shared=no
1413
2165
  ;;
1414
2166
 
1415
2167
amigaos*)
1416
 
  library_names_spec='$libname.ixlibrary $libname.a'
1417
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
1418
 
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 
2168
  case $host_cpu in
 
2169
  powerpc)
 
2170
    # Since July 2007 AmigaOS4 officially supports .so libraries.
 
2171
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 
2172
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
2173
    ;;
 
2174
  m68k)
 
2175
    library_names_spec='$libname.ixlibrary $libname.a'
 
2176
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
2177
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 
2178
    ;;
 
2179
  esac
1419
2180
  ;;
1420
2181
 
1421
2182
beos*)
1449
2210
    library_names_spec='$libname.dll.a'
1450
2211
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
1451
2212
    postinstall_cmds='base_file=`basename \${file}`~
1452
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
2213
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
1453
2214
      dldir=$destdir/`dirname \$dlpath`~
1454
2215
      test -d \$dldir || mkdir -p \$dldir~
1455
2216
      $install_prog $dir/$dlname \$dldir/$dlname~
1456
 
      chmod a+x \$dldir/$dlname'
 
2217
      chmod a+x \$dldir/$dlname~
 
2218
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 
2219
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 
2220
      fi'
1457
2221
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
1458
2222
      dlpath=$dir/\$dldll~
1459
 
       $rm \$dlpath'
 
2223
       $RM \$dlpath'
1460
2224
    shlibpath_overrides_runpath=yes
1461
2225
 
1462
2226
    case $host_os in
1468
2232
    mingw*)
1469
2233
      # MinGW DLLs use traditional 'lib' prefix
1470
2234
      soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1471
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1472
 
      if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
 
2235
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
2236
      if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
1473
2237
        # It is most probably a Windows format PATH printed by
1474
2238
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
1475
2239
        # path with ; separators, and with drive letters. We can handle the
1476
2240
        # drive letters (cygwin fileutils understands them), so leave them,
1477
2241
        # especially as we might pass files found there to a mingw objdump,
1478
2242
        # which wouldn't understand a cygwinified path. Ahh.
1479
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
2243
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1480
2244
      else
1481
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
2245
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
1482
2246
      fi
1483
2247
      ;;
1484
2248
    pw32*)
1502
2266
  version_type=darwin
1503
2267
  need_lib_prefix=no
1504
2268
  need_version=no
1505
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
2269
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
1506
2270
  soname_spec='${libname}${release}${major}$shared_ext'
1507
2271
  shlibpath_overrides_runpath=yes
1508
2272
  shlibpath_var=DYLD_LIBRARY_PATH
1509
2273
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1510
 
  m4_if([$1], [],[
1511
 
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 
 
2274
m4_if([$1], [],[
 
2275
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
1512
2276
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
1513
2277
  ;;
1514
2278
 
1601
2365
    fi
1602
2366
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1603
2367
    ;;
1604
 
   hppa*64*)
1605
 
     shrext_cmds='.sl'
1606
 
     hardcode_into_libs=yes
1607
 
     dynamic_linker="$host_os dld.sl"
1608
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
1609
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1610
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1611
 
     soname_spec='${libname}${release}${shared_ext}$major'
1612
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
1613
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1614
 
     ;;
1615
 
   *)
 
2368
  hppa*64*)
 
2369
    shrext_cmds='.sl'
 
2370
    hardcode_into_libs=yes
 
2371
    dynamic_linker="$host_os dld.sl"
 
2372
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
2373
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
2374
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
2375
    soname_spec='${libname}${release}${shared_ext}$major'
 
2376
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
2377
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
2378
    ;;
 
2379
  *)
1616
2380
    shrext_cmds='.sl'
1617
2381
    dynamic_linker="$host_os dld.sl"
1618
2382
    shlibpath_var=SHLIB_PATH
1689
2453
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
1690
2454
  shlibpath_var=LD_LIBRARY_PATH
1691
2455
  shlibpath_overrides_runpath=no
 
2456
  # Some binutils ld are patched to set DT_RUNPATH
 
2457
  save_LDFLAGS=$LDFLAGS
 
2458
  save_libdir=$libdir
 
2459
  eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
 
2460
       LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
 
2461
  AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
 
2462
    [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
 
2463
       [shlibpath_overrides_runpath=yes])])
 
2464
  LDFLAGS=$save_LDFLAGS
 
2465
  libdir=$save_libdir
 
2466
 
1692
2467
  # This implies no fast_install, which is unacceptable.
1693
2468
  # Some rework will be needed to allow for fast_install
1694
2469
  # before this can be enabled.
1696
2471
 
1697
2472
  # Append ld.so.conf contents to the search path
1698
2473
  if test -f /etc/ld.so.conf; then
1699
 
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[  ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
2474
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[   ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
1700
2475
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1701
2476
  fi
1702
2477
 
1725
2500
  version_type=sunos
1726
2501
  need_lib_prefix=no
1727
2502
  need_version=no
1728
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
2503
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
1729
2504
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1730
2505
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1731
2506
    dynamic_linker='NetBSD (a.out) ld.so'
1746
2521
  shlibpath_overrides_runpath=yes
1747
2522
  ;;
1748
2523
 
1749
 
nto-qnx*)
1750
 
  version_type=linux
 
2524
*nto* | *qnx*)
 
2525
  version_type=qnx
1751
2526
  need_lib_prefix=no
1752
2527
  need_version=no
1753
2528
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1754
2529
  soname_spec='${libname}${release}${shared_ext}$major'
1755
2530
  shlibpath_var=LD_LIBRARY_PATH
1756
 
  shlibpath_overrides_runpath=yes
 
2531
  shlibpath_overrides_runpath=no
 
2532
  hardcode_into_libs=yes
 
2533
  dynamic_linker='ldqnx.so'
1757
2534
  ;;
1758
2535
 
1759
2536
openbsd*)
1762
2539
  need_lib_prefix=no
1763
2540
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
1764
2541
  case $host_os in
1765
 
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
1766
 
    *)                         need_version=no  ;;
 
2542
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
 
2543
    *)                          need_version=no  ;;
1767
2544
  esac
1768
2545
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1769
2546
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1770
2547
  shlibpath_var=LD_LIBRARY_PATH
1771
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
2548
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1772
2549
    case $host_os in
1773
2550
      openbsd2.[[89]] | openbsd2.[[89]].*)
1774
2551
        shlibpath_overrides_runpath=no
1840
2617
    sni)
1841
2618
      shlibpath_overrides_runpath=no
1842
2619
      need_lib_prefix=no
1843
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
1844
2620
      runpath_var=LD_RUN_PATH
1845
2621
      ;;
1846
2622
    siemens)
1871
2647
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1872
2648
  soname_spec='${libname}${release}${shared_ext}$major'
1873
2649
  shlibpath_var=LD_LIBRARY_PATH
 
2650
  shlibpath_overrides_runpath=yes
1874
2651
  hardcode_into_libs=yes
1875
2652
  if test "$with_gnu_ld" = yes; then
1876
2653
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
1877
 
    shlibpath_overrides_runpath=no
1878
2654
  else
1879
2655
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
1880
 
    shlibpath_overrides_runpath=yes
1881
2656
    case $host_os in
1882
2657
      sco3.2v5*)
1883
2658
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
1887
2662
  sys_lib_dlsearch_path_spec='/usr/lib'
1888
2663
  ;;
1889
2664
 
 
2665
tpf*)
 
2666
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 
2667
  version_type=linux
 
2668
  need_lib_prefix=no
 
2669
  need_version=no
 
2670
  library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
2671
  shlibpath_var=LD_LIBRARY_PATH
 
2672
  shlibpath_overrides_runpath=no
 
2673
  hardcode_into_libs=yes
 
2674
  ;;
 
2675
 
1890
2676
uts4*)
1891
2677
  version_type=linux
1892
2678
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1901
2687
AC_MSG_RESULT([$dynamic_linker])
1902
2688
test "$dynamic_linker" = no && can_build_shared=no
1903
2689
 
1904
 
AC_CACHE_VAL([lt_cv_sys_lib_search_path_spec],
1905
 
[lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"])
1906
 
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
1907
 
AC_CACHE_VAL([lt_cv_sys_lib_dlsearch_path_spec],
1908
 
[lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"])
1909
 
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
1910
 
 
1911
2690
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
1912
2691
if test "$GCC" = yes; then
1913
2692
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
1914
2693
fi
1915
 
])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
1916
 
 
1917
 
 
1918
 
# _LT_AC_TAGCONFIG
1919
 
# ----------------
1920
 
AC_DEFUN([_LT_AC_TAGCONFIG],
1921
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
1922
 
AC_ARG_WITH([tags],
1923
 
    [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
1924
 
        [include additional configurations @<:@automatic@:>@])],
1925
 
    [tagnames="$withval"])
1926
 
 
1927
 
if test -f "$ltmain" && test -n "$tagnames"; then
1928
 
  if test ! -f "${ofile}"; then
1929
 
    AC_MSG_WARN([output file `$ofile' does not exist])
1930
 
  fi
1931
 
 
1932
 
  if test -z "$LTCC"; then
1933
 
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
1934
 
    if test -z "$LTCC"; then
1935
 
      AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
1936
 
    else
1937
 
      AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
1938
 
    fi
1939
 
  fi
1940
 
  if test -z "$LTCFLAGS"; then
1941
 
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
1942
 
  fi
1943
 
 
1944
 
  # Extract list of available tagged configurations in $ofile.
1945
 
  # Note that this assumes the entire list is on one line.
1946
 
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
1947
 
 
1948
 
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1949
 
  for tagname in $tagnames; do
1950
 
    IFS="$lt_save_ifs"
1951
 
    # Check whether tagname contains only valid characters
1952
 
    case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
1953
 
    "") ;;
1954
 
    *)  AC_MSG_ERROR([invalid tag name: $tagname])
1955
 
        ;;
1956
 
    esac
1957
 
 
1958
 
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
1959
 
    then
1960
 
      AC_MSG_ERROR([tag name \"$tagname\" already exists])
1961
 
    fi
1962
 
 
1963
 
    # Update the list of available tags.
1964
 
    if test -n "$tagname"; then
1965
 
      echo appending configuration tag \"$tagname\" to $ofile
1966
 
 
1967
 
      case $tagname in
1968
 
      CXX)
1969
 
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
1970
 
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
1971
 
            (test "X$CXX" != "Xg++"))) ; then
1972
 
          AC_LIBTOOL_LANG_CXX_CONFIG
1973
 
        else
1974
 
          tagname=""
1975
 
        fi
1976
 
        ;;
1977
 
 
1978
 
      F77)
1979
 
        if test -n "$F77" && test "X$F77" != "Xno"; then
1980
 
          AC_LIBTOOL_LANG_F77_CONFIG
1981
 
        else
1982
 
          tagname=""
1983
 
        fi
1984
 
        ;;
1985
 
 
1986
 
      GCJ)
1987
 
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
1988
 
          AC_LIBTOOL_LANG_GCJ_CONFIG
1989
 
        else
1990
 
          tagname=""
1991
 
        fi
1992
 
        ;;
1993
 
 
1994
 
      RC)
1995
 
        AC_LIBTOOL_LANG_RC_CONFIG
1996
 
        ;;
1997
 
 
1998
 
      *)
1999
 
        AC_MSG_ERROR([Unsupported tag name: $tagname])
2000
 
        ;;
2001
 
      esac
2002
 
 
2003
 
      # Append the new tag name to the list of available tags.
2004
 
      if test -n "$tagname" ; then
2005
 
      available_tags="$available_tags $tagname"
2006
 
    fi
2007
 
    fi
2008
 
  done
2009
 
  IFS="$lt_save_ifs"
2010
 
 
2011
 
  # Now substitute the updated list of available tags.
2012
 
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
2013
 
    mv "${ofile}T" "$ofile"
2014
 
    chmod +x "$ofile"
2015
 
  else
2016
 
    rm -f "${ofile}T"
2017
 
    AC_MSG_ERROR([unable to update list of available tagged configurations.])
2018
 
  fi
2019
 
fi
2020
 
])# _LT_AC_TAGCONFIG
2021
 
 
2022
 
 
2023
 
# AC_LIBTOOL_DLOPEN
2024
 
# -----------------
2025
 
# enable checks for dlopen support
2026
 
AC_DEFUN([AC_LIBTOOL_DLOPEN],
2027
 
 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
2028
 
])# AC_LIBTOOL_DLOPEN
2029
 
 
2030
 
 
2031
 
# AC_LIBTOOL_WIN32_DLL
2032
 
# --------------------
2033
 
# declare package support for building win32 DLLs
2034
 
AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
2035
 
[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
2036
 
])# AC_LIBTOOL_WIN32_DLL
2037
 
 
2038
 
 
2039
 
# AC_ENABLE_SHARED([DEFAULT])
2040
 
# ---------------------------
2041
 
# implement the --enable-shared flag
2042
 
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
2043
 
AC_DEFUN([AC_ENABLE_SHARED],
2044
 
[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
2045
 
AC_ARG_ENABLE([shared],
2046
 
    [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
2047
 
        [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
2048
 
    [p=${PACKAGE-default}
2049
 
    case $enableval in
2050
 
    yes) enable_shared=yes ;;
2051
 
    no) enable_shared=no ;;
2052
 
    *)
2053
 
      enable_shared=no
2054
 
      # Look at the argument we got.  We use all the common list separators.
2055
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2056
 
      for pkg in $enableval; do
2057
 
        IFS="$lt_save_ifs"
2058
 
        if test "X$pkg" = "X$p"; then
2059
 
          enable_shared=yes
2060
 
        fi
2061
 
      done
2062
 
      IFS="$lt_save_ifs"
2063
 
      ;;
2064
 
    esac],
2065
 
    [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
2066
 
])# AC_ENABLE_SHARED
2067
 
 
2068
 
 
2069
 
# AC_DISABLE_SHARED
2070
 
# -----------------
2071
 
# set the default shared flag to --disable-shared
2072
 
AC_DEFUN([AC_DISABLE_SHARED],
2073
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2074
 
AC_ENABLE_SHARED(no)
2075
 
])# AC_DISABLE_SHARED
2076
 
 
2077
 
 
2078
 
# AC_ENABLE_STATIC([DEFAULT])
2079
 
# ---------------------------
2080
 
# implement the --enable-static flag
2081
 
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
2082
 
AC_DEFUN([AC_ENABLE_STATIC],
2083
 
[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
2084
 
AC_ARG_ENABLE([static],
2085
 
    [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
2086
 
        [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
2087
 
    [p=${PACKAGE-default}
2088
 
    case $enableval in
2089
 
    yes) enable_static=yes ;;
2090
 
    no) enable_static=no ;;
2091
 
    *)
2092
 
     enable_static=no
2093
 
      # Look at the argument we got.  We use all the common list separators.
2094
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2095
 
      for pkg in $enableval; do
2096
 
        IFS="$lt_save_ifs"
2097
 
        if test "X$pkg" = "X$p"; then
2098
 
          enable_static=yes
2099
 
        fi
2100
 
      done
2101
 
      IFS="$lt_save_ifs"
2102
 
      ;;
2103
 
    esac],
2104
 
    [enable_static=]AC_ENABLE_STATIC_DEFAULT)
2105
 
])# AC_ENABLE_STATIC
2106
 
 
2107
 
 
2108
 
# AC_DISABLE_STATIC
2109
 
# -----------------
2110
 
# set the default static flag to --disable-static
2111
 
AC_DEFUN([AC_DISABLE_STATIC],
2112
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2113
 
AC_ENABLE_STATIC(no)
2114
 
])# AC_DISABLE_STATIC
2115
 
 
2116
 
 
2117
 
# AC_ENABLE_FAST_INSTALL([DEFAULT])
2118
 
# ---------------------------------
2119
 
# implement the --enable-fast-install flag
2120
 
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
2121
 
AC_DEFUN([AC_ENABLE_FAST_INSTALL],
2122
 
[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
2123
 
AC_ARG_ENABLE([fast-install],
2124
 
    [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
2125
 
    [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
2126
 
    [p=${PACKAGE-default}
2127
 
    case $enableval in
2128
 
    yes) enable_fast_install=yes ;;
2129
 
    no) enable_fast_install=no ;;
2130
 
    *)
2131
 
      enable_fast_install=no
2132
 
      # Look at the argument we got.  We use all the common list separators.
2133
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2134
 
      for pkg in $enableval; do
2135
 
        IFS="$lt_save_ifs"
2136
 
        if test "X$pkg" = "X$p"; then
2137
 
          enable_fast_install=yes
2138
 
        fi
2139
 
      done
2140
 
      IFS="$lt_save_ifs"
2141
 
      ;;
2142
 
    esac],
2143
 
    [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
2144
 
])# AC_ENABLE_FAST_INSTALL
2145
 
 
2146
 
 
2147
 
# AC_DISABLE_FAST_INSTALL
2148
 
# -----------------------
2149
 
# set the default to --disable-fast-install
2150
 
AC_DEFUN([AC_DISABLE_FAST_INSTALL],
2151
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2152
 
AC_ENABLE_FAST_INSTALL(no)
2153
 
])# AC_DISABLE_FAST_INSTALL
2154
 
 
2155
 
 
2156
 
# AC_LIBTOOL_PICMODE([MODE])
 
2694
 
 
2695
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
2696
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
2697
fi
 
2698
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
2699
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
2700
fi
 
2701
 
 
2702
_LT_DECL([], [variables_saved_for_relink], [1],
 
2703
    [Variables whose values should be saved in libtool wrapper scripts and
 
2704
    restored at link time])
 
2705
_LT_DECL([], [need_lib_prefix], [0],
 
2706
    [Do we need the "lib" prefix for modules?])
 
2707
_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
 
2708
_LT_DECL([], [version_type], [0], [Library versioning type])
 
2709
_LT_DECL([], [runpath_var], [0],  [Shared library runtime path variable])
 
2710
_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
 
2711
_LT_DECL([], [shlibpath_overrides_runpath], [0],
 
2712
    [Is shlibpath searched before the hard-coded library search path?])
 
2713
_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
 
2714
_LT_DECL([], [library_names_spec], [1],
 
2715
    [[List of archive names.  First name is the real one, the rest are links.
 
2716
    The last name is the one that the linker finds with -lNAME]])
 
2717
_LT_DECL([], [soname_spec], [1],
 
2718
    [[The coded name of the library, if different from the real name]])
 
2719
_LT_DECL([], [postinstall_cmds], [2],
 
2720
    [Command to use after installation of a shared archive])
 
2721
_LT_DECL([], [postuninstall_cmds], [2],
 
2722
    [Command to use after uninstallation of a shared archive])
 
2723
_LT_DECL([], [finish_cmds], [2],
 
2724
    [Commands used to finish a libtool library installation in a directory])
 
2725
_LT_DECL([], [finish_eval], [1],
 
2726
    [[As "finish_cmds", except a single script fragment to be evaled but
 
2727
    not shown]])
 
2728
_LT_DECL([], [hardcode_into_libs], [0],
 
2729
    [Whether we should hardcode library paths into libraries])
 
2730
_LT_DECL([], [sys_lib_search_path_spec], [2],
 
2731
    [Compile-time system search path for libraries])
 
2732
_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
 
2733
    [Run-time system search path for libraries])
 
2734
])# _LT_SYS_DYNAMIC_LINKER
 
2735
 
 
2736
 
 
2737
# _LT_PATH_TOOL_PREFIX(TOOL)
2157
2738
# --------------------------
2158
 
# implement the --with-pic flag
2159
 
# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
2160
 
AC_DEFUN([AC_LIBTOOL_PICMODE],
2161
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2162
 
pic_mode=ifelse($#,1,$1,default)
2163
 
])# AC_LIBTOOL_PICMODE
2164
 
 
2165
 
 
2166
 
# AC_PROG_EGREP
2167
 
# -------------
2168
 
# This is predefined starting with Autoconf 2.54, so this conditional
2169
 
# definition can be removed once we require Autoconf 2.54 or later.
2170
 
m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
2171
 
[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
2172
 
   [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2173
 
    then ac_cv_prog_egrep='grep -E'
2174
 
    else ac_cv_prog_egrep='egrep'
2175
 
    fi])
2176
 
 EGREP=$ac_cv_prog_egrep
2177
 
 AC_SUBST([EGREP])
2178
 
])])
2179
 
 
2180
 
 
2181
 
# AC_PATH_TOOL_PREFIX
2182
 
# -------------------
2183
2739
# find a file program which can recognize shared library
2184
 
AC_DEFUN([AC_PATH_TOOL_PREFIX],
2185
 
[AC_REQUIRE([AC_PROG_EGREP])dnl
 
2740
AC_DEFUN([_LT_PATH_TOOL_PREFIX],
 
2741
[m4_require([_LT_DECL_EGREP])dnl
2186
2742
AC_MSG_CHECKING([for $1])
2187
2743
AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
2188
2744
[case $MAGIC_CMD in
2195
2751
dnl $ac_dummy forces splitting on constant user-supplied paths.
2196
2752
dnl POSIX.2 word splitting is done only on the output of word expansions,
2197
2753
dnl not every word.  This closes a longstanding sh security hole.
2198
 
  ac_dummy="ifelse([$2], , $PATH, [$2])"
 
2754
  ac_dummy="m4_if([$2], , $PATH, [$2])"
2199
2755
  for ac_dir in $ac_dummy; do
2200
2756
    IFS="$lt_save_ifs"
2201
2757
    test -z "$ac_dir" && ac_dir=.
2210
2766
            $EGREP "$file_magic_regex" > /dev/null; then
2211
2767
            :
2212
2768
          else
2213
 
            cat <<EOF 1>&2
 
2769
            cat <<_LT_EOF 1>&2
2214
2770
 
2215
2771
*** Warning: the command libtool uses to detect shared libraries,
2216
2772
*** $file_magic_cmd, produces output that libtool cannot recognize.
2221
2777
*** may want to report the problem to your system manager and/or to
2222
2778
*** bug-libtool@gnu.org
2223
2779
 
2224
 
EOF
 
2780
_LT_EOF
2225
2781
          fi ;;
2226
2782
        esac
2227
2783
      fi
2238
2794
else
2239
2795
  AC_MSG_RESULT(no)
2240
2796
fi
2241
 
])# AC_PATH_TOOL_PREFIX
2242
 
 
2243
 
 
2244
 
# AC_PATH_MAGIC
2245
 
# -------------
 
2797
_LT_DECL([], [MAGIC_CMD], [0],
 
2798
         [Used to examine libraries when file_magic_cmd begins with "file"])dnl
 
2799
])# _LT_PATH_TOOL_PREFIX
 
2800
 
 
2801
# Old name:
 
2802
AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
 
2803
dnl aclocal-1.4 backwards compatibility:
 
2804
dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
 
2805
 
 
2806
 
 
2807
# _LT_PATH_MAGIC
 
2808
# --------------
2246
2809
# find a file program which can recognize a shared library
2247
 
AC_DEFUN([AC_PATH_MAGIC],
2248
 
[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
 
2810
m4_defun([_LT_PATH_MAGIC],
 
2811
[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2249
2812
if test -z "$lt_cv_path_MAGIC_CMD"; then
2250
2813
  if test -n "$ac_tool_prefix"; then
2251
 
    AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
 
2814
    _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
2252
2815
  else
2253
2816
    MAGIC_CMD=:
2254
2817
  fi
2255
2818
fi
2256
 
])# AC_PATH_MAGIC
2257
 
 
2258
 
 
2259
 
# AC_PROG_LD
 
2819
])# _LT_PATH_MAGIC
 
2820
 
 
2821
 
 
2822
# LT_PATH_LD
2260
2823
# ----------
2261
2824
# find the pathname to the GNU or non-GNU linker
2262
 
AC_DEFUN([AC_PROG_LD],
2263
 
[AC_ARG_WITH([gnu-ld],
2264
 
    [AC_HELP_STRING([--with-gnu-ld],
 
2825
AC_DEFUN([LT_PATH_LD],
 
2826
[AC_REQUIRE([AC_PROG_CC])dnl
 
2827
AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
2828
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
 
2829
m4_require([_LT_DECL_SED])dnl
 
2830
m4_require([_LT_DECL_EGREP])dnl
 
2831
 
 
2832
AC_ARG_WITH([gnu-ld],
 
2833
    [AS_HELP_STRING([--with-gnu-ld],
2265
2834
        [assume the C compiler uses GNU ld @<:@default=no@:>@])],
2266
2835
    [test "$withval" = no || with_gnu_ld=yes],
2267
 
    [with_gnu_ld=no])
2268
 
AC_REQUIRE([LT_AC_PROG_SED])dnl
2269
 
AC_REQUIRE([AC_PROG_CC])dnl
2270
 
AC_REQUIRE([AC_CANONICAL_HOST])dnl
2271
 
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
 
2836
    [with_gnu_ld=no])dnl
 
2837
 
2272
2838
ac_prog=ld
2273
2839
if test "$GCC" = yes; then
2274
2840
  # Check if gcc -print-prog-name=ld gives a path.
2285
2851
    [[\\/]]* | ?:[[\\/]]*)
2286
2852
      re_direlt='/[[^/]][[^/]]*/\.\./'
2287
2853
      # Canonicalize the pathname of ld
2288
 
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
2289
 
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2290
 
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
2854
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 
2855
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 
2856
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
2291
2857
      done
2292
2858
      test -z "$LD" && LD="$ac_prog"
2293
2859
      ;;
2337
2903
  AC_MSG_RESULT(no)
2338
2904
fi
2339
2905
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
2340
 
AC_PROG_LD_GNU
2341
 
])# AC_PROG_LD
2342
 
 
2343
 
 
2344
 
# AC_PROG_LD_GNU
2345
 
# --------------
2346
 
AC_DEFUN([AC_PROG_LD_GNU],
2347
 
[AC_REQUIRE([AC_PROG_EGREP])dnl
2348
 
AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
 
2906
_LT_PATH_LD_GNU
 
2907
AC_SUBST([LD])
 
2908
 
 
2909
_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
 
2910
])# LT_PATH_LD
 
2911
 
 
2912
# Old names:
 
2913
AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
 
2914
AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
 
2915
dnl aclocal-1.4 backwards compatibility:
 
2916
dnl AC_DEFUN([AM_PROG_LD], [])
 
2917
dnl AC_DEFUN([AC_PROG_LD], [])
 
2918
 
 
2919
 
 
2920
# _LT_PATH_LD_GNU
 
2921
#- --------------
 
2922
m4_defun([_LT_PATH_LD_GNU],
 
2923
[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
2349
2924
[# I'd rather use --version here, but apparently some GNU lds only accept -v.
2350
2925
case `$LD -v 2>&1 </dev/null` in
2351
2926
*GNU* | *'with BFD'*)
2356
2931
  ;;
2357
2932
esac])
2358
2933
with_gnu_ld=$lt_cv_prog_gnu_ld
2359
 
])# AC_PROG_LD_GNU
2360
 
 
2361
 
 
2362
 
# AC_PROG_LD_RELOAD_FLAG
2363
 
# ----------------------
 
2934
])# _LT_PATH_LD_GNU
 
2935
 
 
2936
 
 
2937
# _LT_CMD_RELOAD
 
2938
# --------------
2364
2939
# find reload flag for linker
2365
2940
#   -- PORTME Some linkers may need a different reload flag.
2366
 
AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
 
2941
m4_defun([_LT_CMD_RELOAD],
2367
2942
[AC_CACHE_CHECK([for $LD option to reload object files],
2368
2943
  lt_cv_ld_reload_flag,
2369
2944
  [lt_cv_ld_reload_flag='-r'])
2382
2957
    fi
2383
2958
    ;;
2384
2959
esac
2385
 
])# AC_PROG_LD_RELOAD_FLAG
2386
 
 
2387
 
 
2388
 
# AC_DEPLIBS_CHECK_METHOD
2389
 
# -----------------------
 
2960
_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
 
2961
_LT_DECL([], [reload_cmds], [2])dnl
 
2962
])# _LT_CMD_RELOAD
 
2963
 
 
2964
 
 
2965
# _LT_CHECK_MAGIC_METHOD
 
2966
# ----------------------
2390
2967
# how to check for library dependencies
2391
2968
#  -- PORTME fill in with the dynamic library characteristics
2392
 
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
2393
 
[AC_CACHE_CHECK([how to recognize dependent libraries],
 
2969
m4_defun([_LT_CHECK_MAGIC_METHOD],
 
2970
[m4_require([_LT_DECL_EGREP])
 
2971
AC_CACHE_CHECK([how to recognize dependent libraries],
2394
2972
lt_cv_deplibs_check_method,
2395
2973
[lt_cv_file_magic_cmd='$MAGIC_CMD'
2396
2974
lt_cv_file_magic_test_file=
2445
3023
  ;;
2446
3024
 
2447
3025
freebsd* | dragonfly*)
2448
 
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
3026
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
2449
3027
    case $host_cpu in
2450
3028
    i*86 )
2451
3029
      # Not sure whether the presence of OpenBSD here was a mistake.
2503
3081
  ;;
2504
3082
 
2505
3083
netbsd* | netbsdelf*-gnu)
2506
 
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
3084
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
2507
3085
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2508
3086
  else
2509
3087
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
2516
3094
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
2517
3095
  ;;
2518
3096
 
2519
 
nto-qnx*)
2520
 
  lt_cv_deplibs_check_method=unknown
 
3097
*nto* | *qnx*)
 
3098
  lt_cv_deplibs_check_method=pass_all
2521
3099
  ;;
2522
3100
 
2523
3101
openbsd*)
2524
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
3102
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2525
3103
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
2526
3104
  else
2527
3105
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2540
3118
  lt_cv_deplibs_check_method=pass_all
2541
3119
  ;;
2542
3120
 
 
3121
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
3122
  lt_cv_deplibs_check_method=pass_all
 
3123
  ;;
 
3124
 
2543
3125
sysv4 | sysv4.3*)
2544
3126
  case $host_vendor in
2545
3127
  motorola)
2567
3149
  esac
2568
3150
  ;;
2569
3151
 
2570
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
3152
tpf*)
2571
3153
  lt_cv_deplibs_check_method=pass_all
2572
3154
  ;;
2573
3155
esac
2575
3157
file_magic_cmd=$lt_cv_file_magic_cmd
2576
3158
deplibs_check_method=$lt_cv_deplibs_check_method
2577
3159
test -z "$deplibs_check_method" && deplibs_check_method=unknown
2578
 
])# AC_DEPLIBS_CHECK_METHOD
2579
 
 
2580
 
 
2581
 
# AC_PROG_NM
 
3160
 
 
3161
_LT_DECL([], [deplibs_check_method], [1],
 
3162
    [Method to check whether dependent libraries are shared objects])
 
3163
_LT_DECL([], [file_magic_cmd], [1],
 
3164
    [Command to use when deplibs_check_method == "file_magic"])
 
3165
])# _LT_CHECK_MAGIC_METHOD
 
3166
 
 
3167
 
 
3168
# LT_PATH_NM
2582
3169
# ----------
2583
 
# find the pathname to a BSD-compatible name lister
2584
 
AC_DEFUN([AC_PROG_NM],
2585
 
[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
 
3170
# find the pathname to a BSD- or MS-compatible name lister
 
3171
AC_DEFUN([LT_PATH_NM],
 
3172
[AC_REQUIRE([AC_PROG_CC])dnl
 
3173
AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
2586
3174
[if test -n "$NM"; then
2587
3175
  # Let the user override the test.
2588
3176
  lt_cv_path_NM="$NM"
2624
3212
    done
2625
3213
    IFS="$lt_save_ifs"
2626
3214
  done
2627
 
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
3215
  : ${lt_cv_path_NM=no}
2628
3216
fi])
2629
 
NM="$lt_cv_path_NM"
2630
 
])# AC_PROG_NM
2631
 
 
2632
 
 
2633
 
# AC_CHECK_LIBM
2634
 
# -------------
 
3217
if test "$lt_cv_path_NM" != "no"; then
 
3218
  NM="$lt_cv_path_NM"
 
3219
else
 
3220
  # Didn't find any BSD compatible name lister, look for dumpbin.
 
3221
  AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
 
3222
  AC_SUBST([DUMPBIN])
 
3223
  if test "$DUMPBIN" != ":"; then
 
3224
    NM="$DUMPBIN"
 
3225
  fi
 
3226
fi
 
3227
test -z "$NM" && NM=nm
 
3228
AC_SUBST([NM])
 
3229
_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
 
3230
 
 
3231
AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
 
3232
  [lt_cv_nm_interface="BSD nm"
 
3233
  echo "int some_variable = 0;" > conftest.$ac_ext
 
3234
  (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
 
3235
  (eval "$ac_compile" 2>conftest.err)
 
3236
  cat conftest.err >&AS_MESSAGE_LOG_FD
 
3237
  (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
 
3238
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
 
3239
  cat conftest.err >&AS_MESSAGE_LOG_FD
 
3240
  (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
 
3241
  cat conftest.out >&AS_MESSAGE_LOG_FD
 
3242
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
 
3243
    lt_cv_nm_interface="MS dumpbin"
 
3244
  fi
 
3245
  rm -f conftest*])
 
3246
])# LT_PATH_NM
 
3247
 
 
3248
# Old names:
 
3249
AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
 
3250
AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
 
3251
dnl aclocal-1.4 backwards compatibility:
 
3252
dnl AC_DEFUN([AM_PROG_NM], [])
 
3253
dnl AC_DEFUN([AC_PROG_NM], [])
 
3254
 
 
3255
 
 
3256
# LT_LIB_M
 
3257
# --------
2635
3258
# check for math library
2636
 
AC_DEFUN([AC_CHECK_LIBM],
 
3259
AC_DEFUN([LT_LIB_M],
2637
3260
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
2638
3261
LIBM=
2639
3262
case $host in
2648
3271
  AC_CHECK_LIB(m, cos, LIBM="-lm")
2649
3272
  ;;
2650
3273
esac
2651
 
])# AC_CHECK_LIBM
2652
 
 
2653
 
 
2654
 
# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
2655
 
# -----------------------------------
2656
 
# sets LIBLTDL to the link flags for the libltdl convenience library and
2657
 
# LTDLINCL to the include flags for the libltdl header and adds
2658
 
# --enable-ltdl-convenience to the configure arguments.  Note that
2659
 
# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
2660
 
# it is assumed to be `libltdl'.  LIBLTDL will be prefixed with
2661
 
# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
2662
 
# (note the single quotes!).  If your package is not flat and you're not
2663
 
# using automake, define top_builddir and top_srcdir appropriately in
2664
 
# the Makefiles.
2665
 
AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
2666
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2667
 
  case $enable_ltdl_convenience in
2668
 
  no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
2669
 
  "") enable_ltdl_convenience=yes
2670
 
      ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
2671
 
  esac
2672
 
  LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
2673
 
  LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
2674
 
  # For backwards non-gettext consistent compatibility...
2675
 
  INCLTDL="$LTDLINCL"
2676
 
])# AC_LIBLTDL_CONVENIENCE
2677
 
 
2678
 
 
2679
 
# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
2680
 
# -----------------------------------
2681
 
# sets LIBLTDL to the link flags for the libltdl installable library and
2682
 
# LTDLINCL to the include flags for the libltdl header and adds
2683
 
# --enable-ltdl-install to the configure arguments.  Note that
2684
 
# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
2685
 
# and an installed libltdl is not found, it is assumed to be `libltdl'.
2686
 
# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
2687
 
# '${top_srcdir}/' (note the single quotes!).  If your package is not
2688
 
# flat and you're not using automake, define top_builddir and top_srcdir
2689
 
# appropriately in the Makefiles.
2690
 
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
2691
 
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
2692
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2693
 
  AC_CHECK_LIB(ltdl, lt_dlinit,
2694
 
  [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
2695
 
  [if test x"$enable_ltdl_install" = xno; then
2696
 
     AC_MSG_WARN([libltdl not installed, but installation disabled])
2697
 
   else
2698
 
     enable_ltdl_install=yes
2699
 
   fi
2700
 
  ])
2701
 
  if test x"$enable_ltdl_install" = x"yes"; then
2702
 
    ac_configure_args="$ac_configure_args --enable-ltdl-install"
2703
 
    LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
2704
 
    LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
2705
 
  else
2706
 
    ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
2707
 
    LIBLTDL="-lltdl"
2708
 
    LTDLINCL=
2709
 
  fi
2710
 
  # For backwards non-gettext consistent compatibility...
2711
 
  INCLTDL="$LTDLINCL"
2712
 
])# AC_LIBLTDL_INSTALLABLE
2713
 
 
2714
 
 
2715
 
# AC_LIBTOOL_CXX
2716
 
# --------------
2717
 
# enable support for C++ libraries
2718
 
AC_DEFUN([AC_LIBTOOL_CXX],
2719
 
[AC_REQUIRE([_LT_AC_LANG_CXX])
2720
 
])# AC_LIBTOOL_CXX
2721
 
 
2722
 
 
2723
 
# _LT_AC_LANG_CXX
2724
 
# ---------------
2725
 
AC_DEFUN([_LT_AC_LANG_CXX],
2726
 
[AC_REQUIRE([AC_PROG_CXX])
2727
 
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
2728
 
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
2729
 
])# _LT_AC_LANG_CXX
2730
 
 
2731
 
# _LT_AC_PROG_CXXCPP
2732
 
# ------------------
2733
 
AC_DEFUN([_LT_AC_PROG_CXXCPP],
2734
 
[
2735
 
AC_REQUIRE([AC_PROG_CXX])
2736
 
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
2737
 
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
2738
 
    (test "X$CXX" != "Xg++"))) ; then
2739
 
  AC_PROG_CXXCPP
2740
 
fi
2741
 
])# _LT_AC_PROG_CXXCPP
2742
 
 
2743
 
# AC_LIBTOOL_F77
2744
 
# --------------
2745
 
# enable support for Fortran 77 libraries
2746
 
AC_DEFUN([AC_LIBTOOL_F77],
2747
 
[AC_REQUIRE([_LT_AC_LANG_F77])
2748
 
])# AC_LIBTOOL_F77
2749
 
 
2750
 
 
2751
 
# _LT_AC_LANG_F77
2752
 
# ---------------
2753
 
AC_DEFUN([_LT_AC_LANG_F77],
2754
 
[AC_REQUIRE([AC_PROG_F77])
2755
 
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
2756
 
])# _LT_AC_LANG_F77
2757
 
 
2758
 
 
2759
 
# AC_LIBTOOL_GCJ
2760
 
# --------------
2761
 
# enable support for GCJ libraries
2762
 
AC_DEFUN([AC_LIBTOOL_GCJ],
2763
 
[AC_REQUIRE([_LT_AC_LANG_GCJ])
2764
 
])# AC_LIBTOOL_GCJ
2765
 
 
2766
 
 
2767
 
# _LT_AC_LANG_GCJ
2768
 
# ---------------
2769
 
AC_DEFUN([_LT_AC_LANG_GCJ],
2770
 
[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
2771
 
  [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
2772
 
    [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
2773
 
      [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
2774
 
         [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
2775
 
           [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
2776
 
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
2777
 
])# _LT_AC_LANG_GCJ
2778
 
 
2779
 
 
2780
 
# AC_LIBTOOL_RC
2781
 
# -------------
2782
 
# enable support for Windows resource files
2783
 
AC_DEFUN([AC_LIBTOOL_RC],
2784
 
[AC_REQUIRE([LT_AC_PROG_RC])
2785
 
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
2786
 
])# AC_LIBTOOL_RC
2787
 
 
2788
 
 
2789
 
# AC_LIBTOOL_LANG_C_CONFIG
2790
 
# ------------------------
2791
 
# Ensure that the configuration vars for the C compiler are
2792
 
# suitably defined.  Those variables are subsequently used by
2793
 
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2794
 
AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
2795
 
AC_DEFUN([_LT_AC_LANG_C_CONFIG],
2796
 
[lt_save_CC="$CC"
2797
 
AC_LANG_PUSH(C)
2798
 
 
2799
 
# Source file extension for C test sources.
2800
 
ac_ext=c
2801
 
 
2802
 
# Object file extension for compiled C test sources.
2803
 
objext=o
2804
 
_LT_AC_TAGVAR(objext, $1)=$objext
2805
 
 
2806
 
# Code to be used in simple compile tests
2807
 
lt_simple_compile_test_code="int some_variable = 0;"
2808
 
 
2809
 
# Code to be used in simple link tests
2810
 
lt_simple_link_test_code='int main(){return(0);}'
2811
 
 
2812
 
_LT_AC_SYS_COMPILER
2813
 
 
2814
 
# save warnings/boilerplate of simple test code
2815
 
_LT_COMPILER_BOILERPLATE
2816
 
_LT_LINKER_BOILERPLATE
2817
 
 
2818
 
## CAVEAT EMPTOR:
2819
 
## There is no encapsulation within the following macros, do not change
2820
 
## the running order or otherwise move them around unless you know exactly
2821
 
## what you are doing...
2822
 
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
2823
 
AC_LIBTOOL_PROG_COMPILER_PIC($1)
2824
 
AC_LIBTOOL_PROG_CC_C_O($1)
2825
 
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
2826
 
AC_LIBTOOL_PROG_LD_SHLIBS($1)
2827
 
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
2828
 
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
2829
 
AC_LIBTOOL_SYS_LIB_STRIP
2830
 
AC_LIBTOOL_DLOPEN_SELF
2831
 
 
2832
 
# Report which library types will actually be built
2833
 
AC_MSG_CHECKING([if libtool supports shared libraries])
2834
 
AC_MSG_RESULT([$can_build_shared])
2835
 
 
2836
 
AC_MSG_CHECKING([whether to build shared libraries])
2837
 
test "$can_build_shared" = "no" && enable_shared=no
2838
 
 
2839
 
# On AIX, shared libraries and static libraries use the same namespace, and
2840
 
# are all built from PIC.
2841
 
case $host_os in
2842
 
aix3*)
2843
 
  test "$enable_shared" = yes && enable_static=no
2844
 
  if test -n "$RANLIB"; then
2845
 
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
2846
 
    postinstall_cmds='$RANLIB $lib'
2847
 
  fi
2848
 
  ;;
2849
 
 
2850
 
aix[[4-9]]*)
2851
 
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
2852
 
    test "$enable_shared" = yes && enable_static=no
2853
 
  fi
2854
 
    ;;
2855
 
esac
2856
 
AC_MSG_RESULT([$enable_shared])
2857
 
 
2858
 
AC_MSG_CHECKING([whether to build static libraries])
2859
 
# Make sure either enable_shared or enable_static is yes.
2860
 
test "$enable_shared" = yes || enable_static=yes
2861
 
AC_MSG_RESULT([$enable_static])
2862
 
 
2863
 
AC_LIBTOOL_CONFIG($1)
2864
 
 
2865
 
AC_LANG_POP
2866
 
CC="$lt_save_CC"
2867
 
])# AC_LIBTOOL_LANG_C_CONFIG
2868
 
 
2869
 
 
2870
 
# AC_LIBTOOL_LANG_CXX_CONFIG
2871
 
# --------------------------
2872
 
# Ensure that the configuration vars for the C compiler are
2873
 
# suitably defined.  Those variables are subsequently used by
2874
 
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2875
 
AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
2876
 
AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
2877
 
[AC_LANG_PUSH(C++)
2878
 
AC_REQUIRE([AC_PROG_CXX])
2879
 
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
2880
 
 
2881
 
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2882
 
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
2883
 
_LT_AC_TAGVAR(always_export_symbols, $1)=no
2884
 
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
2885
 
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
2886
 
_LT_AC_TAGVAR(hardcode_direct, $1)=no
2887
 
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
2888
 
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
2889
 
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2890
 
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
2891
 
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2892
 
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
2893
 
_LT_AC_TAGVAR(module_cmds, $1)=
2894
 
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
2895
 
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
2896
 
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
2897
 
_LT_AC_TAGVAR(no_undefined_flag, $1)=
2898
 
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
2899
 
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
2900
 
 
2901
 
# Dependencies to place before and after the object being linked:
2902
 
_LT_AC_TAGVAR(predep_objects, $1)=
2903
 
_LT_AC_TAGVAR(postdep_objects, $1)=
2904
 
_LT_AC_TAGVAR(predeps, $1)=
2905
 
_LT_AC_TAGVAR(postdeps, $1)=
2906
 
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
2907
 
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
2908
 
 
2909
 
# Source file extension for C++ test sources.
2910
 
ac_ext=cpp
2911
 
 
2912
 
# Object file extension for compiled C++ test sources.
2913
 
objext=o
2914
 
_LT_AC_TAGVAR(objext, $1)=$objext
2915
 
 
2916
 
# Code to be used in simple compile tests
2917
 
lt_simple_compile_test_code="int some_variable = 0;"
2918
 
 
2919
 
# Code to be used in simple link tests
2920
 
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
2921
 
 
2922
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
2923
 
_LT_AC_SYS_COMPILER
2924
 
 
2925
 
# save warnings/boilerplate of simple test code
2926
 
_LT_COMPILER_BOILERPLATE
2927
 
_LT_LINKER_BOILERPLATE
2928
 
 
2929
 
# Allow CC to be a program name with arguments.
2930
 
lt_save_CC=$CC
2931
 
lt_save_LD=$LD
2932
 
lt_save_GCC=$GCC
2933
 
GCC=$GXX
2934
 
lt_save_with_gnu_ld=$with_gnu_ld
2935
 
lt_save_path_LD=$lt_cv_path_LD
2936
 
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
2937
 
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
2938
 
else
2939
 
  $as_unset lt_cv_prog_gnu_ld
2940
 
fi
2941
 
if test -n "${lt_cv_path_LDCXX+set}"; then
2942
 
  lt_cv_path_LD=$lt_cv_path_LDCXX
2943
 
else
2944
 
  $as_unset lt_cv_path_LD
2945
 
fi
2946
 
test -z "${LDCXX+set}" || LD=$LDCXX
2947
 
CC=${CXX-"c++"}
2948
 
compiler=$CC
2949
 
_LT_AC_TAGVAR(compiler, $1)=$CC
2950
 
_LT_CC_BASENAME([$compiler])
2951
 
 
2952
 
# We don't want -fno-exception wen compiling C++ code, so set the
2953
 
# no_builtin_flag separately
2954
 
if test "$GXX" = yes; then
2955
 
  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
2956
 
else
2957
 
  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
2958
 
fi
2959
 
 
2960
 
if test "$GXX" = yes; then
2961
 
  # Set up default GNU C++ configuration
2962
 
 
2963
 
  AC_PROG_LD
2964
 
 
2965
 
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
2966
 
  # archiving commands below assume that GNU ld is being used.
2967
 
  if test "$with_gnu_ld" = yes; then
2968
 
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
2969
 
    _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'
2970
 
 
2971
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
2972
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
2973
 
 
2974
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
2975
 
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
2976
 
    #     investigate it a little bit more. (MM)
2977
 
    wlarc='${wl}'
2978
 
 
2979
 
    # ancient GNU ld didn't support --whole-archive et. al.
2980
 
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
2981
 
        grep 'no-whole-archive' > /dev/null; then
2982
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
2983
 
    else
2984
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
2985
 
    fi
2986
 
  else
2987
 
    with_gnu_ld=no
2988
 
    wlarc=
2989
 
 
2990
 
    # A generic and very simple default shared library creation
2991
 
    # command for GNU C++ for the case where it uses the native
2992
 
    # linker, instead of GNU ld.  If possible, this setting should
2993
 
    # overridden to take advantage of the native linker features on
2994
 
    # the platform it is being used on.
2995
 
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
2996
 
  fi
2997
 
 
2998
 
  # Commands to make compiler produce verbose output that lists
2999
 
  # what "hidden" libraries, object files and flags are used when
3000
 
  # linking a shared library.
3001
 
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3002
 
 
3003
 
else
3004
 
  GXX=no
3005
 
  with_gnu_ld=no
3006
 
  wlarc=
3007
 
fi
3008
 
 
3009
 
# PORTME: fill in a description of your system's C++ link characteristics
3010
 
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
3011
 
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
3012
 
case $host_os in
3013
 
  aix3*)
3014
 
    # FIXME: insert proper C++ library support
3015
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3016
 
    ;;
3017
 
  aix[[4-9]]*)
3018
 
    if test "$host_cpu" = ia64; then
3019
 
      # On IA64, the linker does run time linking by default, so we don't
3020
 
      # have to do anything special.
3021
 
      aix_use_runtimelinking=no
3022
 
      exp_sym_flag='-Bexport'
3023
 
      no_entry_flag=""
3024
 
    else
3025
 
      aix_use_runtimelinking=no
3026
 
 
3027
 
      # Test if we are trying to use run time linking or normal
3028
 
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
3029
 
      # need to do runtime linking.
3030
 
      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
3031
 
        for ld_flag in $LDFLAGS; do
3032
 
          case $ld_flag in
3033
 
          *-brtl*)
3034
 
            aix_use_runtimelinking=yes
3035
 
            break
3036
 
            ;;
3037
 
          esac
3038
 
        done
3039
 
        ;;
3040
 
      esac
3041
 
 
3042
 
      exp_sym_flag='-bexport'
3043
 
      no_entry_flag='-bnoentry'
3044
 
    fi
3045
 
 
3046
 
    # When large executables or shared objects are built, AIX ld can
3047
 
    # have problems creating the table of contents.  If linking a library
3048
 
    # or program results in "error TOC overflow" add -mminimal-toc to
3049
 
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
3050
 
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
3051
 
 
3052
 
    _LT_AC_TAGVAR(archive_cmds, $1)=''
3053
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3054
 
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3055
 
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3056
 
 
3057
 
    if test "$GXX" = yes; then
3058
 
      case $host_os in aix4.[[012]]|aix4.[[012]].*)
3059
 
      # We only want to do this on AIX 4.2 and lower, the check
3060
 
      # below for broken collect2 doesn't work under 4.3+
3061
 
        collect2name=`${CC} -print-prog-name=collect2`
3062
 
        if test -f "$collect2name" && \
3063
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
3064
 
        then
3065
 
          # We have reworked collect2
3066
 
          :
3067
 
        else
3068
 
          # We have old collect2
3069
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3070
 
          # It fails to find uninstalled libraries when the uninstalled
3071
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
3072
 
          # to unsupported forces relinking
3073
 
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
3074
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3075
 
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3076
 
        fi
3077
 
        ;;
3078
 
      esac
3079
 
      shared_flag='-shared'
3080
 
      if test "$aix_use_runtimelinking" = yes; then
3081
 
        shared_flag="$shared_flag "'${wl}-G'
3082
 
      fi
3083
 
    else
3084
 
      # not using gcc
3085
 
      if test "$host_cpu" = ia64; then
3086
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
3087
 
        # chokes on -Wl,-G. The following line is correct:
3088
 
        shared_flag='-G'
3089
 
      else
3090
 
        if test "$aix_use_runtimelinking" = yes; then
3091
 
          shared_flag='${wl}-G'
3092
 
        else
3093
 
          shared_flag='${wl}-bM:SRE'
3094
 
        fi
3095
 
      fi
3096
 
    fi
3097
 
 
3098
 
    # It seems that -bexpall does not export symbols beginning with
3099
 
    # underscore (_), so it is better to generate a list of symbols to export.
3100
 
    _LT_AC_TAGVAR(always_export_symbols, $1)=yes
3101
 
    if test "$aix_use_runtimelinking" = yes; then
3102
 
      # Warning - without using the other runtime loading flags (-brtl),
3103
 
      # -berok will link without error, but may produce a broken library.
3104
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
3105
 
      # Determine the default libpath from the value encoded in an empty executable.
3106
 
      _LT_AC_SYS_LIBPATH_AIX
3107
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3108
 
 
3109
 
      _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"
3110
 
     else
3111
 
      if test "$host_cpu" = ia64; then
3112
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
3113
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
3114
 
        _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"
3115
 
      else
3116
 
        # Determine the default libpath from the value encoded in an empty executable.
3117
 
        _LT_AC_SYS_LIBPATH_AIX
3118
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3119
 
        # Warning - without using the other run time loading flags,
3120
 
        # -berok will link without error, but may produce a broken library.
3121
 
        _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
3122
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
3123
 
        # Exported symbols can be pulled into shared objects from archives
3124
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
3125
 
        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
3126
 
        # This is similar to how AIX traditionally builds its shared libraries.
3127
 
        _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'
3128
 
      fi
3129
 
    fi
3130
 
    ;;
3131
 
 
3132
 
  beos*)
3133
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
3134
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3135
 
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3136
 
      # support --undefined.  This deserves some investigation.  FIXME
3137
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3138
 
    else
3139
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
3140
 
    fi
3141
 
    ;;
3142
 
 
3143
 
  chorus*)
3144
 
    case $cc_basename in
3145
 
      *)
3146
 
        # FIXME: insert proper C++ library support
3147
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3148
 
        ;;
3149
 
    esac
3150
 
    ;;
3151
 
 
3152
 
  cygwin* | mingw* | pw32*)
3153
 
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
3154
 
    # as there is no search path for DLLs.
3155
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3156
 
    _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3157
 
    _LT_AC_TAGVAR(always_export_symbols, $1)=no
3158
 
    _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
3159
 
 
3160
 
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
3161
 
      _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'
3162
 
      # If the export-symbols file already is a .def file (1st line
3163
 
      # is EXPORTS), use it as is; otherwise, prepend...
3164
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
3165
 
        cp $export_symbols $output_objdir/$soname.def;
3166
 
      else
3167
 
        echo EXPORTS > $output_objdir/$soname.def;
3168
 
        cat $export_symbols >> $output_objdir/$soname.def;
3169
 
      fi~
3170
 
      $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'
3171
 
    else
3172
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
3173
 
    fi
3174
 
  ;;
3175
 
      darwin* | rhapsody*)
3176
 
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3177
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
3178
 
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3179
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3180
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3181
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3182
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
3183
 
      if test "$GXX" = yes ; then
3184
 
      output_verbose_link_cmd='echo'
3185
 
      _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
3186
 
      _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
3187
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
3188
 
      _LT_AC_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
3189
 
      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
3190
 
        _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
3191
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
3192
 
      fi
3193
 
      else
3194
 
      case $cc_basename in
3195
 
        xlc*)
3196
 
         output_verbose_link_cmd='echo'
3197
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
3198
 
          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3199
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3200
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3201
 
          _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}'
3202
 
          ;;
3203
 
       *)
3204
 
         _LT_AC_TAGVAR(ld_shlibs, $1)=no
3205
 
          ;;
3206
 
      esac
3207
 
      fi
3208
 
        ;;
3209
 
 
3210
 
  dgux*)
3211
 
    case $cc_basename in
3212
 
      ec++*)
3213
 
        # FIXME: insert proper C++ library support
3214
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3215
 
        ;;
3216
 
      ghcx*)
3217
 
        # Green Hills C++ Compiler
3218
 
        # FIXME: insert proper C++ library support
3219
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3220
 
        ;;
3221
 
      *)
3222
 
        # FIXME: insert proper C++ library support
3223
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3224
 
        ;;
3225
 
    esac
3226
 
    ;;
3227
 
  freebsd[[12]]*)
3228
 
    # C++ shared libraries reported to be fairly broken before switch to ELF
3229
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3230
 
    ;;
3231
 
  freebsd-elf*)
3232
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3233
 
    ;;
3234
 
  freebsd* | dragonfly*)
3235
 
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3236
 
    # conventions
3237
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=yes
3238
 
    ;;
3239
 
  gnu*)
3240
 
    ;;
3241
 
  hpux9*)
3242
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3243
 
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3244
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3245
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3246
 
    _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3247
 
                                # but as the default
3248
 
                                # location of the library.
3249
 
 
3250
 
    case $cc_basename in
3251
 
    CC*)
3252
 
      # FIXME: insert proper C++ library support
3253
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
3254
 
      ;;
3255
 
    aCC*)
3256
 
      _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'
3257
 
      # Commands to make compiler produce verbose output that lists
3258
 
      # what "hidden" libraries, object files and flags are used when
3259
 
      # linking a shared library.
3260
 
      #
3261
 
      # There doesn't appear to be a way to prevent this compiler from
3262
 
      # explicitly linking system object files so we need to strip them
3263
 
      # from the output so that they don't get included in the library
3264
 
      # dependencies.
3265
 
      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'
3266
 
      ;;
3267
 
    *)
3268
 
      if test "$GXX" = yes; then
3269
 
        _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'
3270
 
      else
3271
 
        # FIXME: insert proper C++ library support
3272
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3273
 
      fi
3274
 
      ;;
3275
 
    esac
3276
 
    ;;
3277
 
  hpux10*|hpux11*)
3278
 
    if test $with_gnu_ld = no; then
3279
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3280
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3281
 
 
3282
 
      case $host_cpu in
3283
 
      hppa*64*|ia64*) ;;
3284
 
      *)
3285
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3286
 
        ;;
3287
 
      esac
3288
 
    fi
3289
 
    case $host_cpu in
3290
 
    hppa*64*|ia64*)
3291
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
3292
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3293
 
      ;;
3294
 
    *)
3295
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3296
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3297
 
                                              # but as the default
3298
 
                                              # location of the library.
3299
 
      ;;
3300
 
    esac
3301
 
 
3302
 
    case $cc_basename in
3303
 
      CC*)
3304
 
        # FIXME: insert proper C++ library support
3305
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3306
 
        ;;
3307
 
      aCC*)
3308
 
        case $host_cpu in
3309
 
        hppa*64*)
3310
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3311
 
          ;;
3312
 
        ia64*)
3313
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3314
 
          ;;
3315
 
        *)
3316
 
          _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'
3317
 
          ;;
3318
 
        esac
3319
 
        # Commands to make compiler produce verbose output that lists
3320
 
        # what "hidden" libraries, object files and flags are used when
3321
 
        # linking a shared library.
3322
 
        #
3323
 
        # There doesn't appear to be a way to prevent this compiler from
3324
 
        # explicitly linking system object files so we need to strip them
3325
 
        # from the output so that they don't get included in the library
3326
 
        # dependencies.
3327
 
        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'
3328
 
        ;;
3329
 
      *)
3330
 
        if test "$GXX" = yes; then
3331
 
          if test $with_gnu_ld = no; then
3332
 
            case $host_cpu in
3333
 
            hppa*64*)
3334
 
              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3335
 
              ;;
3336
 
            ia64*)
3337
 
              _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'
3338
 
              ;;
3339
 
            *)
3340
 
              _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'
3341
 
              ;;
3342
 
            esac
3343
 
          fi
3344
 
        else
3345
 
          # FIXME: insert proper C++ library support
3346
 
          _LT_AC_TAGVAR(ld_shlibs, $1)=no
3347
 
        fi
3348
 
        ;;
3349
 
    esac
3350
 
    ;;
3351
 
  interix[[3-9]]*)
3352
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
3353
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3354
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3355
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3356
 
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
3357
 
    # Instead, shared libraries are loaded at an image base (0x10000000 by
3358
 
    # default) and relocated if they conflict, which is a slow very memory
3359
 
    # consuming and fragmenting process.  To avoid this, we pick a random,
3360
 
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
3361
 
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
3362
 
    _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'
3363
 
    _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'
3364
 
    ;;
3365
 
  irix5* | irix6*)
3366
 
    case $cc_basename in
3367
 
      CC*)
3368
 
        # SGI C++
3369
 
        _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'
3370
 
 
3371
 
        # Archives containing C++ object files must be created using
3372
 
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
3373
 
        # necessary to make sure instantiated templates are included
3374
 
        # in the archive.
3375
 
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
3376
 
        ;;
3377
 
      *)
3378
 
        if test "$GXX" = yes; then
3379
 
          if test "$with_gnu_ld" = no; then
3380
 
            _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'
3381
 
          else
3382
 
            _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'
3383
 
          fi
3384
 
        fi
3385
 
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3386
 
        ;;
3387
 
    esac
3388
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3389
 
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3390
 
    ;;
3391
 
  linux* | k*bsd*-gnu)
3392
 
    case $cc_basename in
3393
 
      KCC*)
3394
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
3395
 
 
3396
 
        # KCC will only create a shared library if the output file
3397
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
3398
 
        # to its proper name (with version) after linking.
3399
 
        _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'
3400
 
        _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'
3401
 
        # Commands to make compiler produce verbose output that lists
3402
 
        # what "hidden" libraries, object files and flags are used when
3403
 
        # linking a shared library.
3404
 
        #
3405
 
        # There doesn't appear to be a way to prevent this compiler from
3406
 
        # explicitly linking system object files so we need to strip them
3407
 
        # from the output so that they don't get included in the library
3408
 
        # dependencies.
3409
 
        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'
3410
 
 
3411
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
3412
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3413
 
 
3414
 
        # Archives containing C++ object files must be created using
3415
 
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
3416
 
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3417
 
        ;;
3418
 
      icpc*)
3419
 
        # Intel C++
3420
 
        with_gnu_ld=yes
3421
 
        # version 8.0 and above of icpc choke on multiply defined symbols
3422
 
        # if we add $predep_objects and $postdep_objects, however 7.1 and
3423
 
        # earlier do not add the objects themselves.
3424
 
        case `$CC -V 2>&1` in
3425
 
        *"Version 7."*)
3426
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3427
 
          _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'
3428
 
          ;;
3429
 
        *)  # Version 8.0 or newer
3430
 
          tmp_idyn=
3431
 
          case $host_cpu in
3432
 
            ia64*) tmp_idyn=' -i_dynamic';;
3433
 
          esac
3434
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3435
 
          _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'
3436
 
          ;;
3437
 
        esac
3438
 
        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3439
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3440
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3441
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
3442
 
        ;;
3443
 
      pgCC* | pgcpp*)
3444
 
        # Portland Group C++ compiler
3445
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
3446
 
        _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'
3447
 
 
3448
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3449
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3450
 
        _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'
3451
 
        ;;
3452
 
      cxx*)
3453
 
        # Compaq C++
3454
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3455
 
        _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'
3456
 
 
3457
 
        runpath_var=LD_RUN_PATH
3458
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3459
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3460
 
 
3461
 
        # Commands to make compiler produce verbose output that lists
3462
 
        # what "hidden" libraries, object files and flags are used when
3463
 
        # linking a shared library.
3464
 
        #
3465
 
        # There doesn't appear to be a way to prevent this compiler from
3466
 
        # explicitly linking system object files so we need to strip them
3467
 
        # from the output so that they don't get included in the library
3468
 
        # dependencies.
3469
 
        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'
3470
 
        ;;
3471
 
      *)
3472
 
        case `$CC -V 2>&1 | sed 5q` in
3473
 
        *Sun\ C*)
3474
 
          # Sun C++ 5.9
3475
 
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3476
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3477
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
3478
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3479
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
3480
 
 
3481
 
          # Not sure whether something based on
3482
 
          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
3483
 
          # would be better.
3484
 
          output_verbose_link_cmd='echo'
3485
 
 
3486
 
          # Archives containing C++ object files must be created using
3487
 
          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
3488
 
          # necessary to make sure instantiated templates are included
3489
 
          # in the archive.
3490
 
          _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
3491
 
          ;;
3492
 
        esac
3493
 
        ;;
3494
 
    esac
3495
 
    ;;
3496
 
  lynxos*)
3497
 
    # FIXME: insert proper C++ library support
3498
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3499
 
    ;;
3500
 
  m88k*)
3501
 
    # FIXME: insert proper C++ library support
3502
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3503
 
    ;;
3504
 
  mvs*)
3505
 
    case $cc_basename in
3506
 
      cxx*)
3507
 
        # FIXME: insert proper C++ library support
3508
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3509
 
        ;;
3510
 
      *)
3511
 
        # FIXME: insert proper C++ library support
3512
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3513
 
        ;;
3514
 
    esac
3515
 
    ;;
3516
 
  netbsd* | netbsdelf*-gnu)
3517
 
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3518
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
3519
 
      wlarc=
3520
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3521
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3522
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3523
 
    fi
3524
 
    # Workaround some broken pre-1.5 toolchains
3525
 
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
3526
 
    ;;
3527
 
  openbsd2*)
3528
 
    # C++ shared libraries are fairly broken
3529
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3530
 
    ;;
3531
 
  openbsd*)
3532
 
    if test -f /usr/libexec/ld.so; then
3533
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3534
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3535
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3536
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3537
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3538
 
        _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'
3539
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3540
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3541
 
      fi
3542
 
      output_verbose_link_cmd='echo'
3543
 
    else
3544
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
3545
 
    fi
3546
 
    ;;
3547
 
  osf3*)
3548
 
    case $cc_basename in
3549
 
      KCC*)
3550
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
3551
 
 
3552
 
        # KCC will only create a shared library if the output file
3553
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
3554
 
        # to its proper name (with version) after linking.
3555
 
        _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'
3556
 
 
3557
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3558
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3559
 
 
3560
 
        # Archives containing C++ object files must be created using
3561
 
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
3562
 
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3563
 
 
3564
 
        ;;
3565
 
      RCC*)
3566
 
        # Rational C++ 2.4.1
3567
 
        # FIXME: insert proper C++ library support
3568
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3569
 
        ;;
3570
 
      cxx*)
3571
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3572
 
        _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'
3573
 
 
3574
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3575
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3576
 
 
3577
 
        # Commands to make compiler produce verbose output that lists
3578
 
        # what "hidden" libraries, object files and flags are used when
3579
 
        # linking a shared library.
3580
 
        #
3581
 
        # There doesn't appear to be a way to prevent this compiler from
3582
 
        # explicitly linking system object files so we need to strip them
3583
 
        # from the output so that they don't get included in the library
3584
 
        # dependencies.
3585
 
        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'
3586
 
        ;;
3587
 
      *)
3588
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3589
 
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3590
 
          _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'
3591
 
 
3592
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3593
 
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3594
 
 
3595
 
          # Commands to make compiler produce verbose output that lists
3596
 
          # what "hidden" libraries, object files and flags are used when
3597
 
          # linking a shared library.
3598
 
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3599
 
 
3600
 
        else
3601
 
          # FIXME: insert proper C++ library support
3602
 
          _LT_AC_TAGVAR(ld_shlibs, $1)=no
3603
 
        fi
3604
 
        ;;
3605
 
    esac
3606
 
    ;;
3607
 
  osf4* | osf5*)
3608
 
    case $cc_basename in
3609
 
      KCC*)
3610
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
3611
 
 
3612
 
        # KCC will only create a shared library if the output file
3613
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
3614
 
        # to its proper name (with version) after linking.
3615
 
        _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'
3616
 
 
3617
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3618
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3619
 
 
3620
 
        # Archives containing C++ object files must be created using
3621
 
        # the KAI C++ compiler.
3622
 
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
3623
 
        ;;
3624
 
      RCC*)
3625
 
        # Rational C++ 2.4.1
3626
 
        # FIXME: insert proper C++ library support
3627
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3628
 
        ;;
3629
 
      cxx*)
3630
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
3631
 
        _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'
3632
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
3633
 
          echo "-hidden">> $lib.exp~
3634
 
          $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~
3635
 
          $rm $lib.exp'
3636
 
 
3637
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3638
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3639
 
 
3640
 
        # Commands to make compiler produce verbose output that lists
3641
 
        # what "hidden" libraries, object files and flags are used when
3642
 
        # linking a shared library.
3643
 
        #
3644
 
        # There doesn't appear to be a way to prevent this compiler from
3645
 
        # explicitly linking system object files so we need to strip them
3646
 
        # from the output so that they don't get included in the library
3647
 
        # dependencies.
3648
 
        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'
3649
 
        ;;
3650
 
      *)
3651
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3652
 
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3653
 
         _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'
3654
 
 
3655
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3656
 
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3657
 
 
3658
 
          # Commands to make compiler produce verbose output that lists
3659
 
          # what "hidden" libraries, object files and flags are used when
3660
 
          # linking a shared library.
3661
 
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3662
 
 
3663
 
        else
3664
 
          # FIXME: insert proper C++ library support
3665
 
          _LT_AC_TAGVAR(ld_shlibs, $1)=no
3666
 
        fi
3667
 
        ;;
3668
 
    esac
3669
 
    ;;
3670
 
  psos*)
3671
 
    # FIXME: insert proper C++ library support
3672
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3673
 
    ;;
3674
 
  sunos4*)
3675
 
    case $cc_basename in
3676
 
      CC*)
3677
 
        # Sun C++ 4.x
3678
 
        # FIXME: insert proper C++ library support
3679
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3680
 
        ;;
3681
 
      lcc*)
3682
 
        # Lucid
3683
 
        # FIXME: insert proper C++ library support
3684
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3685
 
        ;;
3686
 
      *)
3687
 
        # FIXME: insert proper C++ library support
3688
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3689
 
        ;;
3690
 
    esac
3691
 
    ;;
3692
 
  solaris*)
3693
 
    case $cc_basename in
3694
 
      CC*)
3695
 
        # Sun C++ 4.2, 5.x and Centerline C++
3696
 
        _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
3697
 
        _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3698
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3699
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3700
 
        $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'
3701
 
 
3702
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3703
 
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3704
 
        case $host_os in
3705
 
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3706
 
          *)
3707
 
            # The compiler driver will combine and reorder linker options,
3708
 
            # but understands `-z linker_flag'.
3709
 
            # Supported since Solaris 2.6 (maybe 2.5.1?)
3710
 
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
3711
 
            ;;
3712
 
        esac
3713
 
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3714
 
 
3715
 
        output_verbose_link_cmd='echo'
3716
 
 
3717
 
        # Archives containing C++ object files must be created using
3718
 
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
3719
 
        # necessary to make sure instantiated templates are included
3720
 
        # in the archive.
3721
 
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
3722
 
        ;;
3723
 
      gcx*)
3724
 
        # Green Hills C++ Compiler
3725
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3726
 
 
3727
 
        # The C++ compiler must be used to create the archive.
3728
 
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
3729
 
        ;;
3730
 
      *)
3731
 
        # GNU C++ compiler with Solaris linker
3732
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3733
 
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
3734
 
          if $CC --version | grep -v '^2\.7' > /dev/null; then
3735
 
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3736
 
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3737
 
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3738
 
 
3739
 
            # Commands to make compiler produce verbose output that lists
3740
 
            # what "hidden" libraries, object files and flags are used when
3741
 
            # linking a shared library.
3742
 
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
3743
 
          else
3744
 
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
3745
 
            # platform.
3746
 
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3747
 
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3748
 
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3749
 
 
3750
 
            # Commands to make compiler produce verbose output that lists
3751
 
            # what "hidden" libraries, object files and flags are used when
3752
 
            # linking a shared library.
3753
 
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
3754
 
          fi
3755
 
 
3756
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
3757
 
          case $host_os in
3758
 
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3759
 
          *)
3760
 
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
3761
 
            ;;
3762
 
          esac
3763
 
        fi
3764
 
        ;;
3765
 
    esac
3766
 
    ;;
3767
 
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
3768
 
    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3769
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3770
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3771
 
    runpath_var='LD_RUN_PATH'
3772
 
 
3773
 
    case $cc_basename in
3774
 
      CC*)
3775
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3776
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3777
 
        ;;
3778
 
      *)
3779
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3780
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3781
 
        ;;
3782
 
    esac
3783
 
    ;;
3784
 
  sysv5* | sco3.2v5* | sco5v6*)
3785
 
    # Note: We can NOT use -z defs as we might desire, because we do not
3786
 
    # link with -lc, and that would cause any symbols used from libc to
3787
 
    # always be unresolved, which means just about no library would
3788
 
    # ever link correctly.  If we're not using GNU ld we use -z text
3789
 
    # though, which does catch some bad symbols but isn't as heavy-handed
3790
 
    # as -z defs.
3791
 
    # For security reasons, it is highly recommended that you always
3792
 
    # use absolute paths for naming shared libraries, and exclude the
3793
 
    # DT_RUNPATH tag from executables and libraries.  But doing so
3794
 
    # requires that you compile everything twice, which is a pain.
3795
 
    # So that behaviour is only enabled if SCOABSPATH is set to a
3796
 
    # non-empty value in the environment.  Most likely only useful for
3797
 
    # creating official distributions of packages.
3798
 
    # This is a hack until libtool officially supports absolute path
3799
 
    # names for shared libraries.
3800
 
    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3801
 
    _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
3802
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3803
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3804
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
3805
 
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3806
 
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3807
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
3808
 
    runpath_var='LD_RUN_PATH'
3809
 
 
3810
 
    case $cc_basename in
3811
 
      CC*)
3812
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3813
 
        _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'
3814
 
        ;;
3815
 
      *)
3816
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3817
 
        _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'
3818
 
        ;;
3819
 
    esac
3820
 
    ;;
3821
 
  tandem*)
3822
 
    case $cc_basename in
3823
 
      NCC*)
3824
 
        # NonStop-UX NCC 3.20
3825
 
        # FIXME: insert proper C++ library support
3826
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3827
 
        ;;
3828
 
      *)
3829
 
        # FIXME: insert proper C++ library support
3830
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3831
 
        ;;
3832
 
    esac
3833
 
    ;;
3834
 
  vxworks*)
3835
 
    # FIXME: insert proper C++ library support
3836
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3837
 
    ;;
3838
 
  *)
3839
 
    # FIXME: insert proper C++ library support
3840
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3841
 
    ;;
3842
 
esac
3843
 
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
3844
 
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
3845
 
 
3846
 
_LT_AC_TAGVAR(GCC, $1)="$GXX"
3847
 
_LT_AC_TAGVAR(LD, $1)="$LD"
3848
 
 
3849
 
## CAVEAT EMPTOR:
3850
 
## There is no encapsulation within the following macros, do not change
3851
 
## the running order or otherwise move them around unless you know exactly
3852
 
## what you are doing...
3853
 
AC_LIBTOOL_POSTDEP_PREDEP($1)
3854
 
AC_LIBTOOL_PROG_COMPILER_PIC($1)
3855
 
AC_LIBTOOL_PROG_CC_C_O($1)
3856
 
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3857
 
AC_LIBTOOL_PROG_LD_SHLIBS($1)
3858
 
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3859
 
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3860
 
 
3861
 
AC_LIBTOOL_CONFIG($1)
3862
 
 
3863
 
AC_LANG_POP
3864
 
CC=$lt_save_CC
3865
 
LDCXX=$LD
3866
 
LD=$lt_save_LD
3867
 
GCC=$lt_save_GCC
3868
 
with_gnu_ldcxx=$with_gnu_ld
3869
 
with_gnu_ld=$lt_save_with_gnu_ld
3870
 
lt_cv_path_LDCXX=$lt_cv_path_LD
3871
 
lt_cv_path_LD=$lt_save_path_LD
3872
 
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
3873
 
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
3874
 
])# AC_LIBTOOL_LANG_CXX_CONFIG
3875
 
 
3876
 
# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
3877
 
# ------------------------------------
3878
 
# Figure out "hidden" library dependencies from verbose
3879
 
# compiler output when linking a shared library.
3880
 
# Parse the compiler output and extract the necessary
3881
 
# objects, libraries and library flags.
3882
 
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],
3883
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
3884
 
dnl we can't use the lt_simple_compile_test_code here,
3885
 
dnl because it contains code intended for an executable,
3886
 
dnl not a library.  It's possible we should let each
3887
 
dnl tag define a new lt_????_link_test_code variable,
3888
 
dnl but it's only used here...
3889
 
ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
3890
 
int a;
3891
 
void foo (void) { a = 0; }
3892
 
EOF
3893
 
],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
3894
 
class Foo
3895
 
{
3896
 
public:
3897
 
  Foo (void) { a = 0; }
3898
 
private:
3899
 
  int a;
3900
 
};
3901
 
EOF
3902
 
],[$1],[F77],[cat > conftest.$ac_ext <<EOF
3903
 
      subroutine foo
3904
 
      implicit none
3905
 
      integer*4 a
3906
 
      a=0
3907
 
      return
3908
 
      end
3909
 
EOF
3910
 
],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
3911
 
public class foo {
3912
 
  private int a;
3913
 
  public void bar (void) {
3914
 
    a = 0;
3915
 
  }
3916
 
};
3917
 
EOF
3918
 
])
3919
 
dnl Parse the compiler output and extract the necessary
3920
 
dnl objects, libraries and library flags.
3921
 
if AC_TRY_EVAL(ac_compile); then
3922
 
  # Parse the compiler output and extract the necessary
3923
 
  # objects, libraries and library flags.
3924
 
 
3925
 
  # Sentinel used to keep track of whether or not we are before
3926
 
  # the conftest object file.
3927
 
  pre_test_object_deps_done=no
3928
 
 
3929
 
  # The `*' in the case matches for architectures that use `case' in
3930
 
  # $output_verbose_cmd can trigger glob expansion during the loop
3931
 
  # eval without this substitution.
3932
 
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
3933
 
 
3934
 
  for p in `eval $output_verbose_link_cmd`; do
3935
 
    case $p in
3936
 
 
3937
 
    -L* | -R* | -l*)
3938
 
       # Some compilers place space between "-{L,R}" and the path.
3939
 
       # Remove the space.
3940
 
       if test $p = "-L" \
3941
 
          || test $p = "-R"; then
3942
 
         prev=$p
3943
 
         continue
3944
 
       else
3945
 
         prev=
3946
 
       fi
3947
 
 
3948
 
       if test "$pre_test_object_deps_done" = no; then
3949
 
         case $p in
3950
 
         -L* | -R*)
3951
 
           # Internal compiler library paths should come after those
3952
 
           # provided the user.  The postdeps already come after the
3953
 
           # user supplied libs so there is no need to process them.
3954
 
           if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
3955
 
             _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
3956
 
           else
3957
 
             _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
3958
 
           fi
3959
 
           ;;
3960
 
         # The "-l" case would never come before the object being
3961
 
         # linked, so don't bother handling this case.
3962
 
         esac
3963
 
       else
3964
 
         if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
3965
 
           _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
3966
 
         else
3967
 
           _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
3968
 
         fi
3969
 
       fi
3970
 
       ;;
3971
 
 
3972
 
    *.$objext)
3973
 
       # This assumes that the test object file only shows up
3974
 
       # once in the compiler output.
3975
 
       if test "$p" = "conftest.$objext"; then
3976
 
         pre_test_object_deps_done=yes
3977
 
         continue
3978
 
       fi
3979
 
 
3980
 
       if test "$pre_test_object_deps_done" = no; then
3981
 
         if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
3982
 
           _LT_AC_TAGVAR(predep_objects, $1)="$p"
3983
 
         else
3984
 
           _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
3985
 
         fi
3986
 
       else
3987
 
         if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
3988
 
           _LT_AC_TAGVAR(postdep_objects, $1)="$p"
3989
 
         else
3990
 
           _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
3991
 
         fi
3992
 
       fi
3993
 
       ;;
3994
 
 
3995
 
    *) ;; # Ignore the rest.
3996
 
 
3997
 
    esac
3998
 
  done
3999
 
 
4000
 
  # Clean up.
4001
 
  rm -f a.out a.exe
4002
 
else
4003
 
  echo "libtool.m4: error: problem compiling $1 test program"
4004
 
fi
4005
 
 
4006
 
$rm -f confest.$objext
4007
 
 
4008
 
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
4009
 
if test -n "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
4010
 
  _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_AC_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
4011
 
fi
4012
 
 
4013
 
# PORTME: override above test on systems where it is broken
4014
 
ifelse([$1],[CXX],
4015
 
[case $host_os in
4016
 
interix[[3-9]]*)
4017
 
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
4018
 
  # hack all around it, let's just trust "g++" to DTRT.
4019
 
  _LT_AC_TAGVAR(predep_objects,$1)=
4020
 
  _LT_AC_TAGVAR(postdep_objects,$1)=
4021
 
  _LT_AC_TAGVAR(postdeps,$1)=
4022
 
  ;;
4023
 
 
4024
 
linux*)
4025
 
  case `$CC -V 2>&1 | sed 5q` in
4026
 
  *Sun\ C*)
4027
 
    # Sun C++ 5.9
4028
 
    #
4029
 
    # The more standards-conforming stlport4 library is
4030
 
    # incompatible with the Cstd library. Avoid specifying
4031
 
    # it if it's in CXXFLAGS. Ignore libCrun as
4032
 
    # -library=stlport4 depends on it.
4033
 
    case " $CXX $CXXFLAGS " in
4034
 
    *" -library=stlport4 "*)
4035
 
      solaris_use_stlport4=yes
4036
 
      ;;
4037
 
    esac
4038
 
    if test "$solaris_use_stlport4" != yes; then
4039
 
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
4040
 
    fi
4041
 
    ;;
4042
 
  esac
4043
 
  ;;
4044
 
 
4045
 
solaris*)
4046
 
  case $cc_basename in
4047
 
  CC*)
4048
 
    # The more standards-conforming stlport4 library is
4049
 
    # incompatible with the Cstd library. Avoid specifying
4050
 
    # it if it's in CXXFLAGS. Ignore libCrun as
4051
 
    # -library=stlport4 depends on it.
4052
 
    case " $CXX $CXXFLAGS " in
4053
 
    *" -library=stlport4 "*)
4054
 
      solaris_use_stlport4=yes
4055
 
      ;;
4056
 
    esac
4057
 
 
4058
 
    # Adding this requires a known-good setup of shared libraries for
4059
 
    # Sun compiler versions before 5.6, else PIC objects from an old
4060
 
    # archive will be linked into the output, leading to subtle bugs.
4061
 
    if test "$solaris_use_stlport4" != yes; then
4062
 
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
4063
 
    fi
4064
 
    ;;
4065
 
  esac
4066
 
  ;;
4067
 
esac
4068
 
])
4069
 
case " $_LT_AC_TAGVAR(postdeps, $1) " in
4070
 
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
4071
 
esac
4072
 
])# AC_LIBTOOL_POSTDEP_PREDEP
4073
 
 
4074
 
# AC_LIBTOOL_LANG_F77_CONFIG
4075
 
# --------------------------
4076
 
# Ensure that the configuration vars for the C compiler are
4077
 
# suitably defined.  Those variables are subsequently used by
4078
 
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4079
 
AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
4080
 
AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
4081
 
[AC_REQUIRE([AC_PROG_F77])
4082
 
AC_LANG_PUSH(Fortran 77)
4083
 
 
4084
 
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4085
 
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
4086
 
_LT_AC_TAGVAR(always_export_symbols, $1)=no
4087
 
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
4088
 
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
4089
 
_LT_AC_TAGVAR(hardcode_direct, $1)=no
4090
 
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
4091
 
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4092
 
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4093
 
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
4094
 
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
4095
 
_LT_AC_TAGVAR(module_cmds, $1)=
4096
 
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
4097
 
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
4098
 
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4099
 
_LT_AC_TAGVAR(no_undefined_flag, $1)=
4100
 
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4101
 
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4102
 
 
4103
 
# Source file extension for f77 test sources.
4104
 
ac_ext=f
4105
 
 
4106
 
# Object file extension for compiled f77 test sources.
4107
 
objext=o
4108
 
_LT_AC_TAGVAR(objext, $1)=$objext
4109
 
 
4110
 
# Code to be used in simple compile tests
4111
 
lt_simple_compile_test_code="\
4112
 
      subroutine t
4113
 
      return
4114
 
      end
4115
 
"
4116
 
 
4117
 
# Code to be used in simple link tests
4118
 
lt_simple_link_test_code="\
4119
 
      program t
4120
 
      end
4121
 
"
4122
 
 
4123
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4124
 
_LT_AC_SYS_COMPILER
4125
 
 
4126
 
# save warnings/boilerplate of simple test code
4127
 
_LT_COMPILER_BOILERPLATE
4128
 
_LT_LINKER_BOILERPLATE
4129
 
 
4130
 
# Allow CC to be a program name with arguments.
4131
 
lt_save_CC="$CC"
4132
 
CC=${F77-"f77"}
4133
 
compiler=$CC
4134
 
_LT_AC_TAGVAR(compiler, $1)=$CC
4135
 
_LT_CC_BASENAME([$compiler])
4136
 
 
4137
 
AC_MSG_CHECKING([if libtool supports shared libraries])
4138
 
AC_MSG_RESULT([$can_build_shared])
4139
 
 
4140
 
AC_MSG_CHECKING([whether to build shared libraries])
4141
 
test "$can_build_shared" = "no" && enable_shared=no
4142
 
 
4143
 
# On AIX, shared libraries and static libraries use the same namespace, and
4144
 
# are all built from PIC.
4145
 
case $host_os in
4146
 
aix3*)
4147
 
  test "$enable_shared" = yes && enable_static=no
4148
 
  if test -n "$RANLIB"; then
4149
 
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
4150
 
    postinstall_cmds='$RANLIB $lib'
4151
 
  fi
4152
 
  ;;
4153
 
aix[[4-9]]*)
4154
 
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4155
 
    test "$enable_shared" = yes && enable_static=no
4156
 
  fi
4157
 
  ;;
4158
 
esac
4159
 
AC_MSG_RESULT([$enable_shared])
4160
 
 
4161
 
AC_MSG_CHECKING([whether to build static libraries])
4162
 
# Make sure either enable_shared or enable_static is yes.
4163
 
test "$enable_shared" = yes || enable_static=yes
4164
 
AC_MSG_RESULT([$enable_static])
4165
 
 
4166
 
_LT_AC_TAGVAR(GCC, $1)="$G77"
4167
 
_LT_AC_TAGVAR(LD, $1)="$LD"
4168
 
 
4169
 
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4170
 
AC_LIBTOOL_PROG_CC_C_O($1)
4171
 
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4172
 
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4173
 
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4174
 
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4175
 
 
4176
 
AC_LIBTOOL_CONFIG($1)
4177
 
 
4178
 
AC_LANG_POP
4179
 
CC="$lt_save_CC"
4180
 
])# AC_LIBTOOL_LANG_F77_CONFIG
4181
 
 
4182
 
 
4183
 
# AC_LIBTOOL_LANG_GCJ_CONFIG
4184
 
# --------------------------
4185
 
# Ensure that the configuration vars for the C compiler are
4186
 
# suitably defined.  Those variables are subsequently used by
4187
 
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4188
 
AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
4189
 
AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
4190
 
[AC_LANG_SAVE
4191
 
 
4192
 
# Source file extension for Java test sources.
4193
 
ac_ext=java
4194
 
 
4195
 
# Object file extension for compiled Java test sources.
4196
 
objext=o
4197
 
_LT_AC_TAGVAR(objext, $1)=$objext
4198
 
 
4199
 
# Code to be used in simple compile tests
4200
 
lt_simple_compile_test_code="class foo {}"
4201
 
 
4202
 
# Code to be used in simple link tests
4203
 
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
4204
 
 
4205
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4206
 
_LT_AC_SYS_COMPILER
4207
 
 
4208
 
# save warnings/boilerplate of simple test code
4209
 
_LT_COMPILER_BOILERPLATE
4210
 
_LT_LINKER_BOILERPLATE
4211
 
 
4212
 
# Allow CC to be a program name with arguments.
4213
 
lt_save_CC="$CC"
4214
 
CC=${GCJ-"gcj"}
4215
 
compiler=$CC
4216
 
_LT_AC_TAGVAR(compiler, $1)=$CC
4217
 
_LT_CC_BASENAME([$compiler])
4218
 
 
4219
 
# GCJ did not exist at the time GCC didn't implicitly link libc in.
4220
 
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4221
 
 
4222
 
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4223
 
 
4224
 
## CAVEAT EMPTOR:
4225
 
## There is no encapsulation within the following macros, do not change
4226
 
## the running order or otherwise move them around unless you know exactly
4227
 
## what you are doing...
4228
 
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
4229
 
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4230
 
AC_LIBTOOL_PROG_CC_C_O($1)
4231
 
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4232
 
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4233
 
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4234
 
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4235
 
 
4236
 
AC_LIBTOOL_CONFIG($1)
4237
 
 
4238
 
AC_LANG_RESTORE
4239
 
CC="$lt_save_CC"
4240
 
])# AC_LIBTOOL_LANG_GCJ_CONFIG
4241
 
 
4242
 
 
4243
 
# AC_LIBTOOL_LANG_RC_CONFIG
4244
 
# -------------------------
4245
 
# Ensure that the configuration vars for the Windows resource compiler are
4246
 
# suitably defined.  Those variables are subsequently used by
4247
 
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4248
 
AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
4249
 
AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
4250
 
[AC_LANG_SAVE
4251
 
 
4252
 
# Source file extension for RC test sources.
4253
 
ac_ext=rc
4254
 
 
4255
 
# Object file extension for compiled RC test sources.
4256
 
objext=o
4257
 
_LT_AC_TAGVAR(objext, $1)=$objext
4258
 
 
4259
 
# Code to be used in simple compile tests
4260
 
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
4261
 
 
4262
 
# Code to be used in simple link tests
4263
 
lt_simple_link_test_code="$lt_simple_compile_test_code"
4264
 
 
4265
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4266
 
_LT_AC_SYS_COMPILER
4267
 
 
4268
 
# save warnings/boilerplate of simple test code
4269
 
_LT_COMPILER_BOILERPLATE
4270
 
_LT_LINKER_BOILERPLATE
4271
 
 
4272
 
# Allow CC to be a program name with arguments.
4273
 
lt_save_CC="$CC"
4274
 
CC=${RC-"windres"}
4275
 
compiler=$CC
4276
 
_LT_AC_TAGVAR(compiler, $1)=$CC
4277
 
_LT_CC_BASENAME([$compiler])
4278
 
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
4279
 
 
4280
 
AC_LIBTOOL_CONFIG($1)
4281
 
 
4282
 
AC_LANG_RESTORE
4283
 
CC="$lt_save_CC"
4284
 
])# AC_LIBTOOL_LANG_RC_CONFIG
4285
 
 
4286
 
 
4287
 
# AC_LIBTOOL_CONFIG([TAGNAME])
4288
 
# ----------------------------
4289
 
# If TAGNAME is not passed, then create an initial libtool script
4290
 
# with a default configuration from the untagged config vars.  Otherwise
4291
 
# add code to config.status for appending the configuration named by
4292
 
# TAGNAME from the matching tagged config vars.
4293
 
AC_DEFUN([AC_LIBTOOL_CONFIG],
4294
 
[# The else clause should only fire when bootstrapping the
4295
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
4296
 
# with your package, and you will get complaints that there are
4297
 
# no rules to generate ltmain.sh.
4298
 
if test -f "$ltmain"; then
4299
 
  # See if we are running on zsh, and set the options which allow our commands through
4300
 
  # without removal of \ escapes.
4301
 
  if test -n "${ZSH_VERSION+set}" ; then
4302
 
    setopt NO_GLOB_SUBST
4303
 
  fi
4304
 
  # Now quote all the things that may contain metacharacters while being
4305
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
4306
 
  # variables and quote the copies for generation of the libtool script.
4307
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
4308
 
    SED SHELL STRIP \
4309
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
4310
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
4311
 
    deplibs_check_method reload_flag reload_cmds need_locks \
4312
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
4313
 
    lt_cv_sys_global_symbol_to_c_name_address \
4314
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
4315
 
    old_postinstall_cmds old_postuninstall_cmds \
4316
 
    _LT_AC_TAGVAR(compiler, $1) \
4317
 
    _LT_AC_TAGVAR(CC, $1) \
4318
 
    _LT_AC_TAGVAR(LD, $1) \
4319
 
    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
4320
 
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
4321
 
    _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
4322
 
    _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
4323
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
4324
 
    _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
4325
 
    _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
4326
 
    _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
4327
 
    _LT_AC_TAGVAR(old_archive_cmds, $1) \
4328
 
    _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
4329
 
    _LT_AC_TAGVAR(predep_objects, $1) \
4330
 
    _LT_AC_TAGVAR(postdep_objects, $1) \
4331
 
    _LT_AC_TAGVAR(predeps, $1) \
4332
 
    _LT_AC_TAGVAR(postdeps, $1) \
4333
 
    _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
4334
 
    _LT_AC_TAGVAR(compiler_lib_search_dirs, $1) \
4335
 
    _LT_AC_TAGVAR(archive_cmds, $1) \
4336
 
    _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
4337
 
    _LT_AC_TAGVAR(postinstall_cmds, $1) \
4338
 
    _LT_AC_TAGVAR(postuninstall_cmds, $1) \
4339
 
    _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
4340
 
    _LT_AC_TAGVAR(allow_undefined_flag, $1) \
4341
 
    _LT_AC_TAGVAR(no_undefined_flag, $1) \
4342
 
    _LT_AC_TAGVAR(export_symbols_cmds, $1) \
4343
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
4344
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
4345
 
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
4346
 
    _LT_AC_TAGVAR(hardcode_automatic, $1) \
4347
 
    _LT_AC_TAGVAR(module_cmds, $1) \
4348
 
    _LT_AC_TAGVAR(module_expsym_cmds, $1) \
4349
 
    _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
4350
 
    _LT_AC_TAGVAR(fix_srcfile_path, $1) \
4351
 
    _LT_AC_TAGVAR(exclude_expsyms, $1) \
4352
 
    _LT_AC_TAGVAR(include_expsyms, $1); do
4353
 
 
4354
 
    case $var in
4355
 
    _LT_AC_TAGVAR(old_archive_cmds, $1) | \
4356
 
    _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
4357
 
    _LT_AC_TAGVAR(archive_cmds, $1) | \
4358
 
    _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
4359
 
    _LT_AC_TAGVAR(module_cmds, $1) | \
4360
 
    _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
4361
 
    _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
4362
 
    _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
4363
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
4364
 
    postinstall_cmds | postuninstall_cmds | \
4365
 
    old_postinstall_cmds | old_postuninstall_cmds | \
4366
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
4367
 
      # Double-quote double-evaled strings.
4368
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
4369
 
      ;;
4370
 
    *)
4371
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
4372
 
      ;;
4373
 
    esac
4374
 
  done
4375
 
 
4376
 
  case $lt_echo in
4377
 
  *'\[$]0 --fallback-echo"')
4378
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
4379
 
    ;;
4380
 
  esac
4381
 
 
4382
 
ifelse([$1], [],
4383
 
  [cfgfile="${ofile}T"
4384
 
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
4385
 
  $rm -f "$cfgfile"
4386
 
  AC_MSG_NOTICE([creating $ofile])],
4387
 
  [cfgfile="$ofile"])
4388
 
 
4389
 
  cat <<__EOF__ >> "$cfgfile"
4390
 
ifelse([$1], [],
4391
 
[#! $SHELL
4392
 
 
4393
 
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
4394
 
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4395
 
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
4396
 
#
4397
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
4398
 
# Free Software Foundation, Inc.
4399
 
#
4400
 
# This file is part of GNU Libtool:
4401
 
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
4402
 
#
4403
 
# This program is free software; you can redistribute it and/or modify
4404
 
# it under the terms of the GNU General Public License as published by
4405
 
# the Free Software Foundation; either version 2 of the License, or
4406
 
# (at your option) any later version.
4407
 
#
4408
 
# This program is distributed in the hope that it will be useful, but
4409
 
# WITHOUT ANY WARRANTY; without even the implied warranty of
4410
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
4411
 
# General Public License for more details.
4412
 
#
4413
 
# You should have received a copy of the GNU General Public License
4414
 
# along with this program; if not, write to the Free Software
4415
 
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
4416
 
#
4417
 
# As a special exception to the GNU General Public License, if you
4418
 
# distribute this file as part of a program that contains a
4419
 
# configuration script generated by Autoconf, you may include it under
4420
 
# the same distribution terms that you use for the rest of that program.
4421
 
 
4422
 
# A sed program that does not truncate output.
4423
 
SED=$lt_SED
4424
 
 
4425
 
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
4426
 
Xsed="$SED -e 1s/^X//"
4427
 
 
4428
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
4429
 
# if CDPATH is set.
4430
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4431
 
 
4432
 
# The names of the tagged configurations supported by this script.
4433
 
available_tags=
4434
 
 
4435
 
# ### BEGIN LIBTOOL CONFIG],
4436
 
[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
4437
 
 
4438
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4439
 
 
4440
 
# Shell to use when invoking shell scripts.
4441
 
SHELL=$lt_SHELL
4442
 
 
4443
 
# Whether or not to build shared libraries.
4444
 
build_libtool_libs=$enable_shared
4445
 
 
4446
 
# Whether or not to build static libraries.
4447
 
build_old_libs=$enable_static
4448
 
 
4449
 
# Whether or not to add -lc for building shared libraries.
4450
 
build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
4451
 
 
4452
 
# Whether or not to disallow shared libs when runtime libs are static
4453
 
allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
4454
 
 
4455
 
# Whether or not to optimize for fast installation.
4456
 
fast_install=$enable_fast_install
4457
 
 
4458
 
# The host system.
4459
 
host_alias=$host_alias
4460
 
host=$host
4461
 
host_os=$host_os
4462
 
 
4463
 
# The build system.
4464
 
build_alias=$build_alias
4465
 
build=$build
4466
 
build_os=$build_os
4467
 
 
4468
 
# An echo program that does not interpret backslashes.
4469
 
echo=$lt_echo
4470
 
 
4471
 
# The archiver.
4472
 
AR=$lt_AR
4473
 
AR_FLAGS=$lt_AR_FLAGS
4474
 
 
4475
 
# A C compiler.
4476
 
LTCC=$lt_LTCC
4477
 
 
4478
 
# LTCC compiler flags.
4479
 
LTCFLAGS=$lt_LTCFLAGS
4480
 
 
4481
 
# A language-specific compiler.
4482
 
CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
4483
 
 
4484
 
# Is the compiler the GNU C compiler?
4485
 
with_gcc=$_LT_AC_TAGVAR(GCC, $1)
4486
 
 
4487
 
# An ERE matcher.
4488
 
EGREP=$lt_EGREP
4489
 
 
4490
 
# The linker used to build libraries.
4491
 
LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
4492
 
 
4493
 
# Whether we need hard or soft links.
4494
 
LN_S=$lt_LN_S
4495
 
 
4496
 
# A BSD-compatible nm program.
4497
 
NM=$lt_NM
4498
 
 
4499
 
# A symbol stripping program
4500
 
STRIP=$lt_STRIP
4501
 
 
4502
 
# Used to examine libraries when file_magic_cmd begins "file"
4503
 
MAGIC_CMD=$MAGIC_CMD
4504
 
 
4505
 
# Used on cygwin: DLL creation program.
4506
 
DLLTOOL="$DLLTOOL"
4507
 
 
4508
 
# Used on cygwin: object dumper.
4509
 
OBJDUMP="$OBJDUMP"
4510
 
 
4511
 
# Used on cygwin: assembler.
4512
 
AS="$AS"
4513
 
 
4514
 
# The name of the directory that contains temporary libtool files.
4515
 
objdir=$objdir
4516
 
 
4517
 
# How to create reloadable object files.
4518
 
reload_flag=$lt_reload_flag
4519
 
reload_cmds=$lt_reload_cmds
4520
 
 
4521
 
# How to pass a linker flag through the compiler.
4522
 
wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
4523
 
 
4524
 
# Object file suffix (normally "o").
4525
 
objext="$ac_objext"
4526
 
 
4527
 
# Old archive suffix (normally "a").
4528
 
libext="$libext"
4529
 
 
4530
 
# Shared library suffix (normally ".so").
4531
 
shrext_cmds='$shrext_cmds'
4532
 
 
4533
 
# Executable file suffix (normally "").
4534
 
exeext="$exeext"
4535
 
 
4536
 
# Additional compiler flags for building library objects.
4537
 
pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
4538
 
pic_mode=$pic_mode
4539
 
 
4540
 
# What is the maximum length of a command?
4541
 
max_cmd_len=$lt_cv_sys_max_cmd_len
4542
 
 
4543
 
# Does compiler simultaneously support -c and -o options?
4544
 
compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
4545
 
 
4546
 
# Must we lock files when doing compilation?
4547
 
need_locks=$lt_need_locks
4548
 
 
4549
 
# Do we need the lib prefix for modules?
4550
 
need_lib_prefix=$need_lib_prefix
4551
 
 
4552
 
# Do we need a version for libraries?
4553
 
need_version=$need_version
4554
 
 
4555
 
# Whether dlopen is supported.
4556
 
dlopen_support=$enable_dlopen
4557
 
 
4558
 
# Whether dlopen of programs is supported.
4559
 
dlopen_self=$enable_dlopen_self
4560
 
 
4561
 
# Whether dlopen of statically linked programs is supported.
4562
 
dlopen_self_static=$enable_dlopen_self_static
4563
 
 
4564
 
# Compiler flag to prevent dynamic linking.
4565
 
link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
4566
 
 
4567
 
# Compiler flag to turn off builtin functions.
4568
 
no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
4569
 
 
4570
 
# Compiler flag to allow reflexive dlopens.
4571
 
export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
4572
 
 
4573
 
# Compiler flag to generate shared objects directly from archives.
4574
 
whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
4575
 
 
4576
 
# Compiler flag to generate thread-safe objects.
4577
 
thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
4578
 
 
4579
 
# Library versioning type.
4580
 
version_type=$version_type
4581
 
 
4582
 
# Format of library name prefix.
4583
 
libname_spec=$lt_libname_spec
4584
 
 
4585
 
# List of archive names.  First name is the real one, the rest are links.
4586
 
# The last name is the one that the linker finds with -lNAME.
4587
 
library_names_spec=$lt_library_names_spec
4588
 
 
4589
 
# The coded name of the library, if different from the real name.
4590
 
soname_spec=$lt_soname_spec
4591
 
 
4592
 
# Commands used to build and install an old-style archive.
4593
 
RANLIB=$lt_RANLIB
4594
 
old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
4595
 
old_postinstall_cmds=$lt_old_postinstall_cmds
4596
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
4597
 
 
4598
 
# Create an old-style archive from a shared archive.
4599
 
old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
4600
 
 
4601
 
# Create a temporary old-style archive to link instead of a shared archive.
4602
 
old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
4603
 
 
4604
 
# Commands used to build and install a shared archive.
4605
 
archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
4606
 
archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
4607
 
postinstall_cmds=$lt_postinstall_cmds
4608
 
postuninstall_cmds=$lt_postuninstall_cmds
4609
 
 
4610
 
# Commands used to build a loadable module (assumed same as above if empty)
4611
 
module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
4612
 
module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
4613
 
 
4614
 
# Commands to strip libraries.
4615
 
old_striplib=$lt_old_striplib
4616
 
striplib=$lt_striplib
4617
 
 
4618
 
# Dependencies to place before the objects being linked to create a
4619
 
# shared library.
4620
 
predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
4621
 
 
4622
 
# Dependencies to place after the objects being linked to create a
4623
 
# shared library.
4624
 
postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
4625
 
 
4626
 
# Dependencies to place before the objects being linked to create a
4627
 
# shared library.
4628
 
predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
4629
 
 
4630
 
# Dependencies to place after the objects being linked to create a
4631
 
# shared library.
4632
 
postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
4633
 
 
4634
 
# The directories searched by this compiler when creating a shared
4635
 
# library
4636
 
compiler_lib_search_dirs=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)
4637
 
 
4638
 
# The library search path used internally by the compiler when linking
4639
 
# a shared library.
4640
 
compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
4641
 
 
4642
 
# Method to check whether dependent libraries are shared objects.
4643
 
deplibs_check_method=$lt_deplibs_check_method
4644
 
 
4645
 
# Command to use when deplibs_check_method == file_magic.
4646
 
file_magic_cmd=$lt_file_magic_cmd
4647
 
 
4648
 
# Flag that allows shared libraries with undefined symbols to be built.
4649
 
allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
4650
 
 
4651
 
# Flag that forces no undefined symbols.
4652
 
no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
4653
 
 
4654
 
# Commands used to finish a libtool library installation in a directory.
4655
 
finish_cmds=$lt_finish_cmds
4656
 
 
4657
 
# Same as above, but a single script fragment to be evaled but not shown.
4658
 
finish_eval=$lt_finish_eval
4659
 
 
4660
 
# Take the output of nm and produce a listing of raw symbols and C names.
4661
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
4662
 
 
4663
 
# Transform the output of nm in a proper C declaration
4664
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
4665
 
 
4666
 
# Transform the output of nm in a C name address pair
4667
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
4668
 
 
4669
 
# This is the shared library runtime path variable.
4670
 
runpath_var=$runpath_var
4671
 
 
4672
 
# This is the shared library path variable.
4673
 
shlibpath_var=$shlibpath_var
4674
 
 
4675
 
# Is shlibpath searched before the hard-coded library search path?
4676
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
4677
 
 
4678
 
# How to hardcode a shared library path into an executable.
4679
 
hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
4680
 
 
4681
 
# Whether we should hardcode library paths into libraries.
4682
 
hardcode_into_libs=$hardcode_into_libs
4683
 
 
4684
 
# Flag to hardcode \$libdir into a binary during linking.
4685
 
# This must work even if \$libdir does not exist.
4686
 
hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
4687
 
 
4688
 
# If ld is used when linking, flag to hardcode \$libdir into
4689
 
# a binary during linking. This must work even if \$libdir does
4690
 
# not exist.
4691
 
hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
4692
 
 
4693
 
# Whether we need a single -rpath flag with a separated argument.
4694
 
hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
4695
 
 
4696
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
4697
 
# resulting binary.
4698
 
hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
4699
 
 
4700
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
4701
 
# resulting binary.
4702
 
hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
4703
 
 
4704
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
4705
 
# the resulting binary.
4706
 
hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
4707
 
 
4708
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
4709
 
# and all subsequent libraries and executables linked against it.
4710
 
hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
4711
 
 
4712
 
# Variables whose values should be saved in libtool wrapper scripts and
4713
 
# restored at relink time.
4714
 
variables_saved_for_relink="$variables_saved_for_relink"
4715
 
 
4716
 
# Whether libtool must link a program against all its dependency libraries.
4717
 
link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
4718
 
 
4719
 
# Compile-time system search path for libraries
4720
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
4721
 
 
4722
 
# Run-time system search path for libraries
4723
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
4724
 
 
4725
 
# Fix the shell variable \$srcfile for the compiler.
4726
 
fix_srcfile_path=$lt_fix_srcfile_path
4727
 
 
4728
 
# Set to yes if exported symbols are required.
4729
 
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
4730
 
 
4731
 
# The commands to list exported symbols.
4732
 
export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
4733
 
 
4734
 
# The commands to extract the exported symbol list from a shared archive.
4735
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
4736
 
 
4737
 
# Symbols that should not be listed in the preloaded symbols.
4738
 
exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
4739
 
 
4740
 
# Symbols that must always be exported.
4741
 
include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
4742
 
 
4743
 
ifelse([$1],[],
4744
 
[# ### END LIBTOOL CONFIG],
4745
 
[# ### END LIBTOOL TAG CONFIG: $tagname])
4746
 
 
4747
 
__EOF__
4748
 
 
4749
 
ifelse([$1],[], [
4750
 
  case $host_os in
4751
 
  aix3*)
4752
 
    cat <<\EOF >> "$cfgfile"
4753
 
 
4754
 
# AIX sometimes has problems with the GCC collect2 program.  For some
4755
 
# reason, if we set the COLLECT_NAMES environment variable, the problems
4756
 
# vanish in a puff of smoke.
4757
 
if test "X${COLLECT_NAMES+set}" != Xset; then
4758
 
  COLLECT_NAMES=
4759
 
  export COLLECT_NAMES
4760
 
fi
4761
 
EOF
4762
 
    ;;
4763
 
  esac
4764
 
 
4765
 
  # We use sed instead of cat because bash on DJGPP gets confused if
4766
 
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
4767
 
  # text mode, it properly converts lines to CR/LF.  This bash problem
4768
 
  # is reportedly fixed, but why not run on old versions too?
4769
 
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
4770
 
 
4771
 
  mv -f "$cfgfile" "$ofile" || \
4772
 
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
4773
 
  chmod +x "$ofile"
4774
 
])
4775
 
else
4776
 
  # If there is no Makefile yet, we rely on a make rule to execute
4777
 
  # `config.status --recheck' to rerun these tests and create the
4778
 
  # libtool script then.
4779
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
4780
 
  if test -f "$ltmain_in"; then
4781
 
    test -f Makefile && make "$ltmain"
4782
 
  fi
4783
 
fi
4784
 
])# AC_LIBTOOL_CONFIG
4785
 
 
4786
 
 
4787
 
# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
4788
 
# -------------------------------------------
4789
 
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
4790
 
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
4791
 
 
4792
 
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
 
3274
AC_SUBST([LIBM])
 
3275
])# LT_LIB_M
 
3276
 
 
3277
# Old name:
 
3278
AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
 
3279
dnl aclocal-1.4 backwards compatibility:
 
3280
dnl AC_DEFUN([AC_CHECK_LIBM], [])
 
3281
 
 
3282
 
 
3283
# _LT_COMPILER_NO_RTTI([TAGNAME])
 
3284
# -------------------------------
 
3285
m4_defun([_LT_COMPILER_NO_RTTI],
 
3286
[m4_require([_LT_TAG_COMPILER])dnl
 
3287
 
 
3288
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
4793
3289
 
4794
3290
if test "$GCC" = yes; then
4795
 
  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
 
3291
  _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
4796
3292
 
4797
 
  AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
 
3293
  _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
4798
3294
    lt_cv_prog_compiler_rtti_exceptions,
4799
3295
    [-fno-rtti -fno-exceptions], [],
4800
 
    [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
 
3296
    [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
4801
3297
fi
4802
 
])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
4803
 
 
4804
 
 
4805
 
# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
4806
 
# ---------------------------------
4807
 
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
4808
 
[AC_REQUIRE([AC_CANONICAL_HOST])
4809
 
AC_REQUIRE([LT_AC_PROG_SED])
4810
 
AC_REQUIRE([AC_PROG_NM])
4811
 
AC_REQUIRE([AC_OBJEXT])
 
3298
_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
 
3299
        [Compiler flag to turn off builtin functions])
 
3300
])# _LT_COMPILER_NO_RTTI
 
3301
 
 
3302
 
 
3303
# _LT_CMD_GLOBAL_SYMBOLS
 
3304
# ----------------------
 
3305
m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
 
3306
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
3307
AC_REQUIRE([AC_PROG_CC])dnl
 
3308
AC_REQUIRE([LT_PATH_NM])dnl
 
3309
AC_REQUIRE([LT_PATH_LD])dnl
 
3310
m4_require([_LT_DECL_SED])dnl
 
3311
m4_require([_LT_DECL_EGREP])dnl
 
3312
m4_require([_LT_TAG_COMPILER])dnl
 
3313
 
4812
3314
# Check for command to grab the raw symbol name followed by C symbol from nm.
4813
3315
AC_MSG_CHECKING([command to parse $NM output from $compiler object])
4814
3316
AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
4822
3324
# Regexp to match symbols that can be accessed directly from C.
4823
3325
sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
4824
3326
 
4825
 
# Transform an extracted symbol line into a proper C declaration
4826
 
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4827
 
 
4828
 
# Transform an extracted symbol line into symbol name and symbol address
4829
 
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
4830
 
 
4831
3327
# Define system-specific variables.
4832
3328
case $host_os in
4833
3329
aix*)
4836
3332
cygwin* | mingw* | pw32*)
4837
3333
  symcode='[[ABCDGISTW]]'
4838
3334
  ;;
4839
 
hpux*) # Its linker distinguishes data from code symbols
 
3335
hpux*)
4840
3336
  if test "$host_cpu" = ia64; then
4841
3337
    symcode='[[ABCDEGRST]]'
4842
3338
  fi
4843
 
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4844
 
  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
4845
 
  ;;
4846
 
linux* | k*bsd*-gnu)
4847
 
  if test "$host_cpu" = ia64; then
4848
 
    symcode='[[ABCDGIRSTW]]'
4849
 
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4850
 
    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
4851
 
  fi
4852
3339
  ;;
4853
3340
irix* | nonstopux*)
4854
3341
  symcode='[[BCDEGRST]]'
4873
3360
  ;;
4874
3361
esac
4875
3362
 
 
3363
# If we're using GNU nm, then use its standard symbol codes.
 
3364
case `$NM -V 2>&1` in
 
3365
*GNU* | *'with BFD'*)
 
3366
  symcode='[[ABCDGIRSTW]]' ;;
 
3367
esac
 
3368
 
 
3369
# Transform an extracted symbol line into a proper C declaration.
 
3370
# Some systems (esp. on ia64) link data and code symbols differently,
 
3371
# so use this general approach.
 
3372
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
3373
 
 
3374
# Transform an extracted symbol line into symbol name and symbol address
 
3375
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p'"
 
3376
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
 
3377
 
4876
3378
# Handle CRLF in mingw tool chain
4877
3379
opt_cr=
4878
3380
case $build_os in
4879
3381
mingw*)
4880
 
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
3382
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4881
3383
  ;;
4882
3384
esac
4883
3385
 
4884
 
# If we're using GNU nm, then use its standard symbol codes.
4885
 
case `$NM -V 2>&1` in
4886
 
*GNU* | *'with BFD'*)
4887
 
  symcode='[[ABCDGIRSTW]]' ;;
4888
 
esac
4889
 
 
4890
 
# Try without a prefix undercore, then with it.
 
3386
# Try without a prefix underscore, then with it.
4891
3387
for ac_symprfx in "" "_"; do
4892
3388
 
4893
3389
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4894
3390
  symxfrm="\\1 $ac_symprfx\\2 \\2"
4895
3391
 
4896
3392
  # Write the raw and C identifiers.
4897
 
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[      ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
3393
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
3394
    # Fake it for dumpbin and say T for any non-static function
 
3395
    # and D for any global variable.
 
3396
    # Also find C++ and __fastcall symbols from MSVC++,
 
3397
    # which start with @ or ?.
 
3398
    lt_cv_sys_global_symbol_pipe="$AWK ['"\
 
3399
"     {last_section=section; section=\$ 3};"\
 
3400
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
 
3401
"     \$ 0!~/External *\|/{next};"\
 
3402
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
 
3403
"     {if(hide[section]) next};"\
 
3404
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
 
3405
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
 
3406
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
 
3407
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
 
3408
"     ' prfx=^$ac_symprfx]"
 
3409
  else
 
3410
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[     ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
3411
  fi
4898
3412
 
4899
3413
  # Check to see that the pipe works correctly.
4900
3414
  pipe_works=no
4901
3415
 
4902
3416
  rm -f conftest*
4903
 
  cat > conftest.$ac_ext <<EOF
 
3417
  cat > conftest.$ac_ext <<_LT_EOF
4904
3418
#ifdef __cplusplus
4905
3419
extern "C" {
4906
3420
#endif
4907
3421
char nm_test_var;
4908
 
void nm_test_func(){}
 
3422
void nm_test_func(void);
 
3423
void nm_test_func(void){}
4909
3424
#ifdef __cplusplus
4910
3425
}
4911
3426
#endif
4912
3427
int main(){nm_test_var='a';nm_test_func();return(0);}
4913
 
EOF
 
3428
_LT_EOF
4914
3429
 
4915
3430
  if AC_TRY_EVAL(ac_compile); then
4916
3431
    # Now try to grab the symbols.
4924
3439
      fi
4925
3440
 
4926
3441
      # Make sure that we snagged all the symbols we need.
4927
 
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
4928
 
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
4929
 
          cat <<EOF > conftest.$ac_ext
 
3442
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
 
3443
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
 
3444
          cat <<_LT_EOF > conftest.$ac_ext
4930
3445
#ifdef __cplusplus
4931
3446
extern "C" {
4932
3447
#endif
4933
3448
 
4934
 
EOF
 
3449
_LT_EOF
4935
3450
          # Now generate the symbol file.
4936
 
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
4937
 
 
4938
 
          cat <<EOF >> conftest.$ac_ext
4939
 
#if defined (__STDC__) && __STDC__
4940
 
# define lt_ptr_t void *
4941
 
#else
4942
 
# define lt_ptr_t char *
4943
 
# define const
4944
 
#endif
4945
 
 
4946
 
/* The mapping between symbol names and symbols. */
 
3451
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
 
3452
 
 
3453
          cat <<_LT_EOF >> conftest.$ac_ext
 
3454
 
 
3455
/* The mapping between symbol names and symbols.  */
4947
3456
const struct {
4948
3457
  const char *name;
4949
 
  lt_ptr_t address;
 
3458
  void       *address;
4950
3459
}
4951
 
lt_preloaded_symbols[[]] =
 
3460
lt__PROGRAM__LTX_preloaded_symbols[[]] =
4952
3461
{
4953
 
EOF
4954
 
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
4955
 
          cat <<\EOF >> conftest.$ac_ext
4956
 
  {0, (lt_ptr_t) 0}
 
3462
  { "@PROGRAM@", (void *) 0 },
 
3463
_LT_EOF
 
3464
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
 
3465
          cat <<\_LT_EOF >> conftest.$ac_ext
 
3466
  {0, (void *) 0}
4957
3467
};
4958
3468
 
 
3469
/* This works around a problem in FreeBSD linker */
 
3470
#ifdef FREEBSD_WORKAROUND
 
3471
static const void *lt_preloaded_setup() {
 
3472
  return lt__PROGRAM__LTX_preloaded_symbols;
 
3473
}
 
3474
#endif
 
3475
 
4959
3476
#ifdef __cplusplus
4960
3477
}
4961
3478
#endif
4962
 
EOF
 
3479
_LT_EOF
4963
3480
          # Now try linking the two files.
4964
3481
          mv conftest.$ac_objext conftstm.$ac_objext
4965
3482
          lt_save_LIBS="$LIBS"
4966
3483
          lt_save_CFLAGS="$CFLAGS"
4967
3484
          LIBS="conftstm.$ac_objext"
4968
 
          CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
 
3485
          CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
4969
3486
          if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
4970
3487
            pipe_works=yes
4971
3488
          fi
5002
3519
else
5003
3520
  AC_MSG_RESULT(ok)
5004
3521
fi
5005
 
]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
5006
 
 
5007
 
 
5008
 
# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
5009
 
# ---------------------------------------
5010
 
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
5011
 
[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
5012
 
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5013
 
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
 
3522
 
 
3523
_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
 
3524
    [Take the output of nm and produce a listing of raw symbols and C names])
 
3525
_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
 
3526
    [Transform the output of nm in a proper C declaration])
 
3527
_LT_DECL([global_symbol_to_c_name_address],
 
3528
    [lt_cv_sys_global_symbol_to_c_name_address], [1],
 
3529
    [Transform the output of nm in a C name address pair])
 
3530
_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
 
3531
    [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
 
3532
    [Transform the output of nm in a C name address pair when lib prefix is needed])
 
3533
]) # _LT_CMD_GLOBAL_SYMBOLS
 
3534
 
 
3535
 
 
3536
# _LT_COMPILER_PIC([TAGNAME])
 
3537
# ---------------------------
 
3538
m4_defun([_LT_COMPILER_PIC],
 
3539
[m4_require([_LT_TAG_COMPILER])dnl
 
3540
_LT_TAGVAR(lt_prog_compiler_wl, $1)=
 
3541
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
 
3542
_LT_TAGVAR(lt_prog_compiler_static, $1)=
5014
3543
 
5015
3544
AC_MSG_CHECKING([for $compiler option to produce PIC])
5016
 
 ifelse([$1],[CXX],[
 
3545
m4_if([$1], [CXX], [
5017
3546
  # C++ specific cases for pic, static, wl, etc.
5018
3547
  if test "$GXX" = yes; then
5019
 
    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5020
 
    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
3548
    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
3549
    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
5021
3550
 
5022
3551
    case $host_os in
5023
3552
    aix*)
5024
3553
      # All AIX code is PIC.
5025
3554
      if test "$host_cpu" = ia64; then
5026
3555
        # AIX 5 now supports IA64 processor
5027
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
3556
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5028
3557
      fi
5029
3558
      ;;
 
3559
 
5030
3560
    amigaos*)
5031
 
      # FIXME: we need at least 68020 code to build shared libraries, but
5032
 
      # adding the `-m68020' flag to GCC prevents building anything better,
5033
 
      # like `-m68040'.
5034
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
 
3561
      case $host_cpu in
 
3562
      powerpc)
 
3563
            # see comment about AmigaOS4 .so support
 
3564
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
3565
        ;;
 
3566
      m68k)
 
3567
            # FIXME: we need at least 68020 code to build shared libraries, but
 
3568
            # adding the `-m68020' flag to GCC prevents building anything better,
 
3569
            # like `-m68040'.
 
3570
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
 
3571
        ;;
 
3572
      esac
5035
3573
      ;;
 
3574
 
5036
3575
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5037
3576
      # PIC is the default for these OSes.
5038
3577
      ;;
5042
3581
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
5043
3582
      # (--disable-auto-import) libraries
5044
3583
      m4_if([$1], [GCJ], [],
5045
 
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
 
3584
        [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5046
3585
      ;;
5047
3586
    darwin* | rhapsody*)
5048
3587
      # PIC is the default on this platform
5049
3588
      # Common symbols not allowed in MH_DYLIB files
5050
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
 
3589
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5051
3590
      ;;
5052
3591
    *djgpp*)
5053
3592
      # DJGPP does not support shared libraries at all
5054
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
 
3593
      _LT_TAGVAR(lt_prog_compiler_pic, $1)=
5055
3594
      ;;
5056
3595
    interix[[3-9]]*)
5057
3596
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5059
3598
      ;;
5060
3599
    sysv4*MP*)
5061
3600
      if test -d /usr/nec; then
5062
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
 
3601
        _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5063
3602
      fi
5064
3603
      ;;
5065
3604
    hpux*)
5069
3608
      hppa*64*|ia64*)
5070
3609
        ;;
5071
3610
      *)
5072
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
3611
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5073
3612
        ;;
5074
3613
      esac
5075
3614
      ;;
 
3615
    *qnx* | *nto*)
 
3616
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
3617
      # it will coredump.
 
3618
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
 
3619
      ;;
5076
3620
    *)
5077
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
3621
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5078
3622
      ;;
5079
3623
    esac
5080
3624
  else
5083
3627
        # All AIX code is PIC.
5084
3628
        if test "$host_cpu" = ia64; then
5085
3629
          # AIX 5 now supports IA64 processor
5086
 
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
3630
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5087
3631
        else
5088
 
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
 
3632
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5089
3633
        fi
5090
3634
        ;;
5091
3635
      chorus*)
5092
3636
        case $cc_basename in
5093
3637
        cxch68*)
5094
3638
          # Green Hills C++ Compiler
5095
 
          # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
 
3639
          # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
5096
3640
          ;;
5097
3641
        esac
5098
3642
        ;;
5099
 
       darwin*)
5100
 
         # PIC is the default on this platform
5101
 
         # Common symbols not allowed in MH_DYLIB files
5102
 
         case $cc_basename in
5103
 
           xlc*)
5104
 
           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
5105
 
           _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5106
 
           ;;
5107
 
         esac
5108
 
       ;;
5109
3643
      dgux*)
5110
3644
        case $cc_basename in
5111
3645
          ec++*)
5112
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
3646
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5113
3647
            ;;
5114
3648
          ghcx*)
5115
3649
            # Green Hills C++ Compiler
5116
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
3650
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5117
3651
            ;;
5118
3652
          *)
5119
3653
            ;;
5125
3659
      hpux9* | hpux10* | hpux11*)
5126
3660
        case $cc_basename in
5127
3661
          CC*)
5128
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5129
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
 
3662
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
3663
            _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5130
3664
            if test "$host_cpu" != ia64; then
5131
 
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
 
3665
              _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5132
3666
            fi
5133
3667
            ;;
5134
3668
          aCC*)
5135
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5136
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
 
3669
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
3670
            _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5137
3671
            case $host_cpu in
5138
3672
            hppa*64*|ia64*)
5139
3673
              # +Z the default
5140
3674
              ;;
5141
3675
            *)
5142
 
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
 
3676
              _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5143
3677
              ;;
5144
3678
            esac
5145
3679
            ;;
5154
3688
      irix5* | irix6* | nonstopux*)
5155
3689
        case $cc_basename in
5156
3690
          CC*)
5157
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5158
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
3691
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
3692
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5159
3693
            # CC pic flag -KPIC is the default.
5160
3694
            ;;
5161
3695
          *)
5166
3700
        case $cc_basename in
5167
3701
          KCC*)
5168
3702
            # KAI C++ Compiler
5169
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5170
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
3703
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
 
3704
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5171
3705
            ;;
5172
 
          icpc* | ecpc*)
 
3706
          icpc* | ecpc* )
5173
3707
            # Intel C++
5174
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5175
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5176
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
3708
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
3709
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
3710
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
5177
3711
            ;;
5178
3712
          pgCC* | pgcpp*)
5179
 
            # Portland Group C++ compiler.
5180
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5181
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5182
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
3713
            # Portland Group C++ compiler
 
3714
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
3715
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
 
3716
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5183
3717
            ;;
5184
3718
          cxx*)
5185
3719
            # Compaq C++
5186
3720
            # Make sure the PIC flag is empty.  It appears that all Alpha
5187
3721
            # Linux and Compaq Tru64 Unix objects are PIC.
5188
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5189
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
3722
            _LT_TAGVAR(lt_prog_compiler_pic, $1)=
 
3723
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
3724
            ;;
 
3725
          xlc* | xlC*)
 
3726
            # IBM XL 8.0 on PPC
 
3727
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
3728
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
 
3729
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
5190
3730
            ;;
5191
3731
          *)
5192
3732
            case `$CC -V 2>&1 | sed 5q` in
5193
3733
            *Sun\ C*)
5194
3734
              # Sun C++ 5.9
5195
 
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5196
 
              _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5197
 
              _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
3735
              _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
3736
              _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
3737
              _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5198
3738
              ;;
5199
3739
            esac
5200
3740
            ;;
5207
3747
      mvs*)
5208
3748
        case $cc_basename in
5209
3749
          cxx*)
5210
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
 
3750
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
5211
3751
            ;;
5212
3752
          *)
5213
3753
            ;;
5215
3755
        ;;
5216
3756
      netbsd* | netbsdelf*-gnu)
5217
3757
        ;;
 
3758
      *qnx* | *nto*)
 
3759
        # QNX uses GNU C++, but need to define -shared option too, otherwise
 
3760
        # it will coredump.
 
3761
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
 
3762
        ;;
5218
3763
      osf3* | osf4* | osf5*)
5219
3764
        case $cc_basename in
5220
3765
          KCC*)
5221
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
 
3766
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5222
3767
            ;;
5223
3768
          RCC*)
5224
3769
            # Rational C++ 2.4.1
5225
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
3770
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5226
3771
            ;;
5227
3772
          cxx*)
5228
3773
            # Digital/Compaq C++
5229
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
3774
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5230
3775
            # Make sure the PIC flag is empty.  It appears that all Alpha
5231
3776
            # Linux and Compaq Tru64 Unix objects are PIC.
5232
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5233
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
3777
            _LT_TAGVAR(lt_prog_compiler_pic, $1)=
 
3778
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5234
3779
            ;;
5235
3780
          *)
5236
3781
            ;;
5242
3787
        case $cc_basename in
5243
3788
          CC*)
5244
3789
            # Sun C++ 4.2, 5.x and Centerline C++
5245
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5246
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5247
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
3790
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
3791
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
3792
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5248
3793
            ;;
5249
3794
          gcx*)
5250
3795
            # Green Hills C++ Compiler
5251
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
 
3796
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5252
3797
            ;;
5253
3798
          *)
5254
3799
            ;;
5258
3803
        case $cc_basename in
5259
3804
          CC*)
5260
3805
            # Sun C++ 4.x
5261
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5262
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
3806
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
3807
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5263
3808
            ;;
5264
3809
          lcc*)
5265
3810
            # Lucid
5266
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
3811
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5267
3812
            ;;
5268
3813
          *)
5269
3814
            ;;
5270
3815
        esac
5271
3816
        ;;
 
3817
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
3818
        case $cc_basename in
 
3819
          CC*)
 
3820
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
3821
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
3822
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
3823
            ;;
 
3824
        esac
 
3825
        ;;
5272
3826
      tandem*)
5273
3827
        case $cc_basename in
5274
3828
          NCC*)
5275
3829
            # NonStop-UX NCC 3.20
5276
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
3830
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5277
3831
            ;;
5278
3832
          *)
5279
3833
            ;;
5280
3834
        esac
5281
3835
        ;;
5282
 
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5283
 
        case $cc_basename in
5284
 
          CC*)
5285
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5286
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5287
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5288
 
            ;;
5289
 
        esac
5290
 
        ;;
5291
3836
      vxworks*)
5292
3837
        ;;
5293
3838
      *)
5294
 
        _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
3839
        _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5295
3840
        ;;
5296
3841
    esac
5297
3842
  fi
5298
3843
],
5299
3844
[
5300
3845
  if test "$GCC" = yes; then
5301
 
    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5302
 
    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
3846
    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
3847
    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
5303
3848
 
5304
3849
    case $host_os in
5305
3850
      aix*)
5306
3851
      # All AIX code is PIC.
5307
3852
      if test "$host_cpu" = ia64; then
5308
3853
        # AIX 5 now supports IA64 processor
5309
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
3854
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5310
3855
      fi
5311
3856
      ;;
5312
3857
 
5313
3858
    amigaos*)
5314
 
      # FIXME: we need at least 68020 code to build shared libraries, but
5315
 
      # adding the `-m68020' flag to GCC prevents building anything better,
5316
 
      # like `-m68040'.
5317
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
 
3859
      case $host_cpu in
 
3860
      powerpc)
 
3861
            # see comment about AmigaOS4 .so support
 
3862
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
3863
        ;;
 
3864
      m68k)
 
3865
            # FIXME: we need at least 68020 code to build shared libraries, but
 
3866
            # adding the `-m68020' flag to GCC prevents building anything better,
 
3867
            # like `-m68040'.
 
3868
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
 
3869
        ;;
 
3870
      esac
5318
3871
      ;;
5319
3872
 
5320
3873
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5327
3880
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
5328
3881
      # (--disable-auto-import) libraries
5329
3882
      m4_if([$1], [GCJ], [],
5330
 
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
 
3883
        [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5331
3884
      ;;
5332
3885
 
5333
3886
    darwin* | rhapsody*)
5334
3887
      # PIC is the default on this platform
5335
3888
      # Common symbols not allowed in MH_DYLIB files
5336
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
 
3889
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
 
3890
      ;;
 
3891
 
 
3892
    hpux*)
 
3893
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
3894
      # not for PA HP-UX.
 
3895
      case $host_cpu in
 
3896
      hppa*64*|ia64*)
 
3897
        # +Z the default
 
3898
        ;;
 
3899
      *)
 
3900
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
3901
        ;;
 
3902
      esac
5337
3903
      ;;
5338
3904
 
5339
3905
    interix[[3-9]]*)
5344
3910
    msdosdjgpp*)
5345
3911
      # Just because we use GCC doesn't mean we suddenly get shared libraries
5346
3912
      # on systems that don't support them.
5347
 
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
3913
      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5348
3914
      enable_shared=no
5349
3915
      ;;
5350
3916
 
 
3917
    *nto* | *qnx*)
 
3918
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
3919
      # it will coredump.
 
3920
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
 
3921
      ;;
 
3922
 
5351
3923
    sysv4*MP*)
5352
3924
      if test -d /usr/nec; then
5353
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
 
3925
        _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5354
3926
      fi
5355
3927
      ;;
5356
3928
 
5357
 
    hpux*)
5358
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5359
 
      # not for PA HP-UX.
5360
 
      case $host_cpu in
5361
 
      hppa*64*|ia64*)
5362
 
        # +Z the default
5363
 
        ;;
5364
 
      *)
5365
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5366
 
        ;;
5367
 
      esac
5368
 
      ;;
5369
 
 
5370
3929
    *)
5371
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
3930
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5372
3931
      ;;
5373
3932
    esac
5374
3933
  else
5375
3934
    # PORTME Check for flag to pass linker flags through the system compiler.
5376
3935
    case $host_os in
5377
3936
    aix*)
5378
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
3937
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5379
3938
      if test "$host_cpu" = ia64; then
5380
3939
        # AIX 5 now supports IA64 processor
5381
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
3940
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5382
3941
      else
5383
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
 
3942
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5384
3943
      fi
5385
3944
      ;;
5386
 
      darwin*)
5387
 
        # PIC is the default on this platform
5388
 
        # Common symbols not allowed in MH_DYLIB files
5389
 
       case $cc_basename in
5390
 
         xlc*)
5391
 
         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
5392
 
         _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5393
 
         ;;
5394
 
       esac
5395
 
       ;;
5396
3945
 
5397
3946
    mingw* | cygwin* | pw32* | os2*)
5398
3947
      # This hack is so that the source file can tell whether it is being
5399
3948
      # built for inclusion in a dll (and should export symbols for example).
5400
3949
      m4_if([$1], [GCJ], [],
5401
 
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
 
3950
        [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5402
3951
      ;;
5403
3952
 
5404
3953
    hpux9* | hpux10* | hpux11*)
5405
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
3954
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5406
3955
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5407
3956
      # not for PA HP-UX.
5408
3957
      case $host_cpu in
5410
3959
        # +Z the default
5411
3960
        ;;
5412
3961
      *)
5413
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
 
3962
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5414
3963
        ;;
5415
3964
      esac
5416
3965
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
5417
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
 
3966
      _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5418
3967
      ;;
5419
3968
 
5420
3969
    irix5* | irix6* | nonstopux*)
5421
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
3970
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5422
3971
      # PIC (with -KPIC) is the default.
5423
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5424
 
      ;;
5425
 
 
5426
 
    newsos6)
5427
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5428
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
3972
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5429
3973
      ;;
5430
3974
 
5431
3975
    linux* | k*bsd*-gnu)
5432
3976
      case $cc_basename in
5433
 
      icc* | ecc*)
5434
 
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5435
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5436
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
3977
      icc* | ecc* | ifort*)
 
3978
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
3979
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
3980
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
5437
3981
        ;;
5438
3982
      pgcc* | pgf77* | pgf90* | pgf95*)
5439
3983
        # Portland Group compilers (*not* the Pentium gcc compiler,
5440
3984
        # which looks to be a dead project)
5441
 
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5442
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5443
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
3985
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
3986
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
 
3987
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5444
3988
        ;;
5445
3989
      ccc*)
5446
 
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
3990
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5447
3991
        # All Alpha code is PIC.
5448
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
3992
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5449
3993
        ;;
 
3994
      xl*)
 
3995
        # IBM XL C 8.0/Fortran 10.1 on PPC
 
3996
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
3997
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
 
3998
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
 
3999
        ;;
5450
4000
      *)
5451
 
        case `$CC -V 2>&1 | sed 5q` in
 
4001
        case `$CC -V 2>&1 | sed 5q` in
5452
4002
        *Sun\ C*)
5453
4003
          # Sun C 5.9
5454
 
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5455
 
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5456
 
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4004
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4005
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4006
          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5457
4007
          ;;
5458
4008
        *Sun\ F*)
5459
4009
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
5460
 
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5461
 
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5462
 
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
 
4010
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4011
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4012
          _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
5463
4013
          ;;
5464
4014
        esac
5465
4015
        ;;
5466
4016
      esac
5467
4017
      ;;
5468
4018
 
 
4019
    newsos6)
 
4020
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4021
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4022
      ;;
 
4023
 
 
4024
    *nto* | *qnx*)
 
4025
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
4026
      # it will coredump.
 
4027
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
 
4028
      ;;
 
4029
 
5469
4030
    osf3* | osf4* | osf5*)
5470
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4031
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5471
4032
      # All OSF/1 code is PIC.
5472
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
4033
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5473
4034
      ;;
5474
4035
 
5475
4036
    rdos*)
5476
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
4037
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5477
4038
      ;;
5478
4039
 
5479
4040
    solaris*)
5480
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5481
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4041
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4042
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5482
4043
      case $cc_basename in
5483
4044
      f77* | f90* | f95*)
5484
 
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
 
4045
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
5485
4046
      *)
5486
 
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
 
4047
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
5487
4048
      esac
5488
4049
      ;;
5489
4050
 
5490
4051
    sunos4*)
5491
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5492
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5493
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4052
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
4053
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
 
4054
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5494
4055
      ;;
5495
4056
 
5496
4057
    sysv4 | sysv4.2uw2* | sysv4.3*)
5497
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5498
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5499
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4058
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4059
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4060
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5500
4061
      ;;
5501
4062
 
5502
4063
    sysv4*MP*)
5503
4064
      if test -d /usr/nec ;then
5504
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
5505
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4065
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
 
4066
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5506
4067
      fi
5507
4068
      ;;
5508
4069
 
5509
4070
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5510
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5511
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5512
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4071
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4072
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4073
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5513
4074
      ;;
5514
4075
 
5515
4076
    unicos*)
5516
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5517
 
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
4077
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4078
      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5518
4079
      ;;
5519
4080
 
5520
4081
    uts4*)
5521
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5522
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4082
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
4083
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5523
4084
      ;;
5524
4085
 
5525
4086
    *)
5526
 
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
4087
      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5527
4088
      ;;
5528
4089
    esac
5529
4090
  fi
5530
4091
])
5531
 
AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
 
4092
case $host_os in
 
4093
  # For platforms which do not support PIC, -DPIC is meaningless:
 
4094
  *djgpp*)
 
4095
    _LT_TAGVAR(lt_prog_compiler_pic, $1)=
 
4096
    ;;
 
4097
  *)
 
4098
    _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
 
4099
    ;;
 
4100
esac
 
4101
AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
 
4102
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
 
4103
        [How to pass a linker flag through the compiler])
5532
4104
 
5533
4105
#
5534
4106
# Check to make sure the PIC flag actually works.
5535
4107
#
5536
 
if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
5537
 
  AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
5538
 
    _LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1),
5539
 
    [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
5540
 
    [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
 
4108
if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
 
4109
  _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
 
4110
    [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
 
4111
    [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
 
4112
    [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
5541
4113
     "" | " "*) ;;
5542
 
     *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
 
4114
     *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
5543
4115
     esac],
5544
 
    [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5545
 
     _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
 
4116
    [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
 
4117
     _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
5546
4118
fi
5547
 
case $host_os in
5548
 
  # For platforms which do not support PIC, -DPIC is meaningless:
5549
 
  *djgpp*)
5550
 
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5551
 
    ;;
5552
 
  *)
5553
 
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
5554
 
    ;;
5555
 
esac
 
4119
_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
 
4120
        [Additional compiler flags for building library objects])
5556
4121
 
5557
4122
#
5558
4123
# Check to make sure the static flag actually works.
5559
4124
#
5560
 
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
5561
 
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
5562
 
  _LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1),
 
4125
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
 
4126
_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
 
4127
  _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
5563
4128
  $lt_tmp_static_flag,
5564
4129
  [],
5565
 
  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
5566
 
])
5567
 
 
5568
 
 
5569
 
# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
5570
 
# ------------------------------------
 
4130
  [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
 
4131
_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
 
4132
        [Compiler flag to prevent dynamic linking])
 
4133
])# _LT_COMPILER_PIC
 
4134
 
 
4135
 
 
4136
# _LT_LINKER_SHLIBS([TAGNAME])
 
4137
# ----------------------------
5571
4138
# See if the linker supports building shared libraries.
5572
 
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
5573
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
4139
m4_defun([_LT_LINKER_SHLIBS],
 
4140
[AC_REQUIRE([LT_PATH_LD])dnl
 
4141
AC_REQUIRE([LT_PATH_NM])dnl
 
4142
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
4143
m4_require([_LT_DECL_EGREP])dnl
 
4144
m4_require([_LT_DECL_SED])dnl
 
4145
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
 
4146
m4_require([_LT_TAG_COMPILER])dnl
5574
4147
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5575
 
ifelse([$1],[CXX],[
5576
 
  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
4148
m4_if([$1], [CXX], [
 
4149
  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5577
4150
  case $host_os in
5578
4151
  aix[[4-9]]*)
5579
4152
    # If we're using GNU nm, then we don't want the "-C" option.
5580
4153
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
5581
 
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
5582
 
      _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'
 
4154
    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
4155
      _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'
5583
4156
    else
5584
 
      _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'
 
4157
      _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'
5585
4158
    fi
5586
4159
    ;;
5587
4160
  pw32*)
5588
 
    _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
 
4161
    _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5589
4162
  ;;
5590
4163
  cygwin* | mingw*)
5591
 
    _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'
 
4164
    _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'
5592
4165
  ;;
5593
4166
  linux* | k*bsd*-gnu)
5594
 
    _LT_AC_TAGVAR(link_all_deplibs, $1)=no
 
4167
    _LT_TAGVAR(link_all_deplibs, $1)=no
5595
4168
  ;;
5596
4169
  *)
5597
 
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
4170
    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5598
4171
  ;;
5599
4172
  esac
5600
 
  _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5601
 
],[
 
4173
  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
 
4174
], [
5602
4175
  runpath_var=
5603
 
  _LT_AC_TAGVAR(allow_undefined_flag, $1)=
5604
 
  _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5605
 
  _LT_AC_TAGVAR(archive_cmds, $1)=
5606
 
  _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
5607
 
  _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
5608
 
  _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
5609
 
  _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5610
 
  _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5611
 
  _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
5612
 
  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5613
 
  _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5614
 
  _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5615
 
  _LT_AC_TAGVAR(hardcode_direct, $1)=no
5616
 
  _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5617
 
  _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5618
 
  _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
5619
 
  _LT_AC_TAGVAR(hardcode_automatic, $1)=no
5620
 
  _LT_AC_TAGVAR(module_cmds, $1)=
5621
 
  _LT_AC_TAGVAR(module_expsym_cmds, $1)=
5622
 
  _LT_AC_TAGVAR(always_export_symbols, $1)=no
5623
 
  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
4176
  _LT_TAGVAR(allow_undefined_flag, $1)=
 
4177
  _LT_TAGVAR(always_export_symbols, $1)=no
 
4178
  _LT_TAGVAR(archive_cmds, $1)=
 
4179
  _LT_TAGVAR(archive_expsym_cmds, $1)=
 
4180
  _LT_TAGVAR(compiler_needs_object, $1)=no
 
4181
  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 
4182
  _LT_TAGVAR(export_dynamic_flag_spec, $1)=
 
4183
  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
4184
  _LT_TAGVAR(hardcode_automatic, $1)=no
 
4185
  _LT_TAGVAR(hardcode_direct, $1)=no
 
4186
  _LT_TAGVAR(hardcode_direct_absolute, $1)=no
 
4187
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
4188
  _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 
4189
  _LT_TAGVAR(hardcode_libdir_separator, $1)=
 
4190
  _LT_TAGVAR(hardcode_minus_L, $1)=no
 
4191
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
4192
  _LT_TAGVAR(inherit_rpath, $1)=no
 
4193
  _LT_TAGVAR(link_all_deplibs, $1)=unknown
 
4194
  _LT_TAGVAR(module_cmds, $1)=
 
4195
  _LT_TAGVAR(module_expsym_cmds, $1)=
 
4196
  _LT_TAGVAR(old_archive_from_new_cmds, $1)=
 
4197
  _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
 
4198
  _LT_TAGVAR(thread_safe_flag_spec, $1)=
 
4199
  _LT_TAGVAR(whole_archive_flag_spec, $1)=
5624
4200
  # include_expsyms should be a list of space-separated symbols to be *always*
5625
4201
  # included in the symbol list
5626
 
  _LT_AC_TAGVAR(include_expsyms, $1)=
 
4202
  _LT_TAGVAR(include_expsyms, $1)=
5627
4203
  # exclude_expsyms can be an extended regexp of symbols to exclude
5628
4204
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
5629
4205
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5630
4206
  # as well as any symbol that contains `d'.
5631
 
  _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
 
4207
  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5632
4208
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5633
4209
  # platforms (ab)use it in PIC code, but their linkers get confused if
5634
4210
  # the symbol is explicitly referenced.  Since portable code cannot
5637
4213
  # Exclude shared library initialization/finalization symbols.
5638
4214
dnl Note also adjust exclude_expsyms for C++ above.
5639
4215
  extract_expsyms_cmds=
5640
 
  # Just being paranoid about ensuring that cc_basename is set.
5641
 
  _LT_CC_BASENAME([$compiler])
 
4216
 
5642
4217
  case $host_os in
5643
4218
  cygwin* | mingw* | pw32*)
5644
4219
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
5657
4232
    ;;
5658
4233
  esac
5659
4234
 
5660
 
  _LT_AC_TAGVAR(ld_shlibs, $1)=yes
 
4235
  _LT_TAGVAR(ld_shlibs, $1)=yes
5661
4236
  if test "$with_gnu_ld" = yes; then
5662
4237
    # If archive_cmds runs LD, not CC, wlarc should be empty
5663
4238
    wlarc='${wl}'
5666
4241
    # are reset later if shared libraries are not supported. Putting them
5667
4242
    # here allows them to be overridden if necessary.
5668
4243
    runpath_var=LD_RUN_PATH
5669
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
5670
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
4244
    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
4245
    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5671
4246
    # ancient GNU ld didn't support --whole-archive et. al.
5672
 
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
5673
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5674
 
      else
5675
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 
4247
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
 
4248
      _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
4249
    else
 
4250
      _LT_TAGVAR(whole_archive_flag_spec, $1)=
5676
4251
    fi
5677
4252
    supports_anon_versioning=no
5678
 
    case `$LD -v 2>/dev/null` in
 
4253
    case `$LD -v 2>&1` in
5679
4254
      *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
5680
4255
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5681
4256
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5688
4263
    aix[[3-9]]*)
5689
4264
      # On AIX/PPC, the GNU linker is very broken
5690
4265
      if test "$host_cpu" != ia64; then
5691
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5692
 
        cat <<EOF 1>&2
 
4266
        _LT_TAGVAR(ld_shlibs, $1)=no
 
4267
        cat <<_LT_EOF 1>&2
5693
4268
 
5694
4269
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
5695
4270
*** to be unable to reliably create shared libraries on AIX.
5697
4272
*** really care for shared libraries, you may want to modify your PATH
5698
4273
*** so that a non-GNU linker is found, and then restart.
5699
4274
 
5700
 
EOF
 
4275
_LT_EOF
5701
4276
      fi
5702
4277
      ;;
5703
4278
 
5704
4279
    amigaos*)
5705
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5706
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5707
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5708
 
 
5709
 
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5710
 
      # that the semantics of dynamic libraries on AmigaOS, at least up
5711
 
      # to version 4, is to share data among multiple programs linked
5712
 
      # with the same dynamic library.  Since this doesn't match the
5713
 
      # behavior of shared libraries on other platforms, we can't use
5714
 
      # them.
5715
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4280
      case $host_cpu in
 
4281
      powerpc)
 
4282
            # see comment about AmigaOS4 .so support
 
4283
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
4284
            _LT_TAGVAR(archive_expsym_cmds, $1)=''
 
4285
        ;;
 
4286
      m68k)
 
4287
            _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
4288
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
4289
            _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
4290
        ;;
 
4291
      esac
5716
4292
      ;;
5717
4293
 
5718
4294
    beos*)
5719
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5720
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
4295
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
4296
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5721
4297
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5722
4298
        # support --undefined.  This deserves some investigation.  FIXME
5723
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
4299
        _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5724
4300
      else
5725
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4301
        _LT_TAGVAR(ld_shlibs, $1)=no
5726
4302
      fi
5727
4303
      ;;
5728
4304
 
5729
4305
    cygwin* | mingw* | pw32*)
5730
 
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
 
4306
      # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5731
4307
      # as there is no search path for DLLs.
5732
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5733
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5734
 
      _LT_AC_TAGVAR(always_export_symbols, $1)=no
5735
 
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5736
 
      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
 
4308
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
4309
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
4310
      _LT_TAGVAR(always_export_symbols, $1)=no
 
4311
      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
4312
      _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
5737
4313
 
5738
 
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5739
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
4314
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
4315
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5740
4316
        # If the export-symbols file already is a .def file (1st line
5741
4317
        # is EXPORTS), use it as is; otherwise, prepend...
5742
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
4318
        _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5743
4319
          cp $export_symbols $output_objdir/$soname.def;
5744
4320
        else
5745
4321
          echo EXPORTS > $output_objdir/$soname.def;
5747
4323
        fi~
5748
4324
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5749
4325
      else
5750
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4326
        _LT_TAGVAR(ld_shlibs, $1)=no
5751
4327
      fi
5752
4328
      ;;
5753
4329
 
5754
4330
    interix[[3-9]]*)
5755
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
5756
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5757
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5758
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
4331
      _LT_TAGVAR(hardcode_direct, $1)=no
 
4332
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
4333
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
4334
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5759
4335
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5760
4336
      # Instead, shared libraries are loaded at an image base (0x10000000 by
5761
4337
      # default) and relocated if they conflict, which is a slow very memory
5762
4338
      # consuming and fragmenting process.  To avoid this, we pick a random,
5763
4339
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5764
4340
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
5765
 
      _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'
5766
 
      _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'
 
4341
      _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'
 
4342
      _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'
5767
4343
      ;;
5768
4344
 
5769
 
    gnu* | linux* | k*bsd*-gnu)
5770
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
4345
    gnu* | linux* | tpf* | k*bsd*-gnu)
 
4346
      tmp_diet=no
 
4347
      if test "$host_os" = linux-dietlibc; then
 
4348
        case $cc_basename in
 
4349
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
 
4350
        esac
 
4351
      fi
 
4352
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
 
4353
         && test "$tmp_diet" = no
 
4354
      then
5771
4355
        tmp_addflag=
 
4356
        tmp_sharedflag='-shared'
5772
4357
        case $cc_basename,$host_cpu in
5773
 
        pgcc*)                          # Portland Group C compiler
5774
 
          _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'
 
4358
        pgcc*)                          # Portland Group C compiler
 
4359
          _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'
5775
4360
          tmp_addflag=' $pic_flag'
5776
4361
          ;;
5777
4362
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
5778
 
          _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'
 
4363
          _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'
5779
4364
          tmp_addflag=' $pic_flag -Mnomain' ;;
5780
 
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
4365
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
5781
4366
          tmp_addflag=' -i_dynamic' ;;
5782
4367
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
5783
4368
          tmp_addflag=' -i_dynamic -nofor_main' ;;
5784
4369
        ifc* | ifort*)                  # Intel Fortran compiler
5785
4370
          tmp_addflag=' -nofor_main' ;;
 
4371
        xl[[cC]]*)                      # IBM XL C 8.0 on PPC (deal with xlf below)
 
4372
          tmp_sharedflag='-qmkshrobj'
 
4373
          tmp_addflag= ;;
5786
4374
        esac
5787
4375
        case `$CC -V 2>&1 | sed 5q` in
5788
4376
        *Sun\ C*)                       # Sun C 5.9
5789
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
4377
          _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'
 
4378
          _LT_TAGVAR(compiler_needs_object, $1)=yes
5790
4379
          tmp_sharedflag='-G' ;;
5791
4380
        *Sun\ F*)                       # Sun Fortran 8.3
5792
4381
          tmp_sharedflag='-G' ;;
5793
 
        *)
5794
 
          tmp_sharedflag='-shared' ;;
5795
 
        esac
5796
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5797
 
 
5798
 
        if test $supports_anon_versioning = yes; then
5799
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
5800
 
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5801
 
  $echo "local: *; };" >> $output_objdir/$libname.ver~
5802
 
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5803
 
        fi
5804
 
        _LT_AC_TAGVAR(link_all_deplibs, $1)=no
 
4382
        esac
 
4383
        _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
4384
 
 
4385
        if test "x$supports_anon_versioning" = xyes; then
 
4386
          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
 
4387
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
4388
            echo "local: *; };" >> $output_objdir/$libname.ver~
 
4389
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
4390
        fi
 
4391
 
 
4392
        case $cc_basename in
 
4393
        xlf*)
 
4394
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
 
4395
          _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
 
4396
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
4397
          _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
 
4398
          _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
 
4399
          if test "x$supports_anon_versioning" = xyes; then
 
4400
            _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
 
4401
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
4402
              echo "local: *; };" >> $output_objdir/$libname.ver~
 
4403
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 
4404
          fi
 
4405
          ;;
 
4406
        esac
5805
4407
      else
5806
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4408
        _LT_TAGVAR(ld_shlibs, $1)=no
5807
4409
      fi
5808
4410
      ;;
5809
4411
 
5810
4412
    netbsd* | netbsdelf*-gnu)
5811
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5812
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
4413
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
4414
        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5813
4415
        wlarc=
5814
4416
      else
5815
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5816
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
4417
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
4418
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5817
4419
      fi
5818
4420
      ;;
5819
4421
 
5820
4422
    solaris*)
5821
 
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
5822
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5823
 
        cat <<EOF 1>&2
 
4423
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
 
4424
        _LT_TAGVAR(ld_shlibs, $1)=no
 
4425
        cat <<_LT_EOF 1>&2
5824
4426
 
5825
4427
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
5826
4428
*** create shared libraries on Solaris systems.  Therefore, libtool
5829
4431
*** your PATH or compiler configuration so that the native linker is
5830
4432
*** used, and then restart.
5831
4433
 
5832
 
EOF
5833
 
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5834
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5835
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
4434
_LT_EOF
 
4435
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
4436
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
4437
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5836
4438
      else
5837
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4439
        _LT_TAGVAR(ld_shlibs, $1)=no
5838
4440
      fi
5839
4441
      ;;
5840
4442
 
5841
4443
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
5842
4444
      case `$LD -v 2>&1` in
5843
4445
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
5844
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4446
        _LT_TAGVAR(ld_shlibs, $1)=no
5845
4447
        cat <<_LT_EOF 1>&2
5846
4448
 
5847
4449
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
5854
4456
_LT_EOF
5855
4457
        ;;
5856
4458
        *)
5857
 
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5858
 
            _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
5859
 
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
5860
 
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
4459
          # For security reasons, it is highly recommended that you always
 
4460
          # use absolute paths for naming shared libraries, and exclude the
 
4461
          # DT_RUNPATH tag from executables and libraries.  But doing so
 
4462
          # requires that you compile everything twice, which is a pain.
 
4463
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
4464
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
4465
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
4466
            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5861
4467
          else
5862
 
            _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4468
            _LT_TAGVAR(ld_shlibs, $1)=no
5863
4469
          fi
5864
4470
        ;;
5865
4471
      esac
5866
4472
      ;;
5867
4473
 
5868
4474
    sunos4*)
5869
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
4475
      _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5870
4476
      wlarc=
5871
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5872
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
4477
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
4478
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5873
4479
      ;;
5874
4480
 
5875
4481
    *)
5876
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5877
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5878
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
4482
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
4483
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
4484
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5879
4485
      else
5880
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4486
        _LT_TAGVAR(ld_shlibs, $1)=no
5881
4487
      fi
5882
4488
      ;;
5883
4489
    esac
5884
4490
 
5885
 
    if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
 
4491
    if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
5886
4492
      runpath_var=
5887
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5888
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5889
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 
4493
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
4494
      _LT_TAGVAR(export_dynamic_flag_spec, $1)=
 
4495
      _LT_TAGVAR(whole_archive_flag_spec, $1)=
5890
4496
    fi
5891
4497
  else
5892
4498
    # PORTME fill in a description of your system's linker (not GNU ld)
5893
4499
    case $host_os in
5894
4500
    aix3*)
5895
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5896
 
      _LT_AC_TAGVAR(always_export_symbols, $1)=yes
5897
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
 
4501
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
4502
      _LT_TAGVAR(always_export_symbols, $1)=yes
 
4503
      _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
5898
4504
      # Note: this linker hardcodes the directories in LIBPATH if there
5899
4505
      # are no directories specified by -L.
5900
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
4506
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
5901
4507
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
5902
4508
        # Neither direct hardcoding nor static linking is supported with a
5903
4509
        # broken collect2.
5904
 
        _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
 
4510
        _LT_TAGVAR(hardcode_direct, $1)=unsupported
5905
4511
      fi
5906
4512
      ;;
5907
4513
 
5915
4521
      else
5916
4522
        # If we're using GNU nm, then we don't want the "-C" option.
5917
4523
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
5918
 
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
5919
 
          _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'
 
4524
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
4525
          _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'
5920
4526
        else
5921
 
          _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'
 
4527
          _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'
5922
4528
        fi
5923
4529
        aix_use_runtimelinking=no
5924
4530
 
5927
4533
        # need to do runtime linking.
5928
4534
        case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5929
4535
          for ld_flag in $LDFLAGS; do
5930
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5931
 
            aix_use_runtimelinking=yes
5932
 
            break
5933
 
          fi
 
4536
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
4537
            aix_use_runtimelinking=yes
 
4538
            break
 
4539
          fi
5934
4540
          done
5935
4541
          ;;
5936
4542
        esac
5945
4551
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
5946
4552
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5947
4553
 
5948
 
      _LT_AC_TAGVAR(archive_cmds, $1)=''
5949
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5950
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
5951
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
4554
      _LT_TAGVAR(archive_cmds, $1)=''
 
4555
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
4556
      _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
4557
      _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
 
4558
      _LT_TAGVAR(link_all_deplibs, $1)=yes
 
4559
      _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
5952
4560
 
5953
4561
      if test "$GCC" = yes; then
5954
4562
        case $host_os in aix4.[[012]]|aix4.[[012]].*)
5955
4563
        # We only want to do this on AIX 4.2 and lower, the check
5956
4564
        # below for broken collect2 doesn't work under 4.3+
5957
4565
          collect2name=`${CC} -print-prog-name=collect2`
5958
 
          if test -f "$collect2name" && \
5959
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
4566
          if test -f "$collect2name" &&
 
4567
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
5960
4568
          then
5961
 
          # We have reworked collect2
5962
 
          :
 
4569
          # We have reworked collect2
 
4570
          :
5963
4571
          else
5964
 
          # We have old collect2
5965
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5966
 
          # It fails to find uninstalled libraries when the uninstalled
5967
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
5968
 
          # to unsupported forces relinking
5969
 
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5970
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5971
 
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
 
4572
          # We have old collect2
 
4573
          _LT_TAGVAR(hardcode_direct, $1)=unsupported
 
4574
          # It fails to find uninstalled libraries when the uninstalled
 
4575
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
4576
          # to unsupported forces relinking
 
4577
          _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
4578
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
4579
          _LT_TAGVAR(hardcode_libdir_separator, $1)=
5972
4580
          fi
5973
4581
          ;;
5974
4582
        esac
5976
4584
        if test "$aix_use_runtimelinking" = yes; then
5977
4585
          shared_flag="$shared_flag "'${wl}-G'
5978
4586
        fi
 
4587
        _LT_TAGVAR(link_all_deplibs, $1)=no
5979
4588
      else
5980
4589
        # not using gcc
5981
4590
        if test "$host_cpu" = ia64; then
5982
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5983
 
        # chokes on -Wl,-G. The following line is correct:
 
4591
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
4592
        # chokes on -Wl,-G. The following line is correct:
5984
4593
          shared_flag='-G'
5985
4594
        else
5986
4595
          if test "$aix_use_runtimelinking" = yes; then
5993
4602
 
5994
4603
      # It seems that -bexpall does not export symbols beginning with
5995
4604
      # underscore (_), so it is better to generate a list of symbols to export.
5996
 
      _LT_AC_TAGVAR(always_export_symbols, $1)=yes
 
4605
      _LT_TAGVAR(always_export_symbols, $1)=yes
5997
4606
      if test "$aix_use_runtimelinking" = yes; then
5998
4607
        # Warning - without using the other runtime loading flags (-brtl),
5999
4608
        # -berok will link without error, but may produce a broken library.
6000
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
6001
 
       # Determine the default libpath from the value encoded in an empty executable.
6002
 
       _LT_AC_SYS_LIBPATH_AIX
6003
 
       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6004
 
        _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"
6005
 
       else
 
4609
        _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
 
4610
        # Determine the default libpath from the value encoded in an
 
4611
        # empty executable.
 
4612
        _LT_SYS_MODULE_PATH_AIX
 
4613
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
4614
        _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"
 
4615
      else
6006
4616
        if test "$host_cpu" = ia64; then
6007
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6008
 
          _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6009
 
          _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"
 
4617
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
 
4618
          _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
 
4619
          _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"
6010
4620
        else
6011
 
         # Determine the default libpath from the value encoded in an empty executable.
6012
 
         _LT_AC_SYS_LIBPATH_AIX
6013
 
         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
4621
         # Determine the default libpath from the value encoded in an
 
4622
         # empty executable.
 
4623
         _LT_SYS_MODULE_PATH_AIX
 
4624
         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6014
4625
          # Warning - without using the other run time loading flags,
6015
4626
          # -berok will link without error, but may produce a broken library.
6016
 
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6017
 
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
 
4627
          _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
 
4628
          _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6018
4629
          # Exported symbols can be pulled into shared objects from archives
6019
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6020
 
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
 
4630
          _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
4631
          _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6021
4632
          # This is similar to how AIX traditionally builds its shared libraries.
6022
 
          _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'
 
4633
          _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'
6023
4634
        fi
6024
4635
      fi
6025
4636
      ;;
6026
4637
 
6027
4638
    amigaos*)
6028
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
6029
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6030
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6031
 
      # see comment about different semantics on the GNU ld section
6032
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4639
      case $host_cpu in
 
4640
      powerpc)
 
4641
            # see comment about AmigaOS4 .so support
 
4642
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
4643
            _LT_TAGVAR(archive_expsym_cmds, $1)=''
 
4644
        ;;
 
4645
      m68k)
 
4646
            _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
4647
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
4648
            _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
4649
        ;;
 
4650
      esac
6033
4651
      ;;
6034
4652
 
6035
4653
    bsdi[[45]]*)
6036
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
 
4654
      _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
6037
4655
      ;;
6038
4656
 
6039
4657
    cygwin* | mingw* | pw32*)
6041
4659
      # Microsoft Visual C++.
6042
4660
      # hardcode_libdir_flag_spec is actually meaningless, as there is
6043
4661
      # no search path for DLLs.
6044
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6045
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
4662
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
 
4663
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6046
4664
      # Tell ltmain to make .lib files, not .a files.
6047
4665
      libext=lib
6048
4666
      # Tell ltmain to make .dll files, not .so files.
6049
4667
      shrext_cmds=".dll"
6050
4668
      # FIXME: Setting linknames here is a bad hack.
6051
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
4669
      _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6052
4670
      # The linker will automatically build a .lib file if we build a DLL.
6053
 
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
 
4671
      _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
6054
4672
      # FIXME: Should let the user specify the lib program.
6055
 
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
6056
 
      _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
6057
 
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
4673
      _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
4674
      _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
 
4675
      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6058
4676
      ;;
6059
4677
 
6060
4678
    darwin* | rhapsody*)
6061
 
      case $host_os in
6062
 
        rhapsody* | darwin1.[[012]])
6063
 
         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
6064
 
         ;;
6065
 
       *) # Darwin 1.3 on
6066
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6067
 
           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6068
 
         else
6069
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
6070
 
             10.[[012]])
6071
 
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6072
 
               ;;
6073
 
             10.*)
6074
 
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
6075
 
               ;;
6076
 
           esac
6077
 
         fi
6078
 
         ;;
6079
 
      esac
6080
 
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6081
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
6082
 
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
6083
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6084
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
6085
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6086
 
    if test "$GCC" = yes ; then
6087
 
        output_verbose_link_cmd='echo'
6088
 
        _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
6089
 
        _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
6090
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
6091
 
        _LT_AC_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
6092
 
    else
6093
 
      case $cc_basename in
6094
 
        xlc*)
6095
 
         output_verbose_link_cmd='echo'
6096
 
         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
6097
 
         _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6098
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
6099
 
         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6100
 
          _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}'
6101
 
          ;;
6102
 
       *)
6103
 
         _LT_AC_TAGVAR(ld_shlibs, $1)=no
6104
 
          ;;
6105
 
      esac
6106
 
    fi
 
4679
      _LT_DARWIN_LINKER_FEATURES($1)
6107
4680
      ;;
6108
4681
 
6109
4682
    dgux*)
6110
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6111
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6112
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
4683
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
4684
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
4685
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6113
4686
      ;;
6114
4687
 
6115
4688
    freebsd1*)
6116
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4689
      _LT_TAGVAR(ld_shlibs, $1)=no
6117
4690
      ;;
6118
4691
 
6119
4692
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6121
4694
    # does not break anything, and helps significantly (at the cost of a little
6122
4695
    # extra space).
6123
4696
    freebsd2.2*)
6124
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6125
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6126
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6127
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
4697
      _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
4698
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
4699
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
4700
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6128
4701
      ;;
6129
4702
 
6130
4703
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6131
4704
    freebsd2*)
6132
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6133
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6134
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6135
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
4705
      _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
4706
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
4707
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
4708
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6136
4709
      ;;
6137
4710
 
6138
4711
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6139
4712
    freebsd* | dragonfly*)
6140
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6141
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6142
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6143
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
4713
      _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
4714
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
4715
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
4716
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6144
4717
      ;;
6145
4718
 
6146
4719
    hpux9*)
6147
4720
      if test "$GCC" = yes; then
6148
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
4721
        _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6149
4722
      else
6150
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
4723
        _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6151
4724
      fi
6152
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6153
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6154
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
4725
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
4726
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
4727
      _LT_TAGVAR(hardcode_direct, $1)=yes
6155
4728
 
6156
4729
      # hardcode_minus_L: Not really in the search PATH,
6157
4730
      # but as the default location of the library.
6158
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6159
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
4731
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
4732
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6160
4733
      ;;
6161
4734
 
6162
4735
    hpux10*)
6163
4736
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6164
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
4737
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6165
4738
      else
6166
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
4739
        _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6167
4740
      fi
6168
4741
      if test "$with_gnu_ld" = no; then
6169
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6170
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6171
 
 
6172
 
        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6173
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6174
 
 
 
4742
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
4743
        _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
 
4744
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
4745
        _LT_TAGVAR(hardcode_direct, $1)=yes
 
4746
        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
4747
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6175
4748
        # hardcode_minus_L: Not really in the search PATH,
6176
4749
        # but as the default location of the library.
6177
 
        _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
4750
        _LT_TAGVAR(hardcode_minus_L, $1)=yes
6178
4751
      fi
6179
4752
      ;;
6180
4753
 
6182
4755
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6183
4756
        case $host_cpu in
6184
4757
        hppa*64*)
6185
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
4758
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6186
4759
          ;;
6187
4760
        ia64*)
6188
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
4761
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
6189
4762
          ;;
6190
4763
        *)
6191
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
4764
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6192
4765
          ;;
6193
4766
        esac
6194
4767
      else
6195
4768
        case $host_cpu in
6196
4769
        hppa*64*)
6197
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
4770
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6198
4771
          ;;
6199
4772
        ia64*)
6200
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
4773
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
6201
4774
          ;;
6202
4775
        *)
6203
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
4776
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6204
4777
          ;;
6205
4778
        esac
6206
4779
      fi
6207
4780
      if test "$with_gnu_ld" = no; then
6208
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6209
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
4781
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
4782
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6210
4783
 
6211
4784
        case $host_cpu in
6212
4785
        hppa*64*|ia64*)
6213
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
6214
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
6215
 
          _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
4786
          _LT_TAGVAR(hardcode_direct, $1)=no
 
4787
          _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6216
4788
          ;;
6217
4789
        *)
6218
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6219
 
          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
4790
          _LT_TAGVAR(hardcode_direct, $1)=yes
 
4791
          _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
4792
          _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6220
4793
 
6221
4794
          # hardcode_minus_L: Not really in the search PATH,
6222
4795
          # but as the default location of the library.
6223
 
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
4796
          _LT_TAGVAR(hardcode_minus_L, $1)=yes
6224
4797
          ;;
6225
4798
        esac
6226
4799
      fi
6228
4801
 
6229
4802
    irix5* | irix6* | nonstopux*)
6230
4803
      if test "$GCC" = yes; then
6231
 
        _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'
 
4804
        _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'
 
4805
        # Try to use the -exported_symbol ld option, if it does not
 
4806
        # work, assume that -exports_file does not work either and
 
4807
        # implicitly export all symbols.
 
4808
        save_LDFLAGS="$LDFLAGS"
 
4809
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
 
4810
        AC_LINK_IFELSE(int foo(void) {},
 
4811
          _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'
 
4812
        )
 
4813
        LDFLAGS="$save_LDFLAGS"
6232
4814
      else
6233
 
        _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'
6234
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
 
4815
        _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'
 
4816
        _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'
6235
4817
      fi
6236
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6237
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6238
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
4818
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
 
4819
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
4820
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
4821
      _LT_TAGVAR(inherit_rpath, $1)=yes
 
4822
      _LT_TAGVAR(link_all_deplibs, $1)=yes
6239
4823
      ;;
6240
4824
 
6241
4825
    netbsd* | netbsdelf*-gnu)
6242
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6243
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
4826
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
4827
        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6244
4828
      else
6245
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
4829
        _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
6246
4830
      fi
6247
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6248
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6249
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
4831
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
4832
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
4833
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6250
4834
      ;;
6251
4835
 
6252
4836
    newsos6)
6253
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6254
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6255
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6256
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6257
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
4837
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
4838
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
4839
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
4840
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
4841
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
4842
      ;;
 
4843
 
 
4844
    *nto* | *qnx*)
6258
4845
      ;;
6259
4846
 
6260
4847
    openbsd*)
6261
4848
      if test -f /usr/libexec/ld.so; then
6262
 
        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6263
 
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6264
 
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6265
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6266
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6267
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6268
 
          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
4849
        _LT_TAGVAR(hardcode_direct, $1)=yes
 
4850
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
4851
        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
4852
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
4853
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
4854
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
4855
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
4856
          _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6269
4857
        else
6270
4858
          case $host_os in
6271
4859
           openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6272
 
             _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6273
 
             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
4860
             _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
4861
             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6274
4862
             ;;
6275
4863
           *)
6276
 
             _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6277
 
             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
4864
             _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
4865
             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6278
4866
             ;;
6279
4867
          esac
6280
 
        fi
 
4868
        fi
6281
4869
      else
6282
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4870
        _LT_TAGVAR(ld_shlibs, $1)=no
6283
4871
      fi
6284
4872
      ;;
6285
4873
 
6286
4874
    os2*)
6287
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6288
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6289
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6290
 
      _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'
6291
 
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
4875
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
4876
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
4877
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
4878
      _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'
 
4879
      _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6292
4880
      ;;
6293
4881
 
6294
4882
    osf3*)
6295
4883
      if test "$GCC" = yes; then
6296
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6297
 
        _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'
 
4884
        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
4885
        _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'
6298
4886
      else
6299
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6300
 
        _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'
 
4887
        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
 
4888
        _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'
6301
4889
      fi
6302
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6303
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
4890
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
 
4891
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
4892
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6304
4893
      ;;
6305
4894
 
6306
4895
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
6307
4896
      if test "$GCC" = yes; then
6308
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6309
 
        _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'
6310
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
4897
        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
4898
        _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'
 
4899
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6311
4900
      else
6312
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6313
 
        _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'
6314
 
        _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~
6315
 
        $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'
 
4901
        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
 
4902
        _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'
 
4903
        _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~
 
4904
        $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'
6316
4905
 
6317
4906
        # Both c and cxx compiler support -rpath directly
6318
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
 
4907
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6319
4908
      fi
6320
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
4909
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
 
4910
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6321
4911
      ;;
6322
4912
 
6323
4913
    solaris*)
6324
 
      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
 
4914
      _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
6325
4915
      if test "$GCC" = yes; then
6326
4916
        wlarc='${wl}'
6327
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6328
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6329
 
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
4917
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
4918
        _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
4919
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
6330
4920
      else
6331
 
        wlarc=''
6332
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6333
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6334
 
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
4921
        case `$CC -V 2>&1` in
 
4922
        *"Compilers 5.0"*)
 
4923
          wlarc=''
 
4924
          _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
4925
          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
4926
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
 
4927
          ;;
 
4928
        *)
 
4929
          wlarc='${wl}'
 
4930
          _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
4931
          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
4932
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
4933
          ;;
 
4934
        esac
6335
4935
      fi
6336
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6337
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
4936
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
4937
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6338
4938
      case $host_os in
6339
4939
      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6340
4940
      *)
6341
4941
        # The compiler driver will combine and reorder linker options,
6342
4942
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
6343
4943
        # but is careful enough not to reorder.
6344
 
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
4944
        # Supported since Solaris 2.6 (maybe 2.5.1?)
6345
4945
        if test "$GCC" = yes; then
6346
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
4946
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6347
4947
        else
6348
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
 
4948
          _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6349
4949
        fi
6350
4950
        ;;
6351
4951
      esac
6352
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
4952
      _LT_TAGVAR(link_all_deplibs, $1)=yes
6353
4953
      ;;
6354
4954
 
6355
4955
    sunos4*)
6356
4956
      if test "x$host_vendor" = xsequent; then
6357
4957
        # Use $CC to link under sequent, because it throws in some extra .o
6358
4958
        # files that make .init and .fini sections work.
6359
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
4959
        _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6360
4960
      else
6361
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
4961
        _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6362
4962
      fi
6363
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6364
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6365
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6366
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
4963
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
4964
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
4965
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
4966
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6367
4967
      ;;
6368
4968
 
6369
4969
    sysv4)
6370
4970
      case $host_vendor in
6371
4971
        sni)
6372
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6373
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
 
4972
          _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
4973
          _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
6374
4974
        ;;
6375
4975
        siemens)
6376
4976
          ## LD is ld it makes a PLAMLIB
6377
4977
          ## CC just makes a GrossModule.
6378
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6379
 
          _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
6380
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
4978
          _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
4979
          _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
 
4980
          _LT_TAGVAR(hardcode_direct, $1)=no
6381
4981
        ;;
6382
4982
        motorola)
6383
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6384
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
 
4983
          _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
4984
          _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
6385
4985
        ;;
6386
4986
      esac
6387
4987
      runpath_var='LD_RUN_PATH'
6388
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
4988
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6389
4989
      ;;
6390
4990
 
6391
4991
    sysv4.3*)
6392
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6393
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6394
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
 
4992
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
4993
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
4994
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
6395
4995
      ;;
6396
4996
 
6397
4997
    sysv4*MP*)
6398
4998
      if test -d /usr/nec; then
6399
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6400
 
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
4999
        _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5000
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6401
5001
        runpath_var=LD_RUN_PATH
6402
5002
        hardcode_runpath_var=yes
6403
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=yes
 
5003
        _LT_TAGVAR(ld_shlibs, $1)=yes
6404
5004
      fi
6405
5005
      ;;
6406
5006
 
6407
5007
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6408
 
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6409
 
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6410
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5008
      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
5009
      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
5010
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6411
5011
      runpath_var='LD_RUN_PATH'
6412
5012
 
6413
5013
      if test "$GCC" = yes; then
6414
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6415
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5014
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5015
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6416
5016
      else
6417
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6418
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5017
        _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5018
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6419
5019
      fi
6420
5020
      ;;
6421
5021
 
6426
5026
      # ever link correctly.  If we're not using GNU ld we use -z text
6427
5027
      # though, which does catch some bad symbols but isn't as heavy-handed
6428
5028
      # as -z defs.
6429
 
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6430
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6431
 
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6432
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6433
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
6434
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
6435
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6436
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
 
5029
      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
5030
      _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
 
5031
      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
5032
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5033
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
 
5034
      _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
 
5035
      _LT_TAGVAR(link_all_deplibs, $1)=yes
 
5036
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6437
5037
      runpath_var='LD_RUN_PATH'
6438
5038
 
6439
5039
      if test "$GCC" = yes; then
6440
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6441
 
        _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'
 
5040
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5041
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6442
5042
      else
6443
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6444
 
        _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'
 
5043
        _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5044
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6445
5045
      fi
6446
5046
      ;;
6447
5047
 
6448
5048
    uts4*)
6449
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6450
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6451
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5049
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5050
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
5051
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6452
5052
      ;;
6453
5053
 
6454
5054
    *)
6455
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5055
      _LT_TAGVAR(ld_shlibs, $1)=no
6456
5056
      ;;
6457
5057
    esac
 
5058
 
 
5059
    if test x$host_vendor = xsni; then
 
5060
      case $host in
 
5061
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
5062
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
 
5063
        ;;
 
5064
      esac
 
5065
    fi
6458
5066
  fi
6459
5067
])
6460
 
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
6461
 
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
 
5068
AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
 
5069
test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
 
5070
 
 
5071
_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
 
5072
 
 
5073
_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
 
5074
_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
 
5075
_LT_DECL([], [extract_expsyms_cmds], [2],
 
5076
    [The commands to extract the exported symbol list from a shared archive])
6462
5077
 
6463
5078
#
6464
5079
# Do we need to explicitly link libc?
6465
5080
#
6466
 
case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
 
5081
case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
6467
5082
x|xyes)
6468
5083
  # Assume -lc should be added
6469
 
  _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
 
5084
  _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6470
5085
 
6471
5086
  if test "$enable_shared" = yes && test "$GCC" = yes; then
6472
 
    case $_LT_AC_TAGVAR(archive_cmds, $1) in
 
5087
    case $_LT_TAGVAR(archive_cmds, $1) in
6473
5088
    *'~'*)
6474
5089
      # FIXME: we may have to deal with multi-command sequences.
6475
5090
      ;;
6478
5093
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
6479
5094
      # to ld, don't add -lc before -lgcc.
6480
5095
      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
6481
 
      $rm conftest*
 
5096
      $RM conftest*
6482
5097
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6483
5098
 
6484
5099
      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6486
5101
        lib=conftest
6487
5102
        libobjs=conftest.$ac_objext
6488
5103
        deplibs=
6489
 
        wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
6490
 
        pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
 
5104
        wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
 
5105
        pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
6491
5106
        compiler_flags=-v
6492
5107
        linker_flags=-v
6493
5108
        verstring=
6494
5109
        output_objdir=.
6495
5110
        libname=conftest
6496
 
        lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
6497
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=
6498
 
        if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
 
5111
        lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
 
5112
        _LT_TAGVAR(allow_undefined_flag, $1)=
 
5113
        if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
6499
5114
        then
6500
 
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
5115
          _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6501
5116
        else
6502
 
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
 
5117
          _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6503
5118
        fi
6504
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
 
5119
        _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
6505
5120
      else
6506
5121
        cat conftest.err 1>&5
6507
5122
      fi
6508
 
      $rm conftest*
6509
 
      AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
 
5123
      $RM conftest*
 
5124
      AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
6510
5125
      ;;
6511
5126
    esac
6512
5127
  fi
6513
5128
  ;;
6514
5129
esac
6515
 
])# AC_LIBTOOL_PROG_LD_SHLIBS
6516
 
 
6517
 
 
6518
 
# _LT_AC_FILE_LTDLL_C
6519
 
# -------------------
6520
 
# Be careful that the start marker always follows a newline.
6521
 
AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
6522
 
# /* ltdll.c starts here */
6523
 
# #define WIN32_LEAN_AND_MEAN
6524
 
# #include <windows.h>
6525
 
# #undef WIN32_LEAN_AND_MEAN
6526
 
# #include <stdio.h>
6527
 
#
6528
 
# #ifndef __CYGWIN__
6529
 
# #  ifdef __CYGWIN32__
6530
 
# #    define __CYGWIN__ __CYGWIN32__
6531
 
# #  endif
6532
 
# #endif
6533
 
#
6534
 
# #ifdef __cplusplus
6535
 
# extern "C" {
6536
 
# #endif
6537
 
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
6538
 
# #ifdef __cplusplus
6539
 
# }
6540
 
# #endif
6541
 
#
6542
 
# #ifdef __CYGWIN__
6543
 
# #include <cygwin/cygwin_dll.h>
6544
 
# DECLARE_CYGWIN_DLL( DllMain );
6545
 
# #endif
6546
 
# HINSTANCE __hDllInstance_base;
6547
 
#
6548
 
# BOOL APIENTRY
6549
 
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
6550
 
# {
6551
 
#   __hDllInstance_base = hInst;
6552
 
#   return TRUE;
6553
 
# }
6554
 
# /* ltdll.c ends here */
6555
 
])# _LT_AC_FILE_LTDLL_C
6556
 
 
6557
 
 
6558
 
# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
 
5130
 
 
5131
_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
 
5132
    [Whether or not to add -lc for building shared libraries])
 
5133
_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
 
5134
    [enable_shared_with_static_runtimes], [0],
 
5135
    [Whether or not to disallow shared libs when runtime libs are static])
 
5136
_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
 
5137
    [Compiler flag to allow reflexive dlopens])
 
5138
_LT_TAGDECL([], [whole_archive_flag_spec], [1],
 
5139
    [Compiler flag to generate shared objects directly from archives])
 
5140
_LT_TAGDECL([], [compiler_needs_object], [1],
 
5141
    [Whether the compiler copes with passing no objects directly])
 
5142
_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
 
5143
    [Create an old-style archive from a shared archive])
 
5144
_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
 
5145
    [Create a temporary old-style archive to link instead of a shared archive])
 
5146
_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
 
5147
_LT_TAGDECL([], [archive_expsym_cmds], [2])
 
5148
_LT_TAGDECL([], [module_cmds], [2],
 
5149
    [Commands used to build a loadable module if different from building
 
5150
    a shared archive.])
 
5151
_LT_TAGDECL([], [module_expsym_cmds], [2])
 
5152
_LT_TAGDECL([], [with_gnu_ld], [1],
 
5153
    [Whether we are building with GNU ld or not])
 
5154
_LT_TAGDECL([], [allow_undefined_flag], [1],
 
5155
    [Flag that allows shared libraries with undefined symbols to be built])
 
5156
_LT_TAGDECL([], [no_undefined_flag], [1],
 
5157
    [Flag that enforces no undefined symbols])
 
5158
_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
 
5159
    [Flag to hardcode $libdir into a binary during linking.
 
5160
    This must work even if $libdir does not exist])
 
5161
_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
 
5162
    [[If ld is used when linking, flag to hardcode $libdir into a binary
 
5163
    during linking.  This must work even if $libdir does not exist]])
 
5164
_LT_TAGDECL([], [hardcode_libdir_separator], [1],
 
5165
    [Whether we need a single "-rpath" flag with a separated argument])
 
5166
_LT_TAGDECL([], [hardcode_direct], [0],
 
5167
    [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
 
5168
    DIR into the resulting binary])
 
5169
_LT_TAGDECL([], [hardcode_direct_absolute], [0],
 
5170
    [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
 
5171
    DIR into the resulting binary and the resulting library dependency is
 
5172
    "absolute", i.e impossible to change by setting ${shlibpath_var} if the
 
5173
    library is relocated])
 
5174
_LT_TAGDECL([], [hardcode_minus_L], [0],
 
5175
    [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 
5176
    into the resulting binary])
 
5177
_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
 
5178
    [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 
5179
    into the resulting binary])
 
5180
_LT_TAGDECL([], [hardcode_automatic], [0],
 
5181
    [Set to "yes" if building a shared library automatically hardcodes DIR
 
5182
    into the library and all subsequent libraries and executables linked
 
5183
    against it])
 
5184
_LT_TAGDECL([], [inherit_rpath], [0],
 
5185
    [Set to yes if linker adds runtime paths of dependent libraries
 
5186
    to runtime path list])
 
5187
_LT_TAGDECL([], [link_all_deplibs], [0],
 
5188
    [Whether libtool must link a program against all its dependency libraries])
 
5189
_LT_TAGDECL([], [fix_srcfile_path], [1],
 
5190
    [Fix the shell variable $srcfile for the compiler])
 
5191
_LT_TAGDECL([], [always_export_symbols], [0],
 
5192
    [Set to "yes" if exported symbols are required])
 
5193
_LT_TAGDECL([], [export_symbols_cmds], [2],
 
5194
    [The commands to list exported symbols])
 
5195
_LT_TAGDECL([], [exclude_expsyms], [1],
 
5196
    [Symbols that should not be listed in the preloaded symbols])
 
5197
_LT_TAGDECL([], [include_expsyms], [1],
 
5198
    [Symbols that must always be exported])
 
5199
_LT_TAGDECL([], [prelink_cmds], [2],
 
5200
    [Commands necessary for linking programs (against libraries) with templates])
 
5201
_LT_TAGDECL([], [file_list_spec], [1],
 
5202
    [Specify filename containing input files])
 
5203
dnl FIXME: Not yet implemented
 
5204
dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
 
5205
dnl    [Compiler flag to generate thread safe objects])
 
5206
])# _LT_LINKER_SHLIBS
 
5207
 
 
5208
 
 
5209
# _LT_LANG_C_CONFIG([TAG])
 
5210
# ------------------------
 
5211
# Ensure that the configuration variables for a C compiler are suitably
 
5212
# defined.  These variables are subsequently used by _LT_CONFIG to write
 
5213
# the compiler configuration to `libtool'.
 
5214
m4_defun([_LT_LANG_C_CONFIG],
 
5215
[m4_require([_LT_DECL_EGREP])dnl
 
5216
lt_save_CC="$CC"
 
5217
AC_LANG_PUSH(C)
 
5218
 
 
5219
# Source file extension for C test sources.
 
5220
ac_ext=c
 
5221
 
 
5222
# Object file extension for compiled C test sources.
 
5223
objext=o
 
5224
_LT_TAGVAR(objext, $1)=$objext
 
5225
 
 
5226
# Code to be used in simple compile tests
 
5227
lt_simple_compile_test_code="int some_variable = 0;"
 
5228
 
 
5229
# Code to be used in simple link tests
 
5230
lt_simple_link_test_code='int main(){return(0);}'
 
5231
 
 
5232
_LT_TAG_COMPILER
 
5233
# Save the default compiler, since it gets overwritten when the other
 
5234
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
 
5235
compiler_DEFAULT=$CC
 
5236
 
 
5237
# save warnings/boilerplate of simple test code
 
5238
_LT_COMPILER_BOILERPLATE
 
5239
_LT_LINKER_BOILERPLATE
 
5240
 
 
5241
## CAVEAT EMPTOR:
 
5242
## There is no encapsulation within the following macros, do not change
 
5243
## the running order or otherwise move them around unless you know exactly
 
5244
## what you are doing...
 
5245
if test -n "$compiler"; then
 
5246
  _LT_COMPILER_NO_RTTI($1)
 
5247
  _LT_COMPILER_PIC($1)
 
5248
  _LT_COMPILER_C_O($1)
 
5249
  _LT_COMPILER_FILE_LOCKS($1)
 
5250
  _LT_LINKER_SHLIBS($1)
 
5251
  _LT_SYS_DYNAMIC_LINKER($1)
 
5252
  _LT_LINKER_HARDCODE_LIBPATH($1)
 
5253
  LT_SYS_DLOPEN_SELF
 
5254
  _LT_CMD_STRIPLIB
 
5255
 
 
5256
  # Report which library types will actually be built
 
5257
  AC_MSG_CHECKING([if libtool supports shared libraries])
 
5258
  AC_MSG_RESULT([$can_build_shared])
 
5259
 
 
5260
  AC_MSG_CHECKING([whether to build shared libraries])
 
5261
  test "$can_build_shared" = "no" && enable_shared=no
 
5262
 
 
5263
  # On AIX, shared libraries and static libraries use the same namespace, and
 
5264
  # are all built from PIC.
 
5265
  case $host_os in
 
5266
  aix3*)
 
5267
    test "$enable_shared" = yes && enable_static=no
 
5268
    if test -n "$RANLIB"; then
 
5269
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
5270
      postinstall_cmds='$RANLIB $lib'
 
5271
    fi
 
5272
    ;;
 
5273
 
 
5274
  aix[[4-9]]*)
 
5275
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
5276
      test "$enable_shared" = yes && enable_static=no
 
5277
    fi
 
5278
    ;;
 
5279
  esac
 
5280
  AC_MSG_RESULT([$enable_shared])
 
5281
 
 
5282
  AC_MSG_CHECKING([whether to build static libraries])
 
5283
  # Make sure either enable_shared or enable_static is yes.
 
5284
  test "$enable_shared" = yes || enable_static=yes
 
5285
  AC_MSG_RESULT([$enable_static])
 
5286
 
 
5287
  _LT_CONFIG($1)
 
5288
fi
 
5289
AC_LANG_POP
 
5290
CC="$lt_save_CC"
 
5291
])# _LT_LANG_C_CONFIG
 
5292
 
 
5293
 
 
5294
# _LT_PROG_CXX
 
5295
# ------------
 
5296
# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
 
5297
# compiler, we have our own version here.
 
5298
m4_defun([_LT_PROG_CXX],
 
5299
[
 
5300
pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
 
5301
AC_PROG_CXX
 
5302
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
5303
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
5304
    (test "X$CXX" != "Xg++"))) ; then
 
5305
  AC_PROG_CXXCPP
 
5306
else
 
5307
  _lt_caught_CXX_error=yes
 
5308
fi
 
5309
popdef([AC_MSG_ERROR])
 
5310
])# _LT_PROG_CXX
 
5311
 
 
5312
dnl aclocal-1.4 backwards compatibility:
 
5313
dnl AC_DEFUN([_LT_PROG_CXX], [])
 
5314
 
 
5315
 
 
5316
# _LT_LANG_CXX_CONFIG([TAG])
 
5317
# --------------------------
 
5318
# Ensure that the configuration variables for a C++ compiler are suitably
 
5319
# defined.  These variables are subsequently used by _LT_CONFIG to write
 
5320
# the compiler configuration to `libtool'.
 
5321
m4_defun([_LT_LANG_CXX_CONFIG],
 
5322
[AC_REQUIRE([_LT_PROG_CXX])dnl
 
5323
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
5324
m4_require([_LT_DECL_EGREP])dnl
 
5325
 
 
5326
AC_LANG_PUSH(C++)
 
5327
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
5328
_LT_TAGVAR(allow_undefined_flag, $1)=
 
5329
_LT_TAGVAR(always_export_symbols, $1)=no
 
5330
_LT_TAGVAR(archive_expsym_cmds, $1)=
 
5331
_LT_TAGVAR(compiler_needs_object, $1)=no
 
5332
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
 
5333
_LT_TAGVAR(hardcode_direct, $1)=no
 
5334
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
 
5335
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
5336
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 
5337
_LT_TAGVAR(hardcode_libdir_separator, $1)=
 
5338
_LT_TAGVAR(hardcode_minus_L, $1)=no
 
5339
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
5340
_LT_TAGVAR(hardcode_automatic, $1)=no
 
5341
_LT_TAGVAR(inherit_rpath, $1)=no
 
5342
_LT_TAGVAR(module_cmds, $1)=
 
5343
_LT_TAGVAR(module_expsym_cmds, $1)=
 
5344
_LT_TAGVAR(link_all_deplibs, $1)=unknown
 
5345
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
5346
_LT_TAGVAR(no_undefined_flag, $1)=
 
5347
_LT_TAGVAR(whole_archive_flag_spec, $1)=
 
5348
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 
5349
 
 
5350
# Source file extension for C++ test sources.
 
5351
ac_ext=cpp
 
5352
 
 
5353
# Object file extension for compiled C++ test sources.
 
5354
objext=o
 
5355
_LT_TAGVAR(objext, $1)=$objext
 
5356
 
 
5357
# No sense in running all these tests if we already determined that
 
5358
# the CXX compiler isn't working.  Some variables (like enable_shared)
 
5359
# are currently assumed to apply to all compilers on this platform,
 
5360
# and will be corrupted by setting them based on a non-working compiler.
 
5361
if test "$_lt_caught_CXX_error" != yes; then
 
5362
  # Code to be used in simple compile tests
 
5363
  lt_simple_compile_test_code="int some_variable = 0;"
 
5364
 
 
5365
  # Code to be used in simple link tests
 
5366
  lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
 
5367
 
 
5368
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
5369
  _LT_TAG_COMPILER
 
5370
 
 
5371
  # save warnings/boilerplate of simple test code
 
5372
  _LT_COMPILER_BOILERPLATE
 
5373
  _LT_LINKER_BOILERPLATE
 
5374
 
 
5375
  # Allow CC to be a program name with arguments.
 
5376
  lt_save_CC=$CC
 
5377
  lt_save_LD=$LD
 
5378
  lt_save_GCC=$GCC
 
5379
  GCC=$GXX
 
5380
  lt_save_with_gnu_ld=$with_gnu_ld
 
5381
  lt_save_path_LD=$lt_cv_path_LD
 
5382
  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
5383
    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
5384
  else
 
5385
    $as_unset lt_cv_prog_gnu_ld
 
5386
  fi
 
5387
  if test -n "${lt_cv_path_LDCXX+set}"; then
 
5388
    lt_cv_path_LD=$lt_cv_path_LDCXX
 
5389
  else
 
5390
    $as_unset lt_cv_path_LD
 
5391
  fi
 
5392
  test -z "${LDCXX+set}" || LD=$LDCXX
 
5393
  CC=${CXX-"c++"}
 
5394
  compiler=$CC
 
5395
  _LT_TAGVAR(compiler, $1)=$CC
 
5396
  _LT_CC_BASENAME([$compiler])
 
5397
 
 
5398
  if test -n "$compiler"; then
 
5399
    # We don't want -fno-exception when compiling C++ code, so set the
 
5400
    # no_builtin_flag separately
 
5401
    if test "$GXX" = yes; then
 
5402
      _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
 
5403
    else
 
5404
      _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
 
5405
    fi
 
5406
 
 
5407
    if test "$GXX" = yes; then
 
5408
      # Set up default GNU C++ configuration
 
5409
 
 
5410
      LT_PATH_LD
 
5411
 
 
5412
      # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
5413
      # archiving commands below assume that GNU ld is being used.
 
5414
      if test "$with_gnu_ld" = yes; then
 
5415
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5416
        _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'
 
5417
 
 
5418
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
5419
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
5420
 
 
5421
        # If archive_cmds runs LD, not CC, wlarc should be empty
 
5422
        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
5423
        #     investigate it a little bit more. (MM)
 
5424
        wlarc='${wl}'
 
5425
 
 
5426
        # ancient GNU ld didn't support --whole-archive et. al.
 
5427
        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
 
5428
          $GREP 'no-whole-archive' > /dev/null; then
 
5429
          _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
5430
        else
 
5431
          _LT_TAGVAR(whole_archive_flag_spec, $1)=
 
5432
        fi
 
5433
      else
 
5434
        with_gnu_ld=no
 
5435
        wlarc=
 
5436
 
 
5437
        # A generic and very simple default shared library creation
 
5438
        # command for GNU C++ for the case where it uses the native
 
5439
        # linker, instead of GNU ld.  If possible, this setting should
 
5440
        # overridden to take advantage of the native linker features on
 
5441
        # the platform it is being used on.
 
5442
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
5443
      fi
 
5444
 
 
5445
      # Commands to make compiler produce verbose output that lists
 
5446
      # what "hidden" libraries, object files and flags are used when
 
5447
      # linking a shared library.
 
5448
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
5449
 
 
5450
    else
 
5451
      GXX=no
 
5452
      with_gnu_ld=no
 
5453
      wlarc=
 
5454
    fi
 
5455
 
 
5456
    # PORTME: fill in a description of your system's C++ link characteristics
 
5457
    AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
 
5458
    _LT_TAGVAR(ld_shlibs, $1)=yes
 
5459
    case $host_os in
 
5460
      aix3*)
 
5461
        # FIXME: insert proper C++ library support
 
5462
        _LT_TAGVAR(ld_shlibs, $1)=no
 
5463
        ;;
 
5464
      aix[[4-9]]*)
 
5465
        if test "$host_cpu" = ia64; then
 
5466
          # On IA64, the linker does run time linking by default, so we don't
 
5467
          # have to do anything special.
 
5468
          aix_use_runtimelinking=no
 
5469
          exp_sym_flag='-Bexport'
 
5470
          no_entry_flag=""
 
5471
        else
 
5472
          aix_use_runtimelinking=no
 
5473
 
 
5474
          # Test if we are trying to use run time linking or normal
 
5475
          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
5476
          # need to do runtime linking.
 
5477
          case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
 
5478
            for ld_flag in $LDFLAGS; do
 
5479
              case $ld_flag in
 
5480
              *-brtl*)
 
5481
                aix_use_runtimelinking=yes
 
5482
                break
 
5483
                ;;
 
5484
              esac
 
5485
            done
 
5486
            ;;
 
5487
          esac
 
5488
 
 
5489
          exp_sym_flag='-bexport'
 
5490
          no_entry_flag='-bnoentry'
 
5491
        fi
 
5492
 
 
5493
        # When large executables or shared objects are built, AIX ld can
 
5494
        # have problems creating the table of contents.  If linking a library
 
5495
        # or program results in "error TOC overflow" add -mminimal-toc to
 
5496
        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
5497
        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
5498
 
 
5499
        _LT_TAGVAR(archive_cmds, $1)=''
 
5500
        _LT_TAGVAR(hardcode_direct, $1)=yes
 
5501
        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
5502
        _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
 
5503
        _LT_TAGVAR(link_all_deplibs, $1)=yes
 
5504
        _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
 
5505
 
 
5506
        if test "$GXX" = yes; then
 
5507
          case $host_os in aix4.[[012]]|aix4.[[012]].*)
 
5508
          # We only want to do this on AIX 4.2 and lower, the check
 
5509
          # below for broken collect2 doesn't work under 4.3+
 
5510
          collect2name=`${CC} -print-prog-name=collect2`
 
5511
          if test -f "$collect2name" &&
 
5512
             strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 
5513
          then
 
5514
            # We have reworked collect2
 
5515
            :
 
5516
          else
 
5517
            # We have old collect2
 
5518
            _LT_TAGVAR(hardcode_direct, $1)=unsupported
 
5519
            # It fails to find uninstalled libraries when the uninstalled
 
5520
            # path is not listed in the libpath.  Setting hardcode_minus_L
 
5521
            # to unsupported forces relinking
 
5522
            _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
5523
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
5524
            _LT_TAGVAR(hardcode_libdir_separator, $1)=
 
5525
          fi
 
5526
          esac
 
5527
          shared_flag='-shared'
 
5528
          if test "$aix_use_runtimelinking" = yes; then
 
5529
            shared_flag="$shared_flag "'${wl}-G'
 
5530
          fi
 
5531
        else
 
5532
          # not using gcc
 
5533
          if test "$host_cpu" = ia64; then
 
5534
          # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
5535
          # chokes on -Wl,-G. The following line is correct:
 
5536
          shared_flag='-G'
 
5537
          else
 
5538
            if test "$aix_use_runtimelinking" = yes; then
 
5539
              shared_flag='${wl}-G'
 
5540
            else
 
5541
              shared_flag='${wl}-bM:SRE'
 
5542
            fi
 
5543
          fi
 
5544
        fi
 
5545
 
 
5546
        # It seems that -bexpall does not export symbols beginning with
 
5547
        # underscore (_), so it is better to generate a list of symbols to
 
5548
        # export.
 
5549
        _LT_TAGVAR(always_export_symbols, $1)=yes
 
5550
        if test "$aix_use_runtimelinking" = yes; then
 
5551
          # Warning - without using the other runtime loading flags (-brtl),
 
5552
          # -berok will link without error, but may produce a broken library.
 
5553
          _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
 
5554
          # Determine the default libpath from the value encoded in an empty
 
5555
          # executable.
 
5556
          _LT_SYS_MODULE_PATH_AIX
 
5557
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
5558
 
 
5559
          _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"
 
5560
        else
 
5561
          if test "$host_cpu" = ia64; then
 
5562
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
 
5563
            _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
 
5564
            _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"
 
5565
          else
 
5566
            # Determine the default libpath from the value encoded in an
 
5567
            # empty executable.
 
5568
            _LT_SYS_MODULE_PATH_AIX
 
5569
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
5570
            # Warning - without using the other run time loading flags,
 
5571
            # -berok will link without error, but may produce a broken library.
 
5572
            _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
 
5573
            _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
 
5574
            # Exported symbols can be pulled into shared objects from archives
 
5575
            _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
5576
            _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
 
5577
            # This is similar to how AIX traditionally builds its shared
 
5578
            # libraries.
 
5579
            _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'
 
5580
          fi
 
5581
        fi
 
5582
        ;;
 
5583
 
 
5584
      beos*)
 
5585
        if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
5586
          _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
5587
          # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
5588
          # support --undefined.  This deserves some investigation.  FIXME
 
5589
          _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5590
        else
 
5591
          _LT_TAGVAR(ld_shlibs, $1)=no
 
5592
        fi
 
5593
        ;;
 
5594
 
 
5595
      chorus*)
 
5596
        case $cc_basename in
 
5597
          *)
 
5598
          # FIXME: insert proper C++ library support
 
5599
          _LT_TAGVAR(ld_shlibs, $1)=no
 
5600
          ;;
 
5601
        esac
 
5602
        ;;
 
5603
 
 
5604
      cygwin* | mingw* | pw32*)
 
5605
        # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
 
5606
        # as there is no search path for DLLs.
 
5607
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
5608
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
5609
        _LT_TAGVAR(always_export_symbols, $1)=no
 
5610
        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
5611
 
 
5612
        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
5613
          _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'
 
5614
          # If the export-symbols file already is a .def file (1st line
 
5615
          # is EXPORTS), use it as is; otherwise, prepend...
 
5616
          _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
5617
            cp $export_symbols $output_objdir/$soname.def;
 
5618
          else
 
5619
            echo EXPORTS > $output_objdir/$soname.def;
 
5620
            cat $export_symbols >> $output_objdir/$soname.def;
 
5621
          fi~
 
5622
          $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'
 
5623
        else
 
5624
          _LT_TAGVAR(ld_shlibs, $1)=no
 
5625
        fi
 
5626
        ;;
 
5627
      darwin* | rhapsody*)
 
5628
        _LT_DARWIN_LINKER_FEATURES($1)
 
5629
        ;;
 
5630
 
 
5631
      dgux*)
 
5632
        case $cc_basename in
 
5633
          ec++*)
 
5634
            # FIXME: insert proper C++ library support
 
5635
            _LT_TAGVAR(ld_shlibs, $1)=no
 
5636
            ;;
 
5637
          ghcx*)
 
5638
            # Green Hills C++ Compiler
 
5639
            # FIXME: insert proper C++ library support
 
5640
            _LT_TAGVAR(ld_shlibs, $1)=no
 
5641
            ;;
 
5642
          *)
 
5643
            # FIXME: insert proper C++ library support
 
5644
            _LT_TAGVAR(ld_shlibs, $1)=no
 
5645
            ;;
 
5646
        esac
 
5647
        ;;
 
5648
 
 
5649
      freebsd[[12]]*)
 
5650
        # C++ shared libraries reported to be fairly broken before
 
5651
        # switch to ELF
 
5652
        _LT_TAGVAR(ld_shlibs, $1)=no
 
5653
        ;;
 
5654
 
 
5655
      freebsd-elf*)
 
5656
        _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
5657
        ;;
 
5658
 
 
5659
      freebsd* | dragonfly*)
 
5660
        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
5661
        # conventions
 
5662
        _LT_TAGVAR(ld_shlibs, $1)=yes
 
5663
        ;;
 
5664
 
 
5665
      gnu*)
 
5666
        ;;
 
5667
 
 
5668
      hpux9*)
 
5669
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
5670
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
5671
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
5672
        _LT_TAGVAR(hardcode_direct, $1)=yes
 
5673
        _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
 
5674
                                             # but as the default
 
5675
                                             # location of the library.
 
5676
 
 
5677
        case $cc_basename in
 
5678
          CC*)
 
5679
            # FIXME: insert proper C++ library support
 
5680
            _LT_TAGVAR(ld_shlibs, $1)=no
 
5681
            ;;
 
5682
          aCC*)
 
5683
            _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'
 
5684
            # Commands to make compiler produce verbose output that lists
 
5685
            # what "hidden" libraries, object files and flags are used when
 
5686
            # linking a shared library.
 
5687
            #
 
5688
            # There doesn't appear to be a way to prevent this compiler from
 
5689
            # explicitly linking system object files so we need to strip them
 
5690
            # from the output so that they don't get included in the library
 
5691
            # dependencies.
 
5692
            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'
 
5693
            ;;
 
5694
          *)
 
5695
            if test "$GXX" = yes; then
 
5696
              _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'
 
5697
            else
 
5698
              # FIXME: insert proper C++ library support
 
5699
              _LT_TAGVAR(ld_shlibs, $1)=no
 
5700
            fi
 
5701
            ;;
 
5702
        esac
 
5703
        ;;
 
5704
 
 
5705
      hpux10*|hpux11*)
 
5706
        if test $with_gnu_ld = no; then
 
5707
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
5708
          _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
5709
 
 
5710
          case $host_cpu in
 
5711
            hppa*64*|ia64*)
 
5712
              ;;
 
5713
            *)
 
5714
              _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
5715
              ;;
 
5716
          esac
 
5717
        fi
 
5718
        case $host_cpu in
 
5719
          hppa*64*|ia64*)
 
5720
            _LT_TAGVAR(hardcode_direct, $1)=no
 
5721
            _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5722
            ;;
 
5723
          *)
 
5724
            _LT_TAGVAR(hardcode_direct, $1)=yes
 
5725
            _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
5726
            _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
 
5727
                                                 # but as the default
 
5728
                                                 # location of the library.
 
5729
            ;;
 
5730
        esac
 
5731
 
 
5732
        case $cc_basename in
 
5733
          CC*)
 
5734
            # FIXME: insert proper C++ library support
 
5735
            _LT_TAGVAR(ld_shlibs, $1)=no
 
5736
            ;;
 
5737
          aCC*)
 
5738
            case $host_cpu in
 
5739
              hppa*64*)
 
5740
                _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
5741
                ;;
 
5742
              ia64*)
 
5743
                _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
5744
                ;;
 
5745
              *)
 
5746
                _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'
 
5747
                ;;
 
5748
            esac
 
5749
            # Commands to make compiler produce verbose output that lists
 
5750
            # what "hidden" libraries, object files and flags are used when
 
5751
            # linking a shared library.
 
5752
            #
 
5753
            # There doesn't appear to be a way to prevent this compiler from
 
5754
            # explicitly linking system object files so we need to strip them
 
5755
            # from the output so that they don't get included in the library
 
5756
            # dependencies.
 
5757
            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'
 
5758
            ;;
 
5759
          *)
 
5760
            if test "$GXX" = yes; then
 
5761
              if test $with_gnu_ld = no; then
 
5762
                case $host_cpu in
 
5763
                  hppa*64*)
 
5764
                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
5765
                    ;;
 
5766
                  ia64*)
 
5767
                    _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'
 
5768
                    ;;
 
5769
                  *)
 
5770
                    _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'
 
5771
                    ;;
 
5772
                esac
 
5773
              fi
 
5774
            else
 
5775
              # FIXME: insert proper C++ library support
 
5776
              _LT_TAGVAR(ld_shlibs, $1)=no
 
5777
            fi
 
5778
            ;;
 
5779
        esac
 
5780
        ;;
 
5781
 
 
5782
      interix[[3-9]]*)
 
5783
        _LT_TAGVAR(hardcode_direct, $1)=no
 
5784
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5785
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
5786
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
5787
        # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
5788
        # Instead, shared libraries are loaded at an image base (0x10000000 by
 
5789
        # default) and relocated if they conflict, which is a slow very memory
 
5790
        # consuming and fragmenting process.  To avoid this, we pick a random,
 
5791
        # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
5792
        # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
5793
        _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'
 
5794
        _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'
 
5795
        ;;
 
5796
      irix5* | irix6*)
 
5797
        case $cc_basename in
 
5798
          CC*)
 
5799
            # SGI C++
 
5800
            _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'
 
5801
 
 
5802
            # Archives containing C++ object files must be created using
 
5803
            # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
5804
            # necessary to make sure instantiated templates are included
 
5805
            # in the archive.
 
5806
            _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
5807
            ;;
 
5808
          *)
 
5809
            if test "$GXX" = yes; then
 
5810
              if test "$with_gnu_ld" = no; then
 
5811
                _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'
 
5812
              else
 
5813
                _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'
 
5814
              fi
 
5815
            fi
 
5816
            _LT_TAGVAR(link_all_deplibs, $1)=yes
 
5817
            ;;
 
5818
        esac
 
5819
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
5820
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
5821
        _LT_TAGVAR(inherit_rpath, $1)=yes
 
5822
        ;;
 
5823
 
 
5824
      linux* | k*bsd*-gnu)
 
5825
        case $cc_basename in
 
5826
          KCC*)
 
5827
            # Kuck and Associates, Inc. (KAI) C++ Compiler
 
5828
 
 
5829
            # KCC will only create a shared library if the output file
 
5830
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
5831
            # to its proper name (with version) after linking.
 
5832
            _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'
 
5833
            _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'
 
5834
            # Commands to make compiler produce verbose output that lists
 
5835
            # what "hidden" libraries, object files and flags are used when
 
5836
            # linking a shared library.
 
5837
            #
 
5838
            # There doesn't appear to be a way to prevent this compiler from
 
5839
            # explicitly linking system object files so we need to strip them
 
5840
            # from the output so that they don't get included in the library
 
5841
            # dependencies.
 
5842
            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'
 
5843
 
 
5844
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
5845
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
5846
 
 
5847
            # Archives containing C++ object files must be created using
 
5848
            # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
5849
            _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
 
5850
            ;;
 
5851
          icpc* | ecpc* )
 
5852
            # Intel C++
 
5853
            with_gnu_ld=yes
 
5854
            # version 8.0 and above of icpc choke on multiply defined symbols
 
5855
            # if we add $predep_objects and $postdep_objects, however 7.1 and
 
5856
            # earlier do not add the objects themselves.
 
5857
            case `$CC -V 2>&1` in
 
5858
              *"Version 7."*)
 
5859
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5860
                _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'
 
5861
                ;;
 
5862
              *)  # Version 8.0 or newer
 
5863
                tmp_idyn=
 
5864
                case $host_cpu in
 
5865
                  ia64*) tmp_idyn=' -i_dynamic';;
 
5866
                esac
 
5867
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5868
                _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'
 
5869
                ;;
 
5870
            esac
 
5871
            _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
5872
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
5873
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
5874
            _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
5875
            ;;
 
5876
          pgCC* | pgcpp*)
 
5877
            # Portland Group C++ compiler
 
5878
            case `$CC -V` in
 
5879
            *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
 
5880
              _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
 
5881
                rm -rf $tpldir~
 
5882
                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
 
5883
                compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
 
5884
              _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
 
5885
                rm -rf $tpldir~
 
5886
                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
 
5887
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
 
5888
                $RANLIB $oldlib'
 
5889
              _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
 
5890
                rm -rf $tpldir~
 
5891
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
 
5892
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
5893
              _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
 
5894
                rm -rf $tpldir~
 
5895
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
 
5896
                $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'
 
5897
              ;;
 
5898
            *) # Version 6 will use weak symbols
 
5899
              _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
5900
              _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'
 
5901
              ;;
 
5902
            esac
 
5903
 
 
5904
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
 
5905
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
5906
            _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'
 
5907
            ;;
 
5908
          cxx*)
 
5909
            # Compaq C++
 
5910
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5911
            _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'
 
5912
 
 
5913
            runpath_var=LD_RUN_PATH
 
5914
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
 
5915
            _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
5916
 
 
5917
            # Commands to make compiler produce verbose output that lists
 
5918
            # what "hidden" libraries, object files and flags are used when
 
5919
            # linking a shared library.
 
5920
            #
 
5921
            # There doesn't appear to be a way to prevent this compiler from
 
5922
            # explicitly linking system object files so we need to strip them
 
5923
            # from the output so that they don't get included in the library
 
5924
            # dependencies.
 
5925
            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'
 
5926
            ;;
 
5927
          xl*)
 
5928
            # IBM XL 8.0 on PPC, with GNU ld
 
5929
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
5930
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
5931
            _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5932
            if test "x$supports_anon_versioning" = xyes; then
 
5933
              _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
 
5934
                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
5935
                echo "local: *; };" >> $output_objdir/$libname.ver~
 
5936
                $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
5937
            fi
 
5938
            ;;
 
5939
          *)
 
5940
            case `$CC -V 2>&1 | sed 5q` in
 
5941
            *Sun\ C*)
 
5942
              # Sun C++ 5.9
 
5943
              _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
 
5944
              _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
5945
              _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'
 
5946
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
5947
              _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'
 
5948
              _LT_TAGVAR(compiler_needs_object, $1)=yes
 
5949
 
 
5950
              # Not sure whether something based on
 
5951
              # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 
5952
              # would be better.
 
5953
              output_verbose_link_cmd='echo'
 
5954
 
 
5955
              # Archives containing C++ object files must be created using
 
5956
              # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
5957
              # necessary to make sure instantiated templates are included
 
5958
              # in the archive.
 
5959
              _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
 
5960
              ;;
 
5961
            esac
 
5962
            ;;
 
5963
        esac
 
5964
        ;;
 
5965
 
 
5966
      lynxos*)
 
5967
        # FIXME: insert proper C++ library support
 
5968
        _LT_TAGVAR(ld_shlibs, $1)=no
 
5969
        ;;
 
5970
 
 
5971
      m88k*)
 
5972
        # FIXME: insert proper C++ library support
 
5973
        _LT_TAGVAR(ld_shlibs, $1)=no
 
5974
        ;;
 
5975
 
 
5976
      mvs*)
 
5977
        case $cc_basename in
 
5978
          cxx*)
 
5979
            # FIXME: insert proper C++ library support
 
5980
            _LT_TAGVAR(ld_shlibs, $1)=no
 
5981
            ;;
 
5982
          *)
 
5983
            # FIXME: insert proper C++ library support
 
5984
            _LT_TAGVAR(ld_shlibs, $1)=no
 
5985
            ;;
 
5986
        esac
 
5987
        ;;
 
5988
 
 
5989
      netbsd*)
 
5990
        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
5991
          _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
5992
          wlarc=
 
5993
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
5994
          _LT_TAGVAR(hardcode_direct, $1)=yes
 
5995
          _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5996
        fi
 
5997
        # Workaround some broken pre-1.5 toolchains
 
5998
        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
5999
        ;;
 
6000
 
 
6001
      *nto* | *qnx*)
 
6002
        _LT_TAGVAR(ld_shlibs, $1)=yes
 
6003
        ;;
 
6004
 
 
6005
      openbsd2*)
 
6006
        # C++ shared libraries are fairly broken
 
6007
        _LT_TAGVAR(ld_shlibs, $1)=no
 
6008
        ;;
 
6009
 
 
6010
      openbsd*)
 
6011
        if test -f /usr/libexec/ld.so; then
 
6012
          _LT_TAGVAR(hardcode_direct, $1)=yes
 
6013
          _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6014
          _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
6015
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
6016
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6017
          if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
6018
            _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'
 
6019
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6020
            _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
6021
          fi
 
6022
          output_verbose_link_cmd=echo
 
6023
        else
 
6024
          _LT_TAGVAR(ld_shlibs, $1)=no
 
6025
        fi
 
6026
        ;;
 
6027
 
 
6028
      osf3* | osf4* | osf5*)
 
6029
        case $cc_basename in
 
6030
          KCC*)
 
6031
            # Kuck and Associates, Inc. (KAI) C++ Compiler
 
6032
 
 
6033
            # KCC will only create a shared library if the output file
 
6034
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
6035
            # to its proper name (with version) after linking.
 
6036
            _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'
 
6037
 
 
6038
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6039
            _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
6040
 
 
6041
            # Archives containing C++ object files must be created using
 
6042
            # the KAI C++ compiler.
 
6043
            case $host in
 
6044
              osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
 
6045
              *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
 
6046
            esac
 
6047
            ;;
 
6048
          RCC*)
 
6049
            # Rational C++ 2.4.1
 
6050
            # FIXME: insert proper C++ library support
 
6051
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6052
            ;;
 
6053
          cxx*)
 
6054
            case $host in
 
6055
              osf3*)
 
6056
                _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
6057
                _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'
 
6058
                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
6059
                ;;
 
6060
              *)
 
6061
                _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
 
6062
                _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'
 
6063
                _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
6064
                  echo "-hidden">> $lib.exp~
 
6065
                  $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~
 
6066
                  $RM $lib.exp'
 
6067
                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
 
6068
                ;;
 
6069
            esac
 
6070
 
 
6071
            _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
6072
 
 
6073
            # Commands to make compiler produce verbose output that lists
 
6074
            # what "hidden" libraries, object files and flags are used when
 
6075
            # linking a shared library.
 
6076
            #
 
6077
            # There doesn't appear to be a way to prevent this compiler from
 
6078
            # explicitly linking system object files so we need to strip them
 
6079
            # from the output so that they don't get included in the library
 
6080
            # dependencies.
 
6081
            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'
 
6082
            ;;
 
6083
          *)
 
6084
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
6085
              _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
6086
              case $host in
 
6087
                osf3*)
 
6088
                  _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'
 
6089
                  ;;
 
6090
                *)
 
6091
                  _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'
 
6092
                  ;;
 
6093
              esac
 
6094
 
 
6095
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
6096
              _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
6097
 
 
6098
              # Commands to make compiler produce verbose output that lists
 
6099
              # what "hidden" libraries, object files and flags are used when
 
6100
              # linking a shared library.
 
6101
              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
6102
 
 
6103
            else
 
6104
              # FIXME: insert proper C++ library support
 
6105
              _LT_TAGVAR(ld_shlibs, $1)=no
 
6106
            fi
 
6107
            ;;
 
6108
        esac
 
6109
        ;;
 
6110
 
 
6111
      psos*)
 
6112
        # FIXME: insert proper C++ library support
 
6113
        _LT_TAGVAR(ld_shlibs, $1)=no
 
6114
        ;;
 
6115
 
 
6116
      sunos4*)
 
6117
        case $cc_basename in
 
6118
          CC*)
 
6119
            # Sun C++ 4.x
 
6120
            # FIXME: insert proper C++ library support
 
6121
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6122
            ;;
 
6123
          lcc*)
 
6124
            # Lucid
 
6125
            # FIXME: insert proper C++ library support
 
6126
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6127
            ;;
 
6128
          *)
 
6129
            # FIXME: insert proper C++ library support
 
6130
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6131
            ;;
 
6132
        esac
 
6133
        ;;
 
6134
 
 
6135
      solaris*)
 
6136
        case $cc_basename in
 
6137
          CC*)
 
6138
            # Sun C++ 4.2, 5.x and Centerline C++
 
6139
            _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
 
6140
            _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
 
6141
            _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
6142
            _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
6143
              $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'
 
6144
 
 
6145
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
6146
            _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6147
            case $host_os in
 
6148
              solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 
6149
              *)
 
6150
                # The compiler driver will combine and reorder linker options,
 
6151
                # but understands `-z linker_flag'.
 
6152
                # Supported since Solaris 2.6 (maybe 2.5.1?)
 
6153
                _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
 
6154
                ;;
 
6155
            esac
 
6156
            _LT_TAGVAR(link_all_deplibs, $1)=yes
 
6157
 
 
6158
            output_verbose_link_cmd='echo'
 
6159
 
 
6160
            # Archives containing C++ object files must be created using
 
6161
            # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
6162
            # necessary to make sure instantiated templates are included
 
6163
            # in the archive.
 
6164
            _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
 
6165
            ;;
 
6166
          gcx*)
 
6167
            # Green Hills C++ Compiler
 
6168
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
6169
 
 
6170
            # The C++ compiler must be used to create the archive.
 
6171
            _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
6172
            ;;
 
6173
          *)
 
6174
            # GNU C++ compiler with Solaris linker
 
6175
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
6176
              _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
 
6177
              if $CC --version | $GREP -v '^2\.7' > /dev/null; then
 
6178
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
6179
                _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
6180
                  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
6181
 
 
6182
                # Commands to make compiler produce verbose output that lists
 
6183
                # what "hidden" libraries, object files and flags are used when
 
6184
                # linking a shared library.
 
6185
                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
6186
              else
 
6187
                # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
6188
                # platform.
 
6189
                _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
6190
                _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
6191
                  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
6192
 
 
6193
                # Commands to make compiler produce verbose output that lists
 
6194
                # what "hidden" libraries, object files and flags are used when
 
6195
                # linking a shared library.
 
6196
                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
6197
              fi
 
6198
 
 
6199
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
 
6200
              case $host_os in
 
6201
                solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 
6202
                *)
 
6203
                  _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
6204
                  ;;
 
6205
              esac
 
6206
            fi
 
6207
            ;;
 
6208
        esac
 
6209
        ;;
 
6210
 
 
6211
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
 
6212
      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
6213
      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
6214
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6215
      runpath_var='LD_RUN_PATH'
 
6216
 
 
6217
      case $cc_basename in
 
6218
        CC*)
 
6219
          _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6220
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6221
          ;;
 
6222
        *)
 
6223
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6224
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6225
          ;;
 
6226
      esac
 
6227
      ;;
 
6228
 
 
6229
      sysv5* | sco3.2v5* | sco5v6*)
 
6230
        # Note: We can NOT use -z defs as we might desire, because we do not
 
6231
        # link with -lc, and that would cause any symbols used from libc to
 
6232
        # always be unresolved, which means just about no library would
 
6233
        # ever link correctly.  If we're not using GNU ld we use -z text
 
6234
        # though, which does catch some bad symbols but isn't as heavy-handed
 
6235
        # as -z defs.
 
6236
        _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
6237
        _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
 
6238
        _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
6239
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6240
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
 
6241
        _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
 
6242
        _LT_TAGVAR(link_all_deplibs, $1)=yes
 
6243
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
 
6244
        runpath_var='LD_RUN_PATH'
 
6245
 
 
6246
        case $cc_basename in
 
6247
          CC*)
 
6248
            _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6249
            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6250
            ;;
 
6251
          *)
 
6252
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6253
            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6254
            ;;
 
6255
        esac
 
6256
      ;;
 
6257
 
 
6258
      tandem*)
 
6259
        case $cc_basename in
 
6260
          NCC*)
 
6261
            # NonStop-UX NCC 3.20
 
6262
            # FIXME: insert proper C++ library support
 
6263
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6264
            ;;
 
6265
          *)
 
6266
            # FIXME: insert proper C++ library support
 
6267
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6268
            ;;
 
6269
        esac
 
6270
        ;;
 
6271
 
 
6272
      vxworks*)
 
6273
        # FIXME: insert proper C++ library support
 
6274
        _LT_TAGVAR(ld_shlibs, $1)=no
 
6275
        ;;
 
6276
 
 
6277
      *)
 
6278
        # FIXME: insert proper C++ library support
 
6279
        _LT_TAGVAR(ld_shlibs, $1)=no
 
6280
        ;;
 
6281
    esac
 
6282
 
 
6283
    AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
 
6284
    test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
 
6285
 
 
6286
    _LT_TAGVAR(GCC, $1)="$GXX"
 
6287
    _LT_TAGVAR(LD, $1)="$LD"
 
6288
 
 
6289
    ## CAVEAT EMPTOR:
 
6290
    ## There is no encapsulation within the following macros, do not change
 
6291
    ## the running order or otherwise move them around unless you know exactly
 
6292
    ## what you are doing...
 
6293
    _LT_SYS_HIDDEN_LIBDEPS($1)
 
6294
    _LT_COMPILER_PIC($1)
 
6295
    _LT_COMPILER_C_O($1)
 
6296
    _LT_COMPILER_FILE_LOCKS($1)
 
6297
    _LT_LINKER_SHLIBS($1)
 
6298
    _LT_SYS_DYNAMIC_LINKER($1)
 
6299
    _LT_LINKER_HARDCODE_LIBPATH($1)
 
6300
 
 
6301
    _LT_CONFIG($1)
 
6302
  fi # test -n "$compiler"
 
6303
 
 
6304
  CC=$lt_save_CC
 
6305
  LDCXX=$LD
 
6306
  LD=$lt_save_LD
 
6307
  GCC=$lt_save_GCC
 
6308
  with_gnu_ld=$lt_save_with_gnu_ld
 
6309
  lt_cv_path_LDCXX=$lt_cv_path_LD
 
6310
  lt_cv_path_LD=$lt_save_path_LD
 
6311
  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
6312
  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
6313
fi # test "$_lt_caught_CXX_error" != yes
 
6314
 
 
6315
AC_LANG_POP
 
6316
])# _LT_LANG_CXX_CONFIG
 
6317
 
 
6318
 
 
6319
# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
6559
6320
# ---------------------------------
6560
 
AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
6561
 
 
6562
 
 
6563
 
# old names
6564
 
AC_DEFUN([AM_PROG_LIBTOOL],   [AC_PROG_LIBTOOL])
6565
 
AC_DEFUN([AM_ENABLE_SHARED],  [AC_ENABLE_SHARED($@)])
6566
 
AC_DEFUN([AM_ENABLE_STATIC],  [AC_ENABLE_STATIC($@)])
6567
 
AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
6568
 
AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
6569
 
AC_DEFUN([AM_PROG_LD],        [AC_PROG_LD])
6570
 
AC_DEFUN([AM_PROG_NM],        [AC_PROG_NM])
6571
 
 
6572
 
# This is just to silence aclocal about the macro not being used
6573
 
ifelse([AC_DISABLE_FAST_INSTALL])
6574
 
 
6575
 
AC_DEFUN([LT_AC_PROG_GCJ],
6576
 
[AC_CHECK_TOOL(GCJ, gcj, no)
6577
 
  test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
6578
 
  AC_SUBST(GCJFLAGS)
6579
 
])
6580
 
 
6581
 
AC_DEFUN([LT_AC_PROG_RC],
6582
 
[AC_CHECK_TOOL(RC, windres, no)
6583
 
])
6584
 
 
6585
 
 
6586
 
# Cheap backport of AS_EXECUTABLE_P and required macros
6587
 
# from Autoconf 2.59; we should not use $as_executable_p directly.
6588
 
 
6589
 
# _AS_TEST_PREPARE
6590
 
# ----------------
6591
 
m4_ifndef([_AS_TEST_PREPARE],
6592
 
[m4_defun([_AS_TEST_PREPARE],
6593
 
[if test -x / >/dev/null 2>&1; then
6594
 
  as_executable_p='test -x'
 
6321
# Figure out "hidden" library dependencies from verbose
 
6322
# compiler output when linking a shared library.
 
6323
# Parse the compiler output and extract the necessary
 
6324
# objects, libraries and library flags.
 
6325
m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
 
6326
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
6327
# Dependencies to place before and after the object being linked:
 
6328
_LT_TAGVAR(predep_objects, $1)=
 
6329
_LT_TAGVAR(postdep_objects, $1)=
 
6330
_LT_TAGVAR(predeps, $1)=
 
6331
_LT_TAGVAR(postdeps, $1)=
 
6332
_LT_TAGVAR(compiler_lib_search_path, $1)=
 
6333
 
 
6334
dnl we can't use the lt_simple_compile_test_code here,
 
6335
dnl because it contains code intended for an executable,
 
6336
dnl not a library.  It's possible we should let each
 
6337
dnl tag define a new lt_????_link_test_code variable,
 
6338
dnl but it's only used here...
 
6339
m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
 
6340
int a;
 
6341
void foo (void) { a = 0; }
 
6342
_LT_EOF
 
6343
], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
 
6344
class Foo
 
6345
{
 
6346
public:
 
6347
  Foo (void) { a = 0; }
 
6348
private:
 
6349
  int a;
 
6350
};
 
6351
_LT_EOF
 
6352
], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
 
6353
      subroutine foo
 
6354
      implicit none
 
6355
      integer*4 a
 
6356
      a=0
 
6357
      return
 
6358
      end
 
6359
_LT_EOF
 
6360
], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
 
6361
      subroutine foo
 
6362
      implicit none
 
6363
      integer a
 
6364
      a=0
 
6365
      return
 
6366
      end
 
6367
_LT_EOF
 
6368
], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
 
6369
public class foo {
 
6370
  private int a;
 
6371
  public void bar (void) {
 
6372
    a = 0;
 
6373
  }
 
6374
};
 
6375
_LT_EOF
 
6376
])
 
6377
dnl Parse the compiler output and extract the necessary
 
6378
dnl objects, libraries and library flags.
 
6379
if AC_TRY_EVAL(ac_compile); then
 
6380
  # Parse the compiler output and extract the necessary
 
6381
  # objects, libraries and library flags.
 
6382
 
 
6383
  # Sentinel used to keep track of whether or not we are before
 
6384
  # the conftest object file.
 
6385
  pre_test_object_deps_done=no
 
6386
 
 
6387
  for p in `eval "$output_verbose_link_cmd"`; do
 
6388
    case $p in
 
6389
 
 
6390
    -L* | -R* | -l*)
 
6391
       # Some compilers place space between "-{L,R}" and the path.
 
6392
       # Remove the space.
 
6393
       if test $p = "-L" ||
 
6394
          test $p = "-R"; then
 
6395
         prev=$p
 
6396
         continue
 
6397
       else
 
6398
         prev=
 
6399
       fi
 
6400
 
 
6401
       if test "$pre_test_object_deps_done" = no; then
 
6402
         case $p in
 
6403
         -L* | -R*)
 
6404
           # Internal compiler library paths should come after those
 
6405
           # provided the user.  The postdeps already come after the
 
6406
           # user supplied libs so there is no need to process them.
 
6407
           if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
 
6408
             _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
 
6409
           else
 
6410
             _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
 
6411
           fi
 
6412
           ;;
 
6413
         # The "-l" case would never come before the object being
 
6414
         # linked, so don't bother handling this case.
 
6415
         esac
 
6416
       else
 
6417
         if test -z "$_LT_TAGVAR(postdeps, $1)"; then
 
6418
           _LT_TAGVAR(postdeps, $1)="${prev}${p}"
 
6419
         else
 
6420
           _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
 
6421
         fi
 
6422
       fi
 
6423
       ;;
 
6424
 
 
6425
    *.$objext)
 
6426
       # This assumes that the test object file only shows up
 
6427
       # once in the compiler output.
 
6428
       if test "$p" = "conftest.$objext"; then
 
6429
         pre_test_object_deps_done=yes
 
6430
         continue
 
6431
       fi
 
6432
 
 
6433
       if test "$pre_test_object_deps_done" = no; then
 
6434
         if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
 
6435
           _LT_TAGVAR(predep_objects, $1)="$p"
 
6436
         else
 
6437
           _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
 
6438
         fi
 
6439
       else
 
6440
         if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
 
6441
           _LT_TAGVAR(postdep_objects, $1)="$p"
 
6442
         else
 
6443
           _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
 
6444
         fi
 
6445
       fi
 
6446
       ;;
 
6447
 
 
6448
    *) ;; # Ignore the rest.
 
6449
 
 
6450
    esac
 
6451
  done
 
6452
 
 
6453
  # Clean up.
 
6454
  rm -f a.out a.exe
6595
6455
else
6596
 
  as_executable_p='test -f'
6597
 
fi
6598
 
])])# _AS_TEST_PREPARE
6599
 
 
6600
 
# AS_EXECUTABLE_P
6601
 
# ---------------
6602
 
# Check whether a file is executable.
6603
 
m4_ifndef([AS_EXECUTABLE_P],
6604
 
[m4_defun([AS_EXECUTABLE_P],
6605
 
[AS_REQUIRE([_AS_TEST_PREPARE])dnl
6606
 
$as_executable_p $1[]dnl
6607
 
])])# AS_EXECUTABLE_P
6608
 
 
 
6456
  echo "libtool.m4: error: problem compiling $1 test program"
 
6457
fi
 
6458
 
 
6459
$RM -f confest.$objext
 
6460
 
 
6461
# PORTME: override above test on systems where it is broken
 
6462
m4_if([$1], [CXX],
 
6463
[case $host_os in
 
6464
interix[[3-9]]*)
 
6465
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
6466
  # hack all around it, let's just trust "g++" to DTRT.
 
6467
  _LT_TAGVAR(predep_objects,$1)=
 
6468
  _LT_TAGVAR(postdep_objects,$1)=
 
6469
  _LT_TAGVAR(postdeps,$1)=
 
6470
  ;;
 
6471
 
 
6472
linux*)
 
6473
  case `$CC -V 2>&1 | sed 5q` in
 
6474
  *Sun\ C*)
 
6475
    # Sun C++ 5.9
 
6476
 
 
6477
    # The more standards-conforming stlport4 library is
 
6478
    # incompatible with the Cstd library. Avoid specifying
 
6479
    # it if it's in CXXFLAGS. Ignore libCrun as
 
6480
    # -library=stlport4 depends on it.
 
6481
    case " $CXX $CXXFLAGS " in
 
6482
    *" -library=stlport4 "*)
 
6483
      solaris_use_stlport4=yes
 
6484
      ;;
 
6485
    esac
 
6486
 
 
6487
    if test "$solaris_use_stlport4" != yes; then
 
6488
      _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
 
6489
    fi
 
6490
    ;;
 
6491
  esac
 
6492
  ;;
 
6493
 
 
6494
solaris*)
 
6495
  case $cc_basename in
 
6496
  CC*)
 
6497
    # The more standards-conforming stlport4 library is
 
6498
    # incompatible with the Cstd library. Avoid specifying
 
6499
    # it if it's in CXXFLAGS. Ignore libCrun as
 
6500
    # -library=stlport4 depends on it.
 
6501
    case " $CXX $CXXFLAGS " in
 
6502
    *" -library=stlport4 "*)
 
6503
      solaris_use_stlport4=yes
 
6504
      ;;
 
6505
    esac
 
6506
 
 
6507
    # Adding this requires a known-good setup of shared libraries for
 
6508
    # Sun compiler versions before 5.6, else PIC objects from an old
 
6509
    # archive will be linked into the output, leading to subtle bugs.
 
6510
    if test "$solaris_use_stlport4" != yes; then
 
6511
      _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
 
6512
    fi
 
6513
    ;;
 
6514
  esac
 
6515
  ;;
 
6516
esac
 
6517
])
 
6518
 
 
6519
case " $_LT_TAGVAR(postdeps, $1) " in
 
6520
*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
 
6521
esac
 
6522
 _LT_TAGVAR(compiler_lib_search_dirs, $1)=
 
6523
if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
 
6524
 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
 
6525
fi
 
6526
_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
 
6527
    [The directories searched by this compiler when creating a shared library])
 
6528
_LT_TAGDECL([], [predep_objects], [1],
 
6529
    [Dependencies to place before and after the objects being linked to
 
6530
    create a shared library])
 
6531
_LT_TAGDECL([], [postdep_objects], [1])
 
6532
_LT_TAGDECL([], [predeps], [1])
 
6533
_LT_TAGDECL([], [postdeps], [1])
 
6534
_LT_TAGDECL([], [compiler_lib_search_path], [1],
 
6535
    [The library search path used internally by the compiler when linking
 
6536
    a shared library])
 
6537
])# _LT_SYS_HIDDEN_LIBDEPS
 
6538
 
 
6539
 
 
6540
# _LT_PROG_F77
 
6541
# ------------
 
6542
# Since AC_PROG_F77 is broken, in that it returns the empty string
 
6543
# if there is no fortran compiler, we have our own version here.
 
6544
m4_defun([_LT_PROG_F77],
 
6545
[
 
6546
pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
 
6547
AC_PROG_F77
 
6548
if test -z "$F77" || test "X$F77" = "Xno"; then
 
6549
  _lt_disable_F77=yes
 
6550
fi
 
6551
popdef([AC_MSG_ERROR])
 
6552
])# _LT_PROG_F77
 
6553
 
 
6554
dnl aclocal-1.4 backwards compatibility:
 
6555
dnl AC_DEFUN([_LT_PROG_F77], [])
 
6556
 
 
6557
 
 
6558
# _LT_LANG_F77_CONFIG([TAG])
 
6559
# --------------------------
 
6560
# Ensure that the configuration variables for a Fortran 77 compiler are
 
6561
# suitably defined.  These variables are subsequently used by _LT_CONFIG
 
6562
# to write the compiler configuration to `libtool'.
 
6563
m4_defun([_LT_LANG_F77_CONFIG],
 
6564
[AC_REQUIRE([_LT_PROG_F77])dnl
 
6565
AC_LANG_PUSH(Fortran 77)
 
6566
 
 
6567
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
6568
_LT_TAGVAR(allow_undefined_flag, $1)=
 
6569
_LT_TAGVAR(always_export_symbols, $1)=no
 
6570
_LT_TAGVAR(archive_expsym_cmds, $1)=
 
6571
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
 
6572
_LT_TAGVAR(hardcode_direct, $1)=no
 
6573
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
 
6574
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
6575
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 
6576
_LT_TAGVAR(hardcode_libdir_separator, $1)=
 
6577
_LT_TAGVAR(hardcode_minus_L, $1)=no
 
6578
_LT_TAGVAR(hardcode_automatic, $1)=no
 
6579
_LT_TAGVAR(inherit_rpath, $1)=no
 
6580
_LT_TAGVAR(module_cmds, $1)=
 
6581
_LT_TAGVAR(module_expsym_cmds, $1)=
 
6582
_LT_TAGVAR(link_all_deplibs, $1)=unknown
 
6583
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
6584
_LT_TAGVAR(no_undefined_flag, $1)=
 
6585
_LT_TAGVAR(whole_archive_flag_spec, $1)=
 
6586
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 
6587
 
 
6588
# Source file extension for f77 test sources.
 
6589
ac_ext=f
 
6590
 
 
6591
# Object file extension for compiled f77 test sources.
 
6592
objext=o
 
6593
_LT_TAGVAR(objext, $1)=$objext
 
6594
 
 
6595
# No sense in running all these tests if we already determined that
 
6596
# the F77 compiler isn't working.  Some variables (like enable_shared)
 
6597
# are currently assumed to apply to all compilers on this platform,
 
6598
# and will be corrupted by setting them based on a non-working compiler.
 
6599
if test "$_lt_disable_F77" != yes; then
 
6600
  # Code to be used in simple compile tests
 
6601
  lt_simple_compile_test_code="\
 
6602
      subroutine t
 
6603
      return
 
6604
      end
 
6605
"
 
6606
 
 
6607
  # Code to be used in simple link tests
 
6608
  lt_simple_link_test_code="\
 
6609
      program t
 
6610
      end
 
6611
"
 
6612
 
 
6613
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
6614
  _LT_TAG_COMPILER
 
6615
 
 
6616
  # save warnings/boilerplate of simple test code
 
6617
  _LT_COMPILER_BOILERPLATE
 
6618
  _LT_LINKER_BOILERPLATE
 
6619
 
 
6620
  # Allow CC to be a program name with arguments.
 
6621
  lt_save_CC="$CC"
 
6622
  lt_save_GCC=$GCC
 
6623
  CC=${F77-"f77"}
 
6624
  compiler=$CC
 
6625
  _LT_TAGVAR(compiler, $1)=$CC
 
6626
  _LT_CC_BASENAME([$compiler])
 
6627
  GCC=$G77
 
6628
  if test -n "$compiler"; then
 
6629
    AC_MSG_CHECKING([if libtool supports shared libraries])
 
6630
    AC_MSG_RESULT([$can_build_shared])
 
6631
 
 
6632
    AC_MSG_CHECKING([whether to build shared libraries])
 
6633
    test "$can_build_shared" = "no" && enable_shared=no
 
6634
 
 
6635
    # On AIX, shared libraries and static libraries use the same namespace, and
 
6636
    # are all built from PIC.
 
6637
    case $host_os in
 
6638
      aix3*)
 
6639
        test "$enable_shared" = yes && enable_static=no
 
6640
        if test -n "$RANLIB"; then
 
6641
          archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
6642
          postinstall_cmds='$RANLIB $lib'
 
6643
        fi
 
6644
        ;;
 
6645
      aix[[4-9]]*)
 
6646
        if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
6647
          test "$enable_shared" = yes && enable_static=no
 
6648
        fi
 
6649
        ;;
 
6650
    esac
 
6651
    AC_MSG_RESULT([$enable_shared])
 
6652
 
 
6653
    AC_MSG_CHECKING([whether to build static libraries])
 
6654
    # Make sure either enable_shared or enable_static is yes.
 
6655
    test "$enable_shared" = yes || enable_static=yes
 
6656
    AC_MSG_RESULT([$enable_static])
 
6657
 
 
6658
    _LT_TAGVAR(GCC, $1)="$G77"
 
6659
    _LT_TAGVAR(LD, $1)="$LD"
 
6660
 
 
6661
    ## CAVEAT EMPTOR:
 
6662
    ## There is no encapsulation within the following macros, do not change
 
6663
    ## the running order or otherwise move them around unless you know exactly
 
6664
    ## what you are doing...
 
6665
    _LT_COMPILER_PIC($1)
 
6666
    _LT_COMPILER_C_O($1)
 
6667
    _LT_COMPILER_FILE_LOCKS($1)
 
6668
    _LT_LINKER_SHLIBS($1)
 
6669
    _LT_SYS_DYNAMIC_LINKER($1)
 
6670
    _LT_LINKER_HARDCODE_LIBPATH($1)
 
6671
 
 
6672
    _LT_CONFIG($1)
 
6673
  fi # test -n "$compiler"
 
6674
 
 
6675
  GCC=$lt_save_GCC
 
6676
  CC="$lt_save_CC"
 
6677
fi # test "$_lt_disable_F77" != yes
 
6678
 
 
6679
AC_LANG_POP
 
6680
])# _LT_LANG_F77_CONFIG
 
6681
 
 
6682
 
 
6683
# _LT_PROG_FC
 
6684
# -----------
 
6685
# Since AC_PROG_FC is broken, in that it returns the empty string
 
6686
# if there is no fortran compiler, we have our own version here.
 
6687
m4_defun([_LT_PROG_FC],
 
6688
[
 
6689
pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
 
6690
AC_PROG_FC
 
6691
if test -z "$FC" || test "X$FC" = "Xno"; then
 
6692
  _lt_disable_FC=yes
 
6693
fi
 
6694
popdef([AC_MSG_ERROR])
 
6695
])# _LT_PROG_FC
 
6696
 
 
6697
dnl aclocal-1.4 backwards compatibility:
 
6698
dnl AC_DEFUN([_LT_PROG_FC], [])
 
6699
 
 
6700
 
 
6701
# _LT_LANG_FC_CONFIG([TAG])
 
6702
# -------------------------
 
6703
# Ensure that the configuration variables for a Fortran compiler are
 
6704
# suitably defined.  These variables are subsequently used by _LT_CONFIG
 
6705
# to write the compiler configuration to `libtool'.
 
6706
m4_defun([_LT_LANG_FC_CONFIG],
 
6707
[AC_REQUIRE([_LT_PROG_FC])dnl
 
6708
AC_LANG_PUSH(Fortran)
 
6709
 
 
6710
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
6711
_LT_TAGVAR(allow_undefined_flag, $1)=
 
6712
_LT_TAGVAR(always_export_symbols, $1)=no
 
6713
_LT_TAGVAR(archive_expsym_cmds, $1)=
 
6714
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
 
6715
_LT_TAGVAR(hardcode_direct, $1)=no
 
6716
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
 
6717
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
6718
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 
6719
_LT_TAGVAR(hardcode_libdir_separator, $1)=
 
6720
_LT_TAGVAR(hardcode_minus_L, $1)=no
 
6721
_LT_TAGVAR(hardcode_automatic, $1)=no
 
6722
_LT_TAGVAR(inherit_rpath, $1)=no
 
6723
_LT_TAGVAR(module_cmds, $1)=
 
6724
_LT_TAGVAR(module_expsym_cmds, $1)=
 
6725
_LT_TAGVAR(link_all_deplibs, $1)=unknown
 
6726
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
6727
_LT_TAGVAR(no_undefined_flag, $1)=
 
6728
_LT_TAGVAR(whole_archive_flag_spec, $1)=
 
6729
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 
6730
 
 
6731
# Source file extension for fc test sources.
 
6732
ac_ext=${ac_fc_srcext-f}
 
6733
 
 
6734
# Object file extension for compiled fc test sources.
 
6735
objext=o
 
6736
_LT_TAGVAR(objext, $1)=$objext
 
6737
 
 
6738
# No sense in running all these tests if we already determined that
 
6739
# the FC compiler isn't working.  Some variables (like enable_shared)
 
6740
# are currently assumed to apply to all compilers on this platform,
 
6741
# and will be corrupted by setting them based on a non-working compiler.
 
6742
if test "$_lt_disable_FC" != yes; then
 
6743
  # Code to be used in simple compile tests
 
6744
  lt_simple_compile_test_code="\
 
6745
      subroutine t
 
6746
      return
 
6747
      end
 
6748
"
 
6749
 
 
6750
  # Code to be used in simple link tests
 
6751
  lt_simple_link_test_code="\
 
6752
      program t
 
6753
      end
 
6754
"
 
6755
 
 
6756
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
6757
  _LT_TAG_COMPILER
 
6758
 
 
6759
  # save warnings/boilerplate of simple test code
 
6760
  _LT_COMPILER_BOILERPLATE
 
6761
  _LT_LINKER_BOILERPLATE
 
6762
 
 
6763
  # Allow CC to be a program name with arguments.
 
6764
  lt_save_CC="$CC"
 
6765
  lt_save_GCC=$GCC
 
6766
  CC=${FC-"f95"}
 
6767
  compiler=$CC
 
6768
  GCC=$ac_cv_fc_compiler_gnu
 
6769
 
 
6770
  _LT_TAGVAR(compiler, $1)=$CC
 
6771
  _LT_CC_BASENAME([$compiler])
 
6772
 
 
6773
  if test -n "$compiler"; then
 
6774
    AC_MSG_CHECKING([if libtool supports shared libraries])
 
6775
    AC_MSG_RESULT([$can_build_shared])
 
6776
 
 
6777
    AC_MSG_CHECKING([whether to build shared libraries])
 
6778
    test "$can_build_shared" = "no" && enable_shared=no
 
6779
 
 
6780
    # On AIX, shared libraries and static libraries use the same namespace, and
 
6781
    # are all built from PIC.
 
6782
    case $host_os in
 
6783
      aix3*)
 
6784
        test "$enable_shared" = yes && enable_static=no
 
6785
        if test -n "$RANLIB"; then
 
6786
          archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
6787
          postinstall_cmds='$RANLIB $lib'
 
6788
        fi
 
6789
        ;;
 
6790
      aix[[4-9]]*)
 
6791
        if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
6792
          test "$enable_shared" = yes && enable_static=no
 
6793
        fi
 
6794
        ;;
 
6795
    esac
 
6796
    AC_MSG_RESULT([$enable_shared])
 
6797
 
 
6798
    AC_MSG_CHECKING([whether to build static libraries])
 
6799
    # Make sure either enable_shared or enable_static is yes.
 
6800
    test "$enable_shared" = yes || enable_static=yes
 
6801
    AC_MSG_RESULT([$enable_static])
 
6802
 
 
6803
    _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
 
6804
    _LT_TAGVAR(LD, $1)="$LD"
 
6805
 
 
6806
    ## CAVEAT EMPTOR:
 
6807
    ## There is no encapsulation within the following macros, do not change
 
6808
    ## the running order or otherwise move them around unless you know exactly
 
6809
    ## what you are doing...
 
6810
    _LT_SYS_HIDDEN_LIBDEPS($1)
 
6811
    _LT_COMPILER_PIC($1)
 
6812
    _LT_COMPILER_C_O($1)
 
6813
    _LT_COMPILER_FILE_LOCKS($1)
 
6814
    _LT_LINKER_SHLIBS($1)
 
6815
    _LT_SYS_DYNAMIC_LINKER($1)
 
6816
    _LT_LINKER_HARDCODE_LIBPATH($1)
 
6817
 
 
6818
    _LT_CONFIG($1)
 
6819
  fi # test -n "$compiler"
 
6820
 
 
6821
  GCC=$lt_save_GCC
 
6822
  CC="$lt_save_CC"
 
6823
fi # test "$_lt_disable_FC" != yes
 
6824
 
 
6825
AC_LANG_POP
 
6826
])# _LT_LANG_FC_CONFIG
 
6827
 
 
6828
 
 
6829
# _LT_LANG_GCJ_CONFIG([TAG])
 
6830
# --------------------------
 
6831
# Ensure that the configuration variables for the GNU Java Compiler compiler
 
6832
# are suitably defined.  These variables are subsequently used by _LT_CONFIG
 
6833
# to write the compiler configuration to `libtool'.
 
6834
m4_defun([_LT_LANG_GCJ_CONFIG],
 
6835
[AC_REQUIRE([LT_PROG_GCJ])dnl
 
6836
AC_LANG_SAVE
 
6837
 
 
6838
# Source file extension for Java test sources.
 
6839
ac_ext=java
 
6840
 
 
6841
# Object file extension for compiled Java test sources.
 
6842
objext=o
 
6843
_LT_TAGVAR(objext, $1)=$objext
 
6844
 
 
6845
# Code to be used in simple compile tests
 
6846
lt_simple_compile_test_code="class foo {}"
 
6847
 
 
6848
# Code to be used in simple link tests
 
6849
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
 
6850
 
 
6851
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
6852
_LT_TAG_COMPILER
 
6853
 
 
6854
# save warnings/boilerplate of simple test code
 
6855
_LT_COMPILER_BOILERPLATE
 
6856
_LT_LINKER_BOILERPLATE
 
6857
 
 
6858
# Allow CC to be a program name with arguments.
 
6859
lt_save_CC="$CC"
 
6860
lt_save_GCC=$GCC
 
6861
GCC=yes
 
6862
CC=${GCJ-"gcj"}
 
6863
compiler=$CC
 
6864
_LT_TAGVAR(compiler, $1)=$CC
 
6865
_LT_TAGVAR(LD, $1)="$LD"
 
6866
_LT_CC_BASENAME([$compiler])
 
6867
 
 
6868
# GCJ did not exist at the time GCC didn't implicitly link libc in.
 
6869
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
6870
 
 
6871
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
6872
 
 
6873
## CAVEAT EMPTOR:
 
6874
## There is no encapsulation within the following macros, do not change
 
6875
## the running order or otherwise move them around unless you know exactly
 
6876
## what you are doing...
 
6877
if test -n "$compiler"; then
 
6878
  _LT_COMPILER_NO_RTTI($1)
 
6879
  _LT_COMPILER_PIC($1)
 
6880
  _LT_COMPILER_C_O($1)
 
6881
  _LT_COMPILER_FILE_LOCKS($1)
 
6882
  _LT_LINKER_SHLIBS($1)
 
6883
  _LT_LINKER_HARDCODE_LIBPATH($1)
 
6884
 
 
6885
  _LT_CONFIG($1)
 
6886
fi
 
6887
 
 
6888
AC_LANG_RESTORE
 
6889
 
 
6890
GCC=$lt_save_GCC
 
6891
CC="$lt_save_CC"
 
6892
])# _LT_LANG_GCJ_CONFIG
 
6893
 
 
6894
 
 
6895
# _LT_LANG_RC_CONFIG([TAG])
 
6896
# -------------------------
 
6897
# Ensure that the configuration variables for the Windows resource compiler
 
6898
# are suitably defined.  These variables are subsequently used by _LT_CONFIG
 
6899
# to write the compiler configuration to `libtool'.
 
6900
m4_defun([_LT_LANG_RC_CONFIG],
 
6901
[AC_REQUIRE([LT_PROG_RC])dnl
 
6902
AC_LANG_SAVE
 
6903
 
 
6904
# Source file extension for RC test sources.
 
6905
ac_ext=rc
 
6906
 
 
6907
# Object file extension for compiled RC test sources.
 
6908
objext=o
 
6909
_LT_TAGVAR(objext, $1)=$objext
 
6910
 
 
6911
# Code to be used in simple compile tests
 
6912
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
 
6913
 
 
6914
# Code to be used in simple link tests
 
6915
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
6916
 
 
6917
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
6918
_LT_TAG_COMPILER
 
6919
 
 
6920
# save warnings/boilerplate of simple test code
 
6921
_LT_COMPILER_BOILERPLATE
 
6922
_LT_LINKER_BOILERPLATE
 
6923
 
 
6924
# Allow CC to be a program name with arguments.
 
6925
lt_save_CC="$CC"
 
6926
lt_save_GCC=$GCC
 
6927
GCC=
 
6928
CC=${RC-"windres"}
 
6929
compiler=$CC
 
6930
_LT_TAGVAR(compiler, $1)=$CC
 
6931
_LT_CC_BASENAME([$compiler])
 
6932
_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
 
6933
 
 
6934
if test -n "$compiler"; then
 
6935
  :
 
6936
  _LT_CONFIG($1)
 
6937
fi
 
6938
 
 
6939
GCC=$lt_save_GCC
 
6940
AC_LANG_RESTORE
 
6941
CC="$lt_save_CC"
 
6942
])# _LT_LANG_RC_CONFIG
 
6943
 
 
6944
 
 
6945
# LT_PROG_GCJ
 
6946
# -----------
 
6947
AC_DEFUN([LT_PROG_GCJ],
 
6948
[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
 
6949
  [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
 
6950
    [AC_CHECK_TOOL(GCJ, gcj,)
 
6951
      test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
 
6952
      AC_SUBST(GCJFLAGS)])])[]dnl
 
6953
])
 
6954
 
 
6955
# Old name:
 
6956
AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
 
6957
dnl aclocal-1.4 backwards compatibility:
 
6958
dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
 
6959
 
 
6960
 
 
6961
# LT_PROG_RC
 
6962
# ----------
 
6963
AC_DEFUN([LT_PROG_RC],
 
6964
[AC_CHECK_TOOL(RC, windres,)
 
6965
])
 
6966
 
 
6967
# Old name:
 
6968
AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
 
6969
dnl aclocal-1.4 backwards compatibility:
 
6970
dnl AC_DEFUN([LT_AC_PROG_RC], [])
 
6971
 
 
6972
 
 
6973
# _LT_DECL_EGREP
 
6974
# --------------
 
6975
# If we don't have a new enough Autoconf to choose the best grep
 
6976
# available, choose the one first in the user's PATH.
 
6977
m4_defun([_LT_DECL_EGREP],
 
6978
[AC_REQUIRE([AC_PROG_EGREP])dnl
 
6979
AC_REQUIRE([AC_PROG_FGREP])dnl
 
6980
test -z "$GREP" && GREP=grep
 
6981
_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
 
6982
_LT_DECL([], [EGREP], [1], [An ERE matcher])
 
6983
_LT_DECL([], [FGREP], [1], [A literal string matcher])
 
6984
dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
 
6985
AC_SUBST([GREP])
 
6986
])
 
6987
 
 
6988
 
 
6989
# _LT_DECL_SED
 
6990
# ------------
 
6991
# Check for a fully-functional sed program, that truncates
 
6992
# as few characters as possible.  Prefer GNU sed if found.
 
6993
m4_defun([_LT_DECL_SED],
 
6994
[AC_PROG_SED
 
6995
test -z "$SED" && SED=sed
 
6996
Xsed="$SED -e 1s/^X//"
 
6997
_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
 
6998
_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
 
6999
    [Sed that helps us avoid accidentally triggering echo(1) options like -n])
 
7000
])# _LT_DECL_SED
 
7001
 
 
7002
m4_ifndef([AC_PROG_SED], [
6609
7003
############################################################
6610
7004
# NOTE: This macro has been submitted for inclusion into   #
6611
7005
#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
6612
7006
#  a released version of Autoconf we should remove this    #
6613
7007
#  macro and use it instead.                               #
6614
7008
############################################################
6615
 
# LT_AC_PROG_SED
6616
 
# --------------
6617
 
# Check for a fully-functional sed program, that truncates
6618
 
# as few characters as possible.  Prefer GNU sed if found.
6619
 
AC_DEFUN([LT_AC_PROG_SED],
 
7009
 
 
7010
m4_defun([AC_PROG_SED],
6620
7011
[AC_MSG_CHECKING([for a sed that does not truncate output])
6621
7012
AC_CACHE_VAL(lt_cv_path_SED,
6622
7013
[# Loop through the user's path and test for sed and gsed.
6628
7019
  test -z "$as_dir" && as_dir=.
6629
7020
  for lt_ac_prog in sed gsed; do
6630
7021
    for ac_exec_ext in '' $ac_executable_extensions; do
6631
 
      if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
 
7022
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6632
7023
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6633
7024
      fi
6634
7025
    done
6669
7060
SED=$lt_cv_path_SED
6670
7061
AC_SUBST([SED])
6671
7062
AC_MSG_RESULT([$SED])
 
7063
])#AC_PROG_SED
 
7064
])#m4_ifndef
 
7065
 
 
7066
# Old name:
 
7067
AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
 
7068
dnl aclocal-1.4 backwards compatibility:
 
7069
dnl AC_DEFUN([LT_AC_PROG_SED], [])
 
7070
 
 
7071
 
 
7072
# _LT_CHECK_SHELL_FEATURES
 
7073
# ------------------------
 
7074
# Find out whether the shell is Bourne or XSI compatible,
 
7075
# or has some other useful features.
 
7076
m4_defun([_LT_CHECK_SHELL_FEATURES],
 
7077
[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
 
7078
# Try some XSI features
 
7079
xsi_shell=no
 
7080
( _lt_dummy="a/b/c"
 
7081
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
 
7082
      = c,a/b,, \
 
7083
    && eval 'test $(( 1 + 1 )) -eq 2 \
 
7084
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
 
7085
  && xsi_shell=yes
 
7086
AC_MSG_RESULT([$xsi_shell])
 
7087
_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
 
7088
 
 
7089
AC_MSG_CHECKING([whether the shell understands "+="])
 
7090
lt_shell_append=no
 
7091
( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
 
7092
    >/dev/null 2>&1 \
 
7093
  && lt_shell_append=yes
 
7094
AC_MSG_RESULT([$lt_shell_append])
 
7095
_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
 
7096
 
 
7097
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
7098
  lt_unset=unset
 
7099
else
 
7100
  lt_unset=false
 
7101
fi
 
7102
_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
 
7103
 
 
7104
# test EBCDIC or ASCII
 
7105
case `echo X|tr X '\101'` in
 
7106
 A) # ASCII based system
 
7107
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
 
7108
  lt_SP2NL='tr \040 \012'
 
7109
  lt_NL2SP='tr \015\012 \040\040'
 
7110
  ;;
 
7111
 *) # EBCDIC based system
 
7112
  lt_SP2NL='tr \100 \n'
 
7113
  lt_NL2SP='tr \r\n \100\100'
 
7114
  ;;
 
7115
esac
 
7116
_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
 
7117
_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
 
7118
])# _LT_CHECK_SHELL_FEATURES
 
7119
 
 
7120
 
 
7121
# _LT_PROG_XSI_SHELLFNS
 
7122
# ---------------------
 
7123
# Bourne and XSI compatible variants of some useful shell functions.
 
7124
m4_defun([_LT_PROG_XSI_SHELLFNS],
 
7125
[case $xsi_shell in
 
7126
  yes)
 
7127
    cat << \_LT_EOF >> "$cfgfile"
 
7128
 
 
7129
# func_dirname file append nondir_replacement
 
7130
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
 
7131
# otherwise set result to NONDIR_REPLACEMENT.
 
7132
func_dirname ()
 
7133
{
 
7134
  case ${1} in
 
7135
    */*) func_dirname_result="${1%/*}${2}" ;;
 
7136
    *  ) func_dirname_result="${3}" ;;
 
7137
  esac
 
7138
}
 
7139
 
 
7140
# func_basename file
 
7141
func_basename ()
 
7142
{
 
7143
  func_basename_result="${1##*/}"
 
7144
}
 
7145
 
 
7146
# func_dirname_and_basename file append nondir_replacement
 
7147
# perform func_basename and func_dirname in a single function
 
7148
# call:
 
7149
#   dirname:  Compute the dirname of FILE.  If nonempty,
 
7150
#             add APPEND to the result, otherwise set result
 
7151
#             to NONDIR_REPLACEMENT.
 
7152
#             value returned in "$func_dirname_result"
 
7153
#   basename: Compute filename of FILE.
 
7154
#             value retuned in "$func_basename_result"
 
7155
# Implementation must be kept synchronized with func_dirname
 
7156
# and func_basename. For efficiency, we do not delegate to
 
7157
# those functions but instead duplicate the functionality here.
 
7158
func_dirname_and_basename ()
 
7159
{
 
7160
  case ${1} in
 
7161
    */*) func_dirname_result="${1%/*}${2}" ;;
 
7162
    *  ) func_dirname_result="${3}" ;;
 
7163
  esac
 
7164
  func_basename_result="${1##*/}"
 
7165
}
 
7166
 
 
7167
# func_stripname prefix suffix name
 
7168
# strip PREFIX and SUFFIX off of NAME.
 
7169
# PREFIX and SUFFIX must not contain globbing or regex special
 
7170
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
7171
# dot (in which case that matches only a dot).
 
7172
func_stripname ()
 
7173
{
 
7174
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
 
7175
  # positional parameters, so assign one to ordinary parameter first.
 
7176
  func_stripname_result=${3}
 
7177
  func_stripname_result=${func_stripname_result#"${1}"}
 
7178
  func_stripname_result=${func_stripname_result%"${2}"}
 
7179
}
 
7180
 
 
7181
# func_opt_split
 
7182
func_opt_split ()
 
7183
{
 
7184
  func_opt_split_opt=${1%%=*}
 
7185
  func_opt_split_arg=${1#*=}
 
7186
}
 
7187
 
 
7188
# func_lo2o object
 
7189
func_lo2o ()
 
7190
{
 
7191
  case ${1} in
 
7192
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
 
7193
    *)    func_lo2o_result=${1} ;;
 
7194
  esac
 
7195
}
 
7196
 
 
7197
# func_xform libobj-or-source
 
7198
func_xform ()
 
7199
{
 
7200
  func_xform_result=${1%.*}.lo
 
7201
}
 
7202
 
 
7203
# func_arith arithmetic-term...
 
7204
func_arith ()
 
7205
{
 
7206
  func_arith_result=$(( $[*] ))
 
7207
}
 
7208
 
 
7209
# func_len string
 
7210
# STRING may not start with a hyphen.
 
7211
func_len ()
 
7212
{
 
7213
  func_len_result=${#1}
 
7214
}
 
7215
 
 
7216
_LT_EOF
 
7217
    ;;
 
7218
  *) # Bourne compatible functions.
 
7219
    cat << \_LT_EOF >> "$cfgfile"
 
7220
 
 
7221
# func_dirname file append nondir_replacement
 
7222
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
 
7223
# otherwise set result to NONDIR_REPLACEMENT.
 
7224
func_dirname ()
 
7225
{
 
7226
  # Extract subdirectory from the argument.
 
7227
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
 
7228
  if test "X$func_dirname_result" = "X${1}"; then
 
7229
    func_dirname_result="${3}"
 
7230
  else
 
7231
    func_dirname_result="$func_dirname_result${2}"
 
7232
  fi
 
7233
}
 
7234
 
 
7235
# func_basename file
 
7236
func_basename ()
 
7237
{
 
7238
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
 
7239
}
 
7240
 
 
7241
dnl func_dirname_and_basename
 
7242
dnl A portable version of this function is already defined in general.m4sh
 
7243
dnl so there is no need for it here.
 
7244
 
 
7245
# func_stripname prefix suffix name
 
7246
# strip PREFIX and SUFFIX off of NAME.
 
7247
# PREFIX and SUFFIX must not contain globbing or regex special
 
7248
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
7249
# dot (in which case that matches only a dot).
 
7250
# func_strip_suffix prefix name
 
7251
func_stripname ()
 
7252
{
 
7253
  case ${2} in
 
7254
    .*) func_stripname_result=`$ECHO "X${3}" \
 
7255
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
 
7256
    *)  func_stripname_result=`$ECHO "X${3}" \
 
7257
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
 
7258
  esac
 
7259
}
 
7260
 
 
7261
# sed scripts:
 
7262
my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
 
7263
my_sed_long_arg='1s/^-[[^=]]*=//'
 
7264
 
 
7265
# func_opt_split
 
7266
func_opt_split ()
 
7267
{
 
7268
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
 
7269
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
 
7270
}
 
7271
 
 
7272
# func_lo2o object
 
7273
func_lo2o ()
 
7274
{
 
7275
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
 
7276
}
 
7277
 
 
7278
# func_xform libobj-or-source
 
7279
func_xform ()
 
7280
{
 
7281
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
 
7282
}
 
7283
 
 
7284
# func_arith arithmetic-term...
 
7285
func_arith ()
 
7286
{
 
7287
  func_arith_result=`expr "$[@]"`
 
7288
}
 
7289
 
 
7290
# func_len string
 
7291
# STRING may not start with a hyphen.
 
7292
func_len ()
 
7293
{
 
7294
  func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
 
7295
}
 
7296
 
 
7297
_LT_EOF
 
7298
esac
 
7299
 
 
7300
case $lt_shell_append in
 
7301
  yes)
 
7302
    cat << \_LT_EOF >> "$cfgfile"
 
7303
 
 
7304
# func_append var value
 
7305
# Append VALUE to the end of shell variable VAR.
 
7306
func_append ()
 
7307
{
 
7308
  eval "$[1]+=\$[2]"
 
7309
}
 
7310
_LT_EOF
 
7311
    ;;
 
7312
  *)
 
7313
    cat << \_LT_EOF >> "$cfgfile"
 
7314
 
 
7315
# func_append var value
 
7316
# Append VALUE to the end of shell variable VAR.
 
7317
func_append ()
 
7318
{
 
7319
  eval "$[1]=\$$[1]\$[2]"
 
7320
}
 
7321
 
 
7322
_LT_EOF
 
7323
    ;;
 
7324
  esac
6672
7325
])