~ubuntu-branches/ubuntu/saucy/orbit2/saucy

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Dröge
  • Date: 2009-03-06 18:40:04 UTC
  • mfrom: (1.2.17 upstream) (7.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090306184004-pbuwp3a2d69aubkn
Tags: 1:2.14.17-0.1
* Non-maintainer upload.
* New upstream bugfix release. No API changes.
* Update Standards-Version to 3.8.0, no additional changes needed.
* Build depend on autotools-dev to get config.{sub,guess} updated.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.10.1 -*- Autoconf -*-
 
1
# generated automatically by aclocal 1.10.2 -*- Autoconf -*-
2
2
 
3
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
4
# 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
13
13
 
14
14
m4_ifndef([AC_AUTOCONF_VERSION],
15
15
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16
 
m4_if(AC_AUTOCONF_VERSION, [2.62],,
17
 
[m4_warning([this file was generated for autoconf 2.62.
 
16
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.63],,
 
17
[m4_warning([this file was generated for autoconf 2.63.
18
18
You have another version of autoconf.  It may work, but is not guaranteed to.
19
19
If you have problems, you may need to regenerate the build system entirely.
20
20
To do so, use the procedure documented by the package, typically `autoreconf'.])])
60
60
])
61
61
 
62
62
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
63
 
 
64
 
# serial 52 AC_PROG_LIBTOOL
65
 
 
66
 
 
67
 
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
68
 
# -----------------------------------------------------------
69
 
# If this macro is not defined by Autoconf, define it here.
70
 
m4_ifdef([AC_PROVIDE_IFELSE],
71
 
         [],
72
 
         [m4_define([AC_PROVIDE_IFELSE],
73
 
                 [m4_ifdef([AC_PROVIDE_$1],
74
 
                           [$2], [$3])])])
75
 
 
76
 
 
77
 
# AC_PROG_LIBTOOL
78
 
# ---------------
79
 
AC_DEFUN([AC_PROG_LIBTOOL],
80
 
[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
81
 
dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
82
 
dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
83
 
  AC_PROVIDE_IFELSE([AC_PROG_CXX],
84
 
    [AC_LIBTOOL_CXX],
85
 
    [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
86
 
  ])])
87
 
dnl And a similar setup for Fortran 77 support
88
 
  AC_PROVIDE_IFELSE([AC_PROG_F77],
89
 
    [AC_LIBTOOL_F77],
90
 
    [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
91
 
])])
92
 
 
93
 
dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
94
 
dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
95
 
dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
96
 
  AC_PROVIDE_IFELSE([AC_PROG_GCJ],
97
 
    [AC_LIBTOOL_GCJ],
98
 
    [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
99
 
      [AC_LIBTOOL_GCJ],
100
 
      [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
101
 
        [AC_LIBTOOL_GCJ],
102
 
      [ifdef([AC_PROG_GCJ],
103
 
             [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
104
 
       ifdef([A][M_PROG_GCJ],
105
 
             [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
106
 
       ifdef([LT_AC_PROG_GCJ],
107
 
             [define([LT_AC_PROG_GCJ],
108
 
                defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
109
 
])])# AC_PROG_LIBTOOL
110
 
 
111
 
 
112
 
# _AC_PROG_LIBTOOL
113
 
# ----------------
114
 
AC_DEFUN([_AC_PROG_LIBTOOL],
115
 
[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
116
 
AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
117
 
AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
118
 
AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
 
63
#
 
64
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
 
65
#                 2006, 2007, 2008 Free Software Foundation, Inc.
 
66
#   Written by Gordon Matzigkeit, 1996
 
67
#
 
68
# This file is free software; the Free Software Foundation gives
 
69
# unlimited permission to copy and/or distribute it, with or without
 
70
# modifications, as long as this notice is preserved.
 
71
 
 
72
m4_define([_LT_COPYING], [dnl
 
73
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
 
74
#                 2006, 2007, 2008 Free Software Foundation, Inc.
 
75
#   Written by Gordon Matzigkeit, 1996
 
76
#
 
77
#   This file is part of GNU Libtool.
 
78
#
 
79
# GNU Libtool is free software; you can redistribute it and/or
 
80
# modify it under the terms of the GNU General Public License as
 
81
# published by the Free Software Foundation; either version 2 of
 
82
# the License, or (at your option) any later version.
 
83
#
 
84
# As a special exception to the GNU General Public License,
 
85
# if you distribute this file as part of a program or library that
 
86
# is built using GNU Libtool, you may include this file under the
 
87
# same distribution terms that you use for the rest of that program.
 
88
#
 
89
# GNU Libtool is distributed in the hope that it will be useful,
 
90
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
91
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
92
# GNU General Public License for more details.
 
93
#
 
94
# You should have received a copy of the GNU General Public License
 
95
# along with GNU Libtool; see the file COPYING.  If not, a copy
 
96
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
 
97
# obtained by writing to the Free Software Foundation, Inc.,
 
98
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
99
])
 
100
 
 
101
# serial 56 LT_INIT
 
102
 
 
103
 
 
104
# LT_PREREQ(VERSION)
 
105
# ------------------
 
106
# Complain and exit if this libtool version is less that VERSION.
 
107
m4_defun([LT_PREREQ],
 
108
[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
 
109
       [m4_default([$3],
 
110
                   [m4_fatal([Libtool version $1 or higher is required],
 
111
                             63)])],
 
112
       [$2])])
 
113
 
 
114
 
 
115
# _LT_CHECK_BUILDDIR
 
116
# ------------------
 
117
# Complain if the absolute build directory name contains unusual characters
 
118
m4_defun([_LT_CHECK_BUILDDIR],
 
119
[case `pwd` in
 
120
  *\ * | *\     *)
 
121
    AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
 
122
esac
 
123
])
 
124
 
 
125
 
 
126
# LT_INIT([OPTIONS])
 
127
# ------------------
 
128
AC_DEFUN([LT_INIT],
 
129
[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
 
130
AC_BEFORE([$0], [LT_LANG])dnl
 
131
AC_BEFORE([$0], [LT_OUTPUT])dnl
 
132
AC_BEFORE([$0], [LTDL_INIT])dnl
 
133
m4_require([_LT_CHECK_BUILDDIR])dnl
 
134
 
 
135
dnl Autoconf doesn't catch unexpanded LT_ macros by default:
 
136
m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
 
137
m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
 
138
dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
 
139
dnl unless we require an AC_DEFUNed macro:
 
140
AC_REQUIRE([LTOPTIONS_VERSION])dnl
 
141
AC_REQUIRE([LTSUGAR_VERSION])dnl
 
142
AC_REQUIRE([LTVERSION_VERSION])dnl
 
143
AC_REQUIRE([LTOBSOLETE_VERSION])dnl
 
144
m4_require([_LT_PROG_LTMAIN])dnl
 
145
 
 
146
dnl Parse OPTIONS
 
147
_LT_SET_OPTIONS([$0], [$1])
119
148
 
120
149
# This can be used to rebuild libtool when needed
121
 
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
 
150
LIBTOOL_DEPS="$ltmain"
122
151
 
123
152
# Always use our own libtool.
124
153
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
125
154
AC_SUBST(LIBTOOL)dnl
126
155
 
127
 
# Prevent multiple expansion
128
 
define([AC_PROG_LIBTOOL], [])
129
 
])# _AC_PROG_LIBTOOL
130
 
 
131
 
 
132
 
# AC_LIBTOOL_SETUP
133
 
# ----------------
134
 
AC_DEFUN([AC_LIBTOOL_SETUP],
135
 
[AC_PREREQ(2.50)dnl
136
 
AC_REQUIRE([AC_ENABLE_SHARED])dnl
137
 
AC_REQUIRE([AC_ENABLE_STATIC])dnl
138
 
AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
139
 
AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
156
_LT_SETUP
 
157
 
 
158
# Only expand once:
 
159
m4_define([LT_INIT])
 
160
])# LT_INIT
 
161
 
 
162
# Old names:
 
163
AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
 
164
AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
 
165
dnl aclocal-1.4 backwards compatibility:
 
166
dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
 
167
dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
 
168
 
 
169
 
 
170
# _LT_CC_BASENAME(CC)
 
171
# -------------------
 
172
# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
 
173
m4_defun([_LT_CC_BASENAME],
 
174
[for cc_temp in $1""; do
 
175
  case $cc_temp in
 
176
    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
 
177
    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
 
178
    \-*) ;;
 
179
    *) break;;
 
180
  esac
 
181
done
 
182
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
183
])
 
184
 
 
185
 
 
186
# _LT_FILEUTILS_DEFAULTS
 
187
# ----------------------
 
188
# It is okay to use these file commands and assume they have been set
 
189
# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
 
190
m4_defun([_LT_FILEUTILS_DEFAULTS],
 
191
[: ${CP="cp -f"}
 
192
: ${MV="mv -f"}
 
193
: ${RM="rm -f"}
 
194
])# _LT_FILEUTILS_DEFAULTS
 
195
 
 
196
 
 
197
# _LT_SETUP
 
198
# ---------
 
199
m4_defun([_LT_SETUP],
 
200
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
140
201
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
 
202
_LT_DECL([], [host_alias], [0], [The host system])dnl
 
203
_LT_DECL([], [host], [0])dnl
 
204
_LT_DECL([], [host_os], [0])dnl
 
205
dnl
 
206
_LT_DECL([], [build_alias], [0], [The build system])dnl
 
207
_LT_DECL([], [build], [0])dnl
 
208
_LT_DECL([], [build_os], [0])dnl
 
209
dnl
141
210
AC_REQUIRE([AC_PROG_CC])dnl
142
 
AC_REQUIRE([AC_PROG_LD])dnl
143
 
AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
144
 
AC_REQUIRE([AC_PROG_NM])dnl
145
 
 
 
211
AC_REQUIRE([LT_PATH_LD])dnl
 
212
AC_REQUIRE([LT_PATH_NM])dnl
 
213
dnl
146
214
AC_REQUIRE([AC_PROG_LN_S])dnl
147
 
AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
148
 
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
149
 
AC_REQUIRE([AC_OBJEXT])dnl
150
 
AC_REQUIRE([AC_EXEEXT])dnl
151
 
dnl
152
 
AC_LIBTOOL_SYS_MAX_CMD_LEN
153
 
AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
154
 
AC_LIBTOOL_OBJDIR
155
 
 
156
 
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
157
 
_LT_AC_PROG_ECHO_BACKSLASH
 
215
test -z "$LN_S" && LN_S="ln -s"
 
216
_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
 
217
dnl
 
218
AC_REQUIRE([LT_CMD_MAX_LEN])dnl
 
219
_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
 
220
_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
 
221
dnl
 
222
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
223
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
 
224
m4_require([_LT_CMD_RELOAD])dnl
 
225
m4_require([_LT_CHECK_MAGIC_METHOD])dnl
 
226
m4_require([_LT_CMD_OLD_ARCHIVE])dnl
 
227
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
 
228
 
 
229
_LT_CONFIG_LIBTOOL_INIT([
 
230
# See if we are running on zsh, and set the options which allow our
 
231
# commands through without removal of \ escapes INIT.
 
232
if test -n "\${ZSH_VERSION+set}" ; then
 
233
   setopt NO_GLOB_SUBST
 
234
fi
 
235
])
 
236
if test -n "${ZSH_VERSION+set}" ; then
 
237
   setopt NO_GLOB_SUBST
 
238
fi
 
239
 
 
240
_LT_CHECK_OBJDIR
 
241
 
 
242
m4_require([_LT_TAG_COMPILER])dnl
 
243
_LT_PROG_ECHO_BACKSLASH
158
244
 
159
245
case $host_os in
160
246
aix3*)
170
256
 
171
257
# Sed substitution that helps us do robust quoting.  It backslashifies
172
258
# metacharacters that are still active within double-quoted strings.
173
 
Xsed='sed -e 1s/^X//'
174
 
[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
 
259
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
175
260
 
176
261
# Same as above, but do not quote variable references.
177
 
[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
 
262
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
178
263
 
179
264
# Sed substitution to delay expansion of an escaped shell variable in a
180
265
# double_quote_subst'ed string.
181
266
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
182
267
 
 
268
# Sed substitution to delay expansion of an escaped single quote.
 
269
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
 
270
 
183
271
# Sed substitution to avoid accidental globbing in evaled expressions
184
272
no_glob_subst='s/\*/\\\*/g'
185
273
 
186
 
# Constants:
187
 
rm="rm -f"
188
 
 
189
274
# Global variables:
190
 
default_ofile=libtool
 
275
ofile=libtool
191
276
can_build_shared=yes
192
277
 
193
278
# All known linkers require a `.a' archive for static linking (except MSVC,
194
279
# which needs '.lib').
195
280
libext=a
196
 
ltmain="$ac_aux_dir/ltmain.sh"
197
 
ofile="$default_ofile"
 
281
 
198
282
with_gnu_ld="$lt_cv_prog_gnu_ld"
199
283
 
200
 
AC_CHECK_TOOL(AR, ar, false)
201
 
AC_CHECK_TOOL(RANLIB, ranlib, :)
202
 
AC_CHECK_TOOL(STRIP, strip, :)
203
 
 
204
284
old_CC="$CC"
205
285
old_CFLAGS="$CFLAGS"
206
286
 
207
287
# Set sane defaults for various variables
208
 
test -z "$AR" && AR=ar
209
 
test -z "$AR_FLAGS" && AR_FLAGS=cru
210
 
test -z "$AS" && AS=as
211
288
test -z "$CC" && CC=cc
212
289
test -z "$LTCC" && LTCC=$CC
213
290
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
214
 
test -z "$DLLTOOL" && DLLTOOL=dlltool
215
291
test -z "$LD" && LD=ld
216
 
test -z "$LN_S" && LN_S="ln -s"
217
 
test -z "$MAGIC_CMD" && MAGIC_CMD=file
218
 
test -z "$NM" && NM=nm
219
 
test -z "$SED" && SED=sed
220
 
test -z "$OBJDUMP" && OBJDUMP=objdump
221
 
test -z "$RANLIB" && RANLIB=:
222
 
test -z "$STRIP" && STRIP=:
223
292
test -z "$ac_objext" && ac_objext=o
224
293
 
225
 
# Determine commands to create old-style static archives.
226
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
227
 
old_postinstall_cmds='chmod 644 $oldlib'
228
 
old_postuninstall_cmds=
229
 
 
230
 
if test -n "$RANLIB"; then
231
 
  case $host_os in
232
 
  openbsd*)
233
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
234
 
    ;;
235
 
  *)
236
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
237
 
    ;;
238
 
  esac
239
 
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
240
 
fi
241
 
 
242
294
_LT_CC_BASENAME([$compiler])
243
295
 
244
296
# Only perform the check for file, if the check method requires it
 
297
test -z "$MAGIC_CMD" && MAGIC_CMD=file
245
298
case $deplibs_check_method in
246
299
file_magic*)
247
300
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
248
 
    AC_PATH_MAGIC
 
301
    _LT_PATH_MAGIC
249
302
  fi
250
303
  ;;
251
304
esac
252
305
 
253
 
_LT_REQUIRED_DARWIN_CHECKS
254
 
 
255
 
AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
256
 
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
257
 
enable_win32_dll=yes, enable_win32_dll=no)
258
 
 
259
 
AC_ARG_ENABLE([libtool-lock],
260
 
    [AC_HELP_STRING([--disable-libtool-lock],
261
 
        [avoid locking (might break parallel builds)])])
262
 
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
263
 
 
264
 
AC_ARG_WITH([pic],
265
 
    [AC_HELP_STRING([--with-pic],
266
 
        [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
267
 
    [pic_mode="$withval"],
268
 
    [pic_mode=default])
269
 
test -z "$pic_mode" && pic_mode=default
270
 
 
271
306
# Use C for the default configuration in the libtool script
272
 
tagname=
273
 
AC_LIBTOOL_LANG_C_CONFIG
274
 
_LT_AC_TAGCONFIG
275
 
])# AC_LIBTOOL_SETUP
276
 
 
277
 
 
278
 
# _LT_AC_SYS_COMPILER
 
307
LT_SUPPORTED_TAG([CC])
 
308
_LT_LANG_C_CONFIG
 
309
_LT_LANG_DEFAULT_CONFIG
 
310
_LT_CONFIG_COMMANDS
 
311
])# _LT_SETUP
 
312
 
 
313
 
 
314
# _LT_PROG_LTMAIN
 
315
# ---------------
 
316
# Note that this code is called both from `configure', and `config.status'
 
317
# now that we use AC_CONFIG_COMMANDS to generate libtool.  Notably,
 
318
# `config.status' has no value for ac_aux_dir unless we are using Automake,
 
319
# so we pass a copy along to make sure it has a sensible value anyway.
 
320
m4_defun([_LT_PROG_LTMAIN],
 
321
[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
 
322
_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
 
323
ltmain="$ac_aux_dir/ltmain.sh"
 
324
])# _LT_PROG_LTMAIN
 
325
 
 
326
 
 
327
 
 
328
# So that we can recreate a full libtool script including additional
 
329
# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
 
330
# in macros and then make a single call at the end using the `libtool'
 
331
# label.
 
332
 
 
333
 
 
334
# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
 
335
# ----------------------------------------
 
336
# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
 
337
m4_define([_LT_CONFIG_LIBTOOL_INIT],
 
338
[m4_ifval([$1],
 
339
          [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
 
340
                     [$1
 
341
])])])
 
342
 
 
343
# Initialize.
 
344
m4_define([_LT_OUTPUT_LIBTOOL_INIT])
 
345
 
 
346
 
 
347
# _LT_CONFIG_LIBTOOL([COMMANDS])
 
348
# ------------------------------
 
349
# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
 
350
m4_define([_LT_CONFIG_LIBTOOL],
 
351
[m4_ifval([$1],
 
352
          [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
 
353
                     [$1
 
354
])])])
 
355
 
 
356
# Initialize.
 
357
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
 
358
 
 
359
 
 
360
# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
 
361
# -----------------------------------------------------
 
362
m4_defun([_LT_CONFIG_SAVE_COMMANDS],
 
363
[_LT_CONFIG_LIBTOOL([$1])
 
364
_LT_CONFIG_LIBTOOL_INIT([$2])
 
365
])
 
366
 
 
367
 
 
368
# _LT_FORMAT_COMMENT([COMMENT])
 
369
# -----------------------------
 
370
# Add leading comment marks to the start of each line, and a trailing
 
371
# full-stop to the whole comment if one is not present already.
 
372
m4_define([_LT_FORMAT_COMMENT],
 
373
[m4_ifval([$1], [
 
374
m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
 
375
              [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
 
376
)])
 
377
 
 
378
 
 
379
 
 
380
 
 
381
 
 
382
# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
 
383
# -------------------------------------------------------------------
 
384
# CONFIGNAME is the name given to the value in the libtool script.
 
385
# VARNAME is the (base) name used in the configure script.
 
386
# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
 
387
# VARNAME.  Any other value will be used directly.
 
388
m4_define([_LT_DECL],
 
389
[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
 
390
    [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
 
391
        [m4_ifval([$1], [$1], [$2])])
 
392
    lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
 
393
    m4_ifval([$4],
 
394
        [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
 
395
    lt_dict_add_subkey([lt_decl_dict], [$2],
 
396
        [tagged?], [m4_ifval([$5], [yes], [no])])])
 
397
])
 
398
 
 
399
 
 
400
# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
 
401
# --------------------------------------------------------
 
402
m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
 
403
 
 
404
 
 
405
# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
 
406
# ------------------------------------------------
 
407
m4_define([lt_decl_tag_varnames],
 
408
[_lt_decl_filter([tagged?], [yes], $@)])
 
409
 
 
410
 
 
411
# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
 
412
# ---------------------------------------------------------
 
413
m4_define([_lt_decl_filter],
 
414
[m4_case([$#],
 
415
  [0], [m4_fatal([$0: too few arguments: $#])],
 
416
  [1], [m4_fatal([$0: too few arguments: $#: $1])],
 
417
  [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
 
418
  [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
 
419
  [lt_dict_filter([lt_decl_dict], $@)])[]dnl
 
420
])
 
421
 
 
422
 
 
423
# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
 
424
# --------------------------------------------------
 
425
m4_define([lt_decl_quote_varnames],
 
426
[_lt_decl_filter([value], [1], $@)])
 
427
 
 
428
 
 
429
# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
 
430
# ---------------------------------------------------
 
431
m4_define([lt_decl_dquote_varnames],
 
432
[_lt_decl_filter([value], [2], $@)])
 
433
 
 
434
 
 
435
# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
 
436
# ---------------------------------------------------
 
437
m4_define([lt_decl_varnames_tagged],
 
438
[m4_assert([$# <= 2])dnl
 
439
_$0(m4_quote(m4_default([$1], [[, ]])),
 
440
    m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
 
441
    m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
 
442
m4_define([_lt_decl_varnames_tagged],
 
443
[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
 
444
 
 
445
 
 
446
# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
 
447
# ------------------------------------------------
 
448
m4_define([lt_decl_all_varnames],
 
449
[_$0(m4_quote(m4_default([$1], [[, ]])),
 
450
     m4_if([$2], [],
 
451
           m4_quote(lt_decl_varnames),
 
452
        m4_quote(m4_shift($@))))[]dnl
 
453
])
 
454
m4_define([_lt_decl_all_varnames],
 
455
[lt_join($@, lt_decl_varnames_tagged([$1],
 
456
                        lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
 
457
])
 
458
 
 
459
 
 
460
# _LT_CONFIG_STATUS_DECLARE([VARNAME])
 
461
# ------------------------------------
 
462
# Quote a variable value, and forward it to `config.status' so that its
 
463
# declaration there will have the same value as in `configure'.  VARNAME
 
464
# must have a single quote delimited value for this to work.
 
465
m4_define([_LT_CONFIG_STATUS_DECLARE],
 
466
[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
 
467
 
 
468
 
 
469
# _LT_CONFIG_STATUS_DECLARATIONS
 
470
# ------------------------------
 
471
# We delimit libtool config variables with single quotes, so when
 
472
# we write them to config.status, we have to be sure to quote all
 
473
# embedded single quotes properly.  In configure, this macro expands
 
474
# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
 
475
#
 
476
#    <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
 
477
m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
 
478
[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
 
479
    [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
 
480
 
 
481
 
 
482
# _LT_LIBTOOL_TAGS
 
483
# ----------------
 
484
# Output comment and list of tags supported by the script
 
485
m4_defun([_LT_LIBTOOL_TAGS],
 
486
[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
 
487
available_tags="_LT_TAGS"dnl
 
488
])
 
489
 
 
490
 
 
491
# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
 
492
# -----------------------------------
 
493
# Extract the dictionary values for VARNAME (optionally with TAG) and
 
494
# expand to a commented shell variable setting:
 
495
#
 
496
#    # Some comment about what VAR is for.
 
497
#    visible_name=$lt_internal_name
 
498
m4_define([_LT_LIBTOOL_DECLARE],
 
499
[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
 
500
                                           [description])))[]dnl
 
501
m4_pushdef([_libtool_name],
 
502
    m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
 
503
m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
 
504
    [0], [_libtool_name=[$]$1],
 
505
    [1], [_libtool_name=$lt_[]$1],
 
506
    [2], [_libtool_name=$lt_[]$1],
 
507
    [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
 
508
m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
 
509
])
 
510
 
 
511
 
 
512
# _LT_LIBTOOL_CONFIG_VARS
 
513
# -----------------------
 
514
# Produce commented declarations of non-tagged libtool config variables
 
515
# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
 
516
# script.  Tagged libtool config variables (even for the LIBTOOL CONFIG
 
517
# section) are produced by _LT_LIBTOOL_TAG_VARS.
 
518
m4_defun([_LT_LIBTOOL_CONFIG_VARS],
 
519
[m4_foreach([_lt_var],
 
520
    m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
 
521
    [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
 
522
 
 
523
 
 
524
# _LT_LIBTOOL_TAG_VARS(TAG)
 
525
# -------------------------
 
526
m4_define([_LT_LIBTOOL_TAG_VARS],
 
527
[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
 
528
    [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
 
529
 
 
530
 
 
531
# _LT_TAGVAR(VARNAME, [TAGNAME])
 
532
# ------------------------------
 
533
m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
 
534
 
 
535
 
 
536
# _LT_CONFIG_COMMANDS
279
537
# -------------------
280
 
AC_DEFUN([_LT_AC_SYS_COMPILER],
 
538
# Send accumulated output to $CONFIG_STATUS.  Thanks to the lists of
 
539
# variables for single and double quote escaping we saved from calls
 
540
# to _LT_DECL, we can put quote escaped variables declarations
 
541
# into `config.status', and then the shell code to quote escape them in
 
542
# for loops in `config.status'.  Finally, any additional code accumulated
 
543
# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
 
544
m4_defun([_LT_CONFIG_COMMANDS],
 
545
[AC_PROVIDE_IFELSE([LT_OUTPUT],
 
546
        dnl If the libtool generation code has been placed in $CONFIG_LT,
 
547
        dnl instead of duplicating it all over again into config.status,
 
548
        dnl then we will have config.status run $CONFIG_LT later, so it
 
549
        dnl needs to know what name is stored there:
 
550
        [AC_CONFIG_COMMANDS([libtool],
 
551
            [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
 
552
    dnl If the libtool generation code is destined for config.status,
 
553
    dnl expand the accumulated commands and init code now:
 
554
    [AC_CONFIG_COMMANDS([libtool],
 
555
        [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
 
556
])#_LT_CONFIG_COMMANDS
 
557
 
 
558
 
 
559
# Initialize.
 
560
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
 
561
[
 
562
 
 
563
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
564
# if CDPATH is set.
 
565
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
566
 
 
567
sed_quote_subst='$sed_quote_subst'
 
568
double_quote_subst='$double_quote_subst'
 
569
delay_variable_subst='$delay_variable_subst'
 
570
_LT_CONFIG_STATUS_DECLARATIONS
 
571
LTCC='$LTCC'
 
572
LTCFLAGS='$LTCFLAGS'
 
573
compiler='$compiler_DEFAULT'
 
574
 
 
575
# Quote evaled strings.
 
576
for var in lt_decl_all_varnames([[ \
 
577
]], lt_decl_quote_varnames); do
 
578
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
579
    *[[\\\\\\\`\\"\\\$]]*)
 
580
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
 
581
      ;;
 
582
    *)
 
583
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
584
      ;;
 
585
    esac
 
586
done
 
587
 
 
588
# Double-quote double-evaled strings.
 
589
for var in lt_decl_all_varnames([[ \
 
590
]], lt_decl_dquote_varnames); do
 
591
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
592
    *[[\\\\\\\`\\"\\\$]]*)
 
593
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
 
594
      ;;
 
595
    *)
 
596
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
597
      ;;
 
598
    esac
 
599
done
 
600
 
 
601
# Fix-up fallback echo if it was mangled by the above quoting rules.
 
602
case \$lt_ECHO in
 
603
*'\\\[$]0 --fallback-echo"')dnl "
 
604
  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
 
605
  ;;
 
606
esac
 
607
 
 
608
_LT_OUTPUT_LIBTOOL_INIT
 
609
])
 
610
 
 
611
 
 
612
# LT_OUTPUT
 
613
# ---------
 
614
# This macro allows early generation of the libtool script (before
 
615
# AC_OUTPUT is called), incase it is used in configure for compilation
 
616
# tests.
 
617
AC_DEFUN([LT_OUTPUT],
 
618
[: ${CONFIG_LT=./config.lt}
 
619
AC_MSG_NOTICE([creating $CONFIG_LT])
 
620
cat >"$CONFIG_LT" <<_LTEOF
 
621
#! $SHELL
 
622
# Generated by $as_me.
 
623
# Run this file to recreate a libtool stub with the current configuration.
 
624
 
 
625
lt_cl_silent=false
 
626
SHELL=\${CONFIG_SHELL-$SHELL}
 
627
_LTEOF
 
628
 
 
629
cat >>"$CONFIG_LT" <<\_LTEOF
 
630
AS_SHELL_SANITIZE
 
631
_AS_PREPARE
 
632
 
 
633
exec AS_MESSAGE_FD>&1
 
634
exec AS_MESSAGE_LOG_FD>>config.log
 
635
{
 
636
  echo
 
637
  AS_BOX([Running $as_me.])
 
638
} >&AS_MESSAGE_LOG_FD
 
639
 
 
640
lt_cl_help="\
 
641
\`$as_me' creates a local libtool stub from the current configuration,
 
642
for use in further configure time tests before the real libtool is
 
643
generated.
 
644
 
 
645
Usage: $[0] [[OPTIONS]]
 
646
 
 
647
  -h, --help      print this help, then exit
 
648
  -V, --version   print version number, then exit
 
649
  -q, --quiet     do not print progress messages
 
650
  -d, --debug     don't remove temporary files
 
651
 
 
652
Report bugs to <bug-libtool@gnu.org>."
 
653
 
 
654
lt_cl_version="\
 
655
m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
 
656
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
 
657
configured by $[0], generated by m4_PACKAGE_STRING.
 
658
 
 
659
Copyright (C) 2008 Free Software Foundation, Inc.
 
660
This config.lt script is free software; the Free Software Foundation
 
661
gives unlimited permision to copy, distribute and modify it."
 
662
 
 
663
while test $[#] != 0
 
664
do
 
665
  case $[1] in
 
666
    --version | --v* | -V )
 
667
      echo "$lt_cl_version"; exit 0 ;;
 
668
    --help | --h* | -h )
 
669
      echo "$lt_cl_help"; exit 0 ;;
 
670
    --debug | --d* | -d )
 
671
      debug=: ;;
 
672
    --quiet | --q* | --silent | --s* | -q )
 
673
      lt_cl_silent=: ;;
 
674
 
 
675
    -*) AC_MSG_ERROR([unrecognized option: $[1]
 
676
Try \`$[0] --help' for more information.]) ;;
 
677
 
 
678
    *) AC_MSG_ERROR([unrecognized argument: $[1]
 
679
Try \`$[0] --help' for more information.]) ;;
 
680
  esac
 
681
  shift
 
682
done
 
683
 
 
684
if $lt_cl_silent; then
 
685
  exec AS_MESSAGE_FD>/dev/null
 
686
fi
 
687
_LTEOF
 
688
 
 
689
cat >>"$CONFIG_LT" <<_LTEOF
 
690
_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
 
691
_LTEOF
 
692
 
 
693
cat >>"$CONFIG_LT" <<\_LTEOF
 
694
AC_MSG_NOTICE([creating $ofile])
 
695
_LT_OUTPUT_LIBTOOL_COMMANDS
 
696
AS_EXIT(0)
 
697
_LTEOF
 
698
chmod +x "$CONFIG_LT"
 
699
 
 
700
# configure is writing to config.log, but config.lt does its own redirection,
 
701
# appending to config.log, which fails on DOS, as config.log is still kept
 
702
# open by configure.  Here we exec the FD to /dev/null, effectively closing
 
703
# config.log, so it can be properly (re)opened and appended to by config.lt.
 
704
if test "$no_create" != yes; then
 
705
  lt_cl_success=:
 
706
  test "$silent" = yes &&
 
707
    lt_config_lt_args="$lt_config_lt_args --quiet"
 
708
  exec AS_MESSAGE_LOG_FD>/dev/null
 
709
  $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
 
710
  exec AS_MESSAGE_LOG_FD>>config.log
 
711
  $lt_cl_success || AS_EXIT(1)
 
712
fi
 
713
])# LT_OUTPUT
 
714
 
 
715
 
 
716
# _LT_CONFIG(TAG)
 
717
# ---------------
 
718
# If TAG is the built-in tag, create an initial libtool script with a
 
719
# default configuration from the untagged config vars.  Otherwise add code
 
720
# to config.status for appending the configuration named by TAG from the
 
721
# matching tagged config vars.
 
722
m4_defun([_LT_CONFIG],
 
723
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
724
_LT_CONFIG_SAVE_COMMANDS([
 
725
  m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
 
726
  m4_if(_LT_TAG, [C], [
 
727
    # See if we are running on zsh, and set the options which allow our
 
728
    # commands through without removal of \ escapes.
 
729
    if test -n "${ZSH_VERSION+set}" ; then
 
730
      setopt NO_GLOB_SUBST
 
731
    fi
 
732
 
 
733
    cfgfile="${ofile}T"
 
734
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
 
735
    $RM "$cfgfile"
 
736
 
 
737
    cat <<_LT_EOF >> "$cfgfile"
 
738
#! $SHELL
 
739
 
 
740
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
741
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
 
742
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
743
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
744
#
 
745
_LT_COPYING
 
746
_LT_LIBTOOL_TAGS
 
747
 
 
748
# ### BEGIN LIBTOOL CONFIG
 
749
_LT_LIBTOOL_CONFIG_VARS
 
750
_LT_LIBTOOL_TAG_VARS
 
751
# ### END LIBTOOL CONFIG
 
752
 
 
753
_LT_EOF
 
754
 
 
755
  case $host_os in
 
756
  aix3*)
 
757
    cat <<\_LT_EOF >> "$cfgfile"
 
758
# AIX sometimes has problems with the GCC collect2 program.  For some
 
759
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
760
# vanish in a puff of smoke.
 
761
if test "X${COLLECT_NAMES+set}" != Xset; then
 
762
  COLLECT_NAMES=
 
763
  export COLLECT_NAMES
 
764
fi
 
765
_LT_EOF
 
766
    ;;
 
767
  esac
 
768
 
 
769
  _LT_PROG_LTMAIN
 
770
 
 
771
  # We use sed instead of cat because bash on DJGPP gets confused if
 
772
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
773
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
774
  # is reportedly fixed, but why not run on old versions too?
 
775
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
 
776
    || (rm -f "$cfgfile"; exit 1)
 
777
 
 
778
  _LT_PROG_XSI_SHELLFNS
 
779
 
 
780
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
 
781
    || (rm -f "$cfgfile"; exit 1)
 
782
 
 
783
  mv -f "$cfgfile" "$ofile" ||
 
784
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
785
  chmod +x "$ofile"
 
786
],
 
787
[cat <<_LT_EOF >> "$ofile"
 
788
 
 
789
dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
 
790
dnl in a comment (ie after a #).
 
791
# ### BEGIN LIBTOOL TAG CONFIG: $1
 
792
_LT_LIBTOOL_TAG_VARS(_LT_TAG)
 
793
# ### END LIBTOOL TAG CONFIG: $1
 
794
_LT_EOF
 
795
])dnl /m4_if
 
796
],
 
797
[m4_if([$1], [], [
 
798
    PACKAGE='$PACKAGE'
 
799
    VERSION='$VERSION'
 
800
    TIMESTAMP='$TIMESTAMP'
 
801
    RM='$RM'
 
802
    ofile='$ofile'], [])
 
803
])dnl /_LT_CONFIG_SAVE_COMMANDS
 
804
])# _LT_CONFIG
 
805
 
 
806
 
 
807
# LT_SUPPORTED_TAG(TAG)
 
808
# ---------------------
 
809
# Trace this macro to discover what tags are supported by the libtool
 
810
# --tag option, using:
 
811
#    autoconf --trace 'LT_SUPPORTED_TAG:$1'
 
812
AC_DEFUN([LT_SUPPORTED_TAG], [])
 
813
 
 
814
 
 
815
# C support is built-in for now
 
816
m4_define([_LT_LANG_C_enabled], [])
 
817
m4_define([_LT_TAGS], [])
 
818
 
 
819
 
 
820
# LT_LANG(LANG)
 
821
# -------------
 
822
# Enable libtool support for the given language if not already enabled.
 
823
AC_DEFUN([LT_LANG],
 
824
[AC_BEFORE([$0], [LT_OUTPUT])dnl
 
825
m4_case([$1],
 
826
  [C],                  [_LT_LANG(C)],
 
827
  [C++],                [_LT_LANG(CXX)],
 
828
  [Java],               [_LT_LANG(GCJ)],
 
829
  [Fortran 77],         [_LT_LANG(F77)],
 
830
  [Fortran],            [_LT_LANG(FC)],
 
831
  [Windows Resource],   [_LT_LANG(RC)],
 
832
  [m4_ifdef([_LT_LANG_]$1[_CONFIG],
 
833
    [_LT_LANG($1)],
 
834
    [m4_fatal([$0: unsupported language: "$1"])])])dnl
 
835
])# LT_LANG
 
836
 
 
837
 
 
838
# _LT_LANG(LANGNAME)
 
839
# ------------------
 
840
m4_defun([_LT_LANG],
 
841
[m4_ifdef([_LT_LANG_]$1[_enabled], [],
 
842
  [LT_SUPPORTED_TAG([$1])dnl
 
843
  m4_append([_LT_TAGS], [$1 ])dnl
 
844
  m4_define([_LT_LANG_]$1[_enabled], [])dnl
 
845
  _LT_LANG_$1_CONFIG($1)])dnl
 
846
])# _LT_LANG
 
847
 
 
848
 
 
849
# _LT_LANG_DEFAULT_CONFIG
 
850
# -----------------------
 
851
m4_defun([_LT_LANG_DEFAULT_CONFIG],
 
852
[AC_PROVIDE_IFELSE([AC_PROG_CXX],
 
853
  [LT_LANG(CXX)],
 
854
  [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
 
855
 
 
856
AC_PROVIDE_IFELSE([AC_PROG_F77],
 
857
  [LT_LANG(F77)],
 
858
  [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
 
859
 
 
860
AC_PROVIDE_IFELSE([AC_PROG_FC],
 
861
  [LT_LANG(FC)],
 
862
  [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
 
863
 
 
864
dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
 
865
dnl pulling things in needlessly.
 
866
AC_PROVIDE_IFELSE([AC_PROG_GCJ],
 
867
  [LT_LANG(GCJ)],
 
868
  [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
 
869
    [LT_LANG(GCJ)],
 
870
    [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
 
871
      [LT_LANG(GCJ)],
 
872
      [m4_ifdef([AC_PROG_GCJ],
 
873
        [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
 
874
       m4_ifdef([A][M_PROG_GCJ],
 
875
        [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
 
876
       m4_ifdef([LT_PROG_GCJ],
 
877
        [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
 
878
 
 
879
AC_PROVIDE_IFELSE([LT_PROG_RC],
 
880
  [LT_LANG(RC)],
 
881
  [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
 
882
])# _LT_LANG_DEFAULT_CONFIG
 
883
 
 
884
# Obsolete macros:
 
885
AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
 
886
AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
 
887
AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
 
888
AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
 
889
dnl aclocal-1.4 backwards compatibility:
 
890
dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
 
891
dnl AC_DEFUN([AC_LIBTOOL_F77], [])
 
892
dnl AC_DEFUN([AC_LIBTOOL_FC], [])
 
893
dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
 
894
 
 
895
 
 
896
# _LT_TAG_COMPILER
 
897
# ----------------
 
898
m4_defun([_LT_TAG_COMPILER],
281
899
[AC_REQUIRE([AC_PROG_CC])dnl
282
900
 
 
901
_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
 
902
_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
 
903
_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
 
904
_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
 
905
 
283
906
# If no C compiler was specified, use CC.
284
907
LTCC=${LTCC-"$CC"}
285
908
 
288
911
 
289
912
# Allow CC to be a program name with arguments.
290
913
compiler=$CC
291
 
])# _LT_AC_SYS_COMPILER
292
 
 
293
 
 
294
 
# _LT_CC_BASENAME(CC)
295
 
# -------------------
296
 
# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
297
 
AC_DEFUN([_LT_CC_BASENAME],
298
 
[for cc_temp in $1""; do
299
 
  case $cc_temp in
300
 
    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
301
 
    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
302
 
    \-*) ;;
303
 
    *) break;;
304
 
  esac
305
 
done
306
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
307
 
])
 
914
])# _LT_TAG_COMPILER
308
915
 
309
916
 
310
917
# _LT_COMPILER_BOILERPLATE
311
918
# ------------------------
312
919
# Check for compiler boilerplate output or warnings with
313
920
# the simple compiler test code.
314
 
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
315
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
921
m4_defun([_LT_COMPILER_BOILERPLATE],
 
922
[m4_require([_LT_DECL_SED])dnl
316
923
ac_outfile=conftest.$ac_objext
317
924
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
318
925
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
319
926
_lt_compiler_boilerplate=`cat conftest.err`
320
 
$rm conftest*
 
927
$RM conftest*
321
928
])# _LT_COMPILER_BOILERPLATE
322
929
 
323
930
 
325
932
# ----------------------
326
933
# Check for linker boilerplate output or warnings with
327
934
# the simple link test code.
328
 
AC_DEFUN([_LT_LINKER_BOILERPLATE],
329
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
935
m4_defun([_LT_LINKER_BOILERPLATE],
 
936
[m4_require([_LT_DECL_SED])dnl
330
937
ac_outfile=conftest.$ac_objext
331
938
echo "$lt_simple_link_test_code" >conftest.$ac_ext
332
939
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
333
940
_lt_linker_boilerplate=`cat conftest.err`
334
 
$rm -r conftest*
 
941
$RM -r conftest*
335
942
])# _LT_LINKER_BOILERPLATE
336
943
 
337
944
# _LT_REQUIRED_DARWIN_CHECKS
338
 
# --------------------------
339
 
# Check for some things on darwin
340
 
AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[
 
945
# -------------------------
 
946
m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
341
947
  case $host_os in
342
948
    rhapsody* | darwin*)
343
949
    AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
344
950
    AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
 
951
    AC_CHECK_TOOL([LIPO], [lipo], [:])
 
952
    AC_CHECK_TOOL([OTOOL], [otool], [:])
 
953
    AC_CHECK_TOOL([OTOOL64], [otool64], [:])
 
954
    _LT_DECL([], [DSYMUTIL], [1],
 
955
      [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
 
956
    _LT_DECL([], [NMEDIT], [1],
 
957
      [Tool to change global to local symbols on Mac OS X])
 
958
    _LT_DECL([], [LIPO], [1],
 
959
      [Tool to manipulate fat objects and archives on Mac OS X])
 
960
    _LT_DECL([], [OTOOL], [1],
 
961
      [ldd/readelf like tool for Mach-O binaries on Mac OS X])
 
962
    _LT_DECL([], [OTOOL64], [1],
 
963
      [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
345
964
 
346
965
    AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
347
966
      [lt_cv_apple_cc_single_mod=no
348
967
      if test -z "${LT_MULTI_MODULE}"; then
349
 
   # By default we will add the -single_module flag. You can override
350
 
   # by either setting the environment variable LT_MULTI_MODULE
351
 
   # non-empty at configure time, or by adding -multi_module to the
352
 
   # link flags.
353
 
   echo "int foo(void){return 1;}" > conftest.c
354
 
   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
355
 
     -dynamiclib ${wl}-single_module conftest.c
356
 
   if test -f libconftest.dylib; then
357
 
     lt_cv_apple_cc_single_mod=yes
358
 
     rm -rf libconftest.dylib*
359
 
   fi
360
 
   rm conftest.c
 
968
        # By default we will add the -single_module flag. You can override
 
969
        # by either setting the environment variable LT_MULTI_MODULE
 
970
        # non-empty at configure time, or by adding -multi_module to the
 
971
        # link flags.
 
972
        rm -rf libconftest.dylib*
 
973
        echo "int foo(void){return 1;}" > conftest.c
 
974
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
975
-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
 
976
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
977
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
 
978
        _lt_result=$?
 
979
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
 
980
          lt_cv_apple_cc_single_mod=yes
 
981
        else
 
982
          cat conftest.err >&AS_MESSAGE_LOG_FD
 
983
        fi
 
984
        rm -rf libconftest.dylib*
 
985
        rm -f conftest.*
361
986
      fi])
362
987
    AC_CACHE_CHECK([for -exported_symbols_list linker flag],
363
988
      [lt_cv_ld_exported_symbols_list],
366
991
      echo "_main" > conftest.sym
367
992
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
368
993
      AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
369
 
   [lt_cv_ld_exported_symbols_list=yes],
370
 
   [lt_cv_ld_exported_symbols_list=no])
371
 
   LDFLAGS="$save_LDFLAGS"
 
994
        [lt_cv_ld_exported_symbols_list=yes],
 
995
        [lt_cv_ld_exported_symbols_list=no])
 
996
        LDFLAGS="$save_LDFLAGS"
372
997
    ])
373
998
    case $host_os in
374
 
    rhapsody* | darwin1.[[0123]])
 
999
    rhapsody* | darwin1.[[012]])
375
1000
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
376
1001
    darwin1.*)
377
 
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
378
 
    darwin*)
 
1002
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
1003
    darwin*) # darwin 5.x on
379
1004
      # if running on 10.5 or later, the deployment target defaults
380
1005
      # to the OS version, if on x86, and 10.4, the deployment
381
1006
      # target defaults to 10.4. Don't you love it?
382
1007
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
383
 
   10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
384
 
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
385
 
   10.[[012]]*)
386
 
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
387
 
   10.*)
388
 
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
1008
        10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
 
1009
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
1010
        10.[[012]]*)
 
1011
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
1012
        10.*)
 
1013
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
389
1014
      esac
390
1015
    ;;
391
1016
  esac
395
1020
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
396
1021
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
397
1022
    else
398
 
      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
 
1023
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
399
1024
    fi
400
1025
    if test "$DSYMUTIL" != ":"; then
401
 
      _lt_dsymutil="~$DSYMUTIL \$lib || :"
 
1026
      _lt_dsymutil='~$DSYMUTIL $lib || :'
402
1027
    else
403
1028
      _lt_dsymutil=
404
1029
    fi
406
1031
  esac
407
1032
])
408
1033
 
409
 
# _LT_AC_SYS_LIBPATH_AIX
410
 
# ----------------------
 
1034
 
 
1035
# _LT_DARWIN_LINKER_FEATURES
 
1036
# --------------------------
 
1037
# Checks for linker and compiler features on darwin
 
1038
m4_defun([_LT_DARWIN_LINKER_FEATURES],
 
1039
[
 
1040
  m4_require([_LT_REQUIRED_DARWIN_CHECKS])
 
1041
  _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
1042
  _LT_TAGVAR(hardcode_direct, $1)=no
 
1043
  _LT_TAGVAR(hardcode_automatic, $1)=yes
 
1044
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
1045
  _LT_TAGVAR(whole_archive_flag_spec, $1)=''
 
1046
  _LT_TAGVAR(link_all_deplibs, $1)=yes
 
1047
  _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
 
1048
  case $cc_basename in
 
1049
     ifort*) _lt_dar_can_shared=yes ;;
 
1050
     *) _lt_dar_can_shared=$GCC ;;
 
1051
  esac
 
1052
  if test "$_lt_dar_can_shared" = "yes"; then
 
1053
    output_verbose_link_cmd=echo
 
1054
    _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}"
 
1055
    _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
1056
    _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}"
 
1057
    _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}"
 
1058
    m4_if([$1], [CXX],
 
1059
[   if test "$lt_cv_apple_cc_single_mod" != "yes"; then
 
1060
      _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}"
 
1061
      _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}"
 
1062
    fi
 
1063
],[])
 
1064
  else
 
1065
  _LT_TAGVAR(ld_shlibs, $1)=no
 
1066
  fi
 
1067
])
 
1068
 
 
1069
# _LT_SYS_MODULE_PATH_AIX
 
1070
# -----------------------
411
1071
# Links a minimal program and checks the executable
412
1072
# for the system default hardcoded library path. In most cases,
413
1073
# this is /usr/lib:/lib, but when the MPI compilers are used
414
1074
# the location of the communication and MPI libs are included too.
415
1075
# If we don't find anything, use the default library path according
416
1076
# to the aix ld manual.
417
 
AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
418
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1077
m4_defun([_LT_SYS_MODULE_PATH_AIX],
 
1078
[m4_require([_LT_DECL_SED])dnl
419
1079
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
420
1080
lt_aix_libpath_sed='
421
1081
    /Import File Strings/,/^$/ {
430
1090
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
431
1091
fi],[])
432
1092
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
433
 
])# _LT_AC_SYS_LIBPATH_AIX
434
 
 
435
 
 
436
 
# _LT_AC_SHELL_INIT(ARG)
437
 
# ----------------------
438
 
AC_DEFUN([_LT_AC_SHELL_INIT],
 
1093
])# _LT_SYS_MODULE_PATH_AIX
 
1094
 
 
1095
 
 
1096
# _LT_SHELL_INIT(ARG)
 
1097
# -------------------
 
1098
m4_define([_LT_SHELL_INIT],
439
1099
[ifdef([AC_DIVERSION_NOTICE],
440
1100
             [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
441
1101
         [AC_DIVERT_PUSH(NOTICE)])
442
1102
$1
443
1103
AC_DIVERT_POP
444
 
])# _LT_AC_SHELL_INIT
445
 
 
446
 
 
447
 
# _LT_AC_PROG_ECHO_BACKSLASH
448
 
# --------------------------
 
1104
])# _LT_SHELL_INIT
 
1105
 
 
1106
 
 
1107
# _LT_PROG_ECHO_BACKSLASH
 
1108
# -----------------------
449
1109
# Add some code to the start of the generated configure script which
450
1110
# will find an echo command which doesn't interpret backslashes.
451
 
AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
452
 
[_LT_AC_SHELL_INIT([
 
1111
m4_defun([_LT_PROG_ECHO_BACKSLASH],
 
1112
[_LT_SHELL_INIT([
453
1113
# Check that we are running under the correct shell.
454
1114
SHELL=${CONFIG_SHELL-/bin/sh}
455
1115
 
456
 
case X$ECHO in
 
1116
case X$lt_ECHO in
457
1117
X*--fallback-echo)
458
1118
  # Remove one level of quotation (which was required for Make).
459
 
  ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
 
1119
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
460
1120
  ;;
461
1121
esac
462
1122
 
463
 
echo=${ECHO-echo}
 
1123
ECHO=${lt_ECHO-echo}
464
1124
if test "X[$]1" = X--no-reexec; then
465
1125
  # Discard the --no-reexec flag, and continue.
466
1126
  shift
467
1127
elif test "X[$]1" = X--fallback-echo; then
468
1128
  # Avoid inline document here, it may be left over
469
1129
  :
470
 
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
471
 
  # Yippee, $echo works!
 
1130
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
 
1131
  # Yippee, $ECHO works!
472
1132
  :
473
1133
else
474
1134
  # Restart under the correct shell.
478
1138
if test "X[$]1" = X--fallback-echo; then
479
1139
  # used as fallback echo
480
1140
  shift
481
 
  cat <<EOF
 
1141
  cat <<_LT_EOF
482
1142
[$]*
483
 
EOF
 
1143
_LT_EOF
484
1144
  exit 0
485
1145
fi
486
1146
 
488
1148
# if CDPATH is set.
489
1149
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
490
1150
 
491
 
if test -z "$ECHO"; then
492
 
if test "X${echo_test_string+set}" != Xset; then
493
 
# find a string as large as possible, as long as the shell can cope with it
494
 
  for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
495
 
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
496
 
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
497
 
       echo_test_string=`eval $cmd` &&
498
 
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
499
 
    then
500
 
      break
501
 
    fi
502
 
  done
503
 
fi
504
 
 
505
 
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
506
 
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
507
 
   test "X$echo_testing_string" = "X$echo_test_string"; then
508
 
  :
509
 
else
510
 
  # The Solaris, AIX, and Digital Unix default echo programs unquote
511
 
  # backslashes.  This makes it impossible to quote backslashes using
512
 
  #   echo "$something" | sed 's/\\/\\\\/g'
513
 
  #
514
 
  # So, first we look for a working echo in the user's PATH.
515
 
 
516
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
517
 
  for dir in $PATH /usr/ucb; do
 
1151
if test -z "$lt_ECHO"; then
 
1152
  if test "X${echo_test_string+set}" != Xset; then
 
1153
    # find a string as large as possible, as long as the shell can cope with it
 
1154
    for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
 
1155
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
1156
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
 
1157
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
 
1158
      then
 
1159
        break
 
1160
      fi
 
1161
    done
 
1162
  fi
 
1163
 
 
1164
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
 
1165
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
 
1166
     test "X$echo_testing_string" = "X$echo_test_string"; then
 
1167
    :
 
1168
  else
 
1169
    # The Solaris, AIX, and Digital Unix default echo programs unquote
 
1170
    # backslashes.  This makes it impossible to quote backslashes using
 
1171
    #   echo "$something" | sed 's/\\/\\\\/g'
 
1172
    #
 
1173
    # So, first we look for a working echo in the user's PATH.
 
1174
 
 
1175
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
1176
    for dir in $PATH /usr/ucb; do
 
1177
      IFS="$lt_save_ifs"
 
1178
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
1179
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
1180
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
1181
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
1182
        ECHO="$dir/echo"
 
1183
        break
 
1184
      fi
 
1185
    done
518
1186
    IFS="$lt_save_ifs"
519
 
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
520
 
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
521
 
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
522
 
       test "X$echo_testing_string" = "X$echo_test_string"; then
523
 
      echo="$dir/echo"
524
 
      break
525
 
    fi
526
 
  done
527
 
  IFS="$lt_save_ifs"
528
1187
 
529
 
  if test "X$echo" = Xecho; then
530
 
    # We didn't find a better echo, so look for alternatives.
531
 
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
532
 
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
533
 
       test "X$echo_testing_string" = "X$echo_test_string"; then
534
 
      # This shell has a builtin print -r that does the trick.
535
 
      echo='print -r'
536
 
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
537
 
         test "X$CONFIG_SHELL" != X/bin/ksh; then
538
 
      # If we have ksh, try running configure again with it.
539
 
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
540
 
      export ORIGINAL_CONFIG_SHELL
541
 
      CONFIG_SHELL=/bin/ksh
542
 
      export CONFIG_SHELL
543
 
      exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
544
 
    else
545
 
      # Try using printf.
546
 
      echo='printf %s\n'
547
 
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
548
 
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
549
 
         test "X$echo_testing_string" = "X$echo_test_string"; then
550
 
        # Cool, printf works
551
 
        :
552
 
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
553
 
           test "X$echo_testing_string" = 'X\t' &&
554
 
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
555
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
556
 
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
557
 
        export CONFIG_SHELL
558
 
        SHELL="$CONFIG_SHELL"
559
 
        export SHELL
560
 
        echo="$CONFIG_SHELL [$]0 --fallback-echo"
561
 
      elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
562
 
           test "X$echo_testing_string" = 'X\t' &&
563
 
           echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
564
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
565
 
        echo="$CONFIG_SHELL [$]0 --fallback-echo"
 
1188
    if test "X$ECHO" = Xecho; then
 
1189
      # We didn't find a better echo, so look for alternatives.
 
1190
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
 
1191
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
 
1192
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
1193
        # This shell has a builtin print -r that does the trick.
 
1194
        ECHO='print -r'
 
1195
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
 
1196
           test "X$CONFIG_SHELL" != X/bin/ksh; then
 
1197
        # If we have ksh, try running configure again with it.
 
1198
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
1199
        export ORIGINAL_CONFIG_SHELL
 
1200
        CONFIG_SHELL=/bin/ksh
 
1201
        export CONFIG_SHELL
 
1202
        exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
566
1203
      else
567
 
        # maybe with a smaller string...
568
 
        prev=:
569
 
 
570
 
        for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
571
 
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
572
 
          then
573
 
            break
 
1204
        # Try using printf.
 
1205
        ECHO='printf %s\n'
 
1206
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
 
1207
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
 
1208
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
1209
          # Cool, printf works
 
1210
          :
 
1211
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
 
1212
             test "X$echo_testing_string" = 'X\t' &&
 
1213
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
1214
             test "X$echo_testing_string" = "X$echo_test_string"; then
 
1215
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
1216
          export CONFIG_SHELL
 
1217
          SHELL="$CONFIG_SHELL"
 
1218
          export SHELL
 
1219
          ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
 
1220
        elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
 
1221
             test "X$echo_testing_string" = 'X\t' &&
 
1222
             echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
1223
             test "X$echo_testing_string" = "X$echo_test_string"; then
 
1224
          ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
 
1225
        else
 
1226
          # maybe with a smaller string...
 
1227
          prev=:
 
1228
 
 
1229
          for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
 
1230
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
 
1231
            then
 
1232
              break
 
1233
            fi
 
1234
            prev="$cmd"
 
1235
          done
 
1236
 
 
1237
          if test "$prev" != 'sed 50q "[$]0"'; then
 
1238
            echo_test_string=`eval $prev`
 
1239
            export echo_test_string
 
1240
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
 
1241
          else
 
1242
            # Oops.  We lost completely, so just stick with echo.
 
1243
            ECHO=echo
574
1244
          fi
575
 
          prev="$cmd"
576
 
        done
577
 
 
578
 
        if test "$prev" != 'sed 50q "[$]0"'; then
579
 
          echo_test_string=`eval $prev`
580
 
          export echo_test_string
581
 
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
582
 
        else
583
 
          # Oops.  We lost completely, so just stick with echo.
584
 
          echo=echo
585
 
        fi
 
1245
        fi
586
1246
      fi
587
1247
    fi
588
1248
  fi
589
1249
fi
590
 
fi
591
1250
 
592
1251
# Copy echo and quote the copy suitably for passing to libtool from
593
1252
# the Makefile, instead of quoting the original, which is used later.
594
 
ECHO=$echo
595
 
if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
596
 
   ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
 
1253
lt_ECHO=$ECHO
 
1254
if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
 
1255
   lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
597
1256
fi
598
1257
 
599
 
AC_SUBST(ECHO)
600
 
])])# _LT_AC_PROG_ECHO_BACKSLASH
601
 
 
602
 
 
603
 
# _LT_AC_LOCK
604
 
# -----------
605
 
AC_DEFUN([_LT_AC_LOCK],
 
1258
AC_SUBST(lt_ECHO)
 
1259
])
 
1260
_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
 
1261
_LT_DECL([], [ECHO], [1],
 
1262
    [An echo program that does not interpret backslashes])
 
1263
])# _LT_PROG_ECHO_BACKSLASH
 
1264
 
 
1265
 
 
1266
# _LT_ENABLE_LOCK
 
1267
# ---------------
 
1268
m4_defun([_LT_ENABLE_LOCK],
606
1269
[AC_ARG_ENABLE([libtool-lock],
607
 
    [AC_HELP_STRING([--disable-libtool-lock],
608
 
        [avoid locking (might break parallel builds)])])
 
1270
  [AS_HELP_STRING([--disable-libtool-lock],
 
1271
    [avoid locking (might break parallel builds)])])
609
1272
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
610
1273
 
611
1274
# Some flags need to be propagated to the compiler or linker for good
616
1279
  echo 'int i;' > conftest.$ac_ext
617
1280
  if AC_TRY_EVAL(ac_compile); then
618
1281
    case `/usr/bin/file conftest.$ac_objext` in
619
 
    *ELF-32*)
620
 
      HPUX_IA64_MODE="32"
621
 
      ;;
622
 
    *ELF-64*)
623
 
      HPUX_IA64_MODE="64"
624
 
      ;;
 
1282
      *ELF-32*)
 
1283
        HPUX_IA64_MODE="32"
 
1284
        ;;
 
1285
      *ELF-64*)
 
1286
        HPUX_IA64_MODE="64"
 
1287
        ;;
625
1288
    esac
626
1289
  fi
627
1290
  rm -rf conftest*
630
1293
  # Find out which ABI we are using.
631
1294
  echo '[#]line __oline__ "configure"' > conftest.$ac_ext
632
1295
  if AC_TRY_EVAL(ac_compile); then
633
 
   if test "$lt_cv_prog_gnu_ld" = yes; then
634
 
    case `/usr/bin/file conftest.$ac_objext` in
635
 
    *32-bit*)
636
 
      LD="${LD-ld} -melf32bsmip"
637
 
      ;;
638
 
    *N32*)
639
 
      LD="${LD-ld} -melf32bmipn32"
640
 
      ;;
641
 
    *64-bit*)
642
 
      LD="${LD-ld} -melf64bmip"
643
 
      ;;
644
 
    esac
645
 
   else
646
 
    case `/usr/bin/file conftest.$ac_objext` in
647
 
    *32-bit*)
648
 
      LD="${LD-ld} -32"
649
 
      ;;
650
 
    *N32*)
651
 
      LD="${LD-ld} -n32"
652
 
      ;;
653
 
    *64-bit*)
654
 
      LD="${LD-ld} -64"
655
 
      ;;
656
 
    esac
657
 
   fi
 
1296
    if test "$lt_cv_prog_gnu_ld" = yes; then
 
1297
      case `/usr/bin/file conftest.$ac_objext` in
 
1298
        *32-bit*)
 
1299
          LD="${LD-ld} -melf32bsmip"
 
1300
          ;;
 
1301
        *N32*)
 
1302
          LD="${LD-ld} -melf32bmipn32"
 
1303
          ;;
 
1304
        *64-bit*)
 
1305
          LD="${LD-ld} -melf64bmip"
 
1306
        ;;
 
1307
      esac
 
1308
    else
 
1309
      case `/usr/bin/file conftest.$ac_objext` in
 
1310
        *32-bit*)
 
1311
          LD="${LD-ld} -32"
 
1312
          ;;
 
1313
        *N32*)
 
1314
          LD="${LD-ld} -n32"
 
1315
          ;;
 
1316
        *64-bit*)
 
1317
          LD="${LD-ld} -64"
 
1318
          ;;
 
1319
      esac
 
1320
    fi
658
1321
  fi
659
1322
  rm -rf conftest*
660
1323
  ;;
661
1324
 
662
1325
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
663
 
s390*-*linux*|sparc*-*linux*)
 
1326
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
664
1327
  # Find out which ABI we are using.
665
1328
  echo 'int i;' > conftest.$ac_ext
666
1329
  if AC_TRY_EVAL(ac_compile); then
667
1330
    case `/usr/bin/file conftest.o` in
668
 
    *32-bit*)
669
 
      case $host in
670
 
        x86_64-*kfreebsd*-gnu)
671
 
          LD="${LD-ld} -m elf_i386_fbsd"
672
 
          ;;
673
 
        x86_64-*linux*)
674
 
          LD="${LD-ld} -m elf_i386"
675
 
          ;;
676
 
        ppc64-*linux*|powerpc64-*linux*)
677
 
          LD="${LD-ld} -m elf32ppclinux"
678
 
          ;;
679
 
        s390x-*linux*)
680
 
          LD="${LD-ld} -m elf_s390"
681
 
          ;;
682
 
        sparc64-*linux*)
683
 
          LD="${LD-ld} -m elf32_sparc"
684
 
          ;;
685
 
      esac
686
 
      ;;
687
 
    *64-bit*)
688
 
      libsuff=64
689
 
      case $host in
690
 
        x86_64-*kfreebsd*-gnu)
691
 
          LD="${LD-ld} -m elf_x86_64_fbsd"
692
 
          ;;
693
 
        x86_64-*linux*)
694
 
          LD="${LD-ld} -m elf_x86_64"
695
 
          ;;
696
 
        ppc*-*linux*|powerpc*-*linux*)
697
 
          LD="${LD-ld} -m elf64ppc"
698
 
          ;;
699
 
        s390*-*linux*)
700
 
          LD="${LD-ld} -m elf64_s390"
701
 
          ;;
702
 
        sparc*-*linux*)
703
 
          LD="${LD-ld} -m elf64_sparc"
704
 
          ;;
705
 
      esac
706
 
      ;;
 
1331
      *32-bit*)
 
1332
        case $host in
 
1333
          x86_64-*kfreebsd*-gnu)
 
1334
            LD="${LD-ld} -m elf_i386_fbsd"
 
1335
            ;;
 
1336
          x86_64-*linux*)
 
1337
            LD="${LD-ld} -m elf_i386"
 
1338
            ;;
 
1339
          ppc64-*linux*|powerpc64-*linux*)
 
1340
            LD="${LD-ld} -m elf32ppclinux"
 
1341
            ;;
 
1342
          s390x-*linux*)
 
1343
            LD="${LD-ld} -m elf_s390"
 
1344
            ;;
 
1345
          sparc64-*linux*)
 
1346
            LD="${LD-ld} -m elf32_sparc"
 
1347
            ;;
 
1348
        esac
 
1349
        ;;
 
1350
      *64-bit*)
 
1351
        case $host in
 
1352
          x86_64-*kfreebsd*-gnu)
 
1353
            LD="${LD-ld} -m elf_x86_64_fbsd"
 
1354
            ;;
 
1355
          x86_64-*linux*)
 
1356
            LD="${LD-ld} -m elf_x86_64"
 
1357
            ;;
 
1358
          ppc*-*linux*|powerpc*-*linux*)
 
1359
            LD="${LD-ld} -m elf64ppc"
 
1360
            ;;
 
1361
          s390*-*linux*|s390*-*tpf*)
 
1362
            LD="${LD-ld} -m elf64_s390"
 
1363
            ;;
 
1364
          sparc*-*linux*)
 
1365
            LD="${LD-ld} -m elf64_sparc"
 
1366
            ;;
 
1367
        esac
 
1368
        ;;
707
1369
    esac
708
1370
  fi
709
1371
  rm -rf conftest*
715
1377
  CFLAGS="$CFLAGS -belf"
716
1378
  AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
717
1379
    [AC_LANG_PUSH(C)
718
 
     AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
 
1380
     AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
719
1381
     AC_LANG_POP])
720
1382
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
721
1383
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
731
1393
      case $lt_cv_prog_gnu_ld in
732
1394
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
733
1395
      *)
734
 
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
1396
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
735
1397
          LD="${LD-ld} -64"
736
1398
        fi
737
1399
        ;;
741
1403
  fi
742
1404
  rm -rf conftest*
743
1405
  ;;
744
 
 
745
 
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
746
 
[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
747
 
  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
748
 
  AC_CHECK_TOOL(AS, as, false)
749
 
  AC_CHECK_TOOL(OBJDUMP, objdump, false)
750
 
  ;;
751
 
  ])
752
1406
esac
753
1407
 
754
1408
need_locks="$enable_libtool_lock"
755
 
 
756
 
])# _LT_AC_LOCK
757
 
 
758
 
 
759
 
# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
 
1409
])# _LT_ENABLE_LOCK
 
1410
 
 
1411
 
 
1412
# _LT_CMD_OLD_ARCHIVE
 
1413
# -------------------
 
1414
m4_defun([_LT_CMD_OLD_ARCHIVE],
 
1415
[AC_CHECK_TOOL(AR, ar, false)
 
1416
test -z "$AR" && AR=ar
 
1417
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
1418
_LT_DECL([], [AR], [1], [The archiver])
 
1419
_LT_DECL([], [AR_FLAGS], [1])
 
1420
 
 
1421
AC_CHECK_TOOL(STRIP, strip, :)
 
1422
test -z "$STRIP" && STRIP=:
 
1423
_LT_DECL([], [STRIP], [1], [A symbol stripping program])
 
1424
 
 
1425
AC_CHECK_TOOL(RANLIB, ranlib, :)
 
1426
test -z "$RANLIB" && RANLIB=:
 
1427
_LT_DECL([], [RANLIB], [1],
 
1428
    [Commands used to install an old-style archive])
 
1429
 
 
1430
# Determine commands to create old-style static archives.
 
1431
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
1432
old_postinstall_cmds='chmod 644 $oldlib'
 
1433
old_postuninstall_cmds=
 
1434
 
 
1435
if test -n "$RANLIB"; then
 
1436
  case $host_os in
 
1437
  openbsd*)
 
1438
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
1439
    ;;
 
1440
  *)
 
1441
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
1442
    ;;
 
1443
  esac
 
1444
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
1445
fi
 
1446
_LT_DECL([], [old_postinstall_cmds], [2])
 
1447
_LT_DECL([], [old_postuninstall_cmds], [2])
 
1448
_LT_TAGDECL([], [old_archive_cmds], [2],
 
1449
    [Commands used to build an old-style archive])
 
1450
])# _LT_CMD_OLD_ARCHIVE
 
1451
 
 
1452
 
 
1453
# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
760
1454
#               [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
761
1455
# ----------------------------------------------------------------
762
1456
# Check whether the given compiler option works
763
 
AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
764
 
[AC_REQUIRE([LT_AC_PROG_SED])
 
1457
AC_DEFUN([_LT_COMPILER_OPTION],
 
1458
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
1459
m4_require([_LT_DECL_SED])dnl
765
1460
AC_CACHE_CHECK([$1], [$2],
766
1461
  [$2=no
767
 
  ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
 
1462
   m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
768
1463
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
769
1464
   lt_compiler_flag="$3"
770
1465
   # Insert the option either (1) after the last *FLAGS variable, or
784
1479
   if (exit $ac_status) && test -s "$ac_outfile"; then
785
1480
     # The compiler can only warn and ignore the option if not recognized
786
1481
     # So say no if there are warnings other than the usual output.
787
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
1482
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
788
1483
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
789
1484
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
790
1485
       $2=yes
791
1486
     fi
792
1487
   fi
793
 
   $rm conftest*
 
1488
   $RM conftest*
794
1489
])
795
1490
 
796
1491
if test x"[$]$2" = xyes; then
797
 
    ifelse([$5], , :, [$5])
 
1492
    m4_if([$5], , :, [$5])
798
1493
else
799
 
    ifelse([$6], , :, [$6])
 
1494
    m4_if([$6], , :, [$6])
800
1495
fi
801
 
])# AC_LIBTOOL_COMPILER_OPTION
802
 
 
803
 
 
804
 
# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
805
 
#                          [ACTION-SUCCESS], [ACTION-FAILURE])
806
 
# ------------------------------------------------------------
807
 
# Check whether the given compiler option works
808
 
AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
809
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1496
])# _LT_COMPILER_OPTION
 
1497
 
 
1498
# Old name:
 
1499
AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
 
1500
dnl aclocal-1.4 backwards compatibility:
 
1501
dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
 
1502
 
 
1503
 
 
1504
# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
 
1505
#                  [ACTION-SUCCESS], [ACTION-FAILURE])
 
1506
# ----------------------------------------------------
 
1507
# Check whether the given linker option works
 
1508
AC_DEFUN([_LT_LINKER_OPTION],
 
1509
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
1510
m4_require([_LT_DECL_SED])dnl
810
1511
AC_CACHE_CHECK([$1], [$2],
811
1512
  [$2=no
812
1513
   save_LDFLAGS="$LDFLAGS"
818
1519
     if test -s conftest.err; then
819
1520
       # Append any errors to the config.log.
820
1521
       cat conftest.err 1>&AS_MESSAGE_LOG_FD
821
 
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
1522
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
822
1523
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
823
1524
       if diff conftest.exp conftest.er2 >/dev/null; then
824
1525
         $2=yes
827
1528
       $2=yes
828
1529
     fi
829
1530
   fi
830
 
   $rm -r conftest*
 
1531
   $RM -r conftest*
831
1532
   LDFLAGS="$save_LDFLAGS"
832
1533
])
833
1534
 
834
1535
if test x"[$]$2" = xyes; then
835
 
    ifelse([$4], , :, [$4])
 
1536
    m4_if([$4], , :, [$4])
836
1537
else
837
 
    ifelse([$5], , :, [$5])
 
1538
    m4_if([$5], , :, [$5])
838
1539
fi
839
 
])# AC_LIBTOOL_LINKER_OPTION
840
 
 
841
 
 
842
 
# AC_LIBTOOL_SYS_MAX_CMD_LEN
843
 
# --------------------------
844
 
AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
845
 
[# find the maximum length of command line arguments
 
1540
])# _LT_LINKER_OPTION
 
1541
 
 
1542
# Old name:
 
1543
AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
 
1544
dnl aclocal-1.4 backwards compatibility:
 
1545
dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
 
1546
 
 
1547
 
 
1548
# LT_CMD_MAX_LEN
 
1549
#---------------
 
1550
AC_DEFUN([LT_CMD_MAX_LEN],
 
1551
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
1552
# find the maximum length of command line arguments
846
1553
AC_MSG_CHECKING([the maximum length of command line arguments])
847
1554
AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
848
1555
  i=0
864
1571
    lt_cv_sys_max_cmd_len=-1;
865
1572
    ;;
866
1573
 
867
 
  cygwin* | mingw*)
 
1574
  cygwin* | mingw* | cegcc*)
868
1575
    # On Win9x/ME, this test blows up -- it succeeds, but takes
869
1576
    # about 5 minutes as the teststring grows exponentially.
870
1577
    # Worse, since 9x/ME are not pre-emptively multitasking,
919
1626
  sysv5* | sco5v6* | sysv4.2uw2*)
920
1627
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
921
1628
    if test -n "$kargmax"; then
922
 
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[        ]]//'`
 
1629
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[         ]]//'`
923
1630
    else
924
1631
      lt_cv_sys_max_cmd_len=32768
925
1632
    fi
930
1637
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
931
1638
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
932
1639
    else
 
1640
      # Make teststring a little bigger before we do anything with it.
 
1641
      # a 1K string should be a reasonable start.
 
1642
      for i in 1 2 3 4 5 6 7 8 ; do
 
1643
        teststring=$teststring$teststring
 
1644
      done
933
1645
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
934
 
      while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
935
 
               = "XX$teststring") >/dev/null 2>&1 &&
936
 
              new_result=`expr "X$teststring" : ".*" 2>&1` &&
937
 
              lt_cv_sys_max_cmd_len=$new_result &&
 
1646
      # If test is not a shell built-in, we'll probably end up computing a
 
1647
      # maximum length that is only half of the actual maximum length, but
 
1648
      # we can't tell.
 
1649
      while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
 
1650
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
938
1651
              test $i != 17 # 1/2 MB should be enough
939
1652
      do
940
1653
        i=`expr $i + 1`
941
1654
        teststring=$teststring$teststring
942
1655
      done
 
1656
      # Only check the string length outside the loop.
 
1657
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
943
1658
      teststring=
944
 
      # Add a significant safety factor because C++ compilers can tack on massive
945
 
      # amounts of additional arguments before passing them to the linker.
946
 
      # It appears as though 1/2 is a usable value.
 
1659
      # Add a significant safety factor because C++ compilers can tack on
 
1660
      # massive amounts of additional arguments before passing them to the
 
1661
      # linker.  It appears as though 1/2 is a usable value.
947
1662
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
948
1663
    fi
949
1664
    ;;
954
1669
else
955
1670
  AC_MSG_RESULT(none)
956
1671
fi
957
 
])# AC_LIBTOOL_SYS_MAX_CMD_LEN
958
 
 
959
 
 
960
 
# _LT_AC_CHECK_DLFCN
961
 
# ------------------
962
 
AC_DEFUN([_LT_AC_CHECK_DLFCN],
963
 
[AC_CHECK_HEADERS(dlfcn.h)dnl
964
 
])# _LT_AC_CHECK_DLFCN
965
 
 
966
 
 
967
 
# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
968
 
#                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
969
 
# ---------------------------------------------------------------------
970
 
AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
971
 
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
 
1672
max_cmd_len=$lt_cv_sys_max_cmd_len
 
1673
_LT_DECL([], [max_cmd_len], [0],
 
1674
    [What is the maximum length of a command?])
 
1675
])# LT_CMD_MAX_LEN
 
1676
 
 
1677
# Old name:
 
1678
AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
 
1679
dnl aclocal-1.4 backwards compatibility:
 
1680
dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
 
1681
 
 
1682
 
 
1683
# _LT_HEADER_DLFCN
 
1684
# ----------------
 
1685
m4_defun([_LT_HEADER_DLFCN],
 
1686
[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
 
1687
])# _LT_HEADER_DLFCN
 
1688
 
 
1689
 
 
1690
# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
 
1691
#                      ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
 
1692
# ----------------------------------------------------------------
 
1693
m4_defun([_LT_TRY_DLOPEN_SELF],
 
1694
[m4_require([_LT_HEADER_DLFCN])dnl
972
1695
if test "$cross_compiling" = yes; then :
973
1696
  [$4]
974
1697
else
975
1698
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
976
1699
  lt_status=$lt_dlunknown
977
 
  cat > conftest.$ac_ext <<EOF
 
1700
  cat > conftest.$ac_ext <<_LT_EOF
978
1701
[#line __oline__ "configure"
979
1702
#include "confdefs.h"
980
1703
 
1016
1739
#  endif
1017
1740
#endif
1018
1741
 
1019
 
#ifdef __cplusplus
1020
 
extern "C" void exit (int);
1021
 
#endif
1022
 
 
1023
1742
void fnord() { int i=42;}
1024
1743
int main ()
1025
1744
{
1035
1754
  else
1036
1755
    puts (dlerror ());
1037
1756
 
1038
 
    exit (status);
 
1757
  return status;
1039
1758
}]
1040
 
EOF
 
1759
_LT_EOF
1041
1760
  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
1042
1761
    (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
1043
1762
    lt_status=$?
1052
1771
  fi
1053
1772
fi
1054
1773
rm -fr conftest*
1055
 
])# _LT_AC_TRY_DLOPEN_SELF
1056
 
 
1057
 
 
1058
 
# AC_LIBTOOL_DLOPEN_SELF
1059
 
# ----------------------
1060
 
AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
1061
 
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
 
1774
])# _LT_TRY_DLOPEN_SELF
 
1775
 
 
1776
 
 
1777
# LT_SYS_DLOPEN_SELF
 
1778
# ------------------
 
1779
AC_DEFUN([LT_SYS_DLOPEN_SELF],
 
1780
[m4_require([_LT_HEADER_DLFCN])dnl
1062
1781
if test "x$enable_dlopen" != xyes; then
1063
1782
  enable_dlopen=unknown
1064
1783
  enable_dlopen_self=unknown
1074
1793
    lt_cv_dlopen_self=yes
1075
1794
    ;;
1076
1795
 
1077
 
  mingw* | pw32*)
 
1796
  mingw* | pw32* | cegcc*)
1078
1797
    lt_cv_dlopen="LoadLibrary"
1079
1798
    lt_cv_dlopen_libs=
1080
 
   ;;
 
1799
    ;;
1081
1800
 
1082
1801
  cygwin*)
1083
1802
    lt_cv_dlopen="dlopen"
1084
1803
    lt_cv_dlopen_libs=
1085
 
   ;;
 
1804
    ;;
1086
1805
 
1087
1806
  darwin*)
1088
1807
  # if libdl is installed we need to link against it
1092
1811
    lt_cv_dlopen_libs=
1093
1812
    lt_cv_dlopen_self=yes
1094
1813
    ])
1095
 
   ;;
 
1814
    ;;
1096
1815
 
1097
1816
  *)
1098
1817
    AC_CHECK_FUNC([shl_load],
1134
1853
 
1135
1854
    AC_CACHE_CHECK([whether a program can dlopen itself],
1136
1855
          lt_cv_dlopen_self, [dnl
1137
 
          _LT_AC_TRY_DLOPEN_SELF(
 
1856
          _LT_TRY_DLOPEN_SELF(
1138
1857
            lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
1139
1858
            lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
1140
1859
    ])
1142
1861
    if test "x$lt_cv_dlopen_self" = xyes; then
1143
1862
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1144
1863
      AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
1145
 
          lt_cv_dlopen_self_static, [dnl
1146
 
          _LT_AC_TRY_DLOPEN_SELF(
 
1864
          lt_cv_dlopen_self_static, [dnl
 
1865
          _LT_TRY_DLOPEN_SELF(
1147
1866
            lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
1148
1867
            lt_cv_dlopen_self_static=no,  lt_cv_dlopen_self_static=cross)
1149
1868
      ])
1165
1884
  *) enable_dlopen_self_static=unknown ;;
1166
1885
  esac
1167
1886
fi
1168
 
])# AC_LIBTOOL_DLOPEN_SELF
1169
 
 
1170
 
 
1171
 
# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
1172
 
# ---------------------------------
1173
 
# Check to see if options -c and -o are simultaneously supported by compiler
1174
 
AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1175
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
1176
 
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
 
1887
_LT_DECL([dlopen_support], [enable_dlopen], [0],
 
1888
         [Whether dlopen is supported])
 
1889
_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
 
1890
         [Whether dlopen of programs is supported])
 
1891
_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
 
1892
         [Whether dlopen of statically linked programs is supported])
 
1893
])# LT_SYS_DLOPEN_SELF
 
1894
 
 
1895
# Old name:
 
1896
AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
 
1897
dnl aclocal-1.4 backwards compatibility:
 
1898
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
 
1899
 
 
1900
 
 
1901
# _LT_COMPILER_C_O([TAGNAME])
 
1902
# ---------------------------
 
1903
# Check to see if options -c and -o are simultaneously supported by compiler.
 
1904
# This macro does not hard code the compiler like AC_PROG_CC_C_O.
 
1905
m4_defun([_LT_COMPILER_C_O],
 
1906
[m4_require([_LT_DECL_SED])dnl
 
1907
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
1908
m4_require([_LT_TAG_COMPILER])dnl
1177
1909
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1178
 
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1179
 
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1180
 
   $rm -r conftest 2>/dev/null
 
1910
  [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
 
1911
  [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
 
1912
   $RM -r conftest 2>/dev/null
1181
1913
   mkdir conftest
1182
1914
   cd conftest
1183
1915
   mkdir out
1201
1933
   then
1202
1934
     # The compiler can only warn and ignore the option if not recognized
1203
1935
     # So say no if there are warnings
1204
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
1936
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
1205
1937
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
1206
1938
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1207
 
       _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
 
1939
       _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1208
1940
     fi
1209
1941
   fi
1210
1942
   chmod u+w . 2>&AS_MESSAGE_LOG_FD
1211
 
   $rm conftest*
 
1943
   $RM conftest*
1212
1944
   # SGI C++ compiler will create directory out/ii_files/ for
1213
1945
   # template instantiation
1214
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
1215
 
   $rm out/* && rmdir out
 
1946
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
1947
   $RM out/* && rmdir out
1216
1948
   cd ..
1217
 
   rmdir conftest
1218
 
   $rm conftest*
 
1949
   $RM -r conftest
 
1950
   $RM conftest*
1219
1951
])
1220
 
])# AC_LIBTOOL_PROG_CC_C_O
1221
 
 
1222
 
 
1223
 
# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
1224
 
# -----------------------------------------
 
1952
_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
 
1953
        [Does compiler simultaneously support -c and -o options?])
 
1954
])# _LT_COMPILER_C_O
 
1955
 
 
1956
 
 
1957
# _LT_COMPILER_FILE_LOCKS([TAGNAME])
 
1958
# ----------------------------------
1225
1959
# Check to see if we can do hard links to lock some files if needed
1226
 
AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
1227
 
[AC_REQUIRE([_LT_AC_LOCK])dnl
 
1960
m4_defun([_LT_COMPILER_FILE_LOCKS],
 
1961
[m4_require([_LT_ENABLE_LOCK])dnl
 
1962
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
1963
_LT_COMPILER_C_O([$1])
1228
1964
 
1229
1965
hard_links="nottested"
1230
 
if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
 
1966
if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
1231
1967
  # do not overwrite the value of need_locks provided by the user
1232
1968
  AC_MSG_CHECKING([if we can lock with hard links])
1233
1969
  hard_links=yes
1234
 
  $rm conftest*
 
1970
  $RM conftest*
1235
1971
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
1236
1972
  touch conftest.a
1237
1973
  ln conftest.a conftest.b 2>&5 || hard_links=no
1244
1980
else
1245
1981
  need_locks=no
1246
1982
fi
1247
 
])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
1248
 
 
1249
 
 
1250
 
# AC_LIBTOOL_OBJDIR
1251
 
# -----------------
1252
 
AC_DEFUN([AC_LIBTOOL_OBJDIR],
 
1983
_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
 
1984
])# _LT_COMPILER_FILE_LOCKS
 
1985
 
 
1986
 
 
1987
# _LT_CHECK_OBJDIR
 
1988
# ----------------
 
1989
m4_defun([_LT_CHECK_OBJDIR],
1253
1990
[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
1254
1991
[rm -f .libs 2>/dev/null
1255
1992
mkdir .libs 2>/dev/null
1261
1998
fi
1262
1999
rmdir .libs 2>/dev/null])
1263
2000
objdir=$lt_cv_objdir
1264
 
])# AC_LIBTOOL_OBJDIR
1265
 
 
1266
 
 
1267
 
# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
1268
 
# ----------------------------------------------
 
2001
_LT_DECL([], [objdir], [0],
 
2002
         [The name of the directory that contains temporary libtool files])dnl
 
2003
m4_pattern_allow([LT_OBJDIR])dnl
 
2004
AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
 
2005
  [Define to the sub-directory in which libtool stores uninstalled libraries.])
 
2006
])# _LT_CHECK_OBJDIR
 
2007
 
 
2008
 
 
2009
# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
 
2010
# --------------------------------------
1269
2011
# Check hardcoding attributes.
1270
 
AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
 
2012
m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
1271
2013
[AC_MSG_CHECKING([how to hardcode library paths into programs])
1272
 
_LT_AC_TAGVAR(hardcode_action, $1)=
1273
 
if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
1274
 
   test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
1275
 
   test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
 
2014
_LT_TAGVAR(hardcode_action, $1)=
 
2015
if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
 
2016
   test -n "$_LT_TAGVAR(runpath_var, $1)" ||
 
2017
   test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
1276
2018
 
1277
 
  # We can hardcode non-existant directories.
1278
 
  if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
 
2019
  # We can hardcode non-existent directories.
 
2020
  if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
1279
2021
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
1280
2022
     # have to relink, otherwise we might link with an installed library
1281
2023
     # when we should be linking with a yet-to-be-installed one
1282
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
1283
 
     test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
 
2024
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
 
2025
     test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
1284
2026
    # Linking always hardcodes the temporary library directory.
1285
 
    _LT_AC_TAGVAR(hardcode_action, $1)=relink
 
2027
    _LT_TAGVAR(hardcode_action, $1)=relink
1286
2028
  else
1287
2029
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
1288
 
    _LT_AC_TAGVAR(hardcode_action, $1)=immediate
 
2030
    _LT_TAGVAR(hardcode_action, $1)=immediate
1289
2031
  fi
1290
2032
else
1291
2033
  # We cannot hardcode anything, or else we can only hardcode existing
1292
2034
  # directories.
1293
 
  _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
 
2035
  _LT_TAGVAR(hardcode_action, $1)=unsupported
1294
2036
fi
1295
 
AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
 
2037
AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
1296
2038
 
1297
 
if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
 
2039
if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
 
2040
   test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
1298
2041
  # Fast installation is not supported
1299
2042
  enable_fast_install=no
1300
2043
elif test "$shlibpath_overrides_runpath" = yes ||
1302
2045
  # Fast installation is not necessary
1303
2046
  enable_fast_install=needless
1304
2047
fi
1305
 
])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
1306
 
 
1307
 
 
1308
 
# AC_LIBTOOL_SYS_LIB_STRIP
1309
 
# ------------------------
1310
 
AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
1311
 
[striplib=
 
2048
_LT_TAGDECL([], [hardcode_action], [0],
 
2049
    [How to hardcode a shared library path into an executable])
 
2050
])# _LT_LINKER_HARDCODE_LIBPATH
 
2051
 
 
2052
 
 
2053
# _LT_CMD_STRIPLIB
 
2054
# ----------------
 
2055
m4_defun([_LT_CMD_STRIPLIB],
 
2056
[m4_require([_LT_DECL_EGREP])
 
2057
striplib=
1312
2058
old_striplib=
1313
2059
AC_MSG_CHECKING([whether stripping libraries is possible])
1314
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
2060
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
1315
2061
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
1316
2062
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1317
2063
  AC_MSG_RESULT([yes])
1318
2064
else
1319
2065
# FIXME - insert some real tests, host_os isn't really good enough
1320
2066
  case $host_os in
1321
 
   darwin*)
1322
 
       if test -n "$STRIP" ; then
1323
 
         striplib="$STRIP -x"
1324
 
         old_striplib="$STRIP -S"
1325
 
         AC_MSG_RESULT([yes])
1326
 
       else
1327
 
  AC_MSG_RESULT([no])
1328
 
fi
1329
 
       ;;
1330
 
   *)
1331
 
  AC_MSG_RESULT([no])
 
2067
  darwin*)
 
2068
    if test -n "$STRIP" ; then
 
2069
      striplib="$STRIP -x"
 
2070
      old_striplib="$STRIP -S"
 
2071
      AC_MSG_RESULT([yes])
 
2072
    else
 
2073
      AC_MSG_RESULT([no])
 
2074
    fi
 
2075
    ;;
 
2076
  *)
 
2077
    AC_MSG_RESULT([no])
1332
2078
    ;;
1333
2079
  esac
1334
2080
fi
1335
 
])# AC_LIBTOOL_SYS_LIB_STRIP
1336
 
 
1337
 
 
1338
 
# AC_LIBTOOL_SYS_DYNAMIC_LINKER
 
2081
_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
 
2082
_LT_DECL([], [striplib], [1])
 
2083
])# _LT_CMD_STRIPLIB
 
2084
 
 
2085
 
 
2086
# _LT_SYS_DYNAMIC_LINKER([TAG])
1339
2087
# -----------------------------
1340
2088
# PORTME Fill in your ld.so characteristics
1341
 
AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
1342
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
2089
m4_defun([_LT_SYS_DYNAMIC_LINKER],
 
2090
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
2091
m4_require([_LT_DECL_EGREP])dnl
 
2092
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
2093
m4_require([_LT_DECL_OBJDUMP])dnl
 
2094
m4_require([_LT_DECL_SED])dnl
1343
2095
AC_MSG_CHECKING([dynamic linker characteristics])
1344
 
library_names_spec=
1345
 
libname_spec='lib$name'
1346
 
soname_spec=
1347
 
shrext_cmds=".so"
1348
 
postinstall_cmds=
1349
 
postuninstall_cmds=
1350
 
finish_cmds=
1351
 
finish_eval=
1352
 
shlibpath_var=
1353
 
shlibpath_overrides_runpath=unknown
1354
 
version_type=none
1355
 
dynamic_linker="$host_os ld.so"
1356
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
1357
 
m4_if($1,[],[
 
2096
m4_if([$1],
 
2097
        [], [
1358
2098
if test "$GCC" = yes; then
1359
2099
  case $host_os in
1360
2100
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
1361
2101
    *) lt_awk_arg="/^libraries:/" ;;
1362
2102
  esac
1363
2103
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1364
 
  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
 
2104
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
1365
2105
    # if the path contains ";" then we assume it to be the separator
1366
2106
    # otherwise default to the standard path separator (i.e. ":") - it is
1367
2107
    # assumed that no part of a normal pathname contains ";" but that should
1368
2108
    # okay in the real world where ";" in dirpaths is itself problematic.
1369
 
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
 
2109
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
1370
2110
  else
1371
 
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
2111
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
1372
2112
  fi
1373
2113
  # Ok, now we have the path, separated by spaces, we can step through it
1374
2114
  # and add multilib dir if necessary.
1382
2122
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
1383
2123
    fi
1384
2124
  done
1385
 
  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
 
2125
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
1386
2126
BEGIN {RS=" "; FS="/|\n";} {
1387
2127
  lt_foo="";
1388
2128
  lt_count=0;
1402
2142
  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
1403
2143
  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
1404
2144
}'`
1405
 
  sys_lib_search_path_spec=`echo $lt_search_path_spec`
 
2145
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
1406
2146
else
1407
2147
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1408
2148
fi])
 
2149
library_names_spec=
 
2150
libname_spec='lib$name'
 
2151
soname_spec=
 
2152
shrext_cmds=".so"
 
2153
postinstall_cmds=
 
2154
postuninstall_cmds=
 
2155
finish_cmds=
 
2156
finish_eval=
 
2157
shlibpath_var=
 
2158
shlibpath_overrides_runpath=unknown
 
2159
version_type=none
 
2160
dynamic_linker="$host_os ld.so"
 
2161
sys_lib_dlsearch_path_spec="/lib /usr/lib"
1409
2162
need_lib_prefix=unknown
1410
2163
hardcode_into_libs=no
1411
2164
 
1442
2195
      aix4 | aix4.[[01]] | aix4.[[01]].*)
1443
2196
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
1444
2197
           echo ' yes '
1445
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
2198
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
1446
2199
        :
1447
2200
      else
1448
2201
        can_build_shared=no
1468
2221
  ;;
1469
2222
 
1470
2223
amigaos*)
1471
 
  library_names_spec='$libname.ixlibrary $libname.a'
1472
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
1473
 
  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'
 
2224
  case $host_cpu in
 
2225
  powerpc)
 
2226
    # Since July 2007 AmigaOS4 officially supports .so libraries.
 
2227
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 
2228
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
2229
    ;;
 
2230
  m68k)
 
2231
    library_names_spec='$libname.ixlibrary $libname.a'
 
2232
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
2233
    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'
 
2234
    ;;
 
2235
  esac
1474
2236
  ;;
1475
2237
 
1476
2238
beos*)
1493
2255
  # libtool to hard-code these into programs
1494
2256
  ;;
1495
2257
 
1496
 
cygwin* | mingw* | pw32*)
 
2258
cygwin* | mingw* | pw32* | cegcc*)
1497
2259
  version_type=windows
1498
2260
  shrext_cmds=".dll"
1499
2261
  need_version=no
1500
2262
  need_lib_prefix=no
1501
2263
 
1502
2264
  case $GCC,$host_os in
1503
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
2265
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
1504
2266
    library_names_spec='$libname.dll.a'
1505
2267
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
1506
2268
    postinstall_cmds='base_file=`basename \${file}`~
1507
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
2269
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
1508
2270
      dldir=$destdir/`dirname \$dlpath`~
1509
2271
      test -d \$dldir || mkdir -p \$dldir~
1510
2272
      $install_prog $dir/$dlname \$dldir/$dlname~
1511
 
      chmod a+x \$dldir/$dlname'
 
2273
      chmod a+x \$dldir/$dlname~
 
2274
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 
2275
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 
2276
      fi'
1512
2277
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
1513
2278
      dlpath=$dir/\$dldll~
1514
 
       $rm \$dlpath'
 
2279
       $RM \$dlpath'
1515
2280
    shlibpath_overrides_runpath=yes
1516
2281
 
1517
2282
    case $host_os in
1520
2285
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1521
2286
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
1522
2287
      ;;
1523
 
    mingw*)
 
2288
    mingw* | cegcc*)
1524
2289
      # MinGW DLLs use traditional 'lib' prefix
1525
2290
      soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1526
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1527
 
      if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
 
2291
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
2292
      if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
1528
2293
        # It is most probably a Windows format PATH printed by
1529
2294
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
1530
2295
        # path with ; separators, and with drive letters. We can handle the
1531
2296
        # drive letters (cygwin fileutils understands them), so leave them,
1532
2297
        # especially as we might pass files found there to a mingw objdump,
1533
2298
        # which wouldn't understand a cygwinified path. Ahh.
1534
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
2299
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1535
2300
      else
1536
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
2301
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
1537
2302
      fi
1538
2303
      ;;
1539
2304
    pw32*)
1557
2322
  version_type=darwin
1558
2323
  need_lib_prefix=no
1559
2324
  need_version=no
1560
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
2325
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
1561
2326
  soname_spec='${libname}${release}${major}$shared_ext'
1562
2327
  shlibpath_overrides_runpath=yes
1563
2328
  shlibpath_var=DYLD_LIBRARY_PATH
1564
2329
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1565
 
  m4_if([$1], [],[
1566
 
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 
 
2330
m4_if([$1], [],[
 
2331
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
1567
2332
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
1568
2333
  ;;
1569
2334
 
1656
2421
    fi
1657
2422
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1658
2423
    ;;
1659
 
   hppa*64*)
1660
 
     shrext_cmds='.sl'
1661
 
     hardcode_into_libs=yes
1662
 
     dynamic_linker="$host_os dld.sl"
1663
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
1664
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1665
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1666
 
     soname_spec='${libname}${release}${shared_ext}$major'
1667
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
1668
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1669
 
     ;;
1670
 
   *)
 
2424
  hppa*64*)
 
2425
    shrext_cmds='.sl'
 
2426
    hardcode_into_libs=yes
 
2427
    dynamic_linker="$host_os dld.sl"
 
2428
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
2429
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
2430
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
2431
    soname_spec='${libname}${release}${shared_ext}$major'
 
2432
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
2433
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
2434
    ;;
 
2435
  *)
1671
2436
    shrext_cmds='.sl'
1672
2437
    dynamic_linker="$host_os dld.sl"
1673
2438
    shlibpath_var=SHLIB_PATH
1744
2509
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
1745
2510
  shlibpath_var=LD_LIBRARY_PATH
1746
2511
  shlibpath_overrides_runpath=no
 
2512
  # Some binutils ld are patched to set DT_RUNPATH
 
2513
  save_LDFLAGS=$LDFLAGS
 
2514
  save_libdir=$libdir
 
2515
  eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
 
2516
       LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
 
2517
  AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
 
2518
    [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
 
2519
       [shlibpath_overrides_runpath=yes])])
 
2520
  LDFLAGS=$save_LDFLAGS
 
2521
  libdir=$save_libdir
 
2522
 
1747
2523
  # This implies no fast_install, which is unacceptable.
1748
2524
  # Some rework will be needed to allow for fast_install
1749
2525
  # before this can be enabled.
1750
2526
  hardcode_into_libs=yes
1751
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
1752
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
2527
 
 
2528
  # Add ABI-specific directories to the system library path.
 
2529
  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
1753
2530
 
1754
2531
  # Append ld.so.conf contents to the search path
1755
2532
  if test -f /etc/ld.so.conf; then
1756
 
    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' ' '`
 
2533
    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' ' '`
1757
2534
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
1758
2535
  fi
1759
2536
 
1770
2547
  version_type=sunos
1771
2548
  need_lib_prefix=no
1772
2549
  need_version=no
1773
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
2550
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
1774
2551
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1775
2552
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1776
2553
    dynamic_linker='NetBSD (a.out) ld.so'
1791
2568
  shlibpath_overrides_runpath=yes
1792
2569
  ;;
1793
2570
 
1794
 
nto-qnx*)
1795
 
  version_type=linux
 
2571
*nto* | *qnx*)
 
2572
  version_type=qnx
1796
2573
  need_lib_prefix=no
1797
2574
  need_version=no
1798
2575
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1799
2576
  soname_spec='${libname}${release}${shared_ext}$major'
1800
2577
  shlibpath_var=LD_LIBRARY_PATH
1801
 
  shlibpath_overrides_runpath=yes
 
2578
  shlibpath_overrides_runpath=no
 
2579
  hardcode_into_libs=yes
 
2580
  dynamic_linker='ldqnx.so'
1802
2581
  ;;
1803
2582
 
1804
2583
openbsd*)
1807
2586
  need_lib_prefix=no
1808
2587
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
1809
2588
  case $host_os in
1810
 
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
1811
 
    *)                         need_version=no  ;;
 
2589
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
 
2590
    *)                          need_version=no  ;;
1812
2591
  esac
1813
2592
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1814
2593
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1815
2594
  shlibpath_var=LD_LIBRARY_PATH
1816
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
2595
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1817
2596
    case $host_os in
1818
2597
      openbsd2.[[89]] | openbsd2.[[89]].*)
1819
2598
        shlibpath_overrides_runpath=no
1885
2664
    sni)
1886
2665
      shlibpath_overrides_runpath=no
1887
2666
      need_lib_prefix=no
1888
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
1889
2667
      runpath_var=LD_RUN_PATH
1890
2668
      ;;
1891
2669
    siemens)
1916
2694
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1917
2695
  soname_spec='${libname}${release}${shared_ext}$major'
1918
2696
  shlibpath_var=LD_LIBRARY_PATH
 
2697
  shlibpath_overrides_runpath=yes
1919
2698
  hardcode_into_libs=yes
1920
2699
  if test "$with_gnu_ld" = yes; then
1921
2700
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
1922
 
    shlibpath_overrides_runpath=no
1923
2701
  else
1924
2702
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
1925
 
    shlibpath_overrides_runpath=yes
1926
2703
    case $host_os in
1927
2704
      sco3.2v5*)
1928
2705
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
1932
2709
  sys_lib_dlsearch_path_spec='/usr/lib'
1933
2710
  ;;
1934
2711
 
 
2712
tpf*)
 
2713
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 
2714
  version_type=linux
 
2715
  need_lib_prefix=no
 
2716
  need_version=no
 
2717
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
2718
  shlibpath_var=LD_LIBRARY_PATH
 
2719
  shlibpath_overrides_runpath=no
 
2720
  hardcode_into_libs=yes
 
2721
  ;;
 
2722
 
1935
2723
uts4*)
1936
2724
  version_type=linux
1937
2725
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1946
2734
AC_MSG_RESULT([$dynamic_linker])
1947
2735
test "$dynamic_linker" = no && can_build_shared=no
1948
2736
 
1949
 
AC_CACHE_VAL([lt_cv_sys_lib_search_path_spec],
1950
 
[lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"])
1951
 
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
1952
 
AC_CACHE_VAL([lt_cv_sys_lib_dlsearch_path_spec],
1953
 
[lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"])
1954
 
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
1955
 
 
1956
2737
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
1957
2738
if test "$GCC" = yes; then
1958
2739
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
1959
2740
fi
1960
 
])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
1961
 
 
1962
 
 
1963
 
# _LT_AC_TAGCONFIG
1964
 
# ----------------
1965
 
AC_DEFUN([_LT_AC_TAGCONFIG],
1966
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
1967
 
AC_ARG_WITH([tags],
1968
 
    [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
1969
 
        [include additional configurations @<:@automatic@:>@])],
1970
 
    [tagnames="$withval"])
1971
 
 
1972
 
if test -f "$ltmain" && test -n "$tagnames"; then
1973
 
  if test ! -f "${ofile}"; then
1974
 
    AC_MSG_WARN([output file `$ofile' does not exist])
1975
 
  fi
1976
 
 
1977
 
  if test -z "$LTCC"; then
1978
 
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
1979
 
    if test -z "$LTCC"; then
1980
 
      AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
1981
 
    else
1982
 
      AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
1983
 
    fi
1984
 
  fi
1985
 
  if test -z "$LTCFLAGS"; then
1986
 
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
1987
 
  fi
1988
 
 
1989
 
  # Extract list of available tagged configurations in $ofile.
1990
 
  # Note that this assumes the entire list is on one line.
1991
 
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
1992
 
 
1993
 
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1994
 
  for tagname in $tagnames; do
1995
 
    IFS="$lt_save_ifs"
1996
 
    # Check whether tagname contains only valid characters
1997
 
    case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
1998
 
    "") ;;
1999
 
    *)  AC_MSG_ERROR([invalid tag name: $tagname])
2000
 
        ;;
2001
 
    esac
2002
 
 
2003
 
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
2004
 
    then
2005
 
      AC_MSG_ERROR([tag name \"$tagname\" already exists])
2006
 
    fi
2007
 
 
2008
 
    # Update the list of available tags.
2009
 
    if test -n "$tagname"; then
2010
 
      echo appending configuration tag \"$tagname\" to $ofile
2011
 
 
2012
 
      case $tagname in
2013
 
      CXX)
2014
 
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
2015
 
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
2016
 
            (test "X$CXX" != "Xg++"))) ; then
2017
 
          AC_LIBTOOL_LANG_CXX_CONFIG
2018
 
        else
2019
 
          tagname=""
2020
 
        fi
2021
 
        ;;
2022
 
 
2023
 
      F77)
2024
 
        if test -n "$F77" && test "X$F77" != "Xno"; then
2025
 
          AC_LIBTOOL_LANG_F77_CONFIG
2026
 
        else
2027
 
          tagname=""
2028
 
        fi
2029
 
        ;;
2030
 
 
2031
 
      GCJ)
2032
 
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
2033
 
          AC_LIBTOOL_LANG_GCJ_CONFIG
2034
 
        else
2035
 
          tagname=""
2036
 
        fi
2037
 
        ;;
2038
 
 
2039
 
      RC)
2040
 
        AC_LIBTOOL_LANG_RC_CONFIG
2041
 
        ;;
2042
 
 
2043
 
      *)
2044
 
        AC_MSG_ERROR([Unsupported tag name: $tagname])
2045
 
        ;;
2046
 
      esac
2047
 
 
2048
 
      # Append the new tag name to the list of available tags.
2049
 
      if test -n "$tagname" ; then
2050
 
      available_tags="$available_tags $tagname"
2051
 
    fi
2052
 
    fi
2053
 
  done
2054
 
  IFS="$lt_save_ifs"
2055
 
 
2056
 
  # Now substitute the updated list of available tags.
2057
 
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
2058
 
    mv "${ofile}T" "$ofile"
2059
 
    chmod +x "$ofile"
2060
 
  else
2061
 
    rm -f "${ofile}T"
2062
 
    AC_MSG_ERROR([unable to update list of available tagged configurations.])
2063
 
  fi
2064
 
fi
2065
 
])# _LT_AC_TAGCONFIG
2066
 
 
2067
 
 
2068
 
# AC_LIBTOOL_DLOPEN
2069
 
# -----------------
2070
 
# enable checks for dlopen support
2071
 
AC_DEFUN([AC_LIBTOOL_DLOPEN],
2072
 
 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
2073
 
])# AC_LIBTOOL_DLOPEN
2074
 
 
2075
 
 
2076
 
# AC_LIBTOOL_WIN32_DLL
2077
 
# --------------------
2078
 
# declare package support for building win32 DLLs
2079
 
AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
2080
 
[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
2081
 
])# AC_LIBTOOL_WIN32_DLL
2082
 
 
2083
 
 
2084
 
# AC_ENABLE_SHARED([DEFAULT])
2085
 
# ---------------------------
2086
 
# implement the --enable-shared flag
2087
 
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
2088
 
AC_DEFUN([AC_ENABLE_SHARED],
2089
 
[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
2090
 
AC_ARG_ENABLE([shared],
2091
 
    [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
2092
 
        [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
2093
 
    [p=${PACKAGE-default}
2094
 
    case $enableval in
2095
 
    yes) enable_shared=yes ;;
2096
 
    no) enable_shared=no ;;
2097
 
    *)
2098
 
      enable_shared=no
2099
 
      # Look at the argument we got.  We use all the common list separators.
2100
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2101
 
      for pkg in $enableval; do
2102
 
        IFS="$lt_save_ifs"
2103
 
        if test "X$pkg" = "X$p"; then
2104
 
          enable_shared=yes
2105
 
        fi
2106
 
      done
2107
 
      IFS="$lt_save_ifs"
2108
 
      ;;
2109
 
    esac],
2110
 
    [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
2111
 
])# AC_ENABLE_SHARED
2112
 
 
2113
 
 
2114
 
# AC_DISABLE_SHARED
2115
 
# -----------------
2116
 
# set the default shared flag to --disable-shared
2117
 
AC_DEFUN([AC_DISABLE_SHARED],
2118
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2119
 
AC_ENABLE_SHARED(no)
2120
 
])# AC_DISABLE_SHARED
2121
 
 
2122
 
 
2123
 
# AC_ENABLE_STATIC([DEFAULT])
2124
 
# ---------------------------
2125
 
# implement the --enable-static flag
2126
 
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
2127
 
AC_DEFUN([AC_ENABLE_STATIC],
2128
 
[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
2129
 
AC_ARG_ENABLE([static],
2130
 
    [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
2131
 
        [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
2132
 
    [p=${PACKAGE-default}
2133
 
    case $enableval in
2134
 
    yes) enable_static=yes ;;
2135
 
    no) enable_static=no ;;
2136
 
    *)
2137
 
     enable_static=no
2138
 
      # Look at the argument we got.  We use all the common list separators.
2139
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2140
 
      for pkg in $enableval; do
2141
 
        IFS="$lt_save_ifs"
2142
 
        if test "X$pkg" = "X$p"; then
2143
 
          enable_static=yes
2144
 
        fi
2145
 
      done
2146
 
      IFS="$lt_save_ifs"
2147
 
      ;;
2148
 
    esac],
2149
 
    [enable_static=]AC_ENABLE_STATIC_DEFAULT)
2150
 
])# AC_ENABLE_STATIC
2151
 
 
2152
 
 
2153
 
# AC_DISABLE_STATIC
2154
 
# -----------------
2155
 
# set the default static flag to --disable-static
2156
 
AC_DEFUN([AC_DISABLE_STATIC],
2157
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2158
 
AC_ENABLE_STATIC(no)
2159
 
])# AC_DISABLE_STATIC
2160
 
 
2161
 
 
2162
 
# AC_ENABLE_FAST_INSTALL([DEFAULT])
2163
 
# ---------------------------------
2164
 
# implement the --enable-fast-install flag
2165
 
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
2166
 
AC_DEFUN([AC_ENABLE_FAST_INSTALL],
2167
 
[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
2168
 
AC_ARG_ENABLE([fast-install],
2169
 
    [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
2170
 
    [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
2171
 
    [p=${PACKAGE-default}
2172
 
    case $enableval in
2173
 
    yes) enable_fast_install=yes ;;
2174
 
    no) enable_fast_install=no ;;
2175
 
    *)
2176
 
      enable_fast_install=no
2177
 
      # Look at the argument we got.  We use all the common list separators.
2178
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2179
 
      for pkg in $enableval; do
2180
 
        IFS="$lt_save_ifs"
2181
 
        if test "X$pkg" = "X$p"; then
2182
 
          enable_fast_install=yes
2183
 
        fi
2184
 
      done
2185
 
      IFS="$lt_save_ifs"
2186
 
      ;;
2187
 
    esac],
2188
 
    [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
2189
 
])# AC_ENABLE_FAST_INSTALL
2190
 
 
2191
 
 
2192
 
# AC_DISABLE_FAST_INSTALL
2193
 
# -----------------------
2194
 
# set the default to --disable-fast-install
2195
 
AC_DEFUN([AC_DISABLE_FAST_INSTALL],
2196
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2197
 
AC_ENABLE_FAST_INSTALL(no)
2198
 
])# AC_DISABLE_FAST_INSTALL
2199
 
 
2200
 
 
2201
 
# AC_LIBTOOL_PICMODE([MODE])
 
2741
 
 
2742
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
2743
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
2744
fi
 
2745
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
2746
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
2747
fi
 
2748
 
 
2749
_LT_DECL([], [variables_saved_for_relink], [1],
 
2750
    [Variables whose values should be saved in libtool wrapper scripts and
 
2751
    restored at link time])
 
2752
_LT_DECL([], [need_lib_prefix], [0],
 
2753
    [Do we need the "lib" prefix for modules?])
 
2754
_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
 
2755
_LT_DECL([], [version_type], [0], [Library versioning type])
 
2756
_LT_DECL([], [runpath_var], [0],  [Shared library runtime path variable])
 
2757
_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
 
2758
_LT_DECL([], [shlibpath_overrides_runpath], [0],
 
2759
    [Is shlibpath searched before the hard-coded library search path?])
 
2760
_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
 
2761
_LT_DECL([], [library_names_spec], [1],
 
2762
    [[List of archive names.  First name is the real one, the rest are links.
 
2763
    The last name is the one that the linker finds with -lNAME]])
 
2764
_LT_DECL([], [soname_spec], [1],
 
2765
    [[The coded name of the library, if different from the real name]])
 
2766
_LT_DECL([], [postinstall_cmds], [2],
 
2767
    [Command to use after installation of a shared archive])
 
2768
_LT_DECL([], [postuninstall_cmds], [2],
 
2769
    [Command to use after uninstallation of a shared archive])
 
2770
_LT_DECL([], [finish_cmds], [2],
 
2771
    [Commands used to finish a libtool library installation in a directory])
 
2772
_LT_DECL([], [finish_eval], [1],
 
2773
    [[As "finish_cmds", except a single script fragment to be evaled but
 
2774
    not shown]])
 
2775
_LT_DECL([], [hardcode_into_libs], [0],
 
2776
    [Whether we should hardcode library paths into libraries])
 
2777
_LT_DECL([], [sys_lib_search_path_spec], [2],
 
2778
    [Compile-time system search path for libraries])
 
2779
_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
 
2780
    [Run-time system search path for libraries])
 
2781
])# _LT_SYS_DYNAMIC_LINKER
 
2782
 
 
2783
 
 
2784
# _LT_PATH_TOOL_PREFIX(TOOL)
2202
2785
# --------------------------
2203
 
# implement the --with-pic flag
2204
 
# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
2205
 
AC_DEFUN([AC_LIBTOOL_PICMODE],
2206
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2207
 
pic_mode=ifelse($#,1,$1,default)
2208
 
])# AC_LIBTOOL_PICMODE
2209
 
 
2210
 
 
2211
 
# AC_PROG_EGREP
2212
 
# -------------
2213
 
# This is predefined starting with Autoconf 2.54, so this conditional
2214
 
# definition can be removed once we require Autoconf 2.54 or later.
2215
 
m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
2216
 
[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
2217
 
   [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2218
 
    then ac_cv_prog_egrep='grep -E'
2219
 
    else ac_cv_prog_egrep='egrep'
2220
 
    fi])
2221
 
 EGREP=$ac_cv_prog_egrep
2222
 
 AC_SUBST([EGREP])
2223
 
])])
2224
 
 
2225
 
 
2226
 
# AC_PATH_TOOL_PREFIX
2227
 
# -------------------
2228
2786
# find a file program which can recognize shared library
2229
 
AC_DEFUN([AC_PATH_TOOL_PREFIX],
2230
 
[AC_REQUIRE([AC_PROG_EGREP])dnl
 
2787
AC_DEFUN([_LT_PATH_TOOL_PREFIX],
 
2788
[m4_require([_LT_DECL_EGREP])dnl
2231
2789
AC_MSG_CHECKING([for $1])
2232
2790
AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
2233
2791
[case $MAGIC_CMD in
2240
2798
dnl $ac_dummy forces splitting on constant user-supplied paths.
2241
2799
dnl POSIX.2 word splitting is done only on the output of word expansions,
2242
2800
dnl not every word.  This closes a longstanding sh security hole.
2243
 
  ac_dummy="ifelse([$2], , $PATH, [$2])"
 
2801
  ac_dummy="m4_if([$2], , $PATH, [$2])"
2244
2802
  for ac_dir in $ac_dummy; do
2245
2803
    IFS="$lt_save_ifs"
2246
2804
    test -z "$ac_dir" && ac_dir=.
2255
2813
            $EGREP "$file_magic_regex" > /dev/null; then
2256
2814
            :
2257
2815
          else
2258
 
            cat <<EOF 1>&2
 
2816
            cat <<_LT_EOF 1>&2
2259
2817
 
2260
2818
*** Warning: the command libtool uses to detect shared libraries,
2261
2819
*** $file_magic_cmd, produces output that libtool cannot recognize.
2266
2824
*** may want to report the problem to your system manager and/or to
2267
2825
*** bug-libtool@gnu.org
2268
2826
 
2269
 
EOF
 
2827
_LT_EOF
2270
2828
          fi ;;
2271
2829
        esac
2272
2830
      fi
2283
2841
else
2284
2842
  AC_MSG_RESULT(no)
2285
2843
fi
2286
 
])# AC_PATH_TOOL_PREFIX
2287
 
 
2288
 
 
2289
 
# AC_PATH_MAGIC
2290
 
# -------------
 
2844
_LT_DECL([], [MAGIC_CMD], [0],
 
2845
         [Used to examine libraries when file_magic_cmd begins with "file"])dnl
 
2846
])# _LT_PATH_TOOL_PREFIX
 
2847
 
 
2848
# Old name:
 
2849
AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
 
2850
dnl aclocal-1.4 backwards compatibility:
 
2851
dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
 
2852
 
 
2853
 
 
2854
# _LT_PATH_MAGIC
 
2855
# --------------
2291
2856
# find a file program which can recognize a shared library
2292
 
AC_DEFUN([AC_PATH_MAGIC],
2293
 
[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
 
2857
m4_defun([_LT_PATH_MAGIC],
 
2858
[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2294
2859
if test -z "$lt_cv_path_MAGIC_CMD"; then
2295
2860
  if test -n "$ac_tool_prefix"; then
2296
 
    AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
 
2861
    _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
2297
2862
  else
2298
2863
    MAGIC_CMD=:
2299
2864
  fi
2300
2865
fi
2301
 
])# AC_PATH_MAGIC
2302
 
 
2303
 
 
2304
 
# AC_PROG_LD
 
2866
])# _LT_PATH_MAGIC
 
2867
 
 
2868
 
 
2869
# LT_PATH_LD
2305
2870
# ----------
2306
2871
# find the pathname to the GNU or non-GNU linker
2307
 
AC_DEFUN([AC_PROG_LD],
2308
 
[AC_ARG_WITH([gnu-ld],
2309
 
    [AC_HELP_STRING([--with-gnu-ld],
 
2872
AC_DEFUN([LT_PATH_LD],
 
2873
[AC_REQUIRE([AC_PROG_CC])dnl
 
2874
AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
2875
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
 
2876
m4_require([_LT_DECL_SED])dnl
 
2877
m4_require([_LT_DECL_EGREP])dnl
 
2878
 
 
2879
AC_ARG_WITH([gnu-ld],
 
2880
    [AS_HELP_STRING([--with-gnu-ld],
2310
2881
        [assume the C compiler uses GNU ld @<:@default=no@:>@])],
2311
2882
    [test "$withval" = no || with_gnu_ld=yes],
2312
 
    [with_gnu_ld=no])
2313
 
AC_REQUIRE([LT_AC_PROG_SED])dnl
2314
 
AC_REQUIRE([AC_PROG_CC])dnl
2315
 
AC_REQUIRE([AC_CANONICAL_HOST])dnl
2316
 
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
 
2883
    [with_gnu_ld=no])dnl
 
2884
 
2317
2885
ac_prog=ld
2318
2886
if test "$GCC" = yes; then
2319
2887
  # Check if gcc -print-prog-name=ld gives a path.
2330
2898
    [[\\/]]* | ?:[[\\/]]*)
2331
2899
      re_direlt='/[[^/]][[^/]]*/\.\./'
2332
2900
      # Canonicalize the pathname of ld
2333
 
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
2334
 
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2335
 
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
2901
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 
2902
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 
2903
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
2336
2904
      done
2337
2905
      test -z "$LD" && LD="$ac_prog"
2338
2906
      ;;
2382
2950
  AC_MSG_RESULT(no)
2383
2951
fi
2384
2952
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
2385
 
AC_PROG_LD_GNU
2386
 
])# AC_PROG_LD
2387
 
 
2388
 
 
2389
 
# AC_PROG_LD_GNU
2390
 
# --------------
2391
 
AC_DEFUN([AC_PROG_LD_GNU],
2392
 
[AC_REQUIRE([AC_PROG_EGREP])dnl
2393
 
AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
 
2953
_LT_PATH_LD_GNU
 
2954
AC_SUBST([LD])
 
2955
 
 
2956
_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
 
2957
])# LT_PATH_LD
 
2958
 
 
2959
# Old names:
 
2960
AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
 
2961
AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
 
2962
dnl aclocal-1.4 backwards compatibility:
 
2963
dnl AC_DEFUN([AM_PROG_LD], [])
 
2964
dnl AC_DEFUN([AC_PROG_LD], [])
 
2965
 
 
2966
 
 
2967
# _LT_PATH_LD_GNU
 
2968
#- --------------
 
2969
m4_defun([_LT_PATH_LD_GNU],
 
2970
[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
2394
2971
[# I'd rather use --version here, but apparently some GNU lds only accept -v.
2395
2972
case `$LD -v 2>&1 </dev/null` in
2396
2973
*GNU* | *'with BFD'*)
2401
2978
  ;;
2402
2979
esac])
2403
2980
with_gnu_ld=$lt_cv_prog_gnu_ld
2404
 
])# AC_PROG_LD_GNU
2405
 
 
2406
 
 
2407
 
# AC_PROG_LD_RELOAD_FLAG
2408
 
# ----------------------
 
2981
])# _LT_PATH_LD_GNU
 
2982
 
 
2983
 
 
2984
# _LT_CMD_RELOAD
 
2985
# --------------
2409
2986
# find reload flag for linker
2410
2987
#   -- PORTME Some linkers may need a different reload flag.
2411
 
AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
 
2988
m4_defun([_LT_CMD_RELOAD],
2412
2989
[AC_CACHE_CHECK([for $LD option to reload object files],
2413
2990
  lt_cv_ld_reload_flag,
2414
2991
  [lt_cv_ld_reload_flag='-r'])
2427
3004
    fi
2428
3005
    ;;
2429
3006
esac
2430
 
])# AC_PROG_LD_RELOAD_FLAG
2431
 
 
2432
 
 
2433
 
# AC_DEPLIBS_CHECK_METHOD
2434
 
# -----------------------
 
3007
_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
 
3008
_LT_DECL([], [reload_cmds], [2])dnl
 
3009
])# _LT_CMD_RELOAD
 
3010
 
 
3011
 
 
3012
# _LT_CHECK_MAGIC_METHOD
 
3013
# ----------------------
2435
3014
# how to check for library dependencies
2436
3015
#  -- PORTME fill in with the dynamic library characteristics
2437
 
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
2438
 
[AC_CACHE_CHECK([how to recognize dependent libraries],
 
3016
m4_defun([_LT_CHECK_MAGIC_METHOD],
 
3017
[m4_require([_LT_DECL_EGREP])
 
3018
m4_require([_LT_DECL_OBJDUMP])
 
3019
AC_CACHE_CHECK([how to recognize dependent libraries],
2439
3020
lt_cv_deplibs_check_method,
2440
3021
[lt_cv_file_magic_cmd='$MAGIC_CMD'
2441
3022
lt_cv_file_magic_test_file=
2485
3066
  fi
2486
3067
  ;;
2487
3068
 
 
3069
cegcc)
 
3070
  # use the weaker test based on 'objdump'. See mingw*.
 
3071
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
 
3072
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
3073
  ;;
 
3074
 
2488
3075
darwin* | rhapsody*)
2489
3076
  lt_cv_deplibs_check_method=pass_all
2490
3077
  ;;
2491
3078
 
2492
3079
freebsd* | dragonfly*)
2493
 
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
3080
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
2494
3081
    case $host_cpu in
2495
3082
    i*86 )
2496
3083
      # Not sure whether the presence of OpenBSD here was a mistake.
2548
3135
  ;;
2549
3136
 
2550
3137
netbsd*)
2551
 
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
3138
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
2552
3139
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2553
3140
  else
2554
3141
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
2561
3148
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
2562
3149
  ;;
2563
3150
 
2564
 
nto-qnx*)
2565
 
  lt_cv_deplibs_check_method=unknown
 
3151
*nto* | *qnx*)
 
3152
  lt_cv_deplibs_check_method=pass_all
2566
3153
  ;;
2567
3154
 
2568
3155
openbsd*)
2569
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
3156
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2570
3157
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
2571
3158
  else
2572
3159
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2585
3172
  lt_cv_deplibs_check_method=pass_all
2586
3173
  ;;
2587
3174
 
 
3175
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
3176
  lt_cv_deplibs_check_method=pass_all
 
3177
  ;;
 
3178
 
2588
3179
sysv4 | sysv4.3*)
2589
3180
  case $host_vendor in
2590
3181
  motorola)
2612
3203
  esac
2613
3204
  ;;
2614
3205
 
2615
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
3206
tpf*)
2616
3207
  lt_cv_deplibs_check_method=pass_all
2617
3208
  ;;
2618
3209
esac
2620
3211
file_magic_cmd=$lt_cv_file_magic_cmd
2621
3212
deplibs_check_method=$lt_cv_deplibs_check_method
2622
3213
test -z "$deplibs_check_method" && deplibs_check_method=unknown
2623
 
])# AC_DEPLIBS_CHECK_METHOD
2624
 
 
2625
 
 
2626
 
# AC_PROG_NM
 
3214
 
 
3215
_LT_DECL([], [deplibs_check_method], [1],
 
3216
    [Method to check whether dependent libraries are shared objects])
 
3217
_LT_DECL([], [file_magic_cmd], [1],
 
3218
    [Command to use when deplibs_check_method == "file_magic"])
 
3219
])# _LT_CHECK_MAGIC_METHOD
 
3220
 
 
3221
 
 
3222
# LT_PATH_NM
2627
3223
# ----------
2628
 
# find the pathname to a BSD-compatible name lister
2629
 
AC_DEFUN([AC_PROG_NM],
2630
 
[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
 
3224
# find the pathname to a BSD- or MS-compatible name lister
 
3225
AC_DEFUN([LT_PATH_NM],
 
3226
[AC_REQUIRE([AC_PROG_CC])dnl
 
3227
AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
2631
3228
[if test -n "$NM"; then
2632
3229
  # Let the user override the test.
2633
3230
  lt_cv_path_NM="$NM"
2669
3266
    done
2670
3267
    IFS="$lt_save_ifs"
2671
3268
  done
2672
 
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
3269
  : ${lt_cv_path_NM=no}
2673
3270
fi])
2674
 
NM="$lt_cv_path_NM"
2675
 
])# AC_PROG_NM
2676
 
 
2677
 
 
2678
 
# AC_CHECK_LIBM
2679
 
# -------------
 
3271
if test "$lt_cv_path_NM" != "no"; then
 
3272
  NM="$lt_cv_path_NM"
 
3273
else
 
3274
  # Didn't find any BSD compatible name lister, look for dumpbin.
 
3275
  AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
 
3276
  AC_SUBST([DUMPBIN])
 
3277
  if test "$DUMPBIN" != ":"; then
 
3278
    NM="$DUMPBIN"
 
3279
  fi
 
3280
fi
 
3281
test -z "$NM" && NM=nm
 
3282
AC_SUBST([NM])
 
3283
_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
 
3284
 
 
3285
AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
 
3286
  [lt_cv_nm_interface="BSD nm"
 
3287
  echo "int some_variable = 0;" > conftest.$ac_ext
 
3288
  (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
 
3289
  (eval "$ac_compile" 2>conftest.err)
 
3290
  cat conftest.err >&AS_MESSAGE_LOG_FD
 
3291
  (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
 
3292
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
 
3293
  cat conftest.err >&AS_MESSAGE_LOG_FD
 
3294
  (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
 
3295
  cat conftest.out >&AS_MESSAGE_LOG_FD
 
3296
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
 
3297
    lt_cv_nm_interface="MS dumpbin"
 
3298
  fi
 
3299
  rm -f conftest*])
 
3300
])# LT_PATH_NM
 
3301
 
 
3302
# Old names:
 
3303
AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
 
3304
AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
 
3305
dnl aclocal-1.4 backwards compatibility:
 
3306
dnl AC_DEFUN([AM_PROG_NM], [])
 
3307
dnl AC_DEFUN([AC_PROG_NM], [])
 
3308
 
 
3309
 
 
3310
# LT_LIB_M
 
3311
# --------
2680
3312
# check for math library
2681
 
AC_DEFUN([AC_CHECK_LIBM],
 
3313
AC_DEFUN([LT_LIB_M],
2682
3314
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
2683
3315
LIBM=
2684
3316
case $host in
2693
3325
  AC_CHECK_LIB(m, cos, LIBM="-lm")
2694
3326
  ;;
2695
3327
esac
2696
 
])# AC_CHECK_LIBM
2697
 
 
2698
 
 
2699
 
# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
2700
 
# -----------------------------------
2701
 
# sets LIBLTDL to the link flags for the libltdl convenience library and
2702
 
# LTDLINCL to the include flags for the libltdl header and adds
2703
 
# --enable-ltdl-convenience to the configure arguments.  Note that
2704
 
# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
2705
 
# it is assumed to be `libltdl'.  LIBLTDL will be prefixed with
2706
 
# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
2707
 
# (note the single quotes!).  If your package is not flat and you're not
2708
 
# using automake, define top_builddir and top_srcdir appropriately in
2709
 
# the Makefiles.
2710
 
AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
2711
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2712
 
  case $enable_ltdl_convenience in
2713
 
  no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
2714
 
  "") enable_ltdl_convenience=yes
2715
 
      ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
2716
 
  esac
2717
 
  LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
2718
 
  LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
2719
 
  # For backwards non-gettext consistent compatibility...
2720
 
  INCLTDL="$LTDLINCL"
2721
 
])# AC_LIBLTDL_CONVENIENCE
2722
 
 
2723
 
 
2724
 
# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
2725
 
# -----------------------------------
2726
 
# sets LIBLTDL to the link flags for the libltdl installable library and
2727
 
# LTDLINCL to the include flags for the libltdl header and adds
2728
 
# --enable-ltdl-install to the configure arguments.  Note that
2729
 
# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
2730
 
# and an installed libltdl is not found, it is assumed to be `libltdl'.
2731
 
# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
2732
 
# '${top_srcdir}/' (note the single quotes!).  If your package is not
2733
 
# flat and you're not using automake, define top_builddir and top_srcdir
2734
 
# appropriately in the Makefiles.
2735
 
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
2736
 
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
2737
 
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2738
 
  AC_CHECK_LIB(ltdl, lt_dlinit,
2739
 
  [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
2740
 
  [if test x"$enable_ltdl_install" = xno; then
2741
 
     AC_MSG_WARN([libltdl not installed, but installation disabled])
2742
 
   else
2743
 
     enable_ltdl_install=yes
2744
 
   fi
2745
 
  ])
2746
 
  if test x"$enable_ltdl_install" = x"yes"; then
2747
 
    ac_configure_args="$ac_configure_args --enable-ltdl-install"
2748
 
    LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
2749
 
    LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
2750
 
  else
2751
 
    ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
2752
 
    LIBLTDL="-lltdl"
2753
 
    LTDLINCL=
2754
 
  fi
2755
 
  # For backwards non-gettext consistent compatibility...
2756
 
  INCLTDL="$LTDLINCL"
2757
 
])# AC_LIBLTDL_INSTALLABLE
2758
 
 
2759
 
 
2760
 
# AC_LIBTOOL_CXX
2761
 
# --------------
2762
 
# enable support for C++ libraries
2763
 
AC_DEFUN([AC_LIBTOOL_CXX],
2764
 
[AC_REQUIRE([_LT_AC_LANG_CXX])
2765
 
])# AC_LIBTOOL_CXX
2766
 
 
2767
 
 
2768
 
# _LT_AC_LANG_CXX
2769
 
# ---------------
2770
 
AC_DEFUN([_LT_AC_LANG_CXX],
2771
 
[AC_REQUIRE([AC_PROG_CXX])
2772
 
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
2773
 
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
2774
 
])# _LT_AC_LANG_CXX
2775
 
 
2776
 
# _LT_AC_PROG_CXXCPP
2777
 
# ------------------
2778
 
AC_DEFUN([_LT_AC_PROG_CXXCPP],
2779
 
[
2780
 
AC_REQUIRE([AC_PROG_CXX])
2781
 
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
2782
 
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
2783
 
    (test "X$CXX" != "Xg++"))) ; then
2784
 
  AC_PROG_CXXCPP
2785
 
fi
2786
 
])# _LT_AC_PROG_CXXCPP
2787
 
 
2788
 
# AC_LIBTOOL_F77
2789
 
# --------------
2790
 
# enable support for Fortran 77 libraries
2791
 
AC_DEFUN([AC_LIBTOOL_F77],
2792
 
[AC_REQUIRE([_LT_AC_LANG_F77])
2793
 
])# AC_LIBTOOL_F77
2794
 
 
2795
 
 
2796
 
# _LT_AC_LANG_F77
2797
 
# ---------------
2798
 
AC_DEFUN([_LT_AC_LANG_F77],
2799
 
[AC_REQUIRE([AC_PROG_F77])
2800
 
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
2801
 
])# _LT_AC_LANG_F77
2802
 
 
2803
 
 
2804
 
# AC_LIBTOOL_GCJ
2805
 
# --------------
2806
 
# enable support for GCJ libraries
2807
 
AC_DEFUN([AC_LIBTOOL_GCJ],
2808
 
[AC_REQUIRE([_LT_AC_LANG_GCJ])
2809
 
])# AC_LIBTOOL_GCJ
2810
 
 
2811
 
 
2812
 
# _LT_AC_LANG_GCJ
2813
 
# ---------------
2814
 
AC_DEFUN([_LT_AC_LANG_GCJ],
2815
 
[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
2816
 
  [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
2817
 
    [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
2818
 
      [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
2819
 
         [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
2820
 
           [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
2821
 
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
2822
 
])# _LT_AC_LANG_GCJ
2823
 
 
2824
 
 
2825
 
# AC_LIBTOOL_RC
2826
 
# -------------
2827
 
# enable support for Windows resource files
2828
 
AC_DEFUN([AC_LIBTOOL_RC],
2829
 
[AC_REQUIRE([LT_AC_PROG_RC])
2830
 
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
2831
 
])# AC_LIBTOOL_RC
2832
 
 
2833
 
 
2834
 
# AC_LIBTOOL_LANG_C_CONFIG
2835
 
# ------------------------
2836
 
# Ensure that the configuration vars for the C compiler are
2837
 
# suitably defined.  Those variables are subsequently used by
2838
 
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2839
 
AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
2840
 
AC_DEFUN([_LT_AC_LANG_C_CONFIG],
2841
 
[lt_save_CC="$CC"
2842
 
AC_LANG_PUSH(C)
2843
 
 
2844
 
# Source file extension for C test sources.
2845
 
ac_ext=c
2846
 
 
2847
 
# Object file extension for compiled C test sources.
2848
 
objext=o
2849
 
_LT_AC_TAGVAR(objext, $1)=$objext
2850
 
 
2851
 
# Code to be used in simple compile tests
2852
 
lt_simple_compile_test_code="int some_variable = 0;"
2853
 
 
2854
 
# Code to be used in simple link tests
2855
 
lt_simple_link_test_code='int main(){return(0);}'
2856
 
 
2857
 
_LT_AC_SYS_COMPILER
2858
 
 
2859
 
# save warnings/boilerplate of simple test code
2860
 
_LT_COMPILER_BOILERPLATE
2861
 
_LT_LINKER_BOILERPLATE
2862
 
 
2863
 
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
2864
 
AC_LIBTOOL_PROG_COMPILER_PIC($1)
2865
 
AC_LIBTOOL_PROG_CC_C_O($1)
2866
 
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
2867
 
AC_LIBTOOL_PROG_LD_SHLIBS($1)
2868
 
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
2869
 
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
2870
 
AC_LIBTOOL_SYS_LIB_STRIP
2871
 
AC_LIBTOOL_DLOPEN_SELF
2872
 
 
2873
 
# Report which library types will actually be built
2874
 
AC_MSG_CHECKING([if libtool supports shared libraries])
2875
 
AC_MSG_RESULT([$can_build_shared])
2876
 
 
2877
 
AC_MSG_CHECKING([whether to build shared libraries])
2878
 
test "$can_build_shared" = "no" && enable_shared=no
2879
 
 
2880
 
# On AIX, shared libraries and static libraries use the same namespace, and
2881
 
# are all built from PIC.
2882
 
case $host_os in
2883
 
aix3*)
2884
 
  test "$enable_shared" = yes && enable_static=no
2885
 
  if test -n "$RANLIB"; then
2886
 
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
2887
 
    postinstall_cmds='$RANLIB $lib'
2888
 
  fi
2889
 
  ;;
2890
 
 
2891
 
aix[[4-9]]*)
2892
 
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
2893
 
    test "$enable_shared" = yes && enable_static=no
2894
 
  fi
2895
 
    ;;
2896
 
esac
2897
 
AC_MSG_RESULT([$enable_shared])
2898
 
 
2899
 
AC_MSG_CHECKING([whether to build static libraries])
2900
 
# Make sure either enable_shared or enable_static is yes.
2901
 
test "$enable_shared" = yes || enable_static=yes
2902
 
AC_MSG_RESULT([$enable_static])
2903
 
 
2904
 
AC_LIBTOOL_CONFIG($1)
2905
 
 
2906
 
AC_LANG_POP
2907
 
CC="$lt_save_CC"
2908
 
])# AC_LIBTOOL_LANG_C_CONFIG
2909
 
 
2910
 
 
2911
 
# AC_LIBTOOL_LANG_CXX_CONFIG
2912
 
# --------------------------
2913
 
# Ensure that the configuration vars for the C compiler are
2914
 
# suitably defined.  Those variables are subsequently used by
2915
 
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2916
 
AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
2917
 
AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
2918
 
[AC_LANG_PUSH(C++)
2919
 
AC_REQUIRE([AC_PROG_CXX])
2920
 
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
2921
 
 
2922
 
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2923
 
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
2924
 
_LT_AC_TAGVAR(always_export_symbols, $1)=no
2925
 
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
2926
 
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
2927
 
_LT_AC_TAGVAR(hardcode_direct, $1)=no
2928
 
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
2929
 
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
2930
 
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2931
 
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
2932
 
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2933
 
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
2934
 
_LT_AC_TAGVAR(module_cmds, $1)=
2935
 
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
2936
 
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
2937
 
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
2938
 
_LT_AC_TAGVAR(no_undefined_flag, $1)=
2939
 
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
2940
 
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
2941
 
 
2942
 
# Dependencies to place before and after the object being linked:
2943
 
_LT_AC_TAGVAR(predep_objects, $1)=
2944
 
_LT_AC_TAGVAR(postdep_objects, $1)=
2945
 
_LT_AC_TAGVAR(predeps, $1)=
2946
 
_LT_AC_TAGVAR(postdeps, $1)=
2947
 
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
2948
 
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
2949
 
 
2950
 
# Source file extension for C++ test sources.
2951
 
ac_ext=cpp
2952
 
 
2953
 
# Object file extension for compiled C++ test sources.
2954
 
objext=o
2955
 
_LT_AC_TAGVAR(objext, $1)=$objext
2956
 
 
2957
 
# Code to be used in simple compile tests
2958
 
lt_simple_compile_test_code="int some_variable = 0;"
2959
 
 
2960
 
# Code to be used in simple link tests
2961
 
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
2962
 
 
2963
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
2964
 
_LT_AC_SYS_COMPILER
2965
 
 
2966
 
# save warnings/boilerplate of simple test code
2967
 
_LT_COMPILER_BOILERPLATE
2968
 
_LT_LINKER_BOILERPLATE
2969
 
 
2970
 
# Allow CC to be a program name with arguments.
2971
 
lt_save_CC=$CC
2972
 
lt_save_LD=$LD
2973
 
lt_save_GCC=$GCC
2974
 
GCC=$GXX
2975
 
lt_save_with_gnu_ld=$with_gnu_ld
2976
 
lt_save_path_LD=$lt_cv_path_LD
2977
 
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
2978
 
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
2979
 
else
2980
 
  $as_unset lt_cv_prog_gnu_ld
2981
 
fi
2982
 
if test -n "${lt_cv_path_LDCXX+set}"; then
2983
 
  lt_cv_path_LD=$lt_cv_path_LDCXX
2984
 
else
2985
 
  $as_unset lt_cv_path_LD
2986
 
fi
2987
 
test -z "${LDCXX+set}" || LD=$LDCXX
2988
 
CC=${CXX-"c++"}
2989
 
compiler=$CC
2990
 
_LT_AC_TAGVAR(compiler, $1)=$CC
2991
 
_LT_CC_BASENAME([$compiler])
2992
 
 
2993
 
# We don't want -fno-exception wen compiling C++ code, so set the
2994
 
# no_builtin_flag separately
2995
 
if test "$GXX" = yes; then
2996
 
  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
2997
 
else
2998
 
  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
2999
 
fi
3000
 
 
3001
 
if test "$GXX" = yes; then
3002
 
  # Set up default GNU C++ configuration
3003
 
 
3004
 
  AC_PROG_LD
3005
 
 
3006
 
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
3007
 
  # archiving commands below assume that GNU ld is being used.
3008
 
  if test "$with_gnu_ld" = yes; then
3009
 
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3010
 
    _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'
3011
 
 
3012
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3013
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3014
 
 
3015
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
3016
 
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
3017
 
    #     investigate it a little bit more. (MM)
3018
 
    wlarc='${wl}'
3019
 
 
3020
 
    # ancient GNU ld didn't support --whole-archive et. al.
3021
 
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
3022
 
        grep 'no-whole-archive' > /dev/null; then
3023
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3024
 
    else
3025
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3026
 
    fi
3027
 
  else
3028
 
    with_gnu_ld=no
3029
 
    wlarc=
3030
 
 
3031
 
    # A generic and very simple default shared library creation
3032
 
    # command for GNU C++ for the case where it uses the native
3033
 
    # linker, instead of GNU ld.  If possible, this setting should
3034
 
    # overridden to take advantage of the native linker features on
3035
 
    # the platform it is being used on.
3036
 
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3037
 
  fi
3038
 
 
3039
 
  # Commands to make compiler produce verbose output that lists
3040
 
  # what "hidden" libraries, object files and flags are used when
3041
 
  # linking a shared library.
3042
 
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3043
 
 
3044
 
else
3045
 
  GXX=no
3046
 
  with_gnu_ld=no
3047
 
  wlarc=
3048
 
fi
3049
 
 
3050
 
# PORTME: fill in a description of your system's C++ link characteristics
3051
 
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
3052
 
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
3053
 
case $host_os in
3054
 
  aix3*)
3055
 
    # FIXME: insert proper C++ library support
3056
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3057
 
    ;;
3058
 
  aix[[4-9]]*)
3059
 
    if test "$host_cpu" = ia64; then
3060
 
      # On IA64, the linker does run time linking by default, so we don't
3061
 
      # have to do anything special.
3062
 
      aix_use_runtimelinking=no
3063
 
      exp_sym_flag='-Bexport'
3064
 
      no_entry_flag=""
3065
 
    else
3066
 
      aix_use_runtimelinking=no
3067
 
 
3068
 
      # Test if we are trying to use run time linking or normal
3069
 
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
3070
 
      # need to do runtime linking.
3071
 
      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
3072
 
        for ld_flag in $LDFLAGS; do
3073
 
          case $ld_flag in
3074
 
          *-brtl*)
3075
 
            aix_use_runtimelinking=yes
3076
 
            break
3077
 
            ;;
3078
 
          esac
3079
 
        done
3080
 
        ;;
3081
 
      esac
3082
 
 
3083
 
      exp_sym_flag='-bexport'
3084
 
      no_entry_flag='-bnoentry'
3085
 
    fi
3086
 
 
3087
 
    # When large executables or shared objects are built, AIX ld can
3088
 
    # have problems creating the table of contents.  If linking a library
3089
 
    # or program results in "error TOC overflow" add -mminimal-toc to
3090
 
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
3091
 
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
3092
 
 
3093
 
    _LT_AC_TAGVAR(archive_cmds, $1)=''
3094
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3095
 
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3096
 
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3097
 
 
3098
 
    if test "$GXX" = yes; then
3099
 
      case $host_os in aix4.[[012]]|aix4.[[012]].*)
3100
 
      # We only want to do this on AIX 4.2 and lower, the check
3101
 
      # below for broken collect2 doesn't work under 4.3+
3102
 
        collect2name=`${CC} -print-prog-name=collect2`
3103
 
        if test -f "$collect2name" && \
3104
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
3105
 
        then
3106
 
          # We have reworked collect2
3107
 
          :
3108
 
        else
3109
 
          # We have old collect2
3110
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3111
 
          # It fails to find uninstalled libraries when the uninstalled
3112
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
3113
 
          # to unsupported forces relinking
3114
 
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
3115
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3116
 
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3117
 
        fi
3118
 
        ;;
3119
 
      esac
3120
 
      shared_flag='-shared'
3121
 
      if test "$aix_use_runtimelinking" = yes; then
3122
 
        shared_flag="$shared_flag "'${wl}-G'
3123
 
      fi
3124
 
    else
3125
 
      # not using gcc
3126
 
      if test "$host_cpu" = ia64; then
3127
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
3128
 
        # chokes on -Wl,-G. The following line is correct:
3129
 
        shared_flag='-G'
3130
 
      else
3131
 
        if test "$aix_use_runtimelinking" = yes; then
3132
 
          shared_flag='${wl}-G'
3133
 
        else
3134
 
          shared_flag='${wl}-bM:SRE'
3135
 
        fi
3136
 
      fi
3137
 
    fi
3138
 
 
3139
 
    # It seems that -bexpall does not export symbols beginning with
3140
 
    # underscore (_), so it is better to generate a list of symbols to export.
3141
 
    _LT_AC_TAGVAR(always_export_symbols, $1)=yes
3142
 
    if test "$aix_use_runtimelinking" = yes; then
3143
 
      # Warning - without using the other runtime loading flags (-brtl),
3144
 
      # -berok will link without error, but may produce a broken library.
3145
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
3146
 
      # Determine the default libpath from the value encoded in an empty executable.
3147
 
      _LT_AC_SYS_LIBPATH_AIX
3148
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3149
 
 
3150
 
      _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"
3151
 
     else
3152
 
      if test "$host_cpu" = ia64; then
3153
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
3154
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
3155
 
        _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"
3156
 
      else
3157
 
        # Determine the default libpath from the value encoded in an empty executable.
3158
 
        _LT_AC_SYS_LIBPATH_AIX
3159
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3160
 
        # Warning - without using the other run time loading flags,
3161
 
        # -berok will link without error, but may produce a broken library.
3162
 
        _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
3163
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
3164
 
        # Exported symbols can be pulled into shared objects from archives
3165
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
3166
 
        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
3167
 
        # This is similar to how AIX traditionally builds its shared libraries.
3168
 
        _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'
3169
 
      fi
3170
 
    fi
3171
 
    ;;
3172
 
 
3173
 
  beos*)
3174
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
3175
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3176
 
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3177
 
      # support --undefined.  This deserves some investigation.  FIXME
3178
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3179
 
    else
3180
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
3181
 
    fi
3182
 
    ;;
3183
 
 
3184
 
  chorus*)
3185
 
    case $cc_basename in
3186
 
      *)
3187
 
        # FIXME: insert proper C++ library support
3188
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3189
 
        ;;
3190
 
    esac
3191
 
    ;;
3192
 
 
3193
 
  cygwin* | mingw* | pw32*)
3194
 
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
3195
 
    # as there is no search path for DLLs.
3196
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3197
 
    _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3198
 
    _LT_AC_TAGVAR(always_export_symbols, $1)=no
3199
 
    _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
3200
 
 
3201
 
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
3202
 
      _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'
3203
 
      # If the export-symbols file already is a .def file (1st line
3204
 
      # is EXPORTS), use it as is; otherwise, prepend...
3205
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
3206
 
        cp $export_symbols $output_objdir/$soname.def;
3207
 
      else
3208
 
        echo EXPORTS > $output_objdir/$soname.def;
3209
 
        cat $export_symbols >> $output_objdir/$soname.def;
3210
 
      fi~
3211
 
      $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'
3212
 
    else
3213
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
3214
 
    fi
3215
 
  ;;
3216
 
      darwin* | rhapsody*)
3217
 
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3218
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
3219
 
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3220
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3221
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3222
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3223
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
3224
 
      if test "$GXX" = yes ; then
3225
 
      output_verbose_link_cmd='echo'
3226
 
      _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}"
3227
 
      _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
3228
 
      _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}"
3229
 
      _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}"
3230
 
      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
3231
 
        _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}"
3232
 
        _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}"
3233
 
      fi
3234
 
      else
3235
 
      case $cc_basename in
3236
 
        xlc*)
3237
 
         output_verbose_link_cmd='echo'
3238
 
          _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'
3239
 
          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3240
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3241
 
          _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}'
3242
 
          _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}'
3243
 
          ;;
3244
 
       *)
3245
 
         _LT_AC_TAGVAR(ld_shlibs, $1)=no
3246
 
          ;;
3247
 
      esac
3248
 
      fi
3249
 
        ;;
3250
 
 
3251
 
  dgux*)
3252
 
    case $cc_basename in
3253
 
      ec++*)
3254
 
        # FIXME: insert proper C++ library support
3255
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3256
 
        ;;
3257
 
      ghcx*)
3258
 
        # Green Hills C++ Compiler
3259
 
        # FIXME: insert proper C++ library support
3260
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3261
 
        ;;
3262
 
      *)
3263
 
        # FIXME: insert proper C++ library support
3264
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3265
 
        ;;
3266
 
    esac
3267
 
    ;;
3268
 
  freebsd[[12]]*)
3269
 
    # C++ shared libraries reported to be fairly broken before switch to ELF
3270
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3271
 
    ;;
3272
 
  freebsd-elf*)
3273
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3274
 
    ;;
3275
 
  freebsd* | dragonfly*)
3276
 
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3277
 
    # conventions
3278
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=yes
3279
 
    ;;
3280
 
  gnu*)
3281
 
    ;;
3282
 
  hpux9*)
3283
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3284
 
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3285
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3286
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3287
 
    _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3288
 
                                # but as the default
3289
 
                                # location of the library.
3290
 
 
3291
 
    case $cc_basename in
3292
 
    CC*)
3293
 
      # FIXME: insert proper C++ library support
3294
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
3295
 
      ;;
3296
 
    aCC*)
3297
 
      _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'
3298
 
      # Commands to make compiler produce verbose output that lists
3299
 
      # what "hidden" libraries, object files and flags are used when
3300
 
      # linking a shared library.
3301
 
      #
3302
 
      # There doesn't appear to be a way to prevent this compiler from
3303
 
      # explicitly linking system object files so we need to strip them
3304
 
      # from the output so that they don't get included in the library
3305
 
      # dependencies.
3306
 
      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'
3307
 
      ;;
3308
 
    *)
3309
 
      if test "$GXX" = yes; then
3310
 
        _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'
3311
 
      else
3312
 
        # FIXME: insert proper C++ library support
3313
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3314
 
      fi
3315
 
      ;;
3316
 
    esac
3317
 
    ;;
3318
 
  hpux10*|hpux11*)
3319
 
    if test $with_gnu_ld = no; then
3320
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3321
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3322
 
 
3323
 
      case $host_cpu in
3324
 
      hppa*64*|ia64*) ;;
3325
 
      *)
3326
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3327
 
        ;;
3328
 
      esac
3329
 
    fi
3330
 
    case $host_cpu in
3331
 
    hppa*64*|ia64*)
3332
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
3333
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3334
 
      ;;
3335
 
    *)
3336
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3337
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3338
 
                                              # but as the default
3339
 
                                              # location of the library.
3340
 
      ;;
3341
 
    esac
3342
 
 
3343
 
    case $cc_basename in
3344
 
      CC*)
3345
 
        # FIXME: insert proper C++ library support
3346
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3347
 
        ;;
3348
 
      aCC*)
3349
 
        case $host_cpu in
3350
 
        hppa*64*)
3351
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3352
 
          ;;
3353
 
        ia64*)
3354
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3355
 
          ;;
3356
 
        *)
3357
 
          _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'
3358
 
          ;;
3359
 
        esac
3360
 
        # Commands to make compiler produce verbose output that lists
3361
 
        # what "hidden" libraries, object files and flags are used when
3362
 
        # linking a shared library.
3363
 
        #
3364
 
        # There doesn't appear to be a way to prevent this compiler from
3365
 
        # explicitly linking system object files so we need to strip them
3366
 
        # from the output so that they don't get included in the library
3367
 
        # dependencies.
3368
 
        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'
3369
 
        ;;
3370
 
      *)
3371
 
        if test "$GXX" = yes; then
3372
 
          if test $with_gnu_ld = no; then
3373
 
            case $host_cpu in
3374
 
            hppa*64*)
3375
 
              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3376
 
              ;;
3377
 
            ia64*)
3378
 
              _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'
3379
 
              ;;
3380
 
            *)
3381
 
              _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'
3382
 
              ;;
3383
 
            esac
3384
 
          fi
3385
 
        else
3386
 
          # FIXME: insert proper C++ library support
3387
 
          _LT_AC_TAGVAR(ld_shlibs, $1)=no
3388
 
        fi
3389
 
        ;;
3390
 
    esac
3391
 
    ;;
3392
 
  interix[[3-9]]*)
3393
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
3394
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3395
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3396
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3397
 
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
3398
 
    # Instead, shared libraries are loaded at an image base (0x10000000 by
3399
 
    # default) and relocated if they conflict, which is a slow very memory
3400
 
    # consuming and fragmenting process.  To avoid this, we pick a random,
3401
 
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
3402
 
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
3403
 
    _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'
3404
 
    _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'
3405
 
    ;;
3406
 
  irix5* | irix6*)
3407
 
    case $cc_basename in
3408
 
      CC*)
3409
 
        # SGI C++
3410
 
        _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'
3411
 
 
3412
 
        # Archives containing C++ object files must be created using
3413
 
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
3414
 
        # necessary to make sure instantiated templates are included
3415
 
        # in the archive.
3416
 
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
3417
 
        ;;
3418
 
      *)
3419
 
        if test "$GXX" = yes; then
3420
 
          if test "$with_gnu_ld" = no; then
3421
 
            _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'
3422
 
          else
3423
 
            _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'
3424
 
          fi
3425
 
        fi
3426
 
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3427
 
        ;;
3428
 
    esac
3429
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3430
 
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3431
 
    ;;
3432
 
  linux* | k*bsd*-gnu)
3433
 
    case $cc_basename in
3434
 
      KCC*)
3435
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
3436
 
 
3437
 
        # KCC will only create a shared library if the output file
3438
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
3439
 
        # to its proper name (with version) after linking.
3440
 
        _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'
3441
 
        _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'
3442
 
        # Commands to make compiler produce verbose output that lists
3443
 
        # what "hidden" libraries, object files and flags are used when
3444
 
        # linking a shared library.
3445
 
        #
3446
 
        # There doesn't appear to be a way to prevent this compiler from
3447
 
        # explicitly linking system object files so we need to strip them
3448
 
        # from the output so that they don't get included in the library
3449
 
        # dependencies.
3450
 
        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'
3451
 
 
3452
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
3453
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3454
 
 
3455
 
        # Archives containing C++ object files must be created using
3456
 
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
3457
 
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3458
 
        ;;
3459
 
      icpc*)
3460
 
        # Intel C++
3461
 
        with_gnu_ld=yes
3462
 
        # version 8.0 and above of icpc choke on multiply defined symbols
3463
 
        # if we add $predep_objects and $postdep_objects, however 7.1 and
3464
 
        # earlier do not add the objects themselves.
3465
 
        case `$CC -V 2>&1` in
3466
 
        *"Version 7."*)
3467
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3468
 
          _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'
3469
 
          ;;
3470
 
        *)  # Version 8.0 or newer
3471
 
          tmp_idyn=
3472
 
          case $host_cpu in
3473
 
            ia64*) tmp_idyn=' -i_dynamic';;
3474
 
          esac
3475
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3476
 
          _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'
3477
 
          ;;
3478
 
        esac
3479
 
        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3480
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3481
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3482
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
3483
 
        ;;
3484
 
      pgCC* | pgcpp*)
3485
 
        # Portland Group C++ compiler
3486
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
3487
 
        _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'
3488
 
 
3489
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3490
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3491
 
        _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'
3492
 
        ;;
3493
 
      cxx*)
3494
 
        # Compaq C++
3495
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3496
 
        _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'
3497
 
 
3498
 
        runpath_var=LD_RUN_PATH
3499
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3500
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3501
 
 
3502
 
        # Commands to make compiler produce verbose output that lists
3503
 
        # what "hidden" libraries, object files and flags are used when
3504
 
        # linking a shared library.
3505
 
        #
3506
 
        # There doesn't appear to be a way to prevent this compiler from
3507
 
        # explicitly linking system object files so we need to strip them
3508
 
        # from the output so that they don't get included in the library
3509
 
        # dependencies.
3510
 
        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'
3511
 
        ;;
3512
 
      *)
3513
 
        case `$CC -V 2>&1 | sed 5q` in
3514
 
        *Sun\ C*)
3515
 
          # Sun C++ 5.9
3516
 
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3517
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3518
 
          _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'
3519
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3520
 
          _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'
3521
 
 
3522
 
          # Not sure whether something based on
3523
 
          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
3524
 
          # would be better.
3525
 
          output_verbose_link_cmd='echo'
3526
 
 
3527
 
          # Archives containing C++ object files must be created using
3528
 
          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
3529
 
          # necessary to make sure instantiated templates are included
3530
 
          # in the archive.
3531
 
          _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
3532
 
          ;;
3533
 
        esac
3534
 
        ;;
3535
 
    esac
3536
 
    ;;
3537
 
  lynxos*)
3538
 
    # FIXME: insert proper C++ library support
3539
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3540
 
    ;;
3541
 
  m88k*)
3542
 
    # FIXME: insert proper C++ library support
3543
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3544
 
    ;;
3545
 
  mvs*)
3546
 
    case $cc_basename in
3547
 
      cxx*)
3548
 
        # FIXME: insert proper C++ library support
3549
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3550
 
        ;;
3551
 
      *)
3552
 
        # FIXME: insert proper C++ library support
3553
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3554
 
        ;;
3555
 
    esac
3556
 
    ;;
3557
 
  netbsd*)
3558
 
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3559
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
3560
 
      wlarc=
3561
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3562
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3563
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3564
 
    fi
3565
 
    # Workaround some broken pre-1.5 toolchains
3566
 
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
3567
 
    ;;
3568
 
  openbsd2*)
3569
 
    # C++ shared libraries are fairly broken
3570
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3571
 
    ;;
3572
 
  openbsd*)
3573
 
    if test -f /usr/libexec/ld.so; then
3574
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3575
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3576
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3577
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3578
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3579
 
        _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'
3580
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3581
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3582
 
      fi
3583
 
      output_verbose_link_cmd='echo'
3584
 
    else
3585
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
3586
 
    fi
3587
 
    ;;
3588
 
  osf3*)
3589
 
    case $cc_basename in
3590
 
      KCC*)
3591
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
3592
 
 
3593
 
        # KCC will only create a shared library if the output file
3594
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
3595
 
        # to its proper name (with version) after linking.
3596
 
        _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'
3597
 
 
3598
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3599
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3600
 
 
3601
 
        # Archives containing C++ object files must be created using
3602
 
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
3603
 
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3604
 
 
3605
 
        ;;
3606
 
      RCC*)
3607
 
        # Rational C++ 2.4.1
3608
 
        # FIXME: insert proper C++ library support
3609
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3610
 
        ;;
3611
 
      cxx*)
3612
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3613
 
        _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'
3614
 
 
3615
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3616
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3617
 
 
3618
 
        # Commands to make compiler produce verbose output that lists
3619
 
        # what "hidden" libraries, object files and flags are used when
3620
 
        # linking a shared library.
3621
 
        #
3622
 
        # There doesn't appear to be a way to prevent this compiler from
3623
 
        # explicitly linking system object files so we need to strip them
3624
 
        # from the output so that they don't get included in the library
3625
 
        # dependencies.
3626
 
        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'
3627
 
        ;;
3628
 
      *)
3629
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3630
 
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3631
 
          _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'
3632
 
 
3633
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3634
 
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3635
 
 
3636
 
          # Commands to make compiler produce verbose output that lists
3637
 
          # what "hidden" libraries, object files and flags are used when
3638
 
          # linking a shared library.
3639
 
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3640
 
 
3641
 
        else
3642
 
          # FIXME: insert proper C++ library support
3643
 
          _LT_AC_TAGVAR(ld_shlibs, $1)=no
3644
 
        fi
3645
 
        ;;
3646
 
    esac
3647
 
    ;;
3648
 
  osf4* | osf5*)
3649
 
    case $cc_basename in
3650
 
      KCC*)
3651
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
3652
 
 
3653
 
        # KCC will only create a shared library if the output file
3654
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
3655
 
        # to its proper name (with version) after linking.
3656
 
        _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'
3657
 
 
3658
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3659
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3660
 
 
3661
 
        # Archives containing C++ object files must be created using
3662
 
        # the KAI C++ compiler.
3663
 
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
3664
 
        ;;
3665
 
      RCC*)
3666
 
        # Rational C++ 2.4.1
3667
 
        # FIXME: insert proper C++ library support
3668
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3669
 
        ;;
3670
 
      cxx*)
3671
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
3672
 
        _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'
3673
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
3674
 
          echo "-hidden">> $lib.exp~
3675
 
          $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~
3676
 
          $rm $lib.exp'
3677
 
 
3678
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3679
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3680
 
 
3681
 
        # Commands to make compiler produce verbose output that lists
3682
 
        # what "hidden" libraries, object files and flags are used when
3683
 
        # linking a shared library.
3684
 
        #
3685
 
        # There doesn't appear to be a way to prevent this compiler from
3686
 
        # explicitly linking system object files so we need to strip them
3687
 
        # from the output so that they don't get included in the library
3688
 
        # dependencies.
3689
 
        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'
3690
 
        ;;
3691
 
      *)
3692
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3693
 
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3694
 
         _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'
3695
 
 
3696
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3697
 
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3698
 
 
3699
 
          # Commands to make compiler produce verbose output that lists
3700
 
          # what "hidden" libraries, object files and flags are used when
3701
 
          # linking a shared library.
3702
 
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3703
 
 
3704
 
        else
3705
 
          # FIXME: insert proper C++ library support
3706
 
          _LT_AC_TAGVAR(ld_shlibs, $1)=no
3707
 
        fi
3708
 
        ;;
3709
 
    esac
3710
 
    ;;
3711
 
  psos*)
3712
 
    # FIXME: insert proper C++ library support
3713
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3714
 
    ;;
3715
 
  sunos4*)
3716
 
    case $cc_basename in
3717
 
      CC*)
3718
 
        # Sun C++ 4.x
3719
 
        # FIXME: insert proper C++ library support
3720
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3721
 
        ;;
3722
 
      lcc*)
3723
 
        # Lucid
3724
 
        # FIXME: insert proper C++ library support
3725
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3726
 
        ;;
3727
 
      *)
3728
 
        # FIXME: insert proper C++ library support
3729
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3730
 
        ;;
3731
 
    esac
3732
 
    ;;
3733
 
  solaris*)
3734
 
    case $cc_basename in
3735
 
      CC*)
3736
 
        # Sun C++ 4.2, 5.x and Centerline C++
3737
 
        _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
3738
 
        _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3739
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3740
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3741
 
        $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'
3742
 
 
3743
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3744
 
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3745
 
        case $host_os in
3746
 
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3747
 
          *)
3748
 
            # The compiler driver will combine and reorder linker options,
3749
 
            # but understands `-z linker_flag'.
3750
 
            # Supported since Solaris 2.6 (maybe 2.5.1?)
3751
 
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
3752
 
            ;;
3753
 
        esac
3754
 
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3755
 
 
3756
 
        output_verbose_link_cmd='echo'
3757
 
 
3758
 
        # Archives containing C++ object files must be created using
3759
 
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
3760
 
        # necessary to make sure instantiated templates are included
3761
 
        # in the archive.
3762
 
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
3763
 
        ;;
3764
 
      gcx*)
3765
 
        # Green Hills C++ Compiler
3766
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3767
 
 
3768
 
        # The C++ compiler must be used to create the archive.
3769
 
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
3770
 
        ;;
3771
 
      *)
3772
 
        # GNU C++ compiler with Solaris linker
3773
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3774
 
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
3775
 
          if $CC --version | grep -v '^2\.7' > /dev/null; then
3776
 
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3777
 
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3778
 
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3779
 
 
3780
 
            # Commands to make compiler produce verbose output that lists
3781
 
            # what "hidden" libraries, object files and flags are used when
3782
 
            # linking a shared library.
3783
 
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
3784
 
          else
3785
 
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
3786
 
            # platform.
3787
 
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3788
 
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3789
 
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3790
 
 
3791
 
            # Commands to make compiler produce verbose output that lists
3792
 
            # what "hidden" libraries, object files and flags are used when
3793
 
            # linking a shared library.
3794
 
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
3795
 
          fi
3796
 
 
3797
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
3798
 
          case $host_os in
3799
 
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3800
 
          *)
3801
 
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
3802
 
            ;;
3803
 
          esac
3804
 
        fi
3805
 
        ;;
3806
 
    esac
3807
 
    ;;
3808
 
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
3809
 
    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3810
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3811
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3812
 
    runpath_var='LD_RUN_PATH'
3813
 
 
3814
 
    case $cc_basename in
3815
 
      CC*)
3816
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3817
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3818
 
        ;;
3819
 
      *)
3820
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3821
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3822
 
        ;;
3823
 
    esac
3824
 
    ;;
3825
 
  sysv5* | sco3.2v5* | sco5v6*)
3826
 
    # Note: We can NOT use -z defs as we might desire, because we do not
3827
 
    # link with -lc, and that would cause any symbols used from libc to
3828
 
    # always be unresolved, which means just about no library would
3829
 
    # ever link correctly.  If we're not using GNU ld we use -z text
3830
 
    # though, which does catch some bad symbols but isn't as heavy-handed
3831
 
    # as -z defs.
3832
 
    # For security reasons, it is highly recommended that you always
3833
 
    # use absolute paths for naming shared libraries, and exclude the
3834
 
    # DT_RUNPATH tag from executables and libraries.  But doing so
3835
 
    # requires that you compile everything twice, which is a pain.
3836
 
    # So that behaviour is only enabled if SCOABSPATH is set to a
3837
 
    # non-empty value in the environment.  Most likely only useful for
3838
 
    # creating official distributions of packages.
3839
 
    # This is a hack until libtool officially supports absolute path
3840
 
    # names for shared libraries.
3841
 
    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3842
 
    _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
3843
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3844
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3845
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
3846
 
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3847
 
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3848
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
3849
 
    runpath_var='LD_RUN_PATH'
3850
 
 
3851
 
    case $cc_basename in
3852
 
      CC*)
3853
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3854
 
        _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'
3855
 
        ;;
3856
 
      *)
3857
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3858
 
        _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'
3859
 
        ;;
3860
 
    esac
3861
 
    ;;
3862
 
  tandem*)
3863
 
    case $cc_basename in
3864
 
      NCC*)
3865
 
        # NonStop-UX NCC 3.20
3866
 
        # FIXME: insert proper C++ library support
3867
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3868
 
        ;;
3869
 
      *)
3870
 
        # FIXME: insert proper C++ library support
3871
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3872
 
        ;;
3873
 
    esac
3874
 
    ;;
3875
 
  vxworks*)
3876
 
    # FIXME: insert proper C++ library support
3877
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3878
 
    ;;
3879
 
  *)
3880
 
    # FIXME: insert proper C++ library support
3881
 
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3882
 
    ;;
3883
 
esac
3884
 
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
3885
 
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
3886
 
 
3887
 
_LT_AC_TAGVAR(GCC, $1)="$GXX"
3888
 
_LT_AC_TAGVAR(LD, $1)="$LD"
3889
 
 
3890
 
AC_LIBTOOL_POSTDEP_PREDEP($1)
3891
 
AC_LIBTOOL_PROG_COMPILER_PIC($1)
3892
 
AC_LIBTOOL_PROG_CC_C_O($1)
3893
 
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3894
 
AC_LIBTOOL_PROG_LD_SHLIBS($1)
3895
 
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3896
 
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3897
 
 
3898
 
AC_LIBTOOL_CONFIG($1)
3899
 
 
3900
 
AC_LANG_POP
3901
 
CC=$lt_save_CC
3902
 
LDCXX=$LD
3903
 
LD=$lt_save_LD
3904
 
GCC=$lt_save_GCC
3905
 
with_gnu_ldcxx=$with_gnu_ld
3906
 
with_gnu_ld=$lt_save_with_gnu_ld
3907
 
lt_cv_path_LDCXX=$lt_cv_path_LD
3908
 
lt_cv_path_LD=$lt_save_path_LD
3909
 
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
3910
 
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
3911
 
])# AC_LIBTOOL_LANG_CXX_CONFIG
3912
 
 
3913
 
# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
3914
 
# ------------------------------------
3915
 
# Figure out "hidden" library dependencies from verbose
3916
 
# compiler output when linking a shared library.
3917
 
# Parse the compiler output and extract the necessary
3918
 
# objects, libraries and library flags.
3919
 
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],
3920
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
3921
 
dnl we can't use the lt_simple_compile_test_code here,
3922
 
dnl because it contains code intended for an executable,
3923
 
dnl not a library.  It's possible we should let each
3924
 
dnl tag define a new lt_????_link_test_code variable,
3925
 
dnl but it's only used here...
3926
 
ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
3927
 
int a;
3928
 
void foo (void) { a = 0; }
3929
 
EOF
3930
 
],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
3931
 
class Foo
3932
 
{
3933
 
public:
3934
 
  Foo (void) { a = 0; }
3935
 
private:
3936
 
  int a;
3937
 
};
3938
 
EOF
3939
 
],[$1],[F77],[cat > conftest.$ac_ext <<EOF
3940
 
      subroutine foo
3941
 
      implicit none
3942
 
      integer*4 a
3943
 
      a=0
3944
 
      return
3945
 
      end
3946
 
EOF
3947
 
],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
3948
 
public class foo {
3949
 
  private int a;
3950
 
  public void bar (void) {
3951
 
    a = 0;
3952
 
  }
3953
 
};
3954
 
EOF
3955
 
])
3956
 
dnl Parse the compiler output and extract the necessary
3957
 
dnl objects, libraries and library flags.
3958
 
if AC_TRY_EVAL(ac_compile); then
3959
 
  # Parse the compiler output and extract the necessary
3960
 
  # objects, libraries and library flags.
3961
 
 
3962
 
  # Sentinel used to keep track of whether or not we are before
3963
 
  # the conftest object file.
3964
 
  pre_test_object_deps_done=no
3965
 
 
3966
 
  # The `*' in the case matches for architectures that use `case' in
3967
 
  # $output_verbose_cmd can trigger glob expansion during the loop
3968
 
  # eval without this substitution.
3969
 
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
3970
 
 
3971
 
  for p in `eval $output_verbose_link_cmd`; do
3972
 
    case $p in
3973
 
 
3974
 
    -L* | -R* | -l*)
3975
 
       # Some compilers place space between "-{L,R}" and the path.
3976
 
       # Remove the space.
3977
 
       if test $p = "-L" \
3978
 
          || test $p = "-R"; then
3979
 
         prev=$p
3980
 
         continue
3981
 
       else
3982
 
         prev=
3983
 
       fi
3984
 
 
3985
 
       if test "$pre_test_object_deps_done" = no; then
3986
 
         case $p in
3987
 
         -L* | -R*)
3988
 
           # Internal compiler library paths should come after those
3989
 
           # provided the user.  The postdeps already come after the
3990
 
           # user supplied libs so there is no need to process them.
3991
 
           if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
3992
 
             _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
3993
 
           else
3994
 
             _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
3995
 
           fi
3996
 
           ;;
3997
 
         # The "-l" case would never come before the object being
3998
 
         # linked, so don't bother handling this case.
3999
 
         esac
4000
 
       else
4001
 
         if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
4002
 
           _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
4003
 
         else
4004
 
           _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
4005
 
         fi
4006
 
       fi
4007
 
       ;;
4008
 
 
4009
 
    *.$objext)
4010
 
       # This assumes that the test object file only shows up
4011
 
       # once in the compiler output.
4012
 
       if test "$p" = "conftest.$objext"; then
4013
 
         pre_test_object_deps_done=yes
4014
 
         continue
4015
 
       fi
4016
 
 
4017
 
       if test "$pre_test_object_deps_done" = no; then
4018
 
         if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
4019
 
           _LT_AC_TAGVAR(predep_objects, $1)="$p"
4020
 
         else
4021
 
           _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
4022
 
         fi
4023
 
       else
4024
 
         if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
4025
 
           _LT_AC_TAGVAR(postdep_objects, $1)="$p"
4026
 
         else
4027
 
           _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
4028
 
         fi
4029
 
       fi
4030
 
       ;;
4031
 
 
4032
 
    *) ;; # Ignore the rest.
4033
 
 
4034
 
    esac
4035
 
  done
4036
 
 
4037
 
  # Clean up.
4038
 
  rm -f a.out a.exe
4039
 
else
4040
 
  echo "libtool.m4: error: problem compiling $1 test program"
4041
 
fi
4042
 
 
4043
 
$rm -f confest.$objext
4044
 
 
4045
 
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
4046
 
if test -n "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
4047
 
  _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_AC_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
4048
 
fi
4049
 
 
4050
 
# PORTME: override above test on systems where it is broken
4051
 
ifelse([$1],[CXX],
4052
 
[case $host_os in
4053
 
interix[[3-9]]*)
4054
 
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
4055
 
  # hack all around it, let's just trust "g++" to DTRT.
4056
 
  _LT_AC_TAGVAR(predep_objects,$1)=
4057
 
  _LT_AC_TAGVAR(postdep_objects,$1)=
4058
 
  _LT_AC_TAGVAR(postdeps,$1)=
4059
 
  ;;
4060
 
 
4061
 
linux*)
4062
 
  case `$CC -V 2>&1 | sed 5q` in
4063
 
  *Sun\ C*)
4064
 
    # Sun C++ 5.9
4065
 
    #
4066
 
    # The more standards-conforming stlport4 library is
4067
 
    # incompatible with the Cstd library. Avoid specifying
4068
 
    # it if it's in CXXFLAGS. Ignore libCrun as
4069
 
    # -library=stlport4 depends on it.
4070
 
    case " $CXX $CXXFLAGS " in
4071
 
    *" -library=stlport4 "*)
4072
 
      solaris_use_stlport4=yes
4073
 
      ;;
4074
 
    esac
4075
 
    if test "$solaris_use_stlport4" != yes; then
4076
 
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
4077
 
    fi
4078
 
    ;;
4079
 
  esac
4080
 
  ;;
4081
 
 
4082
 
solaris*)
4083
 
  case $cc_basename in
4084
 
  CC*)
4085
 
    # The more standards-conforming stlport4 library is
4086
 
    # incompatible with the Cstd library. Avoid specifying
4087
 
    # it if it's in CXXFLAGS. Ignore libCrun as
4088
 
    # -library=stlport4 depends on it.
4089
 
    case " $CXX $CXXFLAGS " in
4090
 
    *" -library=stlport4 "*)
4091
 
      solaris_use_stlport4=yes
4092
 
      ;;
4093
 
    esac
4094
 
 
4095
 
    # Adding this requires a known-good setup of shared libraries for
4096
 
    # Sun compiler versions before 5.6, else PIC objects from an old
4097
 
    # archive will be linked into the output, leading to subtle bugs.
4098
 
    if test "$solaris_use_stlport4" != yes; then
4099
 
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
4100
 
    fi
4101
 
    ;;
4102
 
  esac
4103
 
  ;;
4104
 
esac
4105
 
])
4106
 
case " $_LT_AC_TAGVAR(postdeps, $1) " in
4107
 
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
4108
 
esac
4109
 
])# AC_LIBTOOL_POSTDEP_PREDEP
4110
 
 
4111
 
# AC_LIBTOOL_LANG_F77_CONFIG
4112
 
# --------------------------
4113
 
# Ensure that the configuration vars for the C compiler are
4114
 
# suitably defined.  Those variables are subsequently used by
4115
 
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4116
 
AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
4117
 
AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
4118
 
[AC_REQUIRE([AC_PROG_F77])
4119
 
AC_LANG_PUSH(Fortran 77)
4120
 
 
4121
 
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4122
 
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
4123
 
_LT_AC_TAGVAR(always_export_symbols, $1)=no
4124
 
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
4125
 
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
4126
 
_LT_AC_TAGVAR(hardcode_direct, $1)=no
4127
 
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
4128
 
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4129
 
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4130
 
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
4131
 
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
4132
 
_LT_AC_TAGVAR(module_cmds, $1)=
4133
 
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
4134
 
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
4135
 
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4136
 
_LT_AC_TAGVAR(no_undefined_flag, $1)=
4137
 
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4138
 
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4139
 
 
4140
 
# Source file extension for f77 test sources.
4141
 
ac_ext=f
4142
 
 
4143
 
# Object file extension for compiled f77 test sources.
4144
 
objext=o
4145
 
_LT_AC_TAGVAR(objext, $1)=$objext
4146
 
 
4147
 
# Code to be used in simple compile tests
4148
 
lt_simple_compile_test_code="\
4149
 
      subroutine t
4150
 
      return
4151
 
      end
4152
 
"
4153
 
 
4154
 
# Code to be used in simple link tests
4155
 
lt_simple_link_test_code="\
4156
 
      program t
4157
 
      end
4158
 
"
4159
 
 
4160
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4161
 
_LT_AC_SYS_COMPILER
4162
 
 
4163
 
# save warnings/boilerplate of simple test code
4164
 
_LT_COMPILER_BOILERPLATE
4165
 
_LT_LINKER_BOILERPLATE
4166
 
 
4167
 
# Allow CC to be a program name with arguments.
4168
 
lt_save_CC="$CC"
4169
 
CC=${F77-"f77"}
4170
 
compiler=$CC
4171
 
_LT_AC_TAGVAR(compiler, $1)=$CC
4172
 
_LT_CC_BASENAME([$compiler])
4173
 
 
4174
 
AC_MSG_CHECKING([if libtool supports shared libraries])
4175
 
AC_MSG_RESULT([$can_build_shared])
4176
 
 
4177
 
AC_MSG_CHECKING([whether to build shared libraries])
4178
 
test "$can_build_shared" = "no" && enable_shared=no
4179
 
 
4180
 
# On AIX, shared libraries and static libraries use the same namespace, and
4181
 
# are all built from PIC.
4182
 
case $host_os in
4183
 
aix3*)
4184
 
  test "$enable_shared" = yes && enable_static=no
4185
 
  if test -n "$RANLIB"; then
4186
 
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
4187
 
    postinstall_cmds='$RANLIB $lib'
4188
 
  fi
4189
 
  ;;
4190
 
aix[[4-9]]*)
4191
 
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4192
 
    test "$enable_shared" = yes && enable_static=no
4193
 
  fi
4194
 
  ;;
4195
 
esac
4196
 
AC_MSG_RESULT([$enable_shared])
4197
 
 
4198
 
AC_MSG_CHECKING([whether to build static libraries])
4199
 
# Make sure either enable_shared or enable_static is yes.
4200
 
test "$enable_shared" = yes || enable_static=yes
4201
 
AC_MSG_RESULT([$enable_static])
4202
 
 
4203
 
_LT_AC_TAGVAR(GCC, $1)="$G77"
4204
 
_LT_AC_TAGVAR(LD, $1)="$LD"
4205
 
 
4206
 
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4207
 
AC_LIBTOOL_PROG_CC_C_O($1)
4208
 
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4209
 
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4210
 
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4211
 
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4212
 
 
4213
 
AC_LIBTOOL_CONFIG($1)
4214
 
 
4215
 
AC_LANG_POP
4216
 
CC="$lt_save_CC"
4217
 
])# AC_LIBTOOL_LANG_F77_CONFIG
4218
 
 
4219
 
 
4220
 
# AC_LIBTOOL_LANG_GCJ_CONFIG
4221
 
# --------------------------
4222
 
# Ensure that the configuration vars for the C compiler are
4223
 
# suitably defined.  Those variables are subsequently used by
4224
 
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4225
 
AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
4226
 
AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
4227
 
[AC_LANG_SAVE
4228
 
 
4229
 
# Source file extension for Java test sources.
4230
 
ac_ext=java
4231
 
 
4232
 
# Object file extension for compiled Java test sources.
4233
 
objext=o
4234
 
_LT_AC_TAGVAR(objext, $1)=$objext
4235
 
 
4236
 
# Code to be used in simple compile tests
4237
 
lt_simple_compile_test_code="class foo {}"
4238
 
 
4239
 
# Code to be used in simple link tests
4240
 
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
4241
 
 
4242
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4243
 
_LT_AC_SYS_COMPILER
4244
 
 
4245
 
# save warnings/boilerplate of simple test code
4246
 
_LT_COMPILER_BOILERPLATE
4247
 
_LT_LINKER_BOILERPLATE
4248
 
 
4249
 
# Allow CC to be a program name with arguments.
4250
 
lt_save_CC="$CC"
4251
 
CC=${GCJ-"gcj"}
4252
 
compiler=$CC
4253
 
_LT_AC_TAGVAR(compiler, $1)=$CC
4254
 
_LT_CC_BASENAME([$compiler])
4255
 
 
4256
 
# GCJ did not exist at the time GCC didn't implicitly link libc in.
4257
 
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4258
 
 
4259
 
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4260
 
 
4261
 
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
4262
 
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4263
 
AC_LIBTOOL_PROG_CC_C_O($1)
4264
 
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4265
 
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4266
 
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4267
 
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4268
 
 
4269
 
AC_LIBTOOL_CONFIG($1)
4270
 
 
4271
 
AC_LANG_RESTORE
4272
 
CC="$lt_save_CC"
4273
 
])# AC_LIBTOOL_LANG_GCJ_CONFIG
4274
 
 
4275
 
 
4276
 
# AC_LIBTOOL_LANG_RC_CONFIG
4277
 
# -------------------------
4278
 
# Ensure that the configuration vars for the Windows resource compiler are
4279
 
# suitably defined.  Those variables are subsequently used by
4280
 
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4281
 
AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
4282
 
AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
4283
 
[AC_LANG_SAVE
4284
 
 
4285
 
# Source file extension for RC test sources.
4286
 
ac_ext=rc
4287
 
 
4288
 
# Object file extension for compiled RC test sources.
4289
 
objext=o
4290
 
_LT_AC_TAGVAR(objext, $1)=$objext
4291
 
 
4292
 
# Code to be used in simple compile tests
4293
 
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
4294
 
 
4295
 
# Code to be used in simple link tests
4296
 
lt_simple_link_test_code="$lt_simple_compile_test_code"
4297
 
 
4298
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4299
 
_LT_AC_SYS_COMPILER
4300
 
 
4301
 
# save warnings/boilerplate of simple test code
4302
 
_LT_COMPILER_BOILERPLATE
4303
 
_LT_LINKER_BOILERPLATE
4304
 
 
4305
 
# Allow CC to be a program name with arguments.
4306
 
lt_save_CC="$CC"
4307
 
CC=${RC-"windres"}
4308
 
compiler=$CC
4309
 
_LT_AC_TAGVAR(compiler, $1)=$CC
4310
 
_LT_CC_BASENAME([$compiler])
4311
 
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
4312
 
 
4313
 
AC_LIBTOOL_CONFIG($1)
4314
 
 
4315
 
AC_LANG_RESTORE
4316
 
CC="$lt_save_CC"
4317
 
])# AC_LIBTOOL_LANG_RC_CONFIG
4318
 
 
4319
 
 
4320
 
# AC_LIBTOOL_CONFIG([TAGNAME])
4321
 
# ----------------------------
4322
 
# If TAGNAME is not passed, then create an initial libtool script
4323
 
# with a default configuration from the untagged config vars.  Otherwise
4324
 
# add code to config.status for appending the configuration named by
4325
 
# TAGNAME from the matching tagged config vars.
4326
 
AC_DEFUN([AC_LIBTOOL_CONFIG],
4327
 
[# The else clause should only fire when bootstrapping the
4328
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
4329
 
# with your package, and you will get complaints that there are
4330
 
# no rules to generate ltmain.sh.
4331
 
if test -f "$ltmain"; then
4332
 
  # See if we are running on zsh, and set the options which allow our commands through
4333
 
  # without removal of \ escapes.
4334
 
  if test -n "${ZSH_VERSION+set}" ; then
4335
 
    setopt NO_GLOB_SUBST
4336
 
  fi
4337
 
  # Now quote all the things that may contain metacharacters while being
4338
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
4339
 
  # variables and quote the copies for generation of the libtool script.
4340
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
4341
 
    SED SHELL STRIP \
4342
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
4343
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
4344
 
    deplibs_check_method reload_flag reload_cmds need_locks \
4345
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
4346
 
    lt_cv_sys_global_symbol_to_c_name_address \
4347
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
4348
 
    old_postinstall_cmds old_postuninstall_cmds \
4349
 
    _LT_AC_TAGVAR(compiler, $1) \
4350
 
    _LT_AC_TAGVAR(CC, $1) \
4351
 
    _LT_AC_TAGVAR(LD, $1) \
4352
 
    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
4353
 
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
4354
 
    _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
4355
 
    _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
4356
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
4357
 
    _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
4358
 
    _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
4359
 
    _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
4360
 
    _LT_AC_TAGVAR(old_archive_cmds, $1) \
4361
 
    _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
4362
 
    _LT_AC_TAGVAR(predep_objects, $1) \
4363
 
    _LT_AC_TAGVAR(postdep_objects, $1) \
4364
 
    _LT_AC_TAGVAR(predeps, $1) \
4365
 
    _LT_AC_TAGVAR(postdeps, $1) \
4366
 
    _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
4367
 
    _LT_AC_TAGVAR(compiler_lib_search_dirs, $1) \
4368
 
    _LT_AC_TAGVAR(archive_cmds, $1) \
4369
 
    _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
4370
 
    _LT_AC_TAGVAR(postinstall_cmds, $1) \
4371
 
    _LT_AC_TAGVAR(postuninstall_cmds, $1) \
4372
 
    _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
4373
 
    _LT_AC_TAGVAR(allow_undefined_flag, $1) \
4374
 
    _LT_AC_TAGVAR(no_undefined_flag, $1) \
4375
 
    _LT_AC_TAGVAR(export_symbols_cmds, $1) \
4376
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
4377
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
4378
 
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
4379
 
    _LT_AC_TAGVAR(hardcode_automatic, $1) \
4380
 
    _LT_AC_TAGVAR(module_cmds, $1) \
4381
 
    _LT_AC_TAGVAR(module_expsym_cmds, $1) \
4382
 
    _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
4383
 
    _LT_AC_TAGVAR(fix_srcfile_path, $1) \
4384
 
    _LT_AC_TAGVAR(exclude_expsyms, $1) \
4385
 
    _LT_AC_TAGVAR(include_expsyms, $1); do
4386
 
 
4387
 
    case $var in
4388
 
    _LT_AC_TAGVAR(old_archive_cmds, $1) | \
4389
 
    _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
4390
 
    _LT_AC_TAGVAR(archive_cmds, $1) | \
4391
 
    _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
4392
 
    _LT_AC_TAGVAR(module_cmds, $1) | \
4393
 
    _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
4394
 
    _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
4395
 
    _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
4396
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
4397
 
    postinstall_cmds | postuninstall_cmds | \
4398
 
    old_postinstall_cmds | old_postuninstall_cmds | \
4399
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
4400
 
      # Double-quote double-evaled strings.
4401
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
4402
 
      ;;
4403
 
    *)
4404
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
4405
 
      ;;
4406
 
    esac
4407
 
  done
4408
 
 
4409
 
  case $lt_echo in
4410
 
  *'\[$]0 --fallback-echo"')
4411
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
4412
 
    ;;
4413
 
  esac
4414
 
 
4415
 
ifelse([$1], [],
4416
 
  [cfgfile="${ofile}T"
4417
 
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
4418
 
  $rm -f "$cfgfile"
4419
 
  AC_MSG_NOTICE([creating $ofile])],
4420
 
  [cfgfile="$ofile"])
4421
 
 
4422
 
  cat <<__EOF__ >> "$cfgfile"
4423
 
ifelse([$1], [],
4424
 
[#! $SHELL
4425
 
 
4426
 
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
4427
 
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4428
 
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
4429
 
#
4430
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
4431
 
# Free Software Foundation, Inc.
4432
 
#
4433
 
# This file is part of GNU Libtool:
4434
 
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
4435
 
#
4436
 
# This program is free software; you can redistribute it and/or modify
4437
 
# it under the terms of the GNU General Public License as published by
4438
 
# the Free Software Foundation; either version 2 of the License, or
4439
 
# (at your option) any later version.
4440
 
#
4441
 
# This program is distributed in the hope that it will be useful, but
4442
 
# WITHOUT ANY WARRANTY; without even the implied warranty of
4443
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
4444
 
# General Public License for more details.
4445
 
#
4446
 
# You should have received a copy of the GNU General Public License
4447
 
# along with this program; if not, write to the Free Software
4448
 
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
4449
 
#
4450
 
# As a special exception to the GNU General Public License, if you
4451
 
# distribute this file as part of a program that contains a
4452
 
# configuration script generated by Autoconf, you may include it under
4453
 
# the same distribution terms that you use for the rest of that program.
4454
 
 
4455
 
# A sed program that does not truncate output.
4456
 
SED=$lt_SED
4457
 
 
4458
 
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
4459
 
Xsed="$SED -e 1s/^X//"
4460
 
 
4461
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
4462
 
# if CDPATH is set.
4463
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4464
 
 
4465
 
# The names of the tagged configurations supported by this script.
4466
 
available_tags=
4467
 
 
4468
 
# ### BEGIN LIBTOOL CONFIG],
4469
 
[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
4470
 
 
4471
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4472
 
 
4473
 
# Shell to use when invoking shell scripts.
4474
 
SHELL=$lt_SHELL
4475
 
 
4476
 
# Whether or not to build shared libraries.
4477
 
build_libtool_libs=$enable_shared
4478
 
 
4479
 
# Whether or not to build static libraries.
4480
 
build_old_libs=$enable_static
4481
 
 
4482
 
# Whether or not to add -lc for building shared libraries.
4483
 
build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
4484
 
 
4485
 
# Whether or not to disallow shared libs when runtime libs are static
4486
 
allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
4487
 
 
4488
 
# Whether or not to optimize for fast installation.
4489
 
fast_install=$enable_fast_install
4490
 
 
4491
 
# The host system.
4492
 
host_alias=$host_alias
4493
 
host=$host
4494
 
host_os=$host_os
4495
 
 
4496
 
# The build system.
4497
 
build_alias=$build_alias
4498
 
build=$build
4499
 
build_os=$build_os
4500
 
 
4501
 
# An echo program that does not interpret backslashes.
4502
 
echo=$lt_echo
4503
 
 
4504
 
# The archiver.
4505
 
AR=$lt_AR
4506
 
AR_FLAGS=$lt_AR_FLAGS
4507
 
 
4508
 
# A C compiler.
4509
 
LTCC=$lt_LTCC
4510
 
 
4511
 
# LTCC compiler flags.
4512
 
LTCFLAGS=$lt_LTCFLAGS
4513
 
 
4514
 
# A language-specific compiler.
4515
 
CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
4516
 
 
4517
 
# Is the compiler the GNU C compiler?
4518
 
with_gcc=$_LT_AC_TAGVAR(GCC, $1)
4519
 
 
4520
 
# An ERE matcher.
4521
 
EGREP=$lt_EGREP
4522
 
 
4523
 
# The linker used to build libraries.
4524
 
LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
4525
 
 
4526
 
# Whether we need hard or soft links.
4527
 
LN_S=$lt_LN_S
4528
 
 
4529
 
# A BSD-compatible nm program.
4530
 
NM=$lt_NM
4531
 
 
4532
 
# A symbol stripping program
4533
 
STRIP=$lt_STRIP
4534
 
 
4535
 
# Used to examine libraries when file_magic_cmd begins "file"
4536
 
MAGIC_CMD=$MAGIC_CMD
4537
 
 
4538
 
# Used on cygwin: DLL creation program.
4539
 
DLLTOOL="$DLLTOOL"
4540
 
 
4541
 
# Used on cygwin: object dumper.
4542
 
OBJDUMP="$OBJDUMP"
4543
 
 
4544
 
# Used on cygwin: assembler.
4545
 
AS="$AS"
4546
 
 
4547
 
# The name of the directory that contains temporary libtool files.
4548
 
objdir=$objdir
4549
 
 
4550
 
# How to create reloadable object files.
4551
 
reload_flag=$lt_reload_flag
4552
 
reload_cmds=$lt_reload_cmds
4553
 
 
4554
 
# How to pass a linker flag through the compiler.
4555
 
wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
4556
 
 
4557
 
# Object file suffix (normally "o").
4558
 
objext="$ac_objext"
4559
 
 
4560
 
# Old archive suffix (normally "a").
4561
 
libext="$libext"
4562
 
 
4563
 
# Shared library suffix (normally ".so").
4564
 
shrext_cmds='$shrext_cmds'
4565
 
 
4566
 
# Executable file suffix (normally "").
4567
 
exeext="$exeext"
4568
 
 
4569
 
# Additional compiler flags for building library objects.
4570
 
pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
4571
 
pic_mode=$pic_mode
4572
 
 
4573
 
# What is the maximum length of a command?
4574
 
max_cmd_len=$lt_cv_sys_max_cmd_len
4575
 
 
4576
 
# Does compiler simultaneously support -c and -o options?
4577
 
compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
4578
 
 
4579
 
# Must we lock files when doing compilation?
4580
 
need_locks=$lt_need_locks
4581
 
 
4582
 
# Do we need the lib prefix for modules?
4583
 
need_lib_prefix=$need_lib_prefix
4584
 
 
4585
 
# Do we need a version for libraries?
4586
 
need_version=$need_version
4587
 
 
4588
 
# Whether dlopen is supported.
4589
 
dlopen_support=$enable_dlopen
4590
 
 
4591
 
# Whether dlopen of programs is supported.
4592
 
dlopen_self=$enable_dlopen_self
4593
 
 
4594
 
# Whether dlopen of statically linked programs is supported.
4595
 
dlopen_self_static=$enable_dlopen_self_static
4596
 
 
4597
 
# Compiler flag to prevent dynamic linking.
4598
 
link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
4599
 
 
4600
 
# Compiler flag to turn off builtin functions.
4601
 
no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
4602
 
 
4603
 
# Compiler flag to allow reflexive dlopens.
4604
 
export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
4605
 
 
4606
 
# Compiler flag to generate shared objects directly from archives.
4607
 
whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
4608
 
 
4609
 
# Compiler flag to generate thread-safe objects.
4610
 
thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
4611
 
 
4612
 
# Library versioning type.
4613
 
version_type=$version_type
4614
 
 
4615
 
# Format of library name prefix.
4616
 
libname_spec=$lt_libname_spec
4617
 
 
4618
 
# List of archive names.  First name is the real one, the rest are links.
4619
 
# The last name is the one that the linker finds with -lNAME.
4620
 
library_names_spec=$lt_library_names_spec
4621
 
 
4622
 
# The coded name of the library, if different from the real name.
4623
 
soname_spec=$lt_soname_spec
4624
 
 
4625
 
# Commands used to build and install an old-style archive.
4626
 
RANLIB=$lt_RANLIB
4627
 
old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
4628
 
old_postinstall_cmds=$lt_old_postinstall_cmds
4629
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
4630
 
 
4631
 
# Create an old-style archive from a shared archive.
4632
 
old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
4633
 
 
4634
 
# Create a temporary old-style archive to link instead of a shared archive.
4635
 
old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
4636
 
 
4637
 
# Commands used to build and install a shared archive.
4638
 
archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
4639
 
archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
4640
 
postinstall_cmds=$lt_postinstall_cmds
4641
 
postuninstall_cmds=$lt_postuninstall_cmds
4642
 
 
4643
 
# Commands used to build a loadable module (assumed same as above if empty)
4644
 
module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
4645
 
module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
4646
 
 
4647
 
# Commands to strip libraries.
4648
 
old_striplib=$lt_old_striplib
4649
 
striplib=$lt_striplib
4650
 
 
4651
 
# Dependencies to place before the objects being linked to create a
4652
 
# shared library.
4653
 
predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
4654
 
 
4655
 
# Dependencies to place after the objects being linked to create a
4656
 
# shared library.
4657
 
postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
4658
 
 
4659
 
# Dependencies to place before the objects being linked to create a
4660
 
# shared library.
4661
 
predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
4662
 
 
4663
 
# Dependencies to place after the objects being linked to create a
4664
 
# shared library.
4665
 
postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
4666
 
 
4667
 
# The directories searched by this compiler when creating a shared
4668
 
# library
4669
 
compiler_lib_search_dirs=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)
4670
 
 
4671
 
# The library search path used internally by the compiler when linking
4672
 
# a shared library.
4673
 
compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
4674
 
 
4675
 
# Method to check whether dependent libraries are shared objects.
4676
 
deplibs_check_method=$lt_deplibs_check_method
4677
 
 
4678
 
# Command to use when deplibs_check_method == file_magic.
4679
 
file_magic_cmd=$lt_file_magic_cmd
4680
 
 
4681
 
# Flag that allows shared libraries with undefined symbols to be built.
4682
 
allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
4683
 
 
4684
 
# Flag that forces no undefined symbols.
4685
 
no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
4686
 
 
4687
 
# Commands used to finish a libtool library installation in a directory.
4688
 
finish_cmds=$lt_finish_cmds
4689
 
 
4690
 
# Same as above, but a single script fragment to be evaled but not shown.
4691
 
finish_eval=$lt_finish_eval
4692
 
 
4693
 
# Take the output of nm and produce a listing of raw symbols and C names.
4694
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
4695
 
 
4696
 
# Transform the output of nm in a proper C declaration
4697
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
4698
 
 
4699
 
# Transform the output of nm in a C name address pair
4700
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
4701
 
 
4702
 
# This is the shared library runtime path variable.
4703
 
runpath_var=$runpath_var
4704
 
 
4705
 
# This is the shared library path variable.
4706
 
shlibpath_var=$shlibpath_var
4707
 
 
4708
 
# Is shlibpath searched before the hard-coded library search path?
4709
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
4710
 
 
4711
 
# How to hardcode a shared library path into an executable.
4712
 
hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
4713
 
 
4714
 
# Whether we should hardcode library paths into libraries.
4715
 
hardcode_into_libs=$hardcode_into_libs
4716
 
 
4717
 
# Flag to hardcode \$libdir into a binary during linking.
4718
 
# This must work even if \$libdir does not exist.
4719
 
hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
4720
 
 
4721
 
# If ld is used when linking, flag to hardcode \$libdir into
4722
 
# a binary during linking. This must work even if \$libdir does
4723
 
# not exist.
4724
 
hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
4725
 
 
4726
 
# Whether we need a single -rpath flag with a separated argument.
4727
 
hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
4728
 
 
4729
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
4730
 
# resulting binary.
4731
 
hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
4732
 
 
4733
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
4734
 
# resulting binary.
4735
 
hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
4736
 
 
4737
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
4738
 
# the resulting binary.
4739
 
hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
4740
 
 
4741
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
4742
 
# and all subsequent libraries and executables linked against it.
4743
 
hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
4744
 
 
4745
 
# Variables whose values should be saved in libtool wrapper scripts and
4746
 
# restored at relink time.
4747
 
variables_saved_for_relink="$variables_saved_for_relink"
4748
 
 
4749
 
# Whether libtool must link a program against all its dependency libraries.
4750
 
link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
4751
 
 
4752
 
# Compile-time system search path for libraries
4753
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
4754
 
 
4755
 
# Run-time system search path for libraries
4756
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
4757
 
 
4758
 
# Fix the shell variable \$srcfile for the compiler.
4759
 
fix_srcfile_path=$lt_fix_srcfile_path
4760
 
 
4761
 
# Set to yes if exported symbols are required.
4762
 
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
4763
 
 
4764
 
# The commands to list exported symbols.
4765
 
export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
4766
 
 
4767
 
# The commands to extract the exported symbol list from a shared archive.
4768
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
4769
 
 
4770
 
# Symbols that should not be listed in the preloaded symbols.
4771
 
exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
4772
 
 
4773
 
# Symbols that must always be exported.
4774
 
include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
4775
 
 
4776
 
ifelse([$1],[],
4777
 
[# ### END LIBTOOL CONFIG],
4778
 
[# ### END LIBTOOL TAG CONFIG: $tagname])
4779
 
 
4780
 
__EOF__
4781
 
 
4782
 
ifelse([$1],[], [
4783
 
  case $host_os in
4784
 
  aix3*)
4785
 
    cat <<\EOF >> "$cfgfile"
4786
 
 
4787
 
# AIX sometimes has problems with the GCC collect2 program.  For some
4788
 
# reason, if we set the COLLECT_NAMES environment variable, the problems
4789
 
# vanish in a puff of smoke.
4790
 
if test "X${COLLECT_NAMES+set}" != Xset; then
4791
 
  COLLECT_NAMES=
4792
 
  export COLLECT_NAMES
4793
 
fi
4794
 
EOF
4795
 
    ;;
4796
 
  esac
4797
 
 
4798
 
  # We use sed instead of cat because bash on DJGPP gets confused if
4799
 
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
4800
 
  # text mode, it properly converts lines to CR/LF.  This bash problem
4801
 
  # is reportedly fixed, but why not run on old versions too?
4802
 
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
4803
 
 
4804
 
  mv -f "$cfgfile" "$ofile" || \
4805
 
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
4806
 
  chmod +x "$ofile"
4807
 
])
4808
 
else
4809
 
  # If there is no Makefile yet, we rely on a make rule to execute
4810
 
  # `config.status --recheck' to rerun these tests and create the
4811
 
  # libtool script then.
4812
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
4813
 
  if test -f "$ltmain_in"; then
4814
 
    test -f Makefile && make "$ltmain"
4815
 
  fi
4816
 
fi
4817
 
])# AC_LIBTOOL_CONFIG
4818
 
 
4819
 
 
4820
 
# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
4821
 
# -------------------------------------------
4822
 
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
4823
 
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
4824
 
 
4825
 
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
 
3328
AC_SUBST([LIBM])
 
3329
])# LT_LIB_M
 
3330
 
 
3331
# Old name:
 
3332
AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
 
3333
dnl aclocal-1.4 backwards compatibility:
 
3334
dnl AC_DEFUN([AC_CHECK_LIBM], [])
 
3335
 
 
3336
 
 
3337
# _LT_COMPILER_NO_RTTI([TAGNAME])
 
3338
# -------------------------------
 
3339
m4_defun([_LT_COMPILER_NO_RTTI],
 
3340
[m4_require([_LT_TAG_COMPILER])dnl
 
3341
 
 
3342
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
4826
3343
 
4827
3344
if test "$GCC" = yes; then
4828
 
  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
 
3345
  _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
4829
3346
 
4830
 
  AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
 
3347
  _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
4831
3348
    lt_cv_prog_compiler_rtti_exceptions,
4832
3349
    [-fno-rtti -fno-exceptions], [],
4833
 
    [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
 
3350
    [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
4834
3351
fi
4835
 
])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
4836
 
 
4837
 
 
4838
 
# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
4839
 
# ---------------------------------
4840
 
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
4841
 
[AC_REQUIRE([AC_CANONICAL_HOST])
4842
 
AC_REQUIRE([LT_AC_PROG_SED])
4843
 
AC_REQUIRE([AC_PROG_NM])
4844
 
AC_REQUIRE([AC_OBJEXT])
 
3352
_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
 
3353
        [Compiler flag to turn off builtin functions])
 
3354
])# _LT_COMPILER_NO_RTTI
 
3355
 
 
3356
 
 
3357
# _LT_CMD_GLOBAL_SYMBOLS
 
3358
# ----------------------
 
3359
m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
 
3360
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
3361
AC_REQUIRE([AC_PROG_CC])dnl
 
3362
AC_REQUIRE([LT_PATH_NM])dnl
 
3363
AC_REQUIRE([LT_PATH_LD])dnl
 
3364
m4_require([_LT_DECL_SED])dnl
 
3365
m4_require([_LT_DECL_EGREP])dnl
 
3366
m4_require([_LT_TAG_COMPILER])dnl
 
3367
 
4845
3368
# Check for command to grab the raw symbol name followed by C symbol from nm.
4846
3369
AC_MSG_CHECKING([command to parse $NM output from $compiler object])
4847
3370
AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
4855
3378
# Regexp to match symbols that can be accessed directly from C.
4856
3379
sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
4857
3380
 
4858
 
# Transform an extracted symbol line into a proper C declaration
4859
 
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4860
 
 
4861
 
# Transform an extracted symbol line into symbol name and symbol address
4862
 
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'"
4863
 
 
4864
3381
# Define system-specific variables.
4865
3382
case $host_os in
4866
3383
aix*)
4867
3384
  symcode='[[BCDT]]'
4868
3385
  ;;
4869
 
cygwin* | mingw* | pw32*)
 
3386
cygwin* | mingw* | pw32* | cegcc*)
4870
3387
  symcode='[[ABCDGISTW]]'
4871
3388
  ;;
4872
 
hpux*) # Its linker distinguishes data from code symbols
 
3389
hpux*)
4873
3390
  if test "$host_cpu" = ia64; then
4874
3391
    symcode='[[ABCDEGRST]]'
4875
3392
  fi
4876
 
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4877
 
  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'"
4878
 
  ;;
4879
 
linux* | k*bsd*-gnu)
4880
 
  if test "$host_cpu" = ia64; then
4881
 
    symcode='[[ABCDGIRSTW]]'
4882
 
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4883
 
    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'"
4884
 
  fi
4885
3393
  ;;
4886
3394
irix* | nonstopux*)
4887
3395
  symcode='[[BCDEGRST]]'
4906
3414
  ;;
4907
3415
esac
4908
3416
 
 
3417
# If we're using GNU nm, then use its standard symbol codes.
 
3418
case `$NM -V 2>&1` in
 
3419
*GNU* | *'with BFD'*)
 
3420
  symcode='[[ABCDGIRSTW]]' ;;
 
3421
esac
 
3422
 
 
3423
# Transform an extracted symbol line into a proper C declaration.
 
3424
# Some systems (esp. on ia64) link data and code symbols differently,
 
3425
# so use this general approach.
 
3426
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
3427
 
 
3428
# Transform an extracted symbol line into symbol name and symbol address
 
3429
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p'"
 
3430
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'"
 
3431
 
4909
3432
# Handle CRLF in mingw tool chain
4910
3433
opt_cr=
4911
3434
case $build_os in
4912
3435
mingw*)
4913
 
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
3436
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4914
3437
  ;;
4915
3438
esac
4916
3439
 
4917
 
# If we're using GNU nm, then use its standard symbol codes.
4918
 
case `$NM -V 2>&1` in
4919
 
*GNU* | *'with BFD'*)
4920
 
  symcode='[[ABCDGIRSTW]]' ;;
4921
 
esac
4922
 
 
4923
 
# Try without a prefix undercore, then with it.
 
3440
# Try without a prefix underscore, then with it.
4924
3441
for ac_symprfx in "" "_"; do
4925
3442
 
4926
3443
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4927
3444
  symxfrm="\\1 $ac_symprfx\\2 \\2"
4928
3445
 
4929
3446
  # Write the raw and C identifiers.
4930
 
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[      ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
3447
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
3448
    # Fake it for dumpbin and say T for any non-static function
 
3449
    # and D for any global variable.
 
3450
    # Also find C++ and __fastcall symbols from MSVC++,
 
3451
    # which start with @ or ?.
 
3452
    lt_cv_sys_global_symbol_pipe="$AWK ['"\
 
3453
"     {last_section=section; section=\$ 3};"\
 
3454
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
 
3455
"     \$ 0!~/External *\|/{next};"\
 
3456
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
 
3457
"     {if(hide[section]) next};"\
 
3458
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
 
3459
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
 
3460
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
 
3461
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
 
3462
"     ' prfx=^$ac_symprfx]"
 
3463
  else
 
3464
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[     ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
3465
  fi
4931
3466
 
4932
3467
  # Check to see that the pipe works correctly.
4933
3468
  pipe_works=no
4934
3469
 
4935
3470
  rm -f conftest*
4936
 
  cat > conftest.$ac_ext <<EOF
 
3471
  cat > conftest.$ac_ext <<_LT_EOF
4937
3472
#ifdef __cplusplus
4938
3473
extern "C" {
4939
3474
#endif
4940
3475
char nm_test_var;
4941
 
void nm_test_func(){}
 
3476
void nm_test_func(void);
 
3477
void nm_test_func(void){}
4942
3478
#ifdef __cplusplus
4943
3479
}
4944
3480
#endif
4945
3481
int main(){nm_test_var='a';nm_test_func();return(0);}
4946
 
EOF
 
3482
_LT_EOF
4947
3483
 
4948
3484
  if AC_TRY_EVAL(ac_compile); then
4949
3485
    # Now try to grab the symbols.
4957
3493
      fi
4958
3494
 
4959
3495
      # Make sure that we snagged all the symbols we need.
4960
 
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
4961
 
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
4962
 
          cat <<EOF > conftest.$ac_ext
 
3496
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
 
3497
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
 
3498
          cat <<_LT_EOF > conftest.$ac_ext
4963
3499
#ifdef __cplusplus
4964
3500
extern "C" {
4965
3501
#endif
4966
3502
 
4967
 
EOF
 
3503
_LT_EOF
4968
3504
          # Now generate the symbol file.
4969
 
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
4970
 
 
4971
 
          cat <<EOF >> conftest.$ac_ext
4972
 
#if defined (__STDC__) && __STDC__
4973
 
# define lt_ptr_t void *
4974
 
#else
4975
 
# define lt_ptr_t char *
4976
 
# define const
4977
 
#endif
4978
 
 
4979
 
/* The mapping between symbol names and symbols. */
 
3505
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
 
3506
 
 
3507
          cat <<_LT_EOF >> conftest.$ac_ext
 
3508
 
 
3509
/* The mapping between symbol names and symbols.  */
4980
3510
const struct {
4981
3511
  const char *name;
4982
 
  lt_ptr_t address;
 
3512
  void       *address;
4983
3513
}
4984
 
lt_preloaded_symbols[[]] =
 
3514
lt__PROGRAM__LTX_preloaded_symbols[[]] =
4985
3515
{
4986
 
EOF
4987
 
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
4988
 
          cat <<\EOF >> conftest.$ac_ext
4989
 
  {0, (lt_ptr_t) 0}
 
3516
  { "@PROGRAM@", (void *) 0 },
 
3517
_LT_EOF
 
3518
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
 
3519
          cat <<\_LT_EOF >> conftest.$ac_ext
 
3520
  {0, (void *) 0}
4990
3521
};
4991
3522
 
 
3523
/* This works around a problem in FreeBSD linker */
 
3524
#ifdef FREEBSD_WORKAROUND
 
3525
static const void *lt_preloaded_setup() {
 
3526
  return lt__PROGRAM__LTX_preloaded_symbols;
 
3527
}
 
3528
#endif
 
3529
 
4992
3530
#ifdef __cplusplus
4993
3531
}
4994
3532
#endif
4995
 
EOF
 
3533
_LT_EOF
4996
3534
          # Now try linking the two files.
4997
3535
          mv conftest.$ac_objext conftstm.$ac_objext
4998
3536
          lt_save_LIBS="$LIBS"
4999
3537
          lt_save_CFLAGS="$CFLAGS"
5000
3538
          LIBS="conftstm.$ac_objext"
5001
 
          CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
 
3539
          CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
5002
3540
          if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
5003
3541
            pipe_works=yes
5004
3542
          fi
5035
3573
else
5036
3574
  AC_MSG_RESULT(ok)
5037
3575
fi
5038
 
]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
5039
 
 
5040
 
 
5041
 
# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
5042
 
# ---------------------------------------
5043
 
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
5044
 
[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
5045
 
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5046
 
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
 
3576
 
 
3577
_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
 
3578
    [Take the output of nm and produce a listing of raw symbols and C names])
 
3579
_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
 
3580
    [Transform the output of nm in a proper C declaration])
 
3581
_LT_DECL([global_symbol_to_c_name_address],
 
3582
    [lt_cv_sys_global_symbol_to_c_name_address], [1],
 
3583
    [Transform the output of nm in a C name address pair])
 
3584
_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
 
3585
    [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
 
3586
    [Transform the output of nm in a C name address pair when lib prefix is needed])
 
3587
]) # _LT_CMD_GLOBAL_SYMBOLS
 
3588
 
 
3589
 
 
3590
# _LT_COMPILER_PIC([TAGNAME])
 
3591
# ---------------------------
 
3592
m4_defun([_LT_COMPILER_PIC],
 
3593
[m4_require([_LT_TAG_COMPILER])dnl
 
3594
_LT_TAGVAR(lt_prog_compiler_wl, $1)=
 
3595
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
 
3596
_LT_TAGVAR(lt_prog_compiler_static, $1)=
5047
3597
 
5048
3598
AC_MSG_CHECKING([for $compiler option to produce PIC])
5049
 
 ifelse([$1],[CXX],[
 
3599
m4_if([$1], [CXX], [
5050
3600
  # C++ specific cases for pic, static, wl, etc.
5051
3601
  if test "$GXX" = yes; then
5052
 
    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5053
 
    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
3602
    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
3603
    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
5054
3604
 
5055
3605
    case $host_os in
5056
3606
    aix*)
5057
3607
      # All AIX code is PIC.
5058
3608
      if test "$host_cpu" = ia64; then
5059
3609
        # AIX 5 now supports IA64 processor
5060
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
3610
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5061
3611
      fi
5062
3612
      ;;
 
3613
 
5063
3614
    amigaos*)
5064
 
      # FIXME: we need at least 68020 code to build shared libraries, but
5065
 
      # adding the `-m68020' flag to GCC prevents building anything better,
5066
 
      # like `-m68040'.
5067
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
 
3615
      case $host_cpu in
 
3616
      powerpc)
 
3617
            # see comment about AmigaOS4 .so support
 
3618
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
3619
        ;;
 
3620
      m68k)
 
3621
            # FIXME: we need at least 68020 code to build shared libraries, but
 
3622
            # adding the `-m68020' flag to GCC prevents building anything better,
 
3623
            # like `-m68040'.
 
3624
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
 
3625
        ;;
 
3626
      esac
5068
3627
      ;;
 
3628
 
5069
3629
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5070
3630
      # PIC is the default for these OSes.
5071
3631
      ;;
5072
 
    mingw* | cygwin* | os2* | pw32*)
 
3632
    mingw* | cygwin* | os2* | pw32* | cegcc*)
5073
3633
      # This hack is so that the source file can tell whether it is being
5074
3634
      # built for inclusion in a dll (and should export symbols for example).
5075
3635
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
5076
3636
      # (--disable-auto-import) libraries
5077
3637
      m4_if([$1], [GCJ], [],
5078
 
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
 
3638
        [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5079
3639
      ;;
5080
3640
    darwin* | rhapsody*)
5081
3641
      # PIC is the default on this platform
5082
3642
      # Common symbols not allowed in MH_DYLIB files
5083
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
 
3643
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5084
3644
      ;;
5085
3645
    *djgpp*)
5086
3646
      # DJGPP does not support shared libraries at all
5087
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
 
3647
      _LT_TAGVAR(lt_prog_compiler_pic, $1)=
5088
3648
      ;;
5089
3649
    interix[[3-9]]*)
5090
3650
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5092
3652
      ;;
5093
3653
    sysv4*MP*)
5094
3654
      if test -d /usr/nec; then
5095
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
 
3655
        _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5096
3656
      fi
5097
3657
      ;;
5098
3658
    hpux*)
5099
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5100
 
      # not for PA HP-UX.
 
3659
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
3660
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
3661
      # sets the default TLS model and affects inlining.
5101
3662
      case $host_cpu in
5102
 
      hppa*64*|ia64*)
 
3663
      hppa*64*)
5103
3664
        ;;
5104
3665
      *)
5105
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
3666
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5106
3667
        ;;
5107
3668
      esac
5108
3669
      ;;
 
3670
    *qnx* | *nto*)
 
3671
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
3672
      # it will coredump.
 
3673
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
 
3674
      ;;
5109
3675
    *)
5110
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
3676
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5111
3677
      ;;
5112
3678
    esac
5113
3679
  else
5116
3682
        # All AIX code is PIC.
5117
3683
        if test "$host_cpu" = ia64; then
5118
3684
          # AIX 5 now supports IA64 processor
5119
 
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
3685
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5120
3686
        else
5121
 
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
 
3687
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5122
3688
        fi
5123
3689
        ;;
5124
3690
      chorus*)
5125
3691
        case $cc_basename in
5126
3692
        cxch68*)
5127
3693
          # Green Hills C++ Compiler
5128
 
          # _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"
 
3694
          # _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"
5129
3695
          ;;
5130
3696
        esac
5131
3697
        ;;
5132
 
       darwin*)
5133
 
         # PIC is the default on this platform
5134
 
         # Common symbols not allowed in MH_DYLIB files
5135
 
         case $cc_basename in
5136
 
           xlc*)
5137
 
           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
5138
 
           _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5139
 
           ;;
5140
 
         esac
5141
 
       ;;
5142
3698
      dgux*)
5143
3699
        case $cc_basename in
5144
3700
          ec++*)
5145
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
3701
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5146
3702
            ;;
5147
3703
          ghcx*)
5148
3704
            # Green Hills C++ Compiler
5149
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
3705
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5150
3706
            ;;
5151
3707
          *)
5152
3708
            ;;
5158
3714
      hpux9* | hpux10* | hpux11*)
5159
3715
        case $cc_basename in
5160
3716
          CC*)
5161
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5162
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
 
3717
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
3718
            _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5163
3719
            if test "$host_cpu" != ia64; then
5164
 
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
 
3720
              _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5165
3721
            fi
5166
3722
            ;;
5167
3723
          aCC*)
5168
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5169
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
 
3724
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
3725
            _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5170
3726
            case $host_cpu in
5171
3727
            hppa*64*|ia64*)
5172
3728
              # +Z the default
5173
3729
              ;;
5174
3730
            *)
5175
 
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
 
3731
              _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5176
3732
              ;;
5177
3733
            esac
5178
3734
            ;;
5187
3743
      irix5* | irix6* | nonstopux*)
5188
3744
        case $cc_basename in
5189
3745
          CC*)
5190
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5191
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
3746
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
3747
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5192
3748
            # CC pic flag -KPIC is the default.
5193
3749
            ;;
5194
3750
          *)
5199
3755
        case $cc_basename in
5200
3756
          KCC*)
5201
3757
            # KAI C++ Compiler
5202
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5203
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5204
 
            ;;
5205
 
          icpc* | ecpc*)
5206
 
            # Intel C++
5207
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5208
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5209
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
3758
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
 
3759
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
3760
            ;;
 
3761
          ecpc* )
 
3762
            # old Intel C++ for x86_64 which still supported -KPIC.
 
3763
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
3764
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
3765
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
3766
            ;;
 
3767
          icpc* )
 
3768
            # Intel C++, used to be incompatible with GCC.
 
3769
            # ICC 10 doesn't accept -KPIC any more.
 
3770
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
3771
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
3772
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
5210
3773
            ;;
5211
3774
          pgCC* | pgcpp*)
5212
 
            # Portland Group C++ compiler.
5213
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5214
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5215
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
3775
            # Portland Group C++ compiler
 
3776
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
3777
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
 
3778
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5216
3779
            ;;
5217
3780
          cxx*)
5218
3781
            # Compaq C++
5219
3782
            # Make sure the PIC flag is empty.  It appears that all Alpha
5220
3783
            # Linux and Compaq Tru64 Unix objects are PIC.
5221
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5222
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
3784
            _LT_TAGVAR(lt_prog_compiler_pic, $1)=
 
3785
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
3786
            ;;
 
3787
          xlc* | xlC*)
 
3788
            # IBM XL 8.0 on PPC
 
3789
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
3790
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
 
3791
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
5223
3792
            ;;
5224
3793
          *)
5225
3794
            case `$CC -V 2>&1 | sed 5q` in
5226
3795
            *Sun\ C*)
5227
3796
              # Sun C++ 5.9
5228
 
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5229
 
              _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5230
 
              _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
3797
              _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
3798
              _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
3799
              _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5231
3800
              ;;
5232
3801
            esac
5233
3802
            ;;
5240
3809
      mvs*)
5241
3810
        case $cc_basename in
5242
3811
          cxx*)
5243
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
 
3812
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
5244
3813
            ;;
5245
3814
          *)
5246
3815
            ;;
5248
3817
        ;;
5249
3818
      netbsd*)
5250
3819
        ;;
 
3820
      *qnx* | *nto*)
 
3821
        # QNX uses GNU C++, but need to define -shared option too, otherwise
 
3822
        # it will coredump.
 
3823
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
 
3824
        ;;
5251
3825
      osf3* | osf4* | osf5*)
5252
3826
        case $cc_basename in
5253
3827
          KCC*)
5254
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
 
3828
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5255
3829
            ;;
5256
3830
          RCC*)
5257
3831
            # Rational C++ 2.4.1
5258
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
3832
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5259
3833
            ;;
5260
3834
          cxx*)
5261
3835
            # Digital/Compaq C++
5262
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
3836
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5263
3837
            # Make sure the PIC flag is empty.  It appears that all Alpha
5264
3838
            # Linux and Compaq Tru64 Unix objects are PIC.
5265
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5266
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
3839
            _LT_TAGVAR(lt_prog_compiler_pic, $1)=
 
3840
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5267
3841
            ;;
5268
3842
          *)
5269
3843
            ;;
5275
3849
        case $cc_basename in
5276
3850
          CC*)
5277
3851
            # Sun C++ 4.2, 5.x and Centerline C++
5278
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5279
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5280
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
3852
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
3853
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
3854
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5281
3855
            ;;
5282
3856
          gcx*)
5283
3857
            # Green Hills C++ Compiler
5284
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
 
3858
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5285
3859
            ;;
5286
3860
          *)
5287
3861
            ;;
5291
3865
        case $cc_basename in
5292
3866
          CC*)
5293
3867
            # Sun C++ 4.x
5294
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5295
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
3868
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
3869
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5296
3870
            ;;
5297
3871
          lcc*)
5298
3872
            # Lucid
5299
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
3873
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5300
3874
            ;;
5301
3875
          *)
5302
3876
            ;;
5303
3877
        esac
5304
3878
        ;;
 
3879
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
3880
        case $cc_basename in
 
3881
          CC*)
 
3882
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
3883
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
3884
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
3885
            ;;
 
3886
        esac
 
3887
        ;;
5305
3888
      tandem*)
5306
3889
        case $cc_basename in
5307
3890
          NCC*)
5308
3891
            # NonStop-UX NCC 3.20
5309
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
3892
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5310
3893
            ;;
5311
3894
          *)
5312
3895
            ;;
5313
3896
        esac
5314
3897
        ;;
5315
 
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5316
 
        case $cc_basename in
5317
 
          CC*)
5318
 
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5319
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5320
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5321
 
            ;;
5322
 
        esac
5323
 
        ;;
5324
3898
      vxworks*)
5325
3899
        ;;
5326
3900
      *)
5327
 
        _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
3901
        _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5328
3902
        ;;
5329
3903
    esac
5330
3904
  fi
5331
3905
],
5332
3906
[
5333
3907
  if test "$GCC" = yes; then
5334
 
    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5335
 
    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
3908
    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
3909
    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
5336
3910
 
5337
3911
    case $host_os in
5338
3912
      aix*)
5339
3913
      # All AIX code is PIC.
5340
3914
      if test "$host_cpu" = ia64; then
5341
3915
        # AIX 5 now supports IA64 processor
5342
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
3916
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5343
3917
      fi
5344
3918
      ;;
5345
3919
 
5346
3920
    amigaos*)
5347
 
      # FIXME: we need at least 68020 code to build shared libraries, but
5348
 
      # adding the `-m68020' flag to GCC prevents building anything better,
5349
 
      # like `-m68040'.
5350
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
 
3921
      case $host_cpu in
 
3922
      powerpc)
 
3923
            # see comment about AmigaOS4 .so support
 
3924
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
3925
        ;;
 
3926
      m68k)
 
3927
            # FIXME: we need at least 68020 code to build shared libraries, but
 
3928
            # adding the `-m68020' flag to GCC prevents building anything better,
 
3929
            # like `-m68040'.
 
3930
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
 
3931
        ;;
 
3932
      esac
5351
3933
      ;;
5352
3934
 
5353
3935
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5354
3936
      # PIC is the default for these OSes.
5355
3937
      ;;
5356
3938
 
5357
 
    mingw* | cygwin* | pw32* | os2*)
 
3939
    mingw* | cygwin* | pw32* | os2* | cegcc*)
5358
3940
      # This hack is so that the source file can tell whether it is being
5359
3941
      # built for inclusion in a dll (and should export symbols for example).
5360
3942
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
5361
3943
      # (--disable-auto-import) libraries
5362
3944
      m4_if([$1], [GCJ], [],
5363
 
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
 
3945
        [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5364
3946
      ;;
5365
3947
 
5366
3948
    darwin* | rhapsody*)
5367
3949
      # PIC is the default on this platform
5368
3950
      # Common symbols not allowed in MH_DYLIB files
5369
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
 
3951
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
 
3952
      ;;
 
3953
 
 
3954
    hpux*)
 
3955
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
3956
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
3957
      # sets the default TLS model and affects inlining.
 
3958
      case $host_cpu in
 
3959
      hppa*64*)
 
3960
        # +Z the default
 
3961
        ;;
 
3962
      *)
 
3963
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
3964
        ;;
 
3965
      esac
5370
3966
      ;;
5371
3967
 
5372
3968
    interix[[3-9]]*)
5377
3973
    msdosdjgpp*)
5378
3974
      # Just because we use GCC doesn't mean we suddenly get shared libraries
5379
3975
      # on systems that don't support them.
5380
 
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
3976
      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5381
3977
      enable_shared=no
5382
3978
      ;;
5383
3979
 
 
3980
    *nto* | *qnx*)
 
3981
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
3982
      # it will coredump.
 
3983
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
 
3984
      ;;
 
3985
 
5384
3986
    sysv4*MP*)
5385
3987
      if test -d /usr/nec; then
5386
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
 
3988
        _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5387
3989
      fi
5388
3990
      ;;
5389
3991
 
5390
 
    hpux*)
5391
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5392
 
      # not for PA HP-UX.
5393
 
      case $host_cpu in
5394
 
      hppa*64*|ia64*)
5395
 
        # +Z the default
5396
 
        ;;
5397
 
      *)
5398
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5399
 
        ;;
5400
 
      esac
5401
 
      ;;
5402
 
 
5403
3992
    *)
5404
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
3993
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5405
3994
      ;;
5406
3995
    esac
5407
3996
  else
5408
3997
    # PORTME Check for flag to pass linker flags through the system compiler.
5409
3998
    case $host_os in
5410
3999
    aix*)
5411
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4000
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5412
4001
      if test "$host_cpu" = ia64; then
5413
4002
        # AIX 5 now supports IA64 processor
5414
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4003
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5415
4004
      else
5416
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
 
4005
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5417
4006
      fi
5418
4007
      ;;
5419
 
      darwin*)
5420
 
        # PIC is the default on this platform
5421
 
        # Common symbols not allowed in MH_DYLIB files
5422
 
       case $cc_basename in
5423
 
         xlc*)
5424
 
         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
5425
 
         _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5426
 
         ;;
5427
 
       esac
5428
 
       ;;
5429
4008
 
5430
 
    mingw* | cygwin* | pw32* | os2*)
 
4009
    mingw* | cygwin* | pw32* | os2* | cegcc*)
5431
4010
      # This hack is so that the source file can tell whether it is being
5432
4011
      # built for inclusion in a dll (and should export symbols for example).
5433
4012
      m4_if([$1], [GCJ], [],
5434
 
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
 
4013
        [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5435
4014
      ;;
5436
4015
 
5437
4016
    hpux9* | hpux10* | hpux11*)
5438
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4017
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5439
4018
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5440
4019
      # not for PA HP-UX.
5441
4020
      case $host_cpu in
5443
4022
        # +Z the default
5444
4023
        ;;
5445
4024
      *)
5446
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
 
4025
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5447
4026
        ;;
5448
4027
      esac
5449
4028
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
5450
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
 
4029
      _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5451
4030
      ;;
5452
4031
 
5453
4032
    irix5* | irix6* | nonstopux*)
5454
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4033
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5455
4034
      # PIC (with -KPIC) is the default.
5456
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5457
 
      ;;
5458
 
 
5459
 
    newsos6)
5460
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5461
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4035
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5462
4036
      ;;
5463
4037
 
5464
4038
    linux* | k*bsd*-gnu)
5465
4039
      case $cc_basename in
5466
 
      icc* | ecc*)
5467
 
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5468
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5469
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5470
 
        ;;
 
4040
      # old Intel for x86_64 which still supported -KPIC.
 
4041
      ecc*)
 
4042
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4043
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4044
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
4045
        ;;
 
4046
      # icc used to be incompatible with GCC.
 
4047
      # ICC 10 doesn't accept -KPIC any more.
 
4048
      icc* | ifort*)
 
4049
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4050
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
4051
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
4052
        ;;
 
4053
      # Lahey Fortran 8.1.
 
4054
      lf95*)
 
4055
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4056
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
 
4057
        _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
 
4058
        ;;
5471
4059
      pgcc* | pgf77* | pgf90* | pgf95*)
5472
4060
        # Portland Group compilers (*not* the Pentium gcc compiler,
5473
4061
        # which looks to be a dead project)
5474
 
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5475
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5476
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4062
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4063
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
 
4064
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5477
4065
        ;;
5478
4066
      ccc*)
5479
 
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4067
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5480
4068
        # All Alpha code is PIC.
5481
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
4069
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5482
4070
        ;;
 
4071
      xl*)
 
4072
        # IBM XL C 8.0/Fortran 10.1 on PPC
 
4073
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4074
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
 
4075
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
 
4076
        ;;
5483
4077
      *)
5484
 
        case `$CC -V 2>&1 | sed 5q` in
 
4078
        case `$CC -V 2>&1 | sed 5q` in
5485
4079
        *Sun\ C*)
5486
4080
          # Sun C 5.9
5487
 
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5488
 
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5489
 
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4081
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4082
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4083
          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5490
4084
          ;;
5491
4085
        *Sun\ F*)
5492
4086
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
5493
 
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5494
 
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5495
 
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
 
4087
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4088
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4089
          _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
5496
4090
          ;;
5497
4091
        esac
5498
4092
        ;;
5499
4093
      esac
5500
4094
      ;;
5501
4095
 
 
4096
    newsos6)
 
4097
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4098
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4099
      ;;
 
4100
 
 
4101
    *nto* | *qnx*)
 
4102
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
4103
      # it will coredump.
 
4104
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
 
4105
      ;;
 
4106
 
5502
4107
    osf3* | osf4* | osf5*)
5503
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4108
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5504
4109
      # All OSF/1 code is PIC.
5505
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
4110
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5506
4111
      ;;
5507
4112
 
5508
4113
    rdos*)
5509
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
4114
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5510
4115
      ;;
5511
4116
 
5512
4117
    solaris*)
5513
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5514
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4118
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4119
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5515
4120
      case $cc_basename in
5516
4121
      f77* | f90* | f95*)
5517
 
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
 
4122
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
5518
4123
      *)
5519
 
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
 
4124
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
5520
4125
      esac
5521
4126
      ;;
5522
4127
 
5523
4128
    sunos4*)
5524
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5525
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5526
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4129
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
4130
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
 
4131
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5527
4132
      ;;
5528
4133
 
5529
4134
    sysv4 | sysv4.2uw2* | sysv4.3*)
5530
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5531
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5532
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4135
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4136
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4137
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5533
4138
      ;;
5534
4139
 
5535
4140
    sysv4*MP*)
5536
4141
      if test -d /usr/nec ;then
5537
 
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
5538
 
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4142
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
 
4143
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5539
4144
      fi
5540
4145
      ;;
5541
4146
 
5542
4147
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5543
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5544
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5545
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4148
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4149
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
4150
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5546
4151
      ;;
5547
4152
 
5548
4153
    unicos*)
5549
 
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5550
 
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
4154
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
4155
      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5551
4156
      ;;
5552
4157
 
5553
4158
    uts4*)
5554
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5555
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
4159
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
4160
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5556
4161
      ;;
5557
4162
 
5558
4163
    *)
5559
 
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
4164
      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5560
4165
      ;;
5561
4166
    esac
5562
4167
  fi
5563
4168
])
5564
 
AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
 
4169
case $host_os in
 
4170
  # For platforms which do not support PIC, -DPIC is meaningless:
 
4171
  *djgpp*)
 
4172
    _LT_TAGVAR(lt_prog_compiler_pic, $1)=
 
4173
    ;;
 
4174
  *)
 
4175
    _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
 
4176
    ;;
 
4177
esac
 
4178
AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
 
4179
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
 
4180
        [How to pass a linker flag through the compiler])
5565
4181
 
5566
4182
#
5567
4183
# Check to make sure the PIC flag actually works.
5568
4184
#
5569
 
if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
5570
 
  AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
5571
 
    _LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1),
5572
 
    [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
5573
 
    [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
 
4185
if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
 
4186
  _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
 
4187
    [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
 
4188
    [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
 
4189
    [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
5574
4190
     "" | " "*) ;;
5575
 
     *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
 
4191
     *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
5576
4192
     esac],
5577
 
    [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5578
 
     _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
 
4193
    [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
 
4194
     _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
5579
4195
fi
5580
 
case $host_os in
5581
 
  # For platforms which do not support PIC, -DPIC is meaningless:
5582
 
  *djgpp*)
5583
 
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5584
 
    ;;
5585
 
  *)
5586
 
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
5587
 
    ;;
5588
 
esac
 
4196
_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
 
4197
        [Additional compiler flags for building library objects])
5589
4198
 
5590
4199
#
5591
4200
# Check to make sure the static flag actually works.
5592
4201
#
5593
 
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
5594
 
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
5595
 
  _LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1),
 
4202
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
 
4203
_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
 
4204
  _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
5596
4205
  $lt_tmp_static_flag,
5597
4206
  [],
5598
 
  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
5599
 
])
5600
 
 
5601
 
 
5602
 
# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
5603
 
# ------------------------------------
 
4207
  [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
 
4208
_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
 
4209
        [Compiler flag to prevent dynamic linking])
 
4210
])# _LT_COMPILER_PIC
 
4211
 
 
4212
 
 
4213
# _LT_LINKER_SHLIBS([TAGNAME])
 
4214
# ----------------------------
5604
4215
# See if the linker supports building shared libraries.
5605
 
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
5606
 
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
4216
m4_defun([_LT_LINKER_SHLIBS],
 
4217
[AC_REQUIRE([LT_PATH_LD])dnl
 
4218
AC_REQUIRE([LT_PATH_NM])dnl
 
4219
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
4220
m4_require([_LT_DECL_EGREP])dnl
 
4221
m4_require([_LT_DECL_SED])dnl
 
4222
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
 
4223
m4_require([_LT_TAG_COMPILER])dnl
5607
4224
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5608
 
ifelse([$1],[CXX],[
5609
 
  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
4225
m4_if([$1], [CXX], [
 
4226
  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5610
4227
  case $host_os in
5611
4228
  aix[[4-9]]*)
5612
4229
    # If we're using GNU nm, then we don't want the "-C" option.
5613
4230
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
5614
 
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
5615
 
      _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'
 
4231
    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
4232
      _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'
5616
4233
    else
5617
 
      _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'
 
4234
      _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'
5618
4235
    fi
5619
4236
    ;;
5620
4237
  pw32*)
5621
 
    _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
 
4238
    _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5622
4239
  ;;
5623
 
  cygwin* | mingw*)
5624
 
    _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'
 
4240
  cygwin* | mingw* | cegcc*)
 
4241
    _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'
5625
4242
  ;;
5626
4243
  *)
5627
 
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
4244
    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5628
4245
  ;;
5629
4246
  esac
5630
 
  _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5631
 
],[
 
4247
  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
 
4248
], [
5632
4249
  runpath_var=
5633
 
  _LT_AC_TAGVAR(allow_undefined_flag, $1)=
5634
 
  _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5635
 
  _LT_AC_TAGVAR(archive_cmds, $1)=
5636
 
  _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
5637
 
  _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
5638
 
  _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
5639
 
  _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5640
 
  _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5641
 
  _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
5642
 
  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5643
 
  _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5644
 
  _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5645
 
  _LT_AC_TAGVAR(hardcode_direct, $1)=no
5646
 
  _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5647
 
  _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5648
 
  _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
5649
 
  _LT_AC_TAGVAR(hardcode_automatic, $1)=no
5650
 
  _LT_AC_TAGVAR(module_cmds, $1)=
5651
 
  _LT_AC_TAGVAR(module_expsym_cmds, $1)=
5652
 
  _LT_AC_TAGVAR(always_export_symbols, $1)=no
5653
 
  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
4250
  _LT_TAGVAR(allow_undefined_flag, $1)=
 
4251
  _LT_TAGVAR(always_export_symbols, $1)=no
 
4252
  _LT_TAGVAR(archive_cmds, $1)=
 
4253
  _LT_TAGVAR(archive_expsym_cmds, $1)=
 
4254
  _LT_TAGVAR(compiler_needs_object, $1)=no
 
4255
  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 
4256
  _LT_TAGVAR(export_dynamic_flag_spec, $1)=
 
4257
  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
4258
  _LT_TAGVAR(hardcode_automatic, $1)=no
 
4259
  _LT_TAGVAR(hardcode_direct, $1)=no
 
4260
  _LT_TAGVAR(hardcode_direct_absolute, $1)=no
 
4261
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
4262
  _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 
4263
  _LT_TAGVAR(hardcode_libdir_separator, $1)=
 
4264
  _LT_TAGVAR(hardcode_minus_L, $1)=no
 
4265
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
4266
  _LT_TAGVAR(inherit_rpath, $1)=no
 
4267
  _LT_TAGVAR(link_all_deplibs, $1)=unknown
 
4268
  _LT_TAGVAR(module_cmds, $1)=
 
4269
  _LT_TAGVAR(module_expsym_cmds, $1)=
 
4270
  _LT_TAGVAR(old_archive_from_new_cmds, $1)=
 
4271
  _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
 
4272
  _LT_TAGVAR(thread_safe_flag_spec, $1)=
 
4273
  _LT_TAGVAR(whole_archive_flag_spec, $1)=
5654
4274
  # include_expsyms should be a list of space-separated symbols to be *always*
5655
4275
  # included in the symbol list
5656
 
  _LT_AC_TAGVAR(include_expsyms, $1)=
 
4276
  _LT_TAGVAR(include_expsyms, $1)=
5657
4277
  # exclude_expsyms can be an extended regexp of symbols to exclude
5658
4278
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
5659
4279
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5660
4280
  # as well as any symbol that contains `d'.
5661
 
  _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
 
4281
  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5662
4282
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5663
4283
  # platforms (ab)use it in PIC code, but their linkers get confused if
5664
4284
  # the symbol is explicitly referenced.  Since portable code cannot
5667
4287
  # Exclude shared library initialization/finalization symbols.
5668
4288
dnl Note also adjust exclude_expsyms for C++ above.
5669
4289
  extract_expsyms_cmds=
5670
 
  # Just being paranoid about ensuring that cc_basename is set.
5671
 
  _LT_CC_BASENAME([$compiler])
 
4290
 
5672
4291
  case $host_os in
5673
 
  cygwin* | mingw* | pw32*)
 
4292
  cygwin* | mingw* | pw32* | cegcc*)
5674
4293
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
5675
4294
    # When not using gcc, we currently assume that we are using
5676
4295
    # Microsoft Visual C++.
5687
4306
    ;;
5688
4307
  esac
5689
4308
 
5690
 
  _LT_AC_TAGVAR(ld_shlibs, $1)=yes
 
4309
  _LT_TAGVAR(ld_shlibs, $1)=yes
5691
4310
  if test "$with_gnu_ld" = yes; then
5692
4311
    # If archive_cmds runs LD, not CC, wlarc should be empty
5693
4312
    wlarc='${wl}'
5696
4315
    # are reset later if shared libraries are not supported. Putting them
5697
4316
    # here allows them to be overridden if necessary.
5698
4317
    runpath_var=LD_RUN_PATH
5699
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
5700
 
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
4318
    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
4319
    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5701
4320
    # ancient GNU ld didn't support --whole-archive et. al.
5702
 
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
5703
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5704
 
      else
5705
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 
4321
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
 
4322
      _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
4323
    else
 
4324
      _LT_TAGVAR(whole_archive_flag_spec, $1)=
5706
4325
    fi
5707
4326
    supports_anon_versioning=no
5708
 
    case `$LD -v 2>/dev/null` in
 
4327
    case `$LD -v 2>&1` in
5709
4328
      *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
5710
4329
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5711
4330
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5718
4337
    aix[[3-9]]*)
5719
4338
      # On AIX/PPC, the GNU linker is very broken
5720
4339
      if test "$host_cpu" != ia64; then
5721
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5722
 
        cat <<EOF 1>&2
 
4340
        _LT_TAGVAR(ld_shlibs, $1)=no
 
4341
        cat <<_LT_EOF 1>&2
5723
4342
 
5724
4343
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
5725
4344
*** to be unable to reliably create shared libraries on AIX.
5727
4346
*** really care for shared libraries, you may want to modify your PATH
5728
4347
*** so that a non-GNU linker is found, and then restart.
5729
4348
 
5730
 
EOF
 
4349
_LT_EOF
5731
4350
      fi
5732
4351
      ;;
5733
4352
 
5734
4353
    amigaos*)
5735
 
      _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)'
5736
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5737
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5738
 
 
5739
 
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5740
 
      # that the semantics of dynamic libraries on AmigaOS, at least up
5741
 
      # to version 4, is to share data among multiple programs linked
5742
 
      # with the same dynamic library.  Since this doesn't match the
5743
 
      # behavior of shared libraries on other platforms, we can't use
5744
 
      # them.
5745
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4354
      case $host_cpu in
 
4355
      powerpc)
 
4356
            # see comment about AmigaOS4 .so support
 
4357
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
4358
            _LT_TAGVAR(archive_expsym_cmds, $1)=''
 
4359
        ;;
 
4360
      m68k)
 
4361
            _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)'
 
4362
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
4363
            _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
4364
        ;;
 
4365
      esac
5746
4366
      ;;
5747
4367
 
5748
4368
    beos*)
5749
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5750
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
4369
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
4370
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5751
4371
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5752
4372
        # support --undefined.  This deserves some investigation.  FIXME
5753
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
4373
        _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5754
4374
      else
5755
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4375
        _LT_TAGVAR(ld_shlibs, $1)=no
5756
4376
      fi
5757
4377
      ;;
5758
4378
 
5759
 
    cygwin* | mingw* | pw32*)
5760
 
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
 
4379
    cygwin* | mingw* | pw32* | cegcc*)
 
4380
      # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5761
4381
      # as there is no search path for DLLs.
5762
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5763
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5764
 
      _LT_AC_TAGVAR(always_export_symbols, $1)=no
5765
 
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5766
 
      _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'
 
4382
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
4383
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
4384
      _LT_TAGVAR(always_export_symbols, $1)=no
 
4385
      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
4386
      _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'
5767
4387
 
5768
 
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5769
 
        _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'
 
4388
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
4389
        _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'
5770
4390
        # If the export-symbols file already is a .def file (1st line
5771
4391
        # is EXPORTS), use it as is; otherwise, prepend...
5772
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
4392
        _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5773
4393
          cp $export_symbols $output_objdir/$soname.def;
5774
4394
        else
5775
4395
          echo EXPORTS > $output_objdir/$soname.def;
5777
4397
        fi~
5778
4398
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5779
4399
      else
5780
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4400
        _LT_TAGVAR(ld_shlibs, $1)=no
5781
4401
      fi
5782
4402
      ;;
5783
4403
 
5784
4404
    interix[[3-9]]*)
5785
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
5786
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5787
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5788
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
4405
      _LT_TAGVAR(hardcode_direct, $1)=no
 
4406
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
4407
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
4408
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5789
4409
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5790
4410
      # Instead, shared libraries are loaded at an image base (0x10000000 by
5791
4411
      # default) and relocated if they conflict, which is a slow very memory
5792
4412
      # consuming and fragmenting process.  To avoid this, we pick a random,
5793
4413
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5794
4414
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
5795
 
      _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'
5796
 
      _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'
 
4415
      _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'
 
4416
      _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'
5797
4417
      ;;
5798
4418
 
5799
 
    gnu* | linux* | k*bsd*-gnu)
5800
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
4419
    gnu* | linux* | tpf* | k*bsd*-gnu)
 
4420
      tmp_diet=no
 
4421
      if test "$host_os" = linux-dietlibc; then
 
4422
        case $cc_basename in
 
4423
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
 
4424
        esac
 
4425
      fi
 
4426
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
 
4427
         && test "$tmp_diet" = no
 
4428
      then
5801
4429
        tmp_addflag=
 
4430
        tmp_sharedflag='-shared'
5802
4431
        case $cc_basename,$host_cpu in
5803
 
        pgcc*)                          # Portland Group C compiler
5804
 
          _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'
 
4432
        pgcc*)                          # Portland Group C compiler
 
4433
          _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'
5805
4434
          tmp_addflag=' $pic_flag'
5806
4435
          ;;
5807
4436
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
5808
 
          _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'
 
4437
          _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'
5809
4438
          tmp_addflag=' $pic_flag -Mnomain' ;;
5810
 
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
4439
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
5811
4440
          tmp_addflag=' -i_dynamic' ;;
5812
4441
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
5813
4442
          tmp_addflag=' -i_dynamic -nofor_main' ;;
5814
4443
        ifc* | ifort*)                  # Intel Fortran compiler
5815
4444
          tmp_addflag=' -nofor_main' ;;
 
4445
        lf95*)                          # Lahey Fortran 8.1
 
4446
          _LT_TAGVAR(whole_archive_flag_spec, $1)=
 
4447
          tmp_sharedflag='--shared' ;;
 
4448
        xl[[cC]]*)                      # IBM XL C 8.0 on PPC (deal with xlf below)
 
4449
          tmp_sharedflag='-qmkshrobj'
 
4450
          tmp_addflag= ;;
5816
4451
        esac
5817
4452
        case `$CC -V 2>&1 | sed 5q` in
5818
4453
        *Sun\ C*)                       # Sun C 5.9
5819
 
          _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'
 
4454
          _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'
 
4455
          _LT_TAGVAR(compiler_needs_object, $1)=yes
5820
4456
          tmp_sharedflag='-G' ;;
5821
4457
        *Sun\ F*)                       # Sun Fortran 8.3
5822
4458
          tmp_sharedflag='-G' ;;
5823
 
        *)
5824
 
          tmp_sharedflag='-shared' ;;
5825
 
        esac
5826
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5827
 
 
5828
 
        if test $supports_anon_versioning = yes; then
5829
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
5830
 
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5831
 
  $echo "local: *; };" >> $output_objdir/$libname.ver~
5832
 
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5833
 
        fi
 
4459
        esac
 
4460
        _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
4461
 
 
4462
        if test "x$supports_anon_versioning" = xyes; then
 
4463
          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
 
4464
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
4465
            echo "local: *; };" >> $output_objdir/$libname.ver~
 
4466
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
4467
        fi
 
4468
 
 
4469
        case $cc_basename in
 
4470
        xlf*)
 
4471
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
 
4472
          _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
 
4473
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
4474
          _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
 
4475
          _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
 
4476
          if test "x$supports_anon_versioning" = xyes; then
 
4477
            _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
 
4478
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
4479
              echo "local: *; };" >> $output_objdir/$libname.ver~
 
4480
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 
4481
          fi
 
4482
          ;;
 
4483
        esac
5834
4484
      else
5835
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4485
        _LT_TAGVAR(ld_shlibs, $1)=no
5836
4486
      fi
5837
4487
      ;;
5838
4488
 
5839
4489
    netbsd*)
5840
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5841
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
4490
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
4491
        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5842
4492
        wlarc=
5843
4493
      else
5844
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5845
 
        _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'
 
4494
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
4495
        _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'
5846
4496
      fi
5847
4497
      ;;
5848
4498
 
5849
4499
    solaris*)
5850
 
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
5851
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5852
 
        cat <<EOF 1>&2
 
4500
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
 
4501
        _LT_TAGVAR(ld_shlibs, $1)=no
 
4502
        cat <<_LT_EOF 1>&2
5853
4503
 
5854
4504
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
5855
4505
*** create shared libraries on Solaris systems.  Therefore, libtool
5858
4508
*** your PATH or compiler configuration so that the native linker is
5859
4509
*** used, and then restart.
5860
4510
 
5861
 
EOF
5862
 
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5863
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5864
 
        _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'
 
4511
_LT_EOF
 
4512
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
4513
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
4514
        _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'
5865
4515
      else
5866
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4516
        _LT_TAGVAR(ld_shlibs, $1)=no
5867
4517
      fi
5868
4518
      ;;
5869
4519
 
5870
4520
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
5871
4521
      case `$LD -v 2>&1` in
5872
4522
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
5873
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4523
        _LT_TAGVAR(ld_shlibs, $1)=no
5874
4524
        cat <<_LT_EOF 1>&2
5875
4525
 
5876
4526
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
5883
4533
_LT_EOF
5884
4534
        ;;
5885
4535
        *)
5886
 
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5887
 
            _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
5888
 
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
5889
 
            _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'
 
4536
          # For security reasons, it is highly recommended that you always
 
4537
          # use absolute paths for naming shared libraries, and exclude the
 
4538
          # DT_RUNPATH tag from executables and libraries.  But doing so
 
4539
          # requires that you compile everything twice, which is a pain.
 
4540
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
4541
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
4542
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
4543
            _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'
5890
4544
          else
5891
 
            _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4545
            _LT_TAGVAR(ld_shlibs, $1)=no
5892
4546
          fi
5893
4547
        ;;
5894
4548
      esac
5895
4549
      ;;
5896
4550
 
5897
4551
    sunos4*)
5898
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
4552
      _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5899
4553
      wlarc=
5900
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5901
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
4554
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
4555
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5902
4556
      ;;
5903
4557
 
5904
4558
    *)
5905
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5906
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5907
 
        _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'
 
4559
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
4560
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
4561
        _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'
5908
4562
      else
5909
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4563
        _LT_TAGVAR(ld_shlibs, $1)=no
5910
4564
      fi
5911
4565
      ;;
5912
4566
    esac
5913
4567
 
5914
 
    if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
 
4568
    if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
5915
4569
      runpath_var=
5916
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5917
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5918
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 
4570
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
4571
      _LT_TAGVAR(export_dynamic_flag_spec, $1)=
 
4572
      _LT_TAGVAR(whole_archive_flag_spec, $1)=
5919
4573
    fi
5920
4574
  else
5921
4575
    # PORTME fill in a description of your system's linker (not GNU ld)
5922
4576
    case $host_os in
5923
4577
    aix3*)
5924
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5925
 
      _LT_AC_TAGVAR(always_export_symbols, $1)=yes
5926
 
      _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'
 
4578
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
4579
      _LT_TAGVAR(always_export_symbols, $1)=yes
 
4580
      _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'
5927
4581
      # Note: this linker hardcodes the directories in LIBPATH if there
5928
4582
      # are no directories specified by -L.
5929
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
4583
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
5930
4584
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
5931
4585
        # Neither direct hardcoding nor static linking is supported with a
5932
4586
        # broken collect2.
5933
 
        _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
 
4587
        _LT_TAGVAR(hardcode_direct, $1)=unsupported
5934
4588
      fi
5935
4589
      ;;
5936
4590
 
5944
4598
      else
5945
4599
        # If we're using GNU nm, then we don't want the "-C" option.
5946
4600
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
5947
 
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
5948
 
          _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'
 
4601
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
4602
          _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'
5949
4603
        else
5950
 
          _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'
 
4604
          _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'
5951
4605
        fi
5952
4606
        aix_use_runtimelinking=no
5953
4607
 
5956
4610
        # need to do runtime linking.
5957
4611
        case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5958
4612
          for ld_flag in $LDFLAGS; do
5959
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5960
 
            aix_use_runtimelinking=yes
5961
 
            break
5962
 
          fi
 
4613
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
4614
            aix_use_runtimelinking=yes
 
4615
            break
 
4616
          fi
5963
4617
          done
5964
4618
          ;;
5965
4619
        esac
5974
4628
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
5975
4629
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5976
4630
 
5977
 
      _LT_AC_TAGVAR(archive_cmds, $1)=''
5978
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5979
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
5980
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
4631
      _LT_TAGVAR(archive_cmds, $1)=''
 
4632
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
4633
      _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
4634
      _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
 
4635
      _LT_TAGVAR(link_all_deplibs, $1)=yes
 
4636
      _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
5981
4637
 
5982
4638
      if test "$GCC" = yes; then
5983
4639
        case $host_os in aix4.[[012]]|aix4.[[012]].*)
5984
4640
        # We only want to do this on AIX 4.2 and lower, the check
5985
4641
        # below for broken collect2 doesn't work under 4.3+
5986
4642
          collect2name=`${CC} -print-prog-name=collect2`
5987
 
          if test -f "$collect2name" && \
5988
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
4643
          if test -f "$collect2name" &&
 
4644
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
5989
4645
          then
5990
 
          # We have reworked collect2
5991
 
          :
 
4646
          # We have reworked collect2
 
4647
          :
5992
4648
          else
5993
 
          # We have old collect2
5994
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5995
 
          # It fails to find uninstalled libraries when the uninstalled
5996
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
5997
 
          # to unsupported forces relinking
5998
 
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5999
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6000
 
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
 
4649
          # We have old collect2
 
4650
          _LT_TAGVAR(hardcode_direct, $1)=unsupported
 
4651
          # It fails to find uninstalled libraries when the uninstalled
 
4652
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
4653
          # to unsupported forces relinking
 
4654
          _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
4655
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
4656
          _LT_TAGVAR(hardcode_libdir_separator, $1)=
6001
4657
          fi
6002
4658
          ;;
6003
4659
        esac
6008
4664
      else
6009
4665
        # not using gcc
6010
4666
        if test "$host_cpu" = ia64; then
6011
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6012
 
        # chokes on -Wl,-G. The following line is correct:
 
4667
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
4668
        # chokes on -Wl,-G. The following line is correct:
6013
4669
          shared_flag='-G'
6014
4670
        else
6015
4671
          if test "$aix_use_runtimelinking" = yes; then
6020
4676
        fi
6021
4677
      fi
6022
4678
 
 
4679
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
6023
4680
      # It seems that -bexpall does not export symbols beginning with
6024
4681
      # underscore (_), so it is better to generate a list of symbols to export.
6025
 
      _LT_AC_TAGVAR(always_export_symbols, $1)=yes
 
4682
      _LT_TAGVAR(always_export_symbols, $1)=yes
6026
4683
      if test "$aix_use_runtimelinking" = yes; then
6027
4684
        # Warning - without using the other runtime loading flags (-brtl),
6028
4685
        # -berok will link without error, but may produce a broken library.
6029
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
6030
 
       # Determine the default libpath from the value encoded in an empty executable.
6031
 
       _LT_AC_SYS_LIBPATH_AIX
6032
 
       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6033
 
        _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"
6034
 
       else
 
4686
        _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
 
4687
        # Determine the default libpath from the value encoded in an
 
4688
        # empty executable.
 
4689
        _LT_SYS_MODULE_PATH_AIX
 
4690
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
4691
        _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"
 
4692
      else
6035
4693
        if test "$host_cpu" = ia64; then
6036
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6037
 
          _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6038
 
          _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"
 
4694
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
 
4695
          _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
 
4696
          _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"
6039
4697
        else
6040
 
         # Determine the default libpath from the value encoded in an empty executable.
6041
 
         _LT_AC_SYS_LIBPATH_AIX
6042
 
         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
4698
         # Determine the default libpath from the value encoded in an
 
4699
         # empty executable.
 
4700
         _LT_SYS_MODULE_PATH_AIX
 
4701
         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6043
4702
          # Warning - without using the other run time loading flags,
6044
4703
          # -berok will link without error, but may produce a broken library.
6045
 
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6046
 
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
 
4704
          _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
 
4705
          _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6047
4706
          # Exported symbols can be pulled into shared objects from archives
6048
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6049
 
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
 
4707
          _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
4708
          _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6050
4709
          # This is similar to how AIX traditionally builds its shared libraries.
6051
 
          _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'
 
4710
          _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'
6052
4711
        fi
6053
4712
      fi
6054
4713
      ;;
6055
4714
 
6056
4715
    amigaos*)
6057
 
      _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)'
6058
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6059
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6060
 
      # see comment about different semantics on the GNU ld section
6061
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4716
      case $host_cpu in
 
4717
      powerpc)
 
4718
            # see comment about AmigaOS4 .so support
 
4719
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
4720
            _LT_TAGVAR(archive_expsym_cmds, $1)=''
 
4721
        ;;
 
4722
      m68k)
 
4723
            _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)'
 
4724
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
4725
            _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
4726
        ;;
 
4727
      esac
6062
4728
      ;;
6063
4729
 
6064
4730
    bsdi[[45]]*)
6065
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
 
4731
      _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
6066
4732
      ;;
6067
4733
 
6068
 
    cygwin* | mingw* | pw32*)
 
4734
    cygwin* | mingw* | pw32* | cegcc*)
6069
4735
      # When not using gcc, we currently assume that we are using
6070
4736
      # Microsoft Visual C++.
6071
4737
      # hardcode_libdir_flag_spec is actually meaningless, as there is
6072
4738
      # no search path for DLLs.
6073
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6074
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
4739
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
 
4740
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6075
4741
      # Tell ltmain to make .lib files, not .a files.
6076
4742
      libext=lib
6077
4743
      # Tell ltmain to make .dll files, not .so files.
6078
4744
      shrext_cmds=".dll"
6079
4745
      # FIXME: Setting linknames here is a bad hack.
6080
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
4746
      _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6081
4747
      # The linker will automatically build a .lib file if we build a DLL.
6082
 
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
 
4748
      _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
6083
4749
      # FIXME: Should let the user specify the lib program.
6084
 
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
6085
 
      _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
6086
 
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
4750
      _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
4751
      _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
 
4752
      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6087
4753
      ;;
6088
4754
 
6089
4755
    darwin* | rhapsody*)
6090
 
      case $host_os in
6091
 
        rhapsody* | darwin1.[[012]])
6092
 
         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
6093
 
         ;;
6094
 
       *) # Darwin 1.3 on
6095
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6096
 
           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6097
 
         else
6098
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
6099
 
             10.[[012]])
6100
 
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6101
 
               ;;
6102
 
             10.*)
6103
 
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
6104
 
               ;;
6105
 
           esac
6106
 
         fi
6107
 
         ;;
6108
 
      esac
6109
 
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6110
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
6111
 
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
6112
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6113
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
6114
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6115
 
    if test "$GCC" = yes ; then
6116
 
        output_verbose_link_cmd='echo'
6117
 
        _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}"
6118
 
        _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
6119
 
        _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}"
6120
 
        _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}"
6121
 
    else
6122
 
      case $cc_basename in
6123
 
        xlc*)
6124
 
         output_verbose_link_cmd='echo'
6125
 
         _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'
6126
 
         _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6127
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
6128
 
         _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}'
6129
 
          _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}'
6130
 
          ;;
6131
 
       *)
6132
 
         _LT_AC_TAGVAR(ld_shlibs, $1)=no
6133
 
          ;;
6134
 
      esac
6135
 
    fi
 
4756
      _LT_DARWIN_LINKER_FEATURES($1)
6136
4757
      ;;
6137
4758
 
6138
4759
    dgux*)
6139
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6140
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6141
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
4760
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
4761
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
4762
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6142
4763
      ;;
6143
4764
 
6144
4765
    freebsd1*)
6145
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4766
      _LT_TAGVAR(ld_shlibs, $1)=no
6146
4767
      ;;
6147
4768
 
6148
4769
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6150
4771
    # does not break anything, and helps significantly (at the cost of a little
6151
4772
    # extra space).
6152
4773
    freebsd2.2*)
6153
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6154
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6155
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6156
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
4774
      _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
4775
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
4776
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
4777
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6157
4778
      ;;
6158
4779
 
6159
4780
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6160
4781
    freebsd2*)
6161
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6162
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6163
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6164
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
4782
      _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
4783
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
4784
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
4785
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6165
4786
      ;;
6166
4787
 
6167
4788
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6168
4789
    freebsd* | dragonfly*)
6169
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6170
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6171
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6172
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
4790
      _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
4791
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
4792
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
4793
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6173
4794
      ;;
6174
4795
 
6175
4796
    hpux9*)
6176
4797
      if test "$GCC" = yes; then
6177
 
        _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'
 
4798
        _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'
6178
4799
      else
6179
 
        _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'
 
4800
        _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'
6180
4801
      fi
6181
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6182
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6183
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
4802
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
4803
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
4804
      _LT_TAGVAR(hardcode_direct, $1)=yes
6184
4805
 
6185
4806
      # hardcode_minus_L: Not really in the search PATH,
6186
4807
      # but as the default location of the library.
6187
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6188
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
4808
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
4809
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6189
4810
      ;;
6190
4811
 
6191
4812
    hpux10*)
6192
4813
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6193
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
4814
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6194
4815
      else
6195
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
4816
        _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6196
4817
      fi
6197
4818
      if test "$with_gnu_ld" = no; then
6198
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6199
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6200
 
 
6201
 
        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6202
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6203
 
 
 
4819
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
4820
        _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
 
4821
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
4822
        _LT_TAGVAR(hardcode_direct, $1)=yes
 
4823
        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
4824
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6204
4825
        # hardcode_minus_L: Not really in the search PATH,
6205
4826
        # but as the default location of the library.
6206
 
        _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
4827
        _LT_TAGVAR(hardcode_minus_L, $1)=yes
6207
4828
      fi
6208
4829
      ;;
6209
4830
 
6211
4832
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6212
4833
        case $host_cpu in
6213
4834
        hppa*64*)
6214
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
4835
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6215
4836
          ;;
6216
4837
        ia64*)
6217
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
4838
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
6218
4839
          ;;
6219
4840
        *)
6220
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
4841
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6221
4842
          ;;
6222
4843
        esac
6223
4844
      else
6224
4845
        case $host_cpu in
6225
4846
        hppa*64*)
6226
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
4847
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6227
4848
          ;;
6228
4849
        ia64*)
6229
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
4850
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
6230
4851
          ;;
6231
4852
        *)
6232
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
4853
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6233
4854
          ;;
6234
4855
        esac
6235
4856
      fi
6236
4857
      if test "$with_gnu_ld" = no; then
6237
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6238
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
4858
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
4859
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6239
4860
 
6240
4861
        case $host_cpu in
6241
4862
        hppa*64*|ia64*)
6242
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
6243
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
6244
 
          _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
4863
          _LT_TAGVAR(hardcode_direct, $1)=no
 
4864
          _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6245
4865
          ;;
6246
4866
        *)
6247
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6248
 
          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
4867
          _LT_TAGVAR(hardcode_direct, $1)=yes
 
4868
          _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
4869
          _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6249
4870
 
6250
4871
          # hardcode_minus_L: Not really in the search PATH,
6251
4872
          # but as the default location of the library.
6252
 
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
4873
          _LT_TAGVAR(hardcode_minus_L, $1)=yes
6253
4874
          ;;
6254
4875
        esac
6255
4876
      fi
6257
4878
 
6258
4879
    irix5* | irix6* | nonstopux*)
6259
4880
      if test "$GCC" = yes; then
6260
 
        _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'
 
4881
        _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'
 
4882
        # Try to use the -exported_symbol ld option, if it does not
 
4883
        # work, assume that -exports_file does not work either and
 
4884
        # implicitly export all symbols.
 
4885
        save_LDFLAGS="$LDFLAGS"
 
4886
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
 
4887
        AC_LINK_IFELSE(int foo(void) {},
 
4888
          _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'
 
4889
        )
 
4890
        LDFLAGS="$save_LDFLAGS"
6261
4891
      else
6262
 
        _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'
6263
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
 
4892
        _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'
 
4893
        _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'
6264
4894
      fi
6265
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6266
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6267
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
4895
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
 
4896
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
4897
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
4898
      _LT_TAGVAR(inherit_rpath, $1)=yes
 
4899
      _LT_TAGVAR(link_all_deplibs, $1)=yes
6268
4900
      ;;
6269
4901
 
6270
4902
    netbsd*)
6271
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6272
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
4903
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
4904
        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6273
4905
      else
6274
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
4906
        _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
6275
4907
      fi
6276
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6277
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6278
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
4908
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
4909
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
4910
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6279
4911
      ;;
6280
4912
 
6281
4913
    newsos6)
6282
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6283
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6284
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6285
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6286
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
4914
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
4915
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
4916
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
4917
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
4918
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
4919
      ;;
 
4920
 
 
4921
    *nto* | *qnx*)
6287
4922
      ;;
6288
4923
 
6289
4924
    openbsd*)
6290
4925
      if test -f /usr/libexec/ld.so; then
6291
 
        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6292
 
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6293
 
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6294
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6295
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6296
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6297
 
          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
4926
        _LT_TAGVAR(hardcode_direct, $1)=yes
 
4927
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
4928
        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
4929
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
4930
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
4931
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
4932
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
4933
          _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6298
4934
        else
6299
4935
          case $host_os in
6300
4936
           openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6301
 
             _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6302
 
             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
4937
             _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
4938
             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6303
4939
             ;;
6304
4940
           *)
6305
 
             _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6306
 
             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
4941
             _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
4942
             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6307
4943
             ;;
6308
4944
          esac
6309
 
        fi
 
4945
        fi
6310
4946
      else
6311
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4947
        _LT_TAGVAR(ld_shlibs, $1)=no
6312
4948
      fi
6313
4949
      ;;
6314
4950
 
6315
4951
    os2*)
6316
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6317
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6318
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6319
 
      _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'
6320
 
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
4952
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
4953
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
4954
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
4955
      _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'
 
4956
      _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6321
4957
      ;;
6322
4958
 
6323
4959
    osf3*)
6324
4960
      if test "$GCC" = yes; then
6325
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6326
 
        _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'
 
4961
        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
4962
        _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'
6327
4963
      else
6328
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6329
 
        _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'
 
4964
        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
 
4965
        _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'
6330
4966
      fi
6331
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6332
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
4967
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
 
4968
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
4969
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6333
4970
      ;;
6334
4971
 
6335
4972
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
6336
4973
      if test "$GCC" = yes; then
6337
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6338
 
        _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'
6339
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
4974
        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
4975
        _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'
 
4976
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6340
4977
      else
6341
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6342
 
        _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'
6343
 
        _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~
6344
 
        $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'
 
4978
        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
 
4979
        _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'
 
4980
        _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~
 
4981
        $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'
6345
4982
 
6346
4983
        # Both c and cxx compiler support -rpath directly
6347
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
 
4984
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6348
4985
      fi
6349
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
4986
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
 
4987
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6350
4988
      ;;
6351
4989
 
6352
4990
    solaris*)
6353
 
      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
 
4991
      _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
6354
4992
      if test "$GCC" = yes; then
6355
4993
        wlarc='${wl}'
6356
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6357
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6358
 
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
4994
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
4995
        _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
4996
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
6359
4997
      else
6360
 
        wlarc=''
6361
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6362
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6363
 
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
4998
        case `$CC -V 2>&1` in
 
4999
        *"Compilers 5.0"*)
 
5000
          wlarc=''
 
5001
          _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5002
          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
5003
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
 
5004
          ;;
 
5005
        *)
 
5006
          wlarc='${wl}'
 
5007
          _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
5008
          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
5009
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
5010
          ;;
 
5011
        esac
6364
5012
      fi
6365
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6366
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5013
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
5014
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6367
5015
      case $host_os in
6368
5016
      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6369
5017
      *)
6370
5018
        # The compiler driver will combine and reorder linker options,
6371
5019
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
6372
5020
        # but is careful enough not to reorder.
6373
 
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
5021
        # Supported since Solaris 2.6 (maybe 2.5.1?)
6374
5022
        if test "$GCC" = yes; then
6375
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
5023
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6376
5024
        else
6377
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
 
5025
          _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6378
5026
        fi
6379
5027
        ;;
6380
5028
      esac
6381
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
5029
      _LT_TAGVAR(link_all_deplibs, $1)=yes
6382
5030
      ;;
6383
5031
 
6384
5032
    sunos4*)
6385
5033
      if test "x$host_vendor" = xsequent; then
6386
5034
        # Use $CC to link under sequent, because it throws in some extra .o
6387
5035
        # files that make .init and .fini sections work.
6388
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
5036
        _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6389
5037
      else
6390
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
5038
        _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6391
5039
      fi
6392
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6393
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6394
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6395
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5040
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
5041
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
5042
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
5043
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6396
5044
      ;;
6397
5045
 
6398
5046
    sysv4)
6399
5047
      case $host_vendor in
6400
5048
        sni)
6401
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6402
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
 
5049
          _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5050
          _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
6403
5051
        ;;
6404
5052
        siemens)
6405
5053
          ## LD is ld it makes a PLAMLIB
6406
5054
          ## CC just makes a GrossModule.
6407
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6408
 
          _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
6409
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
5055
          _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
5056
          _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
 
5057
          _LT_TAGVAR(hardcode_direct, $1)=no
6410
5058
        ;;
6411
5059
        motorola)
6412
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6413
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
 
5060
          _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5061
          _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
6414
5062
        ;;
6415
5063
      esac
6416
5064
      runpath_var='LD_RUN_PATH'
6417
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5065
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6418
5066
      ;;
6419
5067
 
6420
5068
    sysv4.3*)
6421
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6422
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6423
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
 
5069
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5070
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5071
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
6424
5072
      ;;
6425
5073
 
6426
5074
    sysv4*MP*)
6427
5075
      if test -d /usr/nec; then
6428
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6429
 
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5076
        _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5077
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6430
5078
        runpath_var=LD_RUN_PATH
6431
5079
        hardcode_runpath_var=yes
6432
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=yes
 
5080
        _LT_TAGVAR(ld_shlibs, $1)=yes
6433
5081
      fi
6434
5082
      ;;
6435
5083
 
6436
5084
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6437
 
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6438
 
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6439
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5085
      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
5086
      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
5087
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6440
5088
      runpath_var='LD_RUN_PATH'
6441
5089
 
6442
5090
      if test "$GCC" = yes; then
6443
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6444
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5091
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5092
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6445
5093
      else
6446
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6447
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5094
        _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5095
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6448
5096
      fi
6449
5097
      ;;
6450
5098
 
6455
5103
      # ever link correctly.  If we're not using GNU ld we use -z text
6456
5104
      # though, which does catch some bad symbols but isn't as heavy-handed
6457
5105
      # as -z defs.
6458
 
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6459
 
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6460
 
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6461
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6462
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
6463
 
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
6464
 
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6465
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
 
5106
      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
5107
      _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
 
5108
      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
5109
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5110
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
 
5111
      _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
 
5112
      _LT_TAGVAR(link_all_deplibs, $1)=yes
 
5113
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6466
5114
      runpath_var='LD_RUN_PATH'
6467
5115
 
6468
5116
      if test "$GCC" = yes; then
6469
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6470
 
        _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'
 
5117
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5118
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6471
5119
      else
6472
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6473
 
        _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'
 
5120
        _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
5121
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6474
5122
      fi
6475
5123
      ;;
6476
5124
 
6477
5125
    uts4*)
6478
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6479
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6480
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5126
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
5127
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
5128
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6481
5129
      ;;
6482
5130
 
6483
5131
    *)
6484
 
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5132
      _LT_TAGVAR(ld_shlibs, $1)=no
6485
5133
      ;;
6486
5134
    esac
 
5135
 
 
5136
    if test x$host_vendor = xsni; then
 
5137
      case $host in
 
5138
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
5139
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
 
5140
        ;;
 
5141
      esac
 
5142
    fi
6487
5143
  fi
6488
5144
])
6489
 
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
6490
 
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
 
5145
AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
 
5146
test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
 
5147
 
 
5148
_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
 
5149
 
 
5150
_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
 
5151
_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
 
5152
_LT_DECL([], [extract_expsyms_cmds], [2],
 
5153
    [The commands to extract the exported symbol list from a shared archive])
6491
5154
 
6492
5155
#
6493
5156
# Do we need to explicitly link libc?
6494
5157
#
6495
 
case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
 
5158
case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
6496
5159
x|xyes)
6497
5160
  # Assume -lc should be added
6498
 
  _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
 
5161
  _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6499
5162
 
6500
5163
  if test "$enable_shared" = yes && test "$GCC" = yes; then
6501
 
    case $_LT_AC_TAGVAR(archive_cmds, $1) in
 
5164
    case $_LT_TAGVAR(archive_cmds, $1) in
6502
5165
    *'~'*)
6503
5166
      # FIXME: we may have to deal with multi-command sequences.
6504
5167
      ;;
6507
5170
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
6508
5171
      # to ld, don't add -lc before -lgcc.
6509
5172
      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
6510
 
      $rm conftest*
 
5173
      $RM conftest*
6511
5174
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6512
5175
 
6513
5176
      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6515
5178
        lib=conftest
6516
5179
        libobjs=conftest.$ac_objext
6517
5180
        deplibs=
6518
 
        wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
6519
 
        pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
 
5181
        wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
 
5182
        pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
6520
5183
        compiler_flags=-v
6521
5184
        linker_flags=-v
6522
5185
        verstring=
6523
5186
        output_objdir=.
6524
5187
        libname=conftest
6525
 
        lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
6526
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=
6527
 
        if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
 
5188
        lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
 
5189
        _LT_TAGVAR(allow_undefined_flag, $1)=
 
5190
        if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
6528
5191
        then
6529
 
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
5192
          _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6530
5193
        else
6531
 
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
 
5194
          _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6532
5195
        fi
6533
 
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
 
5196
        _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
6534
5197
      else
6535
5198
        cat conftest.err 1>&5
6536
5199
      fi
6537
 
      $rm conftest*
6538
 
      AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
 
5200
      $RM conftest*
 
5201
      AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
6539
5202
      ;;
6540
5203
    esac
6541
5204
  fi
6542
5205
  ;;
6543
5206
esac
6544
 
])# AC_LIBTOOL_PROG_LD_SHLIBS
6545
 
 
6546
 
 
6547
 
# _LT_AC_FILE_LTDLL_C
6548
 
# -------------------
6549
 
# Be careful that the start marker always follows a newline.
6550
 
AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
6551
 
# /* ltdll.c starts here */
6552
 
# #define WIN32_LEAN_AND_MEAN
6553
 
# #include <windows.h>
6554
 
# #undef WIN32_LEAN_AND_MEAN
6555
 
# #include <stdio.h>
6556
 
#
6557
 
# #ifndef __CYGWIN__
6558
 
# #  ifdef __CYGWIN32__
6559
 
# #    define __CYGWIN__ __CYGWIN32__
6560
 
# #  endif
6561
 
# #endif
6562
 
#
6563
 
# #ifdef __cplusplus
6564
 
# extern "C" {
6565
 
# #endif
6566
 
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
6567
 
# #ifdef __cplusplus
6568
 
# }
6569
 
# #endif
6570
 
#
6571
 
# #ifdef __CYGWIN__
6572
 
# #include <cygwin/cygwin_dll.h>
6573
 
# DECLARE_CYGWIN_DLL( DllMain );
6574
 
# #endif
6575
 
# HINSTANCE __hDllInstance_base;
6576
 
#
6577
 
# BOOL APIENTRY
6578
 
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
6579
 
# {
6580
 
#   __hDllInstance_base = hInst;
6581
 
#   return TRUE;
6582
 
# }
6583
 
# /* ltdll.c ends here */
6584
 
])# _LT_AC_FILE_LTDLL_C
6585
 
 
6586
 
 
6587
 
# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
 
5207
 
 
5208
_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
 
5209
    [Whether or not to add -lc for building shared libraries])
 
5210
_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
 
5211
    [enable_shared_with_static_runtimes], [0],
 
5212
    [Whether or not to disallow shared libs when runtime libs are static])
 
5213
_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
 
5214
    [Compiler flag to allow reflexive dlopens])
 
5215
_LT_TAGDECL([], [whole_archive_flag_spec], [1],
 
5216
    [Compiler flag to generate shared objects directly from archives])
 
5217
_LT_TAGDECL([], [compiler_needs_object], [1],
 
5218
    [Whether the compiler copes with passing no objects directly])
 
5219
_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
 
5220
    [Create an old-style archive from a shared archive])
 
5221
_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
 
5222
    [Create a temporary old-style archive to link instead of a shared archive])
 
5223
_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
 
5224
_LT_TAGDECL([], [archive_expsym_cmds], [2])
 
5225
_LT_TAGDECL([], [module_cmds], [2],
 
5226
    [Commands used to build a loadable module if different from building
 
5227
    a shared archive.])
 
5228
_LT_TAGDECL([], [module_expsym_cmds], [2])
 
5229
_LT_TAGDECL([], [with_gnu_ld], [1],
 
5230
    [Whether we are building with GNU ld or not])
 
5231
_LT_TAGDECL([], [allow_undefined_flag], [1],
 
5232
    [Flag that allows shared libraries with undefined symbols to be built])
 
5233
_LT_TAGDECL([], [no_undefined_flag], [1],
 
5234
    [Flag that enforces no undefined symbols])
 
5235
_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
 
5236
    [Flag to hardcode $libdir into a binary during linking.
 
5237
    This must work even if $libdir does not exist])
 
5238
_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
 
5239
    [[If ld is used when linking, flag to hardcode $libdir into a binary
 
5240
    during linking.  This must work even if $libdir does not exist]])
 
5241
_LT_TAGDECL([], [hardcode_libdir_separator], [1],
 
5242
    [Whether we need a single "-rpath" flag with a separated argument])
 
5243
_LT_TAGDECL([], [hardcode_direct], [0],
 
5244
    [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
 
5245
    DIR into the resulting binary])
 
5246
_LT_TAGDECL([], [hardcode_direct_absolute], [0],
 
5247
    [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
 
5248
    DIR into the resulting binary and the resulting library dependency is
 
5249
    "absolute", i.e impossible to change by setting ${shlibpath_var} if the
 
5250
    library is relocated])
 
5251
_LT_TAGDECL([], [hardcode_minus_L], [0],
 
5252
    [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 
5253
    into the resulting binary])
 
5254
_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
 
5255
    [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 
5256
    into the resulting binary])
 
5257
_LT_TAGDECL([], [hardcode_automatic], [0],
 
5258
    [Set to "yes" if building a shared library automatically hardcodes DIR
 
5259
    into the library and all subsequent libraries and executables linked
 
5260
    against it])
 
5261
_LT_TAGDECL([], [inherit_rpath], [0],
 
5262
    [Set to yes if linker adds runtime paths of dependent libraries
 
5263
    to runtime path list])
 
5264
_LT_TAGDECL([], [link_all_deplibs], [0],
 
5265
    [Whether libtool must link a program against all its dependency libraries])
 
5266
_LT_TAGDECL([], [fix_srcfile_path], [1],
 
5267
    [Fix the shell variable $srcfile for the compiler])
 
5268
_LT_TAGDECL([], [always_export_symbols], [0],
 
5269
    [Set to "yes" if exported symbols are required])
 
5270
_LT_TAGDECL([], [export_symbols_cmds], [2],
 
5271
    [The commands to list exported symbols])
 
5272
_LT_TAGDECL([], [exclude_expsyms], [1],
 
5273
    [Symbols that should not be listed in the preloaded symbols])
 
5274
_LT_TAGDECL([], [include_expsyms], [1],
 
5275
    [Symbols that must always be exported])
 
5276
_LT_TAGDECL([], [prelink_cmds], [2],
 
5277
    [Commands necessary for linking programs (against libraries) with templates])
 
5278
_LT_TAGDECL([], [file_list_spec], [1],
 
5279
    [Specify filename containing input files])
 
5280
dnl FIXME: Not yet implemented
 
5281
dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
 
5282
dnl    [Compiler flag to generate thread safe objects])
 
5283
])# _LT_LINKER_SHLIBS
 
5284
 
 
5285
 
 
5286
# _LT_LANG_C_CONFIG([TAG])
 
5287
# ------------------------
 
5288
# Ensure that the configuration variables for a C compiler are suitably
 
5289
# defined.  These variables are subsequently used by _LT_CONFIG to write
 
5290
# the compiler configuration to `libtool'.
 
5291
m4_defun([_LT_LANG_C_CONFIG],
 
5292
[m4_require([_LT_DECL_EGREP])dnl
 
5293
lt_save_CC="$CC"
 
5294
AC_LANG_PUSH(C)
 
5295
 
 
5296
# Source file extension for C test sources.
 
5297
ac_ext=c
 
5298
 
 
5299
# Object file extension for compiled C test sources.
 
5300
objext=o
 
5301
_LT_TAGVAR(objext, $1)=$objext
 
5302
 
 
5303
# Code to be used in simple compile tests
 
5304
lt_simple_compile_test_code="int some_variable = 0;"
 
5305
 
 
5306
# Code to be used in simple link tests
 
5307
lt_simple_link_test_code='int main(){return(0);}'
 
5308
 
 
5309
_LT_TAG_COMPILER
 
5310
# Save the default compiler, since it gets overwritten when the other
 
5311
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
 
5312
compiler_DEFAULT=$CC
 
5313
 
 
5314
# save warnings/boilerplate of simple test code
 
5315
_LT_COMPILER_BOILERPLATE
 
5316
_LT_LINKER_BOILERPLATE
 
5317
 
 
5318
if test -n "$compiler"; then
 
5319
  _LT_COMPILER_NO_RTTI($1)
 
5320
  _LT_COMPILER_PIC($1)
 
5321
  _LT_COMPILER_C_O($1)
 
5322
  _LT_COMPILER_FILE_LOCKS($1)
 
5323
  _LT_LINKER_SHLIBS($1)
 
5324
  _LT_SYS_DYNAMIC_LINKER($1)
 
5325
  _LT_LINKER_HARDCODE_LIBPATH($1)
 
5326
  LT_SYS_DLOPEN_SELF
 
5327
  _LT_CMD_STRIPLIB
 
5328
 
 
5329
  # Report which library types will actually be built
 
5330
  AC_MSG_CHECKING([if libtool supports shared libraries])
 
5331
  AC_MSG_RESULT([$can_build_shared])
 
5332
 
 
5333
  AC_MSG_CHECKING([whether to build shared libraries])
 
5334
  test "$can_build_shared" = "no" && enable_shared=no
 
5335
 
 
5336
  # On AIX, shared libraries and static libraries use the same namespace, and
 
5337
  # are all built from PIC.
 
5338
  case $host_os in
 
5339
  aix3*)
 
5340
    test "$enable_shared" = yes && enable_static=no
 
5341
    if test -n "$RANLIB"; then
 
5342
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
5343
      postinstall_cmds='$RANLIB $lib'
 
5344
    fi
 
5345
    ;;
 
5346
 
 
5347
  aix[[4-9]]*)
 
5348
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
5349
      test "$enable_shared" = yes && enable_static=no
 
5350
    fi
 
5351
    ;;
 
5352
  esac
 
5353
  AC_MSG_RESULT([$enable_shared])
 
5354
 
 
5355
  AC_MSG_CHECKING([whether to build static libraries])
 
5356
  # Make sure either enable_shared or enable_static is yes.
 
5357
  test "$enable_shared" = yes || enable_static=yes
 
5358
  AC_MSG_RESULT([$enable_static])
 
5359
 
 
5360
  _LT_CONFIG($1)
 
5361
fi
 
5362
AC_LANG_POP
 
5363
CC="$lt_save_CC"
 
5364
])# _LT_LANG_C_CONFIG
 
5365
 
 
5366
 
 
5367
# _LT_PROG_CXX
 
5368
# ------------
 
5369
# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
 
5370
# compiler, we have our own version here.
 
5371
m4_defun([_LT_PROG_CXX],
 
5372
[
 
5373
pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
 
5374
AC_PROG_CXX
 
5375
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
5376
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
5377
    (test "X$CXX" != "Xg++"))) ; then
 
5378
  AC_PROG_CXXCPP
 
5379
else
 
5380
  _lt_caught_CXX_error=yes
 
5381
fi
 
5382
popdef([AC_MSG_ERROR])
 
5383
])# _LT_PROG_CXX
 
5384
 
 
5385
dnl aclocal-1.4 backwards compatibility:
 
5386
dnl AC_DEFUN([_LT_PROG_CXX], [])
 
5387
 
 
5388
 
 
5389
# _LT_LANG_CXX_CONFIG([TAG])
 
5390
# --------------------------
 
5391
# Ensure that the configuration variables for a C++ compiler are suitably
 
5392
# defined.  These variables are subsequently used by _LT_CONFIG to write
 
5393
# the compiler configuration to `libtool'.
 
5394
m4_defun([_LT_LANG_CXX_CONFIG],
 
5395
[AC_REQUIRE([_LT_PROG_CXX])dnl
 
5396
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
5397
m4_require([_LT_DECL_EGREP])dnl
 
5398
 
 
5399
AC_LANG_PUSH(C++)
 
5400
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
5401
_LT_TAGVAR(allow_undefined_flag, $1)=
 
5402
_LT_TAGVAR(always_export_symbols, $1)=no
 
5403
_LT_TAGVAR(archive_expsym_cmds, $1)=
 
5404
_LT_TAGVAR(compiler_needs_object, $1)=no
 
5405
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
 
5406
_LT_TAGVAR(hardcode_direct, $1)=no
 
5407
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
 
5408
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
5409
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 
5410
_LT_TAGVAR(hardcode_libdir_separator, $1)=
 
5411
_LT_TAGVAR(hardcode_minus_L, $1)=no
 
5412
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
5413
_LT_TAGVAR(hardcode_automatic, $1)=no
 
5414
_LT_TAGVAR(inherit_rpath, $1)=no
 
5415
_LT_TAGVAR(module_cmds, $1)=
 
5416
_LT_TAGVAR(module_expsym_cmds, $1)=
 
5417
_LT_TAGVAR(link_all_deplibs, $1)=unknown
 
5418
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
5419
_LT_TAGVAR(no_undefined_flag, $1)=
 
5420
_LT_TAGVAR(whole_archive_flag_spec, $1)=
 
5421
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 
5422
 
 
5423
# Source file extension for C++ test sources.
 
5424
ac_ext=cpp
 
5425
 
 
5426
# Object file extension for compiled C++ test sources.
 
5427
objext=o
 
5428
_LT_TAGVAR(objext, $1)=$objext
 
5429
 
 
5430
# No sense in running all these tests if we already determined that
 
5431
# the CXX compiler isn't working.  Some variables (like enable_shared)
 
5432
# are currently assumed to apply to all compilers on this platform,
 
5433
# and will be corrupted by setting them based on a non-working compiler.
 
5434
if test "$_lt_caught_CXX_error" != yes; then
 
5435
  # Code to be used in simple compile tests
 
5436
  lt_simple_compile_test_code="int some_variable = 0;"
 
5437
 
 
5438
  # Code to be used in simple link tests
 
5439
  lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
 
5440
 
 
5441
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
5442
  _LT_TAG_COMPILER
 
5443
 
 
5444
  # save warnings/boilerplate of simple test code
 
5445
  _LT_COMPILER_BOILERPLATE
 
5446
  _LT_LINKER_BOILERPLATE
 
5447
 
 
5448
  # Allow CC to be a program name with arguments.
 
5449
  lt_save_CC=$CC
 
5450
  lt_save_LD=$LD
 
5451
  lt_save_GCC=$GCC
 
5452
  GCC=$GXX
 
5453
  lt_save_with_gnu_ld=$with_gnu_ld
 
5454
  lt_save_path_LD=$lt_cv_path_LD
 
5455
  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
5456
    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
5457
  else
 
5458
    $as_unset lt_cv_prog_gnu_ld
 
5459
  fi
 
5460
  if test -n "${lt_cv_path_LDCXX+set}"; then
 
5461
    lt_cv_path_LD=$lt_cv_path_LDCXX
 
5462
  else
 
5463
    $as_unset lt_cv_path_LD
 
5464
  fi
 
5465
  test -z "${LDCXX+set}" || LD=$LDCXX
 
5466
  CC=${CXX-"c++"}
 
5467
  compiler=$CC
 
5468
  _LT_TAGVAR(compiler, $1)=$CC
 
5469
  _LT_CC_BASENAME([$compiler])
 
5470
 
 
5471
  if test -n "$compiler"; then
 
5472
    # We don't want -fno-exception when compiling C++ code, so set the
 
5473
    # no_builtin_flag separately
 
5474
    if test "$GXX" = yes; then
 
5475
      _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
 
5476
    else
 
5477
      _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
 
5478
    fi
 
5479
 
 
5480
    if test "$GXX" = yes; then
 
5481
      # Set up default GNU C++ configuration
 
5482
 
 
5483
      LT_PATH_LD
 
5484
 
 
5485
      # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
5486
      # archiving commands below assume that GNU ld is being used.
 
5487
      if test "$with_gnu_ld" = yes; then
 
5488
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5489
        _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'
 
5490
 
 
5491
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
5492
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
5493
 
 
5494
        # If archive_cmds runs LD, not CC, wlarc should be empty
 
5495
        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
5496
        #     investigate it a little bit more. (MM)
 
5497
        wlarc='${wl}'
 
5498
 
 
5499
        # ancient GNU ld didn't support --whole-archive et. al.
 
5500
        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
 
5501
          $GREP 'no-whole-archive' > /dev/null; then
 
5502
          _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
5503
        else
 
5504
          _LT_TAGVAR(whole_archive_flag_spec, $1)=
 
5505
        fi
 
5506
      else
 
5507
        with_gnu_ld=no
 
5508
        wlarc=
 
5509
 
 
5510
        # A generic and very simple default shared library creation
 
5511
        # command for GNU C++ for the case where it uses the native
 
5512
        # linker, instead of GNU ld.  If possible, this setting should
 
5513
        # overridden to take advantage of the native linker features on
 
5514
        # the platform it is being used on.
 
5515
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
5516
      fi
 
5517
 
 
5518
      # Commands to make compiler produce verbose output that lists
 
5519
      # what "hidden" libraries, object files and flags are used when
 
5520
      # linking a shared library.
 
5521
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
5522
 
 
5523
    else
 
5524
      GXX=no
 
5525
      with_gnu_ld=no
 
5526
      wlarc=
 
5527
    fi
 
5528
 
 
5529
    # PORTME: fill in a description of your system's C++ link characteristics
 
5530
    AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
 
5531
    _LT_TAGVAR(ld_shlibs, $1)=yes
 
5532
    case $host_os in
 
5533
      aix3*)
 
5534
        # FIXME: insert proper C++ library support
 
5535
        _LT_TAGVAR(ld_shlibs, $1)=no
 
5536
        ;;
 
5537
      aix[[4-9]]*)
 
5538
        if test "$host_cpu" = ia64; then
 
5539
          # On IA64, the linker does run time linking by default, so we don't
 
5540
          # have to do anything special.
 
5541
          aix_use_runtimelinking=no
 
5542
          exp_sym_flag='-Bexport'
 
5543
          no_entry_flag=""
 
5544
        else
 
5545
          aix_use_runtimelinking=no
 
5546
 
 
5547
          # Test if we are trying to use run time linking or normal
 
5548
          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
5549
          # need to do runtime linking.
 
5550
          case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
 
5551
            for ld_flag in $LDFLAGS; do
 
5552
              case $ld_flag in
 
5553
              *-brtl*)
 
5554
                aix_use_runtimelinking=yes
 
5555
                break
 
5556
                ;;
 
5557
              esac
 
5558
            done
 
5559
            ;;
 
5560
          esac
 
5561
 
 
5562
          exp_sym_flag='-bexport'
 
5563
          no_entry_flag='-bnoentry'
 
5564
        fi
 
5565
 
 
5566
        # When large executables or shared objects are built, AIX ld can
 
5567
        # have problems creating the table of contents.  If linking a library
 
5568
        # or program results in "error TOC overflow" add -mminimal-toc to
 
5569
        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
5570
        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
5571
 
 
5572
        _LT_TAGVAR(archive_cmds, $1)=''
 
5573
        _LT_TAGVAR(hardcode_direct, $1)=yes
 
5574
        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
5575
        _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
 
5576
        _LT_TAGVAR(link_all_deplibs, $1)=yes
 
5577
        _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
 
5578
 
 
5579
        if test "$GXX" = yes; then
 
5580
          case $host_os in aix4.[[012]]|aix4.[[012]].*)
 
5581
          # We only want to do this on AIX 4.2 and lower, the check
 
5582
          # below for broken collect2 doesn't work under 4.3+
 
5583
          collect2name=`${CC} -print-prog-name=collect2`
 
5584
          if test -f "$collect2name" &&
 
5585
             strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 
5586
          then
 
5587
            # We have reworked collect2
 
5588
            :
 
5589
          else
 
5590
            # We have old collect2
 
5591
            _LT_TAGVAR(hardcode_direct, $1)=unsupported
 
5592
            # It fails to find uninstalled libraries when the uninstalled
 
5593
            # path is not listed in the libpath.  Setting hardcode_minus_L
 
5594
            # to unsupported forces relinking
 
5595
            _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
5596
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
5597
            _LT_TAGVAR(hardcode_libdir_separator, $1)=
 
5598
          fi
 
5599
          esac
 
5600
          shared_flag='-shared'
 
5601
          if test "$aix_use_runtimelinking" = yes; then
 
5602
            shared_flag="$shared_flag "'${wl}-G'
 
5603
          fi
 
5604
        else
 
5605
          # not using gcc
 
5606
          if test "$host_cpu" = ia64; then
 
5607
          # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
5608
          # chokes on -Wl,-G. The following line is correct:
 
5609
          shared_flag='-G'
 
5610
          else
 
5611
            if test "$aix_use_runtimelinking" = yes; then
 
5612
              shared_flag='${wl}-G'
 
5613
            else
 
5614
              shared_flag='${wl}-bM:SRE'
 
5615
            fi
 
5616
          fi
 
5617
        fi
 
5618
 
 
5619
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
 
5620
        # It seems that -bexpall does not export symbols beginning with
 
5621
        # underscore (_), so it is better to generate a list of symbols to
 
5622
        # export.
 
5623
        _LT_TAGVAR(always_export_symbols, $1)=yes
 
5624
        if test "$aix_use_runtimelinking" = yes; then
 
5625
          # Warning - without using the other runtime loading flags (-brtl),
 
5626
          # -berok will link without error, but may produce a broken library.
 
5627
          _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
 
5628
          # Determine the default libpath from the value encoded in an empty
 
5629
          # executable.
 
5630
          _LT_SYS_MODULE_PATH_AIX
 
5631
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
5632
 
 
5633
          _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"
 
5634
        else
 
5635
          if test "$host_cpu" = ia64; then
 
5636
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
 
5637
            _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
 
5638
            _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"
 
5639
          else
 
5640
            # Determine the default libpath from the value encoded in an
 
5641
            # empty executable.
 
5642
            _LT_SYS_MODULE_PATH_AIX
 
5643
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
5644
            # Warning - without using the other run time loading flags,
 
5645
            # -berok will link without error, but may produce a broken library.
 
5646
            _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
 
5647
            _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
 
5648
            # Exported symbols can be pulled into shared objects from archives
 
5649
            _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
5650
            _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
 
5651
            # This is similar to how AIX traditionally builds its shared
 
5652
            # libraries.
 
5653
            _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'
 
5654
          fi
 
5655
        fi
 
5656
        ;;
 
5657
 
 
5658
      beos*)
 
5659
        if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
5660
          _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
5661
          # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
5662
          # support --undefined.  This deserves some investigation.  FIXME
 
5663
          _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5664
        else
 
5665
          _LT_TAGVAR(ld_shlibs, $1)=no
 
5666
        fi
 
5667
        ;;
 
5668
 
 
5669
      chorus*)
 
5670
        case $cc_basename in
 
5671
          *)
 
5672
          # FIXME: insert proper C++ library support
 
5673
          _LT_TAGVAR(ld_shlibs, $1)=no
 
5674
          ;;
 
5675
        esac
 
5676
        ;;
 
5677
 
 
5678
      cygwin* | mingw* | pw32* | cegcc*)
 
5679
        # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
 
5680
        # as there is no search path for DLLs.
 
5681
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
5682
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
5683
        _LT_TAGVAR(always_export_symbols, $1)=no
 
5684
        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
5685
 
 
5686
        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
5687
          _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'
 
5688
          # If the export-symbols file already is a .def file (1st line
 
5689
          # is EXPORTS), use it as is; otherwise, prepend...
 
5690
          _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
5691
            cp $export_symbols $output_objdir/$soname.def;
 
5692
          else
 
5693
            echo EXPORTS > $output_objdir/$soname.def;
 
5694
            cat $export_symbols >> $output_objdir/$soname.def;
 
5695
          fi~
 
5696
          $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'
 
5697
        else
 
5698
          _LT_TAGVAR(ld_shlibs, $1)=no
 
5699
        fi
 
5700
        ;;
 
5701
      darwin* | rhapsody*)
 
5702
        _LT_DARWIN_LINKER_FEATURES($1)
 
5703
        ;;
 
5704
 
 
5705
      dgux*)
 
5706
        case $cc_basename in
 
5707
          ec++*)
 
5708
            # FIXME: insert proper C++ library support
 
5709
            _LT_TAGVAR(ld_shlibs, $1)=no
 
5710
            ;;
 
5711
          ghcx*)
 
5712
            # Green Hills C++ Compiler
 
5713
            # FIXME: insert proper C++ library support
 
5714
            _LT_TAGVAR(ld_shlibs, $1)=no
 
5715
            ;;
 
5716
          *)
 
5717
            # FIXME: insert proper C++ library support
 
5718
            _LT_TAGVAR(ld_shlibs, $1)=no
 
5719
            ;;
 
5720
        esac
 
5721
        ;;
 
5722
 
 
5723
      freebsd[[12]]*)
 
5724
        # C++ shared libraries reported to be fairly broken before
 
5725
        # switch to ELF
 
5726
        _LT_TAGVAR(ld_shlibs, $1)=no
 
5727
        ;;
 
5728
 
 
5729
      freebsd-elf*)
 
5730
        _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
5731
        ;;
 
5732
 
 
5733
      freebsd* | dragonfly*)
 
5734
        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
5735
        # conventions
 
5736
        _LT_TAGVAR(ld_shlibs, $1)=yes
 
5737
        ;;
 
5738
 
 
5739
      gnu*)
 
5740
        ;;
 
5741
 
 
5742
      hpux9*)
 
5743
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
5744
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
5745
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
5746
        _LT_TAGVAR(hardcode_direct, $1)=yes
 
5747
        _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
 
5748
                                             # but as the default
 
5749
                                             # location of the library.
 
5750
 
 
5751
        case $cc_basename in
 
5752
          CC*)
 
5753
            # FIXME: insert proper C++ library support
 
5754
            _LT_TAGVAR(ld_shlibs, $1)=no
 
5755
            ;;
 
5756
          aCC*)
 
5757
            _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'
 
5758
            # Commands to make compiler produce verbose output that lists
 
5759
            # what "hidden" libraries, object files and flags are used when
 
5760
            # linking a shared library.
 
5761
            #
 
5762
            # There doesn't appear to be a way to prevent this compiler from
 
5763
            # explicitly linking system object files so we need to strip them
 
5764
            # from the output so that they don't get included in the library
 
5765
            # dependencies.
 
5766
            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'
 
5767
            ;;
 
5768
          *)
 
5769
            if test "$GXX" = yes; then
 
5770
              _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'
 
5771
            else
 
5772
              # FIXME: insert proper C++ library support
 
5773
              _LT_TAGVAR(ld_shlibs, $1)=no
 
5774
            fi
 
5775
            ;;
 
5776
        esac
 
5777
        ;;
 
5778
 
 
5779
      hpux10*|hpux11*)
 
5780
        if test $with_gnu_ld = no; then
 
5781
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
5782
          _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
5783
 
 
5784
          case $host_cpu in
 
5785
            hppa*64*|ia64*)
 
5786
              ;;
 
5787
            *)
 
5788
              _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
5789
              ;;
 
5790
          esac
 
5791
        fi
 
5792
        case $host_cpu in
 
5793
          hppa*64*|ia64*)
 
5794
            _LT_TAGVAR(hardcode_direct, $1)=no
 
5795
            _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5796
            ;;
 
5797
          *)
 
5798
            _LT_TAGVAR(hardcode_direct, $1)=yes
 
5799
            _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
5800
            _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
 
5801
                                                 # but as the default
 
5802
                                                 # location of the library.
 
5803
            ;;
 
5804
        esac
 
5805
 
 
5806
        case $cc_basename in
 
5807
          CC*)
 
5808
            # FIXME: insert proper C++ library support
 
5809
            _LT_TAGVAR(ld_shlibs, $1)=no
 
5810
            ;;
 
5811
          aCC*)
 
5812
            case $host_cpu in
 
5813
              hppa*64*)
 
5814
                _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
5815
                ;;
 
5816
              ia64*)
 
5817
                _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
5818
                ;;
 
5819
              *)
 
5820
                _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'
 
5821
                ;;
 
5822
            esac
 
5823
            # Commands to make compiler produce verbose output that lists
 
5824
            # what "hidden" libraries, object files and flags are used when
 
5825
            # linking a shared library.
 
5826
            #
 
5827
            # There doesn't appear to be a way to prevent this compiler from
 
5828
            # explicitly linking system object files so we need to strip them
 
5829
            # from the output so that they don't get included in the library
 
5830
            # dependencies.
 
5831
            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'
 
5832
            ;;
 
5833
          *)
 
5834
            if test "$GXX" = yes; then
 
5835
              if test $with_gnu_ld = no; then
 
5836
                case $host_cpu in
 
5837
                  hppa*64*)
 
5838
                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
5839
                    ;;
 
5840
                  ia64*)
 
5841
                    _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'
 
5842
                    ;;
 
5843
                  *)
 
5844
                    _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'
 
5845
                    ;;
 
5846
                esac
 
5847
              fi
 
5848
            else
 
5849
              # FIXME: insert proper C++ library support
 
5850
              _LT_TAGVAR(ld_shlibs, $1)=no
 
5851
            fi
 
5852
            ;;
 
5853
        esac
 
5854
        ;;
 
5855
 
 
5856
      interix[[3-9]]*)
 
5857
        _LT_TAGVAR(hardcode_direct, $1)=no
 
5858
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
5859
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
5860
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
5861
        # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
5862
        # Instead, shared libraries are loaded at an image base (0x10000000 by
 
5863
        # default) and relocated if they conflict, which is a slow very memory
 
5864
        # consuming and fragmenting process.  To avoid this, we pick a random,
 
5865
        # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
5866
        # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
5867
        _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'
 
5868
        _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'
 
5869
        ;;
 
5870
      irix5* | irix6*)
 
5871
        case $cc_basename in
 
5872
          CC*)
 
5873
            # SGI C++
 
5874
            _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'
 
5875
 
 
5876
            # Archives containing C++ object files must be created using
 
5877
            # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
5878
            # necessary to make sure instantiated templates are included
 
5879
            # in the archive.
 
5880
            _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
5881
            ;;
 
5882
          *)
 
5883
            if test "$GXX" = yes; then
 
5884
              if test "$with_gnu_ld" = no; then
 
5885
                _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'
 
5886
              else
 
5887
                _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'
 
5888
              fi
 
5889
            fi
 
5890
            _LT_TAGVAR(link_all_deplibs, $1)=yes
 
5891
            ;;
 
5892
        esac
 
5893
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
5894
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
5895
        _LT_TAGVAR(inherit_rpath, $1)=yes
 
5896
        ;;
 
5897
 
 
5898
      linux* | k*bsd*-gnu)
 
5899
        case $cc_basename in
 
5900
          KCC*)
 
5901
            # Kuck and Associates, Inc. (KAI) C++ Compiler
 
5902
 
 
5903
            # KCC will only create a shared library if the output file
 
5904
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
5905
            # to its proper name (with version) after linking.
 
5906
            _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'
 
5907
            _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'
 
5908
            # Commands to make compiler produce verbose output that lists
 
5909
            # what "hidden" libraries, object files and flags are used when
 
5910
            # linking a shared library.
 
5911
            #
 
5912
            # There doesn't appear to be a way to prevent this compiler from
 
5913
            # explicitly linking system object files so we need to strip them
 
5914
            # from the output so that they don't get included in the library
 
5915
            # dependencies.
 
5916
            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'
 
5917
 
 
5918
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
5919
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
5920
 
 
5921
            # Archives containing C++ object files must be created using
 
5922
            # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
5923
            _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
 
5924
            ;;
 
5925
          icpc* | ecpc* )
 
5926
            # Intel C++
 
5927
            with_gnu_ld=yes
 
5928
            # version 8.0 and above of icpc choke on multiply defined symbols
 
5929
            # if we add $predep_objects and $postdep_objects, however 7.1 and
 
5930
            # earlier do not add the objects themselves.
 
5931
            case `$CC -V 2>&1` in
 
5932
              *"Version 7."*)
 
5933
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5934
                _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'
 
5935
                ;;
 
5936
              *)  # Version 8.0 or newer
 
5937
                tmp_idyn=
 
5938
                case $host_cpu in
 
5939
                  ia64*) tmp_idyn=' -i_dynamic';;
 
5940
                esac
 
5941
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5942
                _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'
 
5943
                ;;
 
5944
            esac
 
5945
            _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
5946
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
5947
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
5948
            _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
5949
            ;;
 
5950
          pgCC* | pgcpp*)
 
5951
            # Portland Group C++ compiler
 
5952
            case `$CC -V` in
 
5953
            *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
 
5954
              _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
 
5955
                rm -rf $tpldir~
 
5956
                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
 
5957
                compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
 
5958
              _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
 
5959
                rm -rf $tpldir~
 
5960
                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
 
5961
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
 
5962
                $RANLIB $oldlib'
 
5963
              _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
 
5964
                rm -rf $tpldir~
 
5965
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
 
5966
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
5967
              _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
 
5968
                rm -rf $tpldir~
 
5969
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
 
5970
                $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'
 
5971
              ;;
 
5972
            *) # Version 6 will use weak symbols
 
5973
              _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
5974
              _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'
 
5975
              ;;
 
5976
            esac
 
5977
 
 
5978
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
 
5979
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
5980
            _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'
 
5981
            ;;
 
5982
          cxx*)
 
5983
            # Compaq C++
 
5984
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5985
            _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'
 
5986
 
 
5987
            runpath_var=LD_RUN_PATH
 
5988
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
 
5989
            _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
5990
 
 
5991
            # Commands to make compiler produce verbose output that lists
 
5992
            # what "hidden" libraries, object files and flags are used when
 
5993
            # linking a shared library.
 
5994
            #
 
5995
            # There doesn't appear to be a way to prevent this compiler from
 
5996
            # explicitly linking system object files so we need to strip them
 
5997
            # from the output so that they don't get included in the library
 
5998
            # dependencies.
 
5999
            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'
 
6000
            ;;
 
6001
          xl*)
 
6002
            # IBM XL 8.0 on PPC, with GNU ld
 
6003
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
6004
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
6005
            _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6006
            if test "x$supports_anon_versioning" = xyes; then
 
6007
              _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
 
6008
                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
6009
                echo "local: *; };" >> $output_objdir/$libname.ver~
 
6010
                $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
6011
            fi
 
6012
            ;;
 
6013
          *)
 
6014
            case `$CC -V 2>&1 | sed 5q` in
 
6015
            *Sun\ C*)
 
6016
              # Sun C++ 5.9
 
6017
              _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
 
6018
              _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
6019
              _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'
 
6020
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
6021
              _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'
 
6022
              _LT_TAGVAR(compiler_needs_object, $1)=yes
 
6023
 
 
6024
              # Not sure whether something based on
 
6025
              # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 
6026
              # would be better.
 
6027
              output_verbose_link_cmd='echo'
 
6028
 
 
6029
              # Archives containing C++ object files must be created using
 
6030
              # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
6031
              # necessary to make sure instantiated templates are included
 
6032
              # in the archive.
 
6033
              _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
 
6034
              ;;
 
6035
            esac
 
6036
            ;;
 
6037
        esac
 
6038
        ;;
 
6039
 
 
6040
      lynxos*)
 
6041
        # FIXME: insert proper C++ library support
 
6042
        _LT_TAGVAR(ld_shlibs, $1)=no
 
6043
        ;;
 
6044
 
 
6045
      m88k*)
 
6046
        # FIXME: insert proper C++ library support
 
6047
        _LT_TAGVAR(ld_shlibs, $1)=no
 
6048
        ;;
 
6049
 
 
6050
      mvs*)
 
6051
        case $cc_basename in
 
6052
          cxx*)
 
6053
            # FIXME: insert proper C++ library support
 
6054
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6055
            ;;
 
6056
          *)
 
6057
            # FIXME: insert proper C++ library support
 
6058
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6059
            ;;
 
6060
        esac
 
6061
        ;;
 
6062
 
 
6063
      netbsd*)
 
6064
        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
6065
          _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
6066
          wlarc=
 
6067
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
6068
          _LT_TAGVAR(hardcode_direct, $1)=yes
 
6069
          _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6070
        fi
 
6071
        # Workaround some broken pre-1.5 toolchains
 
6072
        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
6073
        ;;
 
6074
 
 
6075
      *nto* | *qnx*)
 
6076
        _LT_TAGVAR(ld_shlibs, $1)=yes
 
6077
        ;;
 
6078
 
 
6079
      openbsd2*)
 
6080
        # C++ shared libraries are fairly broken
 
6081
        _LT_TAGVAR(ld_shlibs, $1)=no
 
6082
        ;;
 
6083
 
 
6084
      openbsd*)
 
6085
        if test -f /usr/libexec/ld.so; then
 
6086
          _LT_TAGVAR(hardcode_direct, $1)=yes
 
6087
          _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6088
          _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 
6089
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
6090
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6091
          if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
6092
            _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'
 
6093
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6094
            _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
6095
          fi
 
6096
          output_verbose_link_cmd=echo
 
6097
        else
 
6098
          _LT_TAGVAR(ld_shlibs, $1)=no
 
6099
        fi
 
6100
        ;;
 
6101
 
 
6102
      osf3* | osf4* | osf5*)
 
6103
        case $cc_basename in
 
6104
          KCC*)
 
6105
            # Kuck and Associates, Inc. (KAI) C++ Compiler
 
6106
 
 
6107
            # KCC will only create a shared library if the output file
 
6108
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
6109
            # to its proper name (with version) after linking.
 
6110
            _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'
 
6111
 
 
6112
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6113
            _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
6114
 
 
6115
            # Archives containing C++ object files must be created using
 
6116
            # the KAI C++ compiler.
 
6117
            case $host in
 
6118
              osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
 
6119
              *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
 
6120
            esac
 
6121
            ;;
 
6122
          RCC*)
 
6123
            # Rational C++ 2.4.1
 
6124
            # FIXME: insert proper C++ library support
 
6125
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6126
            ;;
 
6127
          cxx*)
 
6128
            case $host in
 
6129
              osf3*)
 
6130
                _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
6131
                _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'
 
6132
                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
6133
                ;;
 
6134
              *)
 
6135
                _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
 
6136
                _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'
 
6137
                _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
6138
                  echo "-hidden">> $lib.exp~
 
6139
                  $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~
 
6140
                  $RM $lib.exp'
 
6141
                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
 
6142
                ;;
 
6143
            esac
 
6144
 
 
6145
            _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
6146
 
 
6147
            # Commands to make compiler produce verbose output that lists
 
6148
            # what "hidden" libraries, object files and flags are used when
 
6149
            # linking a shared library.
 
6150
            #
 
6151
            # There doesn't appear to be a way to prevent this compiler from
 
6152
            # explicitly linking system object files so we need to strip them
 
6153
            # from the output so that they don't get included in the library
 
6154
            # dependencies.
 
6155
            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'
 
6156
            ;;
 
6157
          *)
 
6158
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
6159
              _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
6160
              case $host in
 
6161
                osf3*)
 
6162
                  _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'
 
6163
                  ;;
 
6164
                *)
 
6165
                  _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'
 
6166
                  ;;
 
6167
              esac
 
6168
 
 
6169
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
6170
              _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
6171
 
 
6172
              # Commands to make compiler produce verbose output that lists
 
6173
              # what "hidden" libraries, object files and flags are used when
 
6174
              # linking a shared library.
 
6175
              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
6176
 
 
6177
            else
 
6178
              # FIXME: insert proper C++ library support
 
6179
              _LT_TAGVAR(ld_shlibs, $1)=no
 
6180
            fi
 
6181
            ;;
 
6182
        esac
 
6183
        ;;
 
6184
 
 
6185
      psos*)
 
6186
        # FIXME: insert proper C++ library support
 
6187
        _LT_TAGVAR(ld_shlibs, $1)=no
 
6188
        ;;
 
6189
 
 
6190
      sunos4*)
 
6191
        case $cc_basename in
 
6192
          CC*)
 
6193
            # Sun C++ 4.x
 
6194
            # FIXME: insert proper C++ library support
 
6195
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6196
            ;;
 
6197
          lcc*)
 
6198
            # Lucid
 
6199
            # FIXME: insert proper C++ library support
 
6200
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6201
            ;;
 
6202
          *)
 
6203
            # FIXME: insert proper C++ library support
 
6204
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6205
            ;;
 
6206
        esac
 
6207
        ;;
 
6208
 
 
6209
      solaris*)
 
6210
        case $cc_basename in
 
6211
          CC*)
 
6212
            # Sun C++ 4.2, 5.x and Centerline C++
 
6213
            _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
 
6214
            _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
 
6215
            _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
6216
            _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
6217
              $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'
 
6218
 
 
6219
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
6220
            _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6221
            case $host_os in
 
6222
              solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 
6223
              *)
 
6224
                # The compiler driver will combine and reorder linker options,
 
6225
                # but understands `-z linker_flag'.
 
6226
                # Supported since Solaris 2.6 (maybe 2.5.1?)
 
6227
                _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
 
6228
                ;;
 
6229
            esac
 
6230
            _LT_TAGVAR(link_all_deplibs, $1)=yes
 
6231
 
 
6232
            output_verbose_link_cmd='echo'
 
6233
 
 
6234
            # Archives containing C++ object files must be created using
 
6235
            # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
6236
            # necessary to make sure instantiated templates are included
 
6237
            # in the archive.
 
6238
            _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
 
6239
            ;;
 
6240
          gcx*)
 
6241
            # Green Hills C++ Compiler
 
6242
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
6243
 
 
6244
            # The C++ compiler must be used to create the archive.
 
6245
            _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
6246
            ;;
 
6247
          *)
 
6248
            # GNU C++ compiler with Solaris linker
 
6249
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
6250
              _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
 
6251
              if $CC --version | $GREP -v '^2\.7' > /dev/null; then
 
6252
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
6253
                _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
6254
                  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
6255
 
 
6256
                # Commands to make compiler produce verbose output that lists
 
6257
                # what "hidden" libraries, object files and flags are used when
 
6258
                # linking a shared library.
 
6259
                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
6260
              else
 
6261
                # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
6262
                # platform.
 
6263
                _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
6264
                _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
6265
                  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
6266
 
 
6267
                # Commands to make compiler produce verbose output that lists
 
6268
                # what "hidden" libraries, object files and flags are used when
 
6269
                # linking a shared library.
 
6270
                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
6271
              fi
 
6272
 
 
6273
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
 
6274
              case $host_os in
 
6275
                solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 
6276
                *)
 
6277
                  _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
6278
                  ;;
 
6279
              esac
 
6280
            fi
 
6281
            ;;
 
6282
        esac
 
6283
        ;;
 
6284
 
 
6285
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
 
6286
      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
6287
      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
6288
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6289
      runpath_var='LD_RUN_PATH'
 
6290
 
 
6291
      case $cc_basename in
 
6292
        CC*)
 
6293
          _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6294
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6295
          ;;
 
6296
        *)
 
6297
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6298
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6299
          ;;
 
6300
      esac
 
6301
      ;;
 
6302
 
 
6303
      sysv5* | sco3.2v5* | sco5v6*)
 
6304
        # Note: We can NOT use -z defs as we might desire, because we do not
 
6305
        # link with -lc, and that would cause any symbols used from libc to
 
6306
        # always be unresolved, which means just about no library would
 
6307
        # ever link correctly.  If we're not using GNU ld we use -z text
 
6308
        # though, which does catch some bad symbols but isn't as heavy-handed
 
6309
        # as -z defs.
 
6310
        _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
6311
        _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
 
6312
        _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
6313
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6314
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
 
6315
        _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
 
6316
        _LT_TAGVAR(link_all_deplibs, $1)=yes
 
6317
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
 
6318
        runpath_var='LD_RUN_PATH'
 
6319
 
 
6320
        case $cc_basename in
 
6321
          CC*)
 
6322
            _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6323
            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6324
            ;;
 
6325
          *)
 
6326
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6327
            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6328
            ;;
 
6329
        esac
 
6330
      ;;
 
6331
 
 
6332
      tandem*)
 
6333
        case $cc_basename in
 
6334
          NCC*)
 
6335
            # NonStop-UX NCC 3.20
 
6336
            # FIXME: insert proper C++ library support
 
6337
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6338
            ;;
 
6339
          *)
 
6340
            # FIXME: insert proper C++ library support
 
6341
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6342
            ;;
 
6343
        esac
 
6344
        ;;
 
6345
 
 
6346
      vxworks*)
 
6347
        # FIXME: insert proper C++ library support
 
6348
        _LT_TAGVAR(ld_shlibs, $1)=no
 
6349
        ;;
 
6350
 
 
6351
      *)
 
6352
        # FIXME: insert proper C++ library support
 
6353
        _LT_TAGVAR(ld_shlibs, $1)=no
 
6354
        ;;
 
6355
    esac
 
6356
 
 
6357
    AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
 
6358
    test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
 
6359
 
 
6360
    _LT_TAGVAR(GCC, $1)="$GXX"
 
6361
    _LT_TAGVAR(LD, $1)="$LD"
 
6362
 
 
6363
    ## CAVEAT EMPTOR:
 
6364
    ## There is no encapsulation within the following macros, do not change
 
6365
    ## the running order or otherwise move them around unless you know exactly
 
6366
    ## what you are doing...
 
6367
    _LT_SYS_HIDDEN_LIBDEPS($1)
 
6368
    _LT_COMPILER_PIC($1)
 
6369
    _LT_COMPILER_C_O($1)
 
6370
    _LT_COMPILER_FILE_LOCKS($1)
 
6371
    _LT_LINKER_SHLIBS($1)
 
6372
    _LT_SYS_DYNAMIC_LINKER($1)
 
6373
    _LT_LINKER_HARDCODE_LIBPATH($1)
 
6374
 
 
6375
    _LT_CONFIG($1)
 
6376
  fi # test -n "$compiler"
 
6377
 
 
6378
  CC=$lt_save_CC
 
6379
  LDCXX=$LD
 
6380
  LD=$lt_save_LD
 
6381
  GCC=$lt_save_GCC
 
6382
  with_gnu_ld=$lt_save_with_gnu_ld
 
6383
  lt_cv_path_LDCXX=$lt_cv_path_LD
 
6384
  lt_cv_path_LD=$lt_save_path_LD
 
6385
  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
6386
  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
6387
fi # test "$_lt_caught_CXX_error" != yes
 
6388
 
 
6389
AC_LANG_POP
 
6390
])# _LT_LANG_CXX_CONFIG
 
6391
 
 
6392
 
 
6393
# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
6588
6394
# ---------------------------------
6589
 
AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
6590
 
 
6591
 
 
6592
 
# old names
6593
 
AC_DEFUN([AM_PROG_LIBTOOL],   [AC_PROG_LIBTOOL])
6594
 
AC_DEFUN([AM_ENABLE_SHARED],  [AC_ENABLE_SHARED($@)])
6595
 
AC_DEFUN([AM_ENABLE_STATIC],  [AC_ENABLE_STATIC($@)])
6596
 
AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
6597
 
AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
6598
 
AC_DEFUN([AM_PROG_LD],        [AC_PROG_LD])
6599
 
AC_DEFUN([AM_PROG_NM],        [AC_PROG_NM])
6600
 
 
6601
 
# This is just to silence aclocal about the macro not being used
6602
 
ifelse([AC_DISABLE_FAST_INSTALL])
6603
 
 
6604
 
AC_DEFUN([LT_AC_PROG_GCJ],
6605
 
[AC_CHECK_TOOL(GCJ, gcj, no)
6606
 
  test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
6607
 
  AC_SUBST(GCJFLAGS)
6608
 
])
6609
 
 
6610
 
AC_DEFUN([LT_AC_PROG_RC],
6611
 
[AC_CHECK_TOOL(RC, windres, no)
6612
 
])
6613
 
 
6614
 
 
6615
 
# Cheap backport of AS_EXECUTABLE_P and required macros
6616
 
# from Autoconf 2.59; we should not use $as_executable_p directly.
6617
 
 
6618
 
# _AS_TEST_PREPARE
6619
 
# ----------------
6620
 
m4_ifndef([_AS_TEST_PREPARE],
6621
 
[m4_defun([_AS_TEST_PREPARE],
6622
 
[if test -x / >/dev/null 2>&1; then
6623
 
  as_executable_p='test -x'
 
6395
# Figure out "hidden" library dependencies from verbose
 
6396
# compiler output when linking a shared library.
 
6397
# Parse the compiler output and extract the necessary
 
6398
# objects, libraries and library flags.
 
6399
m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
 
6400
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 
6401
# Dependencies to place before and after the object being linked:
 
6402
_LT_TAGVAR(predep_objects, $1)=
 
6403
_LT_TAGVAR(postdep_objects, $1)=
 
6404
_LT_TAGVAR(predeps, $1)=
 
6405
_LT_TAGVAR(postdeps, $1)=
 
6406
_LT_TAGVAR(compiler_lib_search_path, $1)=
 
6407
 
 
6408
dnl we can't use the lt_simple_compile_test_code here,
 
6409
dnl because it contains code intended for an executable,
 
6410
dnl not a library.  It's possible we should let each
 
6411
dnl tag define a new lt_????_link_test_code variable,
 
6412
dnl but it's only used here...
 
6413
m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
 
6414
int a;
 
6415
void foo (void) { a = 0; }
 
6416
_LT_EOF
 
6417
], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
 
6418
class Foo
 
6419
{
 
6420
public:
 
6421
  Foo (void) { a = 0; }
 
6422
private:
 
6423
  int a;
 
6424
};
 
6425
_LT_EOF
 
6426
], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
 
6427
      subroutine foo
 
6428
      implicit none
 
6429
      integer*4 a
 
6430
      a=0
 
6431
      return
 
6432
      end
 
6433
_LT_EOF
 
6434
], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
 
6435
      subroutine foo
 
6436
      implicit none
 
6437
      integer a
 
6438
      a=0
 
6439
      return
 
6440
      end
 
6441
_LT_EOF
 
6442
], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
 
6443
public class foo {
 
6444
  private int a;
 
6445
  public void bar (void) {
 
6446
    a = 0;
 
6447
  }
 
6448
};
 
6449
_LT_EOF
 
6450
])
 
6451
dnl Parse the compiler output and extract the necessary
 
6452
dnl objects, libraries and library flags.
 
6453
if AC_TRY_EVAL(ac_compile); then
 
6454
  # Parse the compiler output and extract the necessary
 
6455
  # objects, libraries and library flags.
 
6456
 
 
6457
  # Sentinel used to keep track of whether or not we are before
 
6458
  # the conftest object file.
 
6459
  pre_test_object_deps_done=no
 
6460
 
 
6461
  for p in `eval "$output_verbose_link_cmd"`; do
 
6462
    case $p in
 
6463
 
 
6464
    -L* | -R* | -l*)
 
6465
       # Some compilers place space between "-{L,R}" and the path.
 
6466
       # Remove the space.
 
6467
       if test $p = "-L" ||
 
6468
          test $p = "-R"; then
 
6469
         prev=$p
 
6470
         continue
 
6471
       else
 
6472
         prev=
 
6473
       fi
 
6474
 
 
6475
       if test "$pre_test_object_deps_done" = no; then
 
6476
         case $p in
 
6477
         -L* | -R*)
 
6478
           # Internal compiler library paths should come after those
 
6479
           # provided the user.  The postdeps already come after the
 
6480
           # user supplied libs so there is no need to process them.
 
6481
           if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
 
6482
             _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
 
6483
           else
 
6484
             _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
 
6485
           fi
 
6486
           ;;
 
6487
         # The "-l" case would never come before the object being
 
6488
         # linked, so don't bother handling this case.
 
6489
         esac
 
6490
       else
 
6491
         if test -z "$_LT_TAGVAR(postdeps, $1)"; then
 
6492
           _LT_TAGVAR(postdeps, $1)="${prev}${p}"
 
6493
         else
 
6494
           _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
 
6495
         fi
 
6496
       fi
 
6497
       ;;
 
6498
 
 
6499
    *.$objext)
 
6500
       # This assumes that the test object file only shows up
 
6501
       # once in the compiler output.
 
6502
       if test "$p" = "conftest.$objext"; then
 
6503
         pre_test_object_deps_done=yes
 
6504
         continue
 
6505
       fi
 
6506
 
 
6507
       if test "$pre_test_object_deps_done" = no; then
 
6508
         if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
 
6509
           _LT_TAGVAR(predep_objects, $1)="$p"
 
6510
         else
 
6511
           _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
 
6512
         fi
 
6513
       else
 
6514
         if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
 
6515
           _LT_TAGVAR(postdep_objects, $1)="$p"
 
6516
         else
 
6517
           _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
 
6518
         fi
 
6519
       fi
 
6520
       ;;
 
6521
 
 
6522
    *) ;; # Ignore the rest.
 
6523
 
 
6524
    esac
 
6525
  done
 
6526
 
 
6527
  # Clean up.
 
6528
  rm -f a.out a.exe
6624
6529
else
6625
 
  as_executable_p='test -f'
6626
 
fi
6627
 
])])# _AS_TEST_PREPARE
6628
 
 
6629
 
# AS_EXECUTABLE_P
6630
 
# ---------------
6631
 
# Check whether a file is executable.
6632
 
m4_ifndef([AS_EXECUTABLE_P],
6633
 
[m4_defun([AS_EXECUTABLE_P],
6634
 
[AS_REQUIRE([_AS_TEST_PREPARE])dnl
6635
 
$as_executable_p $1[]dnl
6636
 
])])# AS_EXECUTABLE_P
6637
 
 
 
6530
  echo "libtool.m4: error: problem compiling $1 test program"
 
6531
fi
 
6532
 
 
6533
$RM -f confest.$objext
 
6534
 
 
6535
# PORTME: override above test on systems where it is broken
 
6536
m4_if([$1], [CXX],
 
6537
[case $host_os in
 
6538
interix[[3-9]]*)
 
6539
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
6540
  # hack all around it, let's just trust "g++" to DTRT.
 
6541
  _LT_TAGVAR(predep_objects,$1)=
 
6542
  _LT_TAGVAR(postdep_objects,$1)=
 
6543
  _LT_TAGVAR(postdeps,$1)=
 
6544
  ;;
 
6545
 
 
6546
linux*)
 
6547
  case `$CC -V 2>&1 | sed 5q` in
 
6548
  *Sun\ C*)
 
6549
    # Sun C++ 5.9
 
6550
 
 
6551
    # The more standards-conforming stlport4 library is
 
6552
    # incompatible with the Cstd library. Avoid specifying
 
6553
    # it if it's in CXXFLAGS. Ignore libCrun as
 
6554
    # -library=stlport4 depends on it.
 
6555
    case " $CXX $CXXFLAGS " in
 
6556
    *" -library=stlport4 "*)
 
6557
      solaris_use_stlport4=yes
 
6558
      ;;
 
6559
    esac
 
6560
 
 
6561
    if test "$solaris_use_stlport4" != yes; then
 
6562
      _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
 
6563
    fi
 
6564
    ;;
 
6565
  esac
 
6566
  ;;
 
6567
 
 
6568
solaris*)
 
6569
  case $cc_basename in
 
6570
  CC*)
 
6571
    # The more standards-conforming stlport4 library is
 
6572
    # incompatible with the Cstd library. Avoid specifying
 
6573
    # it if it's in CXXFLAGS. Ignore libCrun as
 
6574
    # -library=stlport4 depends on it.
 
6575
    case " $CXX $CXXFLAGS " in
 
6576
    *" -library=stlport4 "*)
 
6577
      solaris_use_stlport4=yes
 
6578
      ;;
 
6579
    esac
 
6580
 
 
6581
    # Adding this requires a known-good setup of shared libraries for
 
6582
    # Sun compiler versions before 5.6, else PIC objects from an old
 
6583
    # archive will be linked into the output, leading to subtle bugs.
 
6584
    if test "$solaris_use_stlport4" != yes; then
 
6585
      _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
 
6586
    fi
 
6587
    ;;
 
6588
  esac
 
6589
  ;;
 
6590
esac
 
6591
])
 
6592
 
 
6593
case " $_LT_TAGVAR(postdeps, $1) " in
 
6594
*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
 
6595
esac
 
6596
 _LT_TAGVAR(compiler_lib_search_dirs, $1)=
 
6597
if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
 
6598
 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
 
6599
fi
 
6600
_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
 
6601
    [The directories searched by this compiler when creating a shared library])
 
6602
_LT_TAGDECL([], [predep_objects], [1],
 
6603
    [Dependencies to place before and after the objects being linked to
 
6604
    create a shared library])
 
6605
_LT_TAGDECL([], [postdep_objects], [1])
 
6606
_LT_TAGDECL([], [predeps], [1])
 
6607
_LT_TAGDECL([], [postdeps], [1])
 
6608
_LT_TAGDECL([], [compiler_lib_search_path], [1],
 
6609
    [The library search path used internally by the compiler when linking
 
6610
    a shared library])
 
6611
])# _LT_SYS_HIDDEN_LIBDEPS
 
6612
 
 
6613
 
 
6614
# _LT_PROG_F77
 
6615
# ------------
 
6616
# Since AC_PROG_F77 is broken, in that it returns the empty string
 
6617
# if there is no fortran compiler, we have our own version here.
 
6618
m4_defun([_LT_PROG_F77],
 
6619
[
 
6620
pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
 
6621
AC_PROG_F77
 
6622
if test -z "$F77" || test "X$F77" = "Xno"; then
 
6623
  _lt_disable_F77=yes
 
6624
fi
 
6625
popdef([AC_MSG_ERROR])
 
6626
])# _LT_PROG_F77
 
6627
 
 
6628
dnl aclocal-1.4 backwards compatibility:
 
6629
dnl AC_DEFUN([_LT_PROG_F77], [])
 
6630
 
 
6631
 
 
6632
# _LT_LANG_F77_CONFIG([TAG])
 
6633
# --------------------------
 
6634
# Ensure that the configuration variables for a Fortran 77 compiler are
 
6635
# suitably defined.  These variables are subsequently used by _LT_CONFIG
 
6636
# to write the compiler configuration to `libtool'.
 
6637
m4_defun([_LT_LANG_F77_CONFIG],
 
6638
[AC_REQUIRE([_LT_PROG_F77])dnl
 
6639
AC_LANG_PUSH(Fortran 77)
 
6640
 
 
6641
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
6642
_LT_TAGVAR(allow_undefined_flag, $1)=
 
6643
_LT_TAGVAR(always_export_symbols, $1)=no
 
6644
_LT_TAGVAR(archive_expsym_cmds, $1)=
 
6645
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
 
6646
_LT_TAGVAR(hardcode_direct, $1)=no
 
6647
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
 
6648
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
6649
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 
6650
_LT_TAGVAR(hardcode_libdir_separator, $1)=
 
6651
_LT_TAGVAR(hardcode_minus_L, $1)=no
 
6652
_LT_TAGVAR(hardcode_automatic, $1)=no
 
6653
_LT_TAGVAR(inherit_rpath, $1)=no
 
6654
_LT_TAGVAR(module_cmds, $1)=
 
6655
_LT_TAGVAR(module_expsym_cmds, $1)=
 
6656
_LT_TAGVAR(link_all_deplibs, $1)=unknown
 
6657
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
6658
_LT_TAGVAR(no_undefined_flag, $1)=
 
6659
_LT_TAGVAR(whole_archive_flag_spec, $1)=
 
6660
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 
6661
 
 
6662
# Source file extension for f77 test sources.
 
6663
ac_ext=f
 
6664
 
 
6665
# Object file extension for compiled f77 test sources.
 
6666
objext=o
 
6667
_LT_TAGVAR(objext, $1)=$objext
 
6668
 
 
6669
# No sense in running all these tests if we already determined that
 
6670
# the F77 compiler isn't working.  Some variables (like enable_shared)
 
6671
# are currently assumed to apply to all compilers on this platform,
 
6672
# and will be corrupted by setting them based on a non-working compiler.
 
6673
if test "$_lt_disable_F77" != yes; then
 
6674
  # Code to be used in simple compile tests
 
6675
  lt_simple_compile_test_code="\
 
6676
      subroutine t
 
6677
      return
 
6678
      end
 
6679
"
 
6680
 
 
6681
  # Code to be used in simple link tests
 
6682
  lt_simple_link_test_code="\
 
6683
      program t
 
6684
      end
 
6685
"
 
6686
 
 
6687
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
6688
  _LT_TAG_COMPILER
 
6689
 
 
6690
  # save warnings/boilerplate of simple test code
 
6691
  _LT_COMPILER_BOILERPLATE
 
6692
  _LT_LINKER_BOILERPLATE
 
6693
 
 
6694
  # Allow CC to be a program name with arguments.
 
6695
  lt_save_CC="$CC"
 
6696
  lt_save_GCC=$GCC
 
6697
  CC=${F77-"f77"}
 
6698
  compiler=$CC
 
6699
  _LT_TAGVAR(compiler, $1)=$CC
 
6700
  _LT_CC_BASENAME([$compiler])
 
6701
  GCC=$G77
 
6702
  if test -n "$compiler"; then
 
6703
    AC_MSG_CHECKING([if libtool supports shared libraries])
 
6704
    AC_MSG_RESULT([$can_build_shared])
 
6705
 
 
6706
    AC_MSG_CHECKING([whether to build shared libraries])
 
6707
    test "$can_build_shared" = "no" && enable_shared=no
 
6708
 
 
6709
    # On AIX, shared libraries and static libraries use the same namespace, and
 
6710
    # are all built from PIC.
 
6711
    case $host_os in
 
6712
      aix3*)
 
6713
        test "$enable_shared" = yes && enable_static=no
 
6714
        if test -n "$RANLIB"; then
 
6715
          archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
6716
          postinstall_cmds='$RANLIB $lib'
 
6717
        fi
 
6718
        ;;
 
6719
      aix[[4-9]]*)
 
6720
        if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
6721
          test "$enable_shared" = yes && enable_static=no
 
6722
        fi
 
6723
        ;;
 
6724
    esac
 
6725
    AC_MSG_RESULT([$enable_shared])
 
6726
 
 
6727
    AC_MSG_CHECKING([whether to build static libraries])
 
6728
    # Make sure either enable_shared or enable_static is yes.
 
6729
    test "$enable_shared" = yes || enable_static=yes
 
6730
    AC_MSG_RESULT([$enable_static])
 
6731
 
 
6732
    _LT_TAGVAR(GCC, $1)="$G77"
 
6733
    _LT_TAGVAR(LD, $1)="$LD"
 
6734
 
 
6735
    ## CAVEAT EMPTOR:
 
6736
    ## There is no encapsulation within the following macros, do not change
 
6737
    ## the running order or otherwise move them around unless you know exactly
 
6738
    ## what you are doing...
 
6739
    _LT_COMPILER_PIC($1)
 
6740
    _LT_COMPILER_C_O($1)
 
6741
    _LT_COMPILER_FILE_LOCKS($1)
 
6742
    _LT_LINKER_SHLIBS($1)
 
6743
    _LT_SYS_DYNAMIC_LINKER($1)
 
6744
    _LT_LINKER_HARDCODE_LIBPATH($1)
 
6745
 
 
6746
    _LT_CONFIG($1)
 
6747
  fi # test -n "$compiler"
 
6748
 
 
6749
  GCC=$lt_save_GCC
 
6750
  CC="$lt_save_CC"
 
6751
fi # test "$_lt_disable_F77" != yes
 
6752
 
 
6753
AC_LANG_POP
 
6754
])# _LT_LANG_F77_CONFIG
 
6755
 
 
6756
 
 
6757
# _LT_PROG_FC
 
6758
# -----------
 
6759
# Since AC_PROG_FC is broken, in that it returns the empty string
 
6760
# if there is no fortran compiler, we have our own version here.
 
6761
m4_defun([_LT_PROG_FC],
 
6762
[
 
6763
pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
 
6764
AC_PROG_FC
 
6765
if test -z "$FC" || test "X$FC" = "Xno"; then
 
6766
  _lt_disable_FC=yes
 
6767
fi
 
6768
popdef([AC_MSG_ERROR])
 
6769
])# _LT_PROG_FC
 
6770
 
 
6771
dnl aclocal-1.4 backwards compatibility:
 
6772
dnl AC_DEFUN([_LT_PROG_FC], [])
 
6773
 
 
6774
 
 
6775
# _LT_LANG_FC_CONFIG([TAG])
 
6776
# -------------------------
 
6777
# Ensure that the configuration variables for a Fortran compiler are
 
6778
# suitably defined.  These variables are subsequently used by _LT_CONFIG
 
6779
# to write the compiler configuration to `libtool'.
 
6780
m4_defun([_LT_LANG_FC_CONFIG],
 
6781
[AC_REQUIRE([_LT_PROG_FC])dnl
 
6782
AC_LANG_PUSH(Fortran)
 
6783
 
 
6784
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
6785
_LT_TAGVAR(allow_undefined_flag, $1)=
 
6786
_LT_TAGVAR(always_export_symbols, $1)=no
 
6787
_LT_TAGVAR(archive_expsym_cmds, $1)=
 
6788
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
 
6789
_LT_TAGVAR(hardcode_direct, $1)=no
 
6790
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
 
6791
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
6792
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 
6793
_LT_TAGVAR(hardcode_libdir_separator, $1)=
 
6794
_LT_TAGVAR(hardcode_minus_L, $1)=no
 
6795
_LT_TAGVAR(hardcode_automatic, $1)=no
 
6796
_LT_TAGVAR(inherit_rpath, $1)=no
 
6797
_LT_TAGVAR(module_cmds, $1)=
 
6798
_LT_TAGVAR(module_expsym_cmds, $1)=
 
6799
_LT_TAGVAR(link_all_deplibs, $1)=unknown
 
6800
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
6801
_LT_TAGVAR(no_undefined_flag, $1)=
 
6802
_LT_TAGVAR(whole_archive_flag_spec, $1)=
 
6803
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 
6804
 
 
6805
# Source file extension for fc test sources.
 
6806
ac_ext=${ac_fc_srcext-f}
 
6807
 
 
6808
# Object file extension for compiled fc test sources.
 
6809
objext=o
 
6810
_LT_TAGVAR(objext, $1)=$objext
 
6811
 
 
6812
# No sense in running all these tests if we already determined that
 
6813
# the FC compiler isn't working.  Some variables (like enable_shared)
 
6814
# are currently assumed to apply to all compilers on this platform,
 
6815
# and will be corrupted by setting them based on a non-working compiler.
 
6816
if test "$_lt_disable_FC" != yes; then
 
6817
  # Code to be used in simple compile tests
 
6818
  lt_simple_compile_test_code="\
 
6819
      subroutine t
 
6820
      return
 
6821
      end
 
6822
"
 
6823
 
 
6824
  # Code to be used in simple link tests
 
6825
  lt_simple_link_test_code="\
 
6826
      program t
 
6827
      end
 
6828
"
 
6829
 
 
6830
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
6831
  _LT_TAG_COMPILER
 
6832
 
 
6833
  # save warnings/boilerplate of simple test code
 
6834
  _LT_COMPILER_BOILERPLATE
 
6835
  _LT_LINKER_BOILERPLATE
 
6836
 
 
6837
  # Allow CC to be a program name with arguments.
 
6838
  lt_save_CC="$CC"
 
6839
  lt_save_GCC=$GCC
 
6840
  CC=${FC-"f95"}
 
6841
  compiler=$CC
 
6842
  GCC=$ac_cv_fc_compiler_gnu
 
6843
 
 
6844
  _LT_TAGVAR(compiler, $1)=$CC
 
6845
  _LT_CC_BASENAME([$compiler])
 
6846
 
 
6847
  if test -n "$compiler"; then
 
6848
    AC_MSG_CHECKING([if libtool supports shared libraries])
 
6849
    AC_MSG_RESULT([$can_build_shared])
 
6850
 
 
6851
    AC_MSG_CHECKING([whether to build shared libraries])
 
6852
    test "$can_build_shared" = "no" && enable_shared=no
 
6853
 
 
6854
    # On AIX, shared libraries and static libraries use the same namespace, and
 
6855
    # are all built from PIC.
 
6856
    case $host_os in
 
6857
      aix3*)
 
6858
        test "$enable_shared" = yes && enable_static=no
 
6859
        if test -n "$RANLIB"; then
 
6860
          archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
6861
          postinstall_cmds='$RANLIB $lib'
 
6862
        fi
 
6863
        ;;
 
6864
      aix[[4-9]]*)
 
6865
        if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
6866
          test "$enable_shared" = yes && enable_static=no
 
6867
        fi
 
6868
        ;;
 
6869
    esac
 
6870
    AC_MSG_RESULT([$enable_shared])
 
6871
 
 
6872
    AC_MSG_CHECKING([whether to build static libraries])
 
6873
    # Make sure either enable_shared or enable_static is yes.
 
6874
    test "$enable_shared" = yes || enable_static=yes
 
6875
    AC_MSG_RESULT([$enable_static])
 
6876
 
 
6877
    _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
 
6878
    _LT_TAGVAR(LD, $1)="$LD"
 
6879
 
 
6880
    ## CAVEAT EMPTOR:
 
6881
    ## There is no encapsulation within the following macros, do not change
 
6882
    ## the running order or otherwise move them around unless you know exactly
 
6883
    ## what you are doing...
 
6884
    _LT_SYS_HIDDEN_LIBDEPS($1)
 
6885
    _LT_COMPILER_PIC($1)
 
6886
    _LT_COMPILER_C_O($1)
 
6887
    _LT_COMPILER_FILE_LOCKS($1)
 
6888
    _LT_LINKER_SHLIBS($1)
 
6889
    _LT_SYS_DYNAMIC_LINKER($1)
 
6890
    _LT_LINKER_HARDCODE_LIBPATH($1)
 
6891
 
 
6892
    _LT_CONFIG($1)
 
6893
  fi # test -n "$compiler"
 
6894
 
 
6895
  GCC=$lt_save_GCC
 
6896
  CC="$lt_save_CC"
 
6897
fi # test "$_lt_disable_FC" != yes
 
6898
 
 
6899
AC_LANG_POP
 
6900
])# _LT_LANG_FC_CONFIG
 
6901
 
 
6902
 
 
6903
# _LT_LANG_GCJ_CONFIG([TAG])
 
6904
# --------------------------
 
6905
# Ensure that the configuration variables for the GNU Java Compiler compiler
 
6906
# are suitably defined.  These variables are subsequently used by _LT_CONFIG
 
6907
# to write the compiler configuration to `libtool'.
 
6908
m4_defun([_LT_LANG_GCJ_CONFIG],
 
6909
[AC_REQUIRE([LT_PROG_GCJ])dnl
 
6910
AC_LANG_SAVE
 
6911
 
 
6912
# Source file extension for Java test sources.
 
6913
ac_ext=java
 
6914
 
 
6915
# Object file extension for compiled Java test sources.
 
6916
objext=o
 
6917
_LT_TAGVAR(objext, $1)=$objext
 
6918
 
 
6919
# Code to be used in simple compile tests
 
6920
lt_simple_compile_test_code="class foo {}"
 
6921
 
 
6922
# Code to be used in simple link tests
 
6923
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
 
6924
 
 
6925
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
6926
_LT_TAG_COMPILER
 
6927
 
 
6928
# save warnings/boilerplate of simple test code
 
6929
_LT_COMPILER_BOILERPLATE
 
6930
_LT_LINKER_BOILERPLATE
 
6931
 
 
6932
# Allow CC to be a program name with arguments.
 
6933
lt_save_CC="$CC"
 
6934
lt_save_GCC=$GCC
 
6935
GCC=yes
 
6936
CC=${GCJ-"gcj"}
 
6937
compiler=$CC
 
6938
_LT_TAGVAR(compiler, $1)=$CC
 
6939
_LT_TAGVAR(LD, $1)="$LD"
 
6940
_LT_CC_BASENAME([$compiler])
 
6941
 
 
6942
# GCJ did not exist at the time GCC didn't implicitly link libc in.
 
6943
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
6944
 
 
6945
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
6946
 
 
6947
if test -n "$compiler"; then
 
6948
  _LT_COMPILER_NO_RTTI($1)
 
6949
  _LT_COMPILER_PIC($1)
 
6950
  _LT_COMPILER_C_O($1)
 
6951
  _LT_COMPILER_FILE_LOCKS($1)
 
6952
  _LT_LINKER_SHLIBS($1)
 
6953
  _LT_LINKER_HARDCODE_LIBPATH($1)
 
6954
 
 
6955
  _LT_CONFIG($1)
 
6956
fi
 
6957
 
 
6958
AC_LANG_RESTORE
 
6959
 
 
6960
GCC=$lt_save_GCC
 
6961
CC="$lt_save_CC"
 
6962
])# _LT_LANG_GCJ_CONFIG
 
6963
 
 
6964
 
 
6965
# _LT_LANG_RC_CONFIG([TAG])
 
6966
# -------------------------
 
6967
# Ensure that the configuration variables for the Windows resource compiler
 
6968
# are suitably defined.  These variables are subsequently used by _LT_CONFIG
 
6969
# to write the compiler configuration to `libtool'.
 
6970
m4_defun([_LT_LANG_RC_CONFIG],
 
6971
[AC_REQUIRE([LT_PROG_RC])dnl
 
6972
AC_LANG_SAVE
 
6973
 
 
6974
# Source file extension for RC test sources.
 
6975
ac_ext=rc
 
6976
 
 
6977
# Object file extension for compiled RC test sources.
 
6978
objext=o
 
6979
_LT_TAGVAR(objext, $1)=$objext
 
6980
 
 
6981
# Code to be used in simple compile tests
 
6982
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
 
6983
 
 
6984
# Code to be used in simple link tests
 
6985
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
6986
 
 
6987
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
6988
_LT_TAG_COMPILER
 
6989
 
 
6990
# save warnings/boilerplate of simple test code
 
6991
_LT_COMPILER_BOILERPLATE
 
6992
_LT_LINKER_BOILERPLATE
 
6993
 
 
6994
# Allow CC to be a program name with arguments.
 
6995
lt_save_CC="$CC"
 
6996
lt_save_GCC=$GCC
 
6997
GCC=
 
6998
CC=${RC-"windres"}
 
6999
compiler=$CC
 
7000
_LT_TAGVAR(compiler, $1)=$CC
 
7001
_LT_CC_BASENAME([$compiler])
 
7002
_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
 
7003
 
 
7004
if test -n "$compiler"; then
 
7005
  :
 
7006
  _LT_CONFIG($1)
 
7007
fi
 
7008
 
 
7009
GCC=$lt_save_GCC
 
7010
AC_LANG_RESTORE
 
7011
CC="$lt_save_CC"
 
7012
])# _LT_LANG_RC_CONFIG
 
7013
 
 
7014
 
 
7015
# LT_PROG_GCJ
 
7016
# -----------
 
7017
AC_DEFUN([LT_PROG_GCJ],
 
7018
[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
 
7019
  [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
 
7020
    [AC_CHECK_TOOL(GCJ, gcj,)
 
7021
      test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
 
7022
      AC_SUBST(GCJFLAGS)])])[]dnl
 
7023
])
 
7024
 
 
7025
# Old name:
 
7026
AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
 
7027
dnl aclocal-1.4 backwards compatibility:
 
7028
dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
 
7029
 
 
7030
 
 
7031
# LT_PROG_RC
 
7032
# ----------
 
7033
AC_DEFUN([LT_PROG_RC],
 
7034
[AC_CHECK_TOOL(RC, windres,)
 
7035
])
 
7036
 
 
7037
# Old name:
 
7038
AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
 
7039
dnl aclocal-1.4 backwards compatibility:
 
7040
dnl AC_DEFUN([LT_AC_PROG_RC], [])
 
7041
 
 
7042
 
 
7043
# _LT_DECL_EGREP
 
7044
# --------------
 
7045
# If we don't have a new enough Autoconf to choose the best grep
 
7046
# available, choose the one first in the user's PATH.
 
7047
m4_defun([_LT_DECL_EGREP],
 
7048
[AC_REQUIRE([AC_PROG_EGREP])dnl
 
7049
AC_REQUIRE([AC_PROG_FGREP])dnl
 
7050
test -z "$GREP" && GREP=grep
 
7051
_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
 
7052
_LT_DECL([], [EGREP], [1], [An ERE matcher])
 
7053
_LT_DECL([], [FGREP], [1], [A literal string matcher])
 
7054
dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
 
7055
AC_SUBST([GREP])
 
7056
])
 
7057
 
 
7058
 
 
7059
# _LT_DECL_OBJDUMP
 
7060
# --------------
 
7061
# If we don't have a new enough Autoconf to choose the best objdump
 
7062
# available, choose the one first in the user's PATH.
 
7063
m4_defun([_LT_DECL_OBJDUMP],
 
7064
[AC_CHECK_TOOL(OBJDUMP, objdump, false)
 
7065
test -z "$OBJDUMP" && OBJDUMP=objdump
 
7066
_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
 
7067
AC_SUBST([OBJDUMP])
 
7068
])
 
7069
 
 
7070
 
 
7071
# _LT_DECL_SED
 
7072
# ------------
 
7073
# Check for a fully-functional sed program, that truncates
 
7074
# as few characters as possible.  Prefer GNU sed if found.
 
7075
m4_defun([_LT_DECL_SED],
 
7076
[AC_PROG_SED
 
7077
test -z "$SED" && SED=sed
 
7078
Xsed="$SED -e 1s/^X//"
 
7079
_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
 
7080
_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
 
7081
    [Sed that helps us avoid accidentally triggering echo(1) options like -n])
 
7082
])# _LT_DECL_SED
 
7083
 
 
7084
m4_ifndef([AC_PROG_SED], [
6638
7085
# NOTE: This macro has been submitted for inclusion into   #
6639
7086
#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
6640
7087
#  a released version of Autoconf we should remove this    #
6641
7088
#  macro and use it instead.                               #
6642
 
# LT_AC_PROG_SED
6643
 
# --------------
6644
 
# Check for a fully-functional sed program, that truncates
6645
 
# as few characters as possible.  Prefer GNU sed if found.
6646
 
AC_DEFUN([LT_AC_PROG_SED],
 
7089
 
 
7090
m4_defun([AC_PROG_SED],
6647
7091
[AC_MSG_CHECKING([for a sed that does not truncate output])
6648
7092
AC_CACHE_VAL(lt_cv_path_SED,
6649
7093
[# Loop through the user's path and test for sed and gsed.
6655
7099
  test -z "$as_dir" && as_dir=.
6656
7100
  for lt_ac_prog in sed gsed; do
6657
7101
    for ac_exec_ext in '' $ac_executable_extensions; do
6658
 
      if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
 
7102
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6659
7103
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6660
7104
      fi
6661
7105
    done
6696
7140
SED=$lt_cv_path_SED
6697
7141
AC_SUBST([SED])
6698
7142
AC_MSG_RESULT([$SED])
6699
 
])
 
7143
])#AC_PROG_SED
 
7144
])#m4_ifndef
 
7145
 
 
7146
# Old name:
 
7147
AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
 
7148
dnl aclocal-1.4 backwards compatibility:
 
7149
dnl AC_DEFUN([LT_AC_PROG_SED], [])
 
7150
 
 
7151
 
 
7152
# _LT_CHECK_SHELL_FEATURES
 
7153
# ------------------------
 
7154
# Find out whether the shell is Bourne or XSI compatible,
 
7155
# or has some other useful features.
 
7156
m4_defun([_LT_CHECK_SHELL_FEATURES],
 
7157
[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
 
7158
# Try some XSI features
 
7159
xsi_shell=no
 
7160
( _lt_dummy="a/b/c"
 
7161
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
 
7162
      = c,a/b,, \
 
7163
    && eval 'test $(( 1 + 1 )) -eq 2 \
 
7164
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
 
7165
  && xsi_shell=yes
 
7166
AC_MSG_RESULT([$xsi_shell])
 
7167
_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
 
7168
 
 
7169
AC_MSG_CHECKING([whether the shell understands "+="])
 
7170
lt_shell_append=no
 
7171
( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
 
7172
    >/dev/null 2>&1 \
 
7173
  && lt_shell_append=yes
 
7174
AC_MSG_RESULT([$lt_shell_append])
 
7175
_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
 
7176
 
 
7177
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
7178
  lt_unset=unset
 
7179
else
 
7180
  lt_unset=false
 
7181
fi
 
7182
_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
 
7183
 
 
7184
# test EBCDIC or ASCII
 
7185
case `echo X|tr X '\101'` in
 
7186
 A) # ASCII based system
 
7187
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
 
7188
  lt_SP2NL='tr \040 \012'
 
7189
  lt_NL2SP='tr \015\012 \040\040'
 
7190
  ;;
 
7191
 *) # EBCDIC based system
 
7192
  lt_SP2NL='tr \100 \n'
 
7193
  lt_NL2SP='tr \r\n \100\100'
 
7194
  ;;
 
7195
esac
 
7196
_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
 
7197
_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
 
7198
])# _LT_CHECK_SHELL_FEATURES
 
7199
 
 
7200
 
 
7201
# _LT_PROG_XSI_SHELLFNS
 
7202
# ---------------------
 
7203
# Bourne and XSI compatible variants of some useful shell functions.
 
7204
m4_defun([_LT_PROG_XSI_SHELLFNS],
 
7205
[case $xsi_shell in
 
7206
  yes)
 
7207
    cat << \_LT_EOF >> "$cfgfile"
 
7208
 
 
7209
# func_dirname file append nondir_replacement
 
7210
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
 
7211
# otherwise set result to NONDIR_REPLACEMENT.
 
7212
func_dirname ()
 
7213
{
 
7214
  case ${1} in
 
7215
    */*) func_dirname_result="${1%/*}${2}" ;;
 
7216
    *  ) func_dirname_result="${3}" ;;
 
7217
  esac
 
7218
}
 
7219
 
 
7220
# func_basename file
 
7221
func_basename ()
 
7222
{
 
7223
  func_basename_result="${1##*/}"
 
7224
}
 
7225
 
 
7226
# func_dirname_and_basename file append nondir_replacement
 
7227
# perform func_basename and func_dirname in a single function
 
7228
# call:
 
7229
#   dirname:  Compute the dirname of FILE.  If nonempty,
 
7230
#             add APPEND to the result, otherwise set result
 
7231
#             to NONDIR_REPLACEMENT.
 
7232
#             value returned in "$func_dirname_result"
 
7233
#   basename: Compute filename of FILE.
 
7234
#             value retuned in "$func_basename_result"
 
7235
# Implementation must be kept synchronized with func_dirname
 
7236
# and func_basename. For efficiency, we do not delegate to
 
7237
# those functions but instead duplicate the functionality here.
 
7238
func_dirname_and_basename ()
 
7239
{
 
7240
  case ${1} in
 
7241
    */*) func_dirname_result="${1%/*}${2}" ;;
 
7242
    *  ) func_dirname_result="${3}" ;;
 
7243
  esac
 
7244
  func_basename_result="${1##*/}"
 
7245
}
 
7246
 
 
7247
# func_stripname prefix suffix name
 
7248
# strip PREFIX and SUFFIX off of NAME.
 
7249
# PREFIX and SUFFIX must not contain globbing or regex special
 
7250
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
7251
# dot (in which case that matches only a dot).
 
7252
func_stripname ()
 
7253
{
 
7254
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
 
7255
  # positional parameters, so assign one to ordinary parameter first.
 
7256
  func_stripname_result=${3}
 
7257
  func_stripname_result=${func_stripname_result#"${1}"}
 
7258
  func_stripname_result=${func_stripname_result%"${2}"}
 
7259
}
 
7260
 
 
7261
# func_opt_split
 
7262
func_opt_split ()
 
7263
{
 
7264
  func_opt_split_opt=${1%%=*}
 
7265
  func_opt_split_arg=${1#*=}
 
7266
}
 
7267
 
 
7268
# func_lo2o object
 
7269
func_lo2o ()
 
7270
{
 
7271
  case ${1} in
 
7272
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
 
7273
    *)    func_lo2o_result=${1} ;;
 
7274
  esac
 
7275
}
 
7276
 
 
7277
# func_xform libobj-or-source
 
7278
func_xform ()
 
7279
{
 
7280
  func_xform_result=${1%.*}.lo
 
7281
}
 
7282
 
 
7283
# func_arith arithmetic-term...
 
7284
func_arith ()
 
7285
{
 
7286
  func_arith_result=$(( $[*] ))
 
7287
}
 
7288
 
 
7289
# func_len string
 
7290
# STRING may not start with a hyphen.
 
7291
func_len ()
 
7292
{
 
7293
  func_len_result=${#1}
 
7294
}
 
7295
 
 
7296
_LT_EOF
 
7297
    ;;
 
7298
  *) # Bourne compatible functions.
 
7299
    cat << \_LT_EOF >> "$cfgfile"
 
7300
 
 
7301
# func_dirname file append nondir_replacement
 
7302
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
 
7303
# otherwise set result to NONDIR_REPLACEMENT.
 
7304
func_dirname ()
 
7305
{
 
7306
  # Extract subdirectory from the argument.
 
7307
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
 
7308
  if test "X$func_dirname_result" = "X${1}"; then
 
7309
    func_dirname_result="${3}"
 
7310
  else
 
7311
    func_dirname_result="$func_dirname_result${2}"
 
7312
  fi
 
7313
}
 
7314
 
 
7315
# func_basename file
 
7316
func_basename ()
 
7317
{
 
7318
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
 
7319
}
 
7320
 
 
7321
dnl func_dirname_and_basename
 
7322
dnl A portable version of this function is already defined in general.m4sh
 
7323
dnl so there is no need for it here.
 
7324
 
 
7325
# func_stripname prefix suffix name
 
7326
# strip PREFIX and SUFFIX off of NAME.
 
7327
# PREFIX and SUFFIX must not contain globbing or regex special
 
7328
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
7329
# dot (in which case that matches only a dot).
 
7330
# func_strip_suffix prefix name
 
7331
func_stripname ()
 
7332
{
 
7333
  case ${2} in
 
7334
    .*) func_stripname_result=`$ECHO "X${3}" \
 
7335
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
 
7336
    *)  func_stripname_result=`$ECHO "X${3}" \
 
7337
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
 
7338
  esac
 
7339
}
 
7340
 
 
7341
# sed scripts:
 
7342
my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
 
7343
my_sed_long_arg='1s/^-[[^=]]*=//'
 
7344
 
 
7345
# func_opt_split
 
7346
func_opt_split ()
 
7347
{
 
7348
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
 
7349
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
 
7350
}
 
7351
 
 
7352
# func_lo2o object
 
7353
func_lo2o ()
 
7354
{
 
7355
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
 
7356
}
 
7357
 
 
7358
# func_xform libobj-or-source
 
7359
func_xform ()
 
7360
{
 
7361
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
 
7362
}
 
7363
 
 
7364
# func_arith arithmetic-term...
 
7365
func_arith ()
 
7366
{
 
7367
  func_arith_result=`expr "$[@]"`
 
7368
}
 
7369
 
 
7370
# func_len string
 
7371
# STRING may not start with a hyphen.
 
7372
func_len ()
 
7373
{
 
7374
  func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
 
7375
}
 
7376
 
 
7377
_LT_EOF
 
7378
esac
 
7379
 
 
7380
case $lt_shell_append in
 
7381
  yes)
 
7382
    cat << \_LT_EOF >> "$cfgfile"
 
7383
 
 
7384
# func_append var value
 
7385
# Append VALUE to the end of shell variable VAR.
 
7386
func_append ()
 
7387
{
 
7388
  eval "$[1]+=\$[2]"
 
7389
}
 
7390
_LT_EOF
 
7391
    ;;
 
7392
  *)
 
7393
    cat << \_LT_EOF >> "$cfgfile"
 
7394
 
 
7395
# func_append var value
 
7396
# Append VALUE to the end of shell variable VAR.
 
7397
func_append ()
 
7398
{
 
7399
  eval "$[1]=\$$[1]\$[2]"
 
7400
}
 
7401
 
 
7402
_LT_EOF
 
7403
    ;;
 
7404
  esac
 
7405
])
 
7406
 
 
7407
# Helper functions for option handling.                    -*- Autoconf -*-
 
7408
#
 
7409
#   Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
 
7410
#   Written by Gary V. Vaughan, 2004
 
7411
#
 
7412
# This file is free software; the Free Software Foundation gives
 
7413
# unlimited permission to copy and/or distribute it, with or without
 
7414
# modifications, as long as this notice is preserved.
 
7415
 
 
7416
# serial 6 ltoptions.m4
 
7417
 
 
7418
# This is to help aclocal find these macros, as it can't see m4_define.
 
7419
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
 
7420
 
 
7421
 
 
7422
# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
 
7423
# ------------------------------------------
 
7424
m4_define([_LT_MANGLE_OPTION],
 
7425
[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
 
7426
 
 
7427
 
 
7428
# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
 
7429
# ---------------------------------------
 
7430
# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
 
7431
# matching handler defined, dispatch to it.  Other OPTION-NAMEs are
 
7432
# saved as a flag.
 
7433
m4_define([_LT_SET_OPTION],
 
7434
[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
 
7435
m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
 
7436
        _LT_MANGLE_DEFUN([$1], [$2]),
 
7437
    [m4_warning([Unknown $1 option `$2'])])[]dnl
 
7438
])
 
7439
 
 
7440
 
 
7441
# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
 
7442
# ------------------------------------------------------------
 
7443
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
 
7444
m4_define([_LT_IF_OPTION],
 
7445
[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
 
7446
 
 
7447
 
 
7448
# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
 
7449
# -------------------------------------------------------
 
7450
# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
 
7451
# are set.
 
7452
m4_define([_LT_UNLESS_OPTIONS],
 
7453
[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
 
7454
            [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
 
7455
                      [m4_define([$0_found])])])[]dnl
 
7456
m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
 
7457
])[]dnl
 
7458
])
 
7459
 
 
7460
 
 
7461
# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
 
7462
# ----------------------------------------
 
7463
# OPTION-LIST is a space-separated list of Libtool options associated
 
7464
# with MACRO-NAME.  If any OPTION has a matching handler declared with
 
7465
# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
 
7466
# the unknown option and exit.
 
7467
m4_defun([_LT_SET_OPTIONS],
 
7468
[# Set options
 
7469
m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
 
7470
    [_LT_SET_OPTION([$1], _LT_Option)])
 
7471
 
 
7472
m4_if([$1],[LT_INIT],[
 
7473
  dnl
 
7474
  dnl Simply set some default values (i.e off) if boolean options were not
 
7475
  dnl specified:
 
7476
  _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
 
7477
  ])
 
7478
  _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
 
7479
  ])
 
7480
  dnl
 
7481
  dnl If no reference was made to various pairs of opposing options, then
 
7482
  dnl we run the default mode handler for the pair.  For example, if neither
 
7483
  dnl `shared' nor `disable-shared' was passed, we enable building of shared
 
7484
  dnl archives by default:
 
7485
  _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
 
7486
  _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
 
7487
  _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
 
7488
  _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
 
7489
                   [_LT_ENABLE_FAST_INSTALL])
 
7490
  ])
 
7491
])# _LT_SET_OPTIONS
 
7492
 
 
7493
 
 
7494
 
 
7495
# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
 
7496
# -----------------------------------------
 
7497
m4_define([_LT_MANGLE_DEFUN],
 
7498
[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
 
7499
 
 
7500
 
 
7501
# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
 
7502
# -----------------------------------------------
 
7503
m4_define([LT_OPTION_DEFINE],
 
7504
[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
 
7505
])# LT_OPTION_DEFINE
 
7506
 
 
7507
 
 
7508
# dlopen
 
7509
# ------
 
7510
LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
 
7511
])
 
7512
 
 
7513
AU_DEFUN([AC_LIBTOOL_DLOPEN],
 
7514
[_LT_SET_OPTION([LT_INIT], [dlopen])
 
7515
AC_DIAGNOSE([obsolete],
 
7516
[$0: Remove this warning and the call to _LT_SET_OPTION when you
 
7517
put the `dlopen' option into LT_INIT's first parameter.])
 
7518
])
 
7519
 
 
7520
dnl aclocal-1.4 backwards compatibility:
 
7521
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
 
7522
 
 
7523
 
 
7524
# win32-dll
 
7525
# ---------
 
7526
# Declare package support for building win32 dll's.
 
7527
LT_OPTION_DEFINE([LT_INIT], [win32-dll],
 
7528
[enable_win32_dll=yes
 
7529
 
 
7530
case $host in
 
7531
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
 
7532
  AC_CHECK_TOOL(AS, as, false)
 
7533
  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
 
7534
  AC_CHECK_TOOL(OBJDUMP, objdump, false)
 
7535
  ;;
 
7536
esac
 
7537
 
 
7538
test -z "$AS" && AS=as
 
7539
_LT_DECL([], [AS],      [0], [Assembler program])dnl
 
7540
 
 
7541
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
7542
_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
 
7543
 
 
7544
test -z "$OBJDUMP" && OBJDUMP=objdump
 
7545
_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
 
7546
])# win32-dll
 
7547
 
 
7548
AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
 
7549
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
7550
_LT_SET_OPTION([LT_INIT], [win32-dll])
 
7551
AC_DIAGNOSE([obsolete],
 
7552
[$0: Remove this warning and the call to _LT_SET_OPTION when you
 
7553
put the `win32-dll' option into LT_INIT's first parameter.])
 
7554
])
 
7555
 
 
7556
dnl aclocal-1.4 backwards compatibility:
 
7557
dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
 
7558
 
 
7559
 
 
7560
# _LT_ENABLE_SHARED([DEFAULT])
 
7561
# ----------------------------
 
7562
# implement the --enable-shared flag, and supports the `shared' and
 
7563
# `disable-shared' LT_INIT options.
 
7564
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
 
7565
m4_define([_LT_ENABLE_SHARED],
 
7566
[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
 
7567
AC_ARG_ENABLE([shared],
 
7568
    [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
 
7569
        [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
 
7570
    [p=${PACKAGE-default}
 
7571
    case $enableval in
 
7572
    yes) enable_shared=yes ;;
 
7573
    no) enable_shared=no ;;
 
7574
    *)
 
7575
      enable_shared=no
 
7576
      # Look at the argument we got.  We use all the common list separators.
 
7577
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
7578
      for pkg in $enableval; do
 
7579
        IFS="$lt_save_ifs"
 
7580
        if test "X$pkg" = "X$p"; then
 
7581
          enable_shared=yes
 
7582
        fi
 
7583
      done
 
7584
      IFS="$lt_save_ifs"
 
7585
      ;;
 
7586
    esac],
 
7587
    [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
 
7588
 
 
7589
    _LT_DECL([build_libtool_libs], [enable_shared], [0],
 
7590
        [Whether or not to build shared libraries])
 
7591
])# _LT_ENABLE_SHARED
 
7592
 
 
7593
LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
 
7594
LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
 
7595
 
 
7596
# Old names:
 
7597
AC_DEFUN([AC_ENABLE_SHARED],
 
7598
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
 
7599
])
 
7600
 
 
7601
AC_DEFUN([AC_DISABLE_SHARED],
 
7602
[_LT_SET_OPTION([LT_INIT], [disable-shared])
 
7603
])
 
7604
 
 
7605
AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
 
7606
AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
 
7607
 
 
7608
dnl aclocal-1.4 backwards compatibility:
 
7609
dnl AC_DEFUN([AM_ENABLE_SHARED], [])
 
7610
dnl AC_DEFUN([AM_DISABLE_SHARED], [])
 
7611
 
 
7612
 
 
7613
 
 
7614
# _LT_ENABLE_STATIC([DEFAULT])
 
7615
# ----------------------------
 
7616
# implement the --enable-static flag, and support the `static' and
 
7617
# `disable-static' LT_INIT options.
 
7618
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
 
7619
m4_define([_LT_ENABLE_STATIC],
 
7620
[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
 
7621
AC_ARG_ENABLE([static],
 
7622
    [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
 
7623
        [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
 
7624
    [p=${PACKAGE-default}
 
7625
    case $enableval in
 
7626
    yes) enable_static=yes ;;
 
7627
    no) enable_static=no ;;
 
7628
    *)
 
7629
     enable_static=no
 
7630
      # Look at the argument we got.  We use all the common list separators.
 
7631
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
7632
      for pkg in $enableval; do
 
7633
        IFS="$lt_save_ifs"
 
7634
        if test "X$pkg" = "X$p"; then
 
7635
          enable_static=yes
 
7636
        fi
 
7637
      done
 
7638
      IFS="$lt_save_ifs"
 
7639
      ;;
 
7640
    esac],
 
7641
    [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
 
7642
 
 
7643
    _LT_DECL([build_old_libs], [enable_static], [0],
 
7644
        [Whether or not to build static libraries])
 
7645
])# _LT_ENABLE_STATIC
 
7646
 
 
7647
LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
 
7648
LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
 
7649
 
 
7650
# Old names:
 
7651
AC_DEFUN([AC_ENABLE_STATIC],
 
7652
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
 
7653
])
 
7654
 
 
7655
AC_DEFUN([AC_DISABLE_STATIC],
 
7656
[_LT_SET_OPTION([LT_INIT], [disable-static])
 
7657
])
 
7658
 
 
7659
AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
 
7660
AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
 
7661
 
 
7662
dnl aclocal-1.4 backwards compatibility:
 
7663
dnl AC_DEFUN([AM_ENABLE_STATIC], [])
 
7664
dnl AC_DEFUN([AM_DISABLE_STATIC], [])
 
7665
 
 
7666
 
 
7667
 
 
7668
# _LT_ENABLE_FAST_INSTALL([DEFAULT])
 
7669
# ----------------------------------
 
7670
# implement the --enable-fast-install flag, and support the `fast-install'
 
7671
# and `disable-fast-install' LT_INIT options.
 
7672
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
 
7673
m4_define([_LT_ENABLE_FAST_INSTALL],
 
7674
[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
 
7675
AC_ARG_ENABLE([fast-install],
 
7676
    [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
 
7677
    [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
 
7678
    [p=${PACKAGE-default}
 
7679
    case $enableval in
 
7680
    yes) enable_fast_install=yes ;;
 
7681
    no) enable_fast_install=no ;;
 
7682
    *)
 
7683
      enable_fast_install=no
 
7684
      # Look at the argument we got.  We use all the common list separators.
 
7685
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
7686
      for pkg in $enableval; do
 
7687
        IFS="$lt_save_ifs"
 
7688
        if test "X$pkg" = "X$p"; then
 
7689
          enable_fast_install=yes
 
7690
        fi
 
7691
      done
 
7692
      IFS="$lt_save_ifs"
 
7693
      ;;
 
7694
    esac],
 
7695
    [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
 
7696
 
 
7697
_LT_DECL([fast_install], [enable_fast_install], [0],
 
7698
         [Whether or not to optimize for fast installation])dnl
 
7699
])# _LT_ENABLE_FAST_INSTALL
 
7700
 
 
7701
LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
 
7702
LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
 
7703
 
 
7704
# Old names:
 
7705
AU_DEFUN([AC_ENABLE_FAST_INSTALL],
 
7706
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
 
7707
AC_DIAGNOSE([obsolete],
 
7708
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
 
7709
the `fast-install' option into LT_INIT's first parameter.])
 
7710
])
 
7711
 
 
7712
AU_DEFUN([AC_DISABLE_FAST_INSTALL],
 
7713
[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
 
7714
AC_DIAGNOSE([obsolete],
 
7715
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
 
7716
the `disable-fast-install' option into LT_INIT's first parameter.])
 
7717
])
 
7718
 
 
7719
dnl aclocal-1.4 backwards compatibility:
 
7720
dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
 
7721
dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
 
7722
 
 
7723
 
 
7724
# _LT_WITH_PIC([MODE])
 
7725
# --------------------
 
7726
# implement the --with-pic flag, and support the `pic-only' and `no-pic'
 
7727
# LT_INIT options.
 
7728
# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
 
7729
m4_define([_LT_WITH_PIC],
 
7730
[AC_ARG_WITH([pic],
 
7731
    [AS_HELP_STRING([--with-pic],
 
7732
        [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
 
7733
    [pic_mode="$withval"],
 
7734
    [pic_mode=default])
 
7735
 
 
7736
test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
 
7737
 
 
7738
_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
 
7739
])# _LT_WITH_PIC
 
7740
 
 
7741
LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
 
7742
LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
 
7743
 
 
7744
# Old name:
 
7745
AU_DEFUN([AC_LIBTOOL_PICMODE],
 
7746
[_LT_SET_OPTION([LT_INIT], [pic-only])
 
7747
AC_DIAGNOSE([obsolete],
 
7748
[$0: Remove this warning and the call to _LT_SET_OPTION when you
 
7749
put the `pic-only' option into LT_INIT's first parameter.])
 
7750
])
 
7751
 
 
7752
dnl aclocal-1.4 backwards compatibility:
 
7753
dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
 
7754
 
 
7755
 
 
7756
m4_define([_LTDL_MODE], [])
 
7757
LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
 
7758
                 [m4_define([_LTDL_MODE], [nonrecursive])])
 
7759
LT_OPTION_DEFINE([LTDL_INIT], [recursive],
 
7760
                 [m4_define([_LTDL_MODE], [recursive])])
 
7761
LT_OPTION_DEFINE([LTDL_INIT], [subproject],
 
7762
                 [m4_define([_LTDL_MODE], [subproject])])
 
7763
 
 
7764
m4_define([_LTDL_TYPE], [])
 
7765
LT_OPTION_DEFINE([LTDL_INIT], [installable],
 
7766
                 [m4_define([_LTDL_TYPE], [installable])])
 
7767
LT_OPTION_DEFINE([LTDL_INIT], [convenience],
 
7768
                 [m4_define([_LTDL_TYPE], [convenience])])
 
7769
 
 
7770
# ltsugar.m4 -- libtool m4 base layer.                         -*-Autoconf-*-
 
7771
#
 
7772
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
 
7773
# Written by Gary V. Vaughan, 2004
 
7774
#
 
7775
# This file is free software; the Free Software Foundation gives
 
7776
# unlimited permission to copy and/or distribute it, with or without
 
7777
# modifications, as long as this notice is preserved.
 
7778
 
 
7779
# serial 6 ltsugar.m4
 
7780
 
 
7781
# This is to help aclocal find these macros, as it can't see m4_define.
 
7782
AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
 
7783
 
 
7784
 
 
7785
# lt_join(SEP, ARG1, [ARG2...])
 
7786
# -----------------------------
 
7787
# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
 
7788
# associated separator.
 
7789
# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
 
7790
# versions in m4sugar had bugs.
 
7791
m4_define([lt_join],
 
7792
[m4_if([$#], [1], [],
 
7793
       [$#], [2], [[$2]],
 
7794
       [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
 
7795
m4_define([_lt_join],
 
7796
[m4_if([$#$2], [2], [],
 
7797
       [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
 
7798
 
 
7799
 
 
7800
# lt_car(LIST)
 
7801
# lt_cdr(LIST)
 
7802
# ------------
 
7803
# Manipulate m4 lists.
 
7804
# These macros are necessary as long as will still need to support
 
7805
# Autoconf-2.59 which quotes differently.
 
7806
m4_define([lt_car], [[$1]])
 
7807
m4_define([lt_cdr],
 
7808
[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
 
7809
       [$#], 1, [],
 
7810
       [m4_dquote(m4_shift($@))])])
 
7811
m4_define([lt_unquote], $1)
 
7812
 
 
7813
 
 
7814
# lt_append(MACRO-NAME, STRING, [SEPARATOR])
 
7815
# ------------------------------------------
 
7816
# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
 
7817
# Note that neither SEPARATOR nor STRING are expanded; they are appended
 
7818
# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
 
7819
# No SEPARATOR is output if MACRO-NAME was previously undefined (different
 
7820
# than defined and empty).
 
7821
#
 
7822
# This macro is needed until we can rely on Autoconf 2.62, since earlier
 
7823
# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
 
7824
m4_define([lt_append],
 
7825
[m4_define([$1],
 
7826
           m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
 
7827
 
 
7828
 
 
7829
 
 
7830
# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
 
7831
# ----------------------------------------------------------
 
7832
# Produce a SEP delimited list of all paired combinations of elements of
 
7833
# PREFIX-LIST with SUFFIX1 through SUFFIXn.  Each element of the list
 
7834
# has the form PREFIXmINFIXSUFFIXn.
 
7835
# Needed until we can rely on m4_combine added in Autoconf 2.62.
 
7836
m4_define([lt_combine],
 
7837
[m4_if(m4_eval([$# > 3]), [1],
 
7838
       [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
 
7839
[[m4_foreach([_Lt_prefix], [$2],
 
7840
             [m4_foreach([_Lt_suffix],
 
7841
                ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
 
7842
        [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
 
7843
 
 
7844
 
 
7845
# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
 
7846
# -----------------------------------------------------------------------
 
7847
# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
 
7848
# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
 
7849
m4_define([lt_if_append_uniq],
 
7850
[m4_ifdef([$1],
 
7851
          [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
 
7852
                 [lt_append([$1], [$2], [$3])$4],
 
7853
                 [$5])],
 
7854
          [lt_append([$1], [$2], [$3])$4])])
 
7855
 
 
7856
 
 
7857
# lt_dict_add(DICT, KEY, VALUE)
 
7858
# -----------------------------
 
7859
m4_define([lt_dict_add],
 
7860
[m4_define([$1($2)], [$3])])
 
7861
 
 
7862
 
 
7863
# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
 
7864
# --------------------------------------------
 
7865
m4_define([lt_dict_add_subkey],
 
7866
[m4_define([$1($2:$3)], [$4])])
 
7867
 
 
7868
 
 
7869
# lt_dict_fetch(DICT, KEY, [SUBKEY])
 
7870
# ----------------------------------
 
7871
m4_define([lt_dict_fetch],
 
7872
[m4_ifval([$3],
 
7873
        m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
 
7874
    m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
 
7875
 
 
7876
 
 
7877
# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
 
7878
# -----------------------------------------------------------------
 
7879
m4_define([lt_if_dict_fetch],
 
7880
[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
 
7881
        [$5],
 
7882
    [$6])])
 
7883
 
 
7884
 
 
7885
# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
 
7886
# --------------------------------------------------------------
 
7887
m4_define([lt_dict_filter],
 
7888
[m4_if([$5], [], [],
 
7889
  [lt_join(m4_quote(m4_default([$4], [[, ]])),
 
7890
           lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
 
7891
                      [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
 
7892
])
 
7893
 
 
7894
# ltversion.m4 -- version numbers                       -*- Autoconf -*-
 
7895
#
 
7896
#   Copyright (C) 2004 Free Software Foundation, Inc.
 
7897
#   Written by Scott James Remnant, 2004
 
7898
#
 
7899
# This file is free software; the Free Software Foundation gives
 
7900
# unlimited permission to copy and/or distribute it, with or without
 
7901
# modifications, as long as this notice is preserved.
 
7902
 
 
7903
# Generated from ltversion.in.
 
7904
 
 
7905
# serial 3012 ltversion.m4
 
7906
# This file is part of GNU Libtool
 
7907
 
 
7908
m4_define([LT_PACKAGE_VERSION], [2.2.6])
 
7909
m4_define([LT_PACKAGE_REVISION], [1.3012])
 
7910
 
 
7911
AC_DEFUN([LTVERSION_VERSION],
 
7912
[macro_version='2.2.6'
 
7913
macro_revision='1.3012'
 
7914
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
 
7915
_LT_DECL(, macro_revision, 0)
 
7916
])
 
7917
 
 
7918
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions.    -*-Autoconf-*-
 
7919
#
 
7920
#   Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
 
7921
#   Written by Scott James Remnant, 2004.
 
7922
#
 
7923
# This file is free software; the Free Software Foundation gives
 
7924
# unlimited permission to copy and/or distribute it, with or without
 
7925
# modifications, as long as this notice is preserved.
 
7926
 
 
7927
# serial 4 lt~obsolete.m4
 
7928
 
 
7929
# These exist entirely to fool aclocal when bootstrapping libtool.
 
7930
#
 
7931
# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
 
7932
# which have later been changed to m4_define as they aren't part of the
 
7933
# exported API, or moved to Autoconf or Automake where they belong.
 
7934
#
 
7935
# The trouble is, aclocal is a bit thick.  It'll see the old AC_DEFUN
 
7936
# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
 
7937
# using a macro with the same name in our local m4/libtool.m4 it'll
 
7938
# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
 
7939
# and doesn't know about Autoconf macros at all.)
 
7940
#
 
7941
# So we provide this file, which has a silly filename so it's always
 
7942
# included after everything else.  This provides aclocal with the
 
7943
# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
 
7944
# because those macros already exist, or will be overwritten later.
 
7945
# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. 
 
7946
#
 
7947
# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
 
7948
# Yes, that means every name once taken will need to remain here until
 
7949
# we give up compatibility with versions before 1.7, at which point
 
7950
# we need to keep only those names which we still refer to.
 
7951
 
 
7952
# This is to help aclocal find these macros, as it can't see m4_define.
 
7953
AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
 
7954
 
 
7955
m4_ifndef([AC_LIBTOOL_LINKER_OPTION],   [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
 
7956
m4_ifndef([AC_PROG_EGREP],              [AC_DEFUN([AC_PROG_EGREP])])
 
7957
m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
 
7958
m4_ifndef([_LT_AC_SHELL_INIT],          [AC_DEFUN([_LT_AC_SHELL_INIT])])
 
7959
m4_ifndef([_LT_AC_SYS_LIBPATH_AIX],     [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
 
7960
m4_ifndef([_LT_PROG_LTMAIN],            [AC_DEFUN([_LT_PROG_LTMAIN])])
 
7961
m4_ifndef([_LT_AC_TAGVAR],              [AC_DEFUN([_LT_AC_TAGVAR])])
 
7962
m4_ifndef([AC_LTDL_ENABLE_INSTALL],     [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
 
7963
m4_ifndef([AC_LTDL_PREOPEN],            [AC_DEFUN([AC_LTDL_PREOPEN])])
 
7964
m4_ifndef([_LT_AC_SYS_COMPILER],        [AC_DEFUN([_LT_AC_SYS_COMPILER])])
 
7965
m4_ifndef([_LT_AC_LOCK],                [AC_DEFUN([_LT_AC_LOCK])])
 
7966
m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
 
7967
m4_ifndef([_LT_AC_TRY_DLOPEN_SELF],     [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
 
7968
m4_ifndef([AC_LIBTOOL_PROG_CC_C_O],     [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
 
7969
m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
 
7970
m4_ifndef([AC_LIBTOOL_OBJDIR],          [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
 
7971
m4_ifndef([AC_LTDL_OBJDIR],             [AC_DEFUN([AC_LTDL_OBJDIR])])
 
7972
m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
 
7973
m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP],   [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
 
7974
m4_ifndef([AC_PATH_MAGIC],              [AC_DEFUN([AC_PATH_MAGIC])])
 
7975
m4_ifndef([AC_PROG_LD_GNU],             [AC_DEFUN([AC_PROG_LD_GNU])])
 
7976
m4_ifndef([AC_PROG_LD_RELOAD_FLAG],     [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
 
7977
m4_ifndef([AC_DEPLIBS_CHECK_METHOD],    [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
 
7978
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
 
7979
m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
 
7980
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
 
7981
m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS],  [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
 
7982
m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP],  [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
 
7983
m4_ifndef([LT_AC_PROG_EGREP],           [AC_DEFUN([LT_AC_PROG_EGREP])])
 
7984
m4_ifndef([LT_AC_PROG_SED],             [AC_DEFUN([LT_AC_PROG_SED])])
 
7985
m4_ifndef([_LT_CC_BASENAME],            [AC_DEFUN([_LT_CC_BASENAME])])
 
7986
m4_ifndef([_LT_COMPILER_BOILERPLATE],   [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
 
7987
m4_ifndef([_LT_LINKER_BOILERPLATE],     [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
 
7988
m4_ifndef([_AC_PROG_LIBTOOL],           [AC_DEFUN([_AC_PROG_LIBTOOL])])
 
7989
m4_ifndef([AC_LIBTOOL_SETUP],           [AC_DEFUN([AC_LIBTOOL_SETUP])])
 
7990
m4_ifndef([_LT_AC_CHECK_DLFCN],         [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
 
7991
m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER],      [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
 
7992
m4_ifndef([_LT_AC_TAGCONFIG],           [AC_DEFUN([_LT_AC_TAGCONFIG])])
 
7993
m4_ifndef([AC_DISABLE_FAST_INSTALL],    [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
 
7994
m4_ifndef([_LT_AC_LANG_CXX],            [AC_DEFUN([_LT_AC_LANG_CXX])])
 
7995
m4_ifndef([_LT_AC_LANG_F77],            [AC_DEFUN([_LT_AC_LANG_F77])])
 
7996
m4_ifndef([_LT_AC_LANG_GCJ],            [AC_DEFUN([_LT_AC_LANG_GCJ])])
 
7997
m4_ifndef([AC_LIBTOOL_RC],              [AC_DEFUN([AC_LIBTOOL_RC])])
 
7998
m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG],   [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
 
7999
m4_ifndef([_LT_AC_LANG_C_CONFIG],       [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
 
8000
m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
 
8001
m4_ifndef([_LT_AC_LANG_CXX_CONFIG],     [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
 
8002
m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
 
8003
m4_ifndef([_LT_AC_LANG_F77_CONFIG],     [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
 
8004
m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
 
8005
m4_ifndef([_LT_AC_LANG_GCJ_CONFIG],     [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
 
8006
m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG],  [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
 
8007
m4_ifndef([_LT_AC_LANG_RC_CONFIG],      [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
 
8008
m4_ifndef([AC_LIBTOOL_CONFIG],          [AC_DEFUN([AC_LIBTOOL_CONFIG])])
 
8009
m4_ifndef([_LT_AC_FILE_LTDLL_C],        [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
6700
8010
 
6701
8011
# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
6702
8012
6854
8164
fi[]dnl
6855
8165
])# PKG_CHECK_MODULES
6856
8166
 
6857
 
# Copyright (C) 2002, 2003, 2005, 2006, 2007  Free Software Foundation, Inc.
 
8167
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
6858
8168
#
6859
8169
# This file is free software; the Free Software Foundation
6860
8170
# gives unlimited permission to copy and/or distribute it,
6869
8179
[am__api_version='1.10'
6870
8180
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
6871
8181
dnl require some minimum version.  Point them to the right macro.
6872
 
m4_if([$1], [1.10.1], [],
 
8182
m4_if([$1], [1.10.2], [],
6873
8183
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
6874
8184
])
6875
8185
 
6883
8193
# AM_SET_CURRENT_AUTOMAKE_VERSION
6884
8194
# -------------------------------
6885
8195
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
6886
 
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
 
8196
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
6887
8197
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
6888
 
[AM_AUTOMAKE_VERSION([1.10.1])dnl
 
8198
[AM_AUTOMAKE_VERSION([1.10.2])dnl
6889
8199
m4_ifndef([AC_AUTOCONF_VERSION],
6890
8200
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
6891
 
_AM_AUTOCONF_VERSION(AC_AUTOCONF_VERSION)])
 
8201
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
6892
8202
 
6893
8203
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
6894
8204
 
7138
8448
 
7139
8449
# Generate code to set up dependency tracking.              -*- Autoconf -*-
7140
8450
 
7141
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
 
8451
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
7142
8452
# Free Software Foundation, Inc.
7143
8453
#
7144
8454
# This file is free software; the Free Software Foundation
7145
8455
# gives unlimited permission to copy and/or distribute it,
7146
8456
# with or without modifications, as long as this notice is preserved.
7147
8457
 
7148
 
#serial 3
 
8458
#serial 4
7149
8459
 
7150
8460
# _AM_OUTPUT_DEPENDENCY_COMMANDS
7151
8461
# ------------------------------
7152
8462
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
7153
 
[for mf in $CONFIG_FILES; do
 
8463
[# Autoconf 2.62 quotes --file arguments for eval, but not when files
 
8464
# are listed without --file.  Let's play safe and only enable the eval
 
8465
# if we detect the quoting.
 
8466
case $CONFIG_FILES in
 
8467
*\'*) eval set x "$CONFIG_FILES" ;;
 
8468
*)   set x $CONFIG_FILES ;;
 
8469
esac
 
8470
shift
 
8471
for mf
 
8472
do
7154
8473
  # Strip MF so we end up with the name of the file.
7155
8474
  mf=`echo "$mf" | sed -e 's/:.*$//'`
7156
8475
  # Check whether this is an Automake generated Makefile or not.
7511
8830
 
7512
8831
# Helper functions for option handling.                     -*- Autoconf -*-
7513
8832
 
7514
 
# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
 
8833
# Copyright (C) 2001, 2002, 2003, 2005, 2008  Free Software Foundation, Inc.
7515
8834
#
7516
8835
# This file is free software; the Free Software Foundation
7517
8836
# gives unlimited permission to copy and/or distribute it,
7518
8837
# with or without modifications, as long as this notice is preserved.
7519
8838
 
7520
 
# serial 3
 
8839
# serial 4
7521
8840
 
7522
8841
# _AM_MANGLE_OPTION(NAME)
7523
8842
# -----------------------
7534
8853
# ----------------------------------
7535
8854
# OPTIONS is a space-separated list of Automake options.
7536
8855
AC_DEFUN([_AM_SET_OPTIONS],
7537
 
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
 
8856
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
7538
8857
 
7539
8858
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
7540
8859
# -------------------------------------------