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