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