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

Proposed by Ted Gould
Status: Merged
Merged at revision: 113
Proposed branch: lp:~dbusmenu-team/libdbusmenu/ubuntu
Merge into: lp:~ubuntu-desktop/libdbusmenu/ubuntu
Diff against target: 26707 lines (+11405/-10855)
91 files modified
ChangeLog (+312/-0)
Makefile.in (+1/-6)
aclocal.m4 (+8374/-9)
configure (+21/-25)
configure.ac (+3/-3)
debian/changelog (+16/-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 (+12/-3)
docs/libdbusmenu-glib/reference/html/api-index-full.html (+9/-9)
docs/libdbusmenu-glib/reference/html/ch01.html (+4/-4)
docs/libdbusmenu-glib/reference/html/index.html (+3/-3)
docs/libdbusmenu-glib/reference/html/index.sgml (+1/-0)
docs/libdbusmenu-glib/reference/html/libdbusmenu-glib-DbusmenuClient.html (+79/-160)
docs/libdbusmenu-glib/reference/html/libdbusmenu-glib-DbusmenuClientMenuitem.html (+17/-40)
docs/libdbusmenu-glib/reference/html/libdbusmenu-glib-DbusmenuMenuitem.html (+277/-387)
docs/libdbusmenu-glib/reference/html/libdbusmenu-glib-DbusmenuMenuitemProxy.html (+30/-44)
docs/libdbusmenu-glib/reference/html/libdbusmenu-glib-DbusmenuServer.html (+43/-82)
docs/libdbusmenu-glib/reference/html/libdbusmenu-glib.devhelp (+6/-6)
docs/libdbusmenu-glib/reference/html/libdbusmenu-glib.devhelp2 (+6/-6)
docs/libdbusmenu-glib/reference/html/object-tree.html (+3/-3)
docs/libdbusmenu-glib/reference/html/style.css (+2/-1)
docs/libdbusmenu-glib/reference/tmpl/client-menuitem.sgml (+0/-3)
docs/libdbusmenu-glib/reference/tmpl/client.sgml (+3/-5)
docs/libdbusmenu-glib/reference/tmpl/menuitem-proxy.sgml (+0/-4)
docs/libdbusmenu-glib/reference/tmpl/menuitem.sgml (+4/-4)
docs/libdbusmenu-glib/reference/tmpl/server.sgml (+0/-4)
docs/libdbusmenu-glib/reference/version.xml (+1/-1)
docs/libdbusmenu-glib/reference/xml/annotation-glossary.xml (+10/-0)
docs/libdbusmenu-glib/reference/xml/client-menuitem.xml (+8/-20)
docs/libdbusmenu-glib/reference/xml/client.xml (+47/-105)
docs/libdbusmenu-glib/reference/xml/menuitem-proxy.xml (+17/-32)
docs/libdbusmenu-glib/reference/xml/menuitem.xml (+119/-221)
docs/libdbusmenu-glib/reference/xml/server.xml (+21/-52)
docs/libdbusmenu-gtk/Makefile.in (+1/-6)
docs/libdbusmenu-gtk/reference/Makefile.am (+1/-1)
docs/libdbusmenu-gtk/reference/Makefile.in (+2/-7)
docs/libdbusmenu-gtk/reference/html/Genericmenuitem.html (+0/-360)
docs/libdbusmenu-gtk/reference/html/api-index-full.html (+5/-72)
docs/libdbusmenu-gtk/reference/html/ch01.html (+5/-7)
docs/libdbusmenu-gtk/reference/html/index.html (+3/-6)
docs/libdbusmenu-gtk/reference/html/index.sgml (+0/-22)
docs/libdbusmenu-gtk/reference/html/libdbusmenu-gtk-DbusmenuGtkClient.html (+48/-77)
docs/libdbusmenu-gtk/reference/html/libdbusmenu-gtk-DbusmenuGtkMenu.html (+28/-45)
docs/libdbusmenu-gtk/reference/html/libdbusmenu-gtk-menuitem.html (+34/-58)
docs/libdbusmenu-gtk/reference/html/libdbusmenu-gtk.devhelp (+2/-19)
docs/libdbusmenu-gtk/reference/html/libdbusmenu-gtk.devhelp2 (+2/-19)
docs/libdbusmenu-gtk/reference/html/object-tree.html (+4/-4)
docs/libdbusmenu-gtk/reference/html/style.css (+2/-1)
docs/libdbusmenu-gtk/reference/libdbusmenu-gtk-docs.sgml (+1/-1)
docs/libdbusmenu-gtk/reference/tmpl/client.sgml (+0/-2)
docs/libdbusmenu-gtk/reference/tmpl/genericmenuitem.sgml (+0/-131)
docs/libdbusmenu-gtk/reference/tmpl/libdbusmenu-gtk-unused.sgml (+118/-0)
docs/libdbusmenu-gtk/reference/tmpl/menu.sgml (+0/-2)
docs/libdbusmenu-gtk/reference/tmpl/menuitem.sgml (+0/-2)
docs/libdbusmenu-gtk/reference/version.xml (+1/-1)
docs/libdbusmenu-gtk/reference/xml/api-index-full.xml (+0/-18)
docs/libdbusmenu-gtk/reference/xml/client.xml (+31/-58)
docs/libdbusmenu-gtk/reference/xml/genericmenuitem.xml (+1/-221)
docs/libdbusmenu-gtk/reference/xml/menu.xml (+17/-31)
docs/libdbusmenu-gtk/reference/xml/menuitem.xml (+20/-42)
libdbusmenu-glib/Makefile.am (+2/-1)
libdbusmenu-glib/Makefile.in (+3/-7)
libdbusmenu-glib/client.c (+74/-9)
libdbusmenu-glib/client.h (+28/-1)
libdbusmenu-glib/dbusmenu-glib.h (+37/-0)
libdbusmenu-glib/menuitem.c (+8/-2)
libdbusmenu-glib/server.c (+9/-2)
libdbusmenu-gtk/Makefile.am (+9/-2)
libdbusmenu-gtk/Makefile.in (+52/-10)
libdbusmenu-gtk/client.c (+30/-6)
libdbusmenu-gtk/dbusmenu-gtk.h (+41/-0)
libdbusmenu-gtk/menuitem.h (+2/-2)
libdbusmenu-gtk/parser.c (+679/-0)
libdbusmenu-gtk/parser.h (+37/-0)
libdbusmenu-gtk/serializablemenuitem.c (+288/-0)
libdbusmenu-gtk/serializablemenuitem.h (+115/-0)
m4/gnome-doc-utils.m4 (+0/-56)
m4/gtk-doc.m4 (+0/-61)
m4/intltool.m4 (+0/-216)
m4/libtool.m4 (+0/-7377)
m4/ltoptions.m4 (+0/-368)
m4/ltsugar.m4 (+0/-123)
m4/ltversion.m4 (+0/-23)
m4/lt~obsolete.m4 (+0/-92)
tests/Makefile.am (+33/-2)
tests/Makefile.in (+63/-10)
tests/test-gtk-parser.c (+115/-0)
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+47725@code.launchpad.net

This proposal supersedes a proposal from 2011-01-27.

Description of the change

0.3.94

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

releasing version 0.3.94-0ubuntu1

Preview Diff

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

Subscribers

People subscribed via source and target branches

to all changes: