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

Proposed by Ted Gould
Status: Merged
Merged at revision: 147
Proposed branch: lp:~dbusmenu-team/libdbusmenu/ubuntu
Merge into: lp:~ubuntu-desktop/libdbusmenu/ubuntu
Diff against target: 40105 lines (+14175/-15082)
88 files modified
AUTHORS (+1/-0)
ChangeLog (+148/-0)
Makefile.in (+9/-2)
aclocal.m4 (+17/-8380)
config.guess (+120/-105)
config.sub (+101/-55)
configure (+1860/-1020)
configure.ac (+6/-6)
debian/changelog (+28/-0)
debian/control (+18/-17)
debian/rules (+20/-20)
docs/Makefile.in (+9/-2)
docs/libdbusmenu-glib/Makefile.in (+9/-2)
docs/libdbusmenu-glib/reference/Makefile.in (+9/-2)
docs/libdbusmenu-glib/reference/html/annotation-glossary.html (+2/-2)
docs/libdbusmenu-glib/reference/html/api-index-deprecated.html (+2/-2)
docs/libdbusmenu-glib/reference/html/api-index-full.html (+2/-2)
docs/libdbusmenu-glib/reference/html/ch01.html (+3/-3)
docs/libdbusmenu-glib/reference/html/index.html (+2/-2)
docs/libdbusmenu-glib/reference/html/libdbusmenu-glib-DbusmenuClient.html (+2/-2)
docs/libdbusmenu-glib/reference/html/libdbusmenu-glib-DbusmenuMenuitem.html (+3/-3)
docs/libdbusmenu-glib/reference/html/libdbusmenu-glib-DbusmenuMenuitemProxy.html (+2/-2)
docs/libdbusmenu-glib/reference/html/libdbusmenu-glib-DbusmenuServer.html (+2/-2)
docs/libdbusmenu-glib/reference/html/libdbusmenu-glib-Types.html (+2/-2)
docs/libdbusmenu-glib/reference/html/object-tree.html (+2/-2)
docs/libdbusmenu-glib/reference/version.xml (+1/-1)
docs/libdbusmenu-glib/reference/xml/annotation-glossary.xml (+0/-72)
docs/libdbusmenu-glib/reference/xml/api-index-deprecated.xml (+0/-8)
docs/libdbusmenu-glib/reference/xml/api-index-full.xml (+0/-144)
docs/libdbusmenu-glib/reference/xml/client.xml (+0/-439)
docs/libdbusmenu-glib/reference/xml/menuitem-proxy.xml (+0/-114)
docs/libdbusmenu-glib/reference/xml/menuitem.xml (+0/-1206)
docs/libdbusmenu-glib/reference/xml/server.xml (+0/-309)
docs/libdbusmenu-glib/reference/xml/types.xml (+0/-190)
docs/libdbusmenu-gtk/Makefile.in (+9/-2)
docs/libdbusmenu-gtk/reference/Makefile.in (+9/-2)
docs/libdbusmenu-gtk/reference/html/annotation-glossary.html (+2/-2)
docs/libdbusmenu-gtk/reference/html/api-index-deprecated.html (+2/-2)
docs/libdbusmenu-gtk/reference/html/api-index-full.html (+2/-22)
docs/libdbusmenu-gtk/reference/html/ch01.html (+4/-6)
docs/libdbusmenu-gtk/reference/html/index.html (+2/-5)
docs/libdbusmenu-gtk/reference/html/index.sgml (+0/-10)
docs/libdbusmenu-gtk/reference/html/libdbusmenu-gtk-DbusmenuGtkClient.html (+19/-19)
docs/libdbusmenu-gtk/reference/html/libdbusmenu-gtk-DbusmenuGtkMenu.html (+3/-3)
docs/libdbusmenu-gtk/reference/html/libdbusmenu-gtk-menuitem.html (+5/-5)
docs/libdbusmenu-gtk/reference/html/libdbusmenu-gtk-parser.html (+10/-10)
docs/libdbusmenu-gtk/reference/html/libdbusmenu-gtk.devhelp (+0/-6)
docs/libdbusmenu-gtk/reference/html/libdbusmenu-gtk.devhelp2 (+0/-6)
docs/libdbusmenu-gtk/reference/html/object-tree.html (+4/-4)
docs/libdbusmenu-gtk/reference/libdbusmenu-gtk-sections.txt (+0/-20)
docs/libdbusmenu-gtk/reference/tmpl/libdbusmenu-gtk-unused.sgml (+74/-0)
docs/libdbusmenu-gtk/reference/version.xml (+1/-1)
docs/libdbusmenu-gtk/reference/xml/annotation-glossary.xml (+0/-32)
docs/libdbusmenu-gtk/reference/xml/api-index-deprecated.xml (+0/-8)
docs/libdbusmenu-gtk/reference/xml/api-index-full.xml (+0/-37)
docs/libdbusmenu-gtk/reference/xml/client.xml (+0/-238)
docs/libdbusmenu-gtk/reference/xml/menu.xml (+0/-133)
docs/libdbusmenu-gtk/reference/xml/menuitem.xml (+0/-178)
docs/libdbusmenu-gtk/reference/xml/parser.xml (+0/-77)
docs/libdbusmenu-gtk/reference/xml/serializablemenuitem.xml (+0/-176)
libdbusmenu-glib/Makefile.in (+9/-2)
libdbusmenu-glib/menuitem.c (+8/-13)
libdbusmenu-glib/server.c (+79/-47)
libdbusmenu-gtk/Makefile.am (+2/-5)
libdbusmenu-gtk/Makefile.in (+13/-29)
libdbusmenu-gtk/dbusmenu-gtk.h (+0/-1)
libdbusmenu-gtk/parser.c (+22/-8)
libdbusmenu-gtk/serializablemenuitem.c (+0/-288)
libdbusmenu-gtk/serializablemenuitem.h (+0/-133)
ltmain.sh (+2619/-1390)
m4/gnome-doc-utils.m4 (+56/-0)
m4/gtk-doc.m4 (+61/-0)
m4/intltool.m4 (+216/-0)
m4/libtool.m4 (+7851/-0)
m4/ltoptions.m4 (+369/-0)
m4/ltsugar.m4 (+123/-0)
m4/ltversion.m4 (+23/-0)
m4/lt~obsolete.m4 (+98/-0)
tests/Makefile.am (+17/-9)
tests/Makefile.in (+40/-28)
tests/test-gtk-label-client.c (+1/-1)
tests/test-gtk-objects.c (+4/-0)
tests/test-gtk-parser.c (+14/-0)
tests/test-gtk-shortcut-client.c (+1/-1)
tests/test-gtk-shortcut-server.c (+4/-0)
tests/test-gtk-submenu-client.c (+1/-1)
tools/Makefile.in (+9/-2)
tools/testapp/Makefile.in (+9/-2)
To merge this branch: bzr merge lp:~dbusmenu-team/libdbusmenu/ubuntu
Reviewer Review Type Date Requested Status
Ken VanDine Pending
Review via email: mp+65358@code.launchpad.net

Description of the change

0.4.90

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

* debian/control, debian/*: Renaming packages for library version
  bump from 3 to 4.
* New upstream release.
  * Fixing visibility for Eclipse (LP: #770263 and LP: #618587)
  * Unseting a GValue properly (LP: #785828)
  * Memory leaks for GVariant usage (LP: #784890)
  * Making GTK 3 default build
  * Removing the SerializableMenuitem object
* debian/rules: Making GTK2 the special build
* New upstream release.
  - Fix a typo in the signal name to make it match the XML
    files (LP: #641209)
  - Ref'ing the server for the entire time we're getting the
    bus (LP: #738568)
  - Watch additions/removals from submenus that get added
  - Activate new toplevel menu items as they get added
  - Make sure we don't activate toplevel children that aren't
    menu items or don't have submenus (LP: #761112)

Preview Diff

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

Subscribers

People subscribed via source and target branches

to all changes: