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

Proposed by Ted Gould
Status: Merged
Merged at revision: 157
Proposed branch: lp:~dbusmenu-team/libdbusmenu/ubuntu
Merge into: lp:~ubuntu-desktop/libdbusmenu/ubuntu
Diff against target: 20433 lines (+9605/-9248)
65 files modified
AUTHORS (+1/-0)
ChangeLog (+60/-0)
Makefile.am (+12/-2)
Makefile.in (+14/-4)
aclocal.m4 (+49/-8855)
configure (+290/-26)
configure.ac (+70/-12)
debian/changelog (+9/-0)
docs/Makefile.am (+7/-1)
docs/Makefile.in (+14/-3)
docs/libdbusmenu-glib/Makefile.in (+8/-1)
docs/libdbusmenu-glib/reference/Makefile.in (+8/-1)
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 (+8/-8)
docs/libdbusmenu-glib/reference/html/libdbusmenu-glib-DbusmenuMenuitem.html (+2/-2)
docs/libdbusmenu-glib/reference/html/libdbusmenu-glib-DbusmenuMenuitemProxy.html (+4/-4)
docs/libdbusmenu-glib/reference/html/libdbusmenu-glib-DbusmenuServer.html (+6/-6)
docs/libdbusmenu-glib/reference/html/libdbusmenu-glib-Types.html (+8/-6)
docs/libdbusmenu-glib/reference/html/libdbusmenu-glib.devhelp (+0/-152)
docs/libdbusmenu-glib/reference/html/object-tree.html (+2/-2)
docs/libdbusmenu-glib/reference/version.xml (+1/-1)
docs/libdbusmenu-glib/reference/xml/client.xml (+6/-6)
docs/libdbusmenu-glib/reference/xml/menuitem-proxy.xml (+2/-2)
docs/libdbusmenu-glib/reference/xml/server.xml (+4/-4)
docs/libdbusmenu-glib/reference/xml/types.xml (+6/-4)
docs/libdbusmenu-gtk/Makefile.in (+8/-1)
docs/libdbusmenu-gtk/reference/Makefile.in (+8/-1)
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/-2)
docs/libdbusmenu-gtk/reference/html/ch01.html (+3/-3)
docs/libdbusmenu-gtk/reference/html/index.html (+2/-2)
docs/libdbusmenu-gtk/reference/html/libdbusmenu-gtk-DbusmenuGtkClient.html (+4/-4)
docs/libdbusmenu-gtk/reference/html/libdbusmenu-gtk-DbusmenuGtkMenu.html (+4/-4)
docs/libdbusmenu-gtk/reference/html/libdbusmenu-gtk-menuitem.html (+2/-2)
docs/libdbusmenu-gtk/reference/html/libdbusmenu-gtk-parser.html (+2/-2)
docs/libdbusmenu-gtk/reference/html/libdbusmenu-gtk.devhelp (+0/-38)
docs/libdbusmenu-gtk/reference/html/object-tree.html (+2/-2)
docs/libdbusmenu-gtk/reference/version.xml (+1/-1)
docs/libdbusmenu-gtk/reference/xml/client.xml (+2/-2)
docs/libdbusmenu-gtk/reference/xml/menu.xml (+2/-2)
libdbusmenu-glib/Makefile.am (+2/-0)
libdbusmenu-glib/Makefile.in (+15/-8)
libdbusmenu-gtk/Makefile.am (+2/-0)
libdbusmenu-gtk/Makefile.in (+26/-20)
libdbusmenu-gtk/parser.c (+3/-0)
m4/gnome-doc-utils.m4 (+56/-0)
m4/gtk-doc.m4 (+67/-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 (+22/-6)
tests/Makefile.in (+50/-12)
tests/test-gtk-parser.c (+2/-0)
tools/Makefile.am (+5/-1)
tools/Makefile.in (+11/-2)
tools/testapp/Makefile.am (+4/-8)
tools/testapp/Makefile.in (+12/-8)
To merge this branch: bzr merge lp:~dbusmenu-team/libdbusmenu/ubuntu
Reviewer Review Type Date Requested Status
Ken VanDine Approve
Sebastien Bacher Pending
Review via email: mp+76147@code.launchpad.net

Description of the change

Crasher and build fixes

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

New upstream release.
∘ Protect functions from NULL submenus (LP: #803667)
∘ Build fixes (LP: #552526, LP: #552530, LP: #552538, LP: #709761,
LP: #713690, LP: #643871, LP: #713685)

Revision history for this message
Ken VanDine (ken-vandine) wrote :

Looks good!

review: Approve

Preview Diff

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

Subscribers

People subscribed via source and target branches

to all changes: