Merge lp:~kiyoka/poppler-python/no-pygtk into lp:poppler-python
- no-pygtk
- Merge into trunk
Status: | Needs review |
---|---|
Proposed branch: | lp:~kiyoka/poppler-python/no-pygtk |
Merge into: | lp:poppler-python |
Diff against target: |
9909 lines (+77/-9467) 6 files modified
Makefile.am (+4/-7) aclocal.m4 (+0/-9328) configure.ac (+13/-19) poppler.defs (+32/-56) poppler.override (+26/-52) popplermodule.c (+2/-5) |
To merge this branch: | bzr merge lp:~kiyoka/poppler-python/no-pygtk |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Poppler Python Bindings | Pending | ||
Review via email: mp+131815@code.launchpad.net |
Commit message
Description of the change
I swapped out the reliance on pygtk to pygobject, since that now contains the codegen framework used. I updated the bindings to compile with >= 0.18 by removing the pixbuf functions that poppler's removed, and thus removing the dependence on gdk. This allows using poppler-python without needing gtk and x (such as in server environments). I also updated Page.get_text to reflect the api noted in the docs.
I also modified two minor things in configure.ac and Makefile.am to reflect more modern usage (no longer passing package name/version to AC_INIT_AUTOMAKE and using AM_CPPFLAGS instead of INCLUDES). It seems these have been in autotools for a while so I haven't bumped the required versions. The configure script also succeeded if pycairo was missing, which was an error so I fixed that as well.
- 87. By Kevin Tardif
-
Added patch from alexandervdm with regards to bug #316722
- resolves resource leaks from poppler-python objects
- 88. By Kevin Tardif
Unmerged revisions
- 88. By Kevin Tardif
- 87. By Kevin Tardif
-
Added patch from alexandervdm with regards to bug #316722
- resolves resource leaks from poppler-python objects
- 86. By Kevin Tardif
-
Made configure exit if pycairo was missing
- pycairo isn't an optional requirement
- 85. By Kevin Tardif
-
Minor updates to configure.ac, Makefile.am
- swapped out AC_INIT_AUTOMAKE 2-arg form, docs say the 0-1 arg form has been
around since 1.11 or so
- swapped INCLUDES with AM_CPPFLAGS in Makefile.am, seems this has been around
for a while as well - 84. By Kevin Tardif
-
Removed dependence on pygtk, inow just relying on pyobject
- was just using pygtk for codegen (now part of pygobject), and the now removed
poppler-glib pixbuf functions - 83. By Kevin Tardif
-
Updated minimum popper version to 0.18
- 82. By Kevin Tardif
-
configure.ac now checks for pygoject codegen instead of pygtk
- 81. By Kevin Tardif
-
Fixed Page.get_text, added Page.get_
selected_ text, removed pixbuf functions - poppler 0.18 removed all pixbuf functions
- the api def for get_text matched that of get_selected_text, so fixed it - 80. By Kevin Tardif
-
Removed aclocal.m4 from repo
Preview Diff
1 | === modified file 'Makefile.am' |
2 | --- Makefile.am 2009-08-13 11:21:36 +0000 |
3 | +++ Makefile.am 2013-10-11 18:20:25 +0000 |
4 | @@ -3,15 +3,15 @@ |
5 | |
6 | SUBDIRS = demo |
7 | |
8 | -INCLUDES = $(PYTHON_INCLUDES) |
9 | +AM_CPPFLAGS = $(PYTHON_INCLUDES) |
10 | |
11 | -EXTRA_DIST = poppler.defs poppler.override |
12 | +EXTRA_DIST = poppler.defs poppler.override |
13 | |
14 | # poppler module |
15 | pyexec_LTLIBRARIES = poppler.la |
16 | poppler_la_LDFLAGS = -module -avoid-version -export-symbols-regex initpoppler |
17 | -poppler_la_CFLAGS = $(PYPOPPLER_CFLAGS) $(PYCAIRO_CFLAGS) |
18 | -poppler_la_LIBADD = $(PYPOPPLER_LIBS) |
19 | +poppler_la_CFLAGS = $(PYPOPPLER_CFLAGS) $(PYCAIRO_CFLAGS) $(PYGOBJECT_CFLAGS) |
20 | +poppler_la_LIBADD = $(PYPOPPLER_LIBS) $(PYOBJECT_LIBS) |
21 | poppler_la_SOURCES = popplermodule.c pypoppler-private.h |
22 | nodist_poppler_la_SOURCES = poppler.c |
23 | poppler.c: poppler.defs poppler.override |
24 | @@ -21,9 +21,6 @@ |
25 | (cd $(srcdir)\ |
26 | && $(PYTHON) $(CODEGEN) \ |
27 | --override $*.override \ |
28 | - --register @PYGTK_DATADIR@/pygtk/2.0/defs/gdk-types.defs \ |
29 | - --register @PYGTK_DATADIR@/pygtk/2.0/defs/pango-types.defs \ |
30 | - --register @PYGTK_DATADIR@/pygtk/2.0/defs/gtk-types.defs \ |
31 | --prefix py_$* $*.defs) > gen-$*.c \ |
32 | && cp gen-$*.c $*.c \ |
33 | && rm -f gen-$*.c |
34 | |
35 | === removed file 'aclocal.m4' |
36 | --- aclocal.m4 2010-01-10 12:49:37 +0000 |
37 | +++ aclocal.m4 1970-01-01 00:00:00 +0000 |
38 | @@ -1,9328 +0,0 @@ |
39 | -# generated automatically by aclocal 1.11 -*- Autoconf -*- |
40 | - |
41 | -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, |
42 | -# 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. |
43 | -# This file is free software; the Free Software Foundation |
44 | -# gives unlimited permission to copy and/or distribute it, |
45 | -# with or without modifications, as long as this notice is preserved. |
46 | - |
47 | -# This program is distributed in the hope that it will be useful, |
48 | -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without |
49 | -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
50 | -# PARTICULAR PURPOSE. |
51 | - |
52 | -m4_ifndef([AC_AUTOCONF_VERSION], |
53 | - [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl |
54 | -m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.64],, |
55 | -[m4_warning([this file was generated for autoconf 2.64. |
56 | -You have another version of autoconf. It may work, but is not guaranteed to. |
57 | -If you have problems, you may need to regenerate the build system entirely. |
58 | -To do so, use the procedure documented by the package, typically `autoreconf'.])]) |
59 | - |
60 | -# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- |
61 | -# |
62 | -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
63 | -# 2006, 2007, 2008 Free Software Foundation, Inc. |
64 | -# Written by Gordon Matzigkeit, 1996 |
65 | -# |
66 | -# This file is free software; the Free Software Foundation gives |
67 | -# unlimited permission to copy and/or distribute it, with or without |
68 | -# modifications, as long as this notice is preserved. |
69 | - |
70 | -m4_define([_LT_COPYING], [dnl |
71 | -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
72 | -# 2006, 2007, 2008 Free Software Foundation, Inc. |
73 | -# Written by Gordon Matzigkeit, 1996 |
74 | -# |
75 | -# This file is part of GNU Libtool. |
76 | -# |
77 | -# GNU Libtool is free software; you can redistribute it and/or |
78 | -# modify it under the terms of the GNU General Public License as |
79 | -# published by the Free Software Foundation; either version 2 of |
80 | -# the License, or (at your option) any later version. |
81 | -# |
82 | -# As a special exception to the GNU General Public License, |
83 | -# if you distribute this file as part of a program or library that |
84 | -# is built using GNU Libtool, you may include this file under the |
85 | -# same distribution terms that you use for the rest of that program. |
86 | -# |
87 | -# GNU Libtool is distributed in the hope that it will be useful, |
88 | -# but WITHOUT ANY WARRANTY; without even the implied warranty of |
89 | -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
90 | -# GNU General Public License for more details. |
91 | -# |
92 | -# You should have received a copy of the GNU General Public License |
93 | -# along with GNU Libtool; see the file COPYING. If not, a copy |
94 | -# can be downloaded from http://www.gnu.org/licenses/gpl.html, or |
95 | -# obtained by writing to the Free Software Foundation, Inc., |
96 | -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
97 | -]) |
98 | - |
99 | -# serial 56 LT_INIT |
100 | - |
101 | - |
102 | -# LT_PREREQ(VERSION) |
103 | -# ------------------ |
104 | -# Complain and exit if this libtool version is less that VERSION. |
105 | -m4_defun([LT_PREREQ], |
106 | -[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, |
107 | - [m4_default([$3], |
108 | - [m4_fatal([Libtool version $1 or higher is required], |
109 | - 63)])], |
110 | - [$2])]) |
111 | - |
112 | - |
113 | -# _LT_CHECK_BUILDDIR |
114 | -# ------------------ |
115 | -# Complain if the absolute build directory name contains unusual characters |
116 | -m4_defun([_LT_CHECK_BUILDDIR], |
117 | -[case `pwd` in |
118 | - *\ * | *\ *) |
119 | - AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; |
120 | -esac |
121 | -]) |
122 | - |
123 | - |
124 | -# LT_INIT([OPTIONS]) |
125 | -# ------------------ |
126 | -AC_DEFUN([LT_INIT], |
127 | -[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT |
128 | -AC_BEFORE([$0], [LT_LANG])dnl |
129 | -AC_BEFORE([$0], [LT_OUTPUT])dnl |
130 | -AC_BEFORE([$0], [LTDL_INIT])dnl |
131 | -m4_require([_LT_CHECK_BUILDDIR])dnl |
132 | - |
133 | -dnl Autoconf doesn't catch unexpanded LT_ macros by default: |
134 | -m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl |
135 | -m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl |
136 | -dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 |
137 | -dnl unless we require an AC_DEFUNed macro: |
138 | -AC_REQUIRE([LTOPTIONS_VERSION])dnl |
139 | -AC_REQUIRE([LTSUGAR_VERSION])dnl |
140 | -AC_REQUIRE([LTVERSION_VERSION])dnl |
141 | -AC_REQUIRE([LTOBSOLETE_VERSION])dnl |
142 | -m4_require([_LT_PROG_LTMAIN])dnl |
143 | - |
144 | -dnl Parse OPTIONS |
145 | -_LT_SET_OPTIONS([$0], [$1]) |
146 | - |
147 | -# This can be used to rebuild libtool when needed |
148 | -LIBTOOL_DEPS="$ltmain" |
149 | - |
150 | -# Always use our own libtool. |
151 | -LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
152 | -AC_SUBST(LIBTOOL)dnl |
153 | - |
154 | -_LT_SETUP |
155 | - |
156 | -# Only expand once: |
157 | -m4_define([LT_INIT]) |
158 | -])# LT_INIT |
159 | - |
160 | -# Old names: |
161 | -AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT]) |
162 | -AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT]) |
163 | -dnl aclocal-1.4 backwards compatibility: |
164 | -dnl AC_DEFUN([AC_PROG_LIBTOOL], []) |
165 | -dnl AC_DEFUN([AM_PROG_LIBTOOL], []) |
166 | - |
167 | - |
168 | -# _LT_CC_BASENAME(CC) |
169 | -# ------------------- |
170 | -# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. |
171 | -m4_defun([_LT_CC_BASENAME], |
172 | -[for cc_temp in $1""; do |
173 | - case $cc_temp in |
174 | - compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; |
175 | - distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; |
176 | - \-*) ;; |
177 | - *) break;; |
178 | - esac |
179 | -done |
180 | -cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
181 | -]) |
182 | - |
183 | - |
184 | -# _LT_FILEUTILS_DEFAULTS |
185 | -# ---------------------- |
186 | -# It is okay to use these file commands and assume they have been set |
187 | -# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'. |
188 | -m4_defun([_LT_FILEUTILS_DEFAULTS], |
189 | -[: ${CP="cp -f"} |
190 | -: ${MV="mv -f"} |
191 | -: ${RM="rm -f"} |
192 | -])# _LT_FILEUTILS_DEFAULTS |
193 | - |
194 | - |
195 | -# _LT_SETUP |
196 | -# --------- |
197 | -m4_defun([_LT_SETUP], |
198 | -[AC_REQUIRE([AC_CANONICAL_HOST])dnl |
199 | -AC_REQUIRE([AC_CANONICAL_BUILD])dnl |
200 | -_LT_DECL([], [host_alias], [0], [The host system])dnl |
201 | -_LT_DECL([], [host], [0])dnl |
202 | -_LT_DECL([], [host_os], [0])dnl |
203 | -dnl |
204 | -_LT_DECL([], [build_alias], [0], [The build system])dnl |
205 | -_LT_DECL([], [build], [0])dnl |
206 | -_LT_DECL([], [build_os], [0])dnl |
207 | -dnl |
208 | -AC_REQUIRE([AC_PROG_CC])dnl |
209 | -AC_REQUIRE([LT_PATH_LD])dnl |
210 | -AC_REQUIRE([LT_PATH_NM])dnl |
211 | -dnl |
212 | -AC_REQUIRE([AC_PROG_LN_S])dnl |
213 | -test -z "$LN_S" && LN_S="ln -s" |
214 | -_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl |
215 | -dnl |
216 | -AC_REQUIRE([LT_CMD_MAX_LEN])dnl |
217 | -_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl |
218 | -_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl |
219 | -dnl |
220 | -m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
221 | -m4_require([_LT_CHECK_SHELL_FEATURES])dnl |
222 | -m4_require([_LT_CMD_RELOAD])dnl |
223 | -m4_require([_LT_CHECK_MAGIC_METHOD])dnl |
224 | -m4_require([_LT_CMD_OLD_ARCHIVE])dnl |
225 | -m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl |
226 | - |
227 | -_LT_CONFIG_LIBTOOL_INIT([ |
228 | -# See if we are running on zsh, and set the options which allow our |
229 | -# commands through without removal of \ escapes INIT. |
230 | -if test -n "\${ZSH_VERSION+set}" ; then |
231 | - setopt NO_GLOB_SUBST |
232 | -fi |
233 | -]) |
234 | -if test -n "${ZSH_VERSION+set}" ; then |
235 | - setopt NO_GLOB_SUBST |
236 | -fi |
237 | - |
238 | -_LT_CHECK_OBJDIR |
239 | - |
240 | -m4_require([_LT_TAG_COMPILER])dnl |
241 | -_LT_PROG_ECHO_BACKSLASH |
242 | - |
243 | -case $host_os in |
244 | -aix3*) |
245 | - # AIX sometimes has problems with the GCC collect2 program. For some |
246 | - # reason, if we set the COLLECT_NAMES environment variable, the problems |
247 | - # vanish in a puff of smoke. |
248 | - if test "X${COLLECT_NAMES+set}" != Xset; then |
249 | - COLLECT_NAMES= |
250 | - export COLLECT_NAMES |
251 | - fi |
252 | - ;; |
253 | -esac |
254 | - |
255 | -# Sed substitution that helps us do robust quoting. It backslashifies |
256 | -# metacharacters that are still active within double-quoted strings. |
257 | -sed_quote_subst='s/\([["`$\\]]\)/\\\1/g' |
258 | - |
259 | -# Same as above, but do not quote variable references. |
260 | -double_quote_subst='s/\([["`\\]]\)/\\\1/g' |
261 | - |
262 | -# Sed substitution to delay expansion of an escaped shell variable in a |
263 | -# double_quote_subst'ed string. |
264 | -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
265 | - |
266 | -# Sed substitution to delay expansion of an escaped single quote. |
267 | -delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' |
268 | - |
269 | -# Sed substitution to avoid accidental globbing in evaled expressions |
270 | -no_glob_subst='s/\*/\\\*/g' |
271 | - |
272 | -# Global variables: |
273 | -ofile=libtool |
274 | -can_build_shared=yes |
275 | - |
276 | -# All known linkers require a `.a' archive for static linking (except MSVC, |
277 | -# which needs '.lib'). |
278 | -libext=a |
279 | - |
280 | -with_gnu_ld="$lt_cv_prog_gnu_ld" |
281 | - |
282 | -old_CC="$CC" |
283 | -old_CFLAGS="$CFLAGS" |
284 | - |
285 | -# Set sane defaults for various variables |
286 | -test -z "$CC" && CC=cc |
287 | -test -z "$LTCC" && LTCC=$CC |
288 | -test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
289 | -test -z "$LD" && LD=ld |
290 | -test -z "$ac_objext" && ac_objext=o |
291 | - |
292 | -_LT_CC_BASENAME([$compiler]) |
293 | - |
294 | -# Only perform the check for file, if the check method requires it |
295 | -test -z "$MAGIC_CMD" && MAGIC_CMD=file |
296 | -case $deplibs_check_method in |
297 | -file_magic*) |
298 | - if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
299 | - _LT_PATH_MAGIC |
300 | - fi |
301 | - ;; |
302 | -esac |
303 | - |
304 | -# Use C for the default configuration in the libtool script |
305 | -LT_SUPPORTED_TAG([CC]) |
306 | -_LT_LANG_C_CONFIG |
307 | -_LT_LANG_DEFAULT_CONFIG |
308 | -_LT_CONFIG_COMMANDS |
309 | -])# _LT_SETUP |
310 | - |
311 | - |
312 | -# _LT_PROG_LTMAIN |
313 | -# --------------- |
314 | -# Note that this code is called both from `configure', and `config.status' |
315 | -# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, |
316 | -# `config.status' has no value for ac_aux_dir unless we are using Automake, |
317 | -# so we pass a copy along to make sure it has a sensible value anyway. |
318 | -m4_defun([_LT_PROG_LTMAIN], |
319 | -[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl |
320 | -_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) |
321 | -ltmain="$ac_aux_dir/ltmain.sh" |
322 | -])# _LT_PROG_LTMAIN |
323 | - |
324 | - |
325 | - |
326 | -# So that we can recreate a full libtool script including additional |
327 | -# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS |
328 | -# in macros and then make a single call at the end using the `libtool' |
329 | -# label. |
330 | - |
331 | - |
332 | -# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) |
333 | -# ---------------------------------------- |
334 | -# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later. |
335 | -m4_define([_LT_CONFIG_LIBTOOL_INIT], |
336 | -[m4_ifval([$1], |
337 | - [m4_append([_LT_OUTPUT_LIBTOOL_INIT], |
338 | - [$1 |
339 | -])])]) |
340 | - |
341 | -# Initialize. |
342 | -m4_define([_LT_OUTPUT_LIBTOOL_INIT]) |
343 | - |
344 | - |
345 | -# _LT_CONFIG_LIBTOOL([COMMANDS]) |
346 | -# ------------------------------ |
347 | -# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later. |
348 | -m4_define([_LT_CONFIG_LIBTOOL], |
349 | -[m4_ifval([$1], |
350 | - [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS], |
351 | - [$1 |
352 | -])])]) |
353 | - |
354 | -# Initialize. |
355 | -m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS]) |
356 | - |
357 | - |
358 | -# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS]) |
359 | -# ----------------------------------------------------- |
360 | -m4_defun([_LT_CONFIG_SAVE_COMMANDS], |
361 | -[_LT_CONFIG_LIBTOOL([$1]) |
362 | -_LT_CONFIG_LIBTOOL_INIT([$2]) |
363 | -]) |
364 | - |
365 | - |
366 | -# _LT_FORMAT_COMMENT([COMMENT]) |
367 | -# ----------------------------- |
368 | -# Add leading comment marks to the start of each line, and a trailing |
369 | -# full-stop to the whole comment if one is not present already. |
370 | -m4_define([_LT_FORMAT_COMMENT], |
371 | -[m4_ifval([$1], [ |
372 | -m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])], |
373 | - [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.]) |
374 | -)]) |
375 | - |
376 | - |
377 | - |
378 | - |
379 | - |
380 | -# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?]) |
381 | -# ------------------------------------------------------------------- |
382 | -# CONFIGNAME is the name given to the value in the libtool script. |
383 | -# VARNAME is the (base) name used in the configure script. |
384 | -# VALUE may be 0, 1 or 2 for a computed quote escaped value based on |
385 | -# VARNAME. Any other value will be used directly. |
386 | -m4_define([_LT_DECL], |
387 | -[lt_if_append_uniq([lt_decl_varnames], [$2], [, ], |
388 | - [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name], |
389 | - [m4_ifval([$1], [$1], [$2])]) |
390 | - lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3]) |
391 | - m4_ifval([$4], |
392 | - [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])]) |
393 | - lt_dict_add_subkey([lt_decl_dict], [$2], |
394 | - [tagged?], [m4_ifval([$5], [yes], [no])])]) |
395 | -]) |
396 | - |
397 | - |
398 | -# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION]) |
399 | -# -------------------------------------------------------- |
400 | -m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])]) |
401 | - |
402 | - |
403 | -# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...]) |
404 | -# ------------------------------------------------ |
405 | -m4_define([lt_decl_tag_varnames], |
406 | -[_lt_decl_filter([tagged?], [yes], $@)]) |
407 | - |
408 | - |
409 | -# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..]) |
410 | -# --------------------------------------------------------- |
411 | -m4_define([_lt_decl_filter], |
412 | -[m4_case([$#], |
413 | - [0], [m4_fatal([$0: too few arguments: $#])], |
414 | - [1], [m4_fatal([$0: too few arguments: $#: $1])], |
415 | - [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)], |
416 | - [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)], |
417 | - [lt_dict_filter([lt_decl_dict], $@)])[]dnl |
418 | -]) |
419 | - |
420 | - |
421 | -# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...]) |
422 | -# -------------------------------------------------- |
423 | -m4_define([lt_decl_quote_varnames], |
424 | -[_lt_decl_filter([value], [1], $@)]) |
425 | - |
426 | - |
427 | -# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...]) |
428 | -# --------------------------------------------------- |
429 | -m4_define([lt_decl_dquote_varnames], |
430 | -[_lt_decl_filter([value], [2], $@)]) |
431 | - |
432 | - |
433 | -# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...]) |
434 | -# --------------------------------------------------- |
435 | -m4_define([lt_decl_varnames_tagged], |
436 | -[m4_assert([$# <= 2])dnl |
437 | -_$0(m4_quote(m4_default([$1], [[, ]])), |
438 | - m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]), |
439 | - m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))]) |
440 | -m4_define([_lt_decl_varnames_tagged], |
441 | -[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])]) |
442 | - |
443 | - |
444 | -# lt_decl_all_varnames([SEPARATOR], [VARNAME1...]) |
445 | -# ------------------------------------------------ |
446 | -m4_define([lt_decl_all_varnames], |
447 | -[_$0(m4_quote(m4_default([$1], [[, ]])), |
448 | - m4_if([$2], [], |
449 | - m4_quote(lt_decl_varnames), |
450 | - m4_quote(m4_shift($@))))[]dnl |
451 | -]) |
452 | -m4_define([_lt_decl_all_varnames], |
453 | -[lt_join($@, lt_decl_varnames_tagged([$1], |
454 | - lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl |
455 | -]) |
456 | - |
457 | - |
458 | -# _LT_CONFIG_STATUS_DECLARE([VARNAME]) |
459 | -# ------------------------------------ |
460 | -# Quote a variable value, and forward it to `config.status' so that its |
461 | -# declaration there will have the same value as in `configure'. VARNAME |
462 | -# must have a single quote delimited value for this to work. |
463 | -m4_define([_LT_CONFIG_STATUS_DECLARE], |
464 | -[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`']) |
465 | - |
466 | - |
467 | -# _LT_CONFIG_STATUS_DECLARATIONS |
468 | -# ------------------------------ |
469 | -# We delimit libtool config variables with single quotes, so when |
470 | -# we write them to config.status, we have to be sure to quote all |
471 | -# embedded single quotes properly. In configure, this macro expands |
472 | -# each variable declared with _LT_DECL (and _LT_TAGDECL) into: |
473 | -# |
474 | -# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`' |
475 | -m4_defun([_LT_CONFIG_STATUS_DECLARATIONS], |
476 | -[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), |
477 | - [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) |
478 | - |
479 | - |
480 | -# _LT_LIBTOOL_TAGS |
481 | -# ---------------- |
482 | -# Output comment and list of tags supported by the script |
483 | -m4_defun([_LT_LIBTOOL_TAGS], |
484 | -[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl |
485 | -available_tags="_LT_TAGS"dnl |
486 | -]) |
487 | - |
488 | - |
489 | -# _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) |
490 | -# ----------------------------------- |
491 | -# Extract the dictionary values for VARNAME (optionally with TAG) and |
492 | -# expand to a commented shell variable setting: |
493 | -# |
494 | -# # Some comment about what VAR is for. |
495 | -# visible_name=$lt_internal_name |
496 | -m4_define([_LT_LIBTOOL_DECLARE], |
497 | -[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], |
498 | - [description])))[]dnl |
499 | -m4_pushdef([_libtool_name], |
500 | - m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl |
501 | -m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])), |
502 | - [0], [_libtool_name=[$]$1], |
503 | - [1], [_libtool_name=$lt_[]$1], |
504 | - [2], [_libtool_name=$lt_[]$1], |
505 | - [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl |
506 | -m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl |
507 | -]) |
508 | - |
509 | - |
510 | -# _LT_LIBTOOL_CONFIG_VARS |
511 | -# ----------------------- |
512 | -# Produce commented declarations of non-tagged libtool config variables |
513 | -# suitable for insertion in the LIBTOOL CONFIG section of the `libtool' |
514 | -# script. Tagged libtool config variables (even for the LIBTOOL CONFIG |
515 | -# section) are produced by _LT_LIBTOOL_TAG_VARS. |
516 | -m4_defun([_LT_LIBTOOL_CONFIG_VARS], |
517 | -[m4_foreach([_lt_var], |
518 | - m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)), |
519 | - [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])]) |
520 | - |
521 | - |
522 | -# _LT_LIBTOOL_TAG_VARS(TAG) |
523 | -# ------------------------- |
524 | -m4_define([_LT_LIBTOOL_TAG_VARS], |
525 | -[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames), |
526 | - [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])]) |
527 | - |
528 | - |
529 | -# _LT_TAGVAR(VARNAME, [TAGNAME]) |
530 | -# ------------------------------ |
531 | -m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])]) |
532 | - |
533 | - |
534 | -# _LT_CONFIG_COMMANDS |
535 | -# ------------------- |
536 | -# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of |
537 | -# variables for single and double quote escaping we saved from calls |
538 | -# to _LT_DECL, we can put quote escaped variables declarations |
539 | -# into `config.status', and then the shell code to quote escape them in |
540 | -# for loops in `config.status'. Finally, any additional code accumulated |
541 | -# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. |
542 | -m4_defun([_LT_CONFIG_COMMANDS], |
543 | -[AC_PROVIDE_IFELSE([LT_OUTPUT], |
544 | - dnl If the libtool generation code has been placed in $CONFIG_LT, |
545 | - dnl instead of duplicating it all over again into config.status, |
546 | - dnl then we will have config.status run $CONFIG_LT later, so it |
547 | - dnl needs to know what name is stored there: |
548 | - [AC_CONFIG_COMMANDS([libtool], |
549 | - [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])], |
550 | - dnl If the libtool generation code is destined for config.status, |
551 | - dnl expand the accumulated commands and init code now: |
552 | - [AC_CONFIG_COMMANDS([libtool], |
553 | - [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])]) |
554 | -])#_LT_CONFIG_COMMANDS |
555 | - |
556 | - |
557 | -# Initialize. |
558 | -m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT], |
559 | -[ |
560 | - |
561 | -# The HP-UX ksh and POSIX shell print the target directory to stdout |
562 | -# if CDPATH is set. |
563 | -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
564 | - |
565 | -sed_quote_subst='$sed_quote_subst' |
566 | -double_quote_subst='$double_quote_subst' |
567 | -delay_variable_subst='$delay_variable_subst' |
568 | -_LT_CONFIG_STATUS_DECLARATIONS |
569 | -LTCC='$LTCC' |
570 | -LTCFLAGS='$LTCFLAGS' |
571 | -compiler='$compiler_DEFAULT' |
572 | - |
573 | -# Quote evaled strings. |
574 | -for var in lt_decl_all_varnames([[ \ |
575 | -]], lt_decl_quote_varnames); do |
576 | - case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in |
577 | - *[[\\\\\\\`\\"\\\$]]*) |
578 | - eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
579 | - ;; |
580 | - *) |
581 | - eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
582 | - ;; |
583 | - esac |
584 | -done |
585 | - |
586 | -# Double-quote double-evaled strings. |
587 | -for var in lt_decl_all_varnames([[ \ |
588 | -]], lt_decl_dquote_varnames); do |
589 | - case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in |
590 | - *[[\\\\\\\`\\"\\\$]]*) |
591 | - eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
592 | - ;; |
593 | - *) |
594 | - eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
595 | - ;; |
596 | - esac |
597 | -done |
598 | - |
599 | -# Fix-up fallback echo if it was mangled by the above quoting rules. |
600 | -case \$lt_ECHO in |
601 | -*'\\\[$]0 --fallback-echo"')dnl " |
602 | - lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\` |
603 | - ;; |
604 | -esac |
605 | - |
606 | -_LT_OUTPUT_LIBTOOL_INIT |
607 | -]) |
608 | - |
609 | - |
610 | -# LT_OUTPUT |
611 | -# --------- |
612 | -# This macro allows early generation of the libtool script (before |
613 | -# AC_OUTPUT is called), incase it is used in configure for compilation |
614 | -# tests. |
615 | -AC_DEFUN([LT_OUTPUT], |
616 | -[: ${CONFIG_LT=./config.lt} |
617 | -AC_MSG_NOTICE([creating $CONFIG_LT]) |
618 | -cat >"$CONFIG_LT" <<_LTEOF |
619 | -#! $SHELL |
620 | -# Generated by $as_me. |
621 | -# Run this file to recreate a libtool stub with the current configuration. |
622 | - |
623 | -lt_cl_silent=false |
624 | -SHELL=\${CONFIG_SHELL-$SHELL} |
625 | -_LTEOF |
626 | - |
627 | -cat >>"$CONFIG_LT" <<\_LTEOF |
628 | -AS_SHELL_SANITIZE |
629 | -_AS_PREPARE |
630 | - |
631 | -exec AS_MESSAGE_FD>&1 |
632 | -exec AS_MESSAGE_LOG_FD>>config.log |
633 | -{ |
634 | - echo |
635 | - AS_BOX([Running $as_me.]) |
636 | -} >&AS_MESSAGE_LOG_FD |
637 | - |
638 | -lt_cl_help="\ |
639 | -\`$as_me' creates a local libtool stub from the current configuration, |
640 | -for use in further configure time tests before the real libtool is |
641 | -generated. |
642 | - |
643 | -Usage: $[0] [[OPTIONS]] |
644 | - |
645 | - -h, --help print this help, then exit |
646 | - -V, --version print version number, then exit |
647 | - -q, --quiet do not print progress messages |
648 | - -d, --debug don't remove temporary files |
649 | - |
650 | -Report bugs to <bug-libtool@gnu.org>." |
651 | - |
652 | -lt_cl_version="\ |
653 | -m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl |
654 | -m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) |
655 | -configured by $[0], generated by m4_PACKAGE_STRING. |
656 | - |
657 | -Copyright (C) 2008 Free Software Foundation, Inc. |
658 | -This config.lt script is free software; the Free Software Foundation |
659 | -gives unlimited permision to copy, distribute and modify it." |
660 | - |
661 | -while test $[#] != 0 |
662 | -do |
663 | - case $[1] in |
664 | - --version | --v* | -V ) |
665 | - echo "$lt_cl_version"; exit 0 ;; |
666 | - --help | --h* | -h ) |
667 | - echo "$lt_cl_help"; exit 0 ;; |
668 | - --debug | --d* | -d ) |
669 | - debug=: ;; |
670 | - --quiet | --q* | --silent | --s* | -q ) |
671 | - lt_cl_silent=: ;; |
672 | - |
673 | - -*) AC_MSG_ERROR([unrecognized option: $[1] |
674 | -Try \`$[0] --help' for more information.]) ;; |
675 | - |
676 | - *) AC_MSG_ERROR([unrecognized argument: $[1] |
677 | -Try \`$[0] --help' for more information.]) ;; |
678 | - esac |
679 | - shift |
680 | -done |
681 | - |
682 | -if $lt_cl_silent; then |
683 | - exec AS_MESSAGE_FD>/dev/null |
684 | -fi |
685 | -_LTEOF |
686 | - |
687 | -cat >>"$CONFIG_LT" <<_LTEOF |
688 | -_LT_OUTPUT_LIBTOOL_COMMANDS_INIT |
689 | -_LTEOF |
690 | - |
691 | -cat >>"$CONFIG_LT" <<\_LTEOF |
692 | -AC_MSG_NOTICE([creating $ofile]) |
693 | -_LT_OUTPUT_LIBTOOL_COMMANDS |
694 | -AS_EXIT(0) |
695 | -_LTEOF |
696 | -chmod +x "$CONFIG_LT" |
697 | - |
698 | -# configure is writing to config.log, but config.lt does its own redirection, |
699 | -# appending to config.log, which fails on DOS, as config.log is still kept |
700 | -# open by configure. Here we exec the FD to /dev/null, effectively closing |
701 | -# config.log, so it can be properly (re)opened and appended to by config.lt. |
702 | -if test "$no_create" != yes; then |
703 | - lt_cl_success=: |
704 | - test "$silent" = yes && |
705 | - lt_config_lt_args="$lt_config_lt_args --quiet" |
706 | - exec AS_MESSAGE_LOG_FD>/dev/null |
707 | - $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false |
708 | - exec AS_MESSAGE_LOG_FD>>config.log |
709 | - $lt_cl_success || AS_EXIT(1) |
710 | -fi |
711 | -])# LT_OUTPUT |
712 | - |
713 | - |
714 | -# _LT_CONFIG(TAG) |
715 | -# --------------- |
716 | -# If TAG is the built-in tag, create an initial libtool script with a |
717 | -# default configuration from the untagged config vars. Otherwise add code |
718 | -# to config.status for appending the configuration named by TAG from the |
719 | -# matching tagged config vars. |
720 | -m4_defun([_LT_CONFIG], |
721 | -[m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
722 | -_LT_CONFIG_SAVE_COMMANDS([ |
723 | - m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl |
724 | - m4_if(_LT_TAG, [C], [ |
725 | - # See if we are running on zsh, and set the options which allow our |
726 | - # commands through without removal of \ escapes. |
727 | - if test -n "${ZSH_VERSION+set}" ; then |
728 | - setopt NO_GLOB_SUBST |
729 | - fi |
730 | - |
731 | - cfgfile="${ofile}T" |
732 | - trap "$RM \"$cfgfile\"; exit 1" 1 2 15 |
733 | - $RM "$cfgfile" |
734 | - |
735 | - cat <<_LT_EOF >> "$cfgfile" |
736 | -#! $SHELL |
737 | - |
738 | -# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
739 | -# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
740 | -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
741 | -# NOTE: Changes made to this file will be lost: look at ltmain.sh. |
742 | -# |
743 | -_LT_COPYING |
744 | -_LT_LIBTOOL_TAGS |
745 | - |
746 | -# ### BEGIN LIBTOOL CONFIG |
747 | -_LT_LIBTOOL_CONFIG_VARS |
748 | -_LT_LIBTOOL_TAG_VARS |
749 | -# ### END LIBTOOL CONFIG |
750 | - |
751 | -_LT_EOF |
752 | - |
753 | - case $host_os in |
754 | - aix3*) |
755 | - cat <<\_LT_EOF >> "$cfgfile" |
756 | -# AIX sometimes has problems with the GCC collect2 program. For some |
757 | -# reason, if we set the COLLECT_NAMES environment variable, the problems |
758 | -# vanish in a puff of smoke. |
759 | -if test "X${COLLECT_NAMES+set}" != Xset; then |
760 | - COLLECT_NAMES= |
761 | - export COLLECT_NAMES |
762 | -fi |
763 | -_LT_EOF |
764 | - ;; |
765 | - esac |
766 | - |
767 | - _LT_PROG_LTMAIN |
768 | - |
769 | - # We use sed instead of cat because bash on DJGPP gets confused if |
770 | - # if finds mixed CR/LF and LF-only lines. Since sed operates in |
771 | - # text mode, it properly converts lines to CR/LF. This bash problem |
772 | - # is reportedly fixed, but why not run on old versions too? |
773 | - sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ |
774 | - || (rm -f "$cfgfile"; exit 1) |
775 | - |
776 | - _LT_PROG_XSI_SHELLFNS |
777 | - |
778 | - sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ |
779 | - || (rm -f "$cfgfile"; exit 1) |
780 | - |
781 | - mv -f "$cfgfile" "$ofile" || |
782 | - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
783 | - chmod +x "$ofile" |
784 | -], |
785 | -[cat <<_LT_EOF >> "$ofile" |
786 | - |
787 | -dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded |
788 | -dnl in a comment (ie after a #). |
789 | -# ### BEGIN LIBTOOL TAG CONFIG: $1 |
790 | -_LT_LIBTOOL_TAG_VARS(_LT_TAG) |
791 | -# ### END LIBTOOL TAG CONFIG: $1 |
792 | -_LT_EOF |
793 | -])dnl /m4_if |
794 | -], |
795 | -[m4_if([$1], [], [ |
796 | - PACKAGE='$PACKAGE' |
797 | - VERSION='$VERSION' |
798 | - TIMESTAMP='$TIMESTAMP' |
799 | - RM='$RM' |
800 | - ofile='$ofile'], []) |
801 | -])dnl /_LT_CONFIG_SAVE_COMMANDS |
802 | -])# _LT_CONFIG |
803 | - |
804 | - |
805 | -# LT_SUPPORTED_TAG(TAG) |
806 | -# --------------------- |
807 | -# Trace this macro to discover what tags are supported by the libtool |
808 | -# --tag option, using: |
809 | -# autoconf --trace 'LT_SUPPORTED_TAG:$1' |
810 | -AC_DEFUN([LT_SUPPORTED_TAG], []) |
811 | - |
812 | - |
813 | -# C support is built-in for now |
814 | -m4_define([_LT_LANG_C_enabled], []) |
815 | -m4_define([_LT_TAGS], []) |
816 | - |
817 | - |
818 | -# LT_LANG(LANG) |
819 | -# ------------- |
820 | -# Enable libtool support for the given language if not already enabled. |
821 | -AC_DEFUN([LT_LANG], |
822 | -[AC_BEFORE([$0], [LT_OUTPUT])dnl |
823 | -m4_case([$1], |
824 | - [C], [_LT_LANG(C)], |
825 | - [C++], [_LT_LANG(CXX)], |
826 | - [Java], [_LT_LANG(GCJ)], |
827 | - [Fortran 77], [_LT_LANG(F77)], |
828 | - [Fortran], [_LT_LANG(FC)], |
829 | - [Windows Resource], [_LT_LANG(RC)], |
830 | - [m4_ifdef([_LT_LANG_]$1[_CONFIG], |
831 | - [_LT_LANG($1)], |
832 | - [m4_fatal([$0: unsupported language: "$1"])])])dnl |
833 | -])# LT_LANG |
834 | - |
835 | - |
836 | -# _LT_LANG(LANGNAME) |
837 | -# ------------------ |
838 | -m4_defun([_LT_LANG], |
839 | -[m4_ifdef([_LT_LANG_]$1[_enabled], [], |
840 | - [LT_SUPPORTED_TAG([$1])dnl |
841 | - m4_append([_LT_TAGS], [$1 ])dnl |
842 | - m4_define([_LT_LANG_]$1[_enabled], [])dnl |
843 | - _LT_LANG_$1_CONFIG($1)])dnl |
844 | -])# _LT_LANG |
845 | - |
846 | - |
847 | -# _LT_LANG_DEFAULT_CONFIG |
848 | -# ----------------------- |
849 | -m4_defun([_LT_LANG_DEFAULT_CONFIG], |
850 | -[AC_PROVIDE_IFELSE([AC_PROG_CXX], |
851 | - [LT_LANG(CXX)], |
852 | - [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])]) |
853 | - |
854 | -AC_PROVIDE_IFELSE([AC_PROG_F77], |
855 | - [LT_LANG(F77)], |
856 | - [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])]) |
857 | - |
858 | -AC_PROVIDE_IFELSE([AC_PROG_FC], |
859 | - [LT_LANG(FC)], |
860 | - [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])]) |
861 | - |
862 | -dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal |
863 | -dnl pulling things in needlessly. |
864 | -AC_PROVIDE_IFELSE([AC_PROG_GCJ], |
865 | - [LT_LANG(GCJ)], |
866 | - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], |
867 | - [LT_LANG(GCJ)], |
868 | - [AC_PROVIDE_IFELSE([LT_PROG_GCJ], |
869 | - [LT_LANG(GCJ)], |
870 | - [m4_ifdef([AC_PROG_GCJ], |
871 | - [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])]) |
872 | - m4_ifdef([A][M_PROG_GCJ], |
873 | - [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) |
874 | - m4_ifdef([LT_PROG_GCJ], |
875 | - [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) |
876 | - |
877 | -AC_PROVIDE_IFELSE([LT_PROG_RC], |
878 | - [LT_LANG(RC)], |
879 | - [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) |
880 | -])# _LT_LANG_DEFAULT_CONFIG |
881 | - |
882 | -# Obsolete macros: |
883 | -AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) |
884 | -AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) |
885 | -AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) |
886 | -AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) |
887 | -dnl aclocal-1.4 backwards compatibility: |
888 | -dnl AC_DEFUN([AC_LIBTOOL_CXX], []) |
889 | -dnl AC_DEFUN([AC_LIBTOOL_F77], []) |
890 | -dnl AC_DEFUN([AC_LIBTOOL_FC], []) |
891 | -dnl AC_DEFUN([AC_LIBTOOL_GCJ], []) |
892 | - |
893 | - |
894 | -# _LT_TAG_COMPILER |
895 | -# ---------------- |
896 | -m4_defun([_LT_TAG_COMPILER], |
897 | -[AC_REQUIRE([AC_PROG_CC])dnl |
898 | - |
899 | -_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl |
900 | -_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl |
901 | -_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl |
902 | -_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl |
903 | - |
904 | -# If no C compiler was specified, use CC. |
905 | -LTCC=${LTCC-"$CC"} |
906 | - |
907 | -# If no C compiler flags were specified, use CFLAGS. |
908 | -LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
909 | - |
910 | -# Allow CC to be a program name with arguments. |
911 | -compiler=$CC |
912 | -])# _LT_TAG_COMPILER |
913 | - |
914 | - |
915 | -# _LT_COMPILER_BOILERPLATE |
916 | -# ------------------------ |
917 | -# Check for compiler boilerplate output or warnings with |
918 | -# the simple compiler test code. |
919 | -m4_defun([_LT_COMPILER_BOILERPLATE], |
920 | -[m4_require([_LT_DECL_SED])dnl |
921 | -ac_outfile=conftest.$ac_objext |
922 | -echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
923 | -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
924 | -_lt_compiler_boilerplate=`cat conftest.err` |
925 | -$RM conftest* |
926 | -])# _LT_COMPILER_BOILERPLATE |
927 | - |
928 | - |
929 | -# _LT_LINKER_BOILERPLATE |
930 | -# ---------------------- |
931 | -# Check for linker boilerplate output or warnings with |
932 | -# the simple link test code. |
933 | -m4_defun([_LT_LINKER_BOILERPLATE], |
934 | -[m4_require([_LT_DECL_SED])dnl |
935 | -ac_outfile=conftest.$ac_objext |
936 | -echo "$lt_simple_link_test_code" >conftest.$ac_ext |
937 | -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
938 | -_lt_linker_boilerplate=`cat conftest.err` |
939 | -$RM -r conftest* |
940 | -])# _LT_LINKER_BOILERPLATE |
941 | - |
942 | -# _LT_REQUIRED_DARWIN_CHECKS |
943 | -# ------------------------- |
944 | -m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[ |
945 | - case $host_os in |
946 | - rhapsody* | darwin*) |
947 | - AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) |
948 | - AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) |
949 | - AC_CHECK_TOOL([LIPO], [lipo], [:]) |
950 | - AC_CHECK_TOOL([OTOOL], [otool], [:]) |
951 | - AC_CHECK_TOOL([OTOOL64], [otool64], [:]) |
952 | - _LT_DECL([], [DSYMUTIL], [1], |
953 | - [Tool to manipulate archived DWARF debug symbol files on Mac OS X]) |
954 | - _LT_DECL([], [NMEDIT], [1], |
955 | - [Tool to change global to local symbols on Mac OS X]) |
956 | - _LT_DECL([], [LIPO], [1], |
957 | - [Tool to manipulate fat objects and archives on Mac OS X]) |
958 | - _LT_DECL([], [OTOOL], [1], |
959 | - [ldd/readelf like tool for Mach-O binaries on Mac OS X]) |
960 | - _LT_DECL([], [OTOOL64], [1], |
961 | - [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4]) |
962 | - |
963 | - AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], |
964 | - [lt_cv_apple_cc_single_mod=no |
965 | - if test -z "${LT_MULTI_MODULE}"; then |
966 | - # By default we will add the -single_module flag. You can override |
967 | - # by either setting the environment variable LT_MULTI_MODULE |
968 | - # non-empty at configure time, or by adding -multi_module to the |
969 | - # link flags. |
970 | - rm -rf libconftest.dylib* |
971 | - echo "int foo(void){return 1;}" > conftest.c |
972 | - echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
973 | --dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD |
974 | - $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
975 | - -dynamiclib -Wl,-single_module conftest.c 2>conftest.err |
976 | - _lt_result=$? |
977 | - if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then |
978 | - lt_cv_apple_cc_single_mod=yes |
979 | - else |
980 | - cat conftest.err >&AS_MESSAGE_LOG_FD |
981 | - fi |
982 | - rm -rf libconftest.dylib* |
983 | - rm -f conftest.* |
984 | - fi]) |
985 | - AC_CACHE_CHECK([for -exported_symbols_list linker flag], |
986 | - [lt_cv_ld_exported_symbols_list], |
987 | - [lt_cv_ld_exported_symbols_list=no |
988 | - save_LDFLAGS=$LDFLAGS |
989 | - echo "_main" > conftest.sym |
990 | - LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" |
991 | - AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], |
992 | - [lt_cv_ld_exported_symbols_list=yes], |
993 | - [lt_cv_ld_exported_symbols_list=no]) |
994 | - LDFLAGS="$save_LDFLAGS" |
995 | - ]) |
996 | - case $host_os in |
997 | - rhapsody* | darwin1.[[012]]) |
998 | - _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; |
999 | - darwin1.*) |
1000 | - _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
1001 | - darwin*) # darwin 5.x on |
1002 | - # if running on 10.5 or later, the deployment target defaults |
1003 | - # to the OS version, if on x86, and 10.4, the deployment |
1004 | - # target defaults to 10.4. Don't you love it? |
1005 | - case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in |
1006 | - 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) |
1007 | - _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
1008 | - 10.[[012]]*) |
1009 | - _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
1010 | - 10.*) |
1011 | - _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
1012 | - esac |
1013 | - ;; |
1014 | - esac |
1015 | - if test "$lt_cv_apple_cc_single_mod" = "yes"; then |
1016 | - _lt_dar_single_mod='$single_module' |
1017 | - fi |
1018 | - if test "$lt_cv_ld_exported_symbols_list" = "yes"; then |
1019 | - _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' |
1020 | - else |
1021 | - _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' |
1022 | - fi |
1023 | - if test "$DSYMUTIL" != ":"; then |
1024 | - _lt_dsymutil='~$DSYMUTIL $lib || :' |
1025 | - else |
1026 | - _lt_dsymutil= |
1027 | - fi |
1028 | - ;; |
1029 | - esac |
1030 | -]) |
1031 | - |
1032 | - |
1033 | -# _LT_DARWIN_LINKER_FEATURES |
1034 | -# -------------------------- |
1035 | -# Checks for linker and compiler features on darwin |
1036 | -m4_defun([_LT_DARWIN_LINKER_FEATURES], |
1037 | -[ |
1038 | - m4_require([_LT_REQUIRED_DARWIN_CHECKS]) |
1039 | - _LT_TAGVAR(archive_cmds_need_lc, $1)=no |
1040 | - _LT_TAGVAR(hardcode_direct, $1)=no |
1041 | - _LT_TAGVAR(hardcode_automatic, $1)=yes |
1042 | - _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
1043 | - _LT_TAGVAR(whole_archive_flag_spec, $1)='' |
1044 | - _LT_TAGVAR(link_all_deplibs, $1)=yes |
1045 | - _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined" |
1046 | - case $cc_basename in |
1047 | - ifort*) _lt_dar_can_shared=yes ;; |
1048 | - *) _lt_dar_can_shared=$GCC ;; |
1049 | - esac |
1050 | - if test "$_lt_dar_can_shared" = "yes"; then |
1051 | - output_verbose_link_cmd=echo |
1052 | - _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}" |
1053 | - _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
1054 | - _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}" |
1055 | - _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}" |
1056 | - m4_if([$1], [CXX], |
1057 | -[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then |
1058 | - _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}" |
1059 | - _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}" |
1060 | - fi |
1061 | -],[]) |
1062 | - else |
1063 | - _LT_TAGVAR(ld_shlibs, $1)=no |
1064 | - fi |
1065 | -]) |
1066 | - |
1067 | -# _LT_SYS_MODULE_PATH_AIX |
1068 | -# ----------------------- |
1069 | -# Links a minimal program and checks the executable |
1070 | -# for the system default hardcoded library path. In most cases, |
1071 | -# this is /usr/lib:/lib, but when the MPI compilers are used |
1072 | -# the location of the communication and MPI libs are included too. |
1073 | -# If we don't find anything, use the default library path according |
1074 | -# to the aix ld manual. |
1075 | -m4_defun([_LT_SYS_MODULE_PATH_AIX], |
1076 | -[m4_require([_LT_DECL_SED])dnl |
1077 | -AC_LINK_IFELSE(AC_LANG_PROGRAM,[ |
1078 | -lt_aix_libpath_sed=' |
1079 | - /Import File Strings/,/^$/ { |
1080 | - /^0/ { |
1081 | - s/^0 *\(.*\)$/\1/ |
1082 | - p |
1083 | - } |
1084 | - }' |
1085 | -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
1086 | -# Check for a 64-bit object if we didn't find anything. |
1087 | -if test -z "$aix_libpath"; then |
1088 | - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
1089 | -fi],[]) |
1090 | -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
1091 | -])# _LT_SYS_MODULE_PATH_AIX |
1092 | - |
1093 | - |
1094 | -# _LT_SHELL_INIT(ARG) |
1095 | -# ------------------- |
1096 | -m4_define([_LT_SHELL_INIT], |
1097 | -[ifdef([AC_DIVERSION_NOTICE], |
1098 | - [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], |
1099 | - [AC_DIVERT_PUSH(NOTICE)]) |
1100 | -$1 |
1101 | -AC_DIVERT_POP |
1102 | -])# _LT_SHELL_INIT |
1103 | - |
1104 | - |
1105 | -# _LT_PROG_ECHO_BACKSLASH |
1106 | -# ----------------------- |
1107 | -# Add some code to the start of the generated configure script which |
1108 | -# will find an echo command which doesn't interpret backslashes. |
1109 | -m4_defun([_LT_PROG_ECHO_BACKSLASH], |
1110 | -[_LT_SHELL_INIT([ |
1111 | -# Check that we are running under the correct shell. |
1112 | -SHELL=${CONFIG_SHELL-/bin/sh} |
1113 | - |
1114 | -case X$lt_ECHO in |
1115 | -X*--fallback-echo) |
1116 | - # Remove one level of quotation (which was required for Make). |
1117 | - ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` |
1118 | - ;; |
1119 | -esac |
1120 | - |
1121 | -ECHO=${lt_ECHO-echo} |
1122 | -if test "X[$]1" = X--no-reexec; then |
1123 | - # Discard the --no-reexec flag, and continue. |
1124 | - shift |
1125 | -elif test "X[$]1" = X--fallback-echo; then |
1126 | - # Avoid inline document here, it may be left over |
1127 | - : |
1128 | -elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then |
1129 | - # Yippee, $ECHO works! |
1130 | - : |
1131 | -else |
1132 | - # Restart under the correct shell. |
1133 | - exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} |
1134 | -fi |
1135 | - |
1136 | -if test "X[$]1" = X--fallback-echo; then |
1137 | - # used as fallback echo |
1138 | - shift |
1139 | - cat <<_LT_EOF |
1140 | -[$]* |
1141 | -_LT_EOF |
1142 | - exit 0 |
1143 | -fi |
1144 | - |
1145 | -# The HP-UX ksh and POSIX shell print the target directory to stdout |
1146 | -# if CDPATH is set. |
1147 | -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
1148 | - |
1149 | -if test -z "$lt_ECHO"; then |
1150 | - if test "X${echo_test_string+set}" != Xset; then |
1151 | - # find a string as large as possible, as long as the shell can cope with it |
1152 | - for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do |
1153 | - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
1154 | - if { echo_test_string=`eval $cmd`; } 2>/dev/null && |
1155 | - { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null |
1156 | - then |
1157 | - break |
1158 | - fi |
1159 | - done |
1160 | - fi |
1161 | - |
1162 | - if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && |
1163 | - echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && |
1164 | - test "X$echo_testing_string" = "X$echo_test_string"; then |
1165 | - : |
1166 | - else |
1167 | - # The Solaris, AIX, and Digital Unix default echo programs unquote |
1168 | - # backslashes. This makes it impossible to quote backslashes using |
1169 | - # echo "$something" | sed 's/\\/\\\\/g' |
1170 | - # |
1171 | - # So, first we look for a working echo in the user's PATH. |
1172 | - |
1173 | - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
1174 | - for dir in $PATH /usr/ucb; do |
1175 | - IFS="$lt_save_ifs" |
1176 | - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
1177 | - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
1178 | - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
1179 | - test "X$echo_testing_string" = "X$echo_test_string"; then |
1180 | - ECHO="$dir/echo" |
1181 | - break |
1182 | - fi |
1183 | - done |
1184 | - IFS="$lt_save_ifs" |
1185 | - |
1186 | - if test "X$ECHO" = Xecho; then |
1187 | - # We didn't find a better echo, so look for alternatives. |
1188 | - if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && |
1189 | - echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && |
1190 | - test "X$echo_testing_string" = "X$echo_test_string"; then |
1191 | - # This shell has a builtin print -r that does the trick. |
1192 | - ECHO='print -r' |
1193 | - elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && |
1194 | - test "X$CONFIG_SHELL" != X/bin/ksh; then |
1195 | - # If we have ksh, try running configure again with it. |
1196 | - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
1197 | - export ORIGINAL_CONFIG_SHELL |
1198 | - CONFIG_SHELL=/bin/ksh |
1199 | - export CONFIG_SHELL |
1200 | - exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} |
1201 | - else |
1202 | - # Try using printf. |
1203 | - ECHO='printf %s\n' |
1204 | - if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && |
1205 | - echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && |
1206 | - test "X$echo_testing_string" = "X$echo_test_string"; then |
1207 | - # Cool, printf works |
1208 | - : |
1209 | - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && |
1210 | - test "X$echo_testing_string" = 'X\t' && |
1211 | - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
1212 | - test "X$echo_testing_string" = "X$echo_test_string"; then |
1213 | - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
1214 | - export CONFIG_SHELL |
1215 | - SHELL="$CONFIG_SHELL" |
1216 | - export SHELL |
1217 | - ECHO="$CONFIG_SHELL [$]0 --fallback-echo" |
1218 | - elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && |
1219 | - test "X$echo_testing_string" = 'X\t' && |
1220 | - echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
1221 | - test "X$echo_testing_string" = "X$echo_test_string"; then |
1222 | - ECHO="$CONFIG_SHELL [$]0 --fallback-echo" |
1223 | - else |
1224 | - # maybe with a smaller string... |
1225 | - prev=: |
1226 | - |
1227 | - for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do |
1228 | - if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null |
1229 | - then |
1230 | - break |
1231 | - fi |
1232 | - prev="$cmd" |
1233 | - done |
1234 | - |
1235 | - if test "$prev" != 'sed 50q "[$]0"'; then |
1236 | - echo_test_string=`eval $prev` |
1237 | - export echo_test_string |
1238 | - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} |
1239 | - else |
1240 | - # Oops. We lost completely, so just stick with echo. |
1241 | - ECHO=echo |
1242 | - fi |
1243 | - fi |
1244 | - fi |
1245 | - fi |
1246 | - fi |
1247 | -fi |
1248 | - |
1249 | -# Copy echo and quote the copy suitably for passing to libtool from |
1250 | -# the Makefile, instead of quoting the original, which is used later. |
1251 | -lt_ECHO=$ECHO |
1252 | -if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then |
1253 | - lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" |
1254 | -fi |
1255 | - |
1256 | -AC_SUBST(lt_ECHO) |
1257 | -]) |
1258 | -_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) |
1259 | -_LT_DECL([], [ECHO], [1], |
1260 | - [An echo program that does not interpret backslashes]) |
1261 | -])# _LT_PROG_ECHO_BACKSLASH |
1262 | - |
1263 | - |
1264 | -# _LT_ENABLE_LOCK |
1265 | -# --------------- |
1266 | -m4_defun([_LT_ENABLE_LOCK], |
1267 | -[AC_ARG_ENABLE([libtool-lock], |
1268 | - [AS_HELP_STRING([--disable-libtool-lock], |
1269 | - [avoid locking (might break parallel builds)])]) |
1270 | -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
1271 | - |
1272 | -# Some flags need to be propagated to the compiler or linker for good |
1273 | -# libtool support. |
1274 | -case $host in |
1275 | -ia64-*-hpux*) |
1276 | - # Find out which ABI we are using. |
1277 | - echo 'int i;' > conftest.$ac_ext |
1278 | - if AC_TRY_EVAL(ac_compile); then |
1279 | - case `/usr/bin/file conftest.$ac_objext` in |
1280 | - *ELF-32*) |
1281 | - HPUX_IA64_MODE="32" |
1282 | - ;; |
1283 | - *ELF-64*) |
1284 | - HPUX_IA64_MODE="64" |
1285 | - ;; |
1286 | - esac |
1287 | - fi |
1288 | - rm -rf conftest* |
1289 | - ;; |
1290 | -*-*-irix6*) |
1291 | - # Find out which ABI we are using. |
1292 | - echo '[#]line __oline__ "configure"' > conftest.$ac_ext |
1293 | - if AC_TRY_EVAL(ac_compile); then |
1294 | - if test "$lt_cv_prog_gnu_ld" = yes; then |
1295 | - case `/usr/bin/file conftest.$ac_objext` in |
1296 | - *32-bit*) |
1297 | - LD="${LD-ld} -melf32bsmip" |
1298 | - ;; |
1299 | - *N32*) |
1300 | - LD="${LD-ld} -melf32bmipn32" |
1301 | - ;; |
1302 | - *64-bit*) |
1303 | - LD="${LD-ld} -melf64bmip" |
1304 | - ;; |
1305 | - esac |
1306 | - else |
1307 | - case `/usr/bin/file conftest.$ac_objext` in |
1308 | - *32-bit*) |
1309 | - LD="${LD-ld} -32" |
1310 | - ;; |
1311 | - *N32*) |
1312 | - LD="${LD-ld} -n32" |
1313 | - ;; |
1314 | - *64-bit*) |
1315 | - LD="${LD-ld} -64" |
1316 | - ;; |
1317 | - esac |
1318 | - fi |
1319 | - fi |
1320 | - rm -rf conftest* |
1321 | - ;; |
1322 | - |
1323 | -x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ |
1324 | -s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
1325 | - # Find out which ABI we are using. |
1326 | - echo 'int i;' > conftest.$ac_ext |
1327 | - if AC_TRY_EVAL(ac_compile); then |
1328 | - case `/usr/bin/file conftest.o` in |
1329 | - *32-bit*) |
1330 | - case $host in |
1331 | - x86_64-*kfreebsd*-gnu) |
1332 | - LD="${LD-ld} -m elf_i386_fbsd" |
1333 | - ;; |
1334 | - x86_64-*linux*) |
1335 | - LD="${LD-ld} -m elf_i386" |
1336 | - ;; |
1337 | - ppc64-*linux*|powerpc64-*linux*) |
1338 | - LD="${LD-ld} -m elf32ppclinux" |
1339 | - ;; |
1340 | - s390x-*linux*) |
1341 | - LD="${LD-ld} -m elf_s390" |
1342 | - ;; |
1343 | - sparc64-*linux*) |
1344 | - LD="${LD-ld} -m elf32_sparc" |
1345 | - ;; |
1346 | - esac |
1347 | - ;; |
1348 | - *64-bit*) |
1349 | - case $host in |
1350 | - x86_64-*kfreebsd*-gnu) |
1351 | - LD="${LD-ld} -m elf_x86_64_fbsd" |
1352 | - ;; |
1353 | - x86_64-*linux*) |
1354 | - LD="${LD-ld} -m elf_x86_64" |
1355 | - ;; |
1356 | - ppc*-*linux*|powerpc*-*linux*) |
1357 | - LD="${LD-ld} -m elf64ppc" |
1358 | - ;; |
1359 | - s390*-*linux*|s390*-*tpf*) |
1360 | - LD="${LD-ld} -m elf64_s390" |
1361 | - ;; |
1362 | - sparc*-*linux*) |
1363 | - LD="${LD-ld} -m elf64_sparc" |
1364 | - ;; |
1365 | - esac |
1366 | - ;; |
1367 | - esac |
1368 | - fi |
1369 | - rm -rf conftest* |
1370 | - ;; |
1371 | - |
1372 | -*-*-sco3.2v5*) |
1373 | - # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
1374 | - SAVE_CFLAGS="$CFLAGS" |
1375 | - CFLAGS="$CFLAGS -belf" |
1376 | - AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, |
1377 | - [AC_LANG_PUSH(C) |
1378 | - AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) |
1379 | - AC_LANG_POP]) |
1380 | - if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
1381 | - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
1382 | - CFLAGS="$SAVE_CFLAGS" |
1383 | - fi |
1384 | - ;; |
1385 | -sparc*-*solaris*) |
1386 | - # Find out which ABI we are using. |
1387 | - echo 'int i;' > conftest.$ac_ext |
1388 | - if AC_TRY_EVAL(ac_compile); then |
1389 | - case `/usr/bin/file conftest.o` in |
1390 | - *64-bit*) |
1391 | - case $lt_cv_prog_gnu_ld in |
1392 | - yes*) LD="${LD-ld} -m elf64_sparc" ;; |
1393 | - *) |
1394 | - if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
1395 | - LD="${LD-ld} -64" |
1396 | - fi |
1397 | - ;; |
1398 | - esac |
1399 | - ;; |
1400 | - esac |
1401 | - fi |
1402 | - rm -rf conftest* |
1403 | - ;; |
1404 | -esac |
1405 | - |
1406 | -need_locks="$enable_libtool_lock" |
1407 | -])# _LT_ENABLE_LOCK |
1408 | - |
1409 | - |
1410 | -# _LT_CMD_OLD_ARCHIVE |
1411 | -# ------------------- |
1412 | -m4_defun([_LT_CMD_OLD_ARCHIVE], |
1413 | -[AC_CHECK_TOOL(AR, ar, false) |
1414 | -test -z "$AR" && AR=ar |
1415 | -test -z "$AR_FLAGS" && AR_FLAGS=cru |
1416 | -_LT_DECL([], [AR], [1], [The archiver]) |
1417 | -_LT_DECL([], [AR_FLAGS], [1]) |
1418 | - |
1419 | -AC_CHECK_TOOL(STRIP, strip, :) |
1420 | -test -z "$STRIP" && STRIP=: |
1421 | -_LT_DECL([], [STRIP], [1], [A symbol stripping program]) |
1422 | - |
1423 | -AC_CHECK_TOOL(RANLIB, ranlib, :) |
1424 | -test -z "$RANLIB" && RANLIB=: |
1425 | -_LT_DECL([], [RANLIB], [1], |
1426 | - [Commands used to install an old-style archive]) |
1427 | - |
1428 | -# Determine commands to create old-style static archives. |
1429 | -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
1430 | -old_postinstall_cmds='chmod 644 $oldlib' |
1431 | -old_postuninstall_cmds= |
1432 | - |
1433 | -if test -n "$RANLIB"; then |
1434 | - case $host_os in |
1435 | - openbsd*) |
1436 | - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
1437 | - ;; |
1438 | - *) |
1439 | - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
1440 | - ;; |
1441 | - esac |
1442 | - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
1443 | -fi |
1444 | -_LT_DECL([], [old_postinstall_cmds], [2]) |
1445 | -_LT_DECL([], [old_postuninstall_cmds], [2]) |
1446 | -_LT_TAGDECL([], [old_archive_cmds], [2], |
1447 | - [Commands used to build an old-style archive]) |
1448 | -])# _LT_CMD_OLD_ARCHIVE |
1449 | - |
1450 | - |
1451 | -# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, |
1452 | -# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) |
1453 | -# ---------------------------------------------------------------- |
1454 | -# Check whether the given compiler option works |
1455 | -AC_DEFUN([_LT_COMPILER_OPTION], |
1456 | -[m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
1457 | -m4_require([_LT_DECL_SED])dnl |
1458 | -AC_CACHE_CHECK([$1], [$2], |
1459 | - [$2=no |
1460 | - m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) |
1461 | - echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
1462 | - lt_compiler_flag="$3" |
1463 | - # Insert the option either (1) after the last *FLAGS variable, or |
1464 | - # (2) before a word containing "conftest.", or (3) at the end. |
1465 | - # Note that $ac_compile itself does not contain backslashes and begins |
1466 | - # with a dollar sign (not a hyphen), so the echo should work correctly. |
1467 | - # The option is referenced via a variable to avoid confusing sed. |
1468 | - lt_compile=`echo "$ac_compile" | $SED \ |
1469 | - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
1470 | - -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ |
1471 | - -e 's:$: $lt_compiler_flag:'` |
1472 | - (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) |
1473 | - (eval "$lt_compile" 2>conftest.err) |
1474 | - ac_status=$? |
1475 | - cat conftest.err >&AS_MESSAGE_LOG_FD |
1476 | - echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD |
1477 | - if (exit $ac_status) && test -s "$ac_outfile"; then |
1478 | - # The compiler can only warn and ignore the option if not recognized |
1479 | - # So say no if there are warnings other than the usual output. |
1480 | - $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
1481 | - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
1482 | - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
1483 | - $2=yes |
1484 | - fi |
1485 | - fi |
1486 | - $RM conftest* |
1487 | -]) |
1488 | - |
1489 | -if test x"[$]$2" = xyes; then |
1490 | - m4_if([$5], , :, [$5]) |
1491 | -else |
1492 | - m4_if([$6], , :, [$6]) |
1493 | -fi |
1494 | -])# _LT_COMPILER_OPTION |
1495 | - |
1496 | -# Old name: |
1497 | -AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION]) |
1498 | -dnl aclocal-1.4 backwards compatibility: |
1499 | -dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], []) |
1500 | - |
1501 | - |
1502 | -# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, |
1503 | -# [ACTION-SUCCESS], [ACTION-FAILURE]) |
1504 | -# ---------------------------------------------------- |
1505 | -# Check whether the given linker option works |
1506 | -AC_DEFUN([_LT_LINKER_OPTION], |
1507 | -[m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
1508 | -m4_require([_LT_DECL_SED])dnl |
1509 | -AC_CACHE_CHECK([$1], [$2], |
1510 | - [$2=no |
1511 | - save_LDFLAGS="$LDFLAGS" |
1512 | - LDFLAGS="$LDFLAGS $3" |
1513 | - echo "$lt_simple_link_test_code" > conftest.$ac_ext |
1514 | - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
1515 | - # The linker can only warn and ignore the option if not recognized |
1516 | - # So say no if there are warnings |
1517 | - if test -s conftest.err; then |
1518 | - # Append any errors to the config.log. |
1519 | - cat conftest.err 1>&AS_MESSAGE_LOG_FD |
1520 | - $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
1521 | - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
1522 | - if diff conftest.exp conftest.er2 >/dev/null; then |
1523 | - $2=yes |
1524 | - fi |
1525 | - else |
1526 | - $2=yes |
1527 | - fi |
1528 | - fi |
1529 | - $RM -r conftest* |
1530 | - LDFLAGS="$save_LDFLAGS" |
1531 | -]) |
1532 | - |
1533 | -if test x"[$]$2" = xyes; then |
1534 | - m4_if([$4], , :, [$4]) |
1535 | -else |
1536 | - m4_if([$5], , :, [$5]) |
1537 | -fi |
1538 | -])# _LT_LINKER_OPTION |
1539 | - |
1540 | -# Old name: |
1541 | -AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION]) |
1542 | -dnl aclocal-1.4 backwards compatibility: |
1543 | -dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], []) |
1544 | - |
1545 | - |
1546 | -# LT_CMD_MAX_LEN |
1547 | -#--------------- |
1548 | -AC_DEFUN([LT_CMD_MAX_LEN], |
1549 | -[AC_REQUIRE([AC_CANONICAL_HOST])dnl |
1550 | -# find the maximum length of command line arguments |
1551 | -AC_MSG_CHECKING([the maximum length of command line arguments]) |
1552 | -AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl |
1553 | - i=0 |
1554 | - teststring="ABCD" |
1555 | - |
1556 | - case $build_os in |
1557 | - msdosdjgpp*) |
1558 | - # On DJGPP, this test can blow up pretty badly due to problems in libc |
1559 | - # (any single argument exceeding 2000 bytes causes a buffer overrun |
1560 | - # during glob expansion). Even if it were fixed, the result of this |
1561 | - # check would be larger than it should be. |
1562 | - lt_cv_sys_max_cmd_len=12288; # 12K is about right |
1563 | - ;; |
1564 | - |
1565 | - gnu*) |
1566 | - # Under GNU Hurd, this test is not required because there is |
1567 | - # no limit to the length of command line arguments. |
1568 | - # Libtool will interpret -1 as no limit whatsoever |
1569 | - lt_cv_sys_max_cmd_len=-1; |
1570 | - ;; |
1571 | - |
1572 | - cygwin* | mingw* | cegcc*) |
1573 | - # On Win9x/ME, this test blows up -- it succeeds, but takes |
1574 | - # about 5 minutes as the teststring grows exponentially. |
1575 | - # Worse, since 9x/ME are not pre-emptively multitasking, |
1576 | - # you end up with a "frozen" computer, even though with patience |
1577 | - # the test eventually succeeds (with a max line length of 256k). |
1578 | - # Instead, let's just punt: use the minimum linelength reported by |
1579 | - # all of the supported platforms: 8192 (on NT/2K/XP). |
1580 | - lt_cv_sys_max_cmd_len=8192; |
1581 | - ;; |
1582 | - |
1583 | - amigaos*) |
1584 | - # On AmigaOS with pdksh, this test takes hours, literally. |
1585 | - # So we just punt and use a minimum line length of 8192. |
1586 | - lt_cv_sys_max_cmd_len=8192; |
1587 | - ;; |
1588 | - |
1589 | - netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
1590 | - # This has been around since 386BSD, at least. Likely further. |
1591 | - if test -x /sbin/sysctl; then |
1592 | - lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
1593 | - elif test -x /usr/sbin/sysctl; then |
1594 | - lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
1595 | - else |
1596 | - lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
1597 | - fi |
1598 | - # And add a safety zone |
1599 | - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
1600 | - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
1601 | - ;; |
1602 | - |
1603 | - interix*) |
1604 | - # We know the value 262144 and hardcode it with a safety zone (like BSD) |
1605 | - lt_cv_sys_max_cmd_len=196608 |
1606 | - ;; |
1607 | - |
1608 | - osf*) |
1609 | - # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
1610 | - # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
1611 | - # nice to cause kernel panics so lets avoid the loop below. |
1612 | - # First set a reasonable default. |
1613 | - lt_cv_sys_max_cmd_len=16384 |
1614 | - # |
1615 | - if test -x /sbin/sysconfig; then |
1616 | - case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
1617 | - *1*) lt_cv_sys_max_cmd_len=-1 ;; |
1618 | - esac |
1619 | - fi |
1620 | - ;; |
1621 | - sco3.2v5*) |
1622 | - lt_cv_sys_max_cmd_len=102400 |
1623 | - ;; |
1624 | - sysv5* | sco5v6* | sysv4.2uw2*) |
1625 | - kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
1626 | - if test -n "$kargmax"; then |
1627 | - lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` |
1628 | - else |
1629 | - lt_cv_sys_max_cmd_len=32768 |
1630 | - fi |
1631 | - ;; |
1632 | - *) |
1633 | - lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
1634 | - if test -n "$lt_cv_sys_max_cmd_len"; then |
1635 | - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
1636 | - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
1637 | - else |
1638 | - # Make teststring a little bigger before we do anything with it. |
1639 | - # a 1K string should be a reasonable start. |
1640 | - for i in 1 2 3 4 5 6 7 8 ; do |
1641 | - teststring=$teststring$teststring |
1642 | - done |
1643 | - SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
1644 | - # If test is not a shell built-in, we'll probably end up computing a |
1645 | - # maximum length that is only half of the actual maximum length, but |
1646 | - # we can't tell. |
1647 | - while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ |
1648 | - = "XX$teststring$teststring"; } >/dev/null 2>&1 && |
1649 | - test $i != 17 # 1/2 MB should be enough |
1650 | - do |
1651 | - i=`expr $i + 1` |
1652 | - teststring=$teststring$teststring |
1653 | - done |
1654 | - # Only check the string length outside the loop. |
1655 | - lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` |
1656 | - teststring= |
1657 | - # Add a significant safety factor because C++ compilers can tack on |
1658 | - # massive amounts of additional arguments before passing them to the |
1659 | - # linker. It appears as though 1/2 is a usable value. |
1660 | - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
1661 | - fi |
1662 | - ;; |
1663 | - esac |
1664 | -]) |
1665 | -if test -n $lt_cv_sys_max_cmd_len ; then |
1666 | - AC_MSG_RESULT($lt_cv_sys_max_cmd_len) |
1667 | -else |
1668 | - AC_MSG_RESULT(none) |
1669 | -fi |
1670 | -max_cmd_len=$lt_cv_sys_max_cmd_len |
1671 | -_LT_DECL([], [max_cmd_len], [0], |
1672 | - [What is the maximum length of a command?]) |
1673 | -])# LT_CMD_MAX_LEN |
1674 | - |
1675 | -# Old name: |
1676 | -AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN]) |
1677 | -dnl aclocal-1.4 backwards compatibility: |
1678 | -dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], []) |
1679 | - |
1680 | - |
1681 | -# _LT_HEADER_DLFCN |
1682 | -# ---------------- |
1683 | -m4_defun([_LT_HEADER_DLFCN], |
1684 | -[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl |
1685 | -])# _LT_HEADER_DLFCN |
1686 | - |
1687 | - |
1688 | -# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, |
1689 | -# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) |
1690 | -# ---------------------------------------------------------------- |
1691 | -m4_defun([_LT_TRY_DLOPEN_SELF], |
1692 | -[m4_require([_LT_HEADER_DLFCN])dnl |
1693 | -if test "$cross_compiling" = yes; then : |
1694 | - [$4] |
1695 | -else |
1696 | - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
1697 | - lt_status=$lt_dlunknown |
1698 | - cat > conftest.$ac_ext <<_LT_EOF |
1699 | -[#line __oline__ "configure" |
1700 | -#include "confdefs.h" |
1701 | - |
1702 | -#if HAVE_DLFCN_H |
1703 | -#include <dlfcn.h> |
1704 | -#endif |
1705 | - |
1706 | -#include <stdio.h> |
1707 | - |
1708 | -#ifdef RTLD_GLOBAL |
1709 | -# define LT_DLGLOBAL RTLD_GLOBAL |
1710 | -#else |
1711 | -# ifdef DL_GLOBAL |
1712 | -# define LT_DLGLOBAL DL_GLOBAL |
1713 | -# else |
1714 | -# define LT_DLGLOBAL 0 |
1715 | -# endif |
1716 | -#endif |
1717 | - |
1718 | -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
1719 | - find out it does not work in some platform. */ |
1720 | -#ifndef LT_DLLAZY_OR_NOW |
1721 | -# ifdef RTLD_LAZY |
1722 | -# define LT_DLLAZY_OR_NOW RTLD_LAZY |
1723 | -# else |
1724 | -# ifdef DL_LAZY |
1725 | -# define LT_DLLAZY_OR_NOW DL_LAZY |
1726 | -# else |
1727 | -# ifdef RTLD_NOW |
1728 | -# define LT_DLLAZY_OR_NOW RTLD_NOW |
1729 | -# else |
1730 | -# ifdef DL_NOW |
1731 | -# define LT_DLLAZY_OR_NOW DL_NOW |
1732 | -# else |
1733 | -# define LT_DLLAZY_OR_NOW 0 |
1734 | -# endif |
1735 | -# endif |
1736 | -# endif |
1737 | -# endif |
1738 | -#endif |
1739 | - |
1740 | -void fnord() { int i=42;} |
1741 | -int main () |
1742 | -{ |
1743 | - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
1744 | - int status = $lt_dlunknown; |
1745 | - |
1746 | - if (self) |
1747 | - { |
1748 | - if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
1749 | - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
1750 | - /* dlclose (self); */ |
1751 | - } |
1752 | - else |
1753 | - puts (dlerror ()); |
1754 | - |
1755 | - return status; |
1756 | -}] |
1757 | -_LT_EOF |
1758 | - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then |
1759 | - (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null |
1760 | - lt_status=$? |
1761 | - case x$lt_status in |
1762 | - x$lt_dlno_uscore) $1 ;; |
1763 | - x$lt_dlneed_uscore) $2 ;; |
1764 | - x$lt_dlunknown|x*) $3 ;; |
1765 | - esac |
1766 | - else : |
1767 | - # compilation failed |
1768 | - $3 |
1769 | - fi |
1770 | -fi |
1771 | -rm -fr conftest* |
1772 | -])# _LT_TRY_DLOPEN_SELF |
1773 | - |
1774 | - |
1775 | -# LT_SYS_DLOPEN_SELF |
1776 | -# ------------------ |
1777 | -AC_DEFUN([LT_SYS_DLOPEN_SELF], |
1778 | -[m4_require([_LT_HEADER_DLFCN])dnl |
1779 | -if test "x$enable_dlopen" != xyes; then |
1780 | - enable_dlopen=unknown |
1781 | - enable_dlopen_self=unknown |
1782 | - enable_dlopen_self_static=unknown |
1783 | -else |
1784 | - lt_cv_dlopen=no |
1785 | - lt_cv_dlopen_libs= |
1786 | - |
1787 | - case $host_os in |
1788 | - beos*) |
1789 | - lt_cv_dlopen="load_add_on" |
1790 | - lt_cv_dlopen_libs= |
1791 | - lt_cv_dlopen_self=yes |
1792 | - ;; |
1793 | - |
1794 | - mingw* | pw32* | cegcc*) |
1795 | - lt_cv_dlopen="LoadLibrary" |
1796 | - lt_cv_dlopen_libs= |
1797 | - ;; |
1798 | - |
1799 | - cygwin*) |
1800 | - lt_cv_dlopen="dlopen" |
1801 | - lt_cv_dlopen_libs= |
1802 | - ;; |
1803 | - |
1804 | - darwin*) |
1805 | - # if libdl is installed we need to link against it |
1806 | - AC_CHECK_LIB([dl], [dlopen], |
1807 | - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ |
1808 | - lt_cv_dlopen="dyld" |
1809 | - lt_cv_dlopen_libs= |
1810 | - lt_cv_dlopen_self=yes |
1811 | - ]) |
1812 | - ;; |
1813 | - |
1814 | - *) |
1815 | - AC_CHECK_FUNC([shl_load], |
1816 | - [lt_cv_dlopen="shl_load"], |
1817 | - [AC_CHECK_LIB([dld], [shl_load], |
1818 | - [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"], |
1819 | - [AC_CHECK_FUNC([dlopen], |
1820 | - [lt_cv_dlopen="dlopen"], |
1821 | - [AC_CHECK_LIB([dl], [dlopen], |
1822 | - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], |
1823 | - [AC_CHECK_LIB([svld], [dlopen], |
1824 | - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], |
1825 | - [AC_CHECK_LIB([dld], [dld_link], |
1826 | - [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"]) |
1827 | - ]) |
1828 | - ]) |
1829 | - ]) |
1830 | - ]) |
1831 | - ]) |
1832 | - ;; |
1833 | - esac |
1834 | - |
1835 | - if test "x$lt_cv_dlopen" != xno; then |
1836 | - enable_dlopen=yes |
1837 | - else |
1838 | - enable_dlopen=no |
1839 | - fi |
1840 | - |
1841 | - case $lt_cv_dlopen in |
1842 | - dlopen) |
1843 | - save_CPPFLAGS="$CPPFLAGS" |
1844 | - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
1845 | - |
1846 | - save_LDFLAGS="$LDFLAGS" |
1847 | - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
1848 | - |
1849 | - save_LIBS="$LIBS" |
1850 | - LIBS="$lt_cv_dlopen_libs $LIBS" |
1851 | - |
1852 | - AC_CACHE_CHECK([whether a program can dlopen itself], |
1853 | - lt_cv_dlopen_self, [dnl |
1854 | - _LT_TRY_DLOPEN_SELF( |
1855 | - lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, |
1856 | - lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) |
1857 | - ]) |
1858 | - |
1859 | - if test "x$lt_cv_dlopen_self" = xyes; then |
1860 | - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
1861 | - AC_CACHE_CHECK([whether a statically linked program can dlopen itself], |
1862 | - lt_cv_dlopen_self_static, [dnl |
1863 | - _LT_TRY_DLOPEN_SELF( |
1864 | - lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, |
1865 | - lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) |
1866 | - ]) |
1867 | - fi |
1868 | - |
1869 | - CPPFLAGS="$save_CPPFLAGS" |
1870 | - LDFLAGS="$save_LDFLAGS" |
1871 | - LIBS="$save_LIBS" |
1872 | - ;; |
1873 | - esac |
1874 | - |
1875 | - case $lt_cv_dlopen_self in |
1876 | - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
1877 | - *) enable_dlopen_self=unknown ;; |
1878 | - esac |
1879 | - |
1880 | - case $lt_cv_dlopen_self_static in |
1881 | - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
1882 | - *) enable_dlopen_self_static=unknown ;; |
1883 | - esac |
1884 | -fi |
1885 | -_LT_DECL([dlopen_support], [enable_dlopen], [0], |
1886 | - [Whether dlopen is supported]) |
1887 | -_LT_DECL([dlopen_self], [enable_dlopen_self], [0], |
1888 | - [Whether dlopen of programs is supported]) |
1889 | -_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0], |
1890 | - [Whether dlopen of statically linked programs is supported]) |
1891 | -])# LT_SYS_DLOPEN_SELF |
1892 | - |
1893 | -# Old name: |
1894 | -AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF]) |
1895 | -dnl aclocal-1.4 backwards compatibility: |
1896 | -dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], []) |
1897 | - |
1898 | - |
1899 | -# _LT_COMPILER_C_O([TAGNAME]) |
1900 | -# --------------------------- |
1901 | -# Check to see if options -c and -o are simultaneously supported by compiler. |
1902 | -# This macro does not hard code the compiler like AC_PROG_CC_C_O. |
1903 | -m4_defun([_LT_COMPILER_C_O], |
1904 | -[m4_require([_LT_DECL_SED])dnl |
1905 | -m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
1906 | -m4_require([_LT_TAG_COMPILER])dnl |
1907 | -AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], |
1908 | - [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)], |
1909 | - [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no |
1910 | - $RM -r conftest 2>/dev/null |
1911 | - mkdir conftest |
1912 | - cd conftest |
1913 | - mkdir out |
1914 | - echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
1915 | - |
1916 | - lt_compiler_flag="-o out/conftest2.$ac_objext" |
1917 | - # Insert the option either (1) after the last *FLAGS variable, or |
1918 | - # (2) before a word containing "conftest.", or (3) at the end. |
1919 | - # Note that $ac_compile itself does not contain backslashes and begins |
1920 | - # with a dollar sign (not a hyphen), so the echo should work correctly. |
1921 | - lt_compile=`echo "$ac_compile" | $SED \ |
1922 | - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
1923 | - -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ |
1924 | - -e 's:$: $lt_compiler_flag:'` |
1925 | - (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) |
1926 | - (eval "$lt_compile" 2>out/conftest.err) |
1927 | - ac_status=$? |
1928 | - cat out/conftest.err >&AS_MESSAGE_LOG_FD |
1929 | - echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD |
1930 | - if (exit $ac_status) && test -s out/conftest2.$ac_objext |
1931 | - then |
1932 | - # The compiler can only warn and ignore the option if not recognized |
1933 | - # So say no if there are warnings |
1934 | - $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
1935 | - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
1936 | - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
1937 | - _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes |
1938 | - fi |
1939 | - fi |
1940 | - chmod u+w . 2>&AS_MESSAGE_LOG_FD |
1941 | - $RM conftest* |
1942 | - # SGI C++ compiler will create directory out/ii_files/ for |
1943 | - # template instantiation |
1944 | - test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
1945 | - $RM out/* && rmdir out |
1946 | - cd .. |
1947 | - $RM -r conftest |
1948 | - $RM conftest* |
1949 | -]) |
1950 | -_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1], |
1951 | - [Does compiler simultaneously support -c and -o options?]) |
1952 | -])# _LT_COMPILER_C_O |
1953 | - |
1954 | - |
1955 | -# _LT_COMPILER_FILE_LOCKS([TAGNAME]) |
1956 | -# ---------------------------------- |
1957 | -# Check to see if we can do hard links to lock some files if needed |
1958 | -m4_defun([_LT_COMPILER_FILE_LOCKS], |
1959 | -[m4_require([_LT_ENABLE_LOCK])dnl |
1960 | -m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
1961 | -_LT_COMPILER_C_O([$1]) |
1962 | - |
1963 | -hard_links="nottested" |
1964 | -if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then |
1965 | - # do not overwrite the value of need_locks provided by the user |
1966 | - AC_MSG_CHECKING([if we can lock with hard links]) |
1967 | - hard_links=yes |
1968 | - $RM conftest* |
1969 | - ln conftest.a conftest.b 2>/dev/null && hard_links=no |
1970 | - touch conftest.a |
1971 | - ln conftest.a conftest.b 2>&5 || hard_links=no |
1972 | - ln conftest.a conftest.b 2>/dev/null && hard_links=no |
1973 | - AC_MSG_RESULT([$hard_links]) |
1974 | - if test "$hard_links" = no; then |
1975 | - AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) |
1976 | - need_locks=warn |
1977 | - fi |
1978 | -else |
1979 | - need_locks=no |
1980 | -fi |
1981 | -_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?]) |
1982 | -])# _LT_COMPILER_FILE_LOCKS |
1983 | - |
1984 | - |
1985 | -# _LT_CHECK_OBJDIR |
1986 | -# ---------------- |
1987 | -m4_defun([_LT_CHECK_OBJDIR], |
1988 | -[AC_CACHE_CHECK([for objdir], [lt_cv_objdir], |
1989 | -[rm -f .libs 2>/dev/null |
1990 | -mkdir .libs 2>/dev/null |
1991 | -if test -d .libs; then |
1992 | - lt_cv_objdir=.libs |
1993 | -else |
1994 | - # MS-DOS does not allow filenames that begin with a dot. |
1995 | - lt_cv_objdir=_libs |
1996 | -fi |
1997 | -rmdir .libs 2>/dev/null]) |
1998 | -objdir=$lt_cv_objdir |
1999 | -_LT_DECL([], [objdir], [0], |
2000 | - [The name of the directory that contains temporary libtool files])dnl |
2001 | -m4_pattern_allow([LT_OBJDIR])dnl |
2002 | -AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/", |
2003 | - [Define to the sub-directory in which libtool stores uninstalled libraries.]) |
2004 | -])# _LT_CHECK_OBJDIR |
2005 | - |
2006 | - |
2007 | -# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME]) |
2008 | -# -------------------------------------- |
2009 | -# Check hardcoding attributes. |
2010 | -m4_defun([_LT_LINKER_HARDCODE_LIBPATH], |
2011 | -[AC_MSG_CHECKING([how to hardcode library paths into programs]) |
2012 | -_LT_TAGVAR(hardcode_action, $1)= |
2013 | -if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" || |
2014 | - test -n "$_LT_TAGVAR(runpath_var, $1)" || |
2015 | - test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then |
2016 | - |
2017 | - # We can hardcode non-existent directories. |
2018 | - if test "$_LT_TAGVAR(hardcode_direct, $1)" != no && |
2019 | - # If the only mechanism to avoid hardcoding is shlibpath_var, we |
2020 | - # have to relink, otherwise we might link with an installed library |
2021 | - # when we should be linking with a yet-to-be-installed one |
2022 | - ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no && |
2023 | - test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then |
2024 | - # Linking always hardcodes the temporary library directory. |
2025 | - _LT_TAGVAR(hardcode_action, $1)=relink |
2026 | - else |
2027 | - # We can link without hardcoding, and we can hardcode nonexisting dirs. |
2028 | - _LT_TAGVAR(hardcode_action, $1)=immediate |
2029 | - fi |
2030 | -else |
2031 | - # We cannot hardcode anything, or else we can only hardcode existing |
2032 | - # directories. |
2033 | - _LT_TAGVAR(hardcode_action, $1)=unsupported |
2034 | -fi |
2035 | -AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)]) |
2036 | - |
2037 | -if test "$_LT_TAGVAR(hardcode_action, $1)" = relink || |
2038 | - test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then |
2039 | - # Fast installation is not supported |
2040 | - enable_fast_install=no |
2041 | -elif test "$shlibpath_overrides_runpath" = yes || |
2042 | - test "$enable_shared" = no; then |
2043 | - # Fast installation is not necessary |
2044 | - enable_fast_install=needless |
2045 | -fi |
2046 | -_LT_TAGDECL([], [hardcode_action], [0], |
2047 | - [How to hardcode a shared library path into an executable]) |
2048 | -])# _LT_LINKER_HARDCODE_LIBPATH |
2049 | - |
2050 | - |
2051 | -# _LT_CMD_STRIPLIB |
2052 | -# ---------------- |
2053 | -m4_defun([_LT_CMD_STRIPLIB], |
2054 | -[m4_require([_LT_DECL_EGREP]) |
2055 | -striplib= |
2056 | -old_striplib= |
2057 | -AC_MSG_CHECKING([whether stripping libraries is possible]) |
2058 | -if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
2059 | - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
2060 | - test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
2061 | - AC_MSG_RESULT([yes]) |
2062 | -else |
2063 | -# FIXME - insert some real tests, host_os isn't really good enough |
2064 | - case $host_os in |
2065 | - darwin*) |
2066 | - if test -n "$STRIP" ; then |
2067 | - striplib="$STRIP -x" |
2068 | - old_striplib="$STRIP -S" |
2069 | - AC_MSG_RESULT([yes]) |
2070 | - else |
2071 | - AC_MSG_RESULT([no]) |
2072 | - fi |
2073 | - ;; |
2074 | - *) |
2075 | - AC_MSG_RESULT([no]) |
2076 | - ;; |
2077 | - esac |
2078 | -fi |
2079 | -_LT_DECL([], [old_striplib], [1], [Commands to strip libraries]) |
2080 | -_LT_DECL([], [striplib], [1]) |
2081 | -])# _LT_CMD_STRIPLIB |
2082 | - |
2083 | - |
2084 | -# _LT_SYS_DYNAMIC_LINKER([TAG]) |
2085 | -# ----------------------------- |
2086 | -# PORTME Fill in your ld.so characteristics |
2087 | -m4_defun([_LT_SYS_DYNAMIC_LINKER], |
2088 | -[AC_REQUIRE([AC_CANONICAL_HOST])dnl |
2089 | -m4_require([_LT_DECL_EGREP])dnl |
2090 | -m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
2091 | -m4_require([_LT_DECL_OBJDUMP])dnl |
2092 | -m4_require([_LT_DECL_SED])dnl |
2093 | -AC_MSG_CHECKING([dynamic linker characteristics]) |
2094 | -m4_if([$1], |
2095 | - [], [ |
2096 | -if test "$GCC" = yes; then |
2097 | - case $host_os in |
2098 | - darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; |
2099 | - *) lt_awk_arg="/^libraries:/" ;; |
2100 | - esac |
2101 | - lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
2102 | - if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then |
2103 | - # if the path contains ";" then we assume it to be the separator |
2104 | - # otherwise default to the standard path separator (i.e. ":") - it is |
2105 | - # assumed that no part of a normal pathname contains ";" but that should |
2106 | - # okay in the real world where ";" in dirpaths is itself problematic. |
2107 | - lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` |
2108 | - else |
2109 | - lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
2110 | - fi |
2111 | - # Ok, now we have the path, separated by spaces, we can step through it |
2112 | - # and add multilib dir if necessary. |
2113 | - lt_tmp_lt_search_path_spec= |
2114 | - lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
2115 | - for lt_sys_path in $lt_search_path_spec; do |
2116 | - if test -d "$lt_sys_path/$lt_multi_os_dir"; then |
2117 | - lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" |
2118 | - else |
2119 | - test -d "$lt_sys_path" && \ |
2120 | - lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
2121 | - fi |
2122 | - done |
2123 | - lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' |
2124 | -BEGIN {RS=" "; FS="/|\n";} { |
2125 | - lt_foo=""; |
2126 | - lt_count=0; |
2127 | - for (lt_i = NF; lt_i > 0; lt_i--) { |
2128 | - if ($lt_i != "" && $lt_i != ".") { |
2129 | - if ($lt_i == "..") { |
2130 | - lt_count++; |
2131 | - } else { |
2132 | - if (lt_count == 0) { |
2133 | - lt_foo="/" $lt_i lt_foo; |
2134 | - } else { |
2135 | - lt_count--; |
2136 | - } |
2137 | - } |
2138 | - } |
2139 | - } |
2140 | - if (lt_foo != "") { lt_freq[[lt_foo]]++; } |
2141 | - if (lt_freq[[lt_foo]] == 1) { print lt_foo; } |
2142 | -}'` |
2143 | - sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` |
2144 | -else |
2145 | - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
2146 | -fi]) |
2147 | -library_names_spec= |
2148 | -libname_spec='lib$name' |
2149 | -soname_spec= |
2150 | -shrext_cmds=".so" |
2151 | -postinstall_cmds= |
2152 | -postuninstall_cmds= |
2153 | -finish_cmds= |
2154 | -finish_eval= |
2155 | -shlibpath_var= |
2156 | -shlibpath_overrides_runpath=unknown |
2157 | -version_type=none |
2158 | -dynamic_linker="$host_os ld.so" |
2159 | -sys_lib_dlsearch_path_spec="/lib /usr/lib" |
2160 | -need_lib_prefix=unknown |
2161 | -hardcode_into_libs=no |
2162 | - |
2163 | -# when you set need_version to no, make sure it does not cause -set_version |
2164 | -# flags to be left without arguments |
2165 | -need_version=unknown |
2166 | - |
2167 | -case $host_os in |
2168 | -aix3*) |
2169 | - version_type=linux |
2170 | - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
2171 | - shlibpath_var=LIBPATH |
2172 | - |
2173 | - # AIX 3 has no versioning support, so we append a major version to the name. |
2174 | - soname_spec='${libname}${release}${shared_ext}$major' |
2175 | - ;; |
2176 | - |
2177 | -aix[[4-9]]*) |
2178 | - version_type=linux |
2179 | - need_lib_prefix=no |
2180 | - need_version=no |
2181 | - hardcode_into_libs=yes |
2182 | - if test "$host_cpu" = ia64; then |
2183 | - # AIX 5 supports IA64 |
2184 | - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
2185 | - shlibpath_var=LD_LIBRARY_PATH |
2186 | - else |
2187 | - # With GCC up to 2.95.x, collect2 would create an import file |
2188 | - # for dependence libraries. The import file would start with |
2189 | - # the line `#! .'. This would cause the generated library to |
2190 | - # depend on `.', always an invalid library. This was fixed in |
2191 | - # development snapshots of GCC prior to 3.0. |
2192 | - case $host_os in |
2193 | - aix4 | aix4.[[01]] | aix4.[[01]].*) |
2194 | - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
2195 | - echo ' yes ' |
2196 | - echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then |
2197 | - : |
2198 | - else |
2199 | - can_build_shared=no |
2200 | - fi |
2201 | - ;; |
2202 | - esac |
2203 | - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
2204 | - # soname into executable. Probably we can add versioning support to |
2205 | - # collect2, so additional links can be useful in future. |
2206 | - if test "$aix_use_runtimelinking" = yes; then |
2207 | - # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
2208 | - # instead of lib<name>.a to let people know that these are not |
2209 | - # typical AIX shared libraries. |
2210 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
2211 | - else |
2212 | - # We preserve .a as extension for shared libraries through AIX4.2 |
2213 | - # and later when we are not doing run time linking. |
2214 | - library_names_spec='${libname}${release}.a $libname.a' |
2215 | - soname_spec='${libname}${release}${shared_ext}$major' |
2216 | - fi |
2217 | - shlibpath_var=LIBPATH |
2218 | - fi |
2219 | - ;; |
2220 | - |
2221 | -amigaos*) |
2222 | - case $host_cpu in |
2223 | - powerpc) |
2224 | - # Since July 2007 AmigaOS4 officially supports .so libraries. |
2225 | - # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
2226 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
2227 | - ;; |
2228 | - m68k) |
2229 | - library_names_spec='$libname.ixlibrary $libname.a' |
2230 | - # Create ${libname}_ixlibrary.a entries in /sys/libs. |
2231 | - 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' |
2232 | - ;; |
2233 | - esac |
2234 | - ;; |
2235 | - |
2236 | -beos*) |
2237 | - library_names_spec='${libname}${shared_ext}' |
2238 | - dynamic_linker="$host_os ld.so" |
2239 | - shlibpath_var=LIBRARY_PATH |
2240 | - ;; |
2241 | - |
2242 | -bsdi[[45]]*) |
2243 | - version_type=linux |
2244 | - need_version=no |
2245 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
2246 | - soname_spec='${libname}${release}${shared_ext}$major' |
2247 | - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
2248 | - shlibpath_var=LD_LIBRARY_PATH |
2249 | - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
2250 | - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
2251 | - # the default ld.so.conf also contains /usr/contrib/lib and |
2252 | - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
2253 | - # libtool to hard-code these into programs |
2254 | - ;; |
2255 | - |
2256 | -cygwin* | mingw* | pw32* | cegcc*) |
2257 | - version_type=windows |
2258 | - shrext_cmds=".dll" |
2259 | - need_version=no |
2260 | - need_lib_prefix=no |
2261 | - |
2262 | - case $GCC,$host_os in |
2263 | - yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) |
2264 | - library_names_spec='$libname.dll.a' |
2265 | - # DLL is installed to $(libdir)/../bin by postinstall_cmds |
2266 | - postinstall_cmds='base_file=`basename \${file}`~ |
2267 | - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
2268 | - dldir=$destdir/`dirname \$dlpath`~ |
2269 | - test -d \$dldir || mkdir -p \$dldir~ |
2270 | - $install_prog $dir/$dlname \$dldir/$dlname~ |
2271 | - chmod a+x \$dldir/$dlname~ |
2272 | - if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
2273 | - eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
2274 | - fi' |
2275 | - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
2276 | - dlpath=$dir/\$dldll~ |
2277 | - $RM \$dlpath' |
2278 | - shlibpath_overrides_runpath=yes |
2279 | - |
2280 | - case $host_os in |
2281 | - cygwin*) |
2282 | - # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
2283 | - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' |
2284 | - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
2285 | - ;; |
2286 | - mingw* | cegcc*) |
2287 | - # MinGW DLLs use traditional 'lib' prefix |
2288 | - soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' |
2289 | - sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
2290 | - if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then |
2291 | - # It is most probably a Windows format PATH printed by |
2292 | - # mingw gcc, but we are running on Cygwin. Gcc prints its search |
2293 | - # path with ; separators, and with drive letters. We can handle the |
2294 | - # drive letters (cygwin fileutils understands them), so leave them, |
2295 | - # especially as we might pass files found there to a mingw objdump, |
2296 | - # which wouldn't understand a cygwinified path. Ahh. |
2297 | - sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
2298 | - else |
2299 | - sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
2300 | - fi |
2301 | - ;; |
2302 | - pw32*) |
2303 | - # pw32 DLLs use 'pw' prefix rather than 'lib' |
2304 | - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' |
2305 | - ;; |
2306 | - esac |
2307 | - ;; |
2308 | - |
2309 | - *) |
2310 | - library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' |
2311 | - ;; |
2312 | - esac |
2313 | - dynamic_linker='Win32 ld.exe' |
2314 | - # FIXME: first we should search . and the directory the executable is in |
2315 | - shlibpath_var=PATH |
2316 | - ;; |
2317 | - |
2318 | -darwin* | rhapsody*) |
2319 | - dynamic_linker="$host_os dyld" |
2320 | - version_type=darwin |
2321 | - need_lib_prefix=no |
2322 | - need_version=no |
2323 | - library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
2324 | - soname_spec='${libname}${release}${major}$shared_ext' |
2325 | - shlibpath_overrides_runpath=yes |
2326 | - shlibpath_var=DYLD_LIBRARY_PATH |
2327 | - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
2328 | -m4_if([$1], [],[ |
2329 | - sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) |
2330 | - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
2331 | - ;; |
2332 | - |
2333 | -dgux*) |
2334 | - version_type=linux |
2335 | - need_lib_prefix=no |
2336 | - need_version=no |
2337 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
2338 | - soname_spec='${libname}${release}${shared_ext}$major' |
2339 | - shlibpath_var=LD_LIBRARY_PATH |
2340 | - ;; |
2341 | - |
2342 | -freebsd1*) |
2343 | - dynamic_linker=no |
2344 | - ;; |
2345 | - |
2346 | -freebsd* | dragonfly*) |
2347 | - # DragonFly does not have aout. When/if they implement a new |
2348 | - # versioning mechanism, adjust this. |
2349 | - if test -x /usr/bin/objformat; then |
2350 | - objformat=`/usr/bin/objformat` |
2351 | - else |
2352 | - case $host_os in |
2353 | - freebsd[[123]]*) objformat=aout ;; |
2354 | - *) objformat=elf ;; |
2355 | - esac |
2356 | - fi |
2357 | - version_type=freebsd-$objformat |
2358 | - case $version_type in |
2359 | - freebsd-elf*) |
2360 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
2361 | - need_version=no |
2362 | - need_lib_prefix=no |
2363 | - ;; |
2364 | - freebsd-*) |
2365 | - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
2366 | - need_version=yes |
2367 | - ;; |
2368 | - esac |
2369 | - shlibpath_var=LD_LIBRARY_PATH |
2370 | - case $host_os in |
2371 | - freebsd2*) |
2372 | - shlibpath_overrides_runpath=yes |
2373 | - ;; |
2374 | - freebsd3.[[01]]* | freebsdelf3.[[01]]*) |
2375 | - shlibpath_overrides_runpath=yes |
2376 | - hardcode_into_libs=yes |
2377 | - ;; |
2378 | - freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ |
2379 | - freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) |
2380 | - shlibpath_overrides_runpath=no |
2381 | - hardcode_into_libs=yes |
2382 | - ;; |
2383 | - *) # from 4.6 on, and DragonFly |
2384 | - shlibpath_overrides_runpath=yes |
2385 | - hardcode_into_libs=yes |
2386 | - ;; |
2387 | - esac |
2388 | - ;; |
2389 | - |
2390 | -gnu*) |
2391 | - version_type=linux |
2392 | - need_lib_prefix=no |
2393 | - need_version=no |
2394 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
2395 | - soname_spec='${libname}${release}${shared_ext}$major' |
2396 | - shlibpath_var=LD_LIBRARY_PATH |
2397 | - hardcode_into_libs=yes |
2398 | - ;; |
2399 | - |
2400 | -hpux9* | hpux10* | hpux11*) |
2401 | - # Give a soname corresponding to the major version so that dld.sl refuses to |
2402 | - # link against other versions. |
2403 | - version_type=sunos |
2404 | - need_lib_prefix=no |
2405 | - need_version=no |
2406 | - case $host_cpu in |
2407 | - ia64*) |
2408 | - shrext_cmds='.so' |
2409 | - hardcode_into_libs=yes |
2410 | - dynamic_linker="$host_os dld.so" |
2411 | - shlibpath_var=LD_LIBRARY_PATH |
2412 | - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
2413 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
2414 | - soname_spec='${libname}${release}${shared_ext}$major' |
2415 | - if test "X$HPUX_IA64_MODE" = X32; then |
2416 | - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
2417 | - else |
2418 | - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
2419 | - fi |
2420 | - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
2421 | - ;; |
2422 | - hppa*64*) |
2423 | - shrext_cmds='.sl' |
2424 | - hardcode_into_libs=yes |
2425 | - dynamic_linker="$host_os dld.sl" |
2426 | - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
2427 | - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
2428 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
2429 | - soname_spec='${libname}${release}${shared_ext}$major' |
2430 | - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
2431 | - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
2432 | - ;; |
2433 | - *) |
2434 | - shrext_cmds='.sl' |
2435 | - dynamic_linker="$host_os dld.sl" |
2436 | - shlibpath_var=SHLIB_PATH |
2437 | - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
2438 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
2439 | - soname_spec='${libname}${release}${shared_ext}$major' |
2440 | - ;; |
2441 | - esac |
2442 | - # HP-UX runs *really* slowly unless shared libraries are mode 555. |
2443 | - postinstall_cmds='chmod 555 $lib' |
2444 | - ;; |
2445 | - |
2446 | -interix[[3-9]]*) |
2447 | - version_type=linux |
2448 | - need_lib_prefix=no |
2449 | - need_version=no |
2450 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
2451 | - soname_spec='${libname}${release}${shared_ext}$major' |
2452 | - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
2453 | - shlibpath_var=LD_LIBRARY_PATH |
2454 | - shlibpath_overrides_runpath=no |
2455 | - hardcode_into_libs=yes |
2456 | - ;; |
2457 | - |
2458 | -irix5* | irix6* | nonstopux*) |
2459 | - case $host_os in |
2460 | - nonstopux*) version_type=nonstopux ;; |
2461 | - *) |
2462 | - if test "$lt_cv_prog_gnu_ld" = yes; then |
2463 | - version_type=linux |
2464 | - else |
2465 | - version_type=irix |
2466 | - fi ;; |
2467 | - esac |
2468 | - need_lib_prefix=no |
2469 | - need_version=no |
2470 | - soname_spec='${libname}${release}${shared_ext}$major' |
2471 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
2472 | - case $host_os in |
2473 | - irix5* | nonstopux*) |
2474 | - libsuff= shlibsuff= |
2475 | - ;; |
2476 | - *) |
2477 | - case $LD in # libtool.m4 will add one of these switches to LD |
2478 | - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
2479 | - libsuff= shlibsuff= libmagic=32-bit;; |
2480 | - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
2481 | - libsuff=32 shlibsuff=N32 libmagic=N32;; |
2482 | - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
2483 | - libsuff=64 shlibsuff=64 libmagic=64-bit;; |
2484 | - *) libsuff= shlibsuff= libmagic=never-match;; |
2485 | - esac |
2486 | - ;; |
2487 | - esac |
2488 | - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
2489 | - shlibpath_overrides_runpath=no |
2490 | - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
2491 | - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
2492 | - hardcode_into_libs=yes |
2493 | - ;; |
2494 | - |
2495 | -# No shared lib support for Linux oldld, aout, or coff. |
2496 | -linux*oldld* | linux*aout* | linux*coff*) |
2497 | - dynamic_linker=no |
2498 | - ;; |
2499 | - |
2500 | -# This must be Linux ELF. |
2501 | -linux* | k*bsd*-gnu) |
2502 | - version_type=linux |
2503 | - need_lib_prefix=no |
2504 | - need_version=no |
2505 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
2506 | - soname_spec='${libname}${release}${shared_ext}$major' |
2507 | - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
2508 | - shlibpath_var=LD_LIBRARY_PATH |
2509 | - shlibpath_overrides_runpath=no |
2510 | - # Some binutils ld are patched to set DT_RUNPATH |
2511 | - save_LDFLAGS=$LDFLAGS |
2512 | - save_libdir=$libdir |
2513 | - eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ |
2514 | - LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" |
2515 | - AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], |
2516 | - [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null], |
2517 | - [shlibpath_overrides_runpath=yes])]) |
2518 | - LDFLAGS=$save_LDFLAGS |
2519 | - libdir=$save_libdir |
2520 | - |
2521 | - # This implies no fast_install, which is unacceptable. |
2522 | - # Some rework will be needed to allow for fast_install |
2523 | - # before this can be enabled. |
2524 | - hardcode_into_libs=yes |
2525 | - |
2526 | - # Append ld.so.conf contents to the search path |
2527 | - if test -f /etc/ld.so.conf; then |
2528 | - 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' ' '` |
2529 | - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
2530 | - fi |
2531 | - |
2532 | - # We used to test for /lib/ld.so.1 and disable shared libraries on |
2533 | - # powerpc, because MkLinux only supported shared libraries with the |
2534 | - # GNU dynamic linker. Since this was broken with cross compilers, |
2535 | - # most powerpc-linux boxes support dynamic linking these days and |
2536 | - # people can always --disable-shared, the test was removed, and we |
2537 | - # assume the GNU/Linux dynamic linker is in use. |
2538 | - dynamic_linker='GNU/Linux ld.so' |
2539 | - ;; |
2540 | - |
2541 | -netbsdelf*-gnu) |
2542 | - version_type=linux |
2543 | - need_lib_prefix=no |
2544 | - need_version=no |
2545 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
2546 | - soname_spec='${libname}${release}${shared_ext}$major' |
2547 | - shlibpath_var=LD_LIBRARY_PATH |
2548 | - shlibpath_overrides_runpath=no |
2549 | - hardcode_into_libs=yes |
2550 | - dynamic_linker='NetBSD ld.elf_so' |
2551 | - ;; |
2552 | - |
2553 | -netbsd*) |
2554 | - version_type=sunos |
2555 | - need_lib_prefix=no |
2556 | - need_version=no |
2557 | - if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
2558 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
2559 | - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
2560 | - dynamic_linker='NetBSD (a.out) ld.so' |
2561 | - else |
2562 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
2563 | - soname_spec='${libname}${release}${shared_ext}$major' |
2564 | - dynamic_linker='NetBSD ld.elf_so' |
2565 | - fi |
2566 | - shlibpath_var=LD_LIBRARY_PATH |
2567 | - shlibpath_overrides_runpath=yes |
2568 | - hardcode_into_libs=yes |
2569 | - ;; |
2570 | - |
2571 | -newsos6) |
2572 | - version_type=linux |
2573 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
2574 | - shlibpath_var=LD_LIBRARY_PATH |
2575 | - shlibpath_overrides_runpath=yes |
2576 | - ;; |
2577 | - |
2578 | -*nto* | *qnx*) |
2579 | - version_type=qnx |
2580 | - need_lib_prefix=no |
2581 | - need_version=no |
2582 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
2583 | - soname_spec='${libname}${release}${shared_ext}$major' |
2584 | - shlibpath_var=LD_LIBRARY_PATH |
2585 | - shlibpath_overrides_runpath=no |
2586 | - hardcode_into_libs=yes |
2587 | - dynamic_linker='ldqnx.so' |
2588 | - ;; |
2589 | - |
2590 | -openbsd*) |
2591 | - version_type=sunos |
2592 | - sys_lib_dlsearch_path_spec="/usr/lib" |
2593 | - need_lib_prefix=no |
2594 | - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
2595 | - case $host_os in |
2596 | - openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
2597 | - *) need_version=no ;; |
2598 | - esac |
2599 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
2600 | - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
2601 | - shlibpath_var=LD_LIBRARY_PATH |
2602 | - if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
2603 | - case $host_os in |
2604 | - openbsd2.[[89]] | openbsd2.[[89]].*) |
2605 | - shlibpath_overrides_runpath=no |
2606 | - ;; |
2607 | - *) |
2608 | - shlibpath_overrides_runpath=yes |
2609 | - ;; |
2610 | - esac |
2611 | - else |
2612 | - shlibpath_overrides_runpath=yes |
2613 | - fi |
2614 | - ;; |
2615 | - |
2616 | -os2*) |
2617 | - libname_spec='$name' |
2618 | - shrext_cmds=".dll" |
2619 | - need_lib_prefix=no |
2620 | - library_names_spec='$libname${shared_ext} $libname.a' |
2621 | - dynamic_linker='OS/2 ld.exe' |
2622 | - shlibpath_var=LIBPATH |
2623 | - ;; |
2624 | - |
2625 | -osf3* | osf4* | osf5*) |
2626 | - version_type=osf |
2627 | - need_lib_prefix=no |
2628 | - need_version=no |
2629 | - soname_spec='${libname}${release}${shared_ext}$major' |
2630 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
2631 | - shlibpath_var=LD_LIBRARY_PATH |
2632 | - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
2633 | - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
2634 | - ;; |
2635 | - |
2636 | -rdos*) |
2637 | - dynamic_linker=no |
2638 | - ;; |
2639 | - |
2640 | -solaris*) |
2641 | - version_type=linux |
2642 | - need_lib_prefix=no |
2643 | - need_version=no |
2644 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
2645 | - soname_spec='${libname}${release}${shared_ext}$major' |
2646 | - shlibpath_var=LD_LIBRARY_PATH |
2647 | - shlibpath_overrides_runpath=yes |
2648 | - hardcode_into_libs=yes |
2649 | - # ldd complains unless libraries are executable |
2650 | - postinstall_cmds='chmod +x $lib' |
2651 | - ;; |
2652 | - |
2653 | -sunos4*) |
2654 | - version_type=sunos |
2655 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
2656 | - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
2657 | - shlibpath_var=LD_LIBRARY_PATH |
2658 | - shlibpath_overrides_runpath=yes |
2659 | - if test "$with_gnu_ld" = yes; then |
2660 | - need_lib_prefix=no |
2661 | - fi |
2662 | - need_version=yes |
2663 | - ;; |
2664 | - |
2665 | -sysv4 | sysv4.3*) |
2666 | - version_type=linux |
2667 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
2668 | - soname_spec='${libname}${release}${shared_ext}$major' |
2669 | - shlibpath_var=LD_LIBRARY_PATH |
2670 | - case $host_vendor in |
2671 | - sni) |
2672 | - shlibpath_overrides_runpath=no |
2673 | - need_lib_prefix=no |
2674 | - runpath_var=LD_RUN_PATH |
2675 | - ;; |
2676 | - siemens) |
2677 | - need_lib_prefix=no |
2678 | - ;; |
2679 | - motorola) |
2680 | - need_lib_prefix=no |
2681 | - need_version=no |
2682 | - shlibpath_overrides_runpath=no |
2683 | - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
2684 | - ;; |
2685 | - esac |
2686 | - ;; |
2687 | - |
2688 | -sysv4*MP*) |
2689 | - if test -d /usr/nec ;then |
2690 | - version_type=linux |
2691 | - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
2692 | - soname_spec='$libname${shared_ext}.$major' |
2693 | - shlibpath_var=LD_LIBRARY_PATH |
2694 | - fi |
2695 | - ;; |
2696 | - |
2697 | -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
2698 | - version_type=freebsd-elf |
2699 | - need_lib_prefix=no |
2700 | - need_version=no |
2701 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
2702 | - soname_spec='${libname}${release}${shared_ext}$major' |
2703 | - shlibpath_var=LD_LIBRARY_PATH |
2704 | - shlibpath_overrides_runpath=yes |
2705 | - hardcode_into_libs=yes |
2706 | - if test "$with_gnu_ld" = yes; then |
2707 | - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
2708 | - else |
2709 | - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
2710 | - case $host_os in |
2711 | - sco3.2v5*) |
2712 | - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
2713 | - ;; |
2714 | - esac |
2715 | - fi |
2716 | - sys_lib_dlsearch_path_spec='/usr/lib' |
2717 | - ;; |
2718 | - |
2719 | -tpf*) |
2720 | - # TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
2721 | - version_type=linux |
2722 | - need_lib_prefix=no |
2723 | - need_version=no |
2724 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
2725 | - shlibpath_var=LD_LIBRARY_PATH |
2726 | - shlibpath_overrides_runpath=no |
2727 | - hardcode_into_libs=yes |
2728 | - ;; |
2729 | - |
2730 | -uts4*) |
2731 | - version_type=linux |
2732 | - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
2733 | - soname_spec='${libname}${release}${shared_ext}$major' |
2734 | - shlibpath_var=LD_LIBRARY_PATH |
2735 | - ;; |
2736 | - |
2737 | -*) |
2738 | - dynamic_linker=no |
2739 | - ;; |
2740 | -esac |
2741 | -AC_MSG_RESULT([$dynamic_linker]) |
2742 | -test "$dynamic_linker" = no && can_build_shared=no |
2743 | - |
2744 | -variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
2745 | -if test "$GCC" = yes; then |
2746 | - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
2747 | -fi |
2748 | - |
2749 | -if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
2750 | - sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" |
2751 | -fi |
2752 | -if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
2753 | - sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" |
2754 | -fi |
2755 | - |
2756 | -_LT_DECL([], [variables_saved_for_relink], [1], |
2757 | - [Variables whose values should be saved in libtool wrapper scripts and |
2758 | - restored at link time]) |
2759 | -_LT_DECL([], [need_lib_prefix], [0], |
2760 | - [Do we need the "lib" prefix for modules?]) |
2761 | -_LT_DECL([], [need_version], [0], [Do we need a version for libraries?]) |
2762 | -_LT_DECL([], [version_type], [0], [Library versioning type]) |
2763 | -_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable]) |
2764 | -_LT_DECL([], [shlibpath_var], [0],[Shared library path variable]) |
2765 | -_LT_DECL([], [shlibpath_overrides_runpath], [0], |
2766 | - [Is shlibpath searched before the hard-coded library search path?]) |
2767 | -_LT_DECL([], [libname_spec], [1], [Format of library name prefix]) |
2768 | -_LT_DECL([], [library_names_spec], [1], |
2769 | - [[List of archive names. First name is the real one, the rest are links. |
2770 | - The last name is the one that the linker finds with -lNAME]]) |
2771 | -_LT_DECL([], [soname_spec], [1], |
2772 | - [[The coded name of the library, if different from the real name]]) |
2773 | -_LT_DECL([], [postinstall_cmds], [2], |
2774 | - [Command to use after installation of a shared archive]) |
2775 | -_LT_DECL([], [postuninstall_cmds], [2], |
2776 | - [Command to use after uninstallation of a shared archive]) |
2777 | -_LT_DECL([], [finish_cmds], [2], |
2778 | - [Commands used to finish a libtool library installation in a directory]) |
2779 | -_LT_DECL([], [finish_eval], [1], |
2780 | - [[As "finish_cmds", except a single script fragment to be evaled but |
2781 | - not shown]]) |
2782 | -_LT_DECL([], [hardcode_into_libs], [0], |
2783 | - [Whether we should hardcode library paths into libraries]) |
2784 | -_LT_DECL([], [sys_lib_search_path_spec], [2], |
2785 | - [Compile-time system search path for libraries]) |
2786 | -_LT_DECL([], [sys_lib_dlsearch_path_spec], [2], |
2787 | - [Run-time system search path for libraries]) |
2788 | -])# _LT_SYS_DYNAMIC_LINKER |
2789 | - |
2790 | - |
2791 | -# _LT_PATH_TOOL_PREFIX(TOOL) |
2792 | -# -------------------------- |
2793 | -# find a file program which can recognize shared library |
2794 | -AC_DEFUN([_LT_PATH_TOOL_PREFIX], |
2795 | -[m4_require([_LT_DECL_EGREP])dnl |
2796 | -AC_MSG_CHECKING([for $1]) |
2797 | -AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, |
2798 | -[case $MAGIC_CMD in |
2799 | -[[\\/*] | ?:[\\/]*]) |
2800 | - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
2801 | - ;; |
2802 | -*) |
2803 | - lt_save_MAGIC_CMD="$MAGIC_CMD" |
2804 | - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
2805 | -dnl $ac_dummy forces splitting on constant user-supplied paths. |
2806 | -dnl POSIX.2 word splitting is done only on the output of word expansions, |
2807 | -dnl not every word. This closes a longstanding sh security hole. |
2808 | - ac_dummy="m4_if([$2], , $PATH, [$2])" |
2809 | - for ac_dir in $ac_dummy; do |
2810 | - IFS="$lt_save_ifs" |
2811 | - test -z "$ac_dir" && ac_dir=. |
2812 | - if test -f $ac_dir/$1; then |
2813 | - lt_cv_path_MAGIC_CMD="$ac_dir/$1" |
2814 | - if test -n "$file_magic_test_file"; then |
2815 | - case $deplibs_check_method in |
2816 | - "file_magic "*) |
2817 | - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
2818 | - MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
2819 | - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
2820 | - $EGREP "$file_magic_regex" > /dev/null; then |
2821 | - : |
2822 | - else |
2823 | - cat <<_LT_EOF 1>&2 |
2824 | - |
2825 | -*** Warning: the command libtool uses to detect shared libraries, |
2826 | -*** $file_magic_cmd, produces output that libtool cannot recognize. |
2827 | -*** The result is that libtool may fail to recognize shared libraries |
2828 | -*** as such. This will affect the creation of libtool libraries that |
2829 | -*** depend on shared libraries, but programs linked with such libtool |
2830 | -*** libraries will work regardless of this problem. Nevertheless, you |
2831 | -*** may want to report the problem to your system manager and/or to |
2832 | -*** bug-libtool@gnu.org |
2833 | - |
2834 | -_LT_EOF |
2835 | - fi ;; |
2836 | - esac |
2837 | - fi |
2838 | - break |
2839 | - fi |
2840 | - done |
2841 | - IFS="$lt_save_ifs" |
2842 | - MAGIC_CMD="$lt_save_MAGIC_CMD" |
2843 | - ;; |
2844 | -esac]) |
2845 | -MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
2846 | -if test -n "$MAGIC_CMD"; then |
2847 | - AC_MSG_RESULT($MAGIC_CMD) |
2848 | -else |
2849 | - AC_MSG_RESULT(no) |
2850 | -fi |
2851 | -_LT_DECL([], [MAGIC_CMD], [0], |
2852 | - [Used to examine libraries when file_magic_cmd begins with "file"])dnl |
2853 | -])# _LT_PATH_TOOL_PREFIX |
2854 | - |
2855 | -# Old name: |
2856 | -AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX]) |
2857 | -dnl aclocal-1.4 backwards compatibility: |
2858 | -dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], []) |
2859 | - |
2860 | - |
2861 | -# _LT_PATH_MAGIC |
2862 | -# -------------- |
2863 | -# find a file program which can recognize a shared library |
2864 | -m4_defun([_LT_PATH_MAGIC], |
2865 | -[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) |
2866 | -if test -z "$lt_cv_path_MAGIC_CMD"; then |
2867 | - if test -n "$ac_tool_prefix"; then |
2868 | - _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) |
2869 | - else |
2870 | - MAGIC_CMD=: |
2871 | - fi |
2872 | -fi |
2873 | -])# _LT_PATH_MAGIC |
2874 | - |
2875 | - |
2876 | -# LT_PATH_LD |
2877 | -# ---------- |
2878 | -# find the pathname to the GNU or non-GNU linker |
2879 | -AC_DEFUN([LT_PATH_LD], |
2880 | -[AC_REQUIRE([AC_PROG_CC])dnl |
2881 | -AC_REQUIRE([AC_CANONICAL_HOST])dnl |
2882 | -AC_REQUIRE([AC_CANONICAL_BUILD])dnl |
2883 | -m4_require([_LT_DECL_SED])dnl |
2884 | -m4_require([_LT_DECL_EGREP])dnl |
2885 | - |
2886 | -AC_ARG_WITH([gnu-ld], |
2887 | - [AS_HELP_STRING([--with-gnu-ld], |
2888 | - [assume the C compiler uses GNU ld @<:@default=no@:>@])], |
2889 | - [test "$withval" = no || with_gnu_ld=yes], |
2890 | - [with_gnu_ld=no])dnl |
2891 | - |
2892 | -ac_prog=ld |
2893 | -if test "$GCC" = yes; then |
2894 | - # Check if gcc -print-prog-name=ld gives a path. |
2895 | - AC_MSG_CHECKING([for ld used by $CC]) |
2896 | - case $host in |
2897 | - *-*-mingw*) |
2898 | - # gcc leaves a trailing carriage return which upsets mingw |
2899 | - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
2900 | - *) |
2901 | - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
2902 | - esac |
2903 | - case $ac_prog in |
2904 | - # Accept absolute paths. |
2905 | - [[\\/]]* | ?:[[\\/]]*) |
2906 | - re_direlt='/[[^/]][[^/]]*/\.\./' |
2907 | - # Canonicalize the pathname of ld |
2908 | - ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
2909 | - while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
2910 | - ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
2911 | - done |
2912 | - test -z "$LD" && LD="$ac_prog" |
2913 | - ;; |
2914 | - "") |
2915 | - # If it fails, then pretend we aren't using GCC. |
2916 | - ac_prog=ld |
2917 | - ;; |
2918 | - *) |
2919 | - # If it is relative, then search for the first ld in PATH. |
2920 | - with_gnu_ld=unknown |
2921 | - ;; |
2922 | - esac |
2923 | -elif test "$with_gnu_ld" = yes; then |
2924 | - AC_MSG_CHECKING([for GNU ld]) |
2925 | -else |
2926 | - AC_MSG_CHECKING([for non-GNU ld]) |
2927 | -fi |
2928 | -AC_CACHE_VAL(lt_cv_path_LD, |
2929 | -[if test -z "$LD"; then |
2930 | - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
2931 | - for ac_dir in $PATH; do |
2932 | - IFS="$lt_save_ifs" |
2933 | - test -z "$ac_dir" && ac_dir=. |
2934 | - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
2935 | - lt_cv_path_LD="$ac_dir/$ac_prog" |
2936 | - # Check to see if the program is GNU ld. I'd rather use --version, |
2937 | - # but apparently some variants of GNU ld only accept -v. |
2938 | - # Break only if it was the GNU/non-GNU ld that we prefer. |
2939 | - case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
2940 | - *GNU* | *'with BFD'*) |
2941 | - test "$with_gnu_ld" != no && break |
2942 | - ;; |
2943 | - *) |
2944 | - test "$with_gnu_ld" != yes && break |
2945 | - ;; |
2946 | - esac |
2947 | - fi |
2948 | - done |
2949 | - IFS="$lt_save_ifs" |
2950 | -else |
2951 | - lt_cv_path_LD="$LD" # Let the user override the test with a path. |
2952 | -fi]) |
2953 | -LD="$lt_cv_path_LD" |
2954 | -if test -n "$LD"; then |
2955 | - AC_MSG_RESULT($LD) |
2956 | -else |
2957 | - AC_MSG_RESULT(no) |
2958 | -fi |
2959 | -test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) |
2960 | -_LT_PATH_LD_GNU |
2961 | -AC_SUBST([LD]) |
2962 | - |
2963 | -_LT_TAGDECL([], [LD], [1], [The linker used to build libraries]) |
2964 | -])# LT_PATH_LD |
2965 | - |
2966 | -# Old names: |
2967 | -AU_ALIAS([AM_PROG_LD], [LT_PATH_LD]) |
2968 | -AU_ALIAS([AC_PROG_LD], [LT_PATH_LD]) |
2969 | -dnl aclocal-1.4 backwards compatibility: |
2970 | -dnl AC_DEFUN([AM_PROG_LD], []) |
2971 | -dnl AC_DEFUN([AC_PROG_LD], []) |
2972 | - |
2973 | - |
2974 | -# _LT_PATH_LD_GNU |
2975 | -#- -------------- |
2976 | -m4_defun([_LT_PATH_LD_GNU], |
2977 | -[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, |
2978 | -[# I'd rather use --version here, but apparently some GNU lds only accept -v. |
2979 | -case `$LD -v 2>&1 </dev/null` in |
2980 | -*GNU* | *'with BFD'*) |
2981 | - lt_cv_prog_gnu_ld=yes |
2982 | - ;; |
2983 | -*) |
2984 | - lt_cv_prog_gnu_ld=no |
2985 | - ;; |
2986 | -esac]) |
2987 | -with_gnu_ld=$lt_cv_prog_gnu_ld |
2988 | -])# _LT_PATH_LD_GNU |
2989 | - |
2990 | - |
2991 | -# _LT_CMD_RELOAD |
2992 | -# -------------- |
2993 | -# find reload flag for linker |
2994 | -# -- PORTME Some linkers may need a different reload flag. |
2995 | -m4_defun([_LT_CMD_RELOAD], |
2996 | -[AC_CACHE_CHECK([for $LD option to reload object files], |
2997 | - lt_cv_ld_reload_flag, |
2998 | - [lt_cv_ld_reload_flag='-r']) |
2999 | -reload_flag=$lt_cv_ld_reload_flag |
3000 | -case $reload_flag in |
3001 | -"" | " "*) ;; |
3002 | -*) reload_flag=" $reload_flag" ;; |
3003 | -esac |
3004 | -reload_cmds='$LD$reload_flag -o $output$reload_objs' |
3005 | -case $host_os in |
3006 | - darwin*) |
3007 | - if test "$GCC" = yes; then |
3008 | - reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
3009 | - else |
3010 | - reload_cmds='$LD$reload_flag -o $output$reload_objs' |
3011 | - fi |
3012 | - ;; |
3013 | -esac |
3014 | -_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl |
3015 | -_LT_DECL([], [reload_cmds], [2])dnl |
3016 | -])# _LT_CMD_RELOAD |
3017 | - |
3018 | - |
3019 | -# _LT_CHECK_MAGIC_METHOD |
3020 | -# ---------------------- |
3021 | -# how to check for library dependencies |
3022 | -# -- PORTME fill in with the dynamic library characteristics |
3023 | -m4_defun([_LT_CHECK_MAGIC_METHOD], |
3024 | -[m4_require([_LT_DECL_EGREP]) |
3025 | -m4_require([_LT_DECL_OBJDUMP]) |
3026 | -AC_CACHE_CHECK([how to recognize dependent libraries], |
3027 | -lt_cv_deplibs_check_method, |
3028 | -[lt_cv_file_magic_cmd='$MAGIC_CMD' |
3029 | -lt_cv_file_magic_test_file= |
3030 | -lt_cv_deplibs_check_method='unknown' |
3031 | -# Need to set the preceding variable on all platforms that support |
3032 | -# interlibrary dependencies. |
3033 | -# 'none' -- dependencies not supported. |
3034 | -# `unknown' -- same as none, but documents that we really don't know. |
3035 | -# 'pass_all' -- all dependencies passed with no checks. |
3036 | -# 'test_compile' -- check by making test program. |
3037 | -# 'file_magic [[regex]]' -- check by looking for files in library path |
3038 | -# which responds to the $file_magic_cmd with a given extended regex. |
3039 | -# If you have `file' or equivalent on your system and you're not sure |
3040 | -# whether `pass_all' will *always* work, you probably want this one. |
3041 | - |
3042 | -case $host_os in |
3043 | -aix[[4-9]]*) |
3044 | - lt_cv_deplibs_check_method=pass_all |
3045 | - ;; |
3046 | - |
3047 | -beos*) |
3048 | - lt_cv_deplibs_check_method=pass_all |
3049 | - ;; |
3050 | - |
3051 | -bsdi[[45]]*) |
3052 | - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' |
3053 | - lt_cv_file_magic_cmd='/usr/bin/file -L' |
3054 | - lt_cv_file_magic_test_file=/shlib/libc.so |
3055 | - ;; |
3056 | - |
3057 | -cygwin*) |
3058 | - # func_win32_libid is a shell function defined in ltmain.sh |
3059 | - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
3060 | - lt_cv_file_magic_cmd='func_win32_libid' |
3061 | - ;; |
3062 | - |
3063 | -mingw* | pw32*) |
3064 | - # Base MSYS/MinGW do not provide the 'file' command needed by |
3065 | - # func_win32_libid shell function, so use a weaker test based on 'objdump', |
3066 | - # unless we find 'file', for example because we are cross-compiling. |
3067 | - if ( file / ) >/dev/null 2>&1; then |
3068 | - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
3069 | - lt_cv_file_magic_cmd='func_win32_libid' |
3070 | - else |
3071 | - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
3072 | - lt_cv_file_magic_cmd='$OBJDUMP -f' |
3073 | - fi |
3074 | - ;; |
3075 | - |
3076 | -cegcc) |
3077 | - # use the weaker test based on 'objdump'. See mingw*. |
3078 | - lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' |
3079 | - lt_cv_file_magic_cmd='$OBJDUMP -f' |
3080 | - ;; |
3081 | - |
3082 | -darwin* | rhapsody*) |
3083 | - lt_cv_deplibs_check_method=pass_all |
3084 | - ;; |
3085 | - |
3086 | -freebsd* | dragonfly*) |
3087 | - if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
3088 | - case $host_cpu in |
3089 | - i*86 ) |
3090 | - # Not sure whether the presence of OpenBSD here was a mistake. |
3091 | - # Let's accept both of them until this is cleared up. |
3092 | - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' |
3093 | - lt_cv_file_magic_cmd=/usr/bin/file |
3094 | - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
3095 | - ;; |
3096 | - esac |
3097 | - else |
3098 | - lt_cv_deplibs_check_method=pass_all |
3099 | - fi |
3100 | - ;; |
3101 | - |
3102 | -gnu*) |
3103 | - lt_cv_deplibs_check_method=pass_all |
3104 | - ;; |
3105 | - |
3106 | -hpux10.20* | hpux11*) |
3107 | - lt_cv_file_magic_cmd=/usr/bin/file |
3108 | - case $host_cpu in |
3109 | - ia64*) |
3110 | - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' |
3111 | - lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
3112 | - ;; |
3113 | - hppa*64*) |
3114 | - [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'] |
3115 | - lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
3116 | - ;; |
3117 | - *) |
3118 | - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' |
3119 | - lt_cv_file_magic_test_file=/usr/lib/libc.sl |
3120 | - ;; |
3121 | - esac |
3122 | - ;; |
3123 | - |
3124 | -interix[[3-9]]*) |
3125 | - # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
3126 | - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' |
3127 | - ;; |
3128 | - |
3129 | -irix5* | irix6* | nonstopux*) |
3130 | - case $LD in |
3131 | - *-32|*"-32 ") libmagic=32-bit;; |
3132 | - *-n32|*"-n32 ") libmagic=N32;; |
3133 | - *-64|*"-64 ") libmagic=64-bit;; |
3134 | - *) libmagic=never-match;; |
3135 | - esac |
3136 | - lt_cv_deplibs_check_method=pass_all |
3137 | - ;; |
3138 | - |
3139 | -# This must be Linux ELF. |
3140 | -linux* | k*bsd*-gnu) |
3141 | - lt_cv_deplibs_check_method=pass_all |
3142 | - ;; |
3143 | - |
3144 | -netbsd* | netbsdelf*-gnu) |
3145 | - if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
3146 | - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' |
3147 | - else |
3148 | - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' |
3149 | - fi |
3150 | - ;; |
3151 | - |
3152 | -newos6*) |
3153 | - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' |
3154 | - lt_cv_file_magic_cmd=/usr/bin/file |
3155 | - lt_cv_file_magic_test_file=/usr/lib/libnls.so |
3156 | - ;; |
3157 | - |
3158 | -*nto* | *qnx*) |
3159 | - lt_cv_deplibs_check_method=pass_all |
3160 | - ;; |
3161 | - |
3162 | -openbsd*) |
3163 | - if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
3164 | - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' |
3165 | - else |
3166 | - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' |
3167 | - fi |
3168 | - ;; |
3169 | - |
3170 | -osf3* | osf4* | osf5*) |
3171 | - lt_cv_deplibs_check_method=pass_all |
3172 | - ;; |
3173 | - |
3174 | -rdos*) |
3175 | - lt_cv_deplibs_check_method=pass_all |
3176 | - ;; |
3177 | - |
3178 | -solaris*) |
3179 | - lt_cv_deplibs_check_method=pass_all |
3180 | - ;; |
3181 | - |
3182 | -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
3183 | - lt_cv_deplibs_check_method=pass_all |
3184 | - ;; |
3185 | - |
3186 | -sysv4 | sysv4.3*) |
3187 | - case $host_vendor in |
3188 | - motorola) |
3189 | - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]' |
3190 | - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
3191 | - ;; |
3192 | - ncr) |
3193 | - lt_cv_deplibs_check_method=pass_all |
3194 | - ;; |
3195 | - sequent) |
3196 | - lt_cv_file_magic_cmd='/bin/file' |
3197 | - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' |
3198 | - ;; |
3199 | - sni) |
3200 | - lt_cv_file_magic_cmd='/bin/file' |
3201 | - lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" |
3202 | - lt_cv_file_magic_test_file=/lib/libc.so |
3203 | - ;; |
3204 | - siemens) |
3205 | - lt_cv_deplibs_check_method=pass_all |
3206 | - ;; |
3207 | - pc) |
3208 | - lt_cv_deplibs_check_method=pass_all |
3209 | - ;; |
3210 | - esac |
3211 | - ;; |
3212 | - |
3213 | -tpf*) |
3214 | - lt_cv_deplibs_check_method=pass_all |
3215 | - ;; |
3216 | -esac |
3217 | -]) |
3218 | -file_magic_cmd=$lt_cv_file_magic_cmd |
3219 | -deplibs_check_method=$lt_cv_deplibs_check_method |
3220 | -test -z "$deplibs_check_method" && deplibs_check_method=unknown |
3221 | - |
3222 | -_LT_DECL([], [deplibs_check_method], [1], |
3223 | - [Method to check whether dependent libraries are shared objects]) |
3224 | -_LT_DECL([], [file_magic_cmd], [1], |
3225 | - [Command to use when deplibs_check_method == "file_magic"]) |
3226 | -])# _LT_CHECK_MAGIC_METHOD |
3227 | - |
3228 | - |
3229 | -# LT_PATH_NM |
3230 | -# ---------- |
3231 | -# find the pathname to a BSD- or MS-compatible name lister |
3232 | -AC_DEFUN([LT_PATH_NM], |
3233 | -[AC_REQUIRE([AC_PROG_CC])dnl |
3234 | -AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM, |
3235 | -[if test -n "$NM"; then |
3236 | - # Let the user override the test. |
3237 | - lt_cv_path_NM="$NM" |
3238 | -else |
3239 | - lt_nm_to_check="${ac_tool_prefix}nm" |
3240 | - if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
3241 | - lt_nm_to_check="$lt_nm_to_check nm" |
3242 | - fi |
3243 | - for lt_tmp_nm in $lt_nm_to_check; do |
3244 | - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
3245 | - for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
3246 | - IFS="$lt_save_ifs" |
3247 | - test -z "$ac_dir" && ac_dir=. |
3248 | - tmp_nm="$ac_dir/$lt_tmp_nm" |
3249 | - if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
3250 | - # Check to see if the nm accepts a BSD-compat flag. |
3251 | - # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
3252 | - # nm: unknown option "B" ignored |
3253 | - # Tru64's nm complains that /dev/null is an invalid object file |
3254 | - case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
3255 | - */dev/null* | *'Invalid file or object type'*) |
3256 | - lt_cv_path_NM="$tmp_nm -B" |
3257 | - break |
3258 | - ;; |
3259 | - *) |
3260 | - case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
3261 | - */dev/null*) |
3262 | - lt_cv_path_NM="$tmp_nm -p" |
3263 | - break |
3264 | - ;; |
3265 | - *) |
3266 | - lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
3267 | - continue # so that we can try to find one that supports BSD flags |
3268 | - ;; |
3269 | - esac |
3270 | - ;; |
3271 | - esac |
3272 | - fi |
3273 | - done |
3274 | - IFS="$lt_save_ifs" |
3275 | - done |
3276 | - : ${lt_cv_path_NM=no} |
3277 | -fi]) |
3278 | -if test "$lt_cv_path_NM" != "no"; then |
3279 | - NM="$lt_cv_path_NM" |
3280 | -else |
3281 | - # Didn't find any BSD compatible name lister, look for dumpbin. |
3282 | - AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :) |
3283 | - AC_SUBST([DUMPBIN]) |
3284 | - if test "$DUMPBIN" != ":"; then |
3285 | - NM="$DUMPBIN" |
3286 | - fi |
3287 | -fi |
3288 | -test -z "$NM" && NM=nm |
3289 | -AC_SUBST([NM]) |
3290 | -_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl |
3291 | - |
3292 | -AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], |
3293 | - [lt_cv_nm_interface="BSD nm" |
3294 | - echo "int some_variable = 0;" > conftest.$ac_ext |
3295 | - (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD) |
3296 | - (eval "$ac_compile" 2>conftest.err) |
3297 | - cat conftest.err >&AS_MESSAGE_LOG_FD |
3298 | - (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD) |
3299 | - (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
3300 | - cat conftest.err >&AS_MESSAGE_LOG_FD |
3301 | - (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD) |
3302 | - cat conftest.out >&AS_MESSAGE_LOG_FD |
3303 | - if $GREP 'External.*some_variable' conftest.out > /dev/null; then |
3304 | - lt_cv_nm_interface="MS dumpbin" |
3305 | - fi |
3306 | - rm -f conftest*]) |
3307 | -])# LT_PATH_NM |
3308 | - |
3309 | -# Old names: |
3310 | -AU_ALIAS([AM_PROG_NM], [LT_PATH_NM]) |
3311 | -AU_ALIAS([AC_PROG_NM], [LT_PATH_NM]) |
3312 | -dnl aclocal-1.4 backwards compatibility: |
3313 | -dnl AC_DEFUN([AM_PROG_NM], []) |
3314 | -dnl AC_DEFUN([AC_PROG_NM], []) |
3315 | - |
3316 | - |
3317 | -# LT_LIB_M |
3318 | -# -------- |
3319 | -# check for math library |
3320 | -AC_DEFUN([LT_LIB_M], |
3321 | -[AC_REQUIRE([AC_CANONICAL_HOST])dnl |
3322 | -LIBM= |
3323 | -case $host in |
3324 | -*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) |
3325 | - # These system don't have libm, or don't need it |
3326 | - ;; |
3327 | -*-ncr-sysv4.3*) |
3328 | - AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") |
3329 | - AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") |
3330 | - ;; |
3331 | -*) |
3332 | - AC_CHECK_LIB(m, cos, LIBM="-lm") |
3333 | - ;; |
3334 | -esac |
3335 | -AC_SUBST([LIBM]) |
3336 | -])# LT_LIB_M |
3337 | - |
3338 | -# Old name: |
3339 | -AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M]) |
3340 | -dnl aclocal-1.4 backwards compatibility: |
3341 | -dnl AC_DEFUN([AC_CHECK_LIBM], []) |
3342 | - |
3343 | - |
3344 | -# _LT_COMPILER_NO_RTTI([TAGNAME]) |
3345 | -# ------------------------------- |
3346 | -m4_defun([_LT_COMPILER_NO_RTTI], |
3347 | -[m4_require([_LT_TAG_COMPILER])dnl |
3348 | - |
3349 | -_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= |
3350 | - |
3351 | -if test "$GCC" = yes; then |
3352 | - _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' |
3353 | - |
3354 | - _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], |
3355 | - lt_cv_prog_compiler_rtti_exceptions, |
3356 | - [-fno-rtti -fno-exceptions], [], |
3357 | - [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) |
3358 | -fi |
3359 | -_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1], |
3360 | - [Compiler flag to turn off builtin functions]) |
3361 | -])# _LT_COMPILER_NO_RTTI |
3362 | - |
3363 | - |
3364 | -# _LT_CMD_GLOBAL_SYMBOLS |
3365 | -# ---------------------- |
3366 | -m4_defun([_LT_CMD_GLOBAL_SYMBOLS], |
3367 | -[AC_REQUIRE([AC_CANONICAL_HOST])dnl |
3368 | -AC_REQUIRE([AC_PROG_CC])dnl |
3369 | -AC_REQUIRE([LT_PATH_NM])dnl |
3370 | -AC_REQUIRE([LT_PATH_LD])dnl |
3371 | -m4_require([_LT_DECL_SED])dnl |
3372 | -m4_require([_LT_DECL_EGREP])dnl |
3373 | -m4_require([_LT_TAG_COMPILER])dnl |
3374 | - |
3375 | -# Check for command to grab the raw symbol name followed by C symbol from nm. |
3376 | -AC_MSG_CHECKING([command to parse $NM output from $compiler object]) |
3377 | -AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], |
3378 | -[ |
3379 | -# These are sane defaults that work on at least a few old systems. |
3380 | -# [They come from Ultrix. What could be older than Ultrix?!! ;)] |
3381 | - |
3382 | -# Character class describing NM global symbol codes. |
3383 | -symcode='[[BCDEGRST]]' |
3384 | - |
3385 | -# Regexp to match symbols that can be accessed directly from C. |
3386 | -sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' |
3387 | - |
3388 | -# Define system-specific variables. |
3389 | -case $host_os in |
3390 | -aix*) |
3391 | - symcode='[[BCDT]]' |
3392 | - ;; |
3393 | -cygwin* | mingw* | pw32* | cegcc*) |
3394 | - symcode='[[ABCDGISTW]]' |
3395 | - ;; |
3396 | -hpux*) |
3397 | - if test "$host_cpu" = ia64; then |
3398 | - symcode='[[ABCDEGRST]]' |
3399 | - fi |
3400 | - ;; |
3401 | -irix* | nonstopux*) |
3402 | - symcode='[[BCDEGRST]]' |
3403 | - ;; |
3404 | -osf*) |
3405 | - symcode='[[BCDEGQRST]]' |
3406 | - ;; |
3407 | -solaris*) |
3408 | - symcode='[[BDRT]]' |
3409 | - ;; |
3410 | -sco3.2v5*) |
3411 | - symcode='[[DT]]' |
3412 | - ;; |
3413 | -sysv4.2uw2*) |
3414 | - symcode='[[DT]]' |
3415 | - ;; |
3416 | -sysv5* | sco5v6* | unixware* | OpenUNIX*) |
3417 | - symcode='[[ABDT]]' |
3418 | - ;; |
3419 | -sysv4) |
3420 | - symcode='[[DFNSTU]]' |
3421 | - ;; |
3422 | -esac |
3423 | - |
3424 | -# If we're using GNU nm, then use its standard symbol codes. |
3425 | -case `$NM -V 2>&1` in |
3426 | -*GNU* | *'with BFD'*) |
3427 | - symcode='[[ABCDGIRSTW]]' ;; |
3428 | -esac |
3429 | - |
3430 | -# Transform an extracted symbol line into a proper C declaration. |
3431 | -# Some systems (esp. on ia64) link data and code symbols differently, |
3432 | -# so use this general approach. |
3433 | -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
3434 | - |
3435 | -# Transform an extracted symbol line into symbol name and symbol address |
3436 | -lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'" |
3437 | -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'" |
3438 | - |
3439 | -# Handle CRLF in mingw tool chain |
3440 | -opt_cr= |
3441 | -case $build_os in |
3442 | -mingw*) |
3443 | - opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
3444 | - ;; |
3445 | -esac |
3446 | - |
3447 | -# Try without a prefix underscore, then with it. |
3448 | -for ac_symprfx in "" "_"; do |
3449 | - |
3450 | - # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
3451 | - symxfrm="\\1 $ac_symprfx\\2 \\2" |
3452 | - |
3453 | - # Write the raw and C identifiers. |
3454 | - if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
3455 | - # Fake it for dumpbin and say T for any non-static function |
3456 | - # and D for any global variable. |
3457 | - # Also find C++ and __fastcall symbols from MSVC++, |
3458 | - # which start with @ or ?. |
3459 | - lt_cv_sys_global_symbol_pipe="$AWK ['"\ |
3460 | -" {last_section=section; section=\$ 3};"\ |
3461 | -" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
3462 | -" \$ 0!~/External *\|/{next};"\ |
3463 | -" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ |
3464 | -" {if(hide[section]) next};"\ |
3465 | -" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ |
3466 | -" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ |
3467 | -" s[1]~/^[@?]/{print s[1], s[1]; next};"\ |
3468 | -" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ |
3469 | -" ' prfx=^$ac_symprfx]" |
3470 | - else |
3471 | - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
3472 | - fi |
3473 | - |
3474 | - # Check to see that the pipe works correctly. |
3475 | - pipe_works=no |
3476 | - |
3477 | - rm -f conftest* |
3478 | - cat > conftest.$ac_ext <<_LT_EOF |
3479 | -#ifdef __cplusplus |
3480 | -extern "C" { |
3481 | -#endif |
3482 | -char nm_test_var; |
3483 | -void nm_test_func(void); |
3484 | -void nm_test_func(void){} |
3485 | -#ifdef __cplusplus |
3486 | -} |
3487 | -#endif |
3488 | -int main(){nm_test_var='a';nm_test_func();return(0);} |
3489 | -_LT_EOF |
3490 | - |
3491 | - if AC_TRY_EVAL(ac_compile); then |
3492 | - # Now try to grab the symbols. |
3493 | - nlist=conftest.nm |
3494 | - if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then |
3495 | - # Try sorting and uniquifying the output. |
3496 | - if sort "$nlist" | uniq > "$nlist"T; then |
3497 | - mv -f "$nlist"T "$nlist" |
3498 | - else |
3499 | - rm -f "$nlist"T |
3500 | - fi |
3501 | - |
3502 | - # Make sure that we snagged all the symbols we need. |
3503 | - if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
3504 | - if $GREP ' nm_test_func$' "$nlist" >/dev/null; then |
3505 | - cat <<_LT_EOF > conftest.$ac_ext |
3506 | -#ifdef __cplusplus |
3507 | -extern "C" { |
3508 | -#endif |
3509 | - |
3510 | -_LT_EOF |
3511 | - # Now generate the symbol file. |
3512 | - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' |
3513 | - |
3514 | - cat <<_LT_EOF >> conftest.$ac_ext |
3515 | - |
3516 | -/* The mapping between symbol names and symbols. */ |
3517 | -const struct { |
3518 | - const char *name; |
3519 | - void *address; |
3520 | -} |
3521 | -lt__PROGRAM__LTX_preloaded_symbols[[]] = |
3522 | -{ |
3523 | - { "@PROGRAM@", (void *) 0 }, |
3524 | -_LT_EOF |
3525 | - $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
3526 | - cat <<\_LT_EOF >> conftest.$ac_ext |
3527 | - {0, (void *) 0} |
3528 | -}; |
3529 | - |
3530 | -/* This works around a problem in FreeBSD linker */ |
3531 | -#ifdef FREEBSD_WORKAROUND |
3532 | -static const void *lt_preloaded_setup() { |
3533 | - return lt__PROGRAM__LTX_preloaded_symbols; |
3534 | -} |
3535 | -#endif |
3536 | - |
3537 | -#ifdef __cplusplus |
3538 | -} |
3539 | -#endif |
3540 | -_LT_EOF |
3541 | - # Now try linking the two files. |
3542 | - mv conftest.$ac_objext conftstm.$ac_objext |
3543 | - lt_save_LIBS="$LIBS" |
3544 | - lt_save_CFLAGS="$CFLAGS" |
3545 | - LIBS="conftstm.$ac_objext" |
3546 | - CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" |
3547 | - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then |
3548 | - pipe_works=yes |
3549 | - fi |
3550 | - LIBS="$lt_save_LIBS" |
3551 | - CFLAGS="$lt_save_CFLAGS" |
3552 | - else |
3553 | - echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD |
3554 | - fi |
3555 | - else |
3556 | - echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD |
3557 | - fi |
3558 | - else |
3559 | - echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD |
3560 | - fi |
3561 | - else |
3562 | - echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD |
3563 | - cat conftest.$ac_ext >&5 |
3564 | - fi |
3565 | - rm -rf conftest* conftst* |
3566 | - |
3567 | - # Do not use the global_symbol_pipe unless it works. |
3568 | - if test "$pipe_works" = yes; then |
3569 | - break |
3570 | - else |
3571 | - lt_cv_sys_global_symbol_pipe= |
3572 | - fi |
3573 | -done |
3574 | -]) |
3575 | -if test -z "$lt_cv_sys_global_symbol_pipe"; then |
3576 | - lt_cv_sys_global_symbol_to_cdecl= |
3577 | -fi |
3578 | -if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
3579 | - AC_MSG_RESULT(failed) |
3580 | -else |
3581 | - AC_MSG_RESULT(ok) |
3582 | -fi |
3583 | - |
3584 | -_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], |
3585 | - [Take the output of nm and produce a listing of raw symbols and C names]) |
3586 | -_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], |
3587 | - [Transform the output of nm in a proper C declaration]) |
3588 | -_LT_DECL([global_symbol_to_c_name_address], |
3589 | - [lt_cv_sys_global_symbol_to_c_name_address], [1], |
3590 | - [Transform the output of nm in a C name address pair]) |
3591 | -_LT_DECL([global_symbol_to_c_name_address_lib_prefix], |
3592 | - [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], |
3593 | - [Transform the output of nm in a C name address pair when lib prefix is needed]) |
3594 | -]) # _LT_CMD_GLOBAL_SYMBOLS |
3595 | - |
3596 | - |
3597 | -# _LT_COMPILER_PIC([TAGNAME]) |
3598 | -# --------------------------- |
3599 | -m4_defun([_LT_COMPILER_PIC], |
3600 | -[m4_require([_LT_TAG_COMPILER])dnl |
3601 | -_LT_TAGVAR(lt_prog_compiler_wl, $1)= |
3602 | -_LT_TAGVAR(lt_prog_compiler_pic, $1)= |
3603 | -_LT_TAGVAR(lt_prog_compiler_static, $1)= |
3604 | - |
3605 | -AC_MSG_CHECKING([for $compiler option to produce PIC]) |
3606 | -m4_if([$1], [CXX], [ |
3607 | - # C++ specific cases for pic, static, wl, etc. |
3608 | - if test "$GXX" = yes; then |
3609 | - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
3610 | - _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' |
3611 | - |
3612 | - case $host_os in |
3613 | - aix*) |
3614 | - # All AIX code is PIC. |
3615 | - if test "$host_cpu" = ia64; then |
3616 | - # AIX 5 now supports IA64 processor |
3617 | - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
3618 | - fi |
3619 | - ;; |
3620 | - |
3621 | - amigaos*) |
3622 | - case $host_cpu in |
3623 | - powerpc) |
3624 | - # see comment about AmigaOS4 .so support |
3625 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
3626 | - ;; |
3627 | - m68k) |
3628 | - # FIXME: we need at least 68020 code to build shared libraries, but |
3629 | - # adding the `-m68020' flag to GCC prevents building anything better, |
3630 | - # like `-m68040'. |
3631 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' |
3632 | - ;; |
3633 | - esac |
3634 | - ;; |
3635 | - |
3636 | - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
3637 | - # PIC is the default for these OSes. |
3638 | - ;; |
3639 | - mingw* | cygwin* | os2* | pw32* | cegcc*) |
3640 | - # This hack is so that the source file can tell whether it is being |
3641 | - # built for inclusion in a dll (and should export symbols for example). |
3642 | - # Although the cygwin gcc ignores -fPIC, still need this for old-style |
3643 | - # (--disable-auto-import) libraries |
3644 | - m4_if([$1], [GCJ], [], |
3645 | - [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) |
3646 | - ;; |
3647 | - darwin* | rhapsody*) |
3648 | - # PIC is the default on this platform |
3649 | - # Common symbols not allowed in MH_DYLIB files |
3650 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' |
3651 | - ;; |
3652 | - *djgpp*) |
3653 | - # DJGPP does not support shared libraries at all |
3654 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)= |
3655 | - ;; |
3656 | - interix[[3-9]]*) |
3657 | - # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
3658 | - # Instead, we relocate shared libraries at runtime. |
3659 | - ;; |
3660 | - sysv4*MP*) |
3661 | - if test -d /usr/nec; then |
3662 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic |
3663 | - fi |
3664 | - ;; |
3665 | - hpux*) |
3666 | - # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
3667 | - # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
3668 | - # sets the default TLS model and affects inlining. |
3669 | - case $host_cpu in |
3670 | - hppa*64*) |
3671 | - ;; |
3672 | - *) |
3673 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
3674 | - ;; |
3675 | - esac |
3676 | - ;; |
3677 | - *qnx* | *nto*) |
3678 | - # QNX uses GNU C++, but need to define -shared option too, otherwise |
3679 | - # it will coredump. |
3680 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' |
3681 | - ;; |
3682 | - *) |
3683 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
3684 | - ;; |
3685 | - esac |
3686 | - else |
3687 | - case $host_os in |
3688 | - aix[[4-9]]*) |
3689 | - # All AIX code is PIC. |
3690 | - if test "$host_cpu" = ia64; then |
3691 | - # AIX 5 now supports IA64 processor |
3692 | - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
3693 | - else |
3694 | - _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' |
3695 | - fi |
3696 | - ;; |
3697 | - chorus*) |
3698 | - case $cc_basename in |
3699 | - cxch68*) |
3700 | - # Green Hills C++ Compiler |
3701 | - # _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" |
3702 | - ;; |
3703 | - esac |
3704 | - ;; |
3705 | - dgux*) |
3706 | - case $cc_basename in |
3707 | - ec++*) |
3708 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
3709 | - ;; |
3710 | - ghcx*) |
3711 | - # Green Hills C++ Compiler |
3712 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
3713 | - ;; |
3714 | - *) |
3715 | - ;; |
3716 | - esac |
3717 | - ;; |
3718 | - freebsd* | dragonfly*) |
3719 | - # FreeBSD uses GNU C++ |
3720 | - ;; |
3721 | - hpux9* | hpux10* | hpux11*) |
3722 | - case $cc_basename in |
3723 | - CC*) |
3724 | - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
3725 | - _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' |
3726 | - if test "$host_cpu" != ia64; then |
3727 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' |
3728 | - fi |
3729 | - ;; |
3730 | - aCC*) |
3731 | - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
3732 | - _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' |
3733 | - case $host_cpu in |
3734 | - hppa*64*|ia64*) |
3735 | - # +Z the default |
3736 | - ;; |
3737 | - *) |
3738 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' |
3739 | - ;; |
3740 | - esac |
3741 | - ;; |
3742 | - *) |
3743 | - ;; |
3744 | - esac |
3745 | - ;; |
3746 | - interix*) |
3747 | - # This is c89, which is MS Visual C++ (no shared libs) |
3748 | - # Anyone wants to do a port? |
3749 | - ;; |
3750 | - irix5* | irix6* | nonstopux*) |
3751 | - case $cc_basename in |
3752 | - CC*) |
3753 | - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
3754 | - _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
3755 | - # CC pic flag -KPIC is the default. |
3756 | - ;; |
3757 | - *) |
3758 | - ;; |
3759 | - esac |
3760 | - ;; |
3761 | - linux* | k*bsd*-gnu) |
3762 | - case $cc_basename in |
3763 | - KCC*) |
3764 | - # KAI C++ Compiler |
3765 | - _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' |
3766 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
3767 | - ;; |
3768 | - ecpc* ) |
3769 | - # old Intel C++ for x86_64 which still supported -KPIC. |
3770 | - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
3771 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
3772 | - _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' |
3773 | - ;; |
3774 | - icpc* ) |
3775 | - # Intel C++, used to be incompatible with GCC. |
3776 | - # ICC 10 doesn't accept -KPIC any more. |
3777 | - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
3778 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
3779 | - _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' |
3780 | - ;; |
3781 | - pgCC* | pgcpp*) |
3782 | - # Portland Group C++ compiler |
3783 | - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
3784 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' |
3785 | - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
3786 | - ;; |
3787 | - cxx*) |
3788 | - # Compaq C++ |
3789 | - # Make sure the PIC flag is empty. It appears that all Alpha |
3790 | - # Linux and Compaq Tru64 Unix objects are PIC. |
3791 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)= |
3792 | - _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
3793 | - ;; |
3794 | - xlc* | xlC*) |
3795 | - # IBM XL 8.0 on PPC |
3796 | - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
3797 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' |
3798 | - _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' |
3799 | - ;; |
3800 | - *) |
3801 | - case `$CC -V 2>&1 | sed 5q` in |
3802 | - *Sun\ C*) |
3803 | - # Sun C++ 5.9 |
3804 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
3805 | - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
3806 | - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' |
3807 | - ;; |
3808 | - esac |
3809 | - ;; |
3810 | - esac |
3811 | - ;; |
3812 | - lynxos*) |
3813 | - ;; |
3814 | - m88k*) |
3815 | - ;; |
3816 | - mvs*) |
3817 | - case $cc_basename in |
3818 | - cxx*) |
3819 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' |
3820 | - ;; |
3821 | - *) |
3822 | - ;; |
3823 | - esac |
3824 | - ;; |
3825 | - netbsd* | netbsdelf*-gnu) |
3826 | - ;; |
3827 | - *qnx* | *nto*) |
3828 | - # QNX uses GNU C++, but need to define -shared option too, otherwise |
3829 | - # it will coredump. |
3830 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' |
3831 | - ;; |
3832 | - osf3* | osf4* | osf5*) |
3833 | - case $cc_basename in |
3834 | - KCC*) |
3835 | - _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' |
3836 | - ;; |
3837 | - RCC*) |
3838 | - # Rational C++ 2.4.1 |
3839 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
3840 | - ;; |
3841 | - cxx*) |
3842 | - # Digital/Compaq C++ |
3843 | - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
3844 | - # Make sure the PIC flag is empty. It appears that all Alpha |
3845 | - # Linux and Compaq Tru64 Unix objects are PIC. |
3846 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)= |
3847 | - _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
3848 | - ;; |
3849 | - *) |
3850 | - ;; |
3851 | - esac |
3852 | - ;; |
3853 | - psos*) |
3854 | - ;; |
3855 | - solaris*) |
3856 | - case $cc_basename in |
3857 | - CC*) |
3858 | - # Sun C++ 4.2, 5.x and Centerline C++ |
3859 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
3860 | - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
3861 | - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' |
3862 | - ;; |
3863 | - gcx*) |
3864 | - # Green Hills C++ Compiler |
3865 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' |
3866 | - ;; |
3867 | - *) |
3868 | - ;; |
3869 | - esac |
3870 | - ;; |
3871 | - sunos4*) |
3872 | - case $cc_basename in |
3873 | - CC*) |
3874 | - # Sun C++ 4.x |
3875 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
3876 | - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
3877 | - ;; |
3878 | - lcc*) |
3879 | - # Lucid |
3880 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
3881 | - ;; |
3882 | - *) |
3883 | - ;; |
3884 | - esac |
3885 | - ;; |
3886 | - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
3887 | - case $cc_basename in |
3888 | - CC*) |
3889 | - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
3890 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
3891 | - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
3892 | - ;; |
3893 | - esac |
3894 | - ;; |
3895 | - tandem*) |
3896 | - case $cc_basename in |
3897 | - NCC*) |
3898 | - # NonStop-UX NCC 3.20 |
3899 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
3900 | - ;; |
3901 | - *) |
3902 | - ;; |
3903 | - esac |
3904 | - ;; |
3905 | - vxworks*) |
3906 | - ;; |
3907 | - *) |
3908 | - _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no |
3909 | - ;; |
3910 | - esac |
3911 | - fi |
3912 | -], |
3913 | -[ |
3914 | - if test "$GCC" = yes; then |
3915 | - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
3916 | - _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' |
3917 | - |
3918 | - case $host_os in |
3919 | - aix*) |
3920 | - # All AIX code is PIC. |
3921 | - if test "$host_cpu" = ia64; then |
3922 | - # AIX 5 now supports IA64 processor |
3923 | - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
3924 | - fi |
3925 | - ;; |
3926 | - |
3927 | - amigaos*) |
3928 | - case $host_cpu in |
3929 | - powerpc) |
3930 | - # see comment about AmigaOS4 .so support |
3931 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
3932 | - ;; |
3933 | - m68k) |
3934 | - # FIXME: we need at least 68020 code to build shared libraries, but |
3935 | - # adding the `-m68020' flag to GCC prevents building anything better, |
3936 | - # like `-m68040'. |
3937 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' |
3938 | - ;; |
3939 | - esac |
3940 | - ;; |
3941 | - |
3942 | - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
3943 | - # PIC is the default for these OSes. |
3944 | - ;; |
3945 | - |
3946 | - mingw* | cygwin* | pw32* | os2* | cegcc*) |
3947 | - # This hack is so that the source file can tell whether it is being |
3948 | - # built for inclusion in a dll (and should export symbols for example). |
3949 | - # Although the cygwin gcc ignores -fPIC, still need this for old-style |
3950 | - # (--disable-auto-import) libraries |
3951 | - m4_if([$1], [GCJ], [], |
3952 | - [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) |
3953 | - ;; |
3954 | - |
3955 | - darwin* | rhapsody*) |
3956 | - # PIC is the default on this platform |
3957 | - # Common symbols not allowed in MH_DYLIB files |
3958 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' |
3959 | - ;; |
3960 | - |
3961 | - hpux*) |
3962 | - # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
3963 | - # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
3964 | - # sets the default TLS model and affects inlining. |
3965 | - case $host_cpu in |
3966 | - hppa*64*) |
3967 | - # +Z the default |
3968 | - ;; |
3969 | - *) |
3970 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
3971 | - ;; |
3972 | - esac |
3973 | - ;; |
3974 | - |
3975 | - interix[[3-9]]*) |
3976 | - # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
3977 | - # Instead, we relocate shared libraries at runtime. |
3978 | - ;; |
3979 | - |
3980 | - msdosdjgpp*) |
3981 | - # Just because we use GCC doesn't mean we suddenly get shared libraries |
3982 | - # on systems that don't support them. |
3983 | - _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no |
3984 | - enable_shared=no |
3985 | - ;; |
3986 | - |
3987 | - *nto* | *qnx*) |
3988 | - # QNX uses GNU C++, but need to define -shared option too, otherwise |
3989 | - # it will coredump. |
3990 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' |
3991 | - ;; |
3992 | - |
3993 | - sysv4*MP*) |
3994 | - if test -d /usr/nec; then |
3995 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic |
3996 | - fi |
3997 | - ;; |
3998 | - |
3999 | - *) |
4000 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
4001 | - ;; |
4002 | - esac |
4003 | - else |
4004 | - # PORTME Check for flag to pass linker flags through the system compiler. |
4005 | - case $host_os in |
4006 | - aix*) |
4007 | - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4008 | - if test "$host_cpu" = ia64; then |
4009 | - # AIX 5 now supports IA64 processor |
4010 | - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4011 | - else |
4012 | - _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' |
4013 | - fi |
4014 | - ;; |
4015 | - |
4016 | - mingw* | cygwin* | pw32* | os2* | cegcc*) |
4017 | - # This hack is so that the source file can tell whether it is being |
4018 | - # built for inclusion in a dll (and should export symbols for example). |
4019 | - m4_if([$1], [GCJ], [], |
4020 | - [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) |
4021 | - ;; |
4022 | - |
4023 | - hpux9* | hpux10* | hpux11*) |
4024 | - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4025 | - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
4026 | - # not for PA HP-UX. |
4027 | - case $host_cpu in |
4028 | - hppa*64*|ia64*) |
4029 | - # +Z the default |
4030 | - ;; |
4031 | - *) |
4032 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' |
4033 | - ;; |
4034 | - esac |
4035 | - # Is there a better lt_prog_compiler_static that works with the bundled CC? |
4036 | - _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' |
4037 | - ;; |
4038 | - |
4039 | - irix5* | irix6* | nonstopux*) |
4040 | - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4041 | - # PIC (with -KPIC) is the default. |
4042 | - _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
4043 | - ;; |
4044 | - |
4045 | - linux* | k*bsd*-gnu) |
4046 | - case $cc_basename in |
4047 | - # old Intel for x86_64 which still supported -KPIC. |
4048 | - ecc*) |
4049 | - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4050 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
4051 | - _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' |
4052 | - ;; |
4053 | - # icc used to be incompatible with GCC. |
4054 | - # ICC 10 doesn't accept -KPIC any more. |
4055 | - icc* | ifort*) |
4056 | - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4057 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
4058 | - _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' |
4059 | - ;; |
4060 | - # Lahey Fortran 8.1. |
4061 | - lf95*) |
4062 | - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4063 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' |
4064 | - _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' |
4065 | - ;; |
4066 | - pgcc* | pgf77* | pgf90* | pgf95*) |
4067 | - # Portland Group compilers (*not* the Pentium gcc compiler, |
4068 | - # which looks to be a dead project) |
4069 | - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4070 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' |
4071 | - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4072 | - ;; |
4073 | - ccc*) |
4074 | - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4075 | - # All Alpha code is PIC. |
4076 | - _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
4077 | - ;; |
4078 | - xl*) |
4079 | - # IBM XL C 8.0/Fortran 10.1 on PPC |
4080 | - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4081 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' |
4082 | - _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' |
4083 | - ;; |
4084 | - *) |
4085 | - case `$CC -V 2>&1 | sed 5q` in |
4086 | - *Sun\ C*) |
4087 | - # Sun C 5.9 |
4088 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
4089 | - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4090 | - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4091 | - ;; |
4092 | - *Sun\ F*) |
4093 | - # Sun Fortran 8.3 passes all unrecognized flags to the linker |
4094 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
4095 | - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4096 | - _LT_TAGVAR(lt_prog_compiler_wl, $1)='' |
4097 | - ;; |
4098 | - esac |
4099 | - ;; |
4100 | - esac |
4101 | - ;; |
4102 | - |
4103 | - newsos6) |
4104 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
4105 | - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4106 | - ;; |
4107 | - |
4108 | - *nto* | *qnx*) |
4109 | - # QNX uses GNU C++, but need to define -shared option too, otherwise |
4110 | - # it will coredump. |
4111 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' |
4112 | - ;; |
4113 | - |
4114 | - osf3* | osf4* | osf5*) |
4115 | - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4116 | - # All OSF/1 code is PIC. |
4117 | - _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
4118 | - ;; |
4119 | - |
4120 | - rdos*) |
4121 | - _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
4122 | - ;; |
4123 | - |
4124 | - solaris*) |
4125 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
4126 | - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4127 | - case $cc_basename in |
4128 | - f77* | f90* | f95*) |
4129 | - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; |
4130 | - *) |
4131 | - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; |
4132 | - esac |
4133 | - ;; |
4134 | - |
4135 | - sunos4*) |
4136 | - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' |
4137 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' |
4138 | - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4139 | - ;; |
4140 | - |
4141 | - sysv4 | sysv4.2uw2* | sysv4.3*) |
4142 | - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4143 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
4144 | - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4145 | - ;; |
4146 | - |
4147 | - sysv4*MP*) |
4148 | - if test -d /usr/nec ;then |
4149 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' |
4150 | - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4151 | - fi |
4152 | - ;; |
4153 | - |
4154 | - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
4155 | - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4156 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
4157 | - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4158 | - ;; |
4159 | - |
4160 | - unicos*) |
4161 | - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4162 | - _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no |
4163 | - ;; |
4164 | - |
4165 | - uts4*) |
4166 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
4167 | - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4168 | - ;; |
4169 | - |
4170 | - *) |
4171 | - _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no |
4172 | - ;; |
4173 | - esac |
4174 | - fi |
4175 | -]) |
4176 | -case $host_os in |
4177 | - # For platforms which do not support PIC, -DPIC is meaningless: |
4178 | - *djgpp*) |
4179 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)= |
4180 | - ;; |
4181 | - *) |
4182 | - _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" |
4183 | - ;; |
4184 | -esac |
4185 | -AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) |
4186 | -_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], |
4187 | - [How to pass a linker flag through the compiler]) |
4188 | - |
4189 | -# |
4190 | -# Check to make sure the PIC flag actually works. |
4191 | -# |
4192 | -if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then |
4193 | - _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works], |
4194 | - [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)], |
4195 | - [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [], |
4196 | - [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in |
4197 | - "" | " "*) ;; |
4198 | - *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;; |
4199 | - esac], |
4200 | - [_LT_TAGVAR(lt_prog_compiler_pic, $1)= |
4201 | - _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) |
4202 | -fi |
4203 | -_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], |
4204 | - [Additional compiler flags for building library objects]) |
4205 | - |
4206 | -# |
4207 | -# Check to make sure the static flag actually works. |
4208 | -# |
4209 | -wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\" |
4210 | -_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], |
4211 | - _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1), |
4212 | - $lt_tmp_static_flag, |
4213 | - [], |
4214 | - [_LT_TAGVAR(lt_prog_compiler_static, $1)=]) |
4215 | -_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1], |
4216 | - [Compiler flag to prevent dynamic linking]) |
4217 | -])# _LT_COMPILER_PIC |
4218 | - |
4219 | - |
4220 | -# _LT_LINKER_SHLIBS([TAGNAME]) |
4221 | -# ---------------------------- |
4222 | -# See if the linker supports building shared libraries. |
4223 | -m4_defun([_LT_LINKER_SHLIBS], |
4224 | -[AC_REQUIRE([LT_PATH_LD])dnl |
4225 | -AC_REQUIRE([LT_PATH_NM])dnl |
4226 | -m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
4227 | -m4_require([_LT_DECL_EGREP])dnl |
4228 | -m4_require([_LT_DECL_SED])dnl |
4229 | -m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl |
4230 | -m4_require([_LT_TAG_COMPILER])dnl |
4231 | -AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) |
4232 | -m4_if([$1], [CXX], [ |
4233 | - _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
4234 | - case $host_os in |
4235 | - aix[[4-9]]*) |
4236 | - # If we're using GNU nm, then we don't want the "-C" option. |
4237 | - # -C means demangle to AIX nm, but means don't demangle with GNU nm |
4238 | - if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
4239 | - _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' |
4240 | - else |
4241 | - _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' |
4242 | - fi |
4243 | - ;; |
4244 | - pw32*) |
4245 | - _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" |
4246 | - ;; |
4247 | - cygwin* | mingw* | cegcc*) |
4248 | - _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' |
4249 | - ;; |
4250 | - linux* | k*bsd*-gnu) |
4251 | - _LT_TAGVAR(link_all_deplibs, $1)=no |
4252 | - ;; |
4253 | - *) |
4254 | - _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
4255 | - ;; |
4256 | - esac |
4257 | - _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] |
4258 | -], [ |
4259 | - runpath_var= |
4260 | - _LT_TAGVAR(allow_undefined_flag, $1)= |
4261 | - _LT_TAGVAR(always_export_symbols, $1)=no |
4262 | - _LT_TAGVAR(archive_cmds, $1)= |
4263 | - _LT_TAGVAR(archive_expsym_cmds, $1)= |
4264 | - _LT_TAGVAR(compiler_needs_object, $1)=no |
4265 | - _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no |
4266 | - _LT_TAGVAR(export_dynamic_flag_spec, $1)= |
4267 | - _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
4268 | - _LT_TAGVAR(hardcode_automatic, $1)=no |
4269 | - _LT_TAGVAR(hardcode_direct, $1)=no |
4270 | - _LT_TAGVAR(hardcode_direct_absolute, $1)=no |
4271 | - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= |
4272 | - _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= |
4273 | - _LT_TAGVAR(hardcode_libdir_separator, $1)= |
4274 | - _LT_TAGVAR(hardcode_minus_L, $1)=no |
4275 | - _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
4276 | - _LT_TAGVAR(inherit_rpath, $1)=no |
4277 | - _LT_TAGVAR(link_all_deplibs, $1)=unknown |
4278 | - _LT_TAGVAR(module_cmds, $1)= |
4279 | - _LT_TAGVAR(module_expsym_cmds, $1)= |
4280 | - _LT_TAGVAR(old_archive_from_new_cmds, $1)= |
4281 | - _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)= |
4282 | - _LT_TAGVAR(thread_safe_flag_spec, $1)= |
4283 | - _LT_TAGVAR(whole_archive_flag_spec, $1)= |
4284 | - # include_expsyms should be a list of space-separated symbols to be *always* |
4285 | - # included in the symbol list |
4286 | - _LT_TAGVAR(include_expsyms, $1)= |
4287 | - # exclude_expsyms can be an extended regexp of symbols to exclude |
4288 | - # it will be wrapped by ` (' and `)$', so one must not match beginning or |
4289 | - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
4290 | - # as well as any symbol that contains `d'. |
4291 | - _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] |
4292 | - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
4293 | - # platforms (ab)use it in PIC code, but their linkers get confused if |
4294 | - # the symbol is explicitly referenced. Since portable code cannot |
4295 | - # rely on this symbol name, it's probably fine to never include it in |
4296 | - # preloaded symbol tables. |
4297 | - # Exclude shared library initialization/finalization symbols. |
4298 | -dnl Note also adjust exclude_expsyms for C++ above. |
4299 | - extract_expsyms_cmds= |
4300 | - |
4301 | - case $host_os in |
4302 | - cygwin* | mingw* | pw32* | cegcc*) |
4303 | - # FIXME: the MSVC++ port hasn't been tested in a loooong time |
4304 | - # When not using gcc, we currently assume that we are using |
4305 | - # Microsoft Visual C++. |
4306 | - if test "$GCC" != yes; then |
4307 | - with_gnu_ld=no |
4308 | - fi |
4309 | - ;; |
4310 | - interix*) |
4311 | - # we just hope/assume this is gcc and not c89 (= MSVC++) |
4312 | - with_gnu_ld=yes |
4313 | - ;; |
4314 | - openbsd*) |
4315 | - with_gnu_ld=no |
4316 | - ;; |
4317 | - linux* | k*bsd*-gnu) |
4318 | - _LT_TAGVAR(link_all_deplibs, $1)=no |
4319 | - ;; |
4320 | - esac |
4321 | - |
4322 | - _LT_TAGVAR(ld_shlibs, $1)=yes |
4323 | - if test "$with_gnu_ld" = yes; then |
4324 | - # If archive_cmds runs LD, not CC, wlarc should be empty |
4325 | - wlarc='${wl}' |
4326 | - |
4327 | - # Set some defaults for GNU ld with shared library support. These |
4328 | - # are reset later if shared libraries are not supported. Putting them |
4329 | - # here allows them to be overridden if necessary. |
4330 | - runpath_var=LD_RUN_PATH |
4331 | - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
4332 | - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
4333 | - # ancient GNU ld didn't support --whole-archive et. al. |
4334 | - if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then |
4335 | - _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
4336 | - else |
4337 | - _LT_TAGVAR(whole_archive_flag_spec, $1)= |
4338 | - fi |
4339 | - supports_anon_versioning=no |
4340 | - case `$LD -v 2>&1` in |
4341 | - *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 |
4342 | - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
4343 | - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
4344 | - *\ 2.11.*) ;; # other 2.11 versions |
4345 | - *) supports_anon_versioning=yes ;; |
4346 | - esac |
4347 | - |
4348 | - # See if GNU ld supports shared libraries. |
4349 | - case $host_os in |
4350 | - aix[[3-9]]*) |
4351 | - # On AIX/PPC, the GNU linker is very broken |
4352 | - if test "$host_cpu" != ia64; then |
4353 | - _LT_TAGVAR(ld_shlibs, $1)=no |
4354 | - cat <<_LT_EOF 1>&2 |
4355 | - |
4356 | -*** Warning: the GNU linker, at least up to release 2.9.1, is reported |
4357 | -*** to be unable to reliably create shared libraries on AIX. |
4358 | -*** Therefore, libtool is disabling shared libraries support. If you |
4359 | -*** really care for shared libraries, you may want to modify your PATH |
4360 | -*** so that a non-GNU linker is found, and then restart. |
4361 | - |
4362 | -_LT_EOF |
4363 | - fi |
4364 | - ;; |
4365 | - |
4366 | - amigaos*) |
4367 | - case $host_cpu in |
4368 | - powerpc) |
4369 | - # see comment about AmigaOS4 .so support |
4370 | - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
4371 | - _LT_TAGVAR(archive_expsym_cmds, $1)='' |
4372 | - ;; |
4373 | - m68k) |
4374 | - _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)' |
4375 | - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
4376 | - _LT_TAGVAR(hardcode_minus_L, $1)=yes |
4377 | - ;; |
4378 | - esac |
4379 | - ;; |
4380 | - |
4381 | - beos*) |
4382 | - if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
4383 | - _LT_TAGVAR(allow_undefined_flag, $1)=unsupported |
4384 | - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
4385 | - # support --undefined. This deserves some investigation. FIXME |
4386 | - _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
4387 | - else |
4388 | - _LT_TAGVAR(ld_shlibs, $1)=no |
4389 | - fi |
4390 | - ;; |
4391 | - |
4392 | - cygwin* | mingw* | pw32* | cegcc*) |
4393 | - # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, |
4394 | - # as there is no search path for DLLs. |
4395 | - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
4396 | - _LT_TAGVAR(allow_undefined_flag, $1)=unsupported |
4397 | - _LT_TAGVAR(always_export_symbols, $1)=no |
4398 | - _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
4399 | - _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' |
4400 | - |
4401 | - if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
4402 | - _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' |
4403 | - # If the export-symbols file already is a .def file (1st line |
4404 | - # is EXPORTS), use it as is; otherwise, prepend... |
4405 | - _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
4406 | - cp $export_symbols $output_objdir/$soname.def; |
4407 | - else |
4408 | - echo EXPORTS > $output_objdir/$soname.def; |
4409 | - cat $export_symbols >> $output_objdir/$soname.def; |
4410 | - fi~ |
4411 | - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
4412 | - else |
4413 | - _LT_TAGVAR(ld_shlibs, $1)=no |
4414 | - fi |
4415 | - ;; |
4416 | - |
4417 | - interix[[3-9]]*) |
4418 | - _LT_TAGVAR(hardcode_direct, $1)=no |
4419 | - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
4420 | - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
4421 | - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
4422 | - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
4423 | - # Instead, shared libraries are loaded at an image base (0x10000000 by |
4424 | - # default) and relocated if they conflict, which is a slow very memory |
4425 | - # consuming and fragmenting process. To avoid this, we pick a random, |
4426 | - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
4427 | - # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
4428 | - _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' |
4429 | - _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' |
4430 | - ;; |
4431 | - |
4432 | - gnu* | linux* | tpf* | k*bsd*-gnu) |
4433 | - tmp_diet=no |
4434 | - if test "$host_os" = linux-dietlibc; then |
4435 | - case $cc_basename in |
4436 | - diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) |
4437 | - esac |
4438 | - fi |
4439 | - if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ |
4440 | - && test "$tmp_diet" = no |
4441 | - then |
4442 | - tmp_addflag= |
4443 | - tmp_sharedflag='-shared' |
4444 | - case $cc_basename,$host_cpu in |
4445 | - pgcc*) # Portland Group C compiler |
4446 | - _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' |
4447 | - tmp_addflag=' $pic_flag' |
4448 | - ;; |
4449 | - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
4450 | - _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' |
4451 | - tmp_addflag=' $pic_flag -Mnomain' ;; |
4452 | - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
4453 | - tmp_addflag=' -i_dynamic' ;; |
4454 | - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
4455 | - tmp_addflag=' -i_dynamic -nofor_main' ;; |
4456 | - ifc* | ifort*) # Intel Fortran compiler |
4457 | - tmp_addflag=' -nofor_main' ;; |
4458 | - lf95*) # Lahey Fortran 8.1 |
4459 | - _LT_TAGVAR(whole_archive_flag_spec, $1)= |
4460 | - tmp_sharedflag='--shared' ;; |
4461 | - xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
4462 | - tmp_sharedflag='-qmkshrobj' |
4463 | - tmp_addflag= ;; |
4464 | - esac |
4465 | - case `$CC -V 2>&1 | sed 5q` in |
4466 | - *Sun\ C*) # Sun C 5.9 |
4467 | - _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' |
4468 | - _LT_TAGVAR(compiler_needs_object, $1)=yes |
4469 | - tmp_sharedflag='-G' ;; |
4470 | - *Sun\ F*) # Sun Fortran 8.3 |
4471 | - tmp_sharedflag='-G' ;; |
4472 | - esac |
4473 | - _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
4474 | - |
4475 | - if test "x$supports_anon_versioning" = xyes; then |
4476 | - _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ |
4477 | - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
4478 | - echo "local: *; };" >> $output_objdir/$libname.ver~ |
4479 | - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
4480 | - fi |
4481 | - |
4482 | - case $cc_basename in |
4483 | - xlf*) |
4484 | - # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
4485 | - _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' |
4486 | - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= |
4487 | - _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' |
4488 | - _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' |
4489 | - if test "x$supports_anon_versioning" = xyes; then |
4490 | - _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ |
4491 | - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
4492 | - echo "local: *; };" >> $output_objdir/$libname.ver~ |
4493 | - $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' |
4494 | - fi |
4495 | - ;; |
4496 | - esac |
4497 | - else |
4498 | - _LT_TAGVAR(ld_shlibs, $1)=no |
4499 | - fi |
4500 | - ;; |
4501 | - |
4502 | - netbsd* | netbsdelf*-gnu) |
4503 | - if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
4504 | - _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
4505 | - wlarc= |
4506 | - else |
4507 | - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
4508 | - _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' |
4509 | - fi |
4510 | - ;; |
4511 | - |
4512 | - solaris*) |
4513 | - if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then |
4514 | - _LT_TAGVAR(ld_shlibs, $1)=no |
4515 | - cat <<_LT_EOF 1>&2 |
4516 | - |
4517 | -*** Warning: The releases 2.8.* of the GNU linker cannot reliably |
4518 | -*** create shared libraries on Solaris systems. Therefore, libtool |
4519 | -*** is disabling shared libraries support. We urge you to upgrade GNU |
4520 | -*** binutils to release 2.9.1 or newer. Another option is to modify |
4521 | -*** your PATH or compiler configuration so that the native linker is |
4522 | -*** used, and then restart. |
4523 | - |
4524 | -_LT_EOF |
4525 | - elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
4526 | - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
4527 | - _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' |
4528 | - else |
4529 | - _LT_TAGVAR(ld_shlibs, $1)=no |
4530 | - fi |
4531 | - ;; |
4532 | - |
4533 | - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
4534 | - case `$LD -v 2>&1` in |
4535 | - *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) |
4536 | - _LT_TAGVAR(ld_shlibs, $1)=no |
4537 | - cat <<_LT_EOF 1>&2 |
4538 | - |
4539 | -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
4540 | -*** reliably create shared libraries on SCO systems. Therefore, libtool |
4541 | -*** is disabling shared libraries support. We urge you to upgrade GNU |
4542 | -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
4543 | -*** your PATH or compiler configuration so that the native linker is |
4544 | -*** used, and then restart. |
4545 | - |
4546 | -_LT_EOF |
4547 | - ;; |
4548 | - *) |
4549 | - # For security reasons, it is highly recommended that you always |
4550 | - # use absolute paths for naming shared libraries, and exclude the |
4551 | - # DT_RUNPATH tag from executables and libraries. But doing so |
4552 | - # requires that you compile everything twice, which is a pain. |
4553 | - if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
4554 | - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
4555 | - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
4556 | - _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' |
4557 | - else |
4558 | - _LT_TAGVAR(ld_shlibs, $1)=no |
4559 | - fi |
4560 | - ;; |
4561 | - esac |
4562 | - ;; |
4563 | - |
4564 | - sunos4*) |
4565 | - _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
4566 | - wlarc= |
4567 | - _LT_TAGVAR(hardcode_direct, $1)=yes |
4568 | - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
4569 | - ;; |
4570 | - |
4571 | - *) |
4572 | - if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
4573 | - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
4574 | - _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' |
4575 | - else |
4576 | - _LT_TAGVAR(ld_shlibs, $1)=no |
4577 | - fi |
4578 | - ;; |
4579 | - esac |
4580 | - |
4581 | - if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then |
4582 | - runpath_var= |
4583 | - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= |
4584 | - _LT_TAGVAR(export_dynamic_flag_spec, $1)= |
4585 | - _LT_TAGVAR(whole_archive_flag_spec, $1)= |
4586 | - fi |
4587 | - else |
4588 | - # PORTME fill in a description of your system's linker (not GNU ld) |
4589 | - case $host_os in |
4590 | - aix3*) |
4591 | - _LT_TAGVAR(allow_undefined_flag, $1)=unsupported |
4592 | - _LT_TAGVAR(always_export_symbols, $1)=yes |
4593 | - _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' |
4594 | - # Note: this linker hardcodes the directories in LIBPATH if there |
4595 | - # are no directories specified by -L. |
4596 | - _LT_TAGVAR(hardcode_minus_L, $1)=yes |
4597 | - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
4598 | - # Neither direct hardcoding nor static linking is supported with a |
4599 | - # broken collect2. |
4600 | - _LT_TAGVAR(hardcode_direct, $1)=unsupported |
4601 | - fi |
4602 | - ;; |
4603 | - |
4604 | - aix[[4-9]]*) |
4605 | - if test "$host_cpu" = ia64; then |
4606 | - # On IA64, the linker does run time linking by default, so we don't |
4607 | - # have to do anything special. |
4608 | - aix_use_runtimelinking=no |
4609 | - exp_sym_flag='-Bexport' |
4610 | - no_entry_flag="" |
4611 | - else |
4612 | - # If we're using GNU nm, then we don't want the "-C" option. |
4613 | - # -C means demangle to AIX nm, but means don't demangle with GNU nm |
4614 | - if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
4615 | - _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' |
4616 | - else |
4617 | - _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' |
4618 | - fi |
4619 | - aix_use_runtimelinking=no |
4620 | - |
4621 | - # Test if we are trying to use run time linking or normal |
4622 | - # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
4623 | - # need to do runtime linking. |
4624 | - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) |
4625 | - for ld_flag in $LDFLAGS; do |
4626 | - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
4627 | - aix_use_runtimelinking=yes |
4628 | - break |
4629 | - fi |
4630 | - done |
4631 | - ;; |
4632 | - esac |
4633 | - |
4634 | - exp_sym_flag='-bexport' |
4635 | - no_entry_flag='-bnoentry' |
4636 | - fi |
4637 | - |
4638 | - # When large executables or shared objects are built, AIX ld can |
4639 | - # have problems creating the table of contents. If linking a library |
4640 | - # or program results in "error TOC overflow" add -mminimal-toc to |
4641 | - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
4642 | - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
4643 | - |
4644 | - _LT_TAGVAR(archive_cmds, $1)='' |
4645 | - _LT_TAGVAR(hardcode_direct, $1)=yes |
4646 | - _LT_TAGVAR(hardcode_direct_absolute, $1)=yes |
4647 | - _LT_TAGVAR(hardcode_libdir_separator, $1)=':' |
4648 | - _LT_TAGVAR(link_all_deplibs, $1)=yes |
4649 | - _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' |
4650 | - |
4651 | - if test "$GCC" = yes; then |
4652 | - case $host_os in aix4.[[012]]|aix4.[[012]].*) |
4653 | - # We only want to do this on AIX 4.2 and lower, the check |
4654 | - # below for broken collect2 doesn't work under 4.3+ |
4655 | - collect2name=`${CC} -print-prog-name=collect2` |
4656 | - if test -f "$collect2name" && |
4657 | - strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
4658 | - then |
4659 | - # We have reworked collect2 |
4660 | - : |
4661 | - else |
4662 | - # We have old collect2 |
4663 | - _LT_TAGVAR(hardcode_direct, $1)=unsupported |
4664 | - # It fails to find uninstalled libraries when the uninstalled |
4665 | - # path is not listed in the libpath. Setting hardcode_minus_L |
4666 | - # to unsupported forces relinking |
4667 | - _LT_TAGVAR(hardcode_minus_L, $1)=yes |
4668 | - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
4669 | - _LT_TAGVAR(hardcode_libdir_separator, $1)= |
4670 | - fi |
4671 | - ;; |
4672 | - esac |
4673 | - shared_flag='-shared' |
4674 | - if test "$aix_use_runtimelinking" = yes; then |
4675 | - shared_flag="$shared_flag "'${wl}-G' |
4676 | - fi |
4677 | - _LT_TAGVAR(link_all_deplibs, $1)=no |
4678 | - else |
4679 | - # not using gcc |
4680 | - if test "$host_cpu" = ia64; then |
4681 | - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
4682 | - # chokes on -Wl,-G. The following line is correct: |
4683 | - shared_flag='-G' |
4684 | - else |
4685 | - if test "$aix_use_runtimelinking" = yes; then |
4686 | - shared_flag='${wl}-G' |
4687 | - else |
4688 | - shared_flag='${wl}-bM:SRE' |
4689 | - fi |
4690 | - fi |
4691 | - fi |
4692 | - |
4693 | - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' |
4694 | - # It seems that -bexpall does not export symbols beginning with |
4695 | - # underscore (_), so it is better to generate a list of symbols to export. |
4696 | - _LT_TAGVAR(always_export_symbols, $1)=yes |
4697 | - if test "$aix_use_runtimelinking" = yes; then |
4698 | - # Warning - without using the other runtime loading flags (-brtl), |
4699 | - # -berok will link without error, but may produce a broken library. |
4700 | - _LT_TAGVAR(allow_undefined_flag, $1)='-berok' |
4701 | - # Determine the default libpath from the value encoded in an |
4702 | - # empty executable. |
4703 | - _LT_SYS_MODULE_PATH_AIX |
4704 | - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
4705 | - _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" |
4706 | - else |
4707 | - if test "$host_cpu" = ia64; then |
4708 | - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' |
4709 | - _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" |
4710 | - _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" |
4711 | - else |
4712 | - # Determine the default libpath from the value encoded in an |
4713 | - # empty executable. |
4714 | - _LT_SYS_MODULE_PATH_AIX |
4715 | - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
4716 | - # Warning - without using the other run time loading flags, |
4717 | - # -berok will link without error, but may produce a broken library. |
4718 | - _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' |
4719 | - _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' |
4720 | - # Exported symbols can be pulled into shared objects from archives |
4721 | - _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' |
4722 | - _LT_TAGVAR(archive_cmds_need_lc, $1)=yes |
4723 | - # This is similar to how AIX traditionally builds its shared libraries. |
4724 | - _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' |
4725 | - fi |
4726 | - fi |
4727 | - ;; |
4728 | - |
4729 | - amigaos*) |
4730 | - case $host_cpu in |
4731 | - powerpc) |
4732 | - # see comment about AmigaOS4 .so support |
4733 | - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
4734 | - _LT_TAGVAR(archive_expsym_cmds, $1)='' |
4735 | - ;; |
4736 | - m68k) |
4737 | - _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)' |
4738 | - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
4739 | - _LT_TAGVAR(hardcode_minus_L, $1)=yes |
4740 | - ;; |
4741 | - esac |
4742 | - ;; |
4743 | - |
4744 | - bsdi[[45]]*) |
4745 | - _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic |
4746 | - ;; |
4747 | - |
4748 | - cygwin* | mingw* | pw32* | cegcc*) |
4749 | - # When not using gcc, we currently assume that we are using |
4750 | - # Microsoft Visual C++. |
4751 | - # hardcode_libdir_flag_spec is actually meaningless, as there is |
4752 | - # no search path for DLLs. |
4753 | - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' |
4754 | - _LT_TAGVAR(allow_undefined_flag, $1)=unsupported |
4755 | - # Tell ltmain to make .lib files, not .a files. |
4756 | - libext=lib |
4757 | - # Tell ltmain to make .dll files, not .so files. |
4758 | - shrext_cmds=".dll" |
4759 | - # FIXME: Setting linknames here is a bad hack. |
4760 | - _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
4761 | - # The linker will automatically build a .lib file if we build a DLL. |
4762 | - _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' |
4763 | - # FIXME: Should let the user specify the lib program. |
4764 | - _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' |
4765 | - _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' |
4766 | - _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
4767 | - ;; |
4768 | - |
4769 | - darwin* | rhapsody*) |
4770 | - _LT_DARWIN_LINKER_FEATURES($1) |
4771 | - ;; |
4772 | - |
4773 | - dgux*) |
4774 | - _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
4775 | - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
4776 | - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
4777 | - ;; |
4778 | - |
4779 | - freebsd1*) |
4780 | - _LT_TAGVAR(ld_shlibs, $1)=no |
4781 | - ;; |
4782 | - |
4783 | - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
4784 | - # support. Future versions do this automatically, but an explicit c++rt0.o |
4785 | - # does not break anything, and helps significantly (at the cost of a little |
4786 | - # extra space). |
4787 | - freebsd2.2*) |
4788 | - _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
4789 | - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
4790 | - _LT_TAGVAR(hardcode_direct, $1)=yes |
4791 | - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
4792 | - ;; |
4793 | - |
4794 | - # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
4795 | - freebsd2*) |
4796 | - _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
4797 | - _LT_TAGVAR(hardcode_direct, $1)=yes |
4798 | - _LT_TAGVAR(hardcode_minus_L, $1)=yes |
4799 | - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
4800 | - ;; |
4801 | - |
4802 | - # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
4803 | - freebsd* | dragonfly*) |
4804 | - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
4805 | - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
4806 | - _LT_TAGVAR(hardcode_direct, $1)=yes |
4807 | - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
4808 | - ;; |
4809 | - |
4810 | - hpux9*) |
4811 | - if test "$GCC" = yes; then |
4812 | - _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' |
4813 | - else |
4814 | - _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' |
4815 | - fi |
4816 | - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
4817 | - _LT_TAGVAR(hardcode_libdir_separator, $1)=: |
4818 | - _LT_TAGVAR(hardcode_direct, $1)=yes |
4819 | - |
4820 | - # hardcode_minus_L: Not really in the search PATH, |
4821 | - # but as the default location of the library. |
4822 | - _LT_TAGVAR(hardcode_minus_L, $1)=yes |
4823 | - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
4824 | - ;; |
4825 | - |
4826 | - hpux10*) |
4827 | - if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
4828 | - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
4829 | - else |
4830 | - _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
4831 | - fi |
4832 | - if test "$with_gnu_ld" = no; then |
4833 | - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
4834 | - _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' |
4835 | - _LT_TAGVAR(hardcode_libdir_separator, $1)=: |
4836 | - _LT_TAGVAR(hardcode_direct, $1)=yes |
4837 | - _LT_TAGVAR(hardcode_direct_absolute, $1)=yes |
4838 | - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
4839 | - # hardcode_minus_L: Not really in the search PATH, |
4840 | - # but as the default location of the library. |
4841 | - _LT_TAGVAR(hardcode_minus_L, $1)=yes |
4842 | - fi |
4843 | - ;; |
4844 | - |
4845 | - hpux11*) |
4846 | - if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
4847 | - case $host_cpu in |
4848 | - hppa*64*) |
4849 | - _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
4850 | - ;; |
4851 | - ia64*) |
4852 | - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
4853 | - ;; |
4854 | - *) |
4855 | - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
4856 | - ;; |
4857 | - esac |
4858 | - else |
4859 | - case $host_cpu in |
4860 | - hppa*64*) |
4861 | - _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
4862 | - ;; |
4863 | - ia64*) |
4864 | - _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
4865 | - ;; |
4866 | - *) |
4867 | - _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
4868 | - ;; |
4869 | - esac |
4870 | - fi |
4871 | - if test "$with_gnu_ld" = no; then |
4872 | - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
4873 | - _LT_TAGVAR(hardcode_libdir_separator, $1)=: |
4874 | - |
4875 | - case $host_cpu in |
4876 | - hppa*64*|ia64*) |
4877 | - _LT_TAGVAR(hardcode_direct, $1)=no |
4878 | - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
4879 | - ;; |
4880 | - *) |
4881 | - _LT_TAGVAR(hardcode_direct, $1)=yes |
4882 | - _LT_TAGVAR(hardcode_direct_absolute, $1)=yes |
4883 | - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
4884 | - |
4885 | - # hardcode_minus_L: Not really in the search PATH, |
4886 | - # but as the default location of the library. |
4887 | - _LT_TAGVAR(hardcode_minus_L, $1)=yes |
4888 | - ;; |
4889 | - esac |
4890 | - fi |
4891 | - ;; |
4892 | - |
4893 | - irix5* | irix6* | nonstopux*) |
4894 | - if test "$GCC" = yes; then |
4895 | - _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' |
4896 | - # Try to use the -exported_symbol ld option, if it does not |
4897 | - # work, assume that -exports_file does not work either and |
4898 | - # implicitly export all symbols. |
4899 | - save_LDFLAGS="$LDFLAGS" |
4900 | - LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" |
4901 | - AC_LINK_IFELSE(int foo(void) {}, |
4902 | - _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' |
4903 | - ) |
4904 | - LDFLAGS="$save_LDFLAGS" |
4905 | - else |
4906 | - _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' |
4907 | - _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' |
4908 | - fi |
4909 | - _LT_TAGVAR(archive_cmds_need_lc, $1)='no' |
4910 | - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
4911 | - _LT_TAGVAR(hardcode_libdir_separator, $1)=: |
4912 | - _LT_TAGVAR(inherit_rpath, $1)=yes |
4913 | - _LT_TAGVAR(link_all_deplibs, $1)=yes |
4914 | - ;; |
4915 | - |
4916 | - netbsd* | netbsdelf*-gnu) |
4917 | - if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
4918 | - _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
4919 | - else |
4920 | - _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
4921 | - fi |
4922 | - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
4923 | - _LT_TAGVAR(hardcode_direct, $1)=yes |
4924 | - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
4925 | - ;; |
4926 | - |
4927 | - newsos6) |
4928 | - _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
4929 | - _LT_TAGVAR(hardcode_direct, $1)=yes |
4930 | - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
4931 | - _LT_TAGVAR(hardcode_libdir_separator, $1)=: |
4932 | - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
4933 | - ;; |
4934 | - |
4935 | - *nto* | *qnx*) |
4936 | - ;; |
4937 | - |
4938 | - openbsd*) |
4939 | - if test -f /usr/libexec/ld.so; then |
4940 | - _LT_TAGVAR(hardcode_direct, $1)=yes |
4941 | - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
4942 | - _LT_TAGVAR(hardcode_direct_absolute, $1)=yes |
4943 | - if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
4944 | - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
4945 | - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
4946 | - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
4947 | - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
4948 | - else |
4949 | - case $host_os in |
4950 | - openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) |
4951 | - _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
4952 | - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
4953 | - ;; |
4954 | - *) |
4955 | - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
4956 | - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
4957 | - ;; |
4958 | - esac |
4959 | - fi |
4960 | - else |
4961 | - _LT_TAGVAR(ld_shlibs, $1)=no |
4962 | - fi |
4963 | - ;; |
4964 | - |
4965 | - os2*) |
4966 | - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
4967 | - _LT_TAGVAR(hardcode_minus_L, $1)=yes |
4968 | - _LT_TAGVAR(allow_undefined_flag, $1)=unsupported |
4969 | - _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' |
4970 | - _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
4971 | - ;; |
4972 | - |
4973 | - osf3*) |
4974 | - if test "$GCC" = yes; then |
4975 | - _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
4976 | - _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' |
4977 | - else |
4978 | - _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' |
4979 | - _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' |
4980 | - fi |
4981 | - _LT_TAGVAR(archive_cmds_need_lc, $1)='no' |
4982 | - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
4983 | - _LT_TAGVAR(hardcode_libdir_separator, $1)=: |
4984 | - ;; |
4985 | - |
4986 | - osf4* | osf5*) # as osf3* with the addition of -msym flag |
4987 | - if test "$GCC" = yes; then |
4988 | - _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
4989 | - _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' |
4990 | - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
4991 | - else |
4992 | - _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' |
4993 | - _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' |
4994 | - _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~ |
4995 | - $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' |
4996 | - |
4997 | - # Both c and cxx compiler support -rpath directly |
4998 | - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' |
4999 | - fi |
5000 | - _LT_TAGVAR(archive_cmds_need_lc, $1)='no' |