comparison acinclude/libtool.m4 @ 4277:803eeeeaa8a0 SDL-1.2

Updated libtool to version 2.2.6a
author Sam Lantinga <slouken@libsdl.org>
date Sun, 04 Oct 2009 22:31:25 +0000
parents b73b5af69f48
children 3500563bb2f8
comparison
equal deleted inserted replaced
4276:0e7b63f8ac75 4277:803eeeeaa8a0
1 ############################################################################## 1 ##############################################################################
2 # Based on libtool-1.5.22 2 # Based on libtool-2.2.6a
3 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- 3 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
4 ## Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005 4 #
5 ## Free Software Foundation, Inc. 5 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
6 ## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 6 # 2006, 2007, 2008 Free Software Foundation, Inc.
7 ## 7 # Written by Gordon Matzigkeit, 1996
8 ## This file is free software; the Free Software Foundation gives 8 #
9 ## unlimited permission to copy and/or distribute it, with or without 9 # This file is free software; the Free Software Foundation gives
10 ## modifications, as long as this notice is preserved. 10 # unlimited permission to copy and/or distribute it, with or without
11 11 # modifications, as long as this notice is preserved.
12 # serial 48 AC_PROG_LIBTOOL 12
13 13 m4_define([_LT_COPYING], [dnl
14 14 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15 # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) 15 # 2006, 2007, 2008 Free Software Foundation, Inc.
16 # ----------------------------------------------------------- 16 # Written by Gordon Matzigkeit, 1996
17 # If this macro is not defined by Autoconf, define it here. 17 #
18 m4_ifdef([AC_PROVIDE_IFELSE], 18 # This file is part of GNU Libtool.
19 [], 19 #
20 [m4_define([AC_PROVIDE_IFELSE], 20 # GNU Libtool is free software; you can redistribute it and/or
21 [m4_ifdef([AC_PROVIDE_$1], 21 # modify it under the terms of the GNU General Public License as
22 [$2], [$3])])]) 22 # published by the Free Software Foundation; either version 2 of
23 23 # the License, or (at your option) any later version.
24 24 #
25 # AC_PROG_LIBTOOL 25 # As a special exception to the GNU General Public License,
26 # --------------- 26 # if you distribute this file as part of a program or library that
27 AC_DEFUN([AC_PROG_LIBTOOL], 27 # is built using GNU Libtool, you may include this file under the
28 [AC_REQUIRE([_AC_PROG_LIBTOOL])dnl 28 # same distribution terms that you use for the rest of that program.
29 dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX 29 #
30 dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX. 30 # GNU Libtool is distributed in the hope that it will be useful,
31 AC_PROVIDE_IFELSE([AC_PROG_CXX], 31 # but WITHOUT ANY WARRANTY; without even the implied warranty of
32 [AC_LIBTOOL_CXX], 32 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
33 [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX 33 # GNU General Public License for more details.
34 ])]) 34 #
35 dnl And a similar setup for Fortran 77 support 35 # You should have received a copy of the GNU General Public License
36 AC_PROVIDE_IFELSE([AC_PROG_F77], 36 # along with GNU Libtool; see the file COPYING. If not, a copy
37 [AC_LIBTOOL_F77], 37 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
38 [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77 38 # obtained by writing to the Free Software Foundation, Inc.,
39 ])]) 39 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
40 40 ])
41 dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly. 41
42 dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run 42 # serial 56 LT_INIT
43 dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both. 43
44 AC_PROVIDE_IFELSE([AC_PROG_GCJ], 44
45 [AC_LIBTOOL_GCJ], 45 # LT_PREREQ(VERSION)
46 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], 46 # ------------------
47 [AC_LIBTOOL_GCJ], 47 # Complain and exit if this libtool version is less that VERSION.
48 [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ], 48 m4_defun([LT_PREREQ],
49 [AC_LIBTOOL_GCJ], 49 [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
50 [ifdef([AC_PROG_GCJ], 50 [m4_default([$3],
51 [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])]) 51 [m4_fatal([Libtool version $1 or higher is required],
52 ifdef([A][M_PROG_GCJ], 52 63)])],
53 [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])]) 53 [$2])])
54 ifdef([LT_AC_PROG_GCJ], 54
55 [define([LT_AC_PROG_GCJ], 55
56 defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])]) 56 # _LT_CHECK_BUILDDIR
57 ])])# AC_PROG_LIBTOOL 57 # ------------------
58 58 # Complain if the absolute build directory name contains unusual characters
59 59 m4_defun([_LT_CHECK_BUILDDIR],
60 # _AC_PROG_LIBTOOL 60 [case `pwd` in
61 # ---------------- 61 *\ * | *\ *)
62 AC_DEFUN([_AC_PROG_LIBTOOL], 62 AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
63 [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl 63 esac
64 AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl 64 ])
65 AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl 65
66 AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl 66
67 # LT_INIT([OPTIONS])
68 # ------------------
69 AC_DEFUN([LT_INIT],
70 [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
71 AC_BEFORE([$0], [LT_LANG])dnl
72 AC_BEFORE([$0], [LT_OUTPUT])dnl
73 AC_BEFORE([$0], [LTDL_INIT])dnl
74 m4_require([_LT_CHECK_BUILDDIR])dnl
75
76 dnl Autoconf doesn't catch unexpanded LT_ macros by default:
77 m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
78 m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
79 dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
80 dnl unless we require an AC_DEFUNed macro:
81 AC_REQUIRE([LTOPTIONS_VERSION])dnl
82 AC_REQUIRE([LTSUGAR_VERSION])dnl
83 AC_REQUIRE([LTVERSION_VERSION])dnl
84 AC_REQUIRE([LTOBSOLETE_VERSION])dnl
85 m4_require([_LT_PROG_LTMAIN])dnl
86
87 dnl Parse OPTIONS
88 _LT_SET_OPTIONS([$0], [$1])
67 89
68 # This can be used to rebuild libtool when needed 90 # This can be used to rebuild libtool when needed
69 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 91 LIBTOOL_DEPS="$ltmain"
70 92
71 # Always use our own libtool. 93 # Always use our own libtool.
72 LIBTOOL='$(SHELL) $(top_builddir)/libtool' 94 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
73 AC_SUBST(LIBTOOL)dnl 95 AC_SUBST(LIBTOOL)dnl
74 96
75 # Prevent multiple expansion 97 _LT_SETUP
76 define([AC_PROG_LIBTOOL], []) 98
77 ])# _AC_PROG_LIBTOOL 99 # Only expand once:
78 100 m4_define([LT_INIT])
79 101 ])# LT_INIT
80 # AC_LIBTOOL_SETUP 102
81 # ---------------- 103 # Old names:
82 AC_DEFUN([AC_LIBTOOL_SETUP], 104 AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
83 [AC_PREREQ(2.50)dnl 105 AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
84 AC_REQUIRE([AC_ENABLE_SHARED])dnl 106 dnl aclocal-1.4 backwards compatibility:
85 AC_REQUIRE([AC_ENABLE_STATIC])dnl 107 dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
86 AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl 108 dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
87 AC_REQUIRE([AC_CANONICAL_HOST])dnl 109
110
111 # _LT_CC_BASENAME(CC)
112 # -------------------
113 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
114 m4_defun([_LT_CC_BASENAME],
115 [for cc_temp in $1""; do
116 case $cc_temp in
117 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
118 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
119 \-*) ;;
120 *) break;;
121 esac
122 done
123 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
124 ])
125
126
127 # _LT_FILEUTILS_DEFAULTS
128 # ----------------------
129 # It is okay to use these file commands and assume they have been set
130 # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
131 m4_defun([_LT_FILEUTILS_DEFAULTS],
132 [: ${CP="cp -f"}
133 : ${MV="mv -f"}
134 : ${RM="rm -f"}
135 ])# _LT_FILEUTILS_DEFAULTS
136
137
138 # _LT_SETUP
139 # ---------
140 m4_defun([_LT_SETUP],
141 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
88 AC_REQUIRE([AC_CANONICAL_BUILD])dnl 142 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
143 _LT_DECL([], [host_alias], [0], [The host system])dnl
144 _LT_DECL([], [host], [0])dnl
145 _LT_DECL([], [host_os], [0])dnl
146 dnl
147 _LT_DECL([], [build_alias], [0], [The build system])dnl
148 _LT_DECL([], [build], [0])dnl
149 _LT_DECL([], [build_os], [0])dnl
150 dnl
89 AC_REQUIRE([AC_PROG_CC])dnl 151 AC_REQUIRE([AC_PROG_CC])dnl
90 AC_REQUIRE([AC_PROG_LD])dnl 152 AC_REQUIRE([LT_PATH_LD])dnl
91 AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl 153 AC_REQUIRE([LT_PATH_NM])dnl
92 AC_REQUIRE([AC_PROG_NM])dnl 154 dnl
93
94 AC_REQUIRE([AC_PROG_LN_S])dnl 155 AC_REQUIRE([AC_PROG_LN_S])dnl
95 AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl 156 test -z "$LN_S" && LN_S="ln -s"
96 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 157 _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
97 AC_REQUIRE([AC_OBJEXT])dnl
98 AC_REQUIRE([AC_EXEEXT])dnl
99 dnl 158 dnl
100 159 AC_REQUIRE([LT_CMD_MAX_LEN])dnl
101 AC_LIBTOOL_SYS_MAX_CMD_LEN 160 _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
102 AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE 161 _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
103 AC_LIBTOOL_OBJDIR 162 dnl
104 163 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
105 AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl 164 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
106 _LT_AC_PROG_ECHO_BACKSLASH 165 m4_require([_LT_CMD_RELOAD])dnl
166 m4_require([_LT_CHECK_MAGIC_METHOD])dnl
167 m4_require([_LT_CMD_OLD_ARCHIVE])dnl
168 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
169
170 _LT_CONFIG_LIBTOOL_INIT([
171 # See if we are running on zsh, and set the options which allow our
172 # commands through without removal of \ escapes INIT.
173 if test -n "\${ZSH_VERSION+set}" ; then
174 setopt NO_GLOB_SUBST
175 fi
176 ])
177 if test -n "${ZSH_VERSION+set}" ; then
178 setopt NO_GLOB_SUBST
179 fi
180
181 _LT_CHECK_OBJDIR
182
183 m4_require([_LT_TAG_COMPILER])dnl
184 _LT_PROG_ECHO_BACKSLASH
107 185
108 case $host_os in 186 case $host_os in
109 aix3*) 187 aix3*)
110 # AIX sometimes has problems with the GCC collect2 program. For some 188 # AIX sometimes has problems with the GCC collect2 program. For some
111 # reason, if we set the COLLECT_NAMES environment variable, the problems 189 # reason, if we set the COLLECT_NAMES environment variable, the problems
117 ;; 195 ;;
118 esac 196 esac
119 197
120 # Sed substitution that helps us do robust quoting. It backslashifies 198 # Sed substitution that helps us do robust quoting. It backslashifies
121 # metacharacters that are still active within double-quoted strings. 199 # metacharacters that are still active within double-quoted strings.
122 Xsed='sed -e 1s/^X//' 200 sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
123 [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
124 201
125 # Same as above, but do not quote variable references. 202 # Same as above, but do not quote variable references.
126 [double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'] 203 double_quote_subst='s/\([["`\\]]\)/\\\1/g'
127 204
128 # Sed substitution to delay expansion of an escaped shell variable in a 205 # Sed substitution to delay expansion of an escaped shell variable in a
129 # double_quote_subst'ed string. 206 # double_quote_subst'ed string.
130 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 207 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
131 208
209 # Sed substitution to delay expansion of an escaped single quote.
210 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
211
132 # Sed substitution to avoid accidental globbing in evaled expressions 212 # Sed substitution to avoid accidental globbing in evaled expressions
133 no_glob_subst='s/\*/\\\*/g' 213 no_glob_subst='s/\*/\\\*/g'
134 214
135 # Constants:
136 rm="rm -f"
137
138 # Global variables: 215 # Global variables:
139 default_ofile=libtool 216 ofile=libtool
140 can_build_shared=yes 217 can_build_shared=yes
141 218
142 # All known linkers require a `.a' archive for static linking (except MSVC, 219 # All known linkers require a `.a' archive for static linking (except MSVC,
143 # which needs '.lib'). 220 # which needs '.lib').
144 libext=a 221 libext=a
145 ltmain="$ac_aux_dir/ltmain.sh" 222
146 ofile="$default_ofile"
147 with_gnu_ld="$lt_cv_prog_gnu_ld" 223 with_gnu_ld="$lt_cv_prog_gnu_ld"
148
149 AC_CHECK_TOOL(AR, ar, false)
150 AC_CHECK_TOOL(RANLIB, ranlib, :)
151 AC_CHECK_TOOL(STRIP, strip, :)
152 224
153 old_CC="$CC" 225 old_CC="$CC"
154 old_CFLAGS="$CFLAGS" 226 old_CFLAGS="$CFLAGS"
155 227
156 # Set sane defaults for various variables 228 # Set sane defaults for various variables
157 test -z "$AR" && AR=ar
158 test -z "$AR_FLAGS" && AR_FLAGS=cru
159 test -z "$AS" && AS=as
160 test -z "$CC" && CC=cc 229 test -z "$CC" && CC=cc
161 test -z "$LTCC" && LTCC=$CC 230 test -z "$LTCC" && LTCC=$CC
162 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 231 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
163 test -z "$DLLTOOL" && DLLTOOL=dlltool
164 test -z "$LD" && LD=ld 232 test -z "$LD" && LD=ld
165 test -z "$LN_S" && LN_S="ln -s" 233 test -z "$ac_objext" && ac_objext=o
234
235 _LT_CC_BASENAME([$compiler])
236
237 # Only perform the check for file, if the check method requires it
166 test -z "$MAGIC_CMD" && MAGIC_CMD=file 238 test -z "$MAGIC_CMD" && MAGIC_CMD=file
167 test -z "$NM" && NM=nm 239 case $deplibs_check_method in
168 test -z "$SED" && SED=sed 240 file_magic*)
169 test -z "$OBJDUMP" && OBJDUMP=objdump 241 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
242 _LT_PATH_MAGIC
243 fi
244 ;;
245 esac
246
247 # Use C for the default configuration in the libtool script
248 LT_SUPPORTED_TAG([CC])
249 _LT_LANG_C_CONFIG
250 _LT_LANG_DEFAULT_CONFIG
251 _LT_CONFIG_COMMANDS
252 ])# _LT_SETUP
253
254
255 # _LT_PROG_LTMAIN
256 # ---------------
257 # Note that this code is called both from `configure', and `config.status'
258 # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
259 # `config.status' has no value for ac_aux_dir unless we are using Automake,
260 # so we pass a copy along to make sure it has a sensible value anyway.
261 m4_defun([_LT_PROG_LTMAIN],
262 [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
263 _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
264 ltmain="$ac_aux_dir/ltmain.sh"
265 ])# _LT_PROG_LTMAIN
266
267
268 ## ------------------------------------- ##
269 ## Accumulate code for creating libtool. ##
270 ## ------------------------------------- ##
271
272 # So that we can recreate a full libtool script including additional
273 # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
274 # in macros and then make a single call at the end using the `libtool'
275 # label.
276
277
278 # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
279 # ----------------------------------------
280 # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
281 m4_define([_LT_CONFIG_LIBTOOL_INIT],
282 [m4_ifval([$1],
283 [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
284 [$1
285 ])])])
286
287 # Initialize.
288 m4_define([_LT_OUTPUT_LIBTOOL_INIT])
289
290
291 # _LT_CONFIG_LIBTOOL([COMMANDS])
292 # ------------------------------
293 # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
294 m4_define([_LT_CONFIG_LIBTOOL],
295 [m4_ifval([$1],
296 [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
297 [$1
298 ])])])
299
300 # Initialize.
301 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
302
303
304 # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
305 # -----------------------------------------------------
306 m4_defun([_LT_CONFIG_SAVE_COMMANDS],
307 [_LT_CONFIG_LIBTOOL([$1])
308 _LT_CONFIG_LIBTOOL_INIT([$2])
309 ])
310
311
312 # _LT_FORMAT_COMMENT([COMMENT])
313 # -----------------------------
314 # Add leading comment marks to the start of each line, and a trailing
315 # full-stop to the whole comment if one is not present already.
316 m4_define([_LT_FORMAT_COMMENT],
317 [m4_ifval([$1], [
318 m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
319 [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
320 )])
321
322
323
324 ## ------------------------ ##
325 ## FIXME: Eliminate VARNAME ##
326 ## ------------------------ ##
327
328
329 # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
330 # -------------------------------------------------------------------
331 # CONFIGNAME is the name given to the value in the libtool script.
332 # VARNAME is the (base) name used in the configure script.
333 # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
334 # VARNAME. Any other value will be used directly.
335 m4_define([_LT_DECL],
336 [lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
337 [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
338 [m4_ifval([$1], [$1], [$2])])
339 lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
340 m4_ifval([$4],
341 [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
342 lt_dict_add_subkey([lt_decl_dict], [$2],
343 [tagged?], [m4_ifval([$5], [yes], [no])])])
344 ])
345
346
347 # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
348 # --------------------------------------------------------
349 m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
350
351
352 # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
353 # ------------------------------------------------
354 m4_define([lt_decl_tag_varnames],
355 [_lt_decl_filter([tagged?], [yes], $@)])
356
357
358 # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
359 # ---------------------------------------------------------
360 m4_define([_lt_decl_filter],
361 [m4_case([$#],
362 [0], [m4_fatal([$0: too few arguments: $#])],
363 [1], [m4_fatal([$0: too few arguments: $#: $1])],
364 [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
365 [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
366 [lt_dict_filter([lt_decl_dict], $@)])[]dnl
367 ])
368
369
370 # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
371 # --------------------------------------------------
372 m4_define([lt_decl_quote_varnames],
373 [_lt_decl_filter([value], [1], $@)])
374
375
376 # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
377 # ---------------------------------------------------
378 m4_define([lt_decl_dquote_varnames],
379 [_lt_decl_filter([value], [2], $@)])
380
381
382 # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
383 # ---------------------------------------------------
384 m4_define([lt_decl_varnames_tagged],
385 [m4_assert([$# <= 2])dnl
386 _$0(m4_quote(m4_default([$1], [[, ]])),
387 m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
388 m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
389 m4_define([_lt_decl_varnames_tagged],
390 [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
391
392
393 # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
394 # ------------------------------------------------
395 m4_define([lt_decl_all_varnames],
396 [_$0(m4_quote(m4_default([$1], [[, ]])),
397 m4_if([$2], [],
398 m4_quote(lt_decl_varnames),
399 m4_quote(m4_shift($@))))[]dnl
400 ])
401 m4_define([_lt_decl_all_varnames],
402 [lt_join($@, lt_decl_varnames_tagged([$1],
403 lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
404 ])
405
406
407 # _LT_CONFIG_STATUS_DECLARE([VARNAME])
408 # ------------------------------------
409 # Quote a variable value, and forward it to `config.status' so that its
410 # declaration there will have the same value as in `configure'. VARNAME
411 # must have a single quote delimited value for this to work.
412 m4_define([_LT_CONFIG_STATUS_DECLARE],
413 [$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
414
415
416 # _LT_CONFIG_STATUS_DECLARATIONS
417 # ------------------------------
418 # We delimit libtool config variables with single quotes, so when
419 # we write them to config.status, we have to be sure to quote all
420 # embedded single quotes properly. In configure, this macro expands
421 # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
422 #
423 # <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
424 m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
425 [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
426 [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
427
428
429 # _LT_LIBTOOL_TAGS
430 # ----------------
431 # Output comment and list of tags supported by the script
432 m4_defun([_LT_LIBTOOL_TAGS],
433 [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
434 available_tags="_LT_TAGS"dnl
435 ])
436
437
438 # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
439 # -----------------------------------
440 # Extract the dictionary values for VARNAME (optionally with TAG) and
441 # expand to a commented shell variable setting:
442 #
443 # # Some comment about what VAR is for.
444 # visible_name=$lt_internal_name
445 m4_define([_LT_LIBTOOL_DECLARE],
446 [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
447 [description])))[]dnl
448 m4_pushdef([_libtool_name],
449 m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
450 m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
451 [0], [_libtool_name=[$]$1],
452 [1], [_libtool_name=$lt_[]$1],
453 [2], [_libtool_name=$lt_[]$1],
454 [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
455 m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
456 ])
457
458
459 # _LT_LIBTOOL_CONFIG_VARS
460 # -----------------------
461 # Produce commented declarations of non-tagged libtool config variables
462 # suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
463 # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
464 # section) are produced by _LT_LIBTOOL_TAG_VARS.
465 m4_defun([_LT_LIBTOOL_CONFIG_VARS],
466 [m4_foreach([_lt_var],
467 m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
468 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
469
470
471 # _LT_LIBTOOL_TAG_VARS(TAG)
472 # -------------------------
473 m4_define([_LT_LIBTOOL_TAG_VARS],
474 [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
475 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
476
477
478 # _LT_TAGVAR(VARNAME, [TAGNAME])
479 # ------------------------------
480 m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
481
482
483 # _LT_CONFIG_COMMANDS
484 # -------------------
485 # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
486 # variables for single and double quote escaping we saved from calls
487 # to _LT_DECL, we can put quote escaped variables declarations
488 # into `config.status', and then the shell code to quote escape them in
489 # for loops in `config.status'. Finally, any additional code accumulated
490 # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
491 m4_defun([_LT_CONFIG_COMMANDS],
492 [AC_PROVIDE_IFELSE([LT_OUTPUT],
493 dnl If the libtool generation code has been placed in $CONFIG_LT,
494 dnl instead of duplicating it all over again into config.status,
495 dnl then we will have config.status run $CONFIG_LT later, so it
496 dnl needs to know what name is stored there:
497 [AC_CONFIG_COMMANDS([libtool],
498 [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
499 dnl If the libtool generation code is destined for config.status,
500 dnl expand the accumulated commands and init code now:
501 [AC_CONFIG_COMMANDS([libtool],
502 [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
503 ])#_LT_CONFIG_COMMANDS
504
505
506 # Initialize.
507 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
508 [
509
510 # The HP-UX ksh and POSIX shell print the target directory to stdout
511 # if CDPATH is set.
512 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
513
514 sed_quote_subst='$sed_quote_subst'
515 double_quote_subst='$double_quote_subst'
516 delay_variable_subst='$delay_variable_subst'
517 _LT_CONFIG_STATUS_DECLARATIONS
518 LTCC='$LTCC'
519 LTCFLAGS='$LTCFLAGS'
520 compiler='$compiler_DEFAULT'
521
522 # Quote evaled strings.
523 for var in lt_decl_all_varnames([[ \
524 ]], lt_decl_quote_varnames); do
525 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
526 *[[\\\\\\\`\\"\\\$]]*)
527 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
528 ;;
529 *)
530 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
531 ;;
532 esac
533 done
534
535 # Double-quote double-evaled strings.
536 for var in lt_decl_all_varnames([[ \
537 ]], lt_decl_dquote_varnames); do
538 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
539 *[[\\\\\\\`\\"\\\$]]*)
540 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
541 ;;
542 *)
543 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
544 ;;
545 esac
546 done
547
548 # Fix-up fallback echo if it was mangled by the above quoting rules.
549 case \$lt_ECHO in
550 *'\\\[$]0 --fallback-echo"')dnl "
551 lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
552 ;;
553 esac
554
555 _LT_OUTPUT_LIBTOOL_INIT
556 ])
557
558
559 # LT_OUTPUT
560 # ---------
561 # This macro allows early generation of the libtool script (before
562 # AC_OUTPUT is called), incase it is used in configure for compilation
563 # tests.
564 AC_DEFUN([LT_OUTPUT],
565 [: ${CONFIG_LT=./config.lt}
566 AC_MSG_NOTICE([creating $CONFIG_LT])
567 cat >"$CONFIG_LT" <<_LTEOF
568 #! $SHELL
569 # Generated by $as_me.
570 # Run this file to recreate a libtool stub with the current configuration.
571
572 lt_cl_silent=false
573 SHELL=\${CONFIG_SHELL-$SHELL}
574 _LTEOF
575
576 cat >>"$CONFIG_LT" <<\_LTEOF
577 AS_SHELL_SANITIZE
578 _AS_PREPARE
579
580 exec AS_MESSAGE_FD>&1
581 exec AS_MESSAGE_LOG_FD>>config.log
582 {
583 echo
584 AS_BOX([Running $as_me.])
585 } >&AS_MESSAGE_LOG_FD
586
587 lt_cl_help="\
588 \`$as_me' creates a local libtool stub from the current configuration,
589 for use in further configure time tests before the real libtool is
590 generated.
591
592 Usage: $[0] [[OPTIONS]]
593
594 -h, --help print this help, then exit
595 -V, --version print version number, then exit
596 -q, --quiet do not print progress messages
597 -d, --debug don't remove temporary files
598
599 Report bugs to <bug-libtool@gnu.org>."
600
601 lt_cl_version="\
602 m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
603 m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
604 configured by $[0], generated by m4_PACKAGE_STRING.
605
606 Copyright (C) 2008 Free Software Foundation, Inc.
607 This config.lt script is free software; the Free Software Foundation
608 gives unlimited permision to copy, distribute and modify it."
609
610 while test $[#] != 0
611 do
612 case $[1] in
613 --version | --v* | -V )
614 echo "$lt_cl_version"; exit 0 ;;
615 --help | --h* | -h )
616 echo "$lt_cl_help"; exit 0 ;;
617 --debug | --d* | -d )
618 debug=: ;;
619 --quiet | --q* | --silent | --s* | -q )
620 lt_cl_silent=: ;;
621
622 -*) AC_MSG_ERROR([unrecognized option: $[1]
623 Try \`$[0] --help' for more information.]) ;;
624
625 *) AC_MSG_ERROR([unrecognized argument: $[1]
626 Try \`$[0] --help' for more information.]) ;;
627 esac
628 shift
629 done
630
631 if $lt_cl_silent; then
632 exec AS_MESSAGE_FD>/dev/null
633 fi
634 _LTEOF
635
636 cat >>"$CONFIG_LT" <<_LTEOF
637 _LT_OUTPUT_LIBTOOL_COMMANDS_INIT
638 _LTEOF
639
640 cat >>"$CONFIG_LT" <<\_LTEOF
641 AC_MSG_NOTICE([creating $ofile])
642 _LT_OUTPUT_LIBTOOL_COMMANDS
643 AS_EXIT(0)
644 _LTEOF
645 chmod +x "$CONFIG_LT"
646
647 # configure is writing to config.log, but config.lt does its own redirection,
648 # appending to config.log, which fails on DOS, as config.log is still kept
649 # open by configure. Here we exec the FD to /dev/null, effectively closing
650 # config.log, so it can be properly (re)opened and appended to by config.lt.
651 if test "$no_create" != yes; then
652 lt_cl_success=:
653 test "$silent" = yes &&
654 lt_config_lt_args="$lt_config_lt_args --quiet"
655 exec AS_MESSAGE_LOG_FD>/dev/null
656 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
657 exec AS_MESSAGE_LOG_FD>>config.log
658 $lt_cl_success || AS_EXIT(1)
659 fi
660 ])# LT_OUTPUT
661
662
663 # _LT_CONFIG(TAG)
664 # ---------------
665 # If TAG is the built-in tag, create an initial libtool script with a
666 # default configuration from the untagged config vars. Otherwise add code
667 # to config.status for appending the configuration named by TAG from the
668 # matching tagged config vars.
669 m4_defun([_LT_CONFIG],
670 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
671 _LT_CONFIG_SAVE_COMMANDS([
672 m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
673 m4_if(_LT_TAG, [C], [
674 # See if we are running on zsh, and set the options which allow our
675 # commands through without removal of \ escapes.
676 if test -n "${ZSH_VERSION+set}" ; then
677 setopt NO_GLOB_SUBST
678 fi
679
680 cfgfile="${ofile}T"
681 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
682 $RM "$cfgfile"
683
684 cat <<_LT_EOF >> "$cfgfile"
685 #! $SHELL
686
687 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
688 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
689 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
690 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
691 #
692 _LT_COPYING
693 _LT_LIBTOOL_TAGS
694
695 # ### BEGIN LIBTOOL CONFIG
696 _LT_LIBTOOL_CONFIG_VARS
697 _LT_LIBTOOL_TAG_VARS
698 # ### END LIBTOOL CONFIG
699
700 _LT_EOF
701
702 case $host_os in
703 aix3*)
704 cat <<\_LT_EOF >> "$cfgfile"
705 # AIX sometimes has problems with the GCC collect2 program. For some
706 # reason, if we set the COLLECT_NAMES environment variable, the problems
707 # vanish in a puff of smoke.
708 if test "X${COLLECT_NAMES+set}" != Xset; then
709 COLLECT_NAMES=
710 export COLLECT_NAMES
711 fi
712 _LT_EOF
713 ;;
714 esac
715
716 _LT_PROG_LTMAIN
717
718 # We use sed instead of cat because bash on DJGPP gets confused if
719 # if finds mixed CR/LF and LF-only lines. Since sed operates in
720 # text mode, it properly converts lines to CR/LF. This bash problem
721 # is reportedly fixed, but why not run on old versions too?
722 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
723 || (rm -f "$cfgfile"; exit 1)
724
725 _LT_PROG_XSI_SHELLFNS
726
727 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
728 || (rm -f "$cfgfile"; exit 1)
729
730 mv -f "$cfgfile" "$ofile" ||
731 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
732 chmod +x "$ofile"
733 ],
734 [cat <<_LT_EOF >> "$ofile"
735
736 dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
737 dnl in a comment (ie after a #).
738 # ### BEGIN LIBTOOL TAG CONFIG: $1
739 _LT_LIBTOOL_TAG_VARS(_LT_TAG)
740 # ### END LIBTOOL TAG CONFIG: $1
741 _LT_EOF
742 ])dnl /m4_if
743 ],
744 [m4_if([$1], [], [
745 PACKAGE='$PACKAGE'
746 VERSION='$VERSION'
747 TIMESTAMP='$TIMESTAMP'
748 RM='$RM'
749 ofile='$ofile'], [])
750 ])dnl /_LT_CONFIG_SAVE_COMMANDS
751 ])# _LT_CONFIG
752
753
754 # LT_SUPPORTED_TAG(TAG)
755 # ---------------------
756 # Trace this macro to discover what tags are supported by the libtool
757 # --tag option, using:
758 # autoconf --trace 'LT_SUPPORTED_TAG:$1'
759 AC_DEFUN([LT_SUPPORTED_TAG], [])
760
761
762 # C support is built-in for now
763 m4_define([_LT_LANG_C_enabled], [])
764 m4_define([_LT_TAGS], [])
765
766
767 # LT_LANG(LANG)
768 # -------------
769 # Enable libtool support for the given language if not already enabled.
770 AC_DEFUN([LT_LANG],
771 [AC_BEFORE([$0], [LT_OUTPUT])dnl
772 m4_case([$1],
773 [C], [_LT_LANG(C)],
774 [C++], [_LT_LANG(CXX)],
775 [Java], [_LT_LANG(GCJ)],
776 [Fortran 77], [_LT_LANG(F77)],
777 [Fortran], [_LT_LANG(FC)],
778 [Windows Resource], [_LT_LANG(RC)],
779 [m4_ifdef([_LT_LANG_]$1[_CONFIG],
780 [_LT_LANG($1)],
781 [m4_fatal([$0: unsupported language: "$1"])])])dnl
782 ])# LT_LANG
783
784
785 # _LT_LANG(LANGNAME)
786 # ------------------
787 m4_defun([_LT_LANG],
788 [m4_ifdef([_LT_LANG_]$1[_enabled], [],
789 [LT_SUPPORTED_TAG([$1])dnl
790 m4_append([_LT_TAGS], [$1 ])dnl
791 m4_define([_LT_LANG_]$1[_enabled], [])dnl
792 _LT_LANG_$1_CONFIG($1)])dnl
793 ])# _LT_LANG
794
795
796 # _LT_LANG_DEFAULT_CONFIG
797 # -----------------------
798 m4_defun([_LT_LANG_DEFAULT_CONFIG],
799 [AC_PROVIDE_IFELSE([AC_PROG_CXX],
800 [LT_LANG(CXX)],
801 [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
802
803 AC_PROVIDE_IFELSE([AC_PROG_F77],
804 [LT_LANG(F77)],
805 [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
806
807 AC_PROVIDE_IFELSE([AC_PROG_FC],
808 [LT_LANG(FC)],
809 [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
810
811 dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
812 dnl pulling things in needlessly.
813 AC_PROVIDE_IFELSE([AC_PROG_GCJ],
814 [LT_LANG(GCJ)],
815 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
816 [LT_LANG(GCJ)],
817 [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
818 [LT_LANG(GCJ)],
819 [m4_ifdef([AC_PROG_GCJ],
820 [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
821 m4_ifdef([A][M_PROG_GCJ],
822 [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
823 m4_ifdef([LT_PROG_GCJ],
824 [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
825
826 AC_PROVIDE_IFELSE([LT_PROG_RC],
827 [LT_LANG(RC)],
828 [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
829 ])# _LT_LANG_DEFAULT_CONFIG
830
831 # Obsolete macros:
832 AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
833 AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
834 AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
835 AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
836 dnl aclocal-1.4 backwards compatibility:
837 dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
838 dnl AC_DEFUN([AC_LIBTOOL_F77], [])
839 dnl AC_DEFUN([AC_LIBTOOL_FC], [])
840 dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
841
842
843 # _LT_TAG_COMPILER
844 # ----------------
845 m4_defun([_LT_TAG_COMPILER],
846 [AC_REQUIRE([AC_PROG_CC])dnl
847
848 _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
849 _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
850 _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
851 _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
852
853 # If no C compiler was specified, use CC.
854 LTCC=${LTCC-"$CC"}
855
856 # If no C compiler flags were specified, use CFLAGS.
857 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
858
859 # Allow CC to be a program name with arguments.
860 compiler=$CC
861 ])# _LT_TAG_COMPILER
862
863
864 # _LT_COMPILER_BOILERPLATE
865 # ------------------------
866 # Check for compiler boilerplate output or warnings with
867 # the simple compiler test code.
868 m4_defun([_LT_COMPILER_BOILERPLATE],
869 [m4_require([_LT_DECL_SED])dnl
870 ac_outfile=conftest.$ac_objext
871 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
872 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
873 _lt_compiler_boilerplate=`cat conftest.err`
874 $RM conftest*
875 ])# _LT_COMPILER_BOILERPLATE
876
877
878 # _LT_LINKER_BOILERPLATE
879 # ----------------------
880 # Check for linker boilerplate output or warnings with
881 # the simple link test code.
882 m4_defun([_LT_LINKER_BOILERPLATE],
883 [m4_require([_LT_DECL_SED])dnl
884 ac_outfile=conftest.$ac_objext
885 echo "$lt_simple_link_test_code" >conftest.$ac_ext
886 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
887 _lt_linker_boilerplate=`cat conftest.err`
888 $RM -r conftest*
889 ])# _LT_LINKER_BOILERPLATE
890
891 # _LT_REQUIRED_DARWIN_CHECKS
892 # -------------------------
893 m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
894 case $host_os in
895 rhapsody* | darwin*)
896 AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
897 AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
898 AC_CHECK_TOOL([LIPO], [lipo], [:])
899 AC_CHECK_TOOL([OTOOL], [otool], [:])
900 AC_CHECK_TOOL([OTOOL64], [otool64], [:])
901 _LT_DECL([], [DSYMUTIL], [1],
902 [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
903 _LT_DECL([], [NMEDIT], [1],
904 [Tool to change global to local symbols on Mac OS X])
905 _LT_DECL([], [LIPO], [1],
906 [Tool to manipulate fat objects and archives on Mac OS X])
907 _LT_DECL([], [OTOOL], [1],
908 [ldd/readelf like tool for Mach-O binaries on Mac OS X])
909 _LT_DECL([], [OTOOL64], [1],
910 [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
911
912 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
913 [lt_cv_apple_cc_single_mod=no
914 if test -z "${LT_MULTI_MODULE}"; then
915 # By default we will add the -single_module flag. You can override
916 # by either setting the environment variable LT_MULTI_MODULE
917 # non-empty at configure time, or by adding -multi_module to the
918 # link flags.
919 rm -rf libconftest.dylib*
920 echo "int foo(void){return 1;}" > conftest.c
921 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
922 -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
923 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
924 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
925 _lt_result=$?
926 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
927 lt_cv_apple_cc_single_mod=yes
928 else
929 cat conftest.err >&AS_MESSAGE_LOG_FD
930 fi
931 rm -rf libconftest.dylib*
932 rm -f conftest.*
933 fi])
934 AC_CACHE_CHECK([for -exported_symbols_list linker flag],
935 [lt_cv_ld_exported_symbols_list],
936 [lt_cv_ld_exported_symbols_list=no
937 save_LDFLAGS=$LDFLAGS
938 echo "_main" > conftest.sym
939 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
940 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
941 [lt_cv_ld_exported_symbols_list=yes],
942 [lt_cv_ld_exported_symbols_list=no])
943 LDFLAGS="$save_LDFLAGS"
944 ])
945 case $host_os in
946 rhapsody* | darwin1.[[012]])
947 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
948 darwin1.*)
949 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
950 darwin*) # darwin 5.x on
951 # if running on 10.5 or later, the deployment target defaults
952 # to the OS version, if on x86, and 10.4, the deployment
953 # target defaults to 10.4. Don't you love it?
954 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
955 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
956 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
957 10.[[012]]*)
958 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
959 10.*)
960 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
961 esac
962 ;;
963 esac
964 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
965 _lt_dar_single_mod='$single_module'
966 fi
967 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
968 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
969 else
970 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
971 fi
972 if test "$DSYMUTIL" != ":"; then
973 _lt_dsymutil='~$DSYMUTIL $lib || :'
974 else
975 _lt_dsymutil=
976 fi
977 ;;
978 esac
979 ])
980
981
982 # _LT_DARWIN_LINKER_FEATURES
983 # --------------------------
984 # Checks for linker and compiler features on darwin
985 m4_defun([_LT_DARWIN_LINKER_FEATURES],
986 [
987 m4_require([_LT_REQUIRED_DARWIN_CHECKS])
988 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
989 _LT_TAGVAR(hardcode_direct, $1)=no
990 _LT_TAGVAR(hardcode_automatic, $1)=yes
991 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
992 _LT_TAGVAR(whole_archive_flag_spec, $1)=''
993 _LT_TAGVAR(link_all_deplibs, $1)=yes
994 _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
995 case $cc_basename in
996 ifort*) _lt_dar_can_shared=yes ;;
997 *) _lt_dar_can_shared=$GCC ;;
998 esac
999 if test "$_lt_dar_can_shared" = "yes"; then
1000 output_verbose_link_cmd=echo
1001 _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}"
1002 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1003 _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}"
1004 _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}"
1005 m4_if([$1], [CXX],
1006 [ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
1007 _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}"
1008 _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}"
1009 fi
1010 ],[])
1011 else
1012 _LT_TAGVAR(ld_shlibs, $1)=no
1013 fi
1014 ])
1015
1016 # _LT_SYS_MODULE_PATH_AIX
1017 # -----------------------
1018 # Links a minimal program and checks the executable
1019 # for the system default hardcoded library path. In most cases,
1020 # this is /usr/lib:/lib, but when the MPI compilers are used
1021 # the location of the communication and MPI libs are included too.
1022 # If we don't find anything, use the default library path according
1023 # to the aix ld manual.
1024 m4_defun([_LT_SYS_MODULE_PATH_AIX],
1025 [m4_require([_LT_DECL_SED])dnl
1026 AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1027 lt_aix_libpath_sed='
1028 /Import File Strings/,/^$/ {
1029 /^0/ {
1030 s/^0 *\(.*\)$/\1/
1031 p
1032 }
1033 }'
1034 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1035 # Check for a 64-bit object if we didn't find anything.
1036 if test -z "$aix_libpath"; then
1037 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1038 fi],[])
1039 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1040 ])# _LT_SYS_MODULE_PATH_AIX
1041
1042
1043 # _LT_SHELL_INIT(ARG)
1044 # -------------------
1045 m4_define([_LT_SHELL_INIT],
1046 [ifdef([AC_DIVERSION_NOTICE],
1047 [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
1048 [AC_DIVERT_PUSH(NOTICE)])
1049 $1
1050 AC_DIVERT_POP
1051 ])# _LT_SHELL_INIT
1052
1053
1054 # _LT_PROG_ECHO_BACKSLASH
1055 # -----------------------
1056 # Add some code to the start of the generated configure script which
1057 # will find an echo command which doesn't interpret backslashes.
1058 m4_defun([_LT_PROG_ECHO_BACKSLASH],
1059 [_LT_SHELL_INIT([
1060 # Check that we are running under the correct shell.
1061 SHELL=${CONFIG_SHELL-/bin/sh}
1062
1063 case X$lt_ECHO in
1064 X*--fallback-echo)
1065 # Remove one level of quotation (which was required for Make).
1066 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
1067 ;;
1068 esac
1069
1070 ECHO=${lt_ECHO-echo}
1071 if test "X[$]1" = X--no-reexec; then
1072 # Discard the --no-reexec flag, and continue.
1073 shift
1074 elif test "X[$]1" = X--fallback-echo; then
1075 # Avoid inline document here, it may be left over
1076 :
1077 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
1078 # Yippee, $ECHO works!
1079 :
1080 else
1081 # Restart under the correct shell.
1082 exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
1083 fi
1084
1085 if test "X[$]1" = X--fallback-echo; then
1086 # used as fallback echo
1087 shift
1088 cat <<_LT_EOF
1089 [$]*
1090 _LT_EOF
1091 exit 0
1092 fi
1093
1094 # The HP-UX ksh and POSIX shell print the target directory to stdout
1095 # if CDPATH is set.
1096 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1097
1098 if test -z "$lt_ECHO"; then
1099 if test "X${echo_test_string+set}" != Xset; then
1100 # find a string as large as possible, as long as the shell can cope with it
1101 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1102 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1103 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
1104 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
1105 then
1106 break
1107 fi
1108 done
1109 fi
1110
1111 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1112 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1113 test "X$echo_testing_string" = "X$echo_test_string"; then
1114 :
1115 else
1116 # The Solaris, AIX, and Digital Unix default echo programs unquote
1117 # backslashes. This makes it impossible to quote backslashes using
1118 # echo "$something" | sed 's/\\/\\\\/g'
1119 #
1120 # So, first we look for a working echo in the user's PATH.
1121
1122 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1123 for dir in $PATH /usr/ucb; do
1124 IFS="$lt_save_ifs"
1125 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
1126 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
1127 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
1128 test "X$echo_testing_string" = "X$echo_test_string"; then
1129 ECHO="$dir/echo"
1130 break
1131 fi
1132 done
1133 IFS="$lt_save_ifs"
1134
1135 if test "X$ECHO" = Xecho; then
1136 # We didn't find a better echo, so look for alternatives.
1137 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
1138 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
1139 test "X$echo_testing_string" = "X$echo_test_string"; then
1140 # This shell has a builtin print -r that does the trick.
1141 ECHO='print -r'
1142 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
1143 test "X$CONFIG_SHELL" != X/bin/ksh; then
1144 # If we have ksh, try running configure again with it.
1145 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1146 export ORIGINAL_CONFIG_SHELL
1147 CONFIG_SHELL=/bin/ksh
1148 export CONFIG_SHELL
1149 exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
1150 else
1151 # Try using printf.
1152 ECHO='printf %s\n'
1153 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1154 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1155 test "X$echo_testing_string" = "X$echo_test_string"; then
1156 # Cool, printf works
1157 :
1158 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1159 test "X$echo_testing_string" = 'X\t' &&
1160 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1161 test "X$echo_testing_string" = "X$echo_test_string"; then
1162 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
1163 export CONFIG_SHELL
1164 SHELL="$CONFIG_SHELL"
1165 export SHELL
1166 ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1167 elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1168 test "X$echo_testing_string" = 'X\t' &&
1169 echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1170 test "X$echo_testing_string" = "X$echo_test_string"; then
1171 ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1172 else
1173 # maybe with a smaller string...
1174 prev=:
1175
1176 for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
1177 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
1178 then
1179 break
1180 fi
1181 prev="$cmd"
1182 done
1183
1184 if test "$prev" != 'sed 50q "[$]0"'; then
1185 echo_test_string=`eval $prev`
1186 export echo_test_string
1187 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
1188 else
1189 # Oops. We lost completely, so just stick with echo.
1190 ECHO=echo
1191 fi
1192 fi
1193 fi
1194 fi
1195 fi
1196 fi
1197
1198 # Copy echo and quote the copy suitably for passing to libtool from
1199 # the Makefile, instead of quoting the original, which is used later.
1200 lt_ECHO=$ECHO
1201 if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
1202 lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
1203 fi
1204
1205 AC_SUBST(lt_ECHO)
1206 ])
1207 _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
1208 _LT_DECL([], [ECHO], [1],
1209 [An echo program that does not interpret backslashes])
1210 ])# _LT_PROG_ECHO_BACKSLASH
1211
1212
1213 # _LT_ENABLE_LOCK
1214 # ---------------
1215 m4_defun([_LT_ENABLE_LOCK],
1216 [AC_ARG_ENABLE([libtool-lock],
1217 [AS_HELP_STRING([--disable-libtool-lock],
1218 [avoid locking (might break parallel builds)])])
1219 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1220
1221 # Some flags need to be propagated to the compiler or linker for good
1222 # libtool support.
1223 case $host in
1224 ia64-*-hpux*)
1225 # Find out which ABI we are using.
1226 echo 'int i;' > conftest.$ac_ext
1227 if AC_TRY_EVAL(ac_compile); then
1228 case `/usr/bin/file conftest.$ac_objext` in
1229 *ELF-32*)
1230 HPUX_IA64_MODE="32"
1231 ;;
1232 *ELF-64*)
1233 HPUX_IA64_MODE="64"
1234 ;;
1235 esac
1236 fi
1237 rm -rf conftest*
1238 ;;
1239 *-*-irix6*)
1240 # Find out which ABI we are using.
1241 echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1242 if AC_TRY_EVAL(ac_compile); then
1243 if test "$lt_cv_prog_gnu_ld" = yes; then
1244 case `/usr/bin/file conftest.$ac_objext` in
1245 *32-bit*)
1246 LD="${LD-ld} -melf32bsmip"
1247 ;;
1248 *N32*)
1249 LD="${LD-ld} -melf32bmipn32"
1250 ;;
1251 *64-bit*)
1252 LD="${LD-ld} -melf64bmip"
1253 ;;
1254 esac
1255 else
1256 case `/usr/bin/file conftest.$ac_objext` in
1257 *32-bit*)
1258 LD="${LD-ld} -32"
1259 ;;
1260 *N32*)
1261 LD="${LD-ld} -n32"
1262 ;;
1263 *64-bit*)
1264 LD="${LD-ld} -64"
1265 ;;
1266 esac
1267 fi
1268 fi
1269 rm -rf conftest*
1270 ;;
1271
1272 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
1273 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
1274 # Find out which ABI we are using.
1275 echo 'int i;' > conftest.$ac_ext
1276 if AC_TRY_EVAL(ac_compile); then
1277 case `/usr/bin/file conftest.o` in
1278 *32-bit*)
1279 case $host in
1280 x86_64-*kfreebsd*-gnu)
1281 LD="${LD-ld} -m elf_i386_fbsd"
1282 ;;
1283 x86_64-*linux*)
1284 LD="${LD-ld} -m elf_i386"
1285 ;;
1286 ppc64-*linux*|powerpc64-*linux*)
1287 LD="${LD-ld} -m elf32ppclinux"
1288 ;;
1289 s390x-*linux*)
1290 LD="${LD-ld} -m elf_s390"
1291 ;;
1292 sparc64-*linux*)
1293 LD="${LD-ld} -m elf32_sparc"
1294 ;;
1295 esac
1296 ;;
1297 *64-bit*)
1298 case $host in
1299 x86_64-*kfreebsd*-gnu)
1300 LD="${LD-ld} -m elf_x86_64_fbsd"
1301 ;;
1302 x86_64-*linux*)
1303 LD="${LD-ld} -m elf_x86_64"
1304 ;;
1305 ppc*-*linux*|powerpc*-*linux*)
1306 LD="${LD-ld} -m elf64ppc"
1307 ;;
1308 s390*-*linux*|s390*-*tpf*)
1309 LD="${LD-ld} -m elf64_s390"
1310 ;;
1311 sparc*-*linux*)
1312 LD="${LD-ld} -m elf64_sparc"
1313 ;;
1314 esac
1315 ;;
1316 esac
1317 fi
1318 rm -rf conftest*
1319 ;;
1320
1321 *-*-sco3.2v5*)
1322 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1323 SAVE_CFLAGS="$CFLAGS"
1324 CFLAGS="$CFLAGS -belf"
1325 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1326 [AC_LANG_PUSH(C)
1327 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1328 AC_LANG_POP])
1329 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1330 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1331 CFLAGS="$SAVE_CFLAGS"
1332 fi
1333 ;;
1334 sparc*-*solaris*)
1335 # Find out which ABI we are using.
1336 echo 'int i;' > conftest.$ac_ext
1337 if AC_TRY_EVAL(ac_compile); then
1338 case `/usr/bin/file conftest.o` in
1339 *64-bit*)
1340 case $lt_cv_prog_gnu_ld in
1341 yes*) LD="${LD-ld} -m elf64_sparc" ;;
1342 *)
1343 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
1344 LD="${LD-ld} -64"
1345 fi
1346 ;;
1347 esac
1348 ;;
1349 esac
1350 fi
1351 rm -rf conftest*
1352 ;;
1353 esac
1354
1355 need_locks="$enable_libtool_lock"
1356 ])# _LT_ENABLE_LOCK
1357
1358
1359 # _LT_CMD_OLD_ARCHIVE
1360 # -------------------
1361 m4_defun([_LT_CMD_OLD_ARCHIVE],
1362 [AC_CHECK_TOOL(AR, ar, false)
1363 test -z "$AR" && AR=ar
1364 test -z "$AR_FLAGS" && AR_FLAGS=cru
1365 _LT_DECL([], [AR], [1], [The archiver])
1366 _LT_DECL([], [AR_FLAGS], [1])
1367
1368 AC_CHECK_TOOL(STRIP, strip, :)
1369 test -z "$STRIP" && STRIP=:
1370 _LT_DECL([], [STRIP], [1], [A symbol stripping program])
1371
1372 AC_CHECK_TOOL(RANLIB, ranlib, :)
170 test -z "$RANLIB" && RANLIB=: 1373 test -z "$RANLIB" && RANLIB=:
171 test -z "$STRIP" && STRIP=: 1374 _LT_DECL([], [RANLIB], [1],
172 test -z "$ac_objext" && ac_objext=o 1375 [Commands used to install an old-style archive])
173 1376
174 # Determine commands to create old-style static archives. 1377 # Determine commands to create old-style static archives.
175 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 1378 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
176 old_postinstall_cmds='chmod 644 $oldlib' 1379 old_postinstall_cmds='chmod 644 $oldlib'
177 old_postuninstall_cmds= 1380 old_postuninstall_cmds=
178 1381
179 if test -n "$RANLIB"; then 1382 if test -n "$RANLIB"; then
180 case $host_os in 1383 case $host_os in
185 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 1388 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
186 ;; 1389 ;;
187 esac 1390 esac
188 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 1391 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
189 fi 1392 fi
190 1393 _LT_DECL([], [old_postinstall_cmds], [2])
191 _LT_CC_BASENAME([$compiler]) 1394 _LT_DECL([], [old_postuninstall_cmds], [2])
192 1395 _LT_TAGDECL([], [old_archive_cmds], [2],
193 # Only perform the check for file, if the check method requires it 1396 [Commands used to build an old-style archive])
194 case $deplibs_check_method in 1397 ])# _LT_CMD_OLD_ARCHIVE
195 file_magic*) 1398
196 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 1399
197 AC_PATH_MAGIC 1400 # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
198 fi
199 ;;
200 esac
201
202 AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
203 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
204 enable_win32_dll=yes, enable_win32_dll=no)
205
206 AC_ARG_ENABLE([libtool-lock],
207 [AC_HELP_STRING([--disable-libtool-lock],
208 [avoid locking (might break parallel builds)])])
209 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
210
211 AC_ARG_WITH([pic],
212 [AC_HELP_STRING([--with-pic],
213 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
214 [pic_mode="$withval"],
215 [pic_mode=default])
216 test -z "$pic_mode" && pic_mode=default
217
218 # Use C for the default configuration in the libtool script
219 tagname=
220 AC_LIBTOOL_LANG_C_CONFIG
221 _LT_AC_TAGCONFIG
222 ])# AC_LIBTOOL_SETUP
223
224
225 # _LT_AC_SYS_COMPILER
226 # -------------------
227 AC_DEFUN([_LT_AC_SYS_COMPILER],
228 [AC_REQUIRE([AC_PROG_CC])dnl
229
230 # If no C compiler was specified, use CC.
231 LTCC=${LTCC-"$CC"}
232
233 # If no C compiler flags were specified, use CFLAGS.
234 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
235
236 # Allow CC to be a program name with arguments.
237 compiler=$CC
238 ])# _LT_AC_SYS_COMPILER
239
240
241 # _LT_CC_BASENAME(CC)
242 # -------------------
243 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
244 AC_DEFUN([_LT_CC_BASENAME],
245 [for cc_temp in $1""; do
246 case $cc_temp in
247 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
248 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
249 \-*) ;;
250 *) break;;
251 esac
252 done
253 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
254 ])
255
256
257 # _LT_COMPILER_BOILERPLATE
258 # ------------------------
259 # Check for compiler boilerplate output or warnings with
260 # the simple compiler test code.
261 AC_DEFUN([_LT_COMPILER_BOILERPLATE],
262 [ac_outfile=conftest.$ac_objext
263 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
264 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
265 _lt_compiler_boilerplate=`cat conftest.err`
266 $rm conftest*
267 ])# _LT_COMPILER_BOILERPLATE
268
269
270 # _LT_LINKER_BOILERPLATE
271 # ----------------------
272 # Check for linker boilerplate output or warnings with
273 # the simple link test code.
274 AC_DEFUN([_LT_LINKER_BOILERPLATE],
275 [ac_outfile=conftest.$ac_objext
276 printf "$lt_simple_link_test_code" >conftest.$ac_ext
277 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
278 _lt_linker_boilerplate=`cat conftest.err`
279 $rm conftest*
280 ])# _LT_LINKER_BOILERPLATE
281
282
283 # _LT_AC_SYS_LIBPATH_AIX
284 # ----------------------
285 # Links a minimal program and checks the executable
286 # for the system default hardcoded library path. In most cases,
287 # this is /usr/lib:/lib, but when the MPI compilers are used
288 # the location of the communication and MPI libs are included too.
289 # If we don't find anything, use the default library path according
290 # to the aix ld manual.
291 AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
292 [AC_LINK_IFELSE(AC_LANG_PROGRAM,[
293 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
294 }'`
295 # Check for a 64-bit object if we didn't find anything.
296 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
297 }'`; fi],[])
298 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
299 ])# _LT_AC_SYS_LIBPATH_AIX
300
301
302 # _LT_AC_SHELL_INIT(ARG)
303 # ----------------------
304 AC_DEFUN([_LT_AC_SHELL_INIT],
305 [ifdef([AC_DIVERSION_NOTICE],
306 [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
307 [AC_DIVERT_PUSH(NOTICE)])
308 $1
309 AC_DIVERT_POP
310 ])# _LT_AC_SHELL_INIT
311
312
313 # _LT_AC_PROG_ECHO_BACKSLASH
314 # --------------------------
315 # Add some code to the start of the generated configure script which
316 # will find an echo command which doesn't interpret backslashes.
317 AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
318 [_LT_AC_SHELL_INIT([
319 # Check that we are running under the correct shell.
320 SHELL=${CONFIG_SHELL-/bin/sh}
321
322 case X$ECHO in
323 X*--fallback-echo)
324 # Remove one level of quotation (which was required for Make).
325 ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
326 ;;
327 esac
328
329 echo=${ECHO-echo}
330 if test "X[$]1" = X--no-reexec; then
331 # Discard the --no-reexec flag, and continue.
332 shift
333 elif test "X[$]1" = X--fallback-echo; then
334 # Avoid inline document here, it may be left over
335 :
336 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
337 # Yippee, $echo works!
338 :
339 else
340 # Restart under the correct shell.
341 exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
342 fi
343
344 if test "X[$]1" = X--fallback-echo; then
345 # used as fallback echo
346 shift
347 cat <<EOF
348 [$]*
349 EOF
350 exit 0
351 fi
352
353 # The HP-UX ksh and POSIX shell print the target directory to stdout
354 # if CDPATH is set.
355 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
356
357 if test -z "$ECHO"; then
358 if test "X${echo_test_string+set}" != Xset; then
359 # find a string as large as possible, as long as the shell can cope with it
360 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
361 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
362 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
363 echo_test_string=`eval $cmd` &&
364 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
365 then
366 break
367 fi
368 done
369 fi
370
371 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
372 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
373 test "X$echo_testing_string" = "X$echo_test_string"; then
374 :
375 else
376 # The Solaris, AIX, and Digital Unix default echo programs unquote
377 # backslashes. This makes it impossible to quote backslashes using
378 # echo "$something" | sed 's/\\/\\\\/g'
379 #
380 # So, first we look for a working echo in the user's PATH.
381
382 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
383 for dir in $PATH /usr/ucb; do
384 IFS="$lt_save_ifs"
385 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
386 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
387 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
388 test "X$echo_testing_string" = "X$echo_test_string"; then
389 echo="$dir/echo"
390 break
391 fi
392 done
393 IFS="$lt_save_ifs"
394
395 if test "X$echo" = Xecho; then
396 # We didn't find a better echo, so look for alternatives.
397 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
398 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
399 test "X$echo_testing_string" = "X$echo_test_string"; then
400 # This shell has a builtin print -r that does the trick.
401 echo='print -r'
402 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
403 test "X$CONFIG_SHELL" != X/bin/ksh; then
404 # If we have ksh, try running configure again with it.
405 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
406 export ORIGINAL_CONFIG_SHELL
407 CONFIG_SHELL=/bin/ksh
408 export CONFIG_SHELL
409 exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
410 else
411 # Try using printf.
412 echo='printf %s\n'
413 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
414 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
415 test "X$echo_testing_string" = "X$echo_test_string"; then
416 # Cool, printf works
417 :
418 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
419 test "X$echo_testing_string" = 'X\t' &&
420 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
421 test "X$echo_testing_string" = "X$echo_test_string"; then
422 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
423 export CONFIG_SHELL
424 SHELL="$CONFIG_SHELL"
425 export SHELL
426 echo="$CONFIG_SHELL [$]0 --fallback-echo"
427 elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
428 test "X$echo_testing_string" = 'X\t' &&
429 echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
430 test "X$echo_testing_string" = "X$echo_test_string"; then
431 echo="$CONFIG_SHELL [$]0 --fallback-echo"
432 else
433 # maybe with a smaller string...
434 prev=:
435
436 for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
437 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
438 then
439 break
440 fi
441 prev="$cmd"
442 done
443
444 if test "$prev" != 'sed 50q "[$]0"'; then
445 echo_test_string=`eval $prev`
446 export echo_test_string
447 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
448 else
449 # Oops. We lost completely, so just stick with echo.
450 echo=echo
451 fi
452 fi
453 fi
454 fi
455 fi
456 fi
457
458 # Copy echo and quote the copy suitably for passing to libtool from
459 # the Makefile, instead of quoting the original, which is used later.
460 ECHO=$echo
461 if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
462 ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
463 fi
464
465 AC_SUBST(ECHO)
466 ])])# _LT_AC_PROG_ECHO_BACKSLASH
467
468
469 # _LT_AC_LOCK
470 # -----------
471 AC_DEFUN([_LT_AC_LOCK],
472 [AC_ARG_ENABLE([libtool-lock],
473 [AC_HELP_STRING([--disable-libtool-lock],
474 [avoid locking (might break parallel builds)])])
475 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
476
477 # Some flags need to be propagated to the compiler or linker for good
478 # libtool support.
479 case $host in
480 ia64-*-hpux*)
481 # Find out which ABI we are using.
482 echo 'int i;' > conftest.$ac_ext
483 if AC_TRY_EVAL(ac_compile); then
484 case `/usr/bin/file conftest.$ac_objext` in
485 *ELF-32*)
486 HPUX_IA64_MODE="32"
487 ;;
488 *ELF-64*)
489 HPUX_IA64_MODE="64"
490 ;;
491 esac
492 fi
493 rm -rf conftest*
494 ;;
495 *-*-irix6*)
496 # Find out which ABI we are using.
497 echo '[#]line __oline__ "configure"' > conftest.$ac_ext
498 if AC_TRY_EVAL(ac_compile); then
499 if test "$lt_cv_prog_gnu_ld" = yes; then
500 case `/usr/bin/file conftest.$ac_objext` in
501 *32-bit*)
502 LD="${LD-ld} -melf32bsmip"
503 ;;
504 *N32*)
505 LD="${LD-ld} -melf32bmipn32"
506 ;;
507 *64-bit*)
508 LD="${LD-ld} -melf64bmip"
509 ;;
510 esac
511 else
512 case `/usr/bin/file conftest.$ac_objext` in
513 *32-bit*)
514 LD="${LD-ld} -32"
515 ;;
516 *N32*)
517 LD="${LD-ld} -n32"
518 ;;
519 *64-bit*)
520 LD="${LD-ld} -64"
521 ;;
522 esac
523 fi
524 fi
525 rm -rf conftest*
526 ;;
527
528 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
529 # Find out which ABI we are using.
530 echo 'int i;' > conftest.$ac_ext
531 if AC_TRY_EVAL(ac_compile); then
532 case `/usr/bin/file conftest.o` in
533 *32-bit*)
534 case $host in
535 x86_64-*linux*)
536 LD="${LD-ld} -m elf_i386"
537 ;;
538 ppc64-*linux*|powerpc64-*linux*)
539 LD="${LD-ld} -m elf32ppclinux"
540 ;;
541 s390x-*linux*)
542 LD="${LD-ld} -m elf_s390"
543 ;;
544 sparc64-*linux*)
545 LD="${LD-ld} -m elf32_sparc"
546 ;;
547 esac
548 ;;
549 *64-bit*)
550 case $host in
551 x86_64-*linux*)
552 LD="${LD-ld} -m elf_x86_64"
553 ;;
554 ppc*-*linux*|powerpc*-*linux*)
555 LD="${LD-ld} -m elf64ppc"
556 ;;
557 s390*-*linux*)
558 LD="${LD-ld} -m elf64_s390"
559 ;;
560 sparc*-*linux*)
561 LD="${LD-ld} -m elf64_sparc"
562 ;;
563 esac
564 ;;
565 esac
566 fi
567 rm -rf conftest*
568 ;;
569
570 *-*-sco3.2v5*)
571 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
572 SAVE_CFLAGS="$CFLAGS"
573 CFLAGS="$CFLAGS -belf"
574 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
575 [AC_LANG_PUSH(C)
576 AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
577 AC_LANG_POP])
578 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
579 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
580 CFLAGS="$SAVE_CFLAGS"
581 fi
582 ;;
583 sparc*-*solaris*)
584 # Find out which ABI we are using.
585 echo 'int i;' > conftest.$ac_ext
586 if AC_TRY_EVAL(ac_compile); then
587 case `/usr/bin/file conftest.o` in
588 *64-bit*)
589 case $lt_cv_prog_gnu_ld in
590 yes*) LD="${LD-ld} -m elf64_sparc" ;;
591 *) LD="${LD-ld} -64" ;;
592 esac
593 ;;
594 esac
595 fi
596 rm -rf conftest*
597 ;;
598
599 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
600 [*-*-cygwin* | *-*-mingw* | *-*-pw32*)
601 AC_CHECK_TOOL(DLLTOOL, dlltool, false)
602 AC_CHECK_TOOL(AS, as, false)
603 AC_CHECK_TOOL(OBJDUMP, objdump, false)
604 ;;
605 ])
606 esac
607
608 need_locks="$enable_libtool_lock"
609
610 ])# _LT_AC_LOCK
611
612
613 # AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
614 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) 1401 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
615 # ---------------------------------------------------------------- 1402 # ----------------------------------------------------------------
616 # Check whether the given compiler option works 1403 # Check whether the given compiler option works
617 AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], 1404 AC_DEFUN([_LT_COMPILER_OPTION],
618 [AC_REQUIRE([LT_AC_PROG_SED]) 1405 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1406 m4_require([_LT_DECL_SED])dnl
619 AC_CACHE_CHECK([$1], [$2], 1407 AC_CACHE_CHECK([$1], [$2],
620 [$2=no 1408 [$2=no
621 ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) 1409 m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
622 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 1410 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
623 lt_compiler_flag="$3" 1411 lt_compiler_flag="$3"
624 # Insert the option either (1) after the last *FLAGS variable, or 1412 # Insert the option either (1) after the last *FLAGS variable, or
625 # (2) before a word containing "conftest.", or (3) at the end. 1413 # (2) before a word containing "conftest.", or (3) at the end.
626 # Note that $ac_compile itself does not contain backslashes and begins 1414 # Note that $ac_compile itself does not contain backslashes and begins
627 # with a dollar sign (not a hyphen), so the echo should work correctly. 1415 # with a dollar sign (not a hyphen), so the echo should work correctly.
636 cat conftest.err >&AS_MESSAGE_LOG_FD 1424 cat conftest.err >&AS_MESSAGE_LOG_FD
637 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 1425 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
638 if (exit $ac_status) && test -s "$ac_outfile"; then 1426 if (exit $ac_status) && test -s "$ac_outfile"; then
639 # The compiler can only warn and ignore the option if not recognized 1427 # The compiler can only warn and ignore the option if not recognized
640 # So say no if there are warnings other than the usual output. 1428 # So say no if there are warnings other than the usual output.
641 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 1429 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
642 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 1430 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
643 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 1431 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
644 $2=yes 1432 $2=yes
645 fi 1433 fi
646 fi 1434 fi
647 $rm conftest* 1435 $RM conftest*
648 ]) 1436 ])
649 1437
650 if test x"[$]$2" = xyes; then 1438 if test x"[$]$2" = xyes; then
651 ifelse([$5], , :, [$5]) 1439 m4_if([$5], , :, [$5])
652 else 1440 else
653 ifelse([$6], , :, [$6]) 1441 m4_if([$6], , :, [$6])
654 fi 1442 fi
655 ])# AC_LIBTOOL_COMPILER_OPTION 1443 ])# _LT_COMPILER_OPTION
656 1444
657 1445 # Old name:
658 # AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 1446 AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
659 # [ACTION-SUCCESS], [ACTION-FAILURE]) 1447 dnl aclocal-1.4 backwards compatibility:
660 # ------------------------------------------------------------ 1448 dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
661 # Check whether the given compiler option works 1449
662 AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], 1450
663 [AC_CACHE_CHECK([$1], [$2], 1451 # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1452 # [ACTION-SUCCESS], [ACTION-FAILURE])
1453 # ----------------------------------------------------
1454 # Check whether the given linker option works
1455 AC_DEFUN([_LT_LINKER_OPTION],
1456 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1457 m4_require([_LT_DECL_SED])dnl
1458 AC_CACHE_CHECK([$1], [$2],
664 [$2=no 1459 [$2=no
665 save_LDFLAGS="$LDFLAGS" 1460 save_LDFLAGS="$LDFLAGS"
666 LDFLAGS="$LDFLAGS $3" 1461 LDFLAGS="$LDFLAGS $3"
667 printf "$lt_simple_link_test_code" > conftest.$ac_ext 1462 echo "$lt_simple_link_test_code" > conftest.$ac_ext
668 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 1463 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
669 # The linker can only warn and ignore the option if not recognized 1464 # The linker can only warn and ignore the option if not recognized
670 # So say no if there are warnings 1465 # So say no if there are warnings
671 if test -s conftest.err; then 1466 if test -s conftest.err; then
672 # Append any errors to the config.log. 1467 # Append any errors to the config.log.
673 cat conftest.err 1>&AS_MESSAGE_LOG_FD 1468 cat conftest.err 1>&AS_MESSAGE_LOG_FD
674 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 1469 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
675 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 1470 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
676 if diff conftest.exp conftest.er2 >/dev/null; then 1471 if diff conftest.exp conftest.er2 >/dev/null; then
677 $2=yes 1472 $2=yes
678 fi 1473 fi
679 else 1474 else
680 $2=yes 1475 $2=yes
681 fi 1476 fi
682 fi 1477 fi
683 $rm conftest* 1478 $RM -r conftest*
684 LDFLAGS="$save_LDFLAGS" 1479 LDFLAGS="$save_LDFLAGS"
685 ]) 1480 ])
686 1481
687 if test x"[$]$2" = xyes; then 1482 if test x"[$]$2" = xyes; then
688 ifelse([$4], , :, [$4]) 1483 m4_if([$4], , :, [$4])
689 else 1484 else
690 ifelse([$5], , :, [$5]) 1485 m4_if([$5], , :, [$5])
691 fi 1486 fi
692 ])# AC_LIBTOOL_LINKER_OPTION 1487 ])# _LT_LINKER_OPTION
693 1488
694 1489 # Old name:
695 # AC_LIBTOOL_SYS_MAX_CMD_LEN 1490 AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
696 # -------------------------- 1491 dnl aclocal-1.4 backwards compatibility:
697 AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], 1492 dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
698 [# find the maximum length of command line arguments 1493
1494
1495 # LT_CMD_MAX_LEN
1496 #---------------
1497 AC_DEFUN([LT_CMD_MAX_LEN],
1498 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
1499 # find the maximum length of command line arguments
699 AC_MSG_CHECKING([the maximum length of command line arguments]) 1500 AC_MSG_CHECKING([the maximum length of command line arguments])
700 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl 1501 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
701 i=0 1502 i=0
702 teststring="ABCD" 1503 teststring="ABCD"
703 1504
715 # no limit to the length of command line arguments. 1516 # no limit to the length of command line arguments.
716 # Libtool will interpret -1 as no limit whatsoever 1517 # Libtool will interpret -1 as no limit whatsoever
717 lt_cv_sys_max_cmd_len=-1; 1518 lt_cv_sys_max_cmd_len=-1;
718 ;; 1519 ;;
719 1520
720 cygwin* | mingw*) 1521 cygwin* | mingw* | cegcc*)
721 # On Win9x/ME, this test blows up -- it succeeds, but takes 1522 # On Win9x/ME, this test blows up -- it succeeds, but takes
722 # about 5 minutes as the teststring grows exponentially. 1523 # about 5 minutes as the teststring grows exponentially.
723 # Worse, since 9x/ME are not pre-emptively multitasking, 1524 # Worse, since 9x/ME are not pre-emptively multitasking,
724 # you end up with a "frozen" computer, even though with patience 1525 # you end up with a "frozen" computer, even though with patience
725 # the test eventually succeeds (with a max line length of 256k). 1526 # the test eventually succeeds (with a max line length of 256k).
776 lt_cv_sys_max_cmd_len=102400 1577 lt_cv_sys_max_cmd_len=102400
777 ;; 1578 ;;
778 sysv5* | sco5v6* | sysv4.2uw2*) 1579 sysv5* | sco5v6* | sysv4.2uw2*)
779 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 1580 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
780 if test -n "$kargmax"; then 1581 if test -n "$kargmax"; then
781 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` 1582 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
782 else 1583 else
783 lt_cv_sys_max_cmd_len=32768 1584 lt_cv_sys_max_cmd_len=32768
784 fi 1585 fi
785 ;; 1586 ;;
786 *) 1587 *)
787 # If test is not a shell built-in, we'll probably end up computing a 1588 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
788 # maximum length that is only half of the actual maximum length, but 1589 if test -n "$lt_cv_sys_max_cmd_len"; then
789 # we can't tell. 1590 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
790 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 1591 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
791 while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \ 1592 else
792 = "XX$teststring") >/dev/null 2>&1 && 1593 # Make teststring a little bigger before we do anything with it.
793 new_result=`expr "X$teststring" : ".*" 2>&1` && 1594 # a 1K string should be a reasonable start.
794 lt_cv_sys_max_cmd_len=$new_result && 1595 for i in 1 2 3 4 5 6 7 8 ; do
795 test $i != 17 # 1/2 MB should be enough 1596 teststring=$teststring$teststring
796 do 1597 done
797 i=`expr $i + 1` 1598 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
798 teststring=$teststring$teststring 1599 # If test is not a shell built-in, we'll probably end up computing a
799 done 1600 # maximum length that is only half of the actual maximum length, but
800 teststring= 1601 # we can't tell.
801 # Add a significant safety factor because C++ compilers can tack on massive 1602 while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
802 # amounts of additional arguments before passing them to the linker. 1603 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
803 # It appears as though 1/2 is a usable value. 1604 test $i != 17 # 1/2 MB should be enough
804 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 1605 do
1606 i=`expr $i + 1`
1607 teststring=$teststring$teststring
1608 done
1609 # Only check the string length outside the loop.
1610 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
1611 teststring=
1612 # Add a significant safety factor because C++ compilers can tack on
1613 # massive amounts of additional arguments before passing them to the
1614 # linker. It appears as though 1/2 is a usable value.
1615 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1616 fi
805 ;; 1617 ;;
806 esac 1618 esac
807 ]) 1619 ])
808 if test -n $lt_cv_sys_max_cmd_len ; then 1620 if test -n $lt_cv_sys_max_cmd_len ; then
809 AC_MSG_RESULT($lt_cv_sys_max_cmd_len) 1621 AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
810 else 1622 else
811 AC_MSG_RESULT(none) 1623 AC_MSG_RESULT(none)
812 fi 1624 fi
813 ])# AC_LIBTOOL_SYS_MAX_CMD_LEN 1625 max_cmd_len=$lt_cv_sys_max_cmd_len
814 1626 _LT_DECL([], [max_cmd_len], [0],
815 1627 [What is the maximum length of a command?])
816 # _LT_AC_CHECK_DLFCN 1628 ])# LT_CMD_MAX_LEN
817 # ------------------ 1629
818 AC_DEFUN([_LT_AC_CHECK_DLFCN], 1630 # Old name:
819 [AC_CHECK_HEADERS(dlfcn.h)dnl 1631 AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
820 ])# _LT_AC_CHECK_DLFCN 1632 dnl aclocal-1.4 backwards compatibility:
821 1633 dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
822 1634
823 # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, 1635
824 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) 1636 # _LT_HEADER_DLFCN
825 # --------------------------------------------------------------------- 1637 # ----------------
826 AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], 1638 m4_defun([_LT_HEADER_DLFCN],
827 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl 1639 [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
1640 ])# _LT_HEADER_DLFCN
1641
1642
1643 # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1644 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1645 # ----------------------------------------------------------------
1646 m4_defun([_LT_TRY_DLOPEN_SELF],
1647 [m4_require([_LT_HEADER_DLFCN])dnl
828 if test "$cross_compiling" = yes; then : 1648 if test "$cross_compiling" = yes; then :
829 [$4] 1649 [$4]
830 else 1650 else
831 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 1651 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
832 lt_status=$lt_dlunknown 1652 lt_status=$lt_dlunknown
833 cat > conftest.$ac_ext <<EOF 1653 cat > conftest.$ac_ext <<_LT_EOF
834 [#line __oline__ "configure" 1654 [#line __oline__ "configure"
835 #include "confdefs.h" 1655 #include "confdefs.h"
836 1656
837 #if HAVE_DLFCN_H 1657 #if HAVE_DLFCN_H
838 #include <dlfcn.h> 1658 #include <dlfcn.h>
870 # endif 1690 # endif
871 # endif 1691 # endif
872 # endif 1692 # endif
873 #endif 1693 #endif
874 1694
875 #ifdef __cplusplus
876 extern "C" void exit (int);
877 #endif
878
879 void fnord() { int i=42;} 1695 void fnord() { int i=42;}
880 int main () 1696 int main ()
881 { 1697 {
882 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 1698 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
883 int status = $lt_dlunknown; 1699 int status = $lt_dlunknown;
889 /* dlclose (self); */ 1705 /* dlclose (self); */
890 } 1706 }
891 else 1707 else
892 puts (dlerror ()); 1708 puts (dlerror ());
893 1709
894 exit (status); 1710 return status;
895 }] 1711 }]
896 EOF 1712 _LT_EOF
897 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then 1713 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
898 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null 1714 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
899 lt_status=$? 1715 lt_status=$?
900 case x$lt_status in 1716 case x$lt_status in
901 x$lt_dlno_uscore) $1 ;; 1717 x$lt_dlno_uscore) $1 ;;
906 # compilation failed 1722 # compilation failed
907 $3 1723 $3
908 fi 1724 fi
909 fi 1725 fi
910 rm -fr conftest* 1726 rm -fr conftest*
911 ])# _LT_AC_TRY_DLOPEN_SELF 1727 ])# _LT_TRY_DLOPEN_SELF
912 1728
913 1729
914 # AC_LIBTOOL_DLOPEN_SELF 1730 # LT_SYS_DLOPEN_SELF
915 # ---------------------- 1731 # ------------------
916 AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], 1732 AC_DEFUN([LT_SYS_DLOPEN_SELF],
917 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl 1733 [m4_require([_LT_HEADER_DLFCN])dnl
918 if test "x$enable_dlopen" != xyes; then 1734 if test "x$enable_dlopen" != xyes; then
919 enable_dlopen=unknown 1735 enable_dlopen=unknown
920 enable_dlopen_self=unknown 1736 enable_dlopen_self=unknown
921 enable_dlopen_self_static=unknown 1737 enable_dlopen_self_static=unknown
922 else 1738 else
928 lt_cv_dlopen="load_add_on" 1744 lt_cv_dlopen="load_add_on"
929 lt_cv_dlopen_libs= 1745 lt_cv_dlopen_libs=
930 lt_cv_dlopen_self=yes 1746 lt_cv_dlopen_self=yes
931 ;; 1747 ;;
932 1748
933 mingw* | pw32*) 1749 mingw* | pw32* | cegcc*)
934 lt_cv_dlopen="LoadLibrary" 1750 lt_cv_dlopen="LoadLibrary"
935 lt_cv_dlopen_libs= 1751 lt_cv_dlopen_libs=
936 ;; 1752 ;;
937 1753
938 cygwin*) 1754 cygwin*)
939 lt_cv_dlopen="dlopen" 1755 lt_cv_dlopen="dlopen"
940 lt_cv_dlopen_libs= 1756 lt_cv_dlopen_libs=
941 ;; 1757 ;;
942 1758
943 darwin*) 1759 darwin*)
944 # if libdl is installed we need to link against it 1760 # if libdl is installed we need to link against it
945 AC_CHECK_LIB([dl], [dlopen], 1761 AC_CHECK_LIB([dl], [dlopen],
946 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ 1762 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
947 lt_cv_dlopen="dyld" 1763 lt_cv_dlopen="dyld"
948 lt_cv_dlopen_libs= 1764 lt_cv_dlopen_libs=
949 lt_cv_dlopen_self=yes 1765 lt_cv_dlopen_self=yes
950 ]) 1766 ])
951 ;; 1767 ;;
952 1768
953 *) 1769 *)
954 AC_CHECK_FUNC([shl_load], 1770 AC_CHECK_FUNC([shl_load],
955 [lt_cv_dlopen="shl_load"], 1771 [lt_cv_dlopen="shl_load"],
956 [AC_CHECK_LIB([dld], [shl_load], 1772 [AC_CHECK_LIB([dld], [shl_load],
957 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"], 1773 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
958 [AC_CHECK_FUNC([dlopen], 1774 [AC_CHECK_FUNC([dlopen],
959 [lt_cv_dlopen="dlopen"], 1775 [lt_cv_dlopen="dlopen"],
960 [AC_CHECK_LIB([dl], [dlopen], 1776 [AC_CHECK_LIB([dl], [dlopen],
961 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], 1777 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
962 [AC_CHECK_LIB([svld], [dlopen], 1778 [AC_CHECK_LIB([svld], [dlopen],
963 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], 1779 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
964 [AC_CHECK_LIB([dld], [dld_link], 1780 [AC_CHECK_LIB([dld], [dld_link],
965 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"]) 1781 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
966 ]) 1782 ])
967 ]) 1783 ])
968 ]) 1784 ])
969 ]) 1785 ])
970 ]) 1786 ])
988 save_LIBS="$LIBS" 1804 save_LIBS="$LIBS"
989 LIBS="$lt_cv_dlopen_libs $LIBS" 1805 LIBS="$lt_cv_dlopen_libs $LIBS"
990 1806
991 AC_CACHE_CHECK([whether a program can dlopen itself], 1807 AC_CACHE_CHECK([whether a program can dlopen itself],
992 lt_cv_dlopen_self, [dnl 1808 lt_cv_dlopen_self, [dnl
993 _LT_AC_TRY_DLOPEN_SELF( 1809 _LT_TRY_DLOPEN_SELF(
994 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, 1810 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
995 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) 1811 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
996 ]) 1812 ])
997 1813
998 if test "x$lt_cv_dlopen_self" = xyes; then 1814 if test "x$lt_cv_dlopen_self" = xyes; then
999 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 1815 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1000 AC_CACHE_CHECK([whether a statically linked program can dlopen itself], 1816 AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
1001 lt_cv_dlopen_self_static, [dnl 1817 lt_cv_dlopen_self_static, [dnl
1002 _LT_AC_TRY_DLOPEN_SELF( 1818 _LT_TRY_DLOPEN_SELF(
1003 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, 1819 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
1004 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) 1820 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
1005 ]) 1821 ])
1006 fi 1822 fi
1007 1823
1019 case $lt_cv_dlopen_self_static in 1835 case $lt_cv_dlopen_self_static in
1020 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 1836 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
1021 *) enable_dlopen_self_static=unknown ;; 1837 *) enable_dlopen_self_static=unknown ;;
1022 esac 1838 esac
1023 fi 1839 fi
1024 ])# AC_LIBTOOL_DLOPEN_SELF 1840 _LT_DECL([dlopen_support], [enable_dlopen], [0],
1025 1841 [Whether dlopen is supported])
1026 1842 _LT_DECL([dlopen_self], [enable_dlopen_self], [0],
1027 # AC_LIBTOOL_PROG_CC_C_O([TAGNAME]) 1843 [Whether dlopen of programs is supported])
1028 # --------------------------------- 1844 _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
1029 # Check to see if options -c and -o are simultaneously supported by compiler 1845 [Whether dlopen of statically linked programs is supported])
1030 AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O], 1846 ])# LT_SYS_DLOPEN_SELF
1031 [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl 1847
1848 # Old name:
1849 AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
1850 dnl aclocal-1.4 backwards compatibility:
1851 dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
1852
1853
1854 # _LT_COMPILER_C_O([TAGNAME])
1855 # ---------------------------
1856 # Check to see if options -c and -o are simultaneously supported by compiler.
1857 # This macro does not hard code the compiler like AC_PROG_CC_C_O.
1858 m4_defun([_LT_COMPILER_C_O],
1859 [m4_require([_LT_DECL_SED])dnl
1860 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1861 m4_require([_LT_TAG_COMPILER])dnl
1032 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], 1862 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1033 [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)], 1863 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1034 [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no 1864 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1035 $rm -r conftest 2>/dev/null 1865 $RM -r conftest 2>/dev/null
1036 mkdir conftest 1866 mkdir conftest
1037 cd conftest 1867 cd conftest
1038 mkdir out 1868 mkdir out
1039 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 1869 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1040 1870
1041 lt_compiler_flag="-o out/conftest2.$ac_objext" 1871 lt_compiler_flag="-o out/conftest2.$ac_objext"
1042 # Insert the option either (1) after the last *FLAGS variable, or 1872 # Insert the option either (1) after the last *FLAGS variable, or
1043 # (2) before a word containing "conftest.", or (3) at the end. 1873 # (2) before a word containing "conftest.", or (3) at the end.
1044 # Note that $ac_compile itself does not contain backslashes and begins 1874 # Note that $ac_compile itself does not contain backslashes and begins
1054 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 1884 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1055 if (exit $ac_status) && test -s out/conftest2.$ac_objext 1885 if (exit $ac_status) && test -s out/conftest2.$ac_objext
1056 then 1886 then
1057 # The compiler can only warn and ignore the option if not recognized 1887 # The compiler can only warn and ignore the option if not recognized
1058 # So say no if there are warnings 1888 # So say no if there are warnings
1059 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 1889 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
1060 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 1890 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
1061 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 1891 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1062 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 1892 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1063 fi 1893 fi
1064 fi 1894 fi
1065 chmod u+w . 2>&AS_MESSAGE_LOG_FD 1895 chmod u+w . 2>&AS_MESSAGE_LOG_FD
1066 $rm conftest* 1896 $RM conftest*
1067 # SGI C++ compiler will create directory out/ii_files/ for 1897 # SGI C++ compiler will create directory out/ii_files/ for
1068 # template instantiation 1898 # template instantiation
1069 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 1899 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
1070 $rm out/* && rmdir out 1900 $RM out/* && rmdir out
1071 cd .. 1901 cd ..
1072 rmdir conftest 1902 $RM -r conftest
1073 $rm conftest* 1903 $RM conftest*
1074 ]) 1904 ])
1075 ])# AC_LIBTOOL_PROG_CC_C_O 1905 _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
1076 1906 [Does compiler simultaneously support -c and -o options?])
1077 1907 ])# _LT_COMPILER_C_O
1078 # AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME]) 1908
1079 # ----------------------------------------- 1909
1910 # _LT_COMPILER_FILE_LOCKS([TAGNAME])
1911 # ----------------------------------
1080 # Check to see if we can do hard links to lock some files if needed 1912 # Check to see if we can do hard links to lock some files if needed
1081 AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], 1913 m4_defun([_LT_COMPILER_FILE_LOCKS],
1082 [AC_REQUIRE([_LT_AC_LOCK])dnl 1914 [m4_require([_LT_ENABLE_LOCK])dnl
1915 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1916 _LT_COMPILER_C_O([$1])
1083 1917
1084 hard_links="nottested" 1918 hard_links="nottested"
1085 if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then 1919 if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
1086 # do not overwrite the value of need_locks provided by the user 1920 # do not overwrite the value of need_locks provided by the user
1087 AC_MSG_CHECKING([if we can lock with hard links]) 1921 AC_MSG_CHECKING([if we can lock with hard links])
1088 hard_links=yes 1922 hard_links=yes
1089 $rm conftest* 1923 $RM conftest*
1090 ln conftest.a conftest.b 2>/dev/null && hard_links=no 1924 ln conftest.a conftest.b 2>/dev/null && hard_links=no
1091 touch conftest.a 1925 touch conftest.a
1092 ln conftest.a conftest.b 2>&5 || hard_links=no 1926 ln conftest.a conftest.b 2>&5 || hard_links=no
1093 ln conftest.a conftest.b 2>/dev/null && hard_links=no 1927 ln conftest.a conftest.b 2>/dev/null && hard_links=no
1094 AC_MSG_RESULT([$hard_links]) 1928 AC_MSG_RESULT([$hard_links])
1097 need_locks=warn 1931 need_locks=warn
1098 fi 1932 fi
1099 else 1933 else
1100 need_locks=no 1934 need_locks=no
1101 fi 1935 fi
1102 ])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS 1936 _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
1103 1937 ])# _LT_COMPILER_FILE_LOCKS
1104 1938
1105 # AC_LIBTOOL_OBJDIR 1939
1106 # ----------------- 1940 # _LT_CHECK_OBJDIR
1107 AC_DEFUN([AC_LIBTOOL_OBJDIR], 1941 # ----------------
1942 m4_defun([_LT_CHECK_OBJDIR],
1108 [AC_CACHE_CHECK([for objdir], [lt_cv_objdir], 1943 [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
1109 [rm -f .libs 2>/dev/null 1944 [rm -f .libs 2>/dev/null
1110 mkdir .libs 2>/dev/null 1945 mkdir .libs 2>/dev/null
1111 if test -d .libs; then 1946 if test -d .libs; then
1112 lt_cv_objdir=.libs 1947 lt_cv_objdir=.libs
1114 # MS-DOS does not allow filenames that begin with a dot. 1949 # MS-DOS does not allow filenames that begin with a dot.
1115 lt_cv_objdir=_libs 1950 lt_cv_objdir=_libs
1116 fi 1951 fi
1117 rmdir .libs 2>/dev/null]) 1952 rmdir .libs 2>/dev/null])
1118 objdir=$lt_cv_objdir 1953 objdir=$lt_cv_objdir
1119 ])# AC_LIBTOOL_OBJDIR 1954 _LT_DECL([], [objdir], [0],
1120 1955 [The name of the directory that contains temporary libtool files])dnl
1121 1956 m4_pattern_allow([LT_OBJDIR])dnl
1122 # AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME]) 1957 AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
1123 # ---------------------------------------------- 1958 [Define to the sub-directory in which libtool stores uninstalled libraries.])
1959 ])# _LT_CHECK_OBJDIR
1960
1961
1962 # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
1963 # --------------------------------------
1124 # Check hardcoding attributes. 1964 # Check hardcoding attributes.
1125 AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], 1965 m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
1126 [AC_MSG_CHECKING([how to hardcode library paths into programs]) 1966 [AC_MSG_CHECKING([how to hardcode library paths into programs])
1127 _LT_AC_TAGVAR(hardcode_action, $1)= 1967 _LT_TAGVAR(hardcode_action, $1)=
1128 if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \ 1968 if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
1129 test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \ 1969 test -n "$_LT_TAGVAR(runpath_var, $1)" ||
1130 test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then 1970 test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
1131 1971
1132 # We can hardcode non-existant directories. 1972 # We can hardcode non-existent directories.
1133 if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no && 1973 if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
1134 # If the only mechanism to avoid hardcoding is shlibpath_var, we 1974 # If the only mechanism to avoid hardcoding is shlibpath_var, we
1135 # have to relink, otherwise we might link with an installed library 1975 # have to relink, otherwise we might link with an installed library
1136 # when we should be linking with a yet-to-be-installed one 1976 # when we should be linking with a yet-to-be-installed one
1137 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no && 1977 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
1138 test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then 1978 test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
1139 # Linking always hardcodes the temporary library directory. 1979 # Linking always hardcodes the temporary library directory.
1140 _LT_AC_TAGVAR(hardcode_action, $1)=relink 1980 _LT_TAGVAR(hardcode_action, $1)=relink
1141 else 1981 else
1142 # We can link without hardcoding, and we can hardcode nonexisting dirs. 1982 # We can link without hardcoding, and we can hardcode nonexisting dirs.
1143 _LT_AC_TAGVAR(hardcode_action, $1)=immediate 1983 _LT_TAGVAR(hardcode_action, $1)=immediate
1144 fi 1984 fi
1145 else 1985 else
1146 # We cannot hardcode anything, or else we can only hardcode existing 1986 # We cannot hardcode anything, or else we can only hardcode existing
1147 # directories. 1987 # directories.
1148 _LT_AC_TAGVAR(hardcode_action, $1)=unsupported 1988 _LT_TAGVAR(hardcode_action, $1)=unsupported
1149 fi 1989 fi
1150 AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)]) 1990 AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
1151 1991
1152 if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then 1992 if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
1993 test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
1153 # Fast installation is not supported 1994 # Fast installation is not supported
1154 enable_fast_install=no 1995 enable_fast_install=no
1155 elif test "$shlibpath_overrides_runpath" = yes || 1996 elif test "$shlibpath_overrides_runpath" = yes ||
1156 test "$enable_shared" = no; then 1997 test "$enable_shared" = no; then
1157 # Fast installation is not necessary 1998 # Fast installation is not necessary
1158 enable_fast_install=needless 1999 enable_fast_install=needless
1159 fi 2000 fi
1160 ])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH 2001 _LT_TAGDECL([], [hardcode_action], [0],
1161 2002 [How to hardcode a shared library path into an executable])
1162 2003 ])# _LT_LINKER_HARDCODE_LIBPATH
1163 # AC_LIBTOOL_SYS_LIB_STRIP 2004
1164 # ------------------------ 2005
1165 AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP], 2006 # _LT_CMD_STRIPLIB
1166 [striplib= 2007 # ----------------
2008 m4_defun([_LT_CMD_STRIPLIB],
2009 [m4_require([_LT_DECL_EGREP])
2010 striplib=
1167 old_striplib= 2011 old_striplib=
1168 AC_MSG_CHECKING([whether stripping libraries is possible]) 2012 AC_MSG_CHECKING([whether stripping libraries is possible])
1169 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 2013 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
1170 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 2014 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
1171 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 2015 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1172 AC_MSG_RESULT([yes]) 2016 AC_MSG_RESULT([yes])
1173 else 2017 else
1174 # FIXME - insert some real tests, host_os isn't really good enough 2018 # FIXME - insert some real tests, host_os isn't really good enough
1175 case $host_os in 2019 case $host_os in
1176 darwin*) 2020 darwin*)
1177 if test -n "$STRIP" ; then 2021 if test -n "$STRIP" ; then
1178 striplib="$STRIP -x" 2022 striplib="$STRIP -x"
1179 AC_MSG_RESULT([yes]) 2023 old_striplib="$STRIP -S"
1180 else 2024 AC_MSG_RESULT([yes])
1181 AC_MSG_RESULT([no]) 2025 else
1182 fi 2026 AC_MSG_RESULT([no])
1183 ;; 2027 fi
1184 *) 2028 ;;
1185 AC_MSG_RESULT([no]) 2029 *)
2030 AC_MSG_RESULT([no])
1186 ;; 2031 ;;
1187 esac 2032 esac
1188 fi 2033 fi
1189 ])# AC_LIBTOOL_SYS_LIB_STRIP 2034 _LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
1190 2035 _LT_DECL([], [striplib], [1])
1191 2036 ])# _LT_CMD_STRIPLIB
1192 # AC_LIBTOOL_SYS_DYNAMIC_LINKER 2037
2038
2039 # _LT_SYS_DYNAMIC_LINKER([TAG])
1193 # ----------------------------- 2040 # -----------------------------
1194 # PORTME Fill in your ld.so characteristics 2041 # PORTME Fill in your ld.so characteristics
1195 AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER], 2042 m4_defun([_LT_SYS_DYNAMIC_LINKER],
1196 [AC_MSG_CHECKING([dynamic linker characteristics]) 2043 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
2044 m4_require([_LT_DECL_EGREP])dnl
2045 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2046 m4_require([_LT_DECL_OBJDUMP])dnl
2047 m4_require([_LT_DECL_SED])dnl
2048 AC_MSG_CHECKING([dynamic linker characteristics])
2049 m4_if([$1],
2050 [], [
2051 if test "$GCC" = yes; then
2052 case $host_os in
2053 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
2054 *) lt_awk_arg="/^libraries:/" ;;
2055 esac
2056 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2057 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
2058 # if the path contains ";" then we assume it to be the separator
2059 # otherwise default to the standard path separator (i.e. ":") - it is
2060 # assumed that no part of a normal pathname contains ";" but that should
2061 # okay in the real world where ";" in dirpaths is itself problematic.
2062 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
2063 else
2064 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2065 fi
2066 # Ok, now we have the path, separated by spaces, we can step through it
2067 # and add multilib dir if necessary.
2068 lt_tmp_lt_search_path_spec=
2069 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
2070 for lt_sys_path in $lt_search_path_spec; do
2071 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
2072 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
2073 else
2074 test -d "$lt_sys_path" && \
2075 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
2076 fi
2077 done
2078 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
2079 BEGIN {RS=" "; FS="/|\n";} {
2080 lt_foo="";
2081 lt_count=0;
2082 for (lt_i = NF; lt_i > 0; lt_i--) {
2083 if ($lt_i != "" && $lt_i != ".") {
2084 if ($lt_i == "..") {
2085 lt_count++;
2086 } else {
2087 if (lt_count == 0) {
2088 lt_foo="/" $lt_i lt_foo;
2089 } else {
2090 lt_count--;
2091 }
2092 }
2093 }
2094 }
2095 if (lt_foo != "") { lt_freq[[lt_foo]]++; }
2096 if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
2097 }'`
2098 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
2099 else
2100 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2101 fi])
1197 library_names_spec= 2102 library_names_spec=
1198 libname_spec='lib$name' 2103 libname_spec='lib$name'
1199 soname_spec= 2104 soname_spec=
1200 shrext_cmds=".so" 2105 shrext_cmds=".so"
1201 postinstall_cmds= 2106 postinstall_cmds=
1205 shlibpath_var= 2110 shlibpath_var=
1206 shlibpath_overrides_runpath=unknown 2111 shlibpath_overrides_runpath=unknown
1207 version_type=none 2112 version_type=none
1208 dynamic_linker="$host_os ld.so" 2113 dynamic_linker="$host_os ld.so"
1209 sys_lib_dlsearch_path_spec="/lib /usr/lib" 2114 sys_lib_dlsearch_path_spec="/lib /usr/lib"
1210 if test "$GCC" = yes; then
1211 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1212 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
1213 # if the path contains ";" then we assume it to be the separator
1214 # otherwise default to the standard path separator (i.e. ":") - it is
1215 # assumed that no part of a normal pathname contains ";" but that should
1216 # okay in the real world where ";" in dirpaths is itself problematic.
1217 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1218 else
1219 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1220 fi
1221 else
1222 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1223 fi
1224 need_lib_prefix=unknown 2115 need_lib_prefix=unknown
1225 hardcode_into_libs=no 2116 hardcode_into_libs=no
1226 2117
1227 # when you set need_version to no, make sure it does not cause -set_version 2118 # when you set need_version to no, make sure it does not cause -set_version
1228 # flags to be left without arguments 2119 # flags to be left without arguments
1236 2127
1237 # AIX 3 has no versioning support, so we append a major version to the name. 2128 # AIX 3 has no versioning support, so we append a major version to the name.
1238 soname_spec='${libname}${release}${shared_ext}$major' 2129 soname_spec='${libname}${release}${shared_ext}$major'
1239 ;; 2130 ;;
1240 2131
1241 aix4* | aix5*) 2132 aix[[4-9]]*)
1242 version_type=linux 2133 version_type=linux
1243 need_lib_prefix=no 2134 need_lib_prefix=no
1244 need_version=no 2135 need_version=no
1245 hardcode_into_libs=yes 2136 hardcode_into_libs=yes
1246 if test "$host_cpu" = ia64; then 2137 if test "$host_cpu" = ia64; then
1255 # development snapshots of GCC prior to 3.0. 2146 # development snapshots of GCC prior to 3.0.
1256 case $host_os in 2147 case $host_os in
1257 aix4 | aix4.[[01]] | aix4.[[01]].*) 2148 aix4 | aix4.[[01]] | aix4.[[01]].*)
1258 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 2149 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
1259 echo ' yes ' 2150 echo ' yes '
1260 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 2151 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
1261 : 2152 :
1262 else 2153 else
1263 can_build_shared=no 2154 can_build_shared=no
1264 fi 2155 fi
1265 ;; 2156 ;;
1281 shlibpath_var=LIBPATH 2172 shlibpath_var=LIBPATH
1282 fi 2173 fi
1283 ;; 2174 ;;
1284 2175
1285 amigaos*) 2176 amigaos*)
1286 library_names_spec='$libname.ixlibrary $libname.a' 2177 case $host_cpu in
1287 # Create ${libname}_ixlibrary.a entries in /sys/libs. 2178 powerpc)
1288 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' 2179 # Since July 2007 AmigaOS4 officially supports .so libraries.
2180 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
2181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2182 ;;
2183 m68k)
2184 library_names_spec='$libname.ixlibrary $libname.a'
2185 # Create ${libname}_ixlibrary.a entries in /sys/libs.
2186 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'
2187 ;;
2188 esac
1289 ;; 2189 ;;
1290 2190
1291 beos*) 2191 beos*)
1292 library_names_spec='${libname}${shared_ext}' 2192 library_names_spec='${libname}${shared_ext}'
1293 dynamic_linker="$host_os ld.so" 2193 dynamic_linker="$host_os ld.so"
1306 # the default ld.so.conf also contains /usr/contrib/lib and 2206 # the default ld.so.conf also contains /usr/contrib/lib and
1307 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 2207 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
1308 # libtool to hard-code these into programs 2208 # libtool to hard-code these into programs
1309 ;; 2209 ;;
1310 2210
1311 cygwin* | mingw* | pw32*) 2211 cygwin* | mingw* | pw32* | cegcc*)
1312 version_type=windows 2212 version_type=windows
1313 shrext_cmds=".dll" 2213 shrext_cmds=".dll"
1314 need_version=no 2214 need_version=no
1315 need_lib_prefix=no 2215 need_lib_prefix=no
1316 2216
1317 case $GCC,$host_os in 2217 case $GCC,$host_os in
1318 yes,cygwin* | yes,mingw* | yes,pw32*) 2218 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
1319 library_names_spec='$libname.dll.a' 2219 library_names_spec='$libname.dll.a'
1320 # DLL is installed to $(libdir)/../bin by postinstall_cmds 2220 # DLL is installed to $(libdir)/../bin by postinstall_cmds
1321 postinstall_cmds='base_file=`basename \${file}`~ 2221 postinstall_cmds='base_file=`basename \${file}`~
1322 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 2222 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
1323 dldir=$destdir/`dirname \$dlpath`~ 2223 dldir=$destdir/`dirname \$dlpath`~
1324 test -d \$dldir || mkdir -p \$dldir~ 2224 test -d \$dldir || mkdir -p \$dldir~
1325 $install_prog $dir/$dlname \$dldir/$dlname~ 2225 $install_prog $dir/$dlname \$dldir/$dlname~
1326 chmod a+x \$dldir/$dlname' 2226 chmod a+x \$dldir/$dlname~
2227 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
2228 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
2229 fi'
1327 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 2230 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
1328 dlpath=$dir/\$dldll~ 2231 dlpath=$dir/\$dldll~
1329 $rm \$dlpath' 2232 $RM \$dlpath'
1330 shlibpath_overrides_runpath=yes 2233 shlibpath_overrides_runpath=yes
1331 2234
1332 case $host_os in 2235 case $host_os in
1333 cygwin*) 2236 cygwin*)
1334 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 2237 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
1335 #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 2238 #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1336 soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}' 2239 soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
1337 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 2240 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
1338 ;; 2241 ;;
1339 mingw*) 2242 mingw* | cegcc*)
1340 # MinGW DLLs use traditional 'lib' prefix 2243 # MinGW DLLs use traditional 'lib' prefix
1341 #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 2244 #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1342 soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}' 2245 soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
1343 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 2246 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1344 if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then 2247 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
1345 # It is most probably a Windows format PATH printed by 2248 # It is most probably a Windows format PATH printed by
1346 # mingw gcc, but we are running on Cygwin. Gcc prints its search 2249 # mingw gcc, but we are running on Cygwin. Gcc prints its search
1347 # path with ; separators, and with drive letters. We can handle the 2250 # path with ; separators, and with drive letters. We can handle the
1348 # drive letters (cygwin fileutils understands them), so leave them, 2251 # drive letters (cygwin fileutils understands them), so leave them,
1349 # especially as we might pass files found there to a mingw objdump, 2252 # especially as we might pass files found there to a mingw objdump,
1350 # which wouldn't understand a cygwinified path. Ahh. 2253 # which wouldn't understand a cygwinified path. Ahh.
1351 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 2254 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1352 else 2255 else
1353 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 2256 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1354 fi 2257 fi
1355 ;; 2258 ;;
1356 pw32*) 2259 pw32*)
1357 # pw32 DLLs use 'pw' prefix rather than 'lib' 2260 # pw32 DLLs use 'pw' prefix rather than 'lib'
1358 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 2261 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1372 darwin* | rhapsody*) 2275 darwin* | rhapsody*)
1373 dynamic_linker="$host_os dyld" 2276 dynamic_linker="$host_os dyld"
1374 version_type=darwin 2277 version_type=darwin
1375 need_lib_prefix=no 2278 need_lib_prefix=no
1376 need_version=no 2279 need_version=no
1377 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 2280 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
1378 soname_spec='${libname}${release}${major}$shared_ext' 2281 soname_spec='${libname}${release}${major}$shared_ext'
1379 shlibpath_overrides_runpath=yes 2282 shlibpath_overrides_runpath=yes
1380 shlibpath_var=DYLD_LIBRARY_PATH 2283 shlibpath_var=DYLD_LIBRARY_PATH
1381 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 2284 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1382 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 2285 m4_if([$1], [],[
1383 if test "$GCC" = yes; then 2286 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
1384 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
1385 else
1386 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
1387 fi
1388 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 2287 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
1389 ;; 2288 ;;
1390 2289
1391 dgux*) 2290 dgux*)
1392 version_type=linux 2291 version_type=linux
1397 shlibpath_var=LD_LIBRARY_PATH 2296 shlibpath_var=LD_LIBRARY_PATH
1398 ;; 2297 ;;
1399 2298
1400 freebsd1*) 2299 freebsd1*)
1401 dynamic_linker=no 2300 dynamic_linker=no
1402 ;;
1403
1404 kfreebsd*-gnu)
1405 version_type=linux
1406 need_lib_prefix=no
1407 need_version=no
1408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1409 soname_spec='${libname}${release}${shared_ext}$major'
1410 shlibpath_var=LD_LIBRARY_PATH
1411 shlibpath_overrides_runpath=no
1412 hardcode_into_libs=yes
1413 dynamic_linker='GNU ld.so'
1414 ;; 2301 ;;
1415 2302
1416 freebsd* | dragonfly*) 2303 freebsd* | dragonfly*)
1417 # DragonFly does not have aout. When/if they implement a new 2304 # DragonFly does not have aout. When/if they implement a new
1418 # versioning mechanism, adjust this. 2305 # versioning mechanism, adjust this.
1448 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ 2335 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
1449 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) 2336 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
1450 shlibpath_overrides_runpath=no 2337 shlibpath_overrides_runpath=no
1451 hardcode_into_libs=yes 2338 hardcode_into_libs=yes
1452 ;; 2339 ;;
1453 freebsd*) # from 4.6 on 2340 *) # from 4.6 on, and DragonFly
1454 shlibpath_overrides_runpath=yes 2341 shlibpath_overrides_runpath=yes
1455 hardcode_into_libs=yes 2342 hardcode_into_libs=yes
1456 ;; 2343 ;;
1457 esac 2344 esac
1458 ;; 2345 ;;
1487 else 2374 else
1488 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 2375 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
1489 fi 2376 fi
1490 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 2377 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1491 ;; 2378 ;;
1492 hppa*64*) 2379 hppa*64*)
1493 shrext_cmds='.sl' 2380 shrext_cmds='.sl'
1494 hardcode_into_libs=yes 2381 hardcode_into_libs=yes
1495 dynamic_linker="$host_os dld.sl" 2382 dynamic_linker="$host_os dld.sl"
1496 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 2383 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
1497 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 2384 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1499 soname_spec='${libname}${release}${shared_ext}$major' 2386 soname_spec='${libname}${release}${shared_ext}$major'
1500 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 2387 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
1501 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 2388 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1502 ;; 2389 ;;
1503 *) 2390 *)
1504 shrext_cmds='.sl' 2391 shrext_cmds='.sl'
1505 dynamic_linker="$host_os dld.sl" 2392 dynamic_linker="$host_os dld.sl"
1506 shlibpath_var=SHLIB_PATH 2393 shlibpath_var=SHLIB_PATH
1507 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 2394 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
1508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1511 esac 2398 esac
1512 # HP-UX runs *really* slowly unless shared libraries are mode 555. 2399 # HP-UX runs *really* slowly unless shared libraries are mode 555.
1513 postinstall_cmds='chmod 555 $lib' 2400 postinstall_cmds='chmod 555 $lib'
1514 ;; 2401 ;;
1515 2402
1516 interix3*) 2403 interix[[3-9]]*)
1517 version_type=linux 2404 version_type=linux
1518 need_lib_prefix=no 2405 need_lib_prefix=no
1519 need_version=no 2406 need_version=no
1520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 2407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1521 soname_spec='${libname}${release}${shared_ext}$major' 2408 soname_spec='${libname}${release}${shared_ext}$major'
1566 linux*oldld* | linux*aout* | linux*coff*) 2453 linux*oldld* | linux*aout* | linux*coff*)
1567 dynamic_linker=no 2454 dynamic_linker=no
1568 ;; 2455 ;;
1569 2456
1570 # This must be Linux ELF. 2457 # This must be Linux ELF.
1571 linux*) 2458 linux* | k*bsd*-gnu)
1572 version_type=linux 2459 version_type=linux
1573 need_lib_prefix=no 2460 need_lib_prefix=no
1574 need_version=no 2461 need_version=no
1575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1576 soname_spec='${libname}${release}${shared_ext}$major' 2463 soname_spec='${libname}${release}${shared_ext}$major'
1577 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 2464 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
1578 shlibpath_var=LD_LIBRARY_PATH 2465 shlibpath_var=LD_LIBRARY_PATH
1579 shlibpath_overrides_runpath=no 2466 shlibpath_overrides_runpath=no
2467 # Some binutils ld are patched to set DT_RUNPATH
2468 save_LDFLAGS=$LDFLAGS
2469 save_libdir=$libdir
2470 eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
2471 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
2472 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
2473 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
2474 [shlibpath_overrides_runpath=yes])])
2475 LDFLAGS=$save_LDFLAGS
2476 libdir=$save_libdir
2477
1580 # This implies no fast_install, which is unacceptable. 2478 # This implies no fast_install, which is unacceptable.
1581 # Some rework will be needed to allow for fast_install 2479 # Some rework will be needed to allow for fast_install
1582 # before this can be enabled. 2480 # before this can be enabled.
1583 hardcode_into_libs=yes 2481 hardcode_into_libs=yes
1584 2482
1585 # Append ld.so.conf contents to the search path 2483 # Append ld.so.conf contents to the search path
1586 if test -f /etc/ld.so.conf; then 2484 if test -f /etc/ld.so.conf; then
1587 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 2485 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' ' '`
1588 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 2486 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1589 fi 2487 fi
1590 2488
1591 # We used to test for /lib/ld.so.1 and disable shared libraries on 2489 # We used to test for /lib/ld.so.1 and disable shared libraries on
1592 # powerpc, because MkLinux only supported shared libraries with the 2490 # powerpc, because MkLinux only supported shared libraries with the
1595 # people can always --disable-shared, the test was removed, and we 2493 # people can always --disable-shared, the test was removed, and we
1596 # assume the GNU/Linux dynamic linker is in use. 2494 # assume the GNU/Linux dynamic linker is in use.
1597 dynamic_linker='GNU/Linux ld.so' 2495 dynamic_linker='GNU/Linux ld.so'
1598 ;; 2496 ;;
1599 2497
1600 knetbsd*-gnu)
1601 version_type=linux
1602 need_lib_prefix=no
1603 need_version=no
1604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1605 soname_spec='${libname}${release}${shared_ext}$major'
1606 shlibpath_var=LD_LIBRARY_PATH
1607 shlibpath_overrides_runpath=no
1608 hardcode_into_libs=yes
1609 dynamic_linker='GNU ld.so'
1610 ;;
1611
1612 netbsd*) 2498 netbsd*)
1613 version_type=sunos 2499 version_type=sunos
1614 need_lib_prefix=no 2500 need_lib_prefix=no
1615 need_version=no 2501 need_version=no
1616 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 2502 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
1617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 2503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1618 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 2504 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1619 dynamic_linker='NetBSD (a.out) ld.so' 2505 dynamic_linker='NetBSD (a.out) ld.so'
1620 else 2506 else
1621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 2507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1633 shlibpath_var=LD_LIBRARY_PATH 2519 shlibpath_var=LD_LIBRARY_PATH
1634 shlibpath_overrides_runpath=yes 2520 shlibpath_overrides_runpath=yes
1635 ;; 2521 ;;
1636 2522
1637 nto-qnx*) 2523 *nto* | *qnx*)
1638 version_type=linux 2524 version_type=qnx
1639 need_lib_prefix=no 2525 need_lib_prefix=no
1640 need_version=no 2526 need_version=no
1641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1642 soname_spec='${libname}${release}${shared_ext}$major' 2528 soname_spec='${libname}${release}${shared_ext}$major'
1643 shlibpath_var=LD_LIBRARY_PATH 2529 shlibpath_var=LD_LIBRARY_PATH
1644 shlibpath_overrides_runpath=yes 2530 shlibpath_overrides_runpath=no
2531 hardcode_into_libs=yes
2532 dynamic_linker='ldqnx.so'
1645 ;; 2533 ;;
1646 2534
1647 openbsd*) 2535 openbsd*)
1648 version_type=sunos 2536 version_type=sunos
1649 sys_lib_dlsearch_path_spec="/usr/lib" 2537 sys_lib_dlsearch_path_spec="/usr/lib"
1650 need_lib_prefix=no 2538 need_lib_prefix=no
1651 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 2539 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
1652 case $host_os in 2540 case $host_os in
1653 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 2541 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
1654 *) need_version=no ;; 2542 *) need_version=no ;;
1655 esac 2543 esac
1656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 2544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1657 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 2545 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1658 shlibpath_var=LD_LIBRARY_PATH 2546 shlibpath_var=LD_LIBRARY_PATH
1659 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 2547 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1660 case $host_os in 2548 case $host_os in
1661 openbsd2.[[89]] | openbsd2.[[89]].*) 2549 openbsd2.[[89]] | openbsd2.[[89]].*)
1662 shlibpath_overrides_runpath=no 2550 shlibpath_overrides_runpath=no
1663 ;; 2551 ;;
1664 *) 2552 *)
1688 shlibpath_var=LD_LIBRARY_PATH 2576 shlibpath_var=LD_LIBRARY_PATH
1689 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 2577 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
1690 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 2578 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
1691 ;; 2579 ;;
1692 2580
2581 rdos*)
2582 dynamic_linker=no
2583 ;;
2584
1693 solaris*) 2585 solaris*)
1694 version_type=linux 2586 version_type=linux
1695 need_lib_prefix=no 2587 need_lib_prefix=no
1696 need_version=no 2588 need_version=no
1697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1722 shlibpath_var=LD_LIBRARY_PATH 2614 shlibpath_var=LD_LIBRARY_PATH
1723 case $host_vendor in 2615 case $host_vendor in
1724 sni) 2616 sni)
1725 shlibpath_overrides_runpath=no 2617 shlibpath_overrides_runpath=no
1726 need_lib_prefix=no 2618 need_lib_prefix=no
1727 export_dynamic_flag_spec='${wl}-Blargedynsym'
1728 runpath_var=LD_RUN_PATH 2619 runpath_var=LD_RUN_PATH
1729 ;; 2620 ;;
1730 siemens) 2621 siemens)
1731 need_lib_prefix=no 2622 need_lib_prefix=no
1732 ;; 2623 ;;
1753 need_lib_prefix=no 2644 need_lib_prefix=no
1754 need_version=no 2645 need_version=no
1755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 2646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1756 soname_spec='${libname}${release}${shared_ext}$major' 2647 soname_spec='${libname}${release}${shared_ext}$major'
1757 shlibpath_var=LD_LIBRARY_PATH 2648 shlibpath_var=LD_LIBRARY_PATH
2649 shlibpath_overrides_runpath=yes
1758 hardcode_into_libs=yes 2650 hardcode_into_libs=yes
1759 if test "$with_gnu_ld" = yes; then 2651 if test "$with_gnu_ld" = yes; then
1760 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 2652 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
1761 shlibpath_overrides_runpath=no
1762 else 2653 else
1763 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 2654 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
1764 shlibpath_overrides_runpath=yes
1765 case $host_os in 2655 case $host_os in
1766 sco3.2v5*) 2656 sco3.2v5*)
1767 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 2657 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
1768 ;; 2658 ;;
1769 esac 2659 esac
1770 fi 2660 fi
1771 sys_lib_dlsearch_path_spec='/usr/lib' 2661 sys_lib_dlsearch_path_spec='/usr/lib'
1772 ;; 2662 ;;
1773 2663
2664 tpf*)
2665 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
2666 version_type=linux
2667 need_lib_prefix=no
2668 need_version=no
2669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2670 shlibpath_var=LD_LIBRARY_PATH
2671 shlibpath_overrides_runpath=no
2672 hardcode_into_libs=yes
2673 ;;
2674
1774 uts4*) 2675 uts4*)
1775 version_type=linux 2676 version_type=linux
1776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1777 soname_spec='${libname}${release}${shared_ext}$major' 2678 soname_spec='${libname}${release}${shared_ext}$major'
1778 shlibpath_var=LD_LIBRARY_PATH 2679 shlibpath_var=LD_LIBRARY_PATH
1787 2688
1788 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 2689 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
1789 if test "$GCC" = yes; then 2690 if test "$GCC" = yes; then
1790 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 2691 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
1791 fi 2692 fi
1792 ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER 2693
1793 2694 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
1794 2695 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
1795 # _LT_AC_TAGCONFIG
1796 # ----------------
1797 AC_DEFUN([_LT_AC_TAGCONFIG],
1798 [AC_ARG_WITH([tags],
1799 [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
1800 [include additional configurations @<:@automatic@:>@])],
1801 [tagnames="$withval"])
1802
1803 if test -f "$ltmain" && test -n "$tagnames"; then
1804 if test ! -f "${ofile}"; then
1805 AC_MSG_WARN([output file `$ofile' does not exist])
1806 fi
1807
1808 if test -z "$LTCC"; then
1809 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
1810 if test -z "$LTCC"; then
1811 AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
1812 else
1813 AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
1814 fi
1815 fi
1816 if test -z "$LTCFLAGS"; then
1817 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
1818 fi
1819
1820 # Extract list of available tagged configurations in $ofile.
1821 # Note that this assumes the entire list is on one line.
1822 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
1823
1824 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1825 for tagname in $tagnames; do
1826 IFS="$lt_save_ifs"
1827 # Check whether tagname contains only valid characters
1828 case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
1829 "") ;;
1830 *) AC_MSG_ERROR([invalid tag name: $tagname])
1831 ;;
1832 esac
1833
1834 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
1835 then
1836 AC_MSG_ERROR([tag name \"$tagname\" already exists])
1837 fi
1838
1839 # Update the list of available tags.
1840 if test -n "$tagname"; then
1841 echo appending configuration tag \"$tagname\" to $ofile
1842
1843 case $tagname in
1844 CXX)
1845 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
1846 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
1847 (test "X$CXX" != "Xg++"))) ; then
1848 AC_LIBTOOL_LANG_CXX_CONFIG
1849 else
1850 tagname=""
1851 fi
1852 ;;
1853
1854 F77)
1855 if test -n "$F77" && test "X$F77" != "Xno"; then
1856 AC_LIBTOOL_LANG_F77_CONFIG
1857 else
1858 tagname=""
1859 fi
1860 ;;
1861
1862 GCJ)
1863 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
1864 AC_LIBTOOL_LANG_GCJ_CONFIG
1865 else
1866 tagname=""
1867 fi
1868 ;;
1869
1870 RC)
1871 AC_LIBTOOL_LANG_RC_CONFIG
1872 ;;
1873
1874 *)
1875 AC_MSG_ERROR([Unsupported tag name: $tagname])
1876 ;;
1877 esac
1878
1879 # Append the new tag name to the list of available tags.
1880 if test -n "$tagname" ; then
1881 available_tags="$available_tags $tagname"
1882 fi
1883 fi
1884 done
1885 IFS="$lt_save_ifs"
1886
1887 # Now substitute the updated list of available tags.
1888 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
1889 mv "${ofile}T" "$ofile"
1890 chmod +x "$ofile"
1891 else
1892 rm -f "${ofile}T"
1893 AC_MSG_ERROR([unable to update list of available tagged configurations.])
1894 fi
1895 fi 2696 fi
1896 ])# _LT_AC_TAGCONFIG 2697 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
1897 2698 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
1898 2699 fi
1899 # AC_LIBTOOL_DLOPEN 2700
1900 # ----------------- 2701 _LT_DECL([], [variables_saved_for_relink], [1],
1901 # enable checks for dlopen support 2702 [Variables whose values should be saved in libtool wrapper scripts and
1902 AC_DEFUN([AC_LIBTOOL_DLOPEN], 2703 restored at link time])
1903 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP]) 2704 _LT_DECL([], [need_lib_prefix], [0],
1904 ])# AC_LIBTOOL_DLOPEN 2705 [Do we need the "lib" prefix for modules?])
1905 2706 _LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
1906 2707 _LT_DECL([], [version_type], [0], [Library versioning type])
1907 # AC_LIBTOOL_WIN32_DLL 2708 _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
1908 # -------------------- 2709 _LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
1909 # declare package support for building win32 DLLs 2710 _LT_DECL([], [shlibpath_overrides_runpath], [0],
1910 AC_DEFUN([AC_LIBTOOL_WIN32_DLL], 2711 [Is shlibpath searched before the hard-coded library search path?])
1911 [AC_BEFORE([$0], [AC_LIBTOOL_SETUP]) 2712 _LT_DECL([], [libname_spec], [1], [Format of library name prefix])
1912 ])# AC_LIBTOOL_WIN32_DLL 2713 _LT_DECL([], [library_names_spec], [1],
1913 2714 [[List of archive names. First name is the real one, the rest are links.
1914 2715 The last name is the one that the linker finds with -lNAME]])
1915 # AC_ENABLE_SHARED([DEFAULT]) 2716 _LT_DECL([], [soname_spec], [1],
1916 # --------------------------- 2717 [[The coded name of the library, if different from the real name]])
1917 # implement the --enable-shared flag 2718 _LT_DECL([], [postinstall_cmds], [2],
1918 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 2719 [Command to use after installation of a shared archive])
1919 AC_DEFUN([AC_ENABLE_SHARED], 2720 _LT_DECL([], [postuninstall_cmds], [2],
1920 [define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl 2721 [Command to use after uninstallation of a shared archive])
1921 AC_ARG_ENABLE([shared], 2722 _LT_DECL([], [finish_cmds], [2],
1922 [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@], 2723 [Commands used to finish a libtool library installation in a directory])
1923 [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])], 2724 _LT_DECL([], [finish_eval], [1],
1924 [p=${PACKAGE-default} 2725 [[As "finish_cmds", except a single script fragment to be evaled but
1925 case $enableval in 2726 not shown]])
1926 yes) enable_shared=yes ;; 2727 _LT_DECL([], [hardcode_into_libs], [0],
1927 no) enable_shared=no ;; 2728 [Whether we should hardcode library paths into libraries])
1928 *) 2729 _LT_DECL([], [sys_lib_search_path_spec], [2],
1929 enable_shared=no 2730 [Compile-time system search path for libraries])
1930 # Look at the argument we got. We use all the common list separators. 2731 _LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
1931 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2732 [Run-time system search path for libraries])
1932 for pkg in $enableval; do 2733 ])# _LT_SYS_DYNAMIC_LINKER
1933 IFS="$lt_save_ifs" 2734
1934 if test "X$pkg" = "X$p"; then 2735
1935 enable_shared=yes 2736 # _LT_PATH_TOOL_PREFIX(TOOL)
1936 fi
1937 done
1938 IFS="$lt_save_ifs"
1939 ;;
1940 esac],
1941 [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
1942 ])# AC_ENABLE_SHARED
1943
1944
1945 # AC_DISABLE_SHARED
1946 # -----------------
1947 # set the default shared flag to --disable-shared
1948 AC_DEFUN([AC_DISABLE_SHARED],
1949 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
1950 AC_ENABLE_SHARED(no)
1951 ])# AC_DISABLE_SHARED
1952
1953
1954 # AC_ENABLE_STATIC([DEFAULT])
1955 # ---------------------------
1956 # implement the --enable-static flag
1957 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
1958 AC_DEFUN([AC_ENABLE_STATIC],
1959 [define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
1960 AC_ARG_ENABLE([static],
1961 [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
1962 [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
1963 [p=${PACKAGE-default}
1964 case $enableval in
1965 yes) enable_static=yes ;;
1966 no) enable_static=no ;;
1967 *)
1968 enable_static=no
1969 # Look at the argument we got. We use all the common list separators.
1970 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1971 for pkg in $enableval; do
1972 IFS="$lt_save_ifs"
1973 if test "X$pkg" = "X$p"; then
1974 enable_static=yes
1975 fi
1976 done
1977 IFS="$lt_save_ifs"
1978 ;;
1979 esac],
1980 [enable_static=]AC_ENABLE_STATIC_DEFAULT)
1981 ])# AC_ENABLE_STATIC
1982
1983
1984 # AC_DISABLE_STATIC
1985 # -----------------
1986 # set the default static flag to --disable-static
1987 AC_DEFUN([AC_DISABLE_STATIC],
1988 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
1989 AC_ENABLE_STATIC(no)
1990 ])# AC_DISABLE_STATIC
1991
1992
1993 # AC_ENABLE_FAST_INSTALL([DEFAULT])
1994 # ---------------------------------
1995 # implement the --enable-fast-install flag
1996 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
1997 AC_DEFUN([AC_ENABLE_FAST_INSTALL],
1998 [define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
1999 AC_ARG_ENABLE([fast-install],
2000 [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
2001 [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
2002 [p=${PACKAGE-default}
2003 case $enableval in
2004 yes) enable_fast_install=yes ;;
2005 no) enable_fast_install=no ;;
2006 *)
2007 enable_fast_install=no
2008 # Look at the argument we got. We use all the common list separators.
2009 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2010 for pkg in $enableval; do
2011 IFS="$lt_save_ifs"
2012 if test "X$pkg" = "X$p"; then
2013 enable_fast_install=yes
2014 fi
2015 done
2016 IFS="$lt_save_ifs"
2017 ;;
2018 esac],
2019 [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
2020 ])# AC_ENABLE_FAST_INSTALL
2021
2022
2023 # AC_DISABLE_FAST_INSTALL
2024 # -----------------------
2025 # set the default to --disable-fast-install
2026 AC_DEFUN([AC_DISABLE_FAST_INSTALL],
2027 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2028 AC_ENABLE_FAST_INSTALL(no)
2029 ])# AC_DISABLE_FAST_INSTALL
2030
2031
2032 # AC_LIBTOOL_PICMODE([MODE])
2033 # -------------------------- 2737 # --------------------------
2034 # implement the --with-pic flag 2738 # find a file program which can recognize shared library
2035 # MODE is either `yes' or `no'. If omitted, it defaults to `both'. 2739 AC_DEFUN([_LT_PATH_TOOL_PREFIX],
2036 AC_DEFUN([AC_LIBTOOL_PICMODE], 2740 [m4_require([_LT_DECL_EGREP])dnl
2037 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2038 pic_mode=ifelse($#,1,$1,default)
2039 ])# AC_LIBTOOL_PICMODE
2040
2041
2042 # AC_PROG_EGREP
2043 # -------------
2044 # This is predefined starting with Autoconf 2.54, so this conditional
2045 # definition can be removed once we require Autoconf 2.54 or later.
2046 m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
2047 [AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
2048 [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2049 then ac_cv_prog_egrep='grep -E'
2050 else ac_cv_prog_egrep='egrep'
2051 fi])
2052 EGREP=$ac_cv_prog_egrep
2053 AC_SUBST([EGREP])
2054 ])])
2055
2056
2057 # AC_PATH_TOOL_PREFIX
2058 # -------------------
2059 # find a file program which can recognise shared library
2060 AC_DEFUN([AC_PATH_TOOL_PREFIX],
2061 [AC_REQUIRE([AC_PROG_EGREP])dnl
2062 AC_MSG_CHECKING([for $1]) 2741 AC_MSG_CHECKING([for $1])
2063 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, 2742 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
2064 [case $MAGIC_CMD in 2743 [case $MAGIC_CMD in
2065 [[\\/*] | ?:[\\/]*]) 2744 [[\\/*] | ?:[\\/]*])
2066 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 2745 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2069 lt_save_MAGIC_CMD="$MAGIC_CMD" 2748 lt_save_MAGIC_CMD="$MAGIC_CMD"
2070 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 2749 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2071 dnl $ac_dummy forces splitting on constant user-supplied paths. 2750 dnl $ac_dummy forces splitting on constant user-supplied paths.
2072 dnl POSIX.2 word splitting is done only on the output of word expansions, 2751 dnl POSIX.2 word splitting is done only on the output of word expansions,
2073 dnl not every word. This closes a longstanding sh security hole. 2752 dnl not every word. This closes a longstanding sh security hole.
2074 ac_dummy="ifelse([$2], , $PATH, [$2])" 2753 ac_dummy="m4_if([$2], , $PATH, [$2])"
2075 for ac_dir in $ac_dummy; do 2754 for ac_dir in $ac_dummy; do
2076 IFS="$lt_save_ifs" 2755 IFS="$lt_save_ifs"
2077 test -z "$ac_dir" && ac_dir=. 2756 test -z "$ac_dir" && ac_dir=.
2078 if test -f $ac_dir/$1; then 2757 if test -f $ac_dir/$1; then
2079 lt_cv_path_MAGIC_CMD="$ac_dir/$1" 2758 lt_cv_path_MAGIC_CMD="$ac_dir/$1"
2084 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 2763 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2085 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 2764 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2086 $EGREP "$file_magic_regex" > /dev/null; then 2765 $EGREP "$file_magic_regex" > /dev/null; then
2087 : 2766 :
2088 else 2767 else
2089 cat <<EOF 1>&2 2768 cat <<_LT_EOF 1>&2
2090 2769
2091 *** Warning: the command libtool uses to detect shared libraries, 2770 *** Warning: the command libtool uses to detect shared libraries,
2092 *** $file_magic_cmd, produces output that libtool cannot recognize. 2771 *** $file_magic_cmd, produces output that libtool cannot recognize.
2093 *** The result is that libtool may fail to recognize shared libraries 2772 *** The result is that libtool may fail to recognize shared libraries
2094 *** as such. This will affect the creation of libtool libraries that 2773 *** as such. This will affect the creation of libtool libraries that
2095 *** depend on shared libraries, but programs linked with such libtool 2774 *** depend on shared libraries, but programs linked with such libtool
2096 *** libraries will work regardless of this problem. Nevertheless, you 2775 *** libraries will work regardless of this problem. Nevertheless, you
2097 *** may want to report the problem to your system manager and/or to 2776 *** may want to report the problem to your system manager and/or to
2098 *** bug-libtool@gnu.org 2777 *** bug-libtool@gnu.org
2099 2778
2100 EOF 2779 _LT_EOF
2101 fi ;; 2780 fi ;;
2102 esac 2781 esac
2103 fi 2782 fi
2104 break 2783 break
2105 fi 2784 fi
2112 if test -n "$MAGIC_CMD"; then 2791 if test -n "$MAGIC_CMD"; then
2113 AC_MSG_RESULT($MAGIC_CMD) 2792 AC_MSG_RESULT($MAGIC_CMD)
2114 else 2793 else
2115 AC_MSG_RESULT(no) 2794 AC_MSG_RESULT(no)
2116 fi 2795 fi
2117 ])# AC_PATH_TOOL_PREFIX 2796 _LT_DECL([], [MAGIC_CMD], [0],
2118 2797 [Used to examine libraries when file_magic_cmd begins with "file"])dnl
2119 2798 ])# _LT_PATH_TOOL_PREFIX
2120 # AC_PATH_MAGIC 2799
2121 # ------------- 2800 # Old name:
2122 # find a file program which can recognise a shared library 2801 AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
2123 AC_DEFUN([AC_PATH_MAGIC], 2802 dnl aclocal-1.4 backwards compatibility:
2124 [AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) 2803 dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
2804
2805
2806 # _LT_PATH_MAGIC
2807 # --------------
2808 # find a file program which can recognize a shared library
2809 m4_defun([_LT_PATH_MAGIC],
2810 [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2125 if test -z "$lt_cv_path_MAGIC_CMD"; then 2811 if test -z "$lt_cv_path_MAGIC_CMD"; then
2126 if test -n "$ac_tool_prefix"; then 2812 if test -n "$ac_tool_prefix"; then
2127 AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) 2813 _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
2128 else 2814 else
2129 MAGIC_CMD=: 2815 MAGIC_CMD=:
2130 fi 2816 fi
2131 fi 2817 fi
2132 ])# AC_PATH_MAGIC 2818 ])# _LT_PATH_MAGIC
2133 2819
2134 2820
2135 # AC_PROG_LD 2821 # LT_PATH_LD
2136 # ---------- 2822 # ----------
2137 # find the pathname to the GNU or non-GNU linker 2823 # find the pathname to the GNU or non-GNU linker
2138 AC_DEFUN([AC_PROG_LD], 2824 AC_DEFUN([LT_PATH_LD],
2139 [AC_ARG_WITH([gnu-ld], 2825 [AC_REQUIRE([AC_PROG_CC])dnl
2140 [AC_HELP_STRING([--with-gnu-ld], 2826 AC_REQUIRE([AC_CANONICAL_HOST])dnl
2827 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
2828 m4_require([_LT_DECL_SED])dnl
2829 m4_require([_LT_DECL_EGREP])dnl
2830
2831 AC_ARG_WITH([gnu-ld],
2832 [AS_HELP_STRING([--with-gnu-ld],
2141 [assume the C compiler uses GNU ld @<:@default=no@:>@])], 2833 [assume the C compiler uses GNU ld @<:@default=no@:>@])],
2142 [test "$withval" = no || with_gnu_ld=yes], 2834 [test "$withval" = no || with_gnu_ld=yes],
2143 [with_gnu_ld=no]) 2835 [with_gnu_ld=no])dnl
2144 AC_REQUIRE([LT_AC_PROG_SED])dnl 2836
2145 AC_REQUIRE([AC_PROG_CC])dnl
2146 AC_REQUIRE([AC_CANONICAL_HOST])dnl
2147 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
2148 ac_prog=ld 2837 ac_prog=ld
2149 if test "$GCC" = yes; then 2838 if test "$GCC" = yes; then
2150 # Check if gcc -print-prog-name=ld gives a path. 2839 # Check if gcc -print-prog-name=ld gives a path.
2151 AC_MSG_CHECKING([for ld used by $CC]) 2840 AC_MSG_CHECKING([for ld used by $CC])
2152 case $host in 2841 case $host in
2159 case $ac_prog in 2848 case $ac_prog in
2160 # Accept absolute paths. 2849 # Accept absolute paths.
2161 [[\\/]]* | ?:[[\\/]]*) 2850 [[\\/]]* | ?:[[\\/]]*)
2162 re_direlt='/[[^/]][[^/]]*/\.\./' 2851 re_direlt='/[[^/]][[^/]]*/\.\./'
2163 # Canonicalize the pathname of ld 2852 # Canonicalize the pathname of ld
2164 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 2853 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
2165 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 2854 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
2166 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 2855 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
2167 done 2856 done
2168 test -z "$LD" && LD="$ac_prog" 2857 test -z "$LD" && LD="$ac_prog"
2169 ;; 2858 ;;
2170 "") 2859 "")
2171 # If it fails, then pretend we aren't using GCC. 2860 # If it fails, then pretend we aren't using GCC.
2211 AC_MSG_RESULT($LD) 2900 AC_MSG_RESULT($LD)
2212 else 2901 else
2213 AC_MSG_RESULT(no) 2902 AC_MSG_RESULT(no)
2214 fi 2903 fi
2215 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) 2904 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
2216 AC_PROG_LD_GNU 2905 _LT_PATH_LD_GNU
2217 ])# AC_PROG_LD 2906 AC_SUBST([LD])
2218 2907
2219 2908 _LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
2220 # AC_PROG_LD_GNU 2909 ])# LT_PATH_LD
2221 # -------------- 2910
2222 AC_DEFUN([AC_PROG_LD_GNU], 2911 # Old names:
2223 [AC_REQUIRE([AC_PROG_EGREP])dnl 2912 AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
2224 AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, 2913 AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
2914 dnl aclocal-1.4 backwards compatibility:
2915 dnl AC_DEFUN([AM_PROG_LD], [])
2916 dnl AC_DEFUN([AC_PROG_LD], [])
2917
2918
2919 # _LT_PATH_LD_GNU
2920 #- --------------
2921 m4_defun([_LT_PATH_LD_GNU],
2922 [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
2225 [# I'd rather use --version here, but apparently some GNU lds only accept -v. 2923 [# I'd rather use --version here, but apparently some GNU lds only accept -v.
2226 case `$LD -v 2>&1 </dev/null` in 2924 case `$LD -v 2>&1 </dev/null` in
2227 *GNU* | *'with BFD'*) 2925 *GNU* | *'with BFD'*)
2228 lt_cv_prog_gnu_ld=yes 2926 lt_cv_prog_gnu_ld=yes
2229 ;; 2927 ;;
2230 *) 2928 *)
2231 lt_cv_prog_gnu_ld=no 2929 lt_cv_prog_gnu_ld=no
2232 ;; 2930 ;;
2233 esac]) 2931 esac])
2234 with_gnu_ld=$lt_cv_prog_gnu_ld 2932 with_gnu_ld=$lt_cv_prog_gnu_ld
2235 ])# AC_PROG_LD_GNU 2933 ])# _LT_PATH_LD_GNU
2236 2934
2237 2935
2238 # AC_PROG_LD_RELOAD_FLAG 2936 # _LT_CMD_RELOAD
2239 # ---------------------- 2937 # --------------
2240 # find reload flag for linker 2938 # find reload flag for linker
2241 # -- PORTME Some linkers may need a different reload flag. 2939 # -- PORTME Some linkers may need a different reload flag.
2242 AC_DEFUN([AC_PROG_LD_RELOAD_FLAG], 2940 m4_defun([_LT_CMD_RELOAD],
2243 [AC_CACHE_CHECK([for $LD option to reload object files], 2941 [AC_CACHE_CHECK([for $LD option to reload object files],
2244 lt_cv_ld_reload_flag, 2942 lt_cv_ld_reload_flag,
2245 [lt_cv_ld_reload_flag='-r']) 2943 [lt_cv_ld_reload_flag='-r'])
2246 reload_flag=$lt_cv_ld_reload_flag 2944 reload_flag=$lt_cv_ld_reload_flag
2247 case $reload_flag in 2945 case $reload_flag in
2256 else 2954 else
2257 reload_cmds='$LD$reload_flag -o $output$reload_objs' 2955 reload_cmds='$LD$reload_flag -o $output$reload_objs'
2258 fi 2956 fi
2259 ;; 2957 ;;
2260 esac 2958 esac
2261 ])# AC_PROG_LD_RELOAD_FLAG 2959 _LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
2262 2960 _LT_DECL([], [reload_cmds], [2])dnl
2263 2961 ])# _LT_CMD_RELOAD
2264 # AC_DEPLIBS_CHECK_METHOD 2962
2265 # ----------------------- 2963
2964 # _LT_CHECK_MAGIC_METHOD
2965 # ----------------------
2266 # how to check for library dependencies 2966 # how to check for library dependencies
2267 # -- PORTME fill in with the dynamic library characteristics 2967 # -- PORTME fill in with the dynamic library characteristics
2268 AC_DEFUN([AC_DEPLIBS_CHECK_METHOD], 2968 m4_defun([_LT_CHECK_MAGIC_METHOD],
2269 [AC_CACHE_CHECK([how to recognise dependent libraries], 2969 [m4_require([_LT_DECL_EGREP])
2970 m4_require([_LT_DECL_OBJDUMP])
2971 AC_CACHE_CHECK([how to recognize dependent libraries],
2270 lt_cv_deplibs_check_method, 2972 lt_cv_deplibs_check_method,
2271 [lt_cv_file_magic_cmd='$MAGIC_CMD' 2973 [lt_cv_file_magic_cmd='$MAGIC_CMD'
2272 lt_cv_file_magic_test_file= 2974 lt_cv_file_magic_test_file=
2273 lt_cv_deplibs_check_method='unknown' 2975 lt_cv_deplibs_check_method='unknown'
2274 # Need to set the preceding variable on all platforms that support 2976 # Need to set the preceding variable on all platforms that support
2281 # which responds to the $file_magic_cmd with a given extended regex. 2983 # which responds to the $file_magic_cmd with a given extended regex.
2282 # If you have `file' or equivalent on your system and you're not sure 2984 # If you have `file' or equivalent on your system and you're not sure
2283 # whether `pass_all' will *always* work, you probably want this one. 2985 # whether `pass_all' will *always* work, you probably want this one.
2284 2986
2285 case $host_os in 2987 case $host_os in
2286 aix4* | aix5*) 2988 aix[[4-9]]*)
2287 lt_cv_deplibs_check_method=pass_all 2989 lt_cv_deplibs_check_method=pass_all
2288 ;; 2990 ;;
2289 2991
2290 beos*) 2992 beos*)
2291 lt_cv_deplibs_check_method=pass_all 2993 lt_cv_deplibs_check_method=pass_all
2297 lt_cv_file_magic_test_file=/shlib/libc.so 2999 lt_cv_file_magic_test_file=/shlib/libc.so
2298 ;; 3000 ;;
2299 3001
2300 cygwin*) 3002 cygwin*)
2301 # func_win32_libid is a shell function defined in ltmain.sh 3003 # func_win32_libid is a shell function defined in ltmain.sh
2302 #lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 3004 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2303 lt_cv_deplibs_check_method=pass_all 3005 lt_cv_deplibs_check_method=pass_all
2304 lt_cv_file_magic_cmd='func_win32_libid' 3006 lt_cv_file_magic_cmd='func_win32_libid'
2305 ;; 3007 ;;
2306 3008
2307 mingw* | pw32*) 3009 mingw* | pw32*)
2308 # Base MSYS/MinGW do not provide the 'file' command needed by 3010 # Base MSYS/MinGW do not provide the 'file' command needed by
2309 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 3011 # func_win32_libid shell function, so use a weaker test based on 'objdump',
2310 #lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 3012 # unless we find 'file', for example because we are cross-compiling.
3013 if ( file / ) >/dev/null 2>&1; then
3014 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3015 lt_cv_file_magic_cmd='func_win32_libid'
3016 else
3017 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3018 lt_cv_file_magic_cmd='$OBJDUMP -f'
3019 fi
2311 lt_cv_deplibs_check_method=pass_all 3020 lt_cv_deplibs_check_method=pass_all
3021 ;;
3022
3023 cegcc)
3024 # use the weaker test based on 'objdump'. See mingw*.
3025 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
2312 lt_cv_file_magic_cmd='$OBJDUMP -f' 3026 lt_cv_file_magic_cmd='$OBJDUMP -f'
2313 ;; 3027 ;;
2314 3028
2315 darwin* | rhapsody*) 3029 darwin* | rhapsody*)
2316 lt_cv_deplibs_check_method=pass_all 3030 lt_cv_deplibs_check_method=pass_all
2317 ;; 3031 ;;
2318 3032
2319 freebsd* | kfreebsd*-gnu | dragonfly*) 3033 freebsd* | dragonfly*)
2320 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3034 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
2321 case $host_cpu in 3035 case $host_cpu in
2322 i*86 ) 3036 i*86 )
2323 # Not sure whether the presence of OpenBSD here was a mistake. 3037 # Not sure whether the presence of OpenBSD here was a mistake.
2324 # Let's accept both of them until this is cleared up. 3038 # Let's accept both of them until this is cleared up.
2325 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' 3039 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
2352 lt_cv_file_magic_test_file=/usr/lib/libc.sl 3066 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2353 ;; 3067 ;;
2354 esac 3068 esac
2355 ;; 3069 ;;
2356 3070
2357 interix3*) 3071 interix[[3-9]]*)
2358 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 3072 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
2359 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' 3073 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
2360 ;; 3074 ;;
2361 3075
2362 irix5* | irix6* | nonstopux*) 3076 irix5* | irix6* | nonstopux*)
2368 esac 3082 esac
2369 lt_cv_deplibs_check_method=pass_all 3083 lt_cv_deplibs_check_method=pass_all
2370 ;; 3084 ;;
2371 3085
2372 # This must be Linux ELF. 3086 # This must be Linux ELF.
2373 linux*) 3087 linux* | k*bsd*-gnu)
2374 lt_cv_deplibs_check_method=pass_all 3088 lt_cv_deplibs_check_method=pass_all
2375 ;; 3089 ;;
2376 3090
2377 netbsd*) 3091 netbsd*)
2378 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3092 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
2379 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 3093 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2380 else 3094 else
2381 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' 3095 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
2382 fi 3096 fi
2383 ;; 3097 ;;
2386 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' 3100 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
2387 lt_cv_file_magic_cmd=/usr/bin/file 3101 lt_cv_file_magic_cmd=/usr/bin/file
2388 lt_cv_file_magic_test_file=/usr/lib/libnls.so 3102 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2389 ;; 3103 ;;
2390 3104
2391 nto-qnx*) 3105 *nto* | *qnx*)
2392 lt_cv_deplibs_check_method=unknown 3106 lt_cv_deplibs_check_method=pass_all
2393 ;; 3107 ;;
2394 3108
2395 openbsd*) 3109 openbsd*)
2396 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 3110 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2397 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' 3111 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
2398 else 3112 else
2399 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 3113 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2400 fi 3114 fi
2401 ;; 3115 ;;
2402 3116
2403 osf3* | osf4* | osf5*) 3117 osf3* | osf4* | osf5*)
2404 lt_cv_deplibs_check_method=pass_all 3118 lt_cv_deplibs_check_method=pass_all
2405 ;; 3119 ;;
2406 3120
3121 rdos*)
3122 lt_cv_deplibs_check_method=pass_all
3123 ;;
3124
2407 solaris*) 3125 solaris*)
3126 lt_cv_deplibs_check_method=pass_all
3127 ;;
3128
3129 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
2408 lt_cv_deplibs_check_method=pass_all 3130 lt_cv_deplibs_check_method=pass_all
2409 ;; 3131 ;;
2410 3132
2411 sysv4 | sysv4.3*) 3133 sysv4 | sysv4.3*)
2412 case $host_vendor in 3134 case $host_vendor in
2433 lt_cv_deplibs_check_method=pass_all 3155 lt_cv_deplibs_check_method=pass_all
2434 ;; 3156 ;;
2435 esac 3157 esac
2436 ;; 3158 ;;
2437 3159
2438 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 3160 tpf*)
2439 lt_cv_deplibs_check_method=pass_all 3161 lt_cv_deplibs_check_method=pass_all
2440 ;; 3162 ;;
2441 esac 3163 esac
2442 ]) 3164 ])
2443 file_magic_cmd=$lt_cv_file_magic_cmd 3165 file_magic_cmd=$lt_cv_file_magic_cmd
2444 deplibs_check_method=$lt_cv_deplibs_check_method 3166 deplibs_check_method=$lt_cv_deplibs_check_method
2445 test -z "$deplibs_check_method" && deplibs_check_method=unknown 3167 test -z "$deplibs_check_method" && deplibs_check_method=unknown
2446 ])# AC_DEPLIBS_CHECK_METHOD 3168
2447 3169 _LT_DECL([], [deplibs_check_method], [1],
2448 3170 [Method to check whether dependent libraries are shared objects])
2449 # AC_PROG_NM 3171 _LT_DECL([], [file_magic_cmd], [1],
3172 [Command to use when deplibs_check_method == "file_magic"])
3173 ])# _LT_CHECK_MAGIC_METHOD
3174
3175
3176 # LT_PATH_NM
2450 # ---------- 3177 # ----------
2451 # find the pathname to a BSD-compatible name lister 3178 # find the pathname to a BSD- or MS-compatible name lister
2452 AC_DEFUN([AC_PROG_NM], 3179 AC_DEFUN([LT_PATH_NM],
2453 [AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM, 3180 [AC_REQUIRE([AC_PROG_CC])dnl
3181 AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
2454 [if test -n "$NM"; then 3182 [if test -n "$NM"; then
2455 # Let the user override the test. 3183 # Let the user override the test.
2456 lt_cv_path_NM="$NM" 3184 lt_cv_path_NM="$NM"
2457 else 3185 else
2458 lt_nm_to_check="${ac_tool_prefix}nm" 3186 lt_nm_to_check="${ac_tool_prefix}nm"
2459 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 3187 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
2460 lt_nm_to_check="$lt_nm_to_check nm" 3188 lt_nm_to_check="$lt_nm_to_check nm"
2461 fi 3189 fi
2462 for lt_tmp_nm in $lt_nm_to_check; do 3190 for lt_tmp_nm in $lt_nm_to_check; do
2463 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3191 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2464 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 3192 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
2490 esac 3218 esac
2491 fi 3219 fi
2492 done 3220 done
2493 IFS="$lt_save_ifs" 3221 IFS="$lt_save_ifs"
2494 done 3222 done
2495 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 3223 : ${lt_cv_path_NM=no}
2496 fi]) 3224 fi])
2497 NM="$lt_cv_path_NM" 3225 if test "$lt_cv_path_NM" != "no"; then
2498 ])# AC_PROG_NM 3226 NM="$lt_cv_path_NM"
2499 3227 else
2500 3228 # Didn't find any BSD compatible name lister, look for dumpbin.
2501 # AC_CHECK_LIBM 3229 AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
2502 # ------------- 3230 AC_SUBST([DUMPBIN])
3231 if test "$DUMPBIN" != ":"; then
3232 NM="$DUMPBIN"
3233 fi
3234 fi
3235 test -z "$NM" && NM=nm
3236 AC_SUBST([NM])
3237 _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
3238
3239 AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
3240 [lt_cv_nm_interface="BSD nm"
3241 echo "int some_variable = 0;" > conftest.$ac_ext
3242 (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
3243 (eval "$ac_compile" 2>conftest.err)
3244 cat conftest.err >&AS_MESSAGE_LOG_FD
3245 (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
3246 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3247 cat conftest.err >&AS_MESSAGE_LOG_FD
3248 (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
3249 cat conftest.out >&AS_MESSAGE_LOG_FD
3250 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3251 lt_cv_nm_interface="MS dumpbin"
3252 fi
3253 rm -f conftest*])
3254 ])# LT_PATH_NM
3255
3256 # Old names:
3257 AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
3258 AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
3259 dnl aclocal-1.4 backwards compatibility:
3260 dnl AC_DEFUN([AM_PROG_NM], [])
3261 dnl AC_DEFUN([AC_PROG_NM], [])
3262
3263
3264 # LT_LIB_M
3265 # --------
2503 # check for math library 3266 # check for math library
2504 AC_DEFUN([AC_CHECK_LIBM], 3267 AC_DEFUN([LT_LIB_M],
2505 [AC_REQUIRE([AC_CANONICAL_HOST])dnl 3268 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
2506 LIBM= 3269 LIBM=
2507 case $host in 3270 case $host in
2508 *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) 3271 *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
2509 # These system don't have libm, or don't need it 3272 # These system don't have libm, or don't need it
2514 ;; 3277 ;;
2515 *) 3278 *)
2516 AC_CHECK_LIB(m, cos, LIBM="-lm") 3279 AC_CHECK_LIB(m, cos, LIBM="-lm")
2517 ;; 3280 ;;
2518 esac 3281 esac
2519 ])# AC_CHECK_LIBM 3282 AC_SUBST([LIBM])
2520 3283 ])# LT_LIB_M
2521 3284
2522 # AC_LIBLTDL_CONVENIENCE([DIRECTORY]) 3285 # Old name:
2523 # ----------------------------------- 3286 AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
2524 # sets LIBLTDL to the link flags for the libltdl convenience library and 3287 dnl aclocal-1.4 backwards compatibility:
2525 # LTDLINCL to the include flags for the libltdl header and adds 3288 dnl AC_DEFUN([AC_CHECK_LIBM], [])
2526 # --enable-ltdl-convenience to the configure arguments. Note that 3289
2527 # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, 3290
2528 # it is assumed to be `libltdl'. LIBLTDL will be prefixed with 3291 # _LT_COMPILER_NO_RTTI([TAGNAME])
2529 # '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/' 3292 # -------------------------------
2530 # (note the single quotes!). If your package is not flat and you're not 3293 m4_defun([_LT_COMPILER_NO_RTTI],
2531 # using automake, define top_builddir and top_srcdir appropriately in 3294 [m4_require([_LT_TAG_COMPILER])dnl
2532 # the Makefiles. 3295
2533 AC_DEFUN([AC_LIBLTDL_CONVENIENCE], 3296 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
2534 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2535 case $enable_ltdl_convenience in
2536 no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
2537 "") enable_ltdl_convenience=yes
2538 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
2539 esac
2540 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
2541 LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
2542 # For backwards non-gettext consistent compatibility...
2543 INCLTDL="$LTDLINCL"
2544 ])# AC_LIBLTDL_CONVENIENCE
2545
2546
2547 # AC_LIBLTDL_INSTALLABLE([DIRECTORY])
2548 # -----------------------------------
2549 # sets LIBLTDL to the link flags for the libltdl installable library and
2550 # LTDLINCL to the include flags for the libltdl header and adds
2551 # --enable-ltdl-install to the configure arguments. Note that
2552 # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
2553 # and an installed libltdl is not found, it is assumed to be `libltdl'.
2554 # LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
2555 # '${top_srcdir}/' (note the single quotes!). If your package is not
2556 # flat and you're not using automake, define top_builddir and top_srcdir
2557 # appropriately in the Makefiles.
2558 # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
2559 AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
2560 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2561 AC_CHECK_LIB(ltdl, lt_dlinit,
2562 [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
2563 [if test x"$enable_ltdl_install" = xno; then
2564 AC_MSG_WARN([libltdl not installed, but installation disabled])
2565 else
2566 enable_ltdl_install=yes
2567 fi
2568 ])
2569 if test x"$enable_ltdl_install" = x"yes"; then
2570 ac_configure_args="$ac_configure_args --enable-ltdl-install"
2571 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
2572 LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
2573 else
2574 ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
2575 LIBLTDL="-lltdl"
2576 LTDLINCL=
2577 fi
2578 # For backwards non-gettext consistent compatibility...
2579 INCLTDL="$LTDLINCL"
2580 ])# AC_LIBLTDL_INSTALLABLE
2581
2582
2583 # AC_LIBTOOL_CXX
2584 # --------------
2585 # enable support for C++ libraries
2586 AC_DEFUN([AC_LIBTOOL_CXX],
2587 [AC_REQUIRE([_LT_AC_LANG_CXX])
2588 ])# AC_LIBTOOL_CXX
2589
2590
2591 # _LT_AC_LANG_CXX
2592 # ---------------
2593 AC_DEFUN([_LT_AC_LANG_CXX],
2594 [AC_REQUIRE([AC_PROG_CXX])
2595 AC_REQUIRE([_LT_AC_PROG_CXXCPP])
2596 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
2597 ])# _LT_AC_LANG_CXX
2598
2599 # _LT_AC_PROG_CXXCPP
2600 # ------------------
2601 AC_DEFUN([_LT_AC_PROG_CXXCPP],
2602 [
2603 AC_REQUIRE([AC_PROG_CXX])
2604 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
2605 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
2606 (test "X$CXX" != "Xg++"))) ; then
2607 AC_PROG_CXXCPP
2608 fi
2609 ])# _LT_AC_PROG_CXXCPP
2610
2611 # AC_LIBTOOL_F77
2612 # --------------
2613 # enable support for Fortran 77 libraries
2614 AC_DEFUN([AC_LIBTOOL_F77],
2615 [AC_REQUIRE([_LT_AC_LANG_F77])
2616 ])# AC_LIBTOOL_F77
2617
2618
2619 # _LT_AC_LANG_F77
2620 # ---------------
2621 AC_DEFUN([_LT_AC_LANG_F77],
2622 [AC_REQUIRE([AC_PROG_F77])
2623 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
2624 ])# _LT_AC_LANG_F77
2625
2626
2627 # AC_LIBTOOL_GCJ
2628 # --------------
2629 # enable support for GCJ libraries
2630 AC_DEFUN([AC_LIBTOOL_GCJ],
2631 [AC_REQUIRE([_LT_AC_LANG_GCJ])
2632 ])# AC_LIBTOOL_GCJ
2633
2634
2635 # _LT_AC_LANG_GCJ
2636 # ---------------
2637 AC_DEFUN([_LT_AC_LANG_GCJ],
2638 [AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
2639 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
2640 [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
2641 [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
2642 [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
2643 [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
2644 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
2645 ])# _LT_AC_LANG_GCJ
2646
2647
2648 # AC_LIBTOOL_RC
2649 # -------------
2650 # enable support for Windows resource files
2651 AC_DEFUN([AC_LIBTOOL_RC],
2652 [AC_REQUIRE([LT_AC_PROG_RC])
2653 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
2654 ])# AC_LIBTOOL_RC
2655
2656
2657 # AC_LIBTOOL_LANG_C_CONFIG
2658 # ------------------------
2659 # Ensure that the configuration vars for the C compiler are
2660 # suitably defined. Those variables are subsequently used by
2661 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2662 AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
2663 AC_DEFUN([_LT_AC_LANG_C_CONFIG],
2664 [lt_save_CC="$CC"
2665 AC_LANG_PUSH(C)
2666
2667 # Source file extension for C test sources.
2668 ac_ext=c
2669
2670 # Object file extension for compiled C test sources.
2671 objext=o
2672 _LT_AC_TAGVAR(objext, $1)=$objext
2673
2674 # Code to be used in simple compile tests
2675 lt_simple_compile_test_code="int some_variable = 0;\n"
2676
2677 # Code to be used in simple link tests
2678 lt_simple_link_test_code='int main(){return(0);}\n'
2679
2680 _LT_AC_SYS_COMPILER
2681
2682 # save warnings/boilerplate of simple test code
2683 _LT_COMPILER_BOILERPLATE
2684 _LT_LINKER_BOILERPLATE
2685
2686 ## CAVEAT EMPTOR:
2687 ## There is no encapsulation within the following macros, do not change
2688 ## the running order or otherwise move them around unless you know exactly
2689 ## what you are doing...
2690 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
2691 AC_LIBTOOL_PROG_COMPILER_PIC($1)
2692 AC_LIBTOOL_PROG_CC_C_O($1)
2693 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
2694 AC_LIBTOOL_PROG_LD_SHLIBS($1)
2695 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
2696 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
2697 AC_LIBTOOL_SYS_LIB_STRIP
2698 AC_LIBTOOL_DLOPEN_SELF
2699
2700 # Report which library types will actually be built
2701 AC_MSG_CHECKING([if libtool supports shared libraries])
2702 AC_MSG_RESULT([$can_build_shared])
2703
2704 AC_MSG_CHECKING([whether to build shared libraries])
2705 test "$can_build_shared" = "no" && enable_shared=no
2706
2707 # On AIX, shared libraries and static libraries use the same namespace, and
2708 # are all built from PIC.
2709 case $host_os in
2710 aix3*)
2711 test "$enable_shared" = yes && enable_static=no
2712 if test -n "$RANLIB"; then
2713 archive_cmds="$archive_cmds~\$RANLIB \$lib"
2714 postinstall_cmds='$RANLIB $lib'
2715 fi
2716 ;;
2717
2718 aix4* | aix5*)
2719 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
2720 test "$enable_shared" = yes && enable_static=no
2721 fi
2722 ;;
2723 esac
2724 AC_MSG_RESULT([$enable_shared])
2725
2726 AC_MSG_CHECKING([whether to build static libraries])
2727 # Make sure either enable_shared or enable_static is yes.
2728 test "$enable_shared" = yes || enable_static=yes
2729 AC_MSG_RESULT([$enable_static])
2730
2731 AC_LIBTOOL_CONFIG($1)
2732
2733 AC_LANG_POP
2734 CC="$lt_save_CC"
2735 ])# AC_LIBTOOL_LANG_C_CONFIG
2736
2737
2738 # AC_LIBTOOL_LANG_CXX_CONFIG
2739 # --------------------------
2740 # Ensure that the configuration vars for the C compiler are
2741 # suitably defined. Those variables are subsequently used by
2742 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2743 AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
2744 AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
2745 [AC_LANG_PUSH(C++)
2746 AC_REQUIRE([AC_PROG_CXX])
2747 AC_REQUIRE([_LT_AC_PROG_CXXCPP])
2748
2749 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2750 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
2751 _LT_AC_TAGVAR(always_export_symbols, $1)=no
2752 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
2753 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
2754 _LT_AC_TAGVAR(hardcode_direct, $1)=no
2755 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
2756 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
2757 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2758 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
2759 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2760 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
2761 _LT_AC_TAGVAR(module_cmds, $1)=
2762 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
2763 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
2764 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
2765 _LT_AC_TAGVAR(no_undefined_flag, $1)=
2766 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
2767 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
2768
2769 # Dependencies to place before and after the object being linked:
2770 _LT_AC_TAGVAR(predep_objects, $1)=
2771 _LT_AC_TAGVAR(postdep_objects, $1)=
2772 _LT_AC_TAGVAR(predeps, $1)=
2773 _LT_AC_TAGVAR(postdeps, $1)=
2774 _LT_AC_TAGVAR(compiler_lib_search_path, $1)=
2775
2776 # Source file extension for C++ test sources.
2777 ac_ext=cpp
2778
2779 # Object file extension for compiled C++ test sources.
2780 objext=o
2781 _LT_AC_TAGVAR(objext, $1)=$objext
2782
2783 # Code to be used in simple compile tests
2784 lt_simple_compile_test_code="int some_variable = 0;\n"
2785
2786 # Code to be used in simple link tests
2787 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
2788
2789 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
2790 _LT_AC_SYS_COMPILER
2791
2792 # save warnings/boilerplate of simple test code
2793 _LT_COMPILER_BOILERPLATE
2794 _LT_LINKER_BOILERPLATE
2795
2796 # Allow CC to be a program name with arguments.
2797 lt_save_CC=$CC
2798 lt_save_LD=$LD
2799 lt_save_GCC=$GCC
2800 GCC=$GXX
2801 lt_save_with_gnu_ld=$with_gnu_ld
2802 lt_save_path_LD=$lt_cv_path_LD
2803 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
2804 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
2805 else
2806 $as_unset lt_cv_prog_gnu_ld
2807 fi
2808 if test -n "${lt_cv_path_LDCXX+set}"; then
2809 lt_cv_path_LD=$lt_cv_path_LDCXX
2810 else
2811 $as_unset lt_cv_path_LD
2812 fi
2813 test -z "${LDCXX+set}" || LD=$LDCXX
2814 CC=${CXX-"c++"}
2815 compiler=$CC
2816 _LT_AC_TAGVAR(compiler, $1)=$CC
2817 _LT_CC_BASENAME([$compiler])
2818
2819 # We don't want -fno-exception wen compiling C++ code, so set the
2820 # no_builtin_flag separately
2821 if test "$GXX" = yes; then
2822 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
2823 else
2824 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
2825 fi
2826
2827 if test "$GXX" = yes; then
2828 # Set up default GNU C++ configuration
2829
2830 AC_PROG_LD
2831
2832 # Check if GNU C++ uses GNU ld as the underlying linker, since the
2833 # archiving commands below assume that GNU ld is being used.
2834 if test "$with_gnu_ld" = yes; then
2835 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
2836 _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'
2837
2838 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
2839 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
2840
2841 # If archive_cmds runs LD, not CC, wlarc should be empty
2842 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
2843 # investigate it a little bit more. (MM)
2844 wlarc='${wl}'
2845
2846 # ancient GNU ld didn't support --whole-archive et. al.
2847 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
2848 grep 'no-whole-archive' > /dev/null; then
2849 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
2850 else
2851 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
2852 fi
2853 else
2854 with_gnu_ld=no
2855 wlarc=
2856
2857 # A generic and very simple default shared library creation
2858 # command for GNU C++ for the case where it uses the native
2859 # linker, instead of GNU ld. If possible, this setting should
2860 # overridden to take advantage of the native linker features on
2861 # the platform it is being used on.
2862 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
2863 fi
2864
2865 # Commands to make compiler produce verbose output that lists
2866 # what "hidden" libraries, object files and flags are used when
2867 # linking a shared library.
2868 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
2869
2870 else
2871 GXX=no
2872 with_gnu_ld=no
2873 wlarc=
2874 fi
2875
2876 # PORTME: fill in a description of your system's C++ link characteristics
2877 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
2878 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
2879 case $host_os in
2880 aix3*)
2881 # FIXME: insert proper C++ library support
2882 _LT_AC_TAGVAR(ld_shlibs, $1)=no
2883 ;;
2884 aix4* | aix5*)
2885 if test "$host_cpu" = ia64; then
2886 # On IA64, the linker does run time linking by default, so we don't
2887 # have to do anything special.
2888 aix_use_runtimelinking=no
2889 exp_sym_flag='-Bexport'
2890 no_entry_flag=""
2891 else
2892 aix_use_runtimelinking=no
2893
2894 # Test if we are trying to use run time linking or normal
2895 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
2896 # need to do runtime linking.
2897 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
2898 for ld_flag in $LDFLAGS; do
2899 case $ld_flag in
2900 *-brtl*)
2901 aix_use_runtimelinking=yes
2902 break
2903 ;;
2904 esac
2905 done
2906 ;;
2907 esac
2908
2909 exp_sym_flag='-bexport'
2910 no_entry_flag='-bnoentry'
2911 fi
2912
2913 # When large executables or shared objects are built, AIX ld can
2914 # have problems creating the table of contents. If linking a library
2915 # or program results in "error TOC overflow" add -mminimal-toc to
2916 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
2917 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
2918
2919 _LT_AC_TAGVAR(archive_cmds, $1)=''
2920 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
2921 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
2922 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2923
2924 if test "$GXX" = yes; then
2925 case $host_os in aix4.[[012]]|aix4.[[012]].*)
2926 # We only want to do this on AIX 4.2 and lower, the check
2927 # below for broken collect2 doesn't work under 4.3+
2928 collect2name=`${CC} -print-prog-name=collect2`
2929 if test -f "$collect2name" && \
2930 strings "$collect2name" | grep resolve_lib_name >/dev/null
2931 then
2932 # We have reworked collect2
2933 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
2934 else
2935 # We have old collect2
2936 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
2937 # It fails to find uninstalled libraries when the uninstalled
2938 # path is not listed in the libpath. Setting hardcode_minus_L
2939 # to unsupported forces relinking
2940 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
2941 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
2942 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2943 fi
2944 ;;
2945 esac
2946 shared_flag='-shared'
2947 if test "$aix_use_runtimelinking" = yes; then
2948 shared_flag="$shared_flag "'${wl}-G'
2949 fi
2950 else
2951 # not using gcc
2952 if test "$host_cpu" = ia64; then
2953 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
2954 # chokes on -Wl,-G. The following line is correct:
2955 shared_flag='-G'
2956 else
2957 if test "$aix_use_runtimelinking" = yes; then
2958 shared_flag='${wl}-G'
2959 else
2960 shared_flag='${wl}-bM:SRE'
2961 fi
2962 fi
2963 fi
2964
2965 # It seems that -bexpall does not export symbols beginning with
2966 # underscore (_), so it is better to generate a list of symbols to export.
2967 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
2968 if test "$aix_use_runtimelinking" = yes; then
2969 # Warning - without using the other runtime loading flags (-brtl),
2970 # -berok will link without error, but may produce a broken library.
2971 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
2972 # Determine the default libpath from the value encoded in an empty executable.
2973 _LT_AC_SYS_LIBPATH_AIX
2974 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
2975
2976 _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"
2977 else
2978 if test "$host_cpu" = ia64; then
2979 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
2980 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
2981 _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"
2982 else
2983 # Determine the default libpath from the value encoded in an empty executable.
2984 _LT_AC_SYS_LIBPATH_AIX
2985 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
2986 # Warning - without using the other run time loading flags,
2987 # -berok will link without error, but may produce a broken library.
2988 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
2989 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
2990 # Exported symbols can be pulled into shared objects from archives
2991 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
2992 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
2993 # This is similar to how AIX traditionally builds its shared libraries.
2994 _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'
2995 fi
2996 fi
2997 ;;
2998
2999 beos*)
3000 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
3001 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3002 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3003 # support --undefined. This deserves some investigation. FIXME
3004 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3005 else
3006 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3007 fi
3008 ;;
3009
3010 chorus*)
3011 case $cc_basename in
3012 *)
3013 # FIXME: insert proper C++ library support
3014 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3015 ;;
3016 esac
3017 ;;
3018
3019 cygwin* | mingw* | pw32*)
3020 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
3021 # as there is no search path for DLLs.
3022 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3023 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3024 _LT_AC_TAGVAR(always_export_symbols, $1)=no
3025 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
3026
3027 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
3028 _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'
3029 # If the export-symbols file already is a .def file (1st line
3030 # is EXPORTS), use it as is; otherwise, prepend...
3031 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
3032 cp $export_symbols $output_objdir/$soname.def;
3033 else
3034 echo EXPORTS > $output_objdir/$soname.def;
3035 cat $export_symbols >> $output_objdir/$soname.def;
3036 fi~
3037 $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'
3038 else
3039 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3040 fi
3041 ;;
3042 darwin* | rhapsody*)
3043 case $host_os in
3044 rhapsody* | darwin1.[[012]])
3045 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
3046 ;;
3047 *) # Darwin 1.3 on
3048 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
3049 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3050 else
3051 case ${MACOSX_DEPLOYMENT_TARGET} in
3052 10.[[012]])
3053 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3054 ;;
3055 10.*)
3056 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
3057 ;;
3058 esac
3059 fi
3060 ;;
3061 esac
3062 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3063 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3064 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3065 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3066 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3067 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3068
3069 if test "$GXX" = yes ; then
3070 lt_int_apple_cc_single_mod=no
3071 output_verbose_link_cmd='echo'
3072 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
3073 lt_int_apple_cc_single_mod=yes
3074 fi
3075 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3076 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3077 else
3078 _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'
3079 fi
3080 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3081 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3082 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3083 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3084 else
3085 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3086 fi
3087 _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}'
3088 else
3089 case $cc_basename in
3090 xlc*)
3091 output_verbose_link_cmd='echo'
3092 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
3093 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3094 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3095 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3096 _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}'
3097 ;;
3098 *)
3099 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3100 ;;
3101 esac
3102 fi
3103 ;;
3104
3105 dgux*)
3106 case $cc_basename in
3107 ec++*)
3108 # FIXME: insert proper C++ library support
3109 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3110 ;;
3111 ghcx*)
3112 # Green Hills C++ Compiler
3113 # FIXME: insert proper C++ library support
3114 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3115 ;;
3116 *)
3117 # FIXME: insert proper C++ library support
3118 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3119 ;;
3120 esac
3121 ;;
3122 freebsd[[12]]*)
3123 # C++ shared libraries reported to be fairly broken before switch to ELF
3124 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3125 ;;
3126 freebsd-elf*)
3127 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3128 ;;
3129 freebsd* | kfreebsd*-gnu | dragonfly*)
3130 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3131 # conventions
3132 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
3133 ;;
3134 gnu*)
3135 ;;
3136 hpux9*)
3137 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3138 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3139 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3140 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3141 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3142 # but as the default
3143 # location of the library.
3144
3145 case $cc_basename in
3146 CC*)
3147 # FIXME: insert proper C++ library support
3148 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3149 ;;
3150 aCC*)
3151 _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'
3152 # Commands to make compiler produce verbose output that lists
3153 # what "hidden" libraries, object files and flags are used when
3154 # linking a shared library.
3155 #
3156 # There doesn't appear to be a way to prevent this compiler from
3157 # explicitly linking system object files so we need to strip them
3158 # from the output so that they don't get included in the library
3159 # dependencies.
3160 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'
3161 ;;
3162 *)
3163 if test "$GXX" = yes; then
3164 _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'
3165 else
3166 # FIXME: insert proper C++ library support
3167 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3168 fi
3169 ;;
3170 esac
3171 ;;
3172 hpux10*|hpux11*)
3173 if test $with_gnu_ld = no; then
3174 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3175 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3176
3177 case $host_cpu in
3178 hppa*64*|ia64*)
3179 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
3180 ;;
3181 *)
3182 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3183 ;;
3184 esac
3185 fi
3186 case $host_cpu in
3187 hppa*64*|ia64*)
3188 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3189 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3190 ;;
3191 *)
3192 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3193 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3194 # but as the default
3195 # location of the library.
3196 ;;
3197 esac
3198
3199 case $cc_basename in
3200 CC*)
3201 # FIXME: insert proper C++ library support
3202 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3203 ;;
3204 aCC*)
3205 case $host_cpu in
3206 hppa*64*)
3207 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3208 ;;
3209 ia64*)
3210 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3211 ;;
3212 *)
3213 _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'
3214 ;;
3215 esac
3216 # Commands to make compiler produce verbose output that lists
3217 # what "hidden" libraries, object files and flags are used when
3218 # linking a shared library.
3219 #
3220 # There doesn't appear to be a way to prevent this compiler from
3221 # explicitly linking system object files so we need to strip them
3222 # from the output so that they don't get included in the library
3223 # dependencies.
3224 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'
3225 ;;
3226 *)
3227 if test "$GXX" = yes; then
3228 if test $with_gnu_ld = no; then
3229 case $host_cpu in
3230 hppa*64*)
3231 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3232 ;;
3233 ia64*)
3234 _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'
3235 ;;
3236 *)
3237 _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'
3238 ;;
3239 esac
3240 fi
3241 else
3242 # FIXME: insert proper C++ library support
3243 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3244 fi
3245 ;;
3246 esac
3247 ;;
3248 interix3*)
3249 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3250 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3251 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3252 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3253 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
3254 # Instead, shared libraries are loaded at an image base (0x10000000 by
3255 # default) and relocated if they conflict, which is a slow very memory
3256 # consuming and fragmenting process. To avoid this, we pick a random,
3257 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
3258 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
3259 _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'
3260 _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'
3261 ;;
3262 irix5* | irix6*)
3263 case $cc_basename in
3264 CC*)
3265 # SGI C++
3266 _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'
3267
3268 # Archives containing C++ object files must be created using
3269 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
3270 # necessary to make sure instantiated templates are included
3271 # in the archive.
3272 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
3273 ;;
3274 *)
3275 if test "$GXX" = yes; then
3276 if test "$with_gnu_ld" = no; then
3277 _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'
3278 else
3279 _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'
3280 fi
3281 fi
3282 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3283 ;;
3284 esac
3285 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3286 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3287 ;;
3288 linux*)
3289 case $cc_basename in
3290 KCC*)
3291 # Kuck and Associates, Inc. (KAI) C++ Compiler
3292
3293 # KCC will only create a shared library if the output file
3294 # ends with ".so" (or ".sl" for HP-UX), so rename the library
3295 # to its proper name (with version) after linking.
3296 _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'
3297 _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'
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 $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'
3307
3308 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
3309 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3310
3311 # Archives containing C++ object files must be created using
3312 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
3313 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3314 ;;
3315 icpc*)
3316 # Intel C++
3317 with_gnu_ld=yes
3318 # version 8.0 and above of icpc choke on multiply defined symbols
3319 # if we add $predep_objects and $postdep_objects, however 7.1 and
3320 # earlier do not add the objects themselves.
3321 case `$CC -V 2>&1` in
3322 *"Version 7."*)
3323 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3324 _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'
3325 ;;
3326 *) # Version 8.0 or newer
3327 tmp_idyn=
3328 case $host_cpu in
3329 ia64*) tmp_idyn=' -i_dynamic';;
3330 esac
3331 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3332 _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'
3333 ;;
3334 esac
3335 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3336 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3337 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3338 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
3339 ;;
3340 pgCC*)
3341 # Portland Group C++ compiler
3342 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
3343 _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'
3344
3345 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3346 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3347 _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'
3348 ;;
3349 cxx*)
3350 # Compaq C++
3351 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3352 _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'
3353
3354 runpath_var=LD_RUN_PATH
3355 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3356 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3357
3358 # Commands to make compiler produce verbose output that lists
3359 # what "hidden" libraries, object files and flags are used when
3360 # linking a shared library.
3361 #
3362 # There doesn't appear to be a way to prevent this compiler from
3363 # explicitly linking system object files so we need to strip them
3364 # from the output so that they don't get included in the library
3365 # dependencies.
3366 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'
3367 ;;
3368 esac
3369 ;;
3370 lynxos*)
3371 # FIXME: insert proper C++ library support
3372 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3373 ;;
3374 m88k*)
3375 # FIXME: insert proper C++ library support
3376 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3377 ;;
3378 mvs*)
3379 case $cc_basename in
3380 cxx*)
3381 # FIXME: insert proper C++ library support
3382 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3383 ;;
3384 *)
3385 # FIXME: insert proper C++ library support
3386 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3387 ;;
3388 esac
3389 ;;
3390 netbsd*)
3391 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3392 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
3393 wlarc=
3394 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3395 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3396 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3397 fi
3398 # Workaround some broken pre-1.5 toolchains
3399 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
3400 ;;
3401 openbsd2*)
3402 # C++ shared libraries are fairly broken
3403 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3404 ;;
3405 openbsd*)
3406 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3407 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3408 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3409 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3410 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3411 _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'
3412 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3413 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3414 fi
3415 output_verbose_link_cmd='echo'
3416 ;;
3417 osf3*)
3418 case $cc_basename in
3419 KCC*)
3420 # Kuck and Associates, Inc. (KAI) C++ Compiler
3421
3422 # KCC will only create a shared library if the output file
3423 # ends with ".so" (or ".sl" for HP-UX), so rename the library
3424 # to its proper name (with version) after linking.
3425 _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'
3426
3427 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3428 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3429
3430 # Archives containing C++ object files must be created using
3431 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
3432 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3433
3434 ;;
3435 RCC*)
3436 # Rational C++ 2.4.1
3437 # FIXME: insert proper C++ library support
3438 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3439 ;;
3440 cxx*)
3441 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3442 _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'
3443
3444 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3445 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3446
3447 # Commands to make compiler produce verbose output that lists
3448 # what "hidden" libraries, object files and flags are used when
3449 # linking a shared library.
3450 #
3451 # There doesn't appear to be a way to prevent this compiler from
3452 # explicitly linking system object files so we need to strip them
3453 # from the output so that they don't get included in the library
3454 # dependencies.
3455 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'
3456 ;;
3457 *)
3458 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3459 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3460 _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'
3461
3462 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3463 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3464
3465 # Commands to make compiler produce verbose output that lists
3466 # what "hidden" libraries, object files and flags are used when
3467 # linking a shared library.
3468 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3469
3470 else
3471 # FIXME: insert proper C++ library support
3472 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3473 fi
3474 ;;
3475 esac
3476 ;;
3477 osf4* | osf5*)
3478 case $cc_basename in
3479 KCC*)
3480 # Kuck and Associates, Inc. (KAI) C++ Compiler
3481
3482 # KCC will only create a shared library if the output file
3483 # ends with ".so" (or ".sl" for HP-UX), so rename the library
3484 # to its proper name (with version) after linking.
3485 _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'
3486
3487 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3488 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3489
3490 # Archives containing C++ object files must be created using
3491 # the KAI C++ compiler.
3492 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
3493 ;;
3494 RCC*)
3495 # Rational C++ 2.4.1
3496 # FIXME: insert proper C++ library support
3497 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3498 ;;
3499 cxx*)
3500 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
3501 _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'
3502 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
3503 echo "-hidden">> $lib.exp~
3504 $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~
3505 $rm $lib.exp'
3506
3507 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3508 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3509
3510 # Commands to make compiler produce verbose output that lists
3511 # what "hidden" libraries, object files and flags are used when
3512 # linking a shared library.
3513 #
3514 # There doesn't appear to be a way to prevent this compiler from
3515 # explicitly linking system object files so we need to strip them
3516 # from the output so that they don't get included in the library
3517 # dependencies.
3518 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'
3519 ;;
3520 *)
3521 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3522 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3523 _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'
3524
3525 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3526 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3527
3528 # Commands to make compiler produce verbose output that lists
3529 # what "hidden" libraries, object files and flags are used when
3530 # linking a shared library.
3531 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3532
3533 else
3534 # FIXME: insert proper C++ library support
3535 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3536 fi
3537 ;;
3538 esac
3539 ;;
3540 psos*)
3541 # FIXME: insert proper C++ library support
3542 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3543 ;;
3544 sunos4*)
3545 case $cc_basename in
3546 CC*)
3547 # Sun C++ 4.x
3548 # FIXME: insert proper C++ library support
3549 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3550 ;;
3551 lcc*)
3552 # Lucid
3553 # FIXME: insert proper C++ library support
3554 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3555 ;;
3556 *)
3557 # FIXME: insert proper C++ library support
3558 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3559 ;;
3560 esac
3561 ;;
3562 solaris*)
3563 case $cc_basename in
3564 CC*)
3565 # Sun C++ 4.2, 5.x and Centerline C++
3566 _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
3567 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3568 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3569 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3570 $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'
3571
3572 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3573 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3574 case $host_os in
3575 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3576 *)
3577 # The C++ compiler is used as linker so we must use $wl
3578 # flag to pass the commands to the underlying system
3579 # linker. We must also pass each convience library through
3580 # to the system linker between allextract/defaultextract.
3581 # The C++ compiler will combine linker options so we
3582 # cannot just pass the convience library names through
3583 # without $wl.
3584 # Supported since Solaris 2.6 (maybe 2.5.1?)
3585 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
3586 ;;
3587 esac
3588 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3589
3590 output_verbose_link_cmd='echo'
3591
3592 # Archives containing C++ object files must be created using
3593 # "CC -xar", where "CC" is the Sun C++ compiler. This is
3594 # necessary to make sure instantiated templates are included
3595 # in the archive.
3596 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
3597 ;;
3598 gcx*)
3599 # Green Hills C++ Compiler
3600 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3601
3602 # The C++ compiler must be used to create the archive.
3603 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
3604 ;;
3605 *)
3606 # GNU C++ compiler with Solaris linker
3607 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3608 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
3609 if $CC --version | grep -v '^2\.7' > /dev/null; then
3610 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3611 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3612 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3613
3614 # Commands to make compiler produce verbose output that lists
3615 # what "hidden" libraries, object files and flags are used when
3616 # linking a shared library.
3617 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
3618 else
3619 # g++ 2.7 appears to require `-G' NOT `-shared' on this
3620 # platform.
3621 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3622 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3623 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3624
3625 # Commands to make compiler produce verbose output that lists
3626 # what "hidden" libraries, object files and flags are used when
3627 # linking a shared library.
3628 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
3629 fi
3630
3631 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
3632 fi
3633 ;;
3634 esac
3635 ;;
3636 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
3637 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3638 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3639 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3640 runpath_var='LD_RUN_PATH'
3641
3642 case $cc_basename in
3643 CC*)
3644 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3645 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3646 ;;
3647 *)
3648 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3649 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3650 ;;
3651 esac
3652 ;;
3653 sysv5* | sco3.2v5* | sco5v6*)
3654 # Note: We can NOT use -z defs as we might desire, because we do not
3655 # link with -lc, and that would cause any symbols used from libc to
3656 # always be unresolved, which means just about no library would
3657 # ever link correctly. If we're not using GNU ld we use -z text
3658 # though, which does catch some bad symbols but isn't as heavy-handed
3659 # as -z defs.
3660 # For security reasons, it is highly recommended that you always
3661 # use absolute paths for naming shared libraries, and exclude the
3662 # DT_RUNPATH tag from executables and libraries. But doing so
3663 # requires that you compile everything twice, which is a pain.
3664 # So that behaviour is only enabled if SCOABSPATH is set to a
3665 # non-empty value in the environment. Most likely only useful for
3666 # creating official distributions of packages.
3667 # This is a hack until libtool officially supports absolute path
3668 # names for shared libraries.
3669 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3670 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
3671 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3672 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3673 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
3674 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3675 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3676 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
3677 runpath_var='LD_RUN_PATH'
3678
3679 case $cc_basename in
3680 CC*)
3681 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3682 _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'
3683 ;;
3684 *)
3685 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3686 _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'
3687 ;;
3688 esac
3689 ;;
3690 tandem*)
3691 case $cc_basename in
3692 NCC*)
3693 # NonStop-UX NCC 3.20
3694 # FIXME: insert proper C++ library support
3695 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3696 ;;
3697 *)
3698 # FIXME: insert proper C++ library support
3699 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3700 ;;
3701 esac
3702 ;;
3703 vxworks*)
3704 # FIXME: insert proper C++ library support
3705 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3706 ;;
3707 *)
3708 # FIXME: insert proper C++ library support
3709 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3710 ;;
3711 esac
3712 AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
3713 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
3714
3715 _LT_AC_TAGVAR(GCC, $1)="$GXX"
3716 _LT_AC_TAGVAR(LD, $1)="$LD"
3717
3718 ## CAVEAT EMPTOR:
3719 ## There is no encapsulation within the following macros, do not change
3720 ## the running order or otherwise move them around unless you know exactly
3721 ## what you are doing...
3722 AC_LIBTOOL_POSTDEP_PREDEP($1)
3723 AC_LIBTOOL_PROG_COMPILER_PIC($1)
3724 AC_LIBTOOL_PROG_CC_C_O($1)
3725 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3726 AC_LIBTOOL_PROG_LD_SHLIBS($1)
3727 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3728 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3729
3730 AC_LIBTOOL_CONFIG($1)
3731
3732 AC_LANG_POP
3733 CC=$lt_save_CC
3734 LDCXX=$LD
3735 LD=$lt_save_LD
3736 GCC=$lt_save_GCC
3737 with_gnu_ldcxx=$with_gnu_ld
3738 with_gnu_ld=$lt_save_with_gnu_ld
3739 lt_cv_path_LDCXX=$lt_cv_path_LD
3740 lt_cv_path_LD=$lt_save_path_LD
3741 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
3742 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
3743 ])# AC_LIBTOOL_LANG_CXX_CONFIG
3744
3745 # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
3746 # ------------------------------------
3747 # Figure out "hidden" library dependencies from verbose
3748 # compiler output when linking a shared library.
3749 # Parse the compiler output and extract the necessary
3750 # objects, libraries and library flags.
3751 AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
3752 dnl we can't use the lt_simple_compile_test_code here,
3753 dnl because it contains code intended for an executable,
3754 dnl not a library. It's possible we should let each
3755 dnl tag define a new lt_????_link_test_code variable,
3756 dnl but it's only used here...
3757 ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
3758 int a;
3759 void foo (void) { a = 0; }
3760 EOF
3761 ],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
3762 class Foo
3763 {
3764 public:
3765 Foo (void) { a = 0; }
3766 private:
3767 int a;
3768 };
3769 EOF
3770 ],[$1],[F77],[cat > conftest.$ac_ext <<EOF
3771 subroutine foo
3772 implicit none
3773 integer*4 a
3774 a=0
3775 return
3776 end
3777 EOF
3778 ],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
3779 public class foo {
3780 private int a;
3781 public void bar (void) {
3782 a = 0;
3783 }
3784 };
3785 EOF
3786 ])
3787 dnl Parse the compiler output and extract the necessary
3788 dnl objects, libraries and library flags.
3789 if AC_TRY_EVAL(ac_compile); then
3790 # Parse the compiler output and extract the necessary
3791 # objects, libraries and library flags.
3792
3793 # Sentinel used to keep track of whether or not we are before
3794 # the conftest object file.
3795 pre_test_object_deps_done=no
3796
3797 # The `*' in the case matches for architectures that use `case' in
3798 # $output_verbose_cmd can trigger glob expansion during the loop
3799 # eval without this substitution.
3800 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
3801
3802 for p in `eval $output_verbose_link_cmd`; do
3803 case $p in
3804
3805 -L* | -R* | -l*)
3806 # Some compilers place space between "-{L,R}" and the path.
3807 # Remove the space.
3808 if test $p = "-L" \
3809 || test $p = "-R"; then
3810 prev=$p
3811 continue
3812 else
3813 prev=
3814 fi
3815
3816 if test "$pre_test_object_deps_done" = no; then
3817 case $p in
3818 -L* | -R*)
3819 # Internal compiler library paths should come after those
3820 # provided the user. The postdeps already come after the
3821 # user supplied libs so there is no need to process them.
3822 if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
3823 _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
3824 else
3825 _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
3826 fi
3827 ;;
3828 # The "-l" case would never come before the object being
3829 # linked, so don't bother handling this case.
3830 esac
3831 else
3832 if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
3833 _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
3834 else
3835 _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
3836 fi
3837 fi
3838 ;;
3839
3840 *.$objext)
3841 # This assumes that the test object file only shows up
3842 # once in the compiler output.
3843 if test "$p" = "conftest.$objext"; then
3844 pre_test_object_deps_done=yes
3845 continue
3846 fi
3847
3848 if test "$pre_test_object_deps_done" = no; then
3849 if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
3850 _LT_AC_TAGVAR(predep_objects, $1)="$p"
3851 else
3852 _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
3853 fi
3854 else
3855 if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
3856 _LT_AC_TAGVAR(postdep_objects, $1)="$p"
3857 else
3858 _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
3859 fi
3860 fi
3861 ;;
3862
3863 *) ;; # Ignore the rest.
3864
3865 esac
3866 done
3867
3868 # Clean up.
3869 rm -f a.out a.exe
3870 else
3871 echo "libtool.m4: error: problem compiling $1 test program"
3872 fi
3873
3874 $rm -f confest.$objext
3875
3876 # PORTME: override above test on systems where it is broken
3877 ifelse([$1],[CXX],
3878 [case $host_os in
3879 interix3*)
3880 # Interix 3.5 installs completely hosed .la files for C++, so rather than
3881 # hack all around it, let's just trust "g++" to DTRT.
3882 _LT_AC_TAGVAR(predep_objects,$1)=
3883 _LT_AC_TAGVAR(postdep_objects,$1)=
3884 _LT_AC_TAGVAR(postdeps,$1)=
3885 ;;
3886
3887 solaris*)
3888 case $cc_basename in
3889 CC*)
3890 # Adding this requires a known-good setup of shared libraries for
3891 # Sun compiler versions before 5.6, else PIC objects from an old
3892 # archive will be linked into the output, leading to subtle bugs.
3893 _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
3894 ;;
3895 esac
3896 ;;
3897 esac
3898 ])
3899
3900 case " $_LT_AC_TAGVAR(postdeps, $1) " in
3901 *" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
3902 esac
3903 ])# AC_LIBTOOL_POSTDEP_PREDEP
3904
3905 # AC_LIBTOOL_LANG_F77_CONFIG
3906 # --------------------------
3907 # Ensure that the configuration vars for the C compiler are
3908 # suitably defined. Those variables are subsequently used by
3909 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3910 AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
3911 AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
3912 [AC_REQUIRE([AC_PROG_F77])
3913 AC_LANG_PUSH(Fortran 77)
3914
3915 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3916 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
3917 _LT_AC_TAGVAR(always_export_symbols, $1)=no
3918 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
3919 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
3920 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3921 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
3922 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
3923 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3924 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
3925 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
3926 _LT_AC_TAGVAR(module_cmds, $1)=
3927 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
3928 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
3929 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
3930 _LT_AC_TAGVAR(no_undefined_flag, $1)=
3931 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3932 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
3933
3934 # Source file extension for f77 test sources.
3935 ac_ext=f
3936
3937 # Object file extension for compiled f77 test sources.
3938 objext=o
3939 _LT_AC_TAGVAR(objext, $1)=$objext
3940
3941 # Code to be used in simple compile tests
3942 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
3943
3944 # Code to be used in simple link tests
3945 lt_simple_link_test_code=" program t\n end\n"
3946
3947 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
3948 _LT_AC_SYS_COMPILER
3949
3950 # save warnings/boilerplate of simple test code
3951 _LT_COMPILER_BOILERPLATE
3952 _LT_LINKER_BOILERPLATE
3953
3954 # Allow CC to be a program name with arguments.
3955 lt_save_CC="$CC"
3956 CC=${F77-"f77"}
3957 compiler=$CC
3958 _LT_AC_TAGVAR(compiler, $1)=$CC
3959 _LT_CC_BASENAME([$compiler])
3960
3961 AC_MSG_CHECKING([if libtool supports shared libraries])
3962 AC_MSG_RESULT([$can_build_shared])
3963
3964 AC_MSG_CHECKING([whether to build shared libraries])
3965 test "$can_build_shared" = "no" && enable_shared=no
3966
3967 # On AIX, shared libraries and static libraries use the same namespace, and
3968 # are all built from PIC.
3969 case $host_os in
3970 aix3*)
3971 test "$enable_shared" = yes && enable_static=no
3972 if test -n "$RANLIB"; then
3973 archive_cmds="$archive_cmds~\$RANLIB \$lib"
3974 postinstall_cmds='$RANLIB $lib'
3975 fi
3976 ;;
3977 aix4* | aix5*)
3978 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
3979 test "$enable_shared" = yes && enable_static=no
3980 fi
3981 ;;
3982 esac
3983 AC_MSG_RESULT([$enable_shared])
3984
3985 AC_MSG_CHECKING([whether to build static libraries])
3986 # Make sure either enable_shared or enable_static is yes.
3987 test "$enable_shared" = yes || enable_static=yes
3988 AC_MSG_RESULT([$enable_static])
3989
3990 _LT_AC_TAGVAR(GCC, $1)="$G77"
3991 _LT_AC_TAGVAR(LD, $1)="$LD"
3992
3993 AC_LIBTOOL_PROG_COMPILER_PIC($1)
3994 AC_LIBTOOL_PROG_CC_C_O($1)
3995 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3996 AC_LIBTOOL_PROG_LD_SHLIBS($1)
3997 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3998 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3999
4000 AC_LIBTOOL_CONFIG($1)
4001
4002 AC_LANG_POP
4003 CC="$lt_save_CC"
4004 ])# AC_LIBTOOL_LANG_F77_CONFIG
4005
4006
4007 # AC_LIBTOOL_LANG_GCJ_CONFIG
4008 # --------------------------
4009 # Ensure that the configuration vars for the C compiler are
4010 # suitably defined. Those variables are subsequently used by
4011 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4012 AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
4013 AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
4014 [AC_LANG_SAVE
4015
4016 # Source file extension for Java test sources.
4017 ac_ext=java
4018
4019 # Object file extension for compiled Java test sources.
4020 objext=o
4021 _LT_AC_TAGVAR(objext, $1)=$objext
4022
4023 # Code to be used in simple compile tests
4024 lt_simple_compile_test_code="class foo {}\n"
4025
4026 # Code to be used in simple link tests
4027 lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
4028
4029 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
4030 _LT_AC_SYS_COMPILER
4031
4032 # save warnings/boilerplate of simple test code
4033 _LT_COMPILER_BOILERPLATE
4034 _LT_LINKER_BOILERPLATE
4035
4036 # Allow CC to be a program name with arguments.
4037 lt_save_CC="$CC"
4038 CC=${GCJ-"gcj"}
4039 compiler=$CC
4040 _LT_AC_TAGVAR(compiler, $1)=$CC
4041 _LT_CC_BASENAME([$compiler])
4042
4043 # GCJ did not exist at the time GCC didn't implicitly link libc in.
4044 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4045
4046 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4047
4048 ## CAVEAT EMPTOR:
4049 ## There is no encapsulation within the following macros, do not change
4050 ## the running order or otherwise move them around unless you know exactly
4051 ## what you are doing...
4052 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
4053 AC_LIBTOOL_PROG_COMPILER_PIC($1)
4054 AC_LIBTOOL_PROG_CC_C_O($1)
4055 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4056 AC_LIBTOOL_PROG_LD_SHLIBS($1)
4057 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4058 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4059
4060 AC_LIBTOOL_CONFIG($1)
4061
4062 AC_LANG_RESTORE
4063 CC="$lt_save_CC"
4064 ])# AC_LIBTOOL_LANG_GCJ_CONFIG
4065
4066
4067 # AC_LIBTOOL_LANG_RC_CONFIG
4068 # -------------------------
4069 # Ensure that the configuration vars for the Windows resource compiler are
4070 # suitably defined. Those variables are subsequently used by
4071 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4072 AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
4073 AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
4074 [AC_LANG_SAVE
4075
4076 # Source file extension for RC test sources.
4077 ac_ext=rc
4078
4079 # Object file extension for compiled RC test sources.
4080 objext=o
4081 _LT_AC_TAGVAR(objext, $1)=$objext
4082
4083 # Code to be used in simple compile tests
4084 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
4085
4086 # Code to be used in simple link tests
4087 lt_simple_link_test_code="$lt_simple_compile_test_code"
4088
4089 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
4090 _LT_AC_SYS_COMPILER
4091
4092 # save warnings/boilerplate of simple test code
4093 _LT_COMPILER_BOILERPLATE
4094 _LT_LINKER_BOILERPLATE
4095
4096 # Allow CC to be a program name with arguments.
4097 lt_save_CC="$CC"
4098 CC=${RC-"windres"}
4099 compiler=$CC
4100 _LT_AC_TAGVAR(compiler, $1)=$CC
4101 _LT_CC_BASENAME([$compiler])
4102 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
4103
4104 AC_LIBTOOL_CONFIG($1)
4105
4106 AC_LANG_RESTORE
4107 CC="$lt_save_CC"
4108 ])# AC_LIBTOOL_LANG_RC_CONFIG
4109
4110
4111 # AC_LIBTOOL_CONFIG([TAGNAME])
4112 # ----------------------------
4113 # If TAGNAME is not passed, then create an initial libtool script
4114 # with a default configuration from the untagged config vars. Otherwise
4115 # add code to config.status for appending the configuration named by
4116 # TAGNAME from the matching tagged config vars.
4117 AC_DEFUN([AC_LIBTOOL_CONFIG],
4118 [# The else clause should only fire when bootstrapping the
4119 # libtool distribution, otherwise you forgot to ship ltmain.sh
4120 # with your package, and you will get complaints that there are
4121 # no rules to generate ltmain.sh.
4122 if test -f "$ltmain"; then
4123 # See if we are running on zsh, and set the options which allow our commands through
4124 # without removal of \ escapes.
4125 if test -n "${ZSH_VERSION+set}" ; then
4126 setopt NO_GLOB_SUBST
4127 fi
4128 # Now quote all the things that may contain metacharacters while being
4129 # careful not to overquote the AC_SUBSTed values. We take copies of the
4130 # variables and quote the copies for generation of the libtool script.
4131 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
4132 SED SHELL STRIP \
4133 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
4134 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
4135 deplibs_check_method reload_flag reload_cmds need_locks \
4136 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
4137 lt_cv_sys_global_symbol_to_c_name_address \
4138 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
4139 old_postinstall_cmds old_postuninstall_cmds \
4140 _LT_AC_TAGVAR(compiler, $1) \
4141 _LT_AC_TAGVAR(CC, $1) \
4142 _LT_AC_TAGVAR(LD, $1) \
4143 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
4144 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
4145 _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
4146 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
4147 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
4148 _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
4149 _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
4150 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
4151 _LT_AC_TAGVAR(old_archive_cmds, $1) \
4152 _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
4153 _LT_AC_TAGVAR(predep_objects, $1) \
4154 _LT_AC_TAGVAR(postdep_objects, $1) \
4155 _LT_AC_TAGVAR(predeps, $1) \
4156 _LT_AC_TAGVAR(postdeps, $1) \
4157 _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
4158 _LT_AC_TAGVAR(archive_cmds, $1) \
4159 _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
4160 _LT_AC_TAGVAR(postinstall_cmds, $1) \
4161 _LT_AC_TAGVAR(postuninstall_cmds, $1) \
4162 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
4163 _LT_AC_TAGVAR(allow_undefined_flag, $1) \
4164 _LT_AC_TAGVAR(no_undefined_flag, $1) \
4165 _LT_AC_TAGVAR(export_symbols_cmds, $1) \
4166 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
4167 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
4168 _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
4169 _LT_AC_TAGVAR(hardcode_automatic, $1) \
4170 _LT_AC_TAGVAR(module_cmds, $1) \
4171 _LT_AC_TAGVAR(module_expsym_cmds, $1) \
4172 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
4173 _LT_AC_TAGVAR(exclude_expsyms, $1) \
4174 _LT_AC_TAGVAR(include_expsyms, $1); do
4175
4176 case $var in
4177 _LT_AC_TAGVAR(old_archive_cmds, $1) | \
4178 _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
4179 _LT_AC_TAGVAR(archive_cmds, $1) | \
4180 _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
4181 _LT_AC_TAGVAR(module_cmds, $1) | \
4182 _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
4183 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
4184 _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
4185 extract_expsyms_cmds | reload_cmds | finish_cmds | \
4186 postinstall_cmds | postuninstall_cmds | \
4187 old_postinstall_cmds | old_postuninstall_cmds | \
4188 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
4189 # Double-quote double-evaled strings.
4190 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
4191 ;;
4192 *)
4193 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
4194 ;;
4195 esac
4196 done
4197
4198 case $lt_echo in
4199 *'\[$]0 --fallback-echo"')
4200 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
4201 ;;
4202 esac
4203
4204 ifelse([$1], [],
4205 [cfgfile="${ofile}T"
4206 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
4207 $rm -f "$cfgfile"
4208 AC_MSG_NOTICE([creating $ofile])],
4209 [cfgfile="$ofile"])
4210
4211 cat <<__EOF__ >> "$cfgfile"
4212 ifelse([$1], [],
4213 [#! $SHELL
4214
4215 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
4216 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4217 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
4218 #
4219 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
4220 # Free Software Foundation, Inc.
4221 #
4222 # This file is part of GNU Libtool:
4223 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
4224 #
4225 # This program is free software; you can redistribute it and/or modify
4226 # it under the terms of the GNU General Public License as published by
4227 # the Free Software Foundation; either version 2 of the License, or
4228 # (at your option) any later version.
4229 #
4230 # This program is distributed in the hope that it will be useful, but
4231 # WITHOUT ANY WARRANTY; without even the implied warranty of
4232 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
4233 # General Public License for more details.
4234 #
4235 # You should have received a copy of the GNU General Public License
4236 # along with this program; if not, write to the Free Software
4237 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
4238 #
4239 # As a special exception to the GNU General Public License, if you
4240 # distribute this file as part of a program that contains a
4241 # configuration script generated by Autoconf, you may include it under
4242 # the same distribution terms that you use for the rest of that program.
4243
4244 # A sed program that does not truncate output.
4245 SED=$lt_SED
4246
4247 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
4248 Xsed="$SED -e 1s/^X//"
4249
4250 # The HP-UX ksh and POSIX shell print the target directory to stdout
4251 # if CDPATH is set.
4252 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4253
4254 # The names of the tagged configurations supported by this script.
4255 available_tags=
4256
4257 # ### BEGIN LIBTOOL CONFIG],
4258 [# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
4259
4260 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4261
4262 # Shell to use when invoking shell scripts.
4263 SHELL=$lt_SHELL
4264
4265 # Whether or not to build shared libraries.
4266 build_libtool_libs=$enable_shared
4267
4268 # Whether or not to build static libraries.
4269 build_old_libs=$enable_static
4270
4271 # Whether or not to add -lc for building shared libraries.
4272 build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
4273
4274 # Whether or not to disallow shared libs when runtime libs are static
4275 allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
4276
4277 # Whether or not to optimize for fast installation.
4278 fast_install=$enable_fast_install
4279
4280 # The host system.
4281 host_alias=$host_alias
4282 host=$host
4283 host_os=$host_os
4284
4285 # The build system.
4286 build_alias=$build_alias
4287 build=$build
4288 build_os=$build_os
4289
4290 # An echo program that does not interpret backslashes.
4291 echo=$lt_echo
4292
4293 # The archiver.
4294 AR=$lt_AR
4295 AR_FLAGS=$lt_AR_FLAGS
4296
4297 # A C compiler.
4298 LTCC=$lt_LTCC
4299
4300 # LTCC compiler flags.
4301 LTCFLAGS=$lt_LTCFLAGS
4302
4303 # A language-specific compiler.
4304 CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
4305
4306 # Is the compiler the GNU C compiler?
4307 with_gcc=$_LT_AC_TAGVAR(GCC, $1)
4308
4309 # An ERE matcher.
4310 EGREP=$lt_EGREP
4311
4312 # The linker used to build libraries.
4313 LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
4314
4315 # Whether we need hard or soft links.
4316 LN_S=$lt_LN_S
4317
4318 # A BSD-compatible nm program.
4319 NM=$lt_NM
4320
4321 # A symbol stripping program
4322 STRIP=$lt_STRIP
4323
4324 # Used to examine libraries when file_magic_cmd begins "file"
4325 MAGIC_CMD=$MAGIC_CMD
4326
4327 # Used on cygwin: DLL creation program.
4328 DLLTOOL="$DLLTOOL"
4329
4330 # Used on cygwin: object dumper.
4331 OBJDUMP="$OBJDUMP"
4332
4333 # Used on cygwin: assembler.
4334 AS="$AS"
4335
4336 # The name of the directory that contains temporary libtool files.
4337 objdir=$objdir
4338
4339 # How to create reloadable object files.
4340 reload_flag=$lt_reload_flag
4341 reload_cmds=$lt_reload_cmds
4342
4343 # How to pass a linker flag through the compiler.
4344 wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
4345
4346 # Object file suffix (normally "o").
4347 objext="$ac_objext"
4348
4349 # Old archive suffix (normally "a").
4350 libext="$libext"
4351
4352 # Shared library suffix (normally ".so").
4353 shrext_cmds='$shrext_cmds'
4354
4355 # Executable file suffix (normally "").
4356 exeext="$exeext"
4357
4358 # Additional compiler flags for building library objects.
4359 pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
4360 pic_mode=$pic_mode
4361
4362 # What is the maximum length of a command?
4363 max_cmd_len=$lt_cv_sys_max_cmd_len
4364
4365 # Does compiler simultaneously support -c and -o options?
4366 compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
4367
4368 # Must we lock files when doing compilation?
4369 need_locks=$lt_need_locks
4370
4371 # Do we need the lib prefix for modules?
4372 need_lib_prefix=$need_lib_prefix
4373
4374 # Do we need a version for libraries?
4375 need_version=$need_version
4376
4377 # Whether dlopen is supported.
4378 dlopen_support=$enable_dlopen
4379
4380 # Whether dlopen of programs is supported.
4381 dlopen_self=$enable_dlopen_self
4382
4383 # Whether dlopen of statically linked programs is supported.
4384 dlopen_self_static=$enable_dlopen_self_static
4385
4386 # Compiler flag to prevent dynamic linking.
4387 link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
4388
4389 # Compiler flag to turn off builtin functions.
4390 no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
4391
4392 # Compiler flag to allow reflexive dlopens.
4393 export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
4394
4395 # Compiler flag to generate shared objects directly from archives.
4396 whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
4397
4398 # Compiler flag to generate thread-safe objects.
4399 thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
4400
4401 # Library versioning type.
4402 version_type=$version_type
4403
4404 # Format of library name prefix.
4405 libname_spec=$lt_libname_spec
4406
4407 # List of archive names. First name is the real one, the rest are links.
4408 # The last name is the one that the linker finds with -lNAME.
4409 library_names_spec=$lt_library_names_spec
4410
4411 # The coded name of the library, if different from the real name.
4412 soname_spec=$lt_soname_spec
4413
4414 # Commands used to build and install an old-style archive.
4415 RANLIB=$lt_RANLIB
4416 old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
4417 old_postinstall_cmds=$lt_old_postinstall_cmds
4418 old_postuninstall_cmds=$lt_old_postuninstall_cmds
4419
4420 # Create an old-style archive from a shared archive.
4421 old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
4422
4423 # Create a temporary old-style archive to link instead of a shared archive.
4424 old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
4425
4426 # Commands used to build and install a shared archive.
4427 archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
4428 archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
4429 postinstall_cmds=$lt_postinstall_cmds
4430 postuninstall_cmds=$lt_postuninstall_cmds
4431
4432 # Commands used to build a loadable module (assumed same as above if empty)
4433 module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
4434 module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
4435
4436 # Commands to strip libraries.
4437 old_striplib=$lt_old_striplib
4438 striplib=$lt_striplib
4439
4440 # Dependencies to place before the objects being linked to create a
4441 # shared library.
4442 predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
4443
4444 # Dependencies to place after the objects being linked to create a
4445 # shared library.
4446 postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
4447
4448 # Dependencies to place before the objects being linked to create a
4449 # shared library.
4450 predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
4451
4452 # Dependencies to place after the objects being linked to create a
4453 # shared library.
4454 postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
4455
4456 # The library search path used internally by the compiler when linking
4457 # a shared library.
4458 compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
4459
4460 # Method to check whether dependent libraries are shared objects.
4461 deplibs_check_method=$lt_deplibs_check_method
4462
4463 # Command to use when deplibs_check_method == file_magic.
4464 file_magic_cmd=$lt_file_magic_cmd
4465
4466 # Flag that allows shared libraries with undefined symbols to be built.
4467 allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
4468
4469 # Flag that forces no undefined symbols.
4470 no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
4471
4472 # Commands used to finish a libtool library installation in a directory.
4473 finish_cmds=$lt_finish_cmds
4474
4475 # Same as above, but a single script fragment to be evaled but not shown.
4476 finish_eval=$lt_finish_eval
4477
4478 # Take the output of nm and produce a listing of raw symbols and C names.
4479 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
4480
4481 # Transform the output of nm in a proper C declaration
4482 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
4483
4484 # Transform the output of nm in a C name address pair
4485 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
4486
4487 # This is the shared library runtime path variable.
4488 runpath_var=$runpath_var
4489
4490 # This is the shared library path variable.
4491 shlibpath_var=$shlibpath_var
4492
4493 # Is shlibpath searched before the hard-coded library search path?
4494 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
4495
4496 # How to hardcode a shared library path into an executable.
4497 hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
4498
4499 # Whether we should hardcode library paths into libraries.
4500 hardcode_into_libs=$hardcode_into_libs
4501
4502 # Flag to hardcode \$libdir into a binary during linking.
4503 # This must work even if \$libdir does not exist.
4504 hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
4505
4506 # If ld is used when linking, flag to hardcode \$libdir into
4507 # a binary during linking. This must work even if \$libdir does
4508 # not exist.
4509 hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
4510
4511 # Whether we need a single -rpath flag with a separated argument.
4512 hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
4513
4514 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
4515 # resulting binary.
4516 hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
4517
4518 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
4519 # resulting binary.
4520 hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
4521
4522 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
4523 # the resulting binary.
4524 hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
4525
4526 # Set to yes if building a shared library automatically hardcodes DIR into the library
4527 # and all subsequent libraries and executables linked against it.
4528 hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
4529
4530 # Variables whose values should be saved in libtool wrapper scripts and
4531 # restored at relink time.
4532 variables_saved_for_relink="$variables_saved_for_relink"
4533
4534 # Whether libtool must link a program against all its dependency libraries.
4535 link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
4536
4537 # Compile-time system search path for libraries
4538 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
4539
4540 # Run-time system search path for libraries
4541 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
4542
4543 # Fix the shell variable \$srcfile for the compiler.
4544 fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
4545
4546 # Set to yes if exported symbols are required.
4547 always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
4548
4549 # The commands to list exported symbols.
4550 export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
4551
4552 # The commands to extract the exported symbol list from a shared archive.
4553 extract_expsyms_cmds=$lt_extract_expsyms_cmds
4554
4555 # Symbols that should not be listed in the preloaded symbols.
4556 exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
4557
4558 # Symbols that must always be exported.
4559 include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
4560
4561 ifelse([$1],[],
4562 [# ### END LIBTOOL CONFIG],
4563 [# ### END LIBTOOL TAG CONFIG: $tagname])
4564
4565 __EOF__
4566
4567 ifelse([$1],[], [
4568 case $host_os in
4569 aix3*)
4570 cat <<\EOF >> "$cfgfile"
4571
4572 # AIX sometimes has problems with the GCC collect2 program. For some
4573 # reason, if we set the COLLECT_NAMES environment variable, the problems
4574 # vanish in a puff of smoke.
4575 if test "X${COLLECT_NAMES+set}" != Xset; then
4576 COLLECT_NAMES=
4577 export COLLECT_NAMES
4578 fi
4579 EOF
4580 ;;
4581 esac
4582
4583 # We use sed instead of cat because bash on DJGPP gets confused if
4584 # if finds mixed CR/LF and LF-only lines. Since sed operates in
4585 # text mode, it properly converts lines to CR/LF. This bash problem
4586 # is reportedly fixed, but why not run on old versions too?
4587 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
4588
4589 mv -f "$cfgfile" "$ofile" || \
4590 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
4591 chmod +x "$ofile"
4592 ])
4593 else
4594 # If there is no Makefile yet, we rely on a make rule to execute
4595 # `config.status --recheck' to rerun these tests and create the
4596 # libtool script then.
4597 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
4598 if test -f "$ltmain_in"; then
4599 test -f Makefile && make "$ltmain"
4600 fi
4601 fi
4602 ])# AC_LIBTOOL_CONFIG
4603
4604
4605 # AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
4606 # -------------------------------------------
4607 AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
4608 [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
4609
4610 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
4611 3297
4612 if test "$GCC" = yes; then 3298 if test "$GCC" = yes; then
4613 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' 3299 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
4614 3300
4615 AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], 3301 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
4616 lt_cv_prog_compiler_rtti_exceptions, 3302 lt_cv_prog_compiler_rtti_exceptions,
4617 [-fno-rtti -fno-exceptions], [], 3303 [-fno-rtti -fno-exceptions], [],
4618 [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) 3304 [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
4619 fi 3305 fi
4620 ])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI 3306 _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
4621 3307 [Compiler flag to turn off builtin functions])
4622 3308 ])# _LT_COMPILER_NO_RTTI
4623 # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE 3309
4624 # --------------------------------- 3310
4625 AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], 3311 # _LT_CMD_GLOBAL_SYMBOLS
4626 [AC_REQUIRE([AC_CANONICAL_HOST]) 3312 # ----------------------
4627 AC_REQUIRE([AC_PROG_NM]) 3313 m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
4628 AC_REQUIRE([AC_OBJEXT]) 3314 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
3315 AC_REQUIRE([AC_PROG_CC])dnl
3316 AC_REQUIRE([LT_PATH_NM])dnl
3317 AC_REQUIRE([LT_PATH_LD])dnl
3318 m4_require([_LT_DECL_SED])dnl
3319 m4_require([_LT_DECL_EGREP])dnl
3320 m4_require([_LT_TAG_COMPILER])dnl
3321
4629 # Check for command to grab the raw symbol name followed by C symbol from nm. 3322 # Check for command to grab the raw symbol name followed by C symbol from nm.
4630 AC_MSG_CHECKING([command to parse $NM output from $compiler object]) 3323 AC_MSG_CHECKING([command to parse $NM output from $compiler object])
4631 AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], 3324 AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
4632 [ 3325 [
4633 # These are sane defaults that work on at least a few old systems. 3326 # These are sane defaults that work on at least a few old systems.
4637 symcode='[[BCDEGRST]]' 3330 symcode='[[BCDEGRST]]'
4638 3331
4639 # Regexp to match symbols that can be accessed directly from C. 3332 # Regexp to match symbols that can be accessed directly from C.
4640 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' 3333 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
4641 3334
4642 # Transform an extracted symbol line into a proper C declaration
4643 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4644
4645 # Transform an extracted symbol line into symbol name and symbol address
4646 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'"
4647
4648 # Define system-specific variables. 3335 # Define system-specific variables.
4649 case $host_os in 3336 case $host_os in
4650 aix*) 3337 aix*)
4651 symcode='[[BCDT]]' 3338 symcode='[[BCDT]]'
4652 ;; 3339 ;;
4653 cygwin* | mingw* | pw32*) 3340 cygwin* | mingw* | pw32* | cegcc*)
4654 symcode='[[ABCDGISTW]]' 3341 symcode='[[ABCDGISTW]]'
4655 ;; 3342 ;;
4656 hpux*) # Its linker distinguishes data from code symbols 3343 hpux*)
4657 if test "$host_cpu" = ia64; then 3344 if test "$host_cpu" = ia64; then
4658 symcode='[[ABCDEGRST]]' 3345 symcode='[[ABCDEGRST]]'
4659 fi 3346 fi
4660 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4661 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'"
4662 ;;
4663 linux*)
4664 if test "$host_cpu" = ia64; then
4665 symcode='[[ABCDGIRSTW]]'
4666 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4667 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'"
4668 fi
4669 ;; 3347 ;;
4670 irix* | nonstopux*) 3348 irix* | nonstopux*)
4671 symcode='[[BCDEGRST]]' 3349 symcode='[[BCDEGRST]]'
4672 ;; 3350 ;;
4673 osf*) 3351 osf*)
4685 sysv5* | sco5v6* | unixware* | OpenUNIX*) 3363 sysv5* | sco5v6* | unixware* | OpenUNIX*)
4686 symcode='[[ABDT]]' 3364 symcode='[[ABDT]]'
4687 ;; 3365 ;;
4688 sysv4) 3366 sysv4)
4689 symcode='[[DFNSTU]]' 3367 symcode='[[DFNSTU]]'
4690 ;;
4691 esac
4692
4693 # Handle CRLF in mingw tool chain
4694 opt_cr=
4695 case $build_os in
4696 mingw*)
4697 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4698 ;; 3368 ;;
4699 esac 3369 esac
4700 3370
4701 # If we're using GNU nm, then use its standard symbol codes. 3371 # If we're using GNU nm, then use its standard symbol codes.
4702 case `$NM -V 2>&1` in 3372 case `$NM -V 2>&1` in
4703 *GNU* | *'with BFD'*) 3373 *GNU* | *'with BFD'*)
4704 symcode='[[ABCDGIRSTW]]' ;; 3374 symcode='[[ABCDGIRSTW]]' ;;
4705 esac 3375 esac
4706 3376
4707 # Try without a prefix undercore, then with it. 3377 # Transform an extracted symbol line into a proper C declaration.
3378 # Some systems (esp. on ia64) link data and code symbols differently,
3379 # so use this general approach.
3380 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3381
3382 # Transform an extracted symbol line into symbol name and symbol address
3383 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
3384 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'"
3385
3386 # Handle CRLF in mingw tool chain
3387 opt_cr=
3388 case $build_os in
3389 mingw*)
3390 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3391 ;;
3392 esac
3393
3394 # Try without a prefix underscore, then with it.
4708 for ac_symprfx in "" "_"; do 3395 for ac_symprfx in "" "_"; do
4709 3396
4710 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 3397 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4711 symxfrm="\\1 $ac_symprfx\\2 \\2" 3398 symxfrm="\\1 $ac_symprfx\\2 \\2"
4712 3399
4713 # Write the raw and C identifiers. 3400 # Write the raw and C identifiers.
4714 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 3401 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
3402 # Fake it for dumpbin and say T for any non-static function
3403 # and D for any global variable.
3404 # Also find C++ and __fastcall symbols from MSVC++,
3405 # which start with @ or ?.
3406 lt_cv_sys_global_symbol_pipe="$AWK ['"\
3407 " {last_section=section; section=\$ 3};"\
3408 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
3409 " \$ 0!~/External *\|/{next};"\
3410 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
3411 " {if(hide[section]) next};"\
3412 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
3413 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
3414 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
3415 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
3416 " ' prfx=^$ac_symprfx]"
3417 else
3418 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
3419 fi
4715 3420
4716 # Check to see that the pipe works correctly. 3421 # Check to see that the pipe works correctly.
4717 pipe_works=no 3422 pipe_works=no
4718 3423
4719 rm -f conftest* 3424 rm -f conftest*
4720 cat > conftest.$ac_ext <<EOF 3425 cat > conftest.$ac_ext <<_LT_EOF
4721 #ifdef __cplusplus 3426 #ifdef __cplusplus
4722 extern "C" { 3427 extern "C" {
4723 #endif 3428 #endif
4724 char nm_test_var; 3429 char nm_test_var;
4725 void nm_test_func(){} 3430 void nm_test_func(void);
3431 void nm_test_func(void){}
4726 #ifdef __cplusplus 3432 #ifdef __cplusplus
4727 } 3433 }
4728 #endif 3434 #endif
4729 int main(){nm_test_var='a';nm_test_func();return(0);} 3435 int main(){nm_test_var='a';nm_test_func();return(0);}
4730 EOF 3436 _LT_EOF
4731 3437
4732 if AC_TRY_EVAL(ac_compile); then 3438 if AC_TRY_EVAL(ac_compile); then
4733 # Now try to grab the symbols. 3439 # Now try to grab the symbols.
4734 nlist=conftest.nm 3440 nlist=conftest.nm
4735 if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then 3441 if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
4739 else 3445 else
4740 rm -f "$nlist"T 3446 rm -f "$nlist"T
4741 fi 3447 fi
4742 3448
4743 # Make sure that we snagged all the symbols we need. 3449 # Make sure that we snagged all the symbols we need.
4744 if grep ' nm_test_var$' "$nlist" >/dev/null; then 3450 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4745 if grep ' nm_test_func$' "$nlist" >/dev/null; then 3451 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4746 cat <<EOF > conftest.$ac_ext 3452 cat <<_LT_EOF > conftest.$ac_ext
4747 #ifdef __cplusplus 3453 #ifdef __cplusplus
4748 extern "C" { 3454 extern "C" {
4749 #endif 3455 #endif
4750 3456
4751 EOF 3457 _LT_EOF
4752 # Now generate the symbol file. 3458 # Now generate the symbol file.
4753 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 3459 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4754 3460
4755 cat <<EOF >> conftest.$ac_ext 3461 cat <<_LT_EOF >> conftest.$ac_ext
4756 #if defined (__STDC__) && __STDC__ 3462
4757 # define lt_ptr_t void * 3463 /* The mapping between symbol names and symbols. */
4758 #else
4759 # define lt_ptr_t char *
4760 # define const
4761 #endif
4762
4763 /* The mapping between symbol names and symbols. */
4764 const struct { 3464 const struct {
4765 const char *name; 3465 const char *name;
4766 lt_ptr_t address; 3466 void *address;
4767 } 3467 }
4768 lt_preloaded_symbols[[]] = 3468 lt__PROGRAM__LTX_preloaded_symbols[[]] =
4769 { 3469 {
4770 EOF 3470 { "@PROGRAM@", (void *) 0 },
4771 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 3471 _LT_EOF
4772 cat <<\EOF >> conftest.$ac_ext 3472 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4773 {0, (lt_ptr_t) 0} 3473 cat <<\_LT_EOF >> conftest.$ac_ext
3474 {0, (void *) 0}
4774 }; 3475 };
3476
3477 /* This works around a problem in FreeBSD linker */
3478 #ifdef FREEBSD_WORKAROUND
3479 static const void *lt_preloaded_setup() {
3480 return lt__PROGRAM__LTX_preloaded_symbols;
3481 }
3482 #endif
4775 3483
4776 #ifdef __cplusplus 3484 #ifdef __cplusplus
4777 } 3485 }
4778 #endif 3486 #endif
4779 EOF 3487 _LT_EOF
4780 # Now try linking the two files. 3488 # Now try linking the two files.
4781 mv conftest.$ac_objext conftstm.$ac_objext 3489 mv conftest.$ac_objext conftstm.$ac_objext
4782 lt_save_LIBS="$LIBS" 3490 lt_save_LIBS="$LIBS"
4783 lt_save_CFLAGS="$CFLAGS" 3491 lt_save_CFLAGS="$CFLAGS"
4784 LIBS="conftstm.$ac_objext" 3492 LIBS="conftstm.$ac_objext"
4785 CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" 3493 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
4786 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then 3494 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
4787 pipe_works=yes 3495 pipe_works=yes
4788 fi 3496 fi
4789 LIBS="$lt_save_LIBS" 3497 LIBS="$lt_save_LIBS"
4790 CFLAGS="$lt_save_CFLAGS" 3498 CFLAGS="$lt_save_CFLAGS"
4799 fi 3507 fi
4800 else 3508 else
4801 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD 3509 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
4802 cat conftest.$ac_ext >&5 3510 cat conftest.$ac_ext >&5
4803 fi 3511 fi
4804 rm -f conftest* conftst* 3512 rm -rf conftest* conftst*
4805 3513
4806 # Do not use the global_symbol_pipe unless it works. 3514 # Do not use the global_symbol_pipe unless it works.
4807 if test "$pipe_works" = yes; then 3515 if test "$pipe_works" = yes; then
4808 break 3516 break
4809 else 3517 else
4817 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 3525 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4818 AC_MSG_RESULT(failed) 3526 AC_MSG_RESULT(failed)
4819 else 3527 else
4820 AC_MSG_RESULT(ok) 3528 AC_MSG_RESULT(ok)
4821 fi 3529 fi
4822 ]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE 3530
4823 3531 _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
4824 3532 [Take the output of nm and produce a listing of raw symbols and C names])
4825 # AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME]) 3533 _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
4826 # --------------------------------------- 3534 [Transform the output of nm in a proper C declaration])
4827 AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC], 3535 _LT_DECL([global_symbol_to_c_name_address],
4828 [_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)= 3536 [lt_cv_sys_global_symbol_to_c_name_address], [1],
4829 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 3537 [Transform the output of nm in a C name address pair])
4830 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)= 3538 _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
3539 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
3540 [Transform the output of nm in a C name address pair when lib prefix is needed])
3541 ]) # _LT_CMD_GLOBAL_SYMBOLS
3542
3543
3544 # _LT_COMPILER_PIC([TAGNAME])
3545 # ---------------------------
3546 m4_defun([_LT_COMPILER_PIC],
3547 [m4_require([_LT_TAG_COMPILER])dnl
3548 _LT_TAGVAR(lt_prog_compiler_wl, $1)=
3549 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3550 _LT_TAGVAR(lt_prog_compiler_static, $1)=
4831 3551
4832 AC_MSG_CHECKING([for $compiler option to produce PIC]) 3552 AC_MSG_CHECKING([for $compiler option to produce PIC])
4833 ifelse([$1],[CXX],[ 3553 m4_if([$1], [CXX], [
4834 # C++ specific cases for pic, static, wl, etc. 3554 # C++ specific cases for pic, static, wl, etc.
4835 if test "$GXX" = yes; then 3555 if test "$GXX" = yes; then
4836 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 3556 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4837 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' 3557 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4838 3558
4839 case $host_os in 3559 case $host_os in
4840 aix*) 3560 aix*)
4841 # All AIX code is PIC. 3561 # All AIX code is PIC.
4842 if test "$host_cpu" = ia64; then 3562 if test "$host_cpu" = ia64; then
4843 # AIX 5 now supports IA64 processor 3563 # AIX 5 now supports IA64 processor
4844 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 3564 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4845 fi 3565 fi
4846 ;; 3566 ;;
3567
4847 amigaos*) 3568 amigaos*)
4848 # FIXME: we need at least 68020 code to build shared libraries, but 3569 case $host_cpu in
4849 # adding the `-m68020' flag to GCC prevents building anything better, 3570 powerpc)
4850 # like `-m68040'. 3571 # see comment about AmigaOS4 .so support
4851 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 3572 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4852 ;; 3573 ;;
4853 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 3574 m68k)
3575 # FIXME: we need at least 68020 code to build shared libraries, but
3576 # adding the `-m68020' flag to GCC prevents building anything better,
3577 # like `-m68040'.
3578 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
3579 ;;
3580 esac
3581 ;;
3582
3583 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4854 # PIC is the default for these OSes. 3584 # PIC is the default for these OSes.
4855 ;; 3585 ;;
4856 mingw* | os2* | pw32*) 3586 mingw* | cygwin* | os2* | pw32* | cegcc*)
4857 # This hack is so that the source file can tell whether it is being 3587 # This hack is so that the source file can tell whether it is being
4858 # built for inclusion in a dll (and should export symbols for example). 3588 # built for inclusion in a dll (and should export symbols for example).
4859 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' 3589 # Although the cygwin gcc ignores -fPIC, still need this for old-style
3590 # (--disable-auto-import) libraries
3591 m4_if([$1], [GCJ], [],
3592 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4860 ;; 3593 ;;
4861 darwin* | rhapsody*) 3594 darwin* | rhapsody*)
4862 # PIC is the default on this platform 3595 # PIC is the default on this platform
4863 # Common symbols not allowed in MH_DYLIB files 3596 # Common symbols not allowed in MH_DYLIB files
4864 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 3597 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4865 ;; 3598 ;;
4866 *djgpp*) 3599 *djgpp*)
4867 # DJGPP does not support shared libraries at all 3600 # DJGPP does not support shared libraries at all
4868 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 3601 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4869 ;; 3602 ;;
4870 interix3*) 3603 interix[[3-9]]*)
4871 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 3604 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4872 # Instead, we relocate shared libraries at runtime. 3605 # Instead, we relocate shared libraries at runtime.
4873 ;; 3606 ;;
4874 sysv4*MP*) 3607 sysv4*MP*)
4875 if test -d /usr/nec; then 3608 if test -d /usr/nec; then
4876 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic 3609 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4877 fi 3610 fi
4878 ;; 3611 ;;
4879 hpux*) 3612 hpux*)
4880 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 3613 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4881 # not for PA HP-UX. 3614 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
3615 # sets the default TLS model and affects inlining.
4882 case $host_cpu in 3616 case $host_cpu in
4883 hppa*64*|ia64*) 3617 hppa*64*)
4884 ;; 3618 ;;
4885 *) 3619 *)
4886 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 3620 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4887 ;; 3621 ;;
4888 esac 3622 esac
4889 ;; 3623 ;;
3624 *qnx* | *nto*)
3625 # QNX uses GNU C++, but need to define -shared option too, otherwise
3626 # it will coredump.
3627 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
3628 ;;
4890 *) 3629 *)
4891 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 3630 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4892 ;; 3631 ;;
4893 esac 3632 esac
4894 else 3633 else
4895 case $host_os in 3634 case $host_os in
4896 aix4* | aix5*) 3635 aix[[4-9]]*)
4897 # All AIX code is PIC. 3636 # All AIX code is PIC.
4898 if test "$host_cpu" = ia64; then 3637 if test "$host_cpu" = ia64; then
4899 # AIX 5 now supports IA64 processor 3638 # AIX 5 now supports IA64 processor
4900 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 3639 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4901 else 3640 else
4902 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 3641 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4903 fi 3642 fi
4904 ;; 3643 ;;
4905 chorus*) 3644 chorus*)
4906 case $cc_basename in 3645 case $cc_basename in
4907 cxch68*) 3646 cxch68*)
4908 # Green Hills C++ Compiler 3647 # Green Hills C++ Compiler
4909 # _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" 3648 # _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"
4910 ;; 3649 ;;
4911 esac 3650 esac
4912 ;; 3651 ;;
4913 darwin*)
4914 # PIC is the default on this platform
4915 # Common symbols not allowed in MH_DYLIB files
4916 case $cc_basename in
4917 xlc*)
4918 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
4919 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4920 ;;
4921 esac
4922 ;;
4923 dgux*) 3652 dgux*)
4924 case $cc_basename in 3653 case $cc_basename in
4925 ec++*) 3654 ec++*)
4926 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 3655 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4927 ;; 3656 ;;
4928 ghcx*) 3657 ghcx*)
4929 # Green Hills C++ Compiler 3658 # Green Hills C++ Compiler
4930 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 3659 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4931 ;; 3660 ;;
4932 *) 3661 *)
4933 ;; 3662 ;;
4934 esac 3663 esac
4935 ;; 3664 ;;
4936 freebsd* | kfreebsd*-gnu | dragonfly*) 3665 freebsd* | dragonfly*)
4937 # FreeBSD uses GNU C++ 3666 # FreeBSD uses GNU C++
4938 ;; 3667 ;;
4939 hpux9* | hpux10* | hpux11*) 3668 hpux9* | hpux10* | hpux11*)
4940 case $cc_basename in 3669 case $cc_basename in
4941 CC*) 3670 CC*)
4942 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 3671 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4943 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 3672 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4944 if test "$host_cpu" != ia64; then 3673 if test "$host_cpu" != ia64; then
4945 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 3674 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4946 fi 3675 fi
4947 ;; 3676 ;;
4948 aCC*) 3677 aCC*)
4949 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 3678 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4950 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 3679 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4951 case $host_cpu in 3680 case $host_cpu in
4952 hppa*64*|ia64*) 3681 hppa*64*|ia64*)
4953 # +Z the default 3682 # +Z the default
4954 ;; 3683 ;;
4955 *) 3684 *)
4956 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 3685 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4957 ;; 3686 ;;
4958 esac 3687 esac
4959 ;; 3688 ;;
4960 *) 3689 *)
4961 ;; 3690 ;;
4966 # Anyone wants to do a port? 3695 # Anyone wants to do a port?
4967 ;; 3696 ;;
4968 irix5* | irix6* | nonstopux*) 3697 irix5* | irix6* | nonstopux*)
4969 case $cc_basename in 3698 case $cc_basename in
4970 CC*) 3699 CC*)
4971 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 3700 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4972 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 3701 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4973 # CC pic flag -KPIC is the default. 3702 # CC pic flag -KPIC is the default.
4974 ;; 3703 ;;
4975 *) 3704 *)
4976 ;; 3705 ;;
4977 esac 3706 esac
4978 ;; 3707 ;;
4979 linux*) 3708 linux* | k*bsd*-gnu)
4980 case $cc_basename in 3709 case $cc_basename in
4981 KCC*) 3710 KCC*)
4982 # KAI C++ Compiler 3711 # KAI C++ Compiler
4983 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 3712 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4984 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 3713 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4985 ;; 3714 ;;
4986 icpc* | ecpc*) 3715 ecpc* )
4987 # Intel C++ 3716 # old Intel C++ for x86_64 which still supported -KPIC.
4988 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 3717 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4989 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 3718 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4990 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' 3719 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4991 ;; 3720 ;;
4992 pgCC*) 3721 icpc* )
4993 # Portland Group C++ compiler. 3722 # Intel C++, used to be incompatible with GCC.
4994 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 3723 # ICC 10 doesn't accept -KPIC any more.
4995 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 3724 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4996 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 3725 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3726 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
3727 ;;
3728 pgCC* | pgcpp*)
3729 # Portland Group C++ compiler
3730 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3731 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
3732 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4997 ;; 3733 ;;
4998 cxx*) 3734 cxx*)
4999 # Compaq C++ 3735 # Compaq C++
5000 # Make sure the PIC flag is empty. It appears that all Alpha 3736 # Make sure the PIC flag is empty. It appears that all Alpha
5001 # Linux and Compaq Tru64 Unix objects are PIC. 3737 # Linux and Compaq Tru64 Unix objects are PIC.
5002 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 3738 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
5003 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 3739 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3740 ;;
3741 xlc* | xlC*)
3742 # IBM XL 8.0 on PPC
3743 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3744 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
3745 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
5004 ;; 3746 ;;
5005 *) 3747 *)
3748 case `$CC -V 2>&1 | sed 5q` in
3749 *Sun\ C*)
3750 # Sun C++ 5.9
3751 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3752 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3753 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
3754 ;;
3755 esac
5006 ;; 3756 ;;
5007 esac 3757 esac
5008 ;; 3758 ;;
5009 lynxos*) 3759 lynxos*)
5010 ;; 3760 ;;
5011 m88k*) 3761 m88k*)
5012 ;; 3762 ;;
5013 mvs*) 3763 mvs*)
5014 case $cc_basename in 3764 case $cc_basename in
5015 cxx*) 3765 cxx*)
5016 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' 3766 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
5017 ;; 3767 ;;
5018 *) 3768 *)
5019 ;; 3769 ;;
5020 esac 3770 esac
5021 ;; 3771 ;;
5022 netbsd*) 3772 netbsd*)
5023 ;; 3773 ;;
3774 *qnx* | *nto*)
3775 # QNX uses GNU C++, but need to define -shared option too, otherwise
3776 # it will coredump.
3777 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
3778 ;;
5024 osf3* | osf4* | osf5*) 3779 osf3* | osf4* | osf5*)
5025 case $cc_basename in 3780 case $cc_basename in
5026 KCC*) 3781 KCC*)
5027 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 3782 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5028 ;; 3783 ;;
5029 RCC*) 3784 RCC*)
5030 # Rational C++ 2.4.1 3785 # Rational C++ 2.4.1
5031 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 3786 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5032 ;; 3787 ;;
5033 cxx*) 3788 cxx*)
5034 # Digital/Compaq C++ 3789 # Digital/Compaq C++
5035 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 3790 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5036 # Make sure the PIC flag is empty. It appears that all Alpha 3791 # Make sure the PIC flag is empty. It appears that all Alpha
5037 # Linux and Compaq Tru64 Unix objects are PIC. 3792 # Linux and Compaq Tru64 Unix objects are PIC.
5038 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 3793 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
5039 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 3794 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5040 ;; 3795 ;;
5041 *) 3796 *)
5042 ;; 3797 ;;
5043 esac 3798 esac
5044 ;; 3799 ;;
5046 ;; 3801 ;;
5047 solaris*) 3802 solaris*)
5048 case $cc_basename in 3803 case $cc_basename in
5049 CC*) 3804 CC*)
5050 # Sun C++ 4.2, 5.x and Centerline C++ 3805 # Sun C++ 4.2, 5.x and Centerline C++
5051 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 3806 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5052 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 3807 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5053 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 3808 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5054 ;; 3809 ;;
5055 gcx*) 3810 gcx*)
5056 # Green Hills C++ Compiler 3811 # Green Hills C++ Compiler
5057 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 3812 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5058 ;; 3813 ;;
5059 *) 3814 *)
5060 ;; 3815 ;;
5061 esac 3816 esac
5062 ;; 3817 ;;
5063 sunos4*) 3818 sunos4*)
5064 case $cc_basename in 3819 case $cc_basename in
5065 CC*) 3820 CC*)
5066 # Sun C++ 4.x 3821 # Sun C++ 4.x
5067 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 3822 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5068 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 3823 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5069 ;; 3824 ;;
5070 lcc*) 3825 lcc*)
5071 # Lucid 3826 # Lucid
5072 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 3827 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5073 ;;
5074 *)
5075 ;;
5076 esac
5077 ;;
5078 tandem*)
5079 case $cc_basename in
5080 NCC*)
5081 # NonStop-UX NCC 3.20
5082 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5083 ;; 3828 ;;
5084 *) 3829 *)
5085 ;; 3830 ;;
5086 esac 3831 esac
5087 ;; 3832 ;;
5088 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 3833 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5089 case $cc_basename in 3834 case $cc_basename in
5090 CC*) 3835 CC*)
5091 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 3836 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5092 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 3837 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5093 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 3838 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3839 ;;
3840 esac
3841 ;;
3842 tandem*)
3843 case $cc_basename in
3844 NCC*)
3845 # NonStop-UX NCC 3.20
3846 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3847 ;;
3848 *)
5094 ;; 3849 ;;
5095 esac 3850 esac
5096 ;; 3851 ;;
5097 vxworks*) 3852 vxworks*)
5098 ;; 3853 ;;
5099 *) 3854 *)
5100 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 3855 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5101 ;; 3856 ;;
5102 esac 3857 esac
5103 fi 3858 fi
5104 ], 3859 ],
5105 [ 3860 [
5106 if test "$GCC" = yes; then 3861 if test "$GCC" = yes; then
5107 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 3862 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5108 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' 3863 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
5109 3864
5110 case $host_os in 3865 case $host_os in
5111 aix*) 3866 aix*)
5112 # All AIX code is PIC. 3867 # All AIX code is PIC.
5113 if test "$host_cpu" = ia64; then 3868 if test "$host_cpu" = ia64; then
5114 # AIX 5 now supports IA64 processor 3869 # AIX 5 now supports IA64 processor
5115 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 3870 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5116 fi 3871 fi
5117 ;; 3872 ;;
5118 3873
5119 amigaos*) 3874 amigaos*)
5120 # FIXME: we need at least 68020 code to build shared libraries, but 3875 case $host_cpu in
5121 # adding the `-m68020' flag to GCC prevents building anything better, 3876 powerpc)
5122 # like `-m68040'. 3877 # see comment about AmigaOS4 .so support
5123 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 3878 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5124 ;; 3879 ;;
5125 3880 m68k)
5126 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 3881 # FIXME: we need at least 68020 code to build shared libraries, but
3882 # adding the `-m68020' flag to GCC prevents building anything better,
3883 # like `-m68040'.
3884 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
3885 ;;
3886 esac
3887 ;;
3888
3889 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5127 # PIC is the default for these OSes. 3890 # PIC is the default for these OSes.
5128 ;; 3891 ;;
5129 3892
5130 mingw* | pw32* | os2*) 3893 mingw* | cygwin* | pw32* | os2* | cegcc*)
5131 # This hack is so that the source file can tell whether it is being 3894 # This hack is so that the source file can tell whether it is being
5132 # built for inclusion in a dll (and should export symbols for example). 3895 # built for inclusion in a dll (and should export symbols for example).
5133 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' 3896 # Although the cygwin gcc ignores -fPIC, still need this for old-style
3897 # (--disable-auto-import) libraries
3898 m4_if([$1], [GCJ], [],
3899 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5134 ;; 3900 ;;
5135 3901
5136 darwin* | rhapsody*) 3902 darwin* | rhapsody*)
5137 # PIC is the default on this platform 3903 # PIC is the default on this platform
5138 # Common symbols not allowed in MH_DYLIB files 3904 # Common symbols not allowed in MH_DYLIB files
5139 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 3905 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5140 ;; 3906 ;;
5141 3907
5142 interix3*) 3908 hpux*)
3909 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
3910 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
3911 # sets the default TLS model and affects inlining.
3912 case $host_cpu in
3913 hppa*64*)
3914 # +Z the default
3915 ;;
3916 *)
3917 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3918 ;;
3919 esac
3920 ;;
3921
3922 interix[[3-9]]*)
5143 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 3923 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5144 # Instead, we relocate shared libraries at runtime. 3924 # Instead, we relocate shared libraries at runtime.
5145 ;; 3925 ;;
5146 3926
5147 msdosdjgpp*) 3927 msdosdjgpp*)
5148 # Just because we use GCC doesn't mean we suddenly get shared libraries 3928 # Just because we use GCC doesn't mean we suddenly get shared libraries
5149 # on systems that don't support them. 3929 # on systems that don't support them.
5150 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 3930 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5151 enable_shared=no 3931 enable_shared=no
3932 ;;
3933
3934 *nto* | *qnx*)
3935 # QNX uses GNU C++, but need to define -shared option too, otherwise
3936 # it will coredump.
3937 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
5152 ;; 3938 ;;
5153 3939
5154 sysv4*MP*) 3940 sysv4*MP*)
5155 if test -d /usr/nec; then 3941 if test -d /usr/nec; then
5156 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic 3942 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5157 fi 3943 fi
5158 ;; 3944 ;;
5159 3945
5160 hpux*) 3946 *)
3947 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3948 ;;
3949 esac
3950 else
3951 # PORTME Check for flag to pass linker flags through the system compiler.
3952 case $host_os in
3953 aix*)
3954 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3955 if test "$host_cpu" = ia64; then
3956 # AIX 5 now supports IA64 processor
3957 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3958 else
3959 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
3960 fi
3961 ;;
3962
3963 mingw* | cygwin* | pw32* | os2* | cegcc*)
3964 # This hack is so that the source file can tell whether it is being
3965 # built for inclusion in a dll (and should export symbols for example).
3966 m4_if([$1], [GCJ], [],
3967 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
3968 ;;
3969
3970 hpux9* | hpux10* | hpux11*)
3971 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5161 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 3972 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5162 # not for PA HP-UX. 3973 # not for PA HP-UX.
5163 case $host_cpu in 3974 case $host_cpu in
5164 hppa*64*|ia64*) 3975 hppa*64*|ia64*)
5165 # +Z the default 3976 # +Z the default
5166 ;; 3977 ;;
5167 *) 3978 *)
5168 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 3979 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5169 ;;
5170 esac
5171 ;;
5172
5173 *)
5174 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5175 ;;
5176 esac
5177 else
5178 # PORTME Check for flag to pass linker flags through the system compiler.
5179 case $host_os in
5180 aix*)
5181 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5182 if test "$host_cpu" = ia64; then
5183 # AIX 5 now supports IA64 processor
5184 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5185 else
5186 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5187 fi
5188 ;;
5189 darwin*)
5190 # PIC is the default on this platform
5191 # Common symbols not allowed in MH_DYLIB files
5192 case $cc_basename in
5193 xlc*)
5194 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
5195 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5196 ;;
5197 esac
5198 ;;
5199
5200 mingw* | pw32* | os2*)
5201 # This hack is so that the source file can tell whether it is being
5202 # built for inclusion in a dll (and should export symbols for example).
5203 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5204 ;;
5205
5206 hpux9* | hpux10* | hpux11*)
5207 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5208 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5209 # not for PA HP-UX.
5210 case $host_cpu in
5211 hppa*64*|ia64*)
5212 # +Z the default
5213 ;;
5214 *)
5215 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5216 ;; 3980 ;;
5217 esac 3981 esac
5218 # Is there a better lt_prog_compiler_static that works with the bundled CC? 3982 # Is there a better lt_prog_compiler_static that works with the bundled CC?
5219 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 3983 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5220 ;; 3984 ;;
5221 3985
5222 irix5* | irix6* | nonstopux*) 3986 irix5* | irix6* | nonstopux*)
5223 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 3987 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5224 # PIC (with -KPIC) is the default. 3988 # PIC (with -KPIC) is the default.
5225 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 3989 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5226 ;; 3990 ;;
5227 3991
5228 newsos6) 3992 linux* | k*bsd*-gnu)
5229 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5230 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5231 ;;
5232
5233 linux*)
5234 case $cc_basename in 3993 case $cc_basename in
5235 icc* | ecc*) 3994 # old Intel for x86_64 which still supported -KPIC.
5236 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 3995 ecc*)
5237 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 3996 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5238 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' 3997 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3998 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
5239 ;; 3999 ;;
4000 # icc used to be incompatible with GCC.
4001 # ICC 10 doesn't accept -KPIC any more.
4002 icc* | ifort*)
4003 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4004 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4005 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4006 ;;
4007 # Lahey Fortran 8.1.
4008 lf95*)
4009 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4010 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
4011 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
4012 ;;
5240 pgcc* | pgf77* | pgf90* | pgf95*) 4013 pgcc* | pgf77* | pgf90* | pgf95*)
5241 # Portland Group compilers (*not* the Pentium gcc compiler, 4014 # Portland Group compilers (*not* the Pentium gcc compiler,
5242 # which looks to be a dead project) 4015 # which looks to be a dead project)
5243 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4016 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5244 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 4017 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5245 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4018 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5246 ;; 4019 ;;
5247 ccc*) 4020 ccc*)
5248 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4021 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5249 # All Alpha code is PIC. 4022 # All Alpha code is PIC.
5250 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 4023 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5251 ;; 4024 ;;
4025 xl*)
4026 # IBM XL C 8.0/Fortran 10.1 on PPC
4027 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4028 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4029 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4030 ;;
4031 *)
4032 case `$CC -V 2>&1 | sed 5q` in
4033 *Sun\ C*)
4034 # Sun C 5.9
4035 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4036 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4037 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4038 ;;
4039 *Sun\ F*)
4040 # Sun Fortran 8.3 passes all unrecognized flags to the linker
4041 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4042 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4043 _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
4044 ;;
4045 esac
4046 ;;
5252 esac 4047 esac
5253 ;; 4048 ;;
5254 4049
4050 newsos6)
4051 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4052 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4053 ;;
4054
4055 *nto* | *qnx*)
4056 # QNX uses GNU C++, but need to define -shared option too, otherwise
4057 # it will coredump.
4058 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4059 ;;
4060
5255 osf3* | osf4* | osf5*) 4061 osf3* | osf4* | osf5*)
5256 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4062 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5257 # All OSF/1 code is PIC. 4063 # All OSF/1 code is PIC.
5258 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 4064 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4065 ;;
4066
4067 rdos*)
4068 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5259 ;; 4069 ;;
5260 4070
5261 solaris*) 4071 solaris*)
5262 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4072 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5263 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4073 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5264 case $cc_basename in 4074 case $cc_basename in
5265 f77* | f90* | f95*) 4075 f77* | f90* | f95*)
5266 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; 4076 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
5267 *) 4077 *)
5268 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; 4078 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
5269 esac 4079 esac
5270 ;; 4080 ;;
5271 4081
5272 sunos4*) 4082 sunos4*)
5273 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 4083 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5274 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 4084 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5275 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4085 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5276 ;; 4086 ;;
5277 4087
5278 sysv4 | sysv4.2uw2* | sysv4.3*) 4088 sysv4 | sysv4.2uw2* | sysv4.3*)
5279 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4089 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5280 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4090 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5281 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4091 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5282 ;; 4092 ;;
5283 4093
5284 sysv4*MP*) 4094 sysv4*MP*)
5285 if test -d /usr/nec ;then 4095 if test -d /usr/nec ;then
5286 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' 4096 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
5287 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4097 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5288 fi 4098 fi
5289 ;; 4099 ;;
5290 4100
5291 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 4101 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5292 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4102 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5293 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4103 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5294 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4104 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5295 ;; 4105 ;;
5296 4106
5297 unicos*) 4107 unicos*)
5298 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4108 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5299 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 4109 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5300 ;; 4110 ;;
5301 4111
5302 uts4*) 4112 uts4*)
5303 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 4113 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5304 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4114 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5305 ;; 4115 ;;
5306 4116
5307 *) 4117 *)
5308 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 4118 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5309 ;; 4119 ;;
5310 esac 4120 esac
5311 fi 4121 fi
5312 ]) 4122 ])
5313 AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)]) 4123 case $host_os in
4124 # For platforms which do not support PIC, -DPIC is meaningless:
4125 *djgpp*)
4126 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4127 ;;
4128 *)
4129 _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
4130 ;;
4131 esac
4132 AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
4133 _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
4134 [How to pass a linker flag through the compiler])
5314 4135
5315 # 4136 #
5316 # Check to make sure the PIC flag actually works. 4137 # Check to make sure the PIC flag actually works.
5317 # 4138 #
5318 if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then 4139 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
5319 AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works], 4140 _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
5320 _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1), 4141 [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
5321 [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [], 4142 [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
5322 [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in 4143 [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
5323 "" | " "*) ;; 4144 "" | " "*) ;;
5324 *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;; 4145 *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
5325 esac], 4146 esac],
5326 [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 4147 [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
5327 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) 4148 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
5328 fi 4149 fi
5329 case $host_os in 4150 _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
5330 # For platforms which do not support PIC, -DPIC is meaningless: 4151 [Additional compiler flags for building library objects])
5331 *djgpp*)
5332 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5333 ;;
5334 *)
5335 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
5336 ;;
5337 esac
5338 4152
5339 # 4153 #
5340 # Check to make sure the static flag actually works. 4154 # Check to make sure the static flag actually works.
5341 # 4155 #
5342 wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\" 4156 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
5343 AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], 4157 _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
5344 _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1), 4158 _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
5345 $lt_tmp_static_flag, 4159 $lt_tmp_static_flag,
5346 [], 4160 [],
5347 [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=]) 4161 [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
5348 ]) 4162 _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
5349 4163 [Compiler flag to prevent dynamic linking])
5350 4164 ])# _LT_COMPILER_PIC
5351 # AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME]) 4165
5352 # ------------------------------------ 4166
4167 # _LT_LINKER_SHLIBS([TAGNAME])
4168 # ----------------------------
5353 # See if the linker supports building shared libraries. 4169 # See if the linker supports building shared libraries.
5354 AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS], 4170 m4_defun([_LT_LINKER_SHLIBS],
5355 [AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 4171 [AC_REQUIRE([LT_PATH_LD])dnl
5356 ifelse([$1],[CXX],[ 4172 AC_REQUIRE([LT_PATH_NM])dnl
5357 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 4173 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
4174 m4_require([_LT_DECL_EGREP])dnl
4175 m4_require([_LT_DECL_SED])dnl
4176 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
4177 m4_require([_LT_TAG_COMPILER])dnl
4178 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
4179 m4_if([$1], [CXX], [
4180 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5358 case $host_os in 4181 case $host_os in
5359 aix4* | aix5*) 4182 aix[[4-9]]*)
5360 # If we're using GNU nm, then we don't want the "-C" option. 4183 # If we're using GNU nm, then we don't want the "-C" option.
5361 # -C means demangle to AIX nm, but means don't demangle with GNU nm 4184 # -C means demangle to AIX nm, but means don't demangle with GNU nm
5362 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 4185 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
5363 _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' 4186 _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'
5364 else 4187 else
5365 _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' 4188 _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'
5366 fi 4189 fi
5367 ;; 4190 ;;
5368 pw32*) 4191 pw32*)
5369 _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" 4192 _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5370 ;; 4193 ;;
5371 cygwin* | mingw*) 4194 cygwin* | mingw* | cegcc*)
5372 _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' 4195 _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'
5373 ;; 4196 ;;
5374 *) 4197 *)
5375 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 4198 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5376 ;; 4199 ;;
5377 esac 4200 esac
5378 ],[ 4201 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4202 ], [
5379 runpath_var= 4203 runpath_var=
5380 _LT_AC_TAGVAR(allow_undefined_flag, $1)= 4204 _LT_TAGVAR(allow_undefined_flag, $1)=
5381 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no 4205 _LT_TAGVAR(always_export_symbols, $1)=no
5382 _LT_AC_TAGVAR(archive_cmds, $1)= 4206 _LT_TAGVAR(archive_cmds, $1)=
5383 _LT_AC_TAGVAR(archive_expsym_cmds, $1)= 4207 _LT_TAGVAR(archive_expsym_cmds, $1)=
5384 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)= 4208 _LT_TAGVAR(compiler_needs_object, $1)=no
5385 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)= 4209 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5386 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= 4210 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
5387 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= 4211 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5388 _LT_AC_TAGVAR(thread_safe_flag_spec, $1)= 4212 _LT_TAGVAR(hardcode_automatic, $1)=no
5389 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= 4213 _LT_TAGVAR(hardcode_direct, $1)=no
5390 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 4214 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
5391 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= 4215 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5392 _LT_AC_TAGVAR(hardcode_direct, $1)=no 4216 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5393 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no 4217 _LT_TAGVAR(hardcode_libdir_separator, $1)=
5394 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 4218 _LT_TAGVAR(hardcode_minus_L, $1)=no
5395 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown 4219 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5396 _LT_AC_TAGVAR(hardcode_automatic, $1)=no 4220 _LT_TAGVAR(inherit_rpath, $1)=no
5397 _LT_AC_TAGVAR(module_cmds, $1)= 4221 _LT_TAGVAR(link_all_deplibs, $1)=unknown
5398 _LT_AC_TAGVAR(module_expsym_cmds, $1)= 4222 _LT_TAGVAR(module_cmds, $1)=
5399 _LT_AC_TAGVAR(always_export_symbols, $1)=no 4223 _LT_TAGVAR(module_expsym_cmds, $1)=
5400 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 4224 _LT_TAGVAR(old_archive_from_new_cmds, $1)=
4225 _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
4226 _LT_TAGVAR(thread_safe_flag_spec, $1)=
4227 _LT_TAGVAR(whole_archive_flag_spec, $1)=
5401 # include_expsyms should be a list of space-separated symbols to be *always* 4228 # include_expsyms should be a list of space-separated symbols to be *always*
5402 # included in the symbol list 4229 # included in the symbol list
5403 _LT_AC_TAGVAR(include_expsyms, $1)= 4230 _LT_TAGVAR(include_expsyms, $1)=
5404 # exclude_expsyms can be an extended regexp of symbols to exclude 4231 # exclude_expsyms can be an extended regexp of symbols to exclude
5405 # it will be wrapped by ` (' and `)$', so one must not match beginning or 4232 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5406 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 4233 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5407 # as well as any symbol that contains `d'. 4234 # as well as any symbol that contains `d'.
5408 _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_" 4235 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5409 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 4236 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5410 # platforms (ab)use it in PIC code, but their linkers get confused if 4237 # platforms (ab)use it in PIC code, but their linkers get confused if
5411 # the symbol is explicitly referenced. Since portable code cannot 4238 # the symbol is explicitly referenced. Since portable code cannot
5412 # rely on this symbol name, it's probably fine to never include it in 4239 # rely on this symbol name, it's probably fine to never include it in
5413 # preloaded symbol tables. 4240 # preloaded symbol tables.
4241 # Exclude shared library initialization/finalization symbols.
4242 dnl Note also adjust exclude_expsyms for C++ above.
5414 extract_expsyms_cmds= 4243 extract_expsyms_cmds=
5415 # Just being paranoid about ensuring that cc_basename is set. 4244
5416 _LT_CC_BASENAME([$compiler])
5417 case $host_os in 4245 case $host_os in
5418 cygwin* | mingw* | pw32*) 4246 cygwin* | mingw* | pw32* | cegcc*)
5419 # FIXME: the MSVC++ port hasn't been tested in a loooong time 4247 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5420 # When not using gcc, we currently assume that we are using 4248 # When not using gcc, we currently assume that we are using
5421 # Microsoft Visual C++. 4249 # Microsoft Visual C++.
5422 if test "$GCC" != yes; then 4250 if test "$GCC" != yes; then
5423 with_gnu_ld=no 4251 with_gnu_ld=no
5430 openbsd*) 4258 openbsd*)
5431 with_gnu_ld=no 4259 with_gnu_ld=no
5432 ;; 4260 ;;
5433 esac 4261 esac
5434 4262
5435 _LT_AC_TAGVAR(ld_shlibs, $1)=yes 4263 _LT_TAGVAR(ld_shlibs, $1)=yes
5436 if test "$with_gnu_ld" = yes; then 4264 if test "$with_gnu_ld" = yes; then
5437 # If archive_cmds runs LD, not CC, wlarc should be empty 4265 # If archive_cmds runs LD, not CC, wlarc should be empty
5438 wlarc='${wl}' 4266 wlarc='${wl}'
5439 4267
5440 # Set some defaults for GNU ld with shared library support. These 4268 # Set some defaults for GNU ld with shared library support. These
5441 # are reset later if shared libraries are not supported. Putting them 4269 # are reset later if shared libraries are not supported. Putting them
5442 # here allows them to be overridden if necessary. 4270 # here allows them to be overridden if necessary.
5443 runpath_var=LD_RUN_PATH 4271 runpath_var=LD_RUN_PATH
5444 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' 4272 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5445 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 4273 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5446 # ancient GNU ld didn't support --whole-archive et. al. 4274 # ancient GNU ld didn't support --whole-archive et. al.
5447 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 4275 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
5448 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 4276 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5449 else 4277 else
5450 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= 4278 _LT_TAGVAR(whole_archive_flag_spec, $1)=
5451 fi 4279 fi
5452 supports_anon_versioning=no 4280 supports_anon_versioning=no
5453 case `$LD -v 2>/dev/null` in 4281 case `$LD -v 2>&1` in
5454 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 4282 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
5455 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 4283 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5456 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 4284 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5457 *\ 2.11.*) ;; # other 2.11 versions 4285 *\ 2.11.*) ;; # other 2.11 versions
5458 *) supports_anon_versioning=yes ;; 4286 *) supports_anon_versioning=yes ;;
5459 esac 4287 esac
5460 4288
5461 # See if GNU ld supports shared libraries. 4289 # See if GNU ld supports shared libraries.
5462 case $host_os in 4290 case $host_os in
5463 aix3* | aix4* | aix5*) 4291 aix[[3-9]]*)
5464 # On AIX/PPC, the GNU linker is very broken 4292 # On AIX/PPC, the GNU linker is very broken
5465 if test "$host_cpu" != ia64; then 4293 if test "$host_cpu" != ia64; then
5466 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4294 _LT_TAGVAR(ld_shlibs, $1)=no
5467 cat <<EOF 1>&2 4295 cat <<_LT_EOF 1>&2
5468 4296
5469 *** Warning: the GNU linker, at least up to release 2.9.1, is reported 4297 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5470 *** to be unable to reliably create shared libraries on AIX. 4298 *** to be unable to reliably create shared libraries on AIX.
5471 *** Therefore, libtool is disabling shared libraries support. If you 4299 *** Therefore, libtool is disabling shared libraries support. If you
5472 *** really care for shared libraries, you may want to modify your PATH 4300 *** really care for shared libraries, you may want to modify your PATH
5473 *** so that a non-GNU linker is found, and then restart. 4301 *** so that a non-GNU linker is found, and then restart.
5474 4302
5475 EOF 4303 _LT_EOF
5476 fi 4304 fi
5477 ;; 4305 ;;
5478 4306
5479 amigaos*) 4307 amigaos*)
5480 _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)' 4308 case $host_cpu in
5481 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 4309 powerpc)
5482 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 4310 # see comment about AmigaOS4 .so support
5483 4311 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5484 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 4312 _LT_TAGVAR(archive_expsym_cmds, $1)=''
5485 # that the semantics of dynamic libraries on AmigaOS, at least up 4313 ;;
5486 # to version 4, is to share data among multiple programs linked 4314 m68k)
5487 # with the same dynamic library. Since this doesn't match the 4315 _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)'
5488 # behavior of shared libraries on other platforms, we can't use 4316 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5489 # them. 4317 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5490 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4318 ;;
4319 esac
5491 ;; 4320 ;;
5492 4321
5493 beos*) 4322 beos*)
5494 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 4323 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5495 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 4324 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5496 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 4325 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5497 # support --undefined. This deserves some investigation. FIXME 4326 # support --undefined. This deserves some investigation. FIXME
5498 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 4327 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5499 else 4328 else
5500 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4329 _LT_TAGVAR(ld_shlibs, $1)=no
5501 fi 4330 fi
5502 ;; 4331 ;;
5503 4332
5504 cygwin* | mingw* | pw32*) 4333 cygwin* | mingw* | pw32* | cegcc*)
5505 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, 4334 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5506 # as there is no search path for DLLs. 4335 # as there is no search path for DLLs.
5507 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 4336 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5508 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 4337 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5509 _LT_AC_TAGVAR(always_export_symbols, $1)=no 4338 _LT_TAGVAR(always_export_symbols, $1)=no
5510 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 4339 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5511 _LT_AC_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' 4340 _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'
5512 4341
5513 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 4342 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
5514 _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' 4343 _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'
5515 # If the export-symbols file already is a .def file (1st line 4344 # If the export-symbols file already is a .def file (1st line
5516 # is EXPORTS), use it as is; otherwise, prepend... 4345 # is EXPORTS), use it as is; otherwise, prepend...
5517 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 4346 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5518 cp $export_symbols $output_objdir/$soname.def; 4347 cp $export_symbols $output_objdir/$soname.def;
5519 else 4348 else
5520 echo EXPORTS > $output_objdir/$soname.def; 4349 echo EXPORTS > $output_objdir/$soname.def;
5521 cat $export_symbols >> $output_objdir/$soname.def; 4350 cat $export_symbols >> $output_objdir/$soname.def;
5522 fi~ 4351 fi~
5523 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 4352 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5524 else 4353 else
5525 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4354 _LT_TAGVAR(ld_shlibs, $1)=no
5526 fi 4355 fi
5527 ;; 4356 ;;
5528 4357
5529 interix3*) 4358 interix[[3-9]]*)
5530 _LT_AC_TAGVAR(hardcode_direct, $1)=no 4359 _LT_TAGVAR(hardcode_direct, $1)=no
5531 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 4360 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5532 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 4361 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5533 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 4362 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5534 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 4363 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5535 # Instead, shared libraries are loaded at an image base (0x10000000 by 4364 # Instead, shared libraries are loaded at an image base (0x10000000 by
5536 # default) and relocated if they conflict, which is a slow very memory 4365 # default) and relocated if they conflict, which is a slow very memory
5537 # consuming and fragmenting process. To avoid this, we pick a random, 4366 # consuming and fragmenting process. To avoid this, we pick a random,
5538 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 4367 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5539 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 4368 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
5540 _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' 4369 _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'
5541 _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' 4370 _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'
5542 ;; 4371 ;;
5543 4372
5544 linux*) 4373 gnu* | linux* | tpf* | k*bsd*-gnu)
5545 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 4374 tmp_diet=no
4375 if test "$host_os" = linux-dietlibc; then
4376 case $cc_basename in
4377 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
4378 esac
4379 fi
4380 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
4381 && test "$tmp_diet" = no
4382 then
5546 tmp_addflag= 4383 tmp_addflag=
4384 tmp_sharedflag='-shared'
5547 case $cc_basename,$host_cpu in 4385 case $cc_basename,$host_cpu in
5548 pgcc*) # Portland Group C compiler 4386 pgcc*) # Portland Group C compiler
5549 _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' 4387 _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'
5550 tmp_addflag=' $pic_flag' 4388 tmp_addflag=' $pic_flag'
5551 ;; 4389 ;;
5552 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 4390 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
5553 _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' 4391 _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'
5554 tmp_addflag=' $pic_flag -Mnomain' ;; 4392 tmp_addflag=' $pic_flag -Mnomain' ;;
5555 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 4393 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
5556 tmp_addflag=' -i_dynamic' ;; 4394 tmp_addflag=' -i_dynamic' ;;
5557 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 4395 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
5558 tmp_addflag=' -i_dynamic -nofor_main' ;; 4396 tmp_addflag=' -i_dynamic -nofor_main' ;;
5559 ifc* | ifort*) # Intel Fortran compiler 4397 ifc* | ifort*) # Intel Fortran compiler
5560 tmp_addflag=' -nofor_main' ;; 4398 tmp_addflag=' -nofor_main' ;;
4399 lf95*) # Lahey Fortran 8.1
4400 _LT_TAGVAR(whole_archive_flag_spec, $1)=
4401 tmp_sharedflag='--shared' ;;
4402 xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
4403 tmp_sharedflag='-qmkshrobj'
4404 tmp_addflag= ;;
5561 esac 4405 esac
5562 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 4406 case `$CC -V 2>&1 | sed 5q` in
5563 4407 *Sun\ C*) # Sun C 5.9
5564 if test $supports_anon_versioning = yes; then 4408 _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'
5565 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~ 4409 _LT_TAGVAR(compiler_needs_object, $1)=yes
5566 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 4410 tmp_sharedflag='-G' ;;
5567 $echo "local: *; };" >> $output_objdir/$libname.ver~ 4411 *Sun\ F*) # Sun Fortran 8.3
5568 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 4412 tmp_sharedflag='-G' ;;
5569 fi 4413 esac
4414 _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4415
4416 if test "x$supports_anon_versioning" = xyes; then
4417 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
4418 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4419 echo "local: *; };" >> $output_objdir/$libname.ver~
4420 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
4421 fi
4422
4423 case $cc_basename in
4424 xlf*)
4425 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
4426 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
4427 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4428 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
4429 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
4430 if test "x$supports_anon_versioning" = xyes; then
4431 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
4432 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4433 echo "local: *; };" >> $output_objdir/$libname.ver~
4434 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
4435 fi
4436 ;;
4437 esac
5570 else 4438 else
5571 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4439 _LT_TAGVAR(ld_shlibs, $1)=no
5572 fi 4440 fi
5573 ;; 4441 ;;
5574 4442
5575 netbsd*) 4443 netbsd*)
5576 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 4444 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5577 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 4445 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5578 wlarc= 4446 wlarc=
5579 else 4447 else
5580 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 4448 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5581 _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' 4449 _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'
5582 fi 4450 fi
5583 ;; 4451 ;;
5584 4452
5585 solaris*) 4453 solaris*)
5586 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 4454 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
5587 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4455 _LT_TAGVAR(ld_shlibs, $1)=no
5588 cat <<EOF 1>&2 4456 cat <<_LT_EOF 1>&2
5589 4457
5590 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 4458 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5591 *** create shared libraries on Solaris systems. Therefore, libtool 4459 *** create shared libraries on Solaris systems. Therefore, libtool
5592 *** is disabling shared libraries support. We urge you to upgrade GNU 4460 *** is disabling shared libraries support. We urge you to upgrade GNU
5593 *** binutils to release 2.9.1 or newer. Another option is to modify 4461 *** binutils to release 2.9.1 or newer. Another option is to modify
5594 *** your PATH or compiler configuration so that the native linker is 4462 *** your PATH or compiler configuration so that the native linker is
5595 *** used, and then restart. 4463 *** used, and then restart.
5596 4464
5597 EOF 4465 _LT_EOF
5598 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 4466 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5599 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 4467 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5600 _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' 4468 _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'
5601 else 4469 else
5602 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4470 _LT_TAGVAR(ld_shlibs, $1)=no
5603 fi 4471 fi
5604 ;; 4472 ;;
5605 4473
5606 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 4474 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
5607 case `$LD -v 2>&1` in 4475 case `$LD -v 2>&1` in
5608 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 4476 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
5609 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4477 _LT_TAGVAR(ld_shlibs, $1)=no
5610 cat <<_LT_EOF 1>&2 4478 cat <<_LT_EOF 1>&2
5611 4479
5612 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 4480 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
5613 *** reliably create shared libraries on SCO systems. Therefore, libtool 4481 *** reliably create shared libraries on SCO systems. Therefore, libtool
5614 *** is disabling shared libraries support. We urge you to upgrade GNU 4482 *** is disabling shared libraries support. We urge you to upgrade GNU
5617 *** used, and then restart. 4485 *** used, and then restart.
5618 4486
5619 _LT_EOF 4487 _LT_EOF
5620 ;; 4488 ;;
5621 *) 4489 *)
5622 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 4490 # For security reasons, it is highly recommended that you always
5623 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 4491 # use absolute paths for naming shared libraries, and exclude the
5624 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 4492 # DT_RUNPATH tag from executables and libraries. But doing so
5625 _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' 4493 # requires that you compile everything twice, which is a pain.
4494 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4495 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4496 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4497 _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'
5626 else 4498 else
5627 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4499 _LT_TAGVAR(ld_shlibs, $1)=no
5628 fi 4500 fi
5629 ;; 4501 ;;
5630 esac 4502 esac
5631 ;; 4503 ;;
5632 4504
5633 sunos4*) 4505 sunos4*)
5634 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 4506 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5635 wlarc= 4507 wlarc=
5636 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 4508 _LT_TAGVAR(hardcode_direct, $1)=yes
5637 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 4509 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5638 ;; 4510 ;;
5639 4511
5640 *) 4512 *)
5641 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 4513 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5642 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 4514 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5643 _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' 4515 _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'
5644 else 4516 else
5645 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4517 _LT_TAGVAR(ld_shlibs, $1)=no
5646 fi 4518 fi
5647 ;; 4519 ;;
5648 esac 4520 esac
5649 4521
5650 if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then 4522 if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
5651 runpath_var= 4523 runpath_var=
5652 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= 4524 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5653 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= 4525 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
5654 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= 4526 _LT_TAGVAR(whole_archive_flag_spec, $1)=
5655 fi 4527 fi
5656 else 4528 else
5657 # PORTME fill in a description of your system's linker (not GNU ld) 4529 # PORTME fill in a description of your system's linker (not GNU ld)
5658 case $host_os in 4530 case $host_os in
5659 aix3*) 4531 aix3*)
5660 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 4532 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5661 _LT_AC_TAGVAR(always_export_symbols, $1)=yes 4533 _LT_TAGVAR(always_export_symbols, $1)=yes
5662 _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' 4534 _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'
5663 # Note: this linker hardcodes the directories in LIBPATH if there 4535 # Note: this linker hardcodes the directories in LIBPATH if there
5664 # are no directories specified by -L. 4536 # are no directories specified by -L.
5665 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 4537 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5666 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 4538 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
5667 # Neither direct hardcoding nor static linking is supported with a 4539 # Neither direct hardcoding nor static linking is supported with a
5668 # broken collect2. 4540 # broken collect2.
5669 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported 4541 _LT_TAGVAR(hardcode_direct, $1)=unsupported
5670 fi 4542 fi
5671 ;; 4543 ;;
5672 4544
5673 aix4* | aix5*) 4545 aix[[4-9]]*)
5674 if test "$host_cpu" = ia64; then 4546 if test "$host_cpu" = ia64; then
5675 # On IA64, the linker does run time linking by default, so we don't 4547 # On IA64, the linker does run time linking by default, so we don't
5676 # have to do anything special. 4548 # have to do anything special.
5677 aix_use_runtimelinking=no 4549 aix_use_runtimelinking=no
5678 exp_sym_flag='-Bexport' 4550 exp_sym_flag='-Bexport'
5679 no_entry_flag="" 4551 no_entry_flag=""
5680 else 4552 else
5681 # If we're using GNU nm, then we don't want the "-C" option. 4553 # If we're using GNU nm, then we don't want the "-C" option.
5682 # -C means demangle to AIX nm, but means don't demangle with GNU nm 4554 # -C means demangle to AIX nm, but means don't demangle with GNU nm
5683 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 4555 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
5684 _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' 4556 _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'
5685 else 4557 else
5686 _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' 4558 _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'
5687 fi 4559 fi
5688 aix_use_runtimelinking=no 4560 aix_use_runtimelinking=no
5689 4561
5690 # Test if we are trying to use run time linking or normal 4562 # Test if we are trying to use run time linking or normal
5691 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 4563 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5692 # need to do runtime linking. 4564 # need to do runtime linking.
5693 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) 4565 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5694 for ld_flag in $LDFLAGS; do 4566 for ld_flag in $LDFLAGS; do
5695 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 4567 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5696 aix_use_runtimelinking=yes 4568 aix_use_runtimelinking=yes
5697 break 4569 break
5698 fi 4570 fi
5699 done 4571 done
5700 ;; 4572 ;;
5701 esac 4573 esac
5702 4574
5703 exp_sym_flag='-bexport' 4575 exp_sym_flag='-bexport'
5708 # have problems creating the table of contents. If linking a library 4580 # have problems creating the table of contents. If linking a library
5709 # or program results in "error TOC overflow" add -mminimal-toc to 4581 # or program results in "error TOC overflow" add -mminimal-toc to
5710 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 4582 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5711 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 4583 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5712 4584
5713 _LT_AC_TAGVAR(archive_cmds, $1)='' 4585 _LT_TAGVAR(archive_cmds, $1)=''
5714 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 4586 _LT_TAGVAR(hardcode_direct, $1)=yes
5715 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' 4587 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5716 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 4588 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
4589 _LT_TAGVAR(link_all_deplibs, $1)=yes
4590 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
5717 4591
5718 if test "$GCC" = yes; then 4592 if test "$GCC" = yes; then
5719 case $host_os in aix4.[[012]]|aix4.[[012]].*) 4593 case $host_os in aix4.[[012]]|aix4.[[012]].*)
5720 # We only want to do this on AIX 4.2 and lower, the check 4594 # We only want to do this on AIX 4.2 and lower, the check
5721 # below for broken collect2 doesn't work under 4.3+ 4595 # below for broken collect2 doesn't work under 4.3+
5722 collect2name=`${CC} -print-prog-name=collect2` 4596 collect2name=`${CC} -print-prog-name=collect2`
5723 if test -f "$collect2name" && \ 4597 if test -f "$collect2name" &&
5724 strings "$collect2name" | grep resolve_lib_name >/dev/null 4598 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
5725 then 4599 then
5726 # We have reworked collect2 4600 # We have reworked collect2
5727 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 4601 :
5728 else 4602 else
5729 # We have old collect2 4603 # We have old collect2
5730 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported 4604 _LT_TAGVAR(hardcode_direct, $1)=unsupported
5731 # It fails to find uninstalled libraries when the uninstalled 4605 # It fails to find uninstalled libraries when the uninstalled
5732 # path is not listed in the libpath. Setting hardcode_minus_L 4606 # path is not listed in the libpath. Setting hardcode_minus_L
5733 # to unsupported forces relinking 4607 # to unsupported forces relinking
5734 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 4608 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5735 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 4609 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5736 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= 4610 _LT_TAGVAR(hardcode_libdir_separator, $1)=
5737 fi 4611 fi
5738 ;; 4612 ;;
5739 esac 4613 esac
5740 shared_flag='-shared' 4614 shared_flag='-shared'
5741 if test "$aix_use_runtimelinking" = yes; then 4615 if test "$aix_use_runtimelinking" = yes; then
5742 shared_flag="$shared_flag "'${wl}-G' 4616 shared_flag="$shared_flag "'${wl}-G'
5743 fi 4617 fi
5744 else 4618 else
5745 # not using gcc 4619 # not using gcc
5746 if test "$host_cpu" = ia64; then 4620 if test "$host_cpu" = ia64; then
5747 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 4621 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5748 # chokes on -Wl,-G. The following line is correct: 4622 # chokes on -Wl,-G. The following line is correct:
5749 shared_flag='-G' 4623 shared_flag='-G'
5750 else 4624 else
5751 if test "$aix_use_runtimelinking" = yes; then 4625 if test "$aix_use_runtimelinking" = yes; then
5752 shared_flag='${wl}-G' 4626 shared_flag='${wl}-G'
5753 else 4627 else
5754 shared_flag='${wl}-bM:SRE' 4628 shared_flag='${wl}-bM:SRE'
5755 fi 4629 fi
5756 fi 4630 fi
5757 fi 4631 fi
5758 4632
4633 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
5759 # It seems that -bexpall does not export symbols beginning with 4634 # It seems that -bexpall does not export symbols beginning with
5760 # underscore (_), so it is better to generate a list of symbols to export. 4635 # underscore (_), so it is better to generate a list of symbols to export.
5761 _LT_AC_TAGVAR(always_export_symbols, $1)=yes 4636 _LT_TAGVAR(always_export_symbols, $1)=yes
5762 if test "$aix_use_runtimelinking" = yes; then 4637 if test "$aix_use_runtimelinking" = yes; then
5763 # Warning - without using the other runtime loading flags (-brtl), 4638 # Warning - without using the other runtime loading flags (-brtl),
5764 # -berok will link without error, but may produce a broken library. 4639 # -berok will link without error, but may produce a broken library.
5765 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' 4640 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
5766 # Determine the default libpath from the value encoded in an empty executable. 4641 # Determine the default libpath from the value encoded in an
5767 _LT_AC_SYS_LIBPATH_AIX 4642 # empty executable.
5768 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 4643 _LT_SYS_MODULE_PATH_AIX
5769 _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" 4644 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5770 else 4645 _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"
4646 else
5771 if test "$host_cpu" = ia64; then 4647 if test "$host_cpu" = ia64; then
5772 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' 4648 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5773 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 4649 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5774 _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" 4650 _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"
5775 else 4651 else
5776 # Determine the default libpath from the value encoded in an empty executable. 4652 # Determine the default libpath from the value encoded in an
5777 _LT_AC_SYS_LIBPATH_AIX 4653 # empty executable.
5778 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 4654 _LT_SYS_MODULE_PATH_AIX
4655 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5779 # Warning - without using the other run time loading flags, 4656 # Warning - without using the other run time loading flags,
5780 # -berok will link without error, but may produce a broken library. 4657 # -berok will link without error, but may produce a broken library.
5781 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' 4658 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5782 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' 4659 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5783 # Exported symbols can be pulled into shared objects from archives 4660 # Exported symbols can be pulled into shared objects from archives
5784 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 4661 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5785 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes 4662 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5786 # This is similar to how AIX traditionally builds its shared libraries. 4663 # This is similar to how AIX traditionally builds its shared libraries.
5787 _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' 4664 _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'
5788 fi 4665 fi
5789 fi 4666 fi
5790 ;; 4667 ;;
5791 4668
5792 amigaos*) 4669 amigaos*)
5793 _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)' 4670 case $host_cpu in
5794 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 4671 powerpc)
5795 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 4672 # see comment about AmigaOS4 .so support
5796 # see comment about different semantics on the GNU ld section 4673 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5797 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4674 _LT_TAGVAR(archive_expsym_cmds, $1)=''
4675 ;;
4676 m68k)
4677 _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)'
4678 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4679 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4680 ;;
4681 esac
5798 ;; 4682 ;;
5799 4683
5800 bsdi[[45]]*) 4684 bsdi[[45]]*)
5801 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic 4685 _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
5802 ;; 4686 ;;
5803 4687
5804 cygwin* | mingw* | pw32*) 4688 cygwin* | mingw* | pw32* | cegcc*)
5805 # When not using gcc, we currently assume that we are using 4689 # When not using gcc, we currently assume that we are using
5806 # Microsoft Visual C++. 4690 # Microsoft Visual C++.
5807 # hardcode_libdir_flag_spec is actually meaningless, as there is 4691 # hardcode_libdir_flag_spec is actually meaningless, as there is
5808 # no search path for DLLs. 4692 # no search path for DLLs.
5809 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' 4693 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5810 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 4694 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5811 # Tell ltmain to make .lib files, not .a files. 4695 # Tell ltmain to make .lib files, not .a files.
5812 libext=lib 4696 libext=lib
5813 # Tell ltmain to make .dll files, not .so files. 4697 # Tell ltmain to make .dll files, not .so files.
5814 shrext_cmds=".dll" 4698 shrext_cmds=".dll"
5815 # FIXME: Setting linknames here is a bad hack. 4699 # FIXME: Setting linknames here is a bad hack.
5816 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 4700 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5817 # The linker will automatically build a .lib file if we build a DLL. 4701 # The linker will automatically build a .lib file if we build a DLL.
5818 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true' 4702 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5819 # FIXME: Should let the user specify the lib program. 4703 # FIXME: Should let the user specify the lib program.
5820 _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs' 4704 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5821 _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' 4705 _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
5822 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 4706 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5823 ;; 4707 ;;
5824 4708
5825 darwin* | rhapsody*) 4709 darwin* | rhapsody*)
5826 case $host_os in 4710 _LT_DARWIN_LINKER_FEATURES($1)
5827 rhapsody* | darwin1.[[012]])
5828 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
5829 ;;
5830 *) # Darwin 1.3 on
5831 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
5832 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
5833 else
5834 case ${MACOSX_DEPLOYMENT_TARGET} in
5835 10.[[012]])
5836 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
5837 ;;
5838 10.*)
5839 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
5840 ;;
5841 esac
5842 fi
5843 ;;
5844 esac
5845 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5846 _LT_AC_TAGVAR(hardcode_direct, $1)=no
5847 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
5848 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5849 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
5850 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5851 if test "$GCC" = yes ; then
5852 output_verbose_link_cmd='echo'
5853 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
5854 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5855 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5856 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5857 _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}'
5858 else
5859 case $cc_basename in
5860 xlc*)
5861 output_verbose_link_cmd='echo'
5862 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
5863 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5864 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5865 _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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5866 _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}'
5867 ;;
5868 *)
5869 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5870 ;;
5871 esac
5872 fi
5873 ;; 4711 ;;
5874 4712
5875 dgux*) 4713 dgux*)
5876 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 4714 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5877 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 4715 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5878 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 4716 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5879 ;; 4717 ;;
5880 4718
5881 freebsd1*) 4719 freebsd1*)
5882 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4720 _LT_TAGVAR(ld_shlibs, $1)=no
5883 ;; 4721 ;;
5884 4722
5885 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 4723 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5886 # support. Future versions do this automatically, but an explicit c++rt0.o 4724 # support. Future versions do this automatically, but an explicit c++rt0.o
5887 # does not break anything, and helps significantly (at the cost of a little 4725 # does not break anything, and helps significantly (at the cost of a little
5888 # extra space). 4726 # extra space).
5889 freebsd2.2*) 4727 freebsd2.2*)
5890 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 4728 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5891 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 4729 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5892 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 4730 _LT_TAGVAR(hardcode_direct, $1)=yes
5893 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 4731 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5894 ;; 4732 ;;
5895 4733
5896 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 4734 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5897 freebsd2*) 4735 freebsd2*)
5898 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 4736 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5899 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 4737 _LT_TAGVAR(hardcode_direct, $1)=yes
5900 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 4738 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5901 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 4739 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5902 ;; 4740 ;;
5903 4741
5904 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 4742 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5905 freebsd* | kfreebsd*-gnu | dragonfly*) 4743 freebsd* | dragonfly*)
5906 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 4744 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5907 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 4745 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5908 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 4746 _LT_TAGVAR(hardcode_direct, $1)=yes
5909 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 4747 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5910 ;; 4748 ;;
5911 4749
5912 hpux9*) 4750 hpux9*)
5913 if test "$GCC" = yes; then 4751 if test "$GCC" = yes; then
5914 _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' 4752 _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'
5915 else 4753 else
5916 _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' 4754 _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'
5917 fi 4755 fi
5918 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 4756 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5919 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 4757 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5920 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 4758 _LT_TAGVAR(hardcode_direct, $1)=yes
5921 4759
5922 # hardcode_minus_L: Not really in the search PATH, 4760 # hardcode_minus_L: Not really in the search PATH,
5923 # but as the default location of the library. 4761 # but as the default location of the library.
5924 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 4762 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5925 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 4763 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5926 ;; 4764 ;;
5927 4765
5928 hpux10*) 4766 hpux10*)
5929 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 4767 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5930 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 4768 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5931 else 4769 else
5932 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 4770 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
5933 fi 4771 fi
5934 if test "$with_gnu_ld" = no; then 4772 if test "$with_gnu_ld" = no; then
5935 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 4773 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5936 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 4774 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
5937 4775 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5938 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 4776 _LT_TAGVAR(hardcode_direct, $1)=yes
5939 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 4777 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5940 4778 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5941 # hardcode_minus_L: Not really in the search PATH, 4779 # hardcode_minus_L: Not really in the search PATH,
5942 # but as the default location of the library. 4780 # but as the default location of the library.
5943 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 4781 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5944 fi 4782 fi
5945 ;; 4783 ;;
5946 4784
5947 hpux11*) 4785 hpux11*)
5948 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 4786 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5949 case $host_cpu in 4787 case $host_cpu in
5950 hppa*64*) 4788 hppa*64*)
5951 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 4789 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5952 ;; 4790 ;;
5953 ia64*) 4791 ia64*)
5954 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 4792 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5955 ;; 4793 ;;
5956 *) 4794 *)
5957 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 4795 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5958 ;; 4796 ;;
5959 esac 4797 esac
5960 else 4798 else
5961 case $host_cpu in 4799 case $host_cpu in
5962 hppa*64*) 4800 hppa*64*)
5963 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 4801 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5964 ;; 4802 ;;
5965 ia64*) 4803 ia64*)
5966 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 4804 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5967 ;; 4805 ;;
5968 *) 4806 *)
5969 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 4807 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5970 ;; 4808 ;;
5971 esac 4809 esac
5972 fi 4810 fi
5973 if test "$with_gnu_ld" = no; then 4811 if test "$with_gnu_ld" = no; then
5974 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 4812 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5975 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 4813 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5976 4814
5977 case $host_cpu in 4815 case $host_cpu in
5978 hppa*64*|ia64*) 4816 hppa*64*|ia64*)
5979 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' 4817 _LT_TAGVAR(hardcode_direct, $1)=no
5980 _LT_AC_TAGVAR(hardcode_direct, $1)=no 4818 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5981 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5982 ;; 4819 ;;
5983 *) 4820 *)
5984 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 4821 _LT_TAGVAR(hardcode_direct, $1)=yes
5985 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 4822 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
4823 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5986 4824
5987 # hardcode_minus_L: Not really in the search PATH, 4825 # hardcode_minus_L: Not really in the search PATH,
5988 # but as the default location of the library. 4826 # but as the default location of the library.
5989 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 4827 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5990 ;; 4828 ;;
5991 esac 4829 esac
5992 fi 4830 fi
5993 ;; 4831 ;;
5994 4832
5995 irix5* | irix6* | nonstopux*) 4833 irix5* | irix6* | nonstopux*)
5996 if test "$GCC" = yes; then 4834 if test "$GCC" = yes; then
5997 _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' 4835 _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'
4836 # Try to use the -exported_symbol ld option, if it does not
4837 # work, assume that -exports_file does not work either and
4838 # implicitly export all symbols.
4839 save_LDFLAGS="$LDFLAGS"
4840 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
4841 AC_LINK_IFELSE(int foo(void) {},
4842 _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'
4843 )
4844 LDFLAGS="$save_LDFLAGS"
5998 else 4845 else
5999 _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' 4846 _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'
6000 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' 4847 _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'
6001 fi 4848 fi
6002 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 4849 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
6003 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 4850 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6004 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 4851 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
4852 _LT_TAGVAR(inherit_rpath, $1)=yes
4853 _LT_TAGVAR(link_all_deplibs, $1)=yes
6005 ;; 4854 ;;
6006 4855
6007 netbsd*) 4856 netbsd*)
6008 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 4857 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6009 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 4858 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6010 else 4859 else
6011 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 4860 _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6012 fi 4861 fi
6013 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 4862 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6014 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 4863 _LT_TAGVAR(hardcode_direct, $1)=yes
6015 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 4864 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6016 ;; 4865 ;;
6017 4866
6018 newsos6) 4867 newsos6)
6019 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 4868 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6020 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 4869 _LT_TAGVAR(hardcode_direct, $1)=yes
6021 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 4870 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6022 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 4871 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6023 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 4872 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4873 ;;
4874
4875 *nto* | *qnx*)
6024 ;; 4876 ;;
6025 4877
6026 openbsd*) 4878 openbsd*)
6027 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 4879 if test -f /usr/libexec/ld.so; then
6028 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 4880 _LT_TAGVAR(hardcode_direct, $1)=yes
6029 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4881 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6030 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 4882 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6031 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 4883 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6032 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 4884 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6033 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 4885 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
4886 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4887 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4888 else
4889 case $host_os in
4890 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
4891 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4892 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4893 ;;
4894 *)
4895 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
4896 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4897 ;;
4898 esac
4899 fi
6034 else 4900 else
6035 case $host_os in 4901 _LT_TAGVAR(ld_shlibs, $1)=no
6036 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6037 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6038 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6039 ;;
6040 *)
6041 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6042 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6043 ;;
6044 esac
6045 fi 4902 fi
6046 ;; 4903 ;;
6047 4904
6048 os2*) 4905 os2*)
6049 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 4906 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6050 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 4907 _LT_TAGVAR(hardcode_minus_L, $1)=yes
6051 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 4908 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6052 _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' 4909 _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'
6053 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 4910 _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6054 ;; 4911 ;;
6055 4912
6056 osf3*) 4913 osf3*)
6057 if test "$GCC" = yes; then 4914 if test "$GCC" = yes; then
6058 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 4915 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6059 _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' 4916 _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'
6060 else 4917 else
6061 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 4918 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6062 _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' 4919 _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'
6063 fi 4920 fi
6064 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 4921 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
6065 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 4922 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4923 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6066 ;; 4924 ;;
6067 4925
6068 osf4* | osf5*) # as osf3* with the addition of -msym flag 4926 osf4* | osf5*) # as osf3* with the addition of -msym flag
6069 if test "$GCC" = yes; then 4927 if test "$GCC" = yes; then
6070 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 4928 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6071 _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' 4929 _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'
6072 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 4930 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6073 else 4931 else
6074 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 4932 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6075 _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' 4933 _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'
6076 _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~ 4934 _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~
6077 $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' 4935 $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'
6078 4936
6079 # Both c and cxx compiler support -rpath directly 4937 # Both c and cxx compiler support -rpath directly
6080 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 4938 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6081 fi 4939 fi
6082 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 4940 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
4941 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6083 ;; 4942 ;;
6084 4943
6085 solaris*) 4944 solaris*)
6086 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' 4945 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
6087 if test "$GCC" = yes; then 4946 if test "$GCC" = yes; then
6088 wlarc='${wl}' 4947 wlarc='${wl}'
6089 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 4948 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6090 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 4949 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6091 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 4950 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
6092 else 4951 else
6093 wlarc='' 4952 case `$CC -V 2>&1` in
6094 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 4953 *"Compilers 5.0"*)
6095 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 4954 wlarc=''
6096 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 4955 _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
4956 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
4957 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
4958 ;;
4959 *)
4960 wlarc='${wl}'
4961 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
4962 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
4963 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
4964 ;;
4965 esac
6097 fi 4966 fi
6098 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 4967 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6099 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 4968 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6100 case $host_os in 4969 case $host_os in
6101 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 4970 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6102 *) 4971 *)
6103 # The compiler driver will combine linker options so we 4972 # The compiler driver will combine and reorder linker options,
6104 # cannot just pass the convience library names through 4973 # but understands `-z linker_flag'. GCC discards it without `$wl',
6105 # without $wl, iff we do not link with $LD. 4974 # but is careful enough not to reorder.
6106 # Luckily, gcc supports the same syntax we need for Sun Studio. 4975 # Supported since Solaris 2.6 (maybe 2.5.1?)
6107 # Supported since Solaris 2.6 (maybe 2.5.1?) 4976 if test "$GCC" = yes; then
6108 case $wlarc in 4977 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6109 '') 4978 else
6110 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;; 4979 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6111 *) 4980 fi
6112 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 4981 ;;
6113 esac ;;
6114 esac 4982 esac
6115 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 4983 _LT_TAGVAR(link_all_deplibs, $1)=yes
6116 ;; 4984 ;;
6117 4985
6118 sunos4*) 4986 sunos4*)
6119 if test "x$host_vendor" = xsequent; then 4987 if test "x$host_vendor" = xsequent; then
6120 # Use $CC to link under sequent, because it throws in some extra .o 4988 # Use $CC to link under sequent, because it throws in some extra .o
6121 # files that make .init and .fini sections work. 4989 # files that make .init and .fini sections work.
6122 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 4990 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6123 else 4991 else
6124 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 4992 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6125 fi 4993 fi
6126 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 4994 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6127 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 4995 _LT_TAGVAR(hardcode_direct, $1)=yes
6128 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 4996 _LT_TAGVAR(hardcode_minus_L, $1)=yes
6129 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 4997 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6130 ;; 4998 ;;
6131 4999
6132 sysv4) 5000 sysv4)
6133 case $host_vendor in 5001 case $host_vendor in
6134 sni) 5002 sni)
6135 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 5003 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6136 _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true??? 5004 _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
6137 ;; 5005 ;;
6138 siemens) 5006 siemens)
6139 ## LD is ld it makes a PLAMLIB 5007 ## LD is ld it makes a PLAMLIB
6140 ## CC just makes a GrossModule. 5008 ## CC just makes a GrossModule.
6141 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' 5009 _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6142 _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' 5010 _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
6143 _LT_AC_TAGVAR(hardcode_direct, $1)=no 5011 _LT_TAGVAR(hardcode_direct, $1)=no
6144 ;; 5012 ;;
6145 motorola) 5013 motorola)
6146 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 5014 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6147 _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie 5015 _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
6148 ;; 5016 ;;
6149 esac 5017 esac
6150 runpath_var='LD_RUN_PATH' 5018 runpath_var='LD_RUN_PATH'
6151 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 5019 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6152 ;; 5020 ;;
6153 5021
6154 sysv4.3*) 5022 sysv4.3*)
6155 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 5023 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6156 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 5024 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6157 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' 5025 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
6158 ;; 5026 ;;
6159 5027
6160 sysv4*MP*) 5028 sysv4*MP*)
6161 if test -d /usr/nec; then 5029 if test -d /usr/nec; then
6162 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 5030 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6163 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 5031 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6164 runpath_var=LD_RUN_PATH 5032 runpath_var=LD_RUN_PATH
6165 hardcode_runpath_var=yes 5033 hardcode_runpath_var=yes
6166 _LT_AC_TAGVAR(ld_shlibs, $1)=yes 5034 _LT_TAGVAR(ld_shlibs, $1)=yes
6167 fi 5035 fi
6168 ;; 5036 ;;
6169 5037
6170 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*) 5038 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6171 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 5039 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6172 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 5040 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6173 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 5041 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6174 runpath_var='LD_RUN_PATH' 5042 runpath_var='LD_RUN_PATH'
6175 5043
6176 if test "$GCC" = yes; then 5044 if test "$GCC" = yes; then
6177 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 5045 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6178 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 5046 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6179 else 5047 else
6180 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 5048 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6181 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 5049 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6182 fi 5050 fi
6183 ;; 5051 ;;
6184 5052
6185 sysv5* | sco3.2v5* | sco5v6*) 5053 sysv5* | sco3.2v5* | sco5v6*)
6186 # Note: We can NOT use -z defs as we might desire, because we do not 5054 # Note: We can NOT use -z defs as we might desire, because we do not
6187 # link with -lc, and that would cause any symbols used from libc to 5055 # link with -lc, and that would cause any symbols used from libc to
6188 # always be unresolved, which means just about no library would 5056 # always be unresolved, which means just about no library would
6189 # ever link correctly. If we're not using GNU ld we use -z text 5057 # ever link correctly. If we're not using GNU ld we use -z text
6190 # though, which does catch some bad symbols but isn't as heavy-handed 5058 # though, which does catch some bad symbols but isn't as heavy-handed
6191 # as -z defs. 5059 # as -z defs.
6192 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 5060 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6193 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' 5061 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6194 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 5062 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6195 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 5063 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6196 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 5064 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
6197 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' 5065 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6198 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 5066 _LT_TAGVAR(link_all_deplibs, $1)=yes
6199 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' 5067 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6200 runpath_var='LD_RUN_PATH' 5068 runpath_var='LD_RUN_PATH'
6201 5069
6202 if test "$GCC" = yes; then 5070 if test "$GCC" = yes; then
6203 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 5071 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6204 _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' 5072 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6205 else 5073 else
6206 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 5074 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6207 _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' 5075 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6208 fi 5076 fi
6209 ;; 5077 ;;
6210 5078
6211 uts4*) 5079 uts4*)
6212 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 5080 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6213 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5081 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6214 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 5082 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6215 ;; 5083 ;;
6216 5084
6217 *) 5085 *)
6218 _LT_AC_TAGVAR(ld_shlibs, $1)=no 5086 _LT_TAGVAR(ld_shlibs, $1)=no
6219 ;; 5087 ;;
6220 esac 5088 esac
5089
5090 if test x$host_vendor = xsni; then
5091 case $host in
5092 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5093 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
5094 ;;
5095 esac
5096 fi
6221 fi 5097 fi
6222 ]) 5098 ])
6223 AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) 5099 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
6224 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no 5100 test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
5101
5102 _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
5103
5104 _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
5105 _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
5106 _LT_DECL([], [extract_expsyms_cmds], [2],
5107 [The commands to extract the exported symbol list from a shared archive])
6225 5108
6226 # 5109 #
6227 # Do we need to explicitly link libc? 5110 # Do we need to explicitly link libc?
6228 # 5111 #
6229 case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in 5112 case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
6230 x|xyes) 5113 x|xyes)
6231 # Assume -lc should be added 5114 # Assume -lc should be added
6232 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes 5115 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6233 5116
6234 if test "$enable_shared" = yes && test "$GCC" = yes; then 5117 if test "$enable_shared" = yes && test "$GCC" = yes; then
6235 case $_LT_AC_TAGVAR(archive_cmds, $1) in 5118 case $_LT_TAGVAR(archive_cmds, $1) in
6236 *'~'*) 5119 *'~'*)
6237 # FIXME: we may have to deal with multi-command sequences. 5120 # FIXME: we may have to deal with multi-command sequences.
6238 ;; 5121 ;;
6239 '$CC '*) 5122 '$CC '*)
6240 # Test whether the compiler implicitly links with -lc since on some 5123 # Test whether the compiler implicitly links with -lc since on some
6241 # systems, -lgcc has to come before -lc. If gcc already passes -lc 5124 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6242 # to ld, don't add -lc before -lgcc. 5125 # to ld, don't add -lc before -lgcc.
6243 AC_MSG_CHECKING([whether -lc should be explicitly linked in]) 5126 AC_MSG_CHECKING([whether -lc should be explicitly linked in])
6244 $rm conftest* 5127 $RM conftest*
6245 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 5128 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6246 5129
6247 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then 5130 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6248 soname=conftest 5131 soname=conftest
6249 lib=conftest 5132 lib=conftest
6250 libobjs=conftest.$ac_objext 5133 libobjs=conftest.$ac_objext
6251 deplibs= 5134 deplibs=
6252 wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) 5135 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
6253 pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) 5136 pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
6254 compiler_flags=-v 5137 compiler_flags=-v
6255 linker_flags=-v 5138 linker_flags=-v
6256 verstring= 5139 verstring=
6257 output_objdir=. 5140 output_objdir=.
6258 libname=conftest 5141 libname=conftest
6259 lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1) 5142 lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
6260 _LT_AC_TAGVAR(allow_undefined_flag, $1)= 5143 _LT_TAGVAR(allow_undefined_flag, $1)=
6261 if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 5144 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
6262 then 5145 then
6263 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 5146 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6264 else 5147 else
6265 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes 5148 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6266 fi 5149 fi
6267 _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag 5150 _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
6268 else 5151 else
6269 cat conftest.err 1>&5 5152 cat conftest.err 1>&5
6270 fi 5153 fi
6271 $rm conftest* 5154 $RM conftest*
6272 AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)]) 5155 AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
6273 ;; 5156 ;;
6274 esac 5157 esac
6275 fi 5158 fi
6276 ;; 5159 ;;
6277 esac 5160 esac
6278 ])# AC_LIBTOOL_PROG_LD_SHLIBS 5161
6279 5162 _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
6280 5163 [Whether or not to add -lc for building shared libraries])
6281 # _LT_AC_FILE_LTDLL_C 5164 _LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
6282 # ------------------- 5165 [enable_shared_with_static_runtimes], [0],
6283 # Be careful that the start marker always follows a newline. 5166 [Whether or not to disallow shared libs when runtime libs are static])
6284 AC_DEFUN([_LT_AC_FILE_LTDLL_C], [ 5167 _LT_TAGDECL([], [export_dynamic_flag_spec], [1],
6285 # /* ltdll.c starts here */ 5168 [Compiler flag to allow reflexive dlopens])
6286 # #define WIN32_LEAN_AND_MEAN 5169 _LT_TAGDECL([], [whole_archive_flag_spec], [1],
6287 # #include <windows.h> 5170 [Compiler flag to generate shared objects directly from archives])
6288 # #undef WIN32_LEAN_AND_MEAN 5171 _LT_TAGDECL([], [compiler_needs_object], [1],
6289 # #include <stdio.h> 5172 [Whether the compiler copes with passing no objects directly])
6290 # 5173 _LT_TAGDECL([], [old_archive_from_new_cmds], [2],
6291 # #ifndef __CYGWIN__ 5174 [Create an old-style archive from a shared archive])
6292 # # ifdef __CYGWIN32__ 5175 _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
6293 # # define __CYGWIN__ __CYGWIN32__ 5176 [Create a temporary old-style archive to link instead of a shared archive])
6294 # # endif 5177 _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
6295 # #endif 5178 _LT_TAGDECL([], [archive_expsym_cmds], [2])
6296 # 5179 _LT_TAGDECL([], [module_cmds], [2],
6297 # #ifdef __cplusplus 5180 [Commands used to build a loadable module if different from building
6298 # extern "C" { 5181 a shared archive.])
6299 # #endif 5182 _LT_TAGDECL([], [module_expsym_cmds], [2])
6300 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); 5183 _LT_TAGDECL([], [with_gnu_ld], [1],
6301 # #ifdef __cplusplus 5184 [Whether we are building with GNU ld or not])
6302 # } 5185 _LT_TAGDECL([], [allow_undefined_flag], [1],
6303 # #endif 5186 [Flag that allows shared libraries with undefined symbols to be built])
6304 # 5187 _LT_TAGDECL([], [no_undefined_flag], [1],
6305 # #ifdef __CYGWIN__ 5188 [Flag that enforces no undefined symbols])
6306 # #include <cygwin/cygwin_dll.h> 5189 _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
6307 # DECLARE_CYGWIN_DLL( DllMain ); 5190 [Flag to hardcode $libdir into a binary during linking.
6308 # #endif 5191 This must work even if $libdir does not exist])
6309 # HINSTANCE __hDllInstance_base; 5192 _LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
6310 # 5193 [[If ld is used when linking, flag to hardcode $libdir into a binary
6311 # BOOL APIENTRY 5194 during linking. This must work even if $libdir does not exist]])
6312 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) 5195 _LT_TAGDECL([], [hardcode_libdir_separator], [1],
6313 # { 5196 [Whether we need a single "-rpath" flag with a separated argument])
6314 # __hDllInstance_base = hInst; 5197 _LT_TAGDECL([], [hardcode_direct], [0],
6315 # return TRUE; 5198 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
6316 # } 5199 DIR into the resulting binary])
6317 # /* ltdll.c ends here */ 5200 _LT_TAGDECL([], [hardcode_direct_absolute], [0],
6318 ])# _LT_AC_FILE_LTDLL_C 5201 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
6319 5202 DIR into the resulting binary and the resulting library dependency is
6320 5203 "absolute", i.e impossible to change by setting ${shlibpath_var} if the
6321 # _LT_AC_TAGVAR(VARNAME, [TAGNAME]) 5204 library is relocated])
5205 _LT_TAGDECL([], [hardcode_minus_L], [0],
5206 [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
5207 into the resulting binary])
5208 _LT_TAGDECL([], [hardcode_shlibpath_var], [0],
5209 [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
5210 into the resulting binary])
5211 _LT_TAGDECL([], [hardcode_automatic], [0],
5212 [Set to "yes" if building a shared library automatically hardcodes DIR
5213 into the library and all subsequent libraries and executables linked
5214 against it])
5215 _LT_TAGDECL([], [inherit_rpath], [0],
5216 [Set to yes if linker adds runtime paths of dependent libraries
5217 to runtime path list])
5218 _LT_TAGDECL([], [link_all_deplibs], [0],
5219 [Whether libtool must link a program against all its dependency libraries])
5220 _LT_TAGDECL([], [fix_srcfile_path], [1],
5221 [Fix the shell variable $srcfile for the compiler])
5222 _LT_TAGDECL([], [always_export_symbols], [0],
5223 [Set to "yes" if exported symbols are required])
5224 _LT_TAGDECL([], [export_symbols_cmds], [2],
5225 [The commands to list exported symbols])
5226 _LT_TAGDECL([], [exclude_expsyms], [1],
5227 [Symbols that should not be listed in the preloaded symbols])
5228 _LT_TAGDECL([], [include_expsyms], [1],
5229 [Symbols that must always be exported])
5230 _LT_TAGDECL([], [prelink_cmds], [2],
5231 [Commands necessary for linking programs (against libraries) with templates])
5232 _LT_TAGDECL([], [file_list_spec], [1],
5233 [Specify filename containing input files])
5234 dnl FIXME: Not yet implemented
5235 dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
5236 dnl [Compiler flag to generate thread safe objects])
5237 ])# _LT_LINKER_SHLIBS
5238
5239
5240 # _LT_LANG_C_CONFIG([TAG])
5241 # ------------------------
5242 # Ensure that the configuration variables for a C compiler are suitably
5243 # defined. These variables are subsequently used by _LT_CONFIG to write
5244 # the compiler configuration to `libtool'.
5245 m4_defun([_LT_LANG_C_CONFIG],
5246 [m4_require([_LT_DECL_EGREP])dnl
5247 lt_save_CC="$CC"
5248 AC_LANG_PUSH(C)
5249
5250 # Source file extension for C test sources.
5251 ac_ext=c
5252
5253 # Object file extension for compiled C test sources.
5254 objext=o
5255 _LT_TAGVAR(objext, $1)=$objext
5256
5257 # Code to be used in simple compile tests
5258 lt_simple_compile_test_code="int some_variable = 0;"
5259
5260 # Code to be used in simple link tests
5261 lt_simple_link_test_code='int main(){return(0);}'
5262
5263 _LT_TAG_COMPILER
5264 # Save the default compiler, since it gets overwritten when the other
5265 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
5266 compiler_DEFAULT=$CC
5267
5268 # save warnings/boilerplate of simple test code
5269 _LT_COMPILER_BOILERPLATE
5270 _LT_LINKER_BOILERPLATE
5271
5272 ## CAVEAT EMPTOR:
5273 ## There is no encapsulation within the following macros, do not change
5274 ## the running order or otherwise move them around unless you know exactly
5275 ## what you are doing...
5276 if test -n "$compiler"; then
5277 _LT_COMPILER_NO_RTTI($1)
5278 _LT_COMPILER_PIC($1)
5279 _LT_COMPILER_C_O($1)
5280 _LT_COMPILER_FILE_LOCKS($1)
5281 _LT_LINKER_SHLIBS($1)
5282 _LT_SYS_DYNAMIC_LINKER($1)
5283 _LT_LINKER_HARDCODE_LIBPATH($1)
5284 LT_SYS_DLOPEN_SELF
5285 _LT_CMD_STRIPLIB
5286
5287 # Report which library types will actually be built
5288 AC_MSG_CHECKING([if libtool supports shared libraries])
5289 AC_MSG_RESULT([$can_build_shared])
5290
5291 AC_MSG_CHECKING([whether to build shared libraries])
5292 test "$can_build_shared" = "no" && enable_shared=no
5293
5294 # On AIX, shared libraries and static libraries use the same namespace, and
5295 # are all built from PIC.
5296 case $host_os in
5297 aix3*)
5298 test "$enable_shared" = yes && enable_static=no
5299 if test -n "$RANLIB"; then
5300 archive_cmds="$archive_cmds~\$RANLIB \$lib"
5301 postinstall_cmds='$RANLIB $lib'
5302 fi
5303 ;;
5304
5305 aix[[4-9]]*)
5306 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5307 test "$enable_shared" = yes && enable_static=no
5308 fi
5309 ;;
5310 esac
5311 AC_MSG_RESULT([$enable_shared])
5312
5313 AC_MSG_CHECKING([whether to build static libraries])
5314 # Make sure either enable_shared or enable_static is yes.
5315 test "$enable_shared" = yes || enable_static=yes
5316 AC_MSG_RESULT([$enable_static])
5317
5318 _LT_CONFIG($1)
5319 fi
5320 AC_LANG_POP
5321 CC="$lt_save_CC"
5322 ])# _LT_LANG_C_CONFIG
5323
5324
5325 # _LT_PROG_CXX
5326 # ------------
5327 # Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
5328 # compiler, we have our own version here.
5329 m4_defun([_LT_PROG_CXX],
5330 [
5331 pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
5332 AC_PROG_CXX
5333 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5334 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5335 (test "X$CXX" != "Xg++"))) ; then
5336 AC_PROG_CXXCPP
5337 else
5338 _lt_caught_CXX_error=yes
5339 fi
5340 popdef([AC_MSG_ERROR])
5341 ])# _LT_PROG_CXX
5342
5343 dnl aclocal-1.4 backwards compatibility:
5344 dnl AC_DEFUN([_LT_PROG_CXX], [])
5345
5346
5347 # _LT_LANG_CXX_CONFIG([TAG])
5348 # --------------------------
5349 # Ensure that the configuration variables for a C++ compiler are suitably
5350 # defined. These variables are subsequently used by _LT_CONFIG to write
5351 # the compiler configuration to `libtool'.
5352 m4_defun([_LT_LANG_CXX_CONFIG],
5353 [AC_REQUIRE([_LT_PROG_CXX])dnl
5354 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5355 m4_require([_LT_DECL_EGREP])dnl
5356
5357 AC_LANG_PUSH(C++)
5358 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5359 _LT_TAGVAR(allow_undefined_flag, $1)=
5360 _LT_TAGVAR(always_export_symbols, $1)=no
5361 _LT_TAGVAR(archive_expsym_cmds, $1)=
5362 _LT_TAGVAR(compiler_needs_object, $1)=no
5363 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
5364 _LT_TAGVAR(hardcode_direct, $1)=no
5365 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
5366 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5367 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5368 _LT_TAGVAR(hardcode_libdir_separator, $1)=
5369 _LT_TAGVAR(hardcode_minus_L, $1)=no
5370 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5371 _LT_TAGVAR(hardcode_automatic, $1)=no
5372 _LT_TAGVAR(inherit_rpath, $1)=no
5373 _LT_TAGVAR(module_cmds, $1)=
5374 _LT_TAGVAR(module_expsym_cmds, $1)=
5375 _LT_TAGVAR(link_all_deplibs, $1)=unknown
5376 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
5377 _LT_TAGVAR(no_undefined_flag, $1)=
5378 _LT_TAGVAR(whole_archive_flag_spec, $1)=
5379 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5380
5381 # Source file extension for C++ test sources.
5382 ac_ext=cpp
5383
5384 # Object file extension for compiled C++ test sources.
5385 objext=o
5386 _LT_TAGVAR(objext, $1)=$objext
5387
5388 # No sense in running all these tests if we already determined that
5389 # the CXX compiler isn't working. Some variables (like enable_shared)
5390 # are currently assumed to apply to all compilers on this platform,
5391 # and will be corrupted by setting them based on a non-working compiler.
5392 if test "$_lt_caught_CXX_error" != yes; then
5393 # Code to be used in simple compile tests
5394 lt_simple_compile_test_code="int some_variable = 0;"
5395
5396 # Code to be used in simple link tests
5397 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
5398
5399 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
5400 _LT_TAG_COMPILER
5401
5402 # save warnings/boilerplate of simple test code
5403 _LT_COMPILER_BOILERPLATE
5404 _LT_LINKER_BOILERPLATE
5405
5406 # Allow CC to be a program name with arguments.
5407 lt_save_CC=$CC
5408 lt_save_LD=$LD
5409 lt_save_GCC=$GCC
5410 GCC=$GXX
5411 lt_save_with_gnu_ld=$with_gnu_ld
5412 lt_save_path_LD=$lt_cv_path_LD
5413 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
5414 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
5415 else
5416 $as_unset lt_cv_prog_gnu_ld
5417 fi
5418 if test -n "${lt_cv_path_LDCXX+set}"; then
5419 lt_cv_path_LD=$lt_cv_path_LDCXX
5420 else
5421 $as_unset lt_cv_path_LD
5422 fi
5423 test -z "${LDCXX+set}" || LD=$LDCXX
5424 CC=${CXX-"c++"}
5425 compiler=$CC
5426 _LT_TAGVAR(compiler, $1)=$CC
5427 _LT_CC_BASENAME([$compiler])
5428
5429 if test -n "$compiler"; then
5430 # We don't want -fno-exception when compiling C++ code, so set the
5431 # no_builtin_flag separately
5432 if test "$GXX" = yes; then
5433 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
5434 else
5435 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
5436 fi
5437
5438 if test "$GXX" = yes; then
5439 # Set up default GNU C++ configuration
5440
5441 LT_PATH_LD
5442
5443 # Check if GNU C++ uses GNU ld as the underlying linker, since the
5444 # archiving commands below assume that GNU ld is being used.
5445 if test "$with_gnu_ld" = yes; then
5446 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5447 _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'
5448
5449 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5450 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5451
5452 # If archive_cmds runs LD, not CC, wlarc should be empty
5453 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
5454 # investigate it a little bit more. (MM)
5455 wlarc='${wl}'
5456
5457 # ancient GNU ld didn't support --whole-archive et. al.
5458 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
5459 $GREP 'no-whole-archive' > /dev/null; then
5460 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5461 else
5462 _LT_TAGVAR(whole_archive_flag_spec, $1)=
5463 fi
5464 else
5465 with_gnu_ld=no
5466 wlarc=
5467
5468 # A generic and very simple default shared library creation
5469 # command for GNU C++ for the case where it uses the native
5470 # linker, instead of GNU ld. If possible, this setting should
5471 # overridden to take advantage of the native linker features on
5472 # the platform it is being used on.
5473 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
5474 fi
5475
5476 # Commands to make compiler produce verbose output that lists
5477 # what "hidden" libraries, object files and flags are used when
5478 # linking a shared library.
5479 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
5480
5481 else
5482 GXX=no
5483 with_gnu_ld=no
5484 wlarc=
5485 fi
5486
5487 # PORTME: fill in a description of your system's C++ link characteristics
5488 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5489 _LT_TAGVAR(ld_shlibs, $1)=yes
5490 case $host_os in
5491 aix3*)
5492 # FIXME: insert proper C++ library support
5493 _LT_TAGVAR(ld_shlibs, $1)=no
5494 ;;
5495 aix[[4-9]]*)
5496 if test "$host_cpu" = ia64; then
5497 # On IA64, the linker does run time linking by default, so we don't
5498 # have to do anything special.
5499 aix_use_runtimelinking=no
5500 exp_sym_flag='-Bexport'
5501 no_entry_flag=""
5502 else
5503 aix_use_runtimelinking=no
5504
5505 # Test if we are trying to use run time linking or normal
5506 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5507 # need to do runtime linking.
5508 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5509 for ld_flag in $LDFLAGS; do
5510 case $ld_flag in
5511 *-brtl*)
5512 aix_use_runtimelinking=yes
5513 break
5514 ;;
5515 esac
5516 done
5517 ;;
5518 esac
5519
5520 exp_sym_flag='-bexport'
5521 no_entry_flag='-bnoentry'
5522 fi
5523
5524 # When large executables or shared objects are built, AIX ld can
5525 # have problems creating the table of contents. If linking a library
5526 # or program results in "error TOC overflow" add -mminimal-toc to
5527 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5528 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5529
5530 _LT_TAGVAR(archive_cmds, $1)=''
5531 _LT_TAGVAR(hardcode_direct, $1)=yes
5532 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5533 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5534 _LT_TAGVAR(link_all_deplibs, $1)=yes
5535 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
5536
5537 if test "$GXX" = yes; then
5538 case $host_os in aix4.[[012]]|aix4.[[012]].*)
5539 # We only want to do this on AIX 4.2 and lower, the check
5540 # below for broken collect2 doesn't work under 4.3+
5541 collect2name=`${CC} -print-prog-name=collect2`
5542 if test -f "$collect2name" &&
5543 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
5544 then
5545 # We have reworked collect2
5546 :
5547 else
5548 # We have old collect2
5549 _LT_TAGVAR(hardcode_direct, $1)=unsupported
5550 # It fails to find uninstalled libraries when the uninstalled
5551 # path is not listed in the libpath. Setting hardcode_minus_L
5552 # to unsupported forces relinking
5553 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5554 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5555 _LT_TAGVAR(hardcode_libdir_separator, $1)=
5556 fi
5557 esac
5558 shared_flag='-shared'
5559 if test "$aix_use_runtimelinking" = yes; then
5560 shared_flag="$shared_flag "'${wl}-G'
5561 fi
5562 else
5563 # not using gcc
5564 if test "$host_cpu" = ia64; then
5565 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5566 # chokes on -Wl,-G. The following line is correct:
5567 shared_flag='-G'
5568 else
5569 if test "$aix_use_runtimelinking" = yes; then
5570 shared_flag='${wl}-G'
5571 else
5572 shared_flag='${wl}-bM:SRE'
5573 fi
5574 fi
5575 fi
5576
5577 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
5578 # It seems that -bexpall does not export symbols beginning with
5579 # underscore (_), so it is better to generate a list of symbols to
5580 # export.
5581 _LT_TAGVAR(always_export_symbols, $1)=yes
5582 if test "$aix_use_runtimelinking" = yes; then
5583 # Warning - without using the other runtime loading flags (-brtl),
5584 # -berok will link without error, but may produce a broken library.
5585 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
5586 # Determine the default libpath from the value encoded in an empty
5587 # executable.
5588 _LT_SYS_MODULE_PATH_AIX
5589 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5590
5591 _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"
5592 else
5593 if test "$host_cpu" = ia64; then
5594 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5595 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5596 _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"
5597 else
5598 # Determine the default libpath from the value encoded in an
5599 # empty executable.
5600 _LT_SYS_MODULE_PATH_AIX
5601 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5602 # Warning - without using the other run time loading flags,
5603 # -berok will link without error, but may produce a broken library.
5604 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5605 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5606 # Exported symbols can be pulled into shared objects from archives
5607 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5608 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5609 # This is similar to how AIX traditionally builds its shared
5610 # libraries.
5611 _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'
5612 fi
5613 fi
5614 ;;
5615
5616 beos*)
5617 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5618 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5619 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5620 # support --undefined. This deserves some investigation. FIXME
5621 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5622 else
5623 _LT_TAGVAR(ld_shlibs, $1)=no
5624 fi
5625 ;;
5626
5627 chorus*)
5628 case $cc_basename in
5629 *)
5630 # FIXME: insert proper C++ library support
5631 _LT_TAGVAR(ld_shlibs, $1)=no
5632 ;;
5633 esac
5634 ;;
5635
5636 cygwin* | mingw* | pw32* | cegcc*)
5637 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5638 # as there is no search path for DLLs.
5639 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5640 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5641 _LT_TAGVAR(always_export_symbols, $1)=no
5642 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5643
5644 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
5645 _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'
5646 # If the export-symbols file already is a .def file (1st line
5647 # is EXPORTS), use it as is; otherwise, prepend...
5648 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5649 cp $export_symbols $output_objdir/$soname.def;
5650 else
5651 echo EXPORTS > $output_objdir/$soname.def;
5652 cat $export_symbols >> $output_objdir/$soname.def;
5653 fi~
5654 $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'
5655 else
5656 _LT_TAGVAR(ld_shlibs, $1)=no
5657 fi
5658 ;;
5659 darwin* | rhapsody*)
5660 _LT_DARWIN_LINKER_FEATURES($1)
5661 ;;
5662
5663 dgux*)
5664 case $cc_basename in
5665 ec++*)
5666 # FIXME: insert proper C++ library support
5667 _LT_TAGVAR(ld_shlibs, $1)=no
5668 ;;
5669 ghcx*)
5670 # Green Hills C++ Compiler
5671 # FIXME: insert proper C++ library support
5672 _LT_TAGVAR(ld_shlibs, $1)=no
5673 ;;
5674 *)
5675 # FIXME: insert proper C++ library support
5676 _LT_TAGVAR(ld_shlibs, $1)=no
5677 ;;
5678 esac
5679 ;;
5680
5681 freebsd[[12]]*)
5682 # C++ shared libraries reported to be fairly broken before
5683 # switch to ELF
5684 _LT_TAGVAR(ld_shlibs, $1)=no
5685 ;;
5686
5687 freebsd-elf*)
5688 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5689 ;;
5690
5691 freebsd* | dragonfly*)
5692 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
5693 # conventions
5694 _LT_TAGVAR(ld_shlibs, $1)=yes
5695 ;;
5696
5697 gnu*)
5698 ;;
5699
5700 hpux9*)
5701 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5702 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5703 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5704 _LT_TAGVAR(hardcode_direct, $1)=yes
5705 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
5706 # but as the default
5707 # location of the library.
5708
5709 case $cc_basename in
5710 CC*)
5711 # FIXME: insert proper C++ library support
5712 _LT_TAGVAR(ld_shlibs, $1)=no
5713 ;;
5714 aCC*)
5715 _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'
5716 # Commands to make compiler produce verbose output that lists
5717 # what "hidden" libraries, object files and flags are used when
5718 # linking a shared library.
5719 #
5720 # There doesn't appear to be a way to prevent this compiler from
5721 # explicitly linking system object files so we need to strip them
5722 # from the output so that they don't get included in the library
5723 # dependencies.
5724 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'
5725 ;;
5726 *)
5727 if test "$GXX" = yes; then
5728 _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'
5729 else
5730 # FIXME: insert proper C++ library support
5731 _LT_TAGVAR(ld_shlibs, $1)=no
5732 fi
5733 ;;
5734 esac
5735 ;;
5736
5737 hpux10*|hpux11*)
5738 if test $with_gnu_ld = no; then
5739 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5740 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5741
5742 case $host_cpu in
5743 hppa*64*|ia64*)
5744 ;;
5745 *)
5746 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5747 ;;
5748 esac
5749 fi
5750 case $host_cpu in
5751 hppa*64*|ia64*)
5752 _LT_TAGVAR(hardcode_direct, $1)=no
5753 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5754 ;;
5755 *)
5756 _LT_TAGVAR(hardcode_direct, $1)=yes
5757 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5758 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
5759 # but as the default
5760 # location of the library.
5761 ;;
5762 esac
5763
5764 case $cc_basename in
5765 CC*)
5766 # FIXME: insert proper C++ library support
5767 _LT_TAGVAR(ld_shlibs, $1)=no
5768 ;;
5769 aCC*)
5770 case $host_cpu in
5771 hppa*64*)
5772 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5773 ;;
5774 ia64*)
5775 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5776 ;;
5777 *)
5778 _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'
5779 ;;
5780 esac
5781 # Commands to make compiler produce verbose output that lists
5782 # what "hidden" libraries, object files and flags are used when
5783 # linking a shared library.
5784 #
5785 # There doesn't appear to be a way to prevent this compiler from
5786 # explicitly linking system object files so we need to strip them
5787 # from the output so that they don't get included in the library
5788 # dependencies.
5789 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'
5790 ;;
5791 *)
5792 if test "$GXX" = yes; then
5793 if test $with_gnu_ld = no; then
5794 case $host_cpu in
5795 hppa*64*)
5796 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5797 ;;
5798 ia64*)
5799 _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'
5800 ;;
5801 *)
5802 _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'
5803 ;;
5804 esac
5805 fi
5806 else
5807 # FIXME: insert proper C++ library support
5808 _LT_TAGVAR(ld_shlibs, $1)=no
5809 fi
5810 ;;
5811 esac
5812 ;;
5813
5814 interix[[3-9]]*)
5815 _LT_TAGVAR(hardcode_direct, $1)=no
5816 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5817 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5818 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5819 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5820 # Instead, shared libraries are loaded at an image base (0x10000000 by
5821 # default) and relocated if they conflict, which is a slow very memory
5822 # consuming and fragmenting process. To avoid this, we pick a random,
5823 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5824 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
5825 _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'
5826 _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'
5827 ;;
5828 irix5* | irix6*)
5829 case $cc_basename in
5830 CC*)
5831 # SGI C++
5832 _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'
5833
5834 # Archives containing C++ object files must be created using
5835 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
5836 # necessary to make sure instantiated templates are included
5837 # in the archive.
5838 _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
5839 ;;
5840 *)
5841 if test "$GXX" = yes; then
5842 if test "$with_gnu_ld" = no; then
5843 _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'
5844 else
5845 _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'
5846 fi
5847 fi
5848 _LT_TAGVAR(link_all_deplibs, $1)=yes
5849 ;;
5850 esac
5851 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5852 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5853 _LT_TAGVAR(inherit_rpath, $1)=yes
5854 ;;
5855
5856 linux* | k*bsd*-gnu)
5857 case $cc_basename in
5858 KCC*)
5859 # Kuck and Associates, Inc. (KAI) C++ Compiler
5860
5861 # KCC will only create a shared library if the output file
5862 # ends with ".so" (or ".sl" for HP-UX), so rename the library
5863 # to its proper name (with version) after linking.
5864 _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'
5865 _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'
5866 # Commands to make compiler produce verbose output that lists
5867 # what "hidden" libraries, object files and flags are used when
5868 # linking a shared library.
5869 #
5870 # There doesn't appear to be a way to prevent this compiler from
5871 # explicitly linking system object files so we need to strip them
5872 # from the output so that they don't get included in the library
5873 # dependencies.
5874 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'
5875
5876 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5877 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5878
5879 # Archives containing C++ object files must be created using
5880 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
5881 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
5882 ;;
5883 icpc* | ecpc* )
5884 # Intel C++
5885 with_gnu_ld=yes
5886 # version 8.0 and above of icpc choke on multiply defined symbols
5887 # if we add $predep_objects and $postdep_objects, however 7.1 and
5888 # earlier do not add the objects themselves.
5889 case `$CC -V 2>&1` in
5890 *"Version 7."*)
5891 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5892 _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'
5893 ;;
5894 *) # Version 8.0 or newer
5895 tmp_idyn=
5896 case $host_cpu in
5897 ia64*) tmp_idyn=' -i_dynamic';;
5898 esac
5899 _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5900 _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'
5901 ;;
5902 esac
5903 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5904 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5905 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5906 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
5907 ;;
5908 pgCC* | pgcpp*)
5909 # Portland Group C++ compiler
5910 case `$CC -V` in
5911 *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
5912 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
5913 rm -rf $tpldir~
5914 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
5915 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
5916 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
5917 rm -rf $tpldir~
5918 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
5919 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
5920 $RANLIB $oldlib'
5921 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
5922 rm -rf $tpldir~
5923 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
5924 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
5925 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
5926 rm -rf $tpldir~
5927 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
5928 $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'
5929 ;;
5930 *) # Version 6 will use weak symbols
5931 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
5932 _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'
5933 ;;
5934 esac
5935
5936 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
5937 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5938 _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'
5939 ;;
5940 cxx*)
5941 # Compaq C++
5942 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5943 _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'
5944
5945 runpath_var=LD_RUN_PATH
5946 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5947 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5948
5949 # Commands to make compiler produce verbose output that lists
5950 # what "hidden" libraries, object files and flags are used when
5951 # linking a shared library.
5952 #
5953 # There doesn't appear to be a way to prevent this compiler from
5954 # explicitly linking system object files so we need to strip them
5955 # from the output so that they don't get included in the library
5956 # dependencies.
5957 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'
5958 ;;
5959 xl*)
5960 # IBM XL 8.0 on PPC, with GNU ld
5961 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5962 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5963 _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5964 if test "x$supports_anon_versioning" = xyes; then
5965 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5966 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5967 echo "local: *; };" >> $output_objdir/$libname.ver~
5968 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5969 fi
5970 ;;
5971 *)
5972 case `$CC -V 2>&1 | sed 5q` in
5973 *Sun\ C*)
5974 # Sun C++ 5.9
5975 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
5976 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5977 _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'
5978 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5979 _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'
5980 _LT_TAGVAR(compiler_needs_object, $1)=yes
5981
5982 # Not sure whether something based on
5983 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
5984 # would be better.
5985 output_verbose_link_cmd='echo'
5986
5987 # Archives containing C++ object files must be created using
5988 # "CC -xar", where "CC" is the Sun C++ compiler. This is
5989 # necessary to make sure instantiated templates are included
5990 # in the archive.
5991 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
5992 ;;
5993 esac
5994 ;;
5995 esac
5996 ;;
5997
5998 lynxos*)
5999 # FIXME: insert proper C++ library support
6000 _LT_TAGVAR(ld_shlibs, $1)=no
6001 ;;
6002
6003 m88k*)
6004 # FIXME: insert proper C++ library support
6005 _LT_TAGVAR(ld_shlibs, $1)=no
6006 ;;
6007
6008 mvs*)
6009 case $cc_basename in
6010 cxx*)
6011 # FIXME: insert proper C++ library support
6012 _LT_TAGVAR(ld_shlibs, $1)=no
6013 ;;
6014 *)
6015 # FIXME: insert proper C++ library support
6016 _LT_TAGVAR(ld_shlibs, $1)=no
6017 ;;
6018 esac
6019 ;;
6020
6021 netbsd*)
6022 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6023 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
6024 wlarc=
6025 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6026 _LT_TAGVAR(hardcode_direct, $1)=yes
6027 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6028 fi
6029 # Workaround some broken pre-1.5 toolchains
6030 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
6031 ;;
6032
6033 *nto* | *qnx*)
6034 _LT_TAGVAR(ld_shlibs, $1)=yes
6035 ;;
6036
6037 openbsd2*)
6038 # C++ shared libraries are fairly broken
6039 _LT_TAGVAR(ld_shlibs, $1)=no
6040 ;;
6041
6042 openbsd*)
6043 if test -f /usr/libexec/ld.so; then
6044 _LT_TAGVAR(hardcode_direct, $1)=yes
6045 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6046 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6047 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6048 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6049 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6050 _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'
6051 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6052 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6053 fi
6054 output_verbose_link_cmd=echo
6055 else
6056 _LT_TAGVAR(ld_shlibs, $1)=no
6057 fi
6058 ;;
6059
6060 osf3* | osf4* | osf5*)
6061 case $cc_basename in
6062 KCC*)
6063 # Kuck and Associates, Inc. (KAI) C++ Compiler
6064
6065 # KCC will only create a shared library if the output file
6066 # ends with ".so" (or ".sl" for HP-UX), so rename the library
6067 # to its proper name (with version) after linking.
6068 _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'
6069
6070 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6071 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6072
6073 # Archives containing C++ object files must be created using
6074 # the KAI C++ compiler.
6075 case $host in
6076 osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
6077 *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
6078 esac
6079 ;;
6080 RCC*)
6081 # Rational C++ 2.4.1
6082 # FIXME: insert proper C++ library support
6083 _LT_TAGVAR(ld_shlibs, $1)=no
6084 ;;
6085 cxx*)
6086 case $host in
6087 osf3*)
6088 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6089 _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'
6090 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6091 ;;
6092 *)
6093 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6094 _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'
6095 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
6096 echo "-hidden">> $lib.exp~
6097 $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~
6098 $RM $lib.exp'
6099 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6100 ;;
6101 esac
6102
6103 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6104
6105 # Commands to make compiler produce verbose output that lists
6106 # what "hidden" libraries, object files and flags are used when
6107 # linking a shared library.
6108 #
6109 # There doesn't appear to be a way to prevent this compiler from
6110 # explicitly linking system object files so we need to strip them
6111 # from the output so that they don't get included in the library
6112 # dependencies.
6113 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'
6114 ;;
6115 *)
6116 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6117 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6118 case $host in
6119 osf3*)
6120 _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'
6121 ;;
6122 *)
6123 _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'
6124 ;;
6125 esac
6126
6127 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6128 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6129
6130 # Commands to make compiler produce verbose output that lists
6131 # what "hidden" libraries, object files and flags are used when
6132 # linking a shared library.
6133 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6134
6135 else
6136 # FIXME: insert proper C++ library support
6137 _LT_TAGVAR(ld_shlibs, $1)=no
6138 fi
6139 ;;
6140 esac
6141 ;;
6142
6143 psos*)
6144 # FIXME: insert proper C++ library support
6145 _LT_TAGVAR(ld_shlibs, $1)=no
6146 ;;
6147
6148 sunos4*)
6149 case $cc_basename in
6150 CC*)
6151 # Sun C++ 4.x
6152 # FIXME: insert proper C++ library support
6153 _LT_TAGVAR(ld_shlibs, $1)=no
6154 ;;
6155 lcc*)
6156 # Lucid
6157 # FIXME: insert proper C++ library support
6158 _LT_TAGVAR(ld_shlibs, $1)=no
6159 ;;
6160 *)
6161 # FIXME: insert proper C++ library support
6162 _LT_TAGVAR(ld_shlibs, $1)=no
6163 ;;
6164 esac
6165 ;;
6166
6167 solaris*)
6168 case $cc_basename in
6169 CC*)
6170 # Sun C++ 4.2, 5.x and Centerline C++
6171 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
6172 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6173 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6174 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6175 $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'
6176
6177 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6178 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6179 case $host_os in
6180 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6181 *)
6182 # The compiler driver will combine and reorder linker options,
6183 # but understands `-z linker_flag'.
6184 # Supported since Solaris 2.6 (maybe 2.5.1?)
6185 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6186 ;;
6187 esac
6188 _LT_TAGVAR(link_all_deplibs, $1)=yes
6189
6190 output_verbose_link_cmd='echo'
6191
6192 # Archives containing C++ object files must be created using
6193 # "CC -xar", where "CC" is the Sun C++ compiler. This is
6194 # necessary to make sure instantiated templates are included
6195 # in the archive.
6196 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6197 ;;
6198 gcx*)
6199 # Green Hills C++ Compiler
6200 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6201
6202 # The C++ compiler must be used to create the archive.
6203 _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
6204 ;;
6205 *)
6206 # GNU C++ compiler with Solaris linker
6207 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6208 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
6209 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
6210 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6211 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6212 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6213
6214 # Commands to make compiler produce verbose output that lists
6215 # what "hidden" libraries, object files and flags are used when
6216 # linking a shared library.
6217 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6218 else
6219 # g++ 2.7 appears to require `-G' NOT `-shared' on this
6220 # platform.
6221 _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6222 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6223 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6224
6225 # Commands to make compiler produce verbose output that lists
6226 # what "hidden" libraries, object files and flags are used when
6227 # linking a shared library.
6228 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6229 fi
6230
6231 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
6232 case $host_os in
6233 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6234 *)
6235 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6236 ;;
6237 esac
6238 fi
6239 ;;
6240 esac
6241 ;;
6242
6243 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6244 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6245 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6246 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6247 runpath_var='LD_RUN_PATH'
6248
6249 case $cc_basename in
6250 CC*)
6251 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6252 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6253 ;;
6254 *)
6255 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6256 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6257 ;;
6258 esac
6259 ;;
6260
6261 sysv5* | sco3.2v5* | sco5v6*)
6262 # Note: We can NOT use -z defs as we might desire, because we do not
6263 # link with -lc, and that would cause any symbols used from libc to
6264 # always be unresolved, which means just about no library would
6265 # ever link correctly. If we're not using GNU ld we use -z text
6266 # though, which does catch some bad symbols but isn't as heavy-handed
6267 # as -z defs.
6268 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6269 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6270 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6271 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6272 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
6273 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6274 _LT_TAGVAR(link_all_deplibs, $1)=yes
6275 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6276 runpath_var='LD_RUN_PATH'
6277
6278 case $cc_basename in
6279 CC*)
6280 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6281 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6282 ;;
6283 *)
6284 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6285 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6286 ;;
6287 esac
6288 ;;
6289
6290 tandem*)
6291 case $cc_basename in
6292 NCC*)
6293 # NonStop-UX NCC 3.20
6294 # FIXME: insert proper C++ library support
6295 _LT_TAGVAR(ld_shlibs, $1)=no
6296 ;;
6297 *)
6298 # FIXME: insert proper C++ library support
6299 _LT_TAGVAR(ld_shlibs, $1)=no
6300 ;;
6301 esac
6302 ;;
6303
6304 vxworks*)
6305 # FIXME: insert proper C++ library support
6306 _LT_TAGVAR(ld_shlibs, $1)=no
6307 ;;
6308
6309 *)
6310 # FIXME: insert proper C++ library support
6311 _LT_TAGVAR(ld_shlibs, $1)=no
6312 ;;
6313 esac
6314
6315 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
6316 test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6317
6318 _LT_TAGVAR(GCC, $1)="$GXX"
6319 _LT_TAGVAR(LD, $1)="$LD"
6320
6321 ## CAVEAT EMPTOR:
6322 ## There is no encapsulation within the following macros, do not change
6323 ## the running order or otherwise move them around unless you know exactly
6324 ## what you are doing...
6325 _LT_SYS_HIDDEN_LIBDEPS($1)
6326 _LT_COMPILER_PIC($1)
6327 _LT_COMPILER_C_O($1)
6328 _LT_COMPILER_FILE_LOCKS($1)
6329 _LT_LINKER_SHLIBS($1)
6330 _LT_SYS_DYNAMIC_LINKER($1)
6331 _LT_LINKER_HARDCODE_LIBPATH($1)
6332
6333 _LT_CONFIG($1)
6334 fi # test -n "$compiler"
6335
6336 CC=$lt_save_CC
6337 LDCXX=$LD
6338 LD=$lt_save_LD
6339 GCC=$lt_save_GCC
6340 with_gnu_ld=$lt_save_with_gnu_ld
6341 lt_cv_path_LDCXX=$lt_cv_path_LD
6342 lt_cv_path_LD=$lt_save_path_LD
6343 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
6344 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
6345 fi # test "$_lt_caught_CXX_error" != yes
6346
6347 AC_LANG_POP
6348 ])# _LT_LANG_CXX_CONFIG
6349
6350
6351 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
6322 # --------------------------------- 6352 # ---------------------------------
6323 AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])]) 6353 # Figure out "hidden" library dependencies from verbose
6324 6354 # compiler output when linking a shared library.
6325 6355 # Parse the compiler output and extract the necessary
6326 # old names 6356 # objects, libraries and library flags.
6327 AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL]) 6357 m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
6328 AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) 6358 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6329 AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) 6359 # Dependencies to place before and after the object being linked:
6330 AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) 6360 _LT_TAGVAR(predep_objects, $1)=
6331 AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) 6361 _LT_TAGVAR(postdep_objects, $1)=
6332 AC_DEFUN([AM_PROG_LD], [AC_PROG_LD]) 6362 _LT_TAGVAR(predeps, $1)=
6333 AC_DEFUN([AM_PROG_NM], [AC_PROG_NM]) 6363 _LT_TAGVAR(postdeps, $1)=
6334 6364 _LT_TAGVAR(compiler_lib_search_path, $1)=
6335 # This is just to silence aclocal about the macro not being used 6365
6336 ifelse([AC_DISABLE_FAST_INSTALL]) 6366 dnl we can't use the lt_simple_compile_test_code here,
6337 6367 dnl because it contains code intended for an executable,
6338 AC_DEFUN([LT_AC_PROG_GCJ], 6368 dnl not a library. It's possible we should let each
6339 [AC_CHECK_TOOL(GCJ, gcj, no) 6369 dnl tag define a new lt_????_link_test_code variable,
6340 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" 6370 dnl but it's only used here...
6341 AC_SUBST(GCJFLAGS) 6371 m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
6372 int a;
6373 void foo (void) { a = 0; }
6374 _LT_EOF
6375 ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
6376 class Foo
6377 {
6378 public:
6379 Foo (void) { a = 0; }
6380 private:
6381 int a;
6382 };
6383 _LT_EOF
6384 ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
6385 subroutine foo
6386 implicit none
6387 integer*4 a
6388 a=0
6389 return
6390 end
6391 _LT_EOF
6392 ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
6393 subroutine foo
6394 implicit none
6395 integer a
6396 a=0
6397 return
6398 end
6399 _LT_EOF
6400 ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
6401 public class foo {
6402 private int a;
6403 public void bar (void) {
6404 a = 0;
6405 }
6406 };
6407 _LT_EOF
6342 ]) 6408 ])
6343 6409 dnl Parse the compiler output and extract the necessary
6344 AC_DEFUN([LT_AC_PROG_RC], 6410 dnl objects, libraries and library flags.
6345 [AC_CHECK_TOOL(RC, windres, no) 6411 if AC_TRY_EVAL(ac_compile); then
6412 # Parse the compiler output and extract the necessary
6413 # objects, libraries and library flags.
6414
6415 # Sentinel used to keep track of whether or not we are before
6416 # the conftest object file.
6417 pre_test_object_deps_done=no
6418
6419 for p in `eval "$output_verbose_link_cmd"`; do
6420 case $p in
6421
6422 -L* | -R* | -l*)
6423 # Some compilers place space between "-{L,R}" and the path.
6424 # Remove the space.
6425 if test $p = "-L" ||
6426 test $p = "-R"; then
6427 prev=$p
6428 continue
6429 else
6430 prev=
6431 fi
6432
6433 if test "$pre_test_object_deps_done" = no; then
6434 case $p in
6435 -L* | -R*)
6436 # Internal compiler library paths should come after those
6437 # provided the user. The postdeps already come after the
6438 # user supplied libs so there is no need to process them.
6439 if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
6440 _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
6441 else
6442 _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
6443 fi
6444 ;;
6445 # The "-l" case would never come before the object being
6446 # linked, so don't bother handling this case.
6447 esac
6448 else
6449 if test -z "$_LT_TAGVAR(postdeps, $1)"; then
6450 _LT_TAGVAR(postdeps, $1)="${prev}${p}"
6451 else
6452 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
6453 fi
6454 fi
6455 ;;
6456
6457 *.$objext)
6458 # This assumes that the test object file only shows up
6459 # once in the compiler output.
6460 if test "$p" = "conftest.$objext"; then
6461 pre_test_object_deps_done=yes
6462 continue
6463 fi
6464
6465 if test "$pre_test_object_deps_done" = no; then
6466 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
6467 _LT_TAGVAR(predep_objects, $1)="$p"
6468 else
6469 _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
6470 fi
6471 else
6472 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
6473 _LT_TAGVAR(postdep_objects, $1)="$p"
6474 else
6475 _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
6476 fi
6477 fi
6478 ;;
6479
6480 *) ;; # Ignore the rest.
6481
6482 esac
6483 done
6484
6485 # Clean up.
6486 rm -f a.out a.exe
6487 else
6488 echo "libtool.m4: error: problem compiling $1 test program"
6489 fi
6490
6491 $RM -f confest.$objext
6492
6493 # PORTME: override above test on systems where it is broken
6494 m4_if([$1], [CXX],
6495 [case $host_os in
6496 interix[[3-9]]*)
6497 # Interix 3.5 installs completely hosed .la files for C++, so rather than
6498 # hack all around it, let's just trust "g++" to DTRT.
6499 _LT_TAGVAR(predep_objects,$1)=
6500 _LT_TAGVAR(postdep_objects,$1)=
6501 _LT_TAGVAR(postdeps,$1)=
6502 ;;
6503
6504 linux*)
6505 case `$CC -V 2>&1 | sed 5q` in
6506 *Sun\ C*)
6507 # Sun C++ 5.9
6508
6509 # The more standards-conforming stlport4 library is
6510 # incompatible with the Cstd library. Avoid specifying
6511 # it if it's in CXXFLAGS. Ignore libCrun as
6512 # -library=stlport4 depends on it.
6513 case " $CXX $CXXFLAGS " in
6514 *" -library=stlport4 "*)
6515 solaris_use_stlport4=yes
6516 ;;
6517 esac
6518
6519 if test "$solaris_use_stlport4" != yes; then
6520 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
6521 fi
6522 ;;
6523 esac
6524 ;;
6525
6526 solaris*)
6527 case $cc_basename in
6528 CC*)
6529 # The more standards-conforming stlport4 library is
6530 # incompatible with the Cstd library. Avoid specifying
6531 # it if it's in CXXFLAGS. Ignore libCrun as
6532 # -library=stlport4 depends on it.
6533 case " $CXX $CXXFLAGS " in
6534 *" -library=stlport4 "*)
6535 solaris_use_stlport4=yes
6536 ;;
6537 esac
6538
6539 # Adding this requires a known-good setup of shared libraries for
6540 # Sun compiler versions before 5.6, else PIC objects from an old
6541 # archive will be linked into the output, leading to subtle bugs.
6542 if test "$solaris_use_stlport4" != yes; then
6543 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
6544 fi
6545 ;;
6546 esac
6547 ;;
6548 esac
6346 ]) 6549 ])
6347 6550
6551 case " $_LT_TAGVAR(postdeps, $1) " in
6552 *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
6553 esac
6554 _LT_TAGVAR(compiler_lib_search_dirs, $1)=
6555 if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
6556 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
6557 fi
6558 _LT_TAGDECL([], [compiler_lib_search_dirs], [1],
6559 [The directories searched by this compiler when creating a shared library])
6560 _LT_TAGDECL([], [predep_objects], [1],
6561 [Dependencies to place before and after the objects being linked to
6562 create a shared library])
6563 _LT_TAGDECL([], [postdep_objects], [1])
6564 _LT_TAGDECL([], [predeps], [1])
6565 _LT_TAGDECL([], [postdeps], [1])
6566 _LT_TAGDECL([], [compiler_lib_search_path], [1],
6567 [The library search path used internally by the compiler when linking
6568 a shared library])
6569 ])# _LT_SYS_HIDDEN_LIBDEPS
6570
6571
6572 # _LT_PROG_F77
6573 # ------------
6574 # Since AC_PROG_F77 is broken, in that it returns the empty string
6575 # if there is no fortran compiler, we have our own version here.
6576 m4_defun([_LT_PROG_F77],
6577 [
6578 pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
6579 AC_PROG_F77
6580 if test -z "$F77" || test "X$F77" = "Xno"; then
6581 _lt_disable_F77=yes
6582 fi
6583 popdef([AC_MSG_ERROR])
6584 ])# _LT_PROG_F77
6585
6586 dnl aclocal-1.4 backwards compatibility:
6587 dnl AC_DEFUN([_LT_PROG_F77], [])
6588
6589
6590 # _LT_LANG_F77_CONFIG([TAG])
6591 # --------------------------
6592 # Ensure that the configuration variables for a Fortran 77 compiler are
6593 # suitably defined. These variables are subsequently used by _LT_CONFIG
6594 # to write the compiler configuration to `libtool'.
6595 m4_defun([_LT_LANG_F77_CONFIG],
6596 [AC_REQUIRE([_LT_PROG_F77])dnl
6597 AC_LANG_PUSH(Fortran 77)
6598
6599 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6600 _LT_TAGVAR(allow_undefined_flag, $1)=
6601 _LT_TAGVAR(always_export_symbols, $1)=no
6602 _LT_TAGVAR(archive_expsym_cmds, $1)=
6603 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
6604 _LT_TAGVAR(hardcode_direct, $1)=no
6605 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
6606 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6607 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6608 _LT_TAGVAR(hardcode_libdir_separator, $1)=
6609 _LT_TAGVAR(hardcode_minus_L, $1)=no
6610 _LT_TAGVAR(hardcode_automatic, $1)=no
6611 _LT_TAGVAR(inherit_rpath, $1)=no
6612 _LT_TAGVAR(module_cmds, $1)=
6613 _LT_TAGVAR(module_expsym_cmds, $1)=
6614 _LT_TAGVAR(link_all_deplibs, $1)=unknown
6615 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6616 _LT_TAGVAR(no_undefined_flag, $1)=
6617 _LT_TAGVAR(whole_archive_flag_spec, $1)=
6618 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6619
6620 # Source file extension for f77 test sources.
6621 ac_ext=f
6622
6623 # Object file extension for compiled f77 test sources.
6624 objext=o
6625 _LT_TAGVAR(objext, $1)=$objext
6626
6627 # No sense in running all these tests if we already determined that
6628 # the F77 compiler isn't working. Some variables (like enable_shared)
6629 # are currently assumed to apply to all compilers on this platform,
6630 # and will be corrupted by setting them based on a non-working compiler.
6631 if test "$_lt_disable_F77" != yes; then
6632 # Code to be used in simple compile tests
6633 lt_simple_compile_test_code="\
6634 subroutine t
6635 return
6636 end
6637 "
6638
6639 # Code to be used in simple link tests
6640 lt_simple_link_test_code="\
6641 program t
6642 end
6643 "
6644
6645 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
6646 _LT_TAG_COMPILER
6647
6648 # save warnings/boilerplate of simple test code
6649 _LT_COMPILER_BOILERPLATE
6650 _LT_LINKER_BOILERPLATE
6651
6652 # Allow CC to be a program name with arguments.
6653 lt_save_CC="$CC"
6654 lt_save_GCC=$GCC
6655 CC=${F77-"f77"}
6656 compiler=$CC
6657 _LT_TAGVAR(compiler, $1)=$CC
6658 _LT_CC_BASENAME([$compiler])
6659 GCC=$G77
6660 if test -n "$compiler"; then
6661 AC_MSG_CHECKING([if libtool supports shared libraries])
6662 AC_MSG_RESULT([$can_build_shared])
6663
6664 AC_MSG_CHECKING([whether to build shared libraries])
6665 test "$can_build_shared" = "no" && enable_shared=no
6666
6667 # On AIX, shared libraries and static libraries use the same namespace, and
6668 # are all built from PIC.
6669 case $host_os in
6670 aix3*)
6671 test "$enable_shared" = yes && enable_static=no
6672 if test -n "$RANLIB"; then
6673 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6674 postinstall_cmds='$RANLIB $lib'
6675 fi
6676 ;;
6677 aix[[4-9]]*)
6678 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6679 test "$enable_shared" = yes && enable_static=no
6680 fi
6681 ;;
6682 esac
6683 AC_MSG_RESULT([$enable_shared])
6684
6685 AC_MSG_CHECKING([whether to build static libraries])
6686 # Make sure either enable_shared or enable_static is yes.
6687 test "$enable_shared" = yes || enable_static=yes
6688 AC_MSG_RESULT([$enable_static])
6689
6690 _LT_TAGVAR(GCC, $1)="$G77"
6691 _LT_TAGVAR(LD, $1)="$LD"
6692
6693 ## CAVEAT EMPTOR:
6694 ## There is no encapsulation within the following macros, do not change
6695 ## the running order or otherwise move them around unless you know exactly
6696 ## what you are doing...
6697 _LT_COMPILER_PIC($1)
6698 _LT_COMPILER_C_O($1)
6699 _LT_COMPILER_FILE_LOCKS($1)
6700 _LT_LINKER_SHLIBS($1)
6701 _LT_SYS_DYNAMIC_LINKER($1)
6702 _LT_LINKER_HARDCODE_LIBPATH($1)
6703
6704 _LT_CONFIG($1)
6705 fi # test -n "$compiler"
6706
6707 GCC=$lt_save_GCC
6708 CC="$lt_save_CC"
6709 fi # test "$_lt_disable_F77" != yes
6710
6711 AC_LANG_POP
6712 ])# _LT_LANG_F77_CONFIG
6713
6714
6715 # _LT_PROG_FC
6716 # -----------
6717 # Since AC_PROG_FC is broken, in that it returns the empty string
6718 # if there is no fortran compiler, we have our own version here.
6719 m4_defun([_LT_PROG_FC],
6720 [
6721 pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
6722 AC_PROG_FC
6723 if test -z "$FC" || test "X$FC" = "Xno"; then
6724 _lt_disable_FC=yes
6725 fi
6726 popdef([AC_MSG_ERROR])
6727 ])# _LT_PROG_FC
6728
6729 dnl aclocal-1.4 backwards compatibility:
6730 dnl AC_DEFUN([_LT_PROG_FC], [])
6731
6732
6733 # _LT_LANG_FC_CONFIG([TAG])
6734 # -------------------------
6735 # Ensure that the configuration variables for a Fortran compiler are
6736 # suitably defined. These variables are subsequently used by _LT_CONFIG
6737 # to write the compiler configuration to `libtool'.
6738 m4_defun([_LT_LANG_FC_CONFIG],
6739 [AC_REQUIRE([_LT_PROG_FC])dnl
6740 AC_LANG_PUSH(Fortran)
6741
6742 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6743 _LT_TAGVAR(allow_undefined_flag, $1)=
6744 _LT_TAGVAR(always_export_symbols, $1)=no
6745 _LT_TAGVAR(archive_expsym_cmds, $1)=
6746 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
6747 _LT_TAGVAR(hardcode_direct, $1)=no
6748 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
6749 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6750 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6751 _LT_TAGVAR(hardcode_libdir_separator, $1)=
6752 _LT_TAGVAR(hardcode_minus_L, $1)=no
6753 _LT_TAGVAR(hardcode_automatic, $1)=no
6754 _LT_TAGVAR(inherit_rpath, $1)=no
6755 _LT_TAGVAR(module_cmds, $1)=
6756 _LT_TAGVAR(module_expsym_cmds, $1)=
6757 _LT_TAGVAR(link_all_deplibs, $1)=unknown
6758 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6759 _LT_TAGVAR(no_undefined_flag, $1)=
6760 _LT_TAGVAR(whole_archive_flag_spec, $1)=
6761 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6762
6763 # Source file extension for fc test sources.
6764 ac_ext=${ac_fc_srcext-f}
6765
6766 # Object file extension for compiled fc test sources.
6767 objext=o
6768 _LT_TAGVAR(objext, $1)=$objext
6769
6770 # No sense in running all these tests if we already determined that
6771 # the FC compiler isn't working. Some variables (like enable_shared)
6772 # are currently assumed to apply to all compilers on this platform,
6773 # and will be corrupted by setting them based on a non-working compiler.
6774 if test "$_lt_disable_FC" != yes; then
6775 # Code to be used in simple compile tests
6776 lt_simple_compile_test_code="\
6777 subroutine t
6778 return
6779 end
6780 "
6781
6782 # Code to be used in simple link tests
6783 lt_simple_link_test_code="\
6784 program t
6785 end
6786 "
6787
6788 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
6789 _LT_TAG_COMPILER
6790
6791 # save warnings/boilerplate of simple test code
6792 _LT_COMPILER_BOILERPLATE
6793 _LT_LINKER_BOILERPLATE
6794
6795 # Allow CC to be a program name with arguments.
6796 lt_save_CC="$CC"
6797 lt_save_GCC=$GCC
6798 CC=${FC-"f95"}
6799 compiler=$CC
6800 GCC=$ac_cv_fc_compiler_gnu
6801
6802 _LT_TAGVAR(compiler, $1)=$CC
6803 _LT_CC_BASENAME([$compiler])
6804
6805 if test -n "$compiler"; then
6806 AC_MSG_CHECKING([if libtool supports shared libraries])
6807 AC_MSG_RESULT([$can_build_shared])
6808
6809 AC_MSG_CHECKING([whether to build shared libraries])
6810 test "$can_build_shared" = "no" && enable_shared=no
6811
6812 # On AIX, shared libraries and static libraries use the same namespace, and
6813 # are all built from PIC.
6814 case $host_os in
6815 aix3*)
6816 test "$enable_shared" = yes && enable_static=no
6817 if test -n "$RANLIB"; then
6818 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6819 postinstall_cmds='$RANLIB $lib'
6820 fi
6821 ;;
6822 aix[[4-9]]*)
6823 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6824 test "$enable_shared" = yes && enable_static=no
6825 fi
6826 ;;
6827 esac
6828 AC_MSG_RESULT([$enable_shared])
6829
6830 AC_MSG_CHECKING([whether to build static libraries])
6831 # Make sure either enable_shared or enable_static is yes.
6832 test "$enable_shared" = yes || enable_static=yes
6833 AC_MSG_RESULT([$enable_static])
6834
6835 _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
6836 _LT_TAGVAR(LD, $1)="$LD"
6837
6838 ## CAVEAT EMPTOR:
6839 ## There is no encapsulation within the following macros, do not change
6840 ## the running order or otherwise move them around unless you know exactly
6841 ## what you are doing...
6842 _LT_SYS_HIDDEN_LIBDEPS($1)
6843 _LT_COMPILER_PIC($1)
6844 _LT_COMPILER_C_O($1)
6845 _LT_COMPILER_FILE_LOCKS($1)
6846 _LT_LINKER_SHLIBS($1)
6847 _LT_SYS_DYNAMIC_LINKER($1)
6848 _LT_LINKER_HARDCODE_LIBPATH($1)
6849
6850 _LT_CONFIG($1)
6851 fi # test -n "$compiler"
6852
6853 GCC=$lt_save_GCC
6854 CC="$lt_save_CC"
6855 fi # test "$_lt_disable_FC" != yes
6856
6857 AC_LANG_POP
6858 ])# _LT_LANG_FC_CONFIG
6859
6860
6861 # _LT_LANG_GCJ_CONFIG([TAG])
6862 # --------------------------
6863 # Ensure that the configuration variables for the GNU Java Compiler compiler
6864 # are suitably defined. These variables are subsequently used by _LT_CONFIG
6865 # to write the compiler configuration to `libtool'.
6866 m4_defun([_LT_LANG_GCJ_CONFIG],
6867 [AC_REQUIRE([LT_PROG_GCJ])dnl
6868 AC_LANG_SAVE
6869
6870 # Source file extension for Java test sources.
6871 ac_ext=java
6872
6873 # Object file extension for compiled Java test sources.
6874 objext=o
6875 _LT_TAGVAR(objext, $1)=$objext
6876
6877 # Code to be used in simple compile tests
6878 lt_simple_compile_test_code="class foo {}"
6879
6880 # Code to be used in simple link tests
6881 lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
6882
6883 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
6884 _LT_TAG_COMPILER
6885
6886 # save warnings/boilerplate of simple test code
6887 _LT_COMPILER_BOILERPLATE
6888 _LT_LINKER_BOILERPLATE
6889
6890 # Allow CC to be a program name with arguments.
6891 lt_save_CC="$CC"
6892 lt_save_GCC=$GCC
6893 GCC=yes
6894 CC=${GCJ-"gcj"}
6895 compiler=$CC
6896 _LT_TAGVAR(compiler, $1)=$CC
6897 _LT_TAGVAR(LD, $1)="$LD"
6898 _LT_CC_BASENAME([$compiler])
6899
6900 # GCJ did not exist at the time GCC didn't implicitly link libc in.
6901 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6902
6903 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6904
6905 ## CAVEAT EMPTOR:
6906 ## There is no encapsulation within the following macros, do not change
6907 ## the running order or otherwise move them around unless you know exactly
6908 ## what you are doing...
6909 if test -n "$compiler"; then
6910 _LT_COMPILER_NO_RTTI($1)
6911 _LT_COMPILER_PIC($1)
6912 _LT_COMPILER_C_O($1)
6913 _LT_COMPILER_FILE_LOCKS($1)
6914 _LT_LINKER_SHLIBS($1)
6915 _LT_LINKER_HARDCODE_LIBPATH($1)
6916
6917 _LT_CONFIG($1)
6918 fi
6919
6920 AC_LANG_RESTORE
6921
6922 GCC=$lt_save_GCC
6923 CC="$lt_save_CC"
6924 ])# _LT_LANG_GCJ_CONFIG
6925
6926
6927 # _LT_LANG_RC_CONFIG([TAG])
6928 # -------------------------
6929 # Ensure that the configuration variables for the Windows resource compiler
6930 # are suitably defined. These variables are subsequently used by _LT_CONFIG
6931 # to write the compiler configuration to `libtool'.
6932 m4_defun([_LT_LANG_RC_CONFIG],
6933 [AC_REQUIRE([LT_PROG_RC])dnl
6934 AC_LANG_SAVE
6935
6936 # Source file extension for RC test sources.
6937 ac_ext=rc
6938
6939 # Object file extension for compiled RC test sources.
6940 objext=o
6941 _LT_TAGVAR(objext, $1)=$objext
6942
6943 # Code to be used in simple compile tests
6944 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
6945
6946 # Code to be used in simple link tests
6947 lt_simple_link_test_code="$lt_simple_compile_test_code"
6948
6949 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
6950 _LT_TAG_COMPILER
6951
6952 # save warnings/boilerplate of simple test code
6953 _LT_COMPILER_BOILERPLATE
6954 _LT_LINKER_BOILERPLATE
6955
6956 # Allow CC to be a program name with arguments.
6957 lt_save_CC="$CC"
6958 lt_save_GCC=$GCC
6959 GCC=
6960 CC=${RC-"windres"}
6961 compiler=$CC
6962 _LT_TAGVAR(compiler, $1)=$CC
6963 _LT_CC_BASENAME([$compiler])
6964 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
6965
6966 if test -n "$compiler"; then
6967 :
6968 _LT_CONFIG($1)
6969 fi
6970
6971 GCC=$lt_save_GCC
6972 AC_LANG_RESTORE
6973 CC="$lt_save_CC"
6974 ])# _LT_LANG_RC_CONFIG
6975
6976
6977 # LT_PROG_GCJ
6978 # -----------
6979 AC_DEFUN([LT_PROG_GCJ],
6980 [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
6981 [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
6982 [AC_CHECK_TOOL(GCJ, gcj,)
6983 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
6984 AC_SUBST(GCJFLAGS)])])[]dnl
6985 ])
6986
6987 # Old name:
6988 AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
6989 dnl aclocal-1.4 backwards compatibility:
6990 dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
6991
6992
6993 # LT_PROG_RC
6994 # ----------
6995 AC_DEFUN([LT_PROG_RC],
6996 [AC_CHECK_TOOL(RC, windres,)
6997 ])
6998
6999 # Old name:
7000 AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
7001 dnl aclocal-1.4 backwards compatibility:
7002 dnl AC_DEFUN([LT_AC_PROG_RC], [])
7003
7004
7005 # _LT_DECL_EGREP
7006 # --------------
7007 # If we don't have a new enough Autoconf to choose the best grep
7008 # available, choose the one first in the user's PATH.
7009 m4_defun([_LT_DECL_EGREP],
7010 [AC_REQUIRE([AC_PROG_EGREP])dnl
7011 AC_REQUIRE([AC_PROG_FGREP])dnl
7012 test -z "$GREP" && GREP=grep
7013 _LT_DECL([], [GREP], [1], [A grep program that handles long lines])
7014 _LT_DECL([], [EGREP], [1], [An ERE matcher])
7015 _LT_DECL([], [FGREP], [1], [A literal string matcher])
7016 dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
7017 AC_SUBST([GREP])
7018 ])
7019
7020
7021 # _LT_DECL_OBJDUMP
7022 # --------------
7023 # If we don't have a new enough Autoconf to choose the best objdump
7024 # available, choose the one first in the user's PATH.
7025 m4_defun([_LT_DECL_OBJDUMP],
7026 [AC_CHECK_TOOL(OBJDUMP, objdump, false)
7027 test -z "$OBJDUMP" && OBJDUMP=objdump
7028 _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
7029 AC_SUBST([OBJDUMP])
7030 ])
7031
7032
7033 # _LT_DECL_SED
7034 # ------------
7035 # Check for a fully-functional sed program, that truncates
7036 # as few characters as possible. Prefer GNU sed if found.
7037 m4_defun([_LT_DECL_SED],
7038 [AC_PROG_SED
7039 test -z "$SED" && SED=sed
7040 Xsed="$SED -e 1s/^X//"
7041 _LT_DECL([], [SED], [1], [A sed program that does not truncate output])
7042 _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
7043 [Sed that helps us avoid accidentally triggering echo(1) options like -n])
7044 ])# _LT_DECL_SED
7045
7046 m4_ifndef([AC_PROG_SED], [
6348 ############################################################ 7047 ############################################################
6349 # NOTE: This macro has been submitted for inclusion into # 7048 # NOTE: This macro has been submitted for inclusion into #
6350 # GNU Autoconf as AC_PROG_SED. When it is available in # 7049 # GNU Autoconf as AC_PROG_SED. When it is available in #
6351 # a released version of Autoconf we should remove this # 7050 # a released version of Autoconf we should remove this #
6352 # macro and use it instead. # 7051 # macro and use it instead. #
6353 ############################################################ 7052 ############################################################
6354 # LT_AC_PROG_SED 7053
6355 # -------------- 7054 m4_defun([AC_PROG_SED],
6356 # Check for a fully-functional sed program, that truncates
6357 # as few characters as possible. Prefer GNU sed if found.
6358 AC_DEFUN([LT_AC_PROG_SED],
6359 [AC_MSG_CHECKING([for a sed that does not truncate output]) 7055 [AC_MSG_CHECKING([for a sed that does not truncate output])
6360 AC_CACHE_VAL(lt_cv_path_SED, 7056 AC_CACHE_VAL(lt_cv_path_SED,
6361 [# Loop through the user's path and test for sed and gsed. 7057 [# Loop through the user's path and test for sed and gsed.
6362 # Then use that list of sed's as ones to test for truncation. 7058 # Then use that list of sed's as ones to test for truncation.
6363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6371 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 7067 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6372 fi 7068 fi
6373 done 7069 done
6374 done 7070 done
6375 done 7071 done
7072 IFS=$as_save_IFS
6376 lt_ac_max=0 7073 lt_ac_max=0
6377 lt_ac_count=0 7074 lt_ac_count=0
6378 # Add /usr/xpg4/bin/sed as it is typically found on Solaris 7075 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
6379 # along with /bin/sed that truncates output. 7076 # along with /bin/sed that truncates output.
6380 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 7077 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6403 fi 7100 fi
6404 done 7101 done
6405 done 7102 done
6406 ]) 7103 ])
6407 SED=$lt_cv_path_SED 7104 SED=$lt_cv_path_SED
7105 AC_SUBST([SED])
6408 AC_MSG_RESULT([$SED]) 7106 AC_MSG_RESULT([$SED])
7107 ])#AC_PROG_SED
7108 ])#m4_ifndef
7109
7110 # Old name:
7111 AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
7112 dnl aclocal-1.4 backwards compatibility:
7113 dnl AC_DEFUN([LT_AC_PROG_SED], [])
7114
7115
7116 # _LT_CHECK_SHELL_FEATURES
7117 # ------------------------
7118 # Find out whether the shell is Bourne or XSI compatible,
7119 # or has some other useful features.
7120 m4_defun([_LT_CHECK_SHELL_FEATURES],
7121 [AC_MSG_CHECKING([whether the shell understands some XSI constructs])
7122 # Try some XSI features
7123 xsi_shell=no
7124 ( _lt_dummy="a/b/c"
7125 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7126 = c,a/b,, \
7127 && eval 'test $(( 1 + 1 )) -eq 2 \
7128 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7129 && xsi_shell=yes
7130 AC_MSG_RESULT([$xsi_shell])
7131 _LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
7132
7133 AC_MSG_CHECKING([whether the shell understands "+="])
7134 lt_shell_append=no
7135 ( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
7136 >/dev/null 2>&1 \
7137 && lt_shell_append=yes
7138 AC_MSG_RESULT([$lt_shell_append])
7139 _LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
7140
7141 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7142 lt_unset=unset
7143 else
7144 lt_unset=false
7145 fi
7146 _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
7147
7148 # test EBCDIC or ASCII
7149 case `echo X|tr X '\101'` in
7150 A) # ASCII based system
7151 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7152 lt_SP2NL='tr \040 \012'
7153 lt_NL2SP='tr \015\012 \040\040'
7154 ;;
7155 *) # EBCDIC based system
7156 lt_SP2NL='tr \100 \n'
7157 lt_NL2SP='tr \r\n \100\100'
7158 ;;
7159 esac
7160 _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
7161 _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
7162 ])# _LT_CHECK_SHELL_FEATURES
7163
7164
7165 # _LT_PROG_XSI_SHELLFNS
7166 # ---------------------
7167 # Bourne and XSI compatible variants of some useful shell functions.
7168 m4_defun([_LT_PROG_XSI_SHELLFNS],
7169 [case $xsi_shell in
7170 yes)
7171 cat << \_LT_EOF >> "$cfgfile"
7172
7173 # func_dirname file append nondir_replacement
7174 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
7175 # otherwise set result to NONDIR_REPLACEMENT.
7176 func_dirname ()
7177 {
7178 case ${1} in
7179 */*) func_dirname_result="${1%/*}${2}" ;;
7180 * ) func_dirname_result="${3}" ;;
7181 esac
7182 }
7183
7184 # func_basename file
7185 func_basename ()
7186 {
7187 func_basename_result="${1##*/}"
7188 }
7189
7190 # func_dirname_and_basename file append nondir_replacement
7191 # perform func_basename and func_dirname in a single function
7192 # call:
7193 # dirname: Compute the dirname of FILE. If nonempty,
7194 # add APPEND to the result, otherwise set result
7195 # to NONDIR_REPLACEMENT.
7196 # value returned in "$func_dirname_result"
7197 # basename: Compute filename of FILE.
7198 # value retuned in "$func_basename_result"
7199 # Implementation must be kept synchronized with func_dirname
7200 # and func_basename. For efficiency, we do not delegate to
7201 # those functions but instead duplicate the functionality here.
7202 func_dirname_and_basename ()
7203 {
7204 case ${1} in
7205 */*) func_dirname_result="${1%/*}${2}" ;;
7206 * ) func_dirname_result="${3}" ;;
7207 esac
7208 func_basename_result="${1##*/}"
7209 }
7210
7211 # func_stripname prefix suffix name
7212 # strip PREFIX and SUFFIX off of NAME.
7213 # PREFIX and SUFFIX must not contain globbing or regex special
7214 # characters, hashes, percent signs, but SUFFIX may contain a leading
7215 # dot (in which case that matches only a dot).
7216 func_stripname ()
7217 {
7218 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7219 # positional parameters, so assign one to ordinary parameter first.
7220 func_stripname_result=${3}
7221 func_stripname_result=${func_stripname_result#"${1}"}
7222 func_stripname_result=${func_stripname_result%"${2}"}
7223 }
7224
7225 # func_opt_split
7226 func_opt_split ()
7227 {
7228 func_opt_split_opt=${1%%=*}
7229 func_opt_split_arg=${1#*=}
7230 }
7231
7232 # func_lo2o object
7233 func_lo2o ()
7234 {
7235 case ${1} in
7236 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
7237 *) func_lo2o_result=${1} ;;
7238 esac
7239 }
7240
7241 # func_xform libobj-or-source
7242 func_xform ()
7243 {
7244 func_xform_result=${1%.*}.lo
7245 }
7246
7247 # func_arith arithmetic-term...
7248 func_arith ()
7249 {
7250 func_arith_result=$(( $[*] ))
7251 }
7252
7253 # func_len string
7254 # STRING may not start with a hyphen.
7255 func_len ()
7256 {
7257 func_len_result=${#1}
7258 }
7259
7260 _LT_EOF
7261 ;;
7262 *) # Bourne compatible functions.
7263 cat << \_LT_EOF >> "$cfgfile"
7264
7265 # func_dirname file append nondir_replacement
7266 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
7267 # otherwise set result to NONDIR_REPLACEMENT.
7268 func_dirname ()
7269 {
7270 # Extract subdirectory from the argument.
7271 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
7272 if test "X$func_dirname_result" = "X${1}"; then
7273 func_dirname_result="${3}"
7274 else
7275 func_dirname_result="$func_dirname_result${2}"
7276 fi
7277 }
7278
7279 # func_basename file
7280 func_basename ()
7281 {
7282 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
7283 }
7284
7285 dnl func_dirname_and_basename
7286 dnl A portable version of this function is already defined in general.m4sh
7287 dnl so there is no need for it here.
7288
7289 # func_stripname prefix suffix name
7290 # strip PREFIX and SUFFIX off of NAME.
7291 # PREFIX and SUFFIX must not contain globbing or regex special
7292 # characters, hashes, percent signs, but SUFFIX may contain a leading
7293 # dot (in which case that matches only a dot).
7294 # func_strip_suffix prefix name
7295 func_stripname ()
7296 {
7297 case ${2} in
7298 .*) func_stripname_result=`$ECHO "X${3}" \
7299 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
7300 *) func_stripname_result=`$ECHO "X${3}" \
7301 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
7302 esac
7303 }
7304
7305 # sed scripts:
7306 my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
7307 my_sed_long_arg='1s/^-[[^=]]*=//'
7308
7309 # func_opt_split
7310 func_opt_split ()
7311 {
7312 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
7313 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
7314 }
7315
7316 # func_lo2o object
7317 func_lo2o ()
7318 {
7319 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
7320 }
7321
7322 # func_xform libobj-or-source
7323 func_xform ()
7324 {
7325 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
7326 }
7327
7328 # func_arith arithmetic-term...
7329 func_arith ()
7330 {
7331 func_arith_result=`expr "$[@]"`
7332 }
7333
7334 # func_len string
7335 # STRING may not start with a hyphen.
7336 func_len ()
7337 {
7338 func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
7339 }
7340
7341 _LT_EOF
7342 esac
7343
7344 case $lt_shell_append in
7345 yes)
7346 cat << \_LT_EOF >> "$cfgfile"
7347
7348 # func_append var value
7349 # Append VALUE to the end of shell variable VAR.
7350 func_append ()
7351 {
7352 eval "$[1]+=\$[2]"
7353 }
7354 _LT_EOF
7355 ;;
7356 *)
7357 cat << \_LT_EOF >> "$cfgfile"
7358
7359 # func_append var value
7360 # Append VALUE to the end of shell variable VAR.
7361 func_append ()
7362 {
7363 eval "$[1]=\$$[1]\$[2]"
7364 }
7365
7366 _LT_EOF
7367 ;;
7368 esac
6409 ]) 7369 ])
7370