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