Merge lp:~indicator-applet-developers/indicator-session/ubuntu into lp:~ubuntu-desktop/indicator-session/ubuntu

Proposed by Ted Gould
Status: Merged
Merged at revision: not available
Proposed branch: lp:~indicator-applet-developers/indicator-session/ubuntu
Merge into: lp:~ubuntu-desktop/indicator-session/ubuntu
Diff against target: 11435 lines
22 files modified
.bzrignore (+3/-0)
AUTHORS (+2/-0)
configure.ac (+7/-3)
debian/changelog (+14/-0)
debian/control (+2/-1)
debian/patches/01_polkit-1.patch (+0/-155)
debian/patches/99_autoreconf.patch (+0/-8669)
src/Makefile.am (+44/-2)
src/dbus-shared-names.h (+8/-6)
src/gtk-dialog/ck-pk-helper.c (+44/-58)
src/gtk-dialog/ck-pk-helper.h (+2/-2)
src/gtk-dialog/gtk-logout-helper.c (+6/-1)
src/session-service.c (+125/-0)
src/status-provider-mc5.c (+213/-0)
src/status-provider-mc5.h (+56/-0)
src/status-provider-mc5.list (+1/-0)
src/status-service.c (+11/-9)
src/users-service-dbus.c (+1147/-0)
src/users-service-dbus.h (+81/-0)
src/users-service.c (+281/-62)
src/users-service.list (+1/-0)
src/users-service.xml (+56/-0)
To merge this branch: bzr merge lp:~indicator-applet-developers/indicator-session/ubuntu
Reviewer Review Type Date Requested Status
Ken VanDine Pending
Review via email: mp+12389@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Ted Gould (ted) wrote :

0.1.5

Preview Diff

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

Subscribers

People subscribed via source and target branches

to all changes: