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

Proposed by Ted Gould
Status: Merged
Merged at revision: 76
Proposed branch: lp:~dbusmenu-team/libdbusmenu/ubuntu
Merge into: lp:~ubuntu-desktop/libdbusmenu/ubuntu
Diff against target: 8975 lines (+208/-8363)
21 files modified
Makefile.in (+5/-1)
aclocal.m4 (+7/-8255)
configure (+11/-11)
configure.ac (+3/-3)
debian/changelog (+23/-0)
debian/gir1.0-dbusmenu-glib-0.2.install (+1/-1)
debian/libdbusmenu-glib-dev.install (+2/-2)
libdbusmenu-glib/Makefile.am (+14/-10)
libdbusmenu-glib/Makefile.in (+15/-10)
libdbusmenu-glib/client.c (+3/-0)
libdbusmenu-glib/dbus-menu.xml (+9/-3)
libdbusmenu-glib/menuitem.c (+3/-3)
libdbusmenu-glib/menuitem.h (+58/-53)
libdbusmenu-glib/server.c (+2/-2)
libdbusmenu-gtk/Makefile.am (+6/-3)
libdbusmenu-gtk/Makefile.in (+7/-3)
libdbusmenu-gtk/client.c (+23/-0)
libdbusmenu-gtk/client.h (+1/-0)
tests/Makefile.in (+5/-1)
tools/Makefile.in (+5/-1)
tools/testapp/Makefile.in (+5/-1)
To merge this branch: bzr merge lp:~dbusmenu-team/libdbusmenu/ubuntu
Reviewer Review Type Date Requested Status
Ken VanDine Pending
Review via email: mp+26225@code.launchpad.net

Description of the change

0.3.0

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

* New upstream release.
  * Add function to get submenu of GTK-ified items
  * Fix signal prototype of ID update
  * Fixing up VAPI files to build them correctly
 * Fixing the version string in the GIR file
  * Fix documentation title page
  * Reject text nodes early (warnings with Qt integration)
* debian/libdbusmenu-glib-dev.install: Updating gir and vapi file
  names for package list.
* debian/gir1.0-dbusmenu-glib-0.2.install: Changing the name of the
  typelib file.

76. By Ken VanDine

Fix annotations for GIR scanner

Preview Diff

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

Subscribers

People subscribed via source and target branches

to all changes: