Merge lp:~dbusmenu-team/libdbusmenu/ubuntu into lp:~ubuntu-desktop/libdbusmenu/ubuntu

Proposed by Ted Gould
Status: Merged
Merged at revision: 155
Proposed branch: lp:~dbusmenu-team/libdbusmenu/ubuntu
Merge into: lp:~ubuntu-desktop/libdbusmenu/ubuntu
Diff against target: 29674 lines (+20121/-8900)
80 files modified
ChangeLog (+12/-0)
Makefile.in (+1/-6)
aclocal.m4 (+8855/-9)
configure (+11/-15)
configure.ac (+3/-3)
debian/changelog (+7/-0)
docs/Makefile.in (+1/-6)
docs/libdbusmenu-glib/Makefile.in (+1/-6)
docs/libdbusmenu-glib/reference/Makefile.in (+1/-6)
docs/libdbusmenu-glib/reference/html/annotation-glossary.html (+77/-0)
docs/libdbusmenu-glib/reference/html/api-index-deprecated.html (+31/-0)
docs/libdbusmenu-glib/reference/html/api-index-full.html (+577/-0)
docs/libdbusmenu-glib/reference/html/ch01.html (+50/-0)
docs/libdbusmenu-glib/reference/html/index.html (+49/-0)
docs/libdbusmenu-glib/reference/html/index.sgml (+171/-0)
docs/libdbusmenu-glib/reference/html/libdbusmenu-glib-DbusmenuClient.html (+597/-0)
docs/libdbusmenu-glib/reference/html/libdbusmenu-glib-DbusmenuMenuitem.html (+1789/-0)
docs/libdbusmenu-glib/reference/html/libdbusmenu-glib-DbusmenuMenuitemProxy.html (+166/-0)
docs/libdbusmenu-glib/reference/html/libdbusmenu-glib-DbusmenuServer.html (+412/-0)
docs/libdbusmenu-glib/reference/html/libdbusmenu-glib-Types.html (+274/-0)
docs/libdbusmenu-glib/reference/html/libdbusmenu-glib.devhelp (+152/-0)
docs/libdbusmenu-glib/reference/html/libdbusmenu-glib.devhelp2 (+157/-0)
docs/libdbusmenu-glib/reference/html/object-tree.html (+32/-0)
docs/libdbusmenu-glib/reference/html/style.css (+266/-0)
docs/libdbusmenu-glib/reference/tmpl/client.sgml (+221/-0)
docs/libdbusmenu-glib/reference/tmpl/menuitem-proxy.sgml (+59/-0)
docs/libdbusmenu-glib/reference/tmpl/menuitem.sgml (+691/-0)
docs/libdbusmenu-glib/reference/tmpl/server.sgml (+171/-0)
docs/libdbusmenu-glib/reference/tmpl/types.sgml (+109/-0)
docs/libdbusmenu-glib/reference/version.xml (+1/-1)
docs/libdbusmenu-glib/reference/xml/annotation-glossary.xml (+72/-0)
docs/libdbusmenu-glib/reference/xml/api-index-deprecated.xml (+8/-0)
docs/libdbusmenu-glib/reference/xml/api-index-full.xml (+149/-0)
docs/libdbusmenu-glib/reference/xml/client.xml (+439/-0)
docs/libdbusmenu-glib/reference/xml/menuitem-proxy.xml (+114/-0)
docs/libdbusmenu-glib/reference/xml/menuitem.xml (+1259/-0)
docs/libdbusmenu-glib/reference/xml/server.xml (+309/-0)
docs/libdbusmenu-glib/reference/xml/types.xml (+190/-0)
docs/libdbusmenu-gtk/Makefile.in (+1/-6)
docs/libdbusmenu-gtk/reference/Makefile.in (+1/-6)
docs/libdbusmenu-gtk/reference/html/annotation-glossary.html (+47/-0)
docs/libdbusmenu-gtk/reference/html/api-index-deprecated.html (+31/-0)
docs/libdbusmenu-gtk/reference/html/api-index-full.html (+119/-0)
docs/libdbusmenu-gtk/reference/html/ch01.html (+45/-0)
docs/libdbusmenu-gtk/reference/html/index.html (+44/-0)
docs/libdbusmenu-gtk/reference/html/index.sgml (+43/-0)
docs/libdbusmenu-gtk/reference/html/libdbusmenu-gtk-DbusmenuGtkClient.html (+347/-0)
docs/libdbusmenu-gtk/reference/html/libdbusmenu-gtk-DbusmenuGtkMenu.html (+187/-0)
docs/libdbusmenu-gtk/reference/html/libdbusmenu-gtk-menuitem.html (+274/-0)
docs/libdbusmenu-gtk/reference/html/libdbusmenu-gtk-parser.html (+118/-0)
docs/libdbusmenu-gtk/reference/html/libdbusmenu-gtk.devhelp (+38/-0)
docs/libdbusmenu-gtk/reference/html/libdbusmenu-gtk.devhelp2 (+38/-0)
docs/libdbusmenu-gtk/reference/html/object-tree.html (+32/-0)
docs/libdbusmenu-gtk/reference/html/style.css (+266/-0)
docs/libdbusmenu-gtk/reference/tmpl/client.sgml (+110/-0)
docs/libdbusmenu-gtk/reference/tmpl/menu.sgml (+56/-0)
docs/libdbusmenu-gtk/reference/tmpl/menuitem.sgml (+86/-0)
docs/libdbusmenu-gtk/reference/tmpl/parser.sgml (+42/-0)
docs/libdbusmenu-gtk/reference/version.xml (+1/-1)
docs/libdbusmenu-gtk/reference/xml/annotation-glossary.xml (+32/-0)
docs/libdbusmenu-gtk/reference/xml/api-index-deprecated.xml (+8/-0)
docs/libdbusmenu-gtk/reference/xml/api-index-full.xml (+32/-0)
docs/libdbusmenu-gtk/reference/xml/client.xml (+238/-0)
docs/libdbusmenu-gtk/reference/xml/menu.xml (+133/-0)
docs/libdbusmenu-gtk/reference/xml/menuitem.xml (+178/-0)
docs/libdbusmenu-gtk/reference/xml/parser.xml (+77/-0)
libdbusmenu-glib/Makefile.in (+1/-6)
libdbusmenu-gtk/Makefile.in (+1/-6)
libdbusmenu-gtk/genericmenuitem.c (+8/-8)
m4/gnome-doc-utils.m4 (+0/-56)
m4/gtk-doc.m4 (+0/-61)
m4/intltool.m4 (+0/-216)
m4/libtool.m4 (+0/-7851)
m4/ltoptions.m4 (+0/-369)
m4/ltsugar.m4 (+0/-123)
m4/ltversion.m4 (+0/-23)
m4/lt~obsolete.m4 (+0/-98)
tests/Makefile.in (+1/-6)
tools/Makefile.in (+1/-6)
tools/testapp/Makefile.in (+1/-6)
To merge this branch: bzr merge lp:~dbusmenu-team/libdbusmenu/ubuntu
Reviewer Review Type Date Requested Status
Ken VanDine Pending
Review via email: mp+72909@code.launchpad.net

Description of the change

Fixing the layout of the boxes

To post a comment you must log in.
lp:~dbusmenu-team/libdbusmenu/ubuntu updated
155. By Ken VanDine

* New upstream release.
  * Fix packing of generic menu items to use toggle-spacing

Preview Diff

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

Subscribers

People subscribed via source and target branches

to all changes: