Merge lp:~bdrung/xiphos/lintian-clean into lp:xiphos/debian

Proposed by Benjamin Drung
Status: Merged
Merged at revision: 47
Proposed branch: lp:~bdrung/xiphos/lintian-clean
Merge into: lp:xiphos/debian
Diff against target: None lines
To merge this branch: bzr merge lp:~bdrung/xiphos/lintian-clean
Reviewer Review Type Date Requested Status
Dimitri John Ledkov (community) Approve
Review via email: mp+11535@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Benjamin Drung (bdrung) wrote :

This changes make the package lintian clean.

Revision history for this message
Jonathan Marsden (jmarsden) wrote :

Benjamin Drung wrote:

> Benjamin Drung has proposed merging lp:~bdrung/xiphos/lintian-clean
> into lp:~pkgcrosswire/xiphos/main.
>
> Requested reviews:
> Dmitrijs Ledkovs (dmitrij.ledkov)
>
> This changes make the package lintian clean.

Hi Benjamin!

Congratulations on becoming a MOTU, and thanks for your interest in
Xiphos. This diff is really *huge*, and as far as I can see, Xiphos
3.1.1-2 is already lintian clean in Debian Unstable and in Debian
Testing. See http://packages.qa.debian.org/xiphos and note the absence
of any Lintian warnings there. Is that level of cleanliness now
insufficient for Ubuntu?

Can you please explain exactly how "lintian unclean" Xiphos really is in
its current state, which Lintian version on which Ubuntu (or Debian)
release you are testing it with, and why it apparently needs such a
large diff to clean it up?

Thanks,

Jonathan

Revision history for this message
Benjamin Drung (bdrung) wrote :

Am Samstag, den 12.09.2009, 01:36 +0000 schrieb Jonathan Marsden:
> Congratulations on becoming a MOTU,

Thanks.

> and thanks for your interest in
> Xiphos. This diff is really *huge*, and as far as I can see, Xiphos
> 3.1.1-2 is already lintian clean in Debian Unstable and in Debian
> Testing. See http://packages.qa.debian.org/xiphos and note the absence
> of any Lintian warnings there. Is that level of cleanliness now
> insufficient for Ubuntu?
>
> Can you please explain exactly how "lintian unclean" Xiphos really is in
> its current state, which Lintian version on which Ubuntu (or Debian)
> release you are testing it with, and why it apparently needs such a
> large diff to clean it up?

I get following report from lintian -iIE --pedantic (version 2.2.14,
build on jaunty):
P: xiphos: copyright-refers-to-symlink-license usr/share/common-licenses/GFDL
W: xiphos: binary-or-shlib-defines-rpath ./usr/bin/xiphos /usr/lib
W: xiphos: binary-or-shlib-defines-rpath ./usr/bin/xiphos /lib
P: xiphos-data: copyright-refers-to-symlink-license usr/share/common-licenses/GFDL
P: gnomesword: copyright-refers-to-symlink-license usr/share/common-licenses/GFDL

My changes are not huge. The problem is the 2.3 MiB big auto-generated
patch. Attached the diff with this patch trimmed down. Then the changes
are only 60 lines long.

Cheers,
Benjamin

diff -pruN orig/debian/copyright main/debian/copyright
--- orig/debian/copyright 2009-09-12 10:08:25.500267233 +0200
+++ main/debian/copyright 2009-09-10 16:26:26.275774693 +0200
@@ -1,19 +1,33 @@
1Format-Specification: http://wiki.debian.org/Proposals/CopyrightFormat?action=recall&rev=4281Format-Specification: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=59
2Upstream-Name: Xiphos2Name: Xiphos
3Upstream-Maintainer: The Gnomesword Developer Team <gnomesword-developers@lists.sourceforge.net>3Maintainer: The Gnomesword Developer Team <gnomesword-developers@lists.sourceforge.net>
4Upstream-Source: http://www.xiphos.org4Source: http://www.xiphos.org
55
6Files: *6Files: *
7Copyright: Copyright 2000-2008, Xiphos Developer Team7Copyright: Copyright 2000-2008, Xiphos Developer Team
8License: GPL-2+8License: GPL-2+
9 On Debian systems the full text of the GNU General Public License can be found9 This program is free software; you can redistribute it and/or modify
10 in the `/usr/share/common-licenses/GPL-2' file.10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 2 of the License, or
12 (at your option) any later version.
13 .
14 This package is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
18 .
19 You should have received a copy of the GNU General Public License along
20 with this package; if not, write to the Free Software Foundation, Inc.,
21 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22 .
23 On Debian systems the full text of the GNU General Public License
24 can be found in the `/usr/share/common-licenses/GPL-2' file.
1125
12Files: help/*26Files: help/*
13Copyright: Copyright 2003-2009, The Xiphos Team27Copyright: Copyright 2003-2009, The Xiphos Team
14License: GFDL-1.1+28License: GFDL-1.1+
15 On Debian systems the full text of the GNU Free Documentation License can be found29 On Debian systems the full text of the GNU Free Documentation License
16 in the `/usr/share/common-licenses/GFDL' file.30 can be found in the `/usr/share/common-licenses/GFDL-1.2' file.
1731
18Files: debian/*32Files: debian/*
19Copyright: Copyright 2009, Crosswire Packaging Team <pkg-crosswire-devel@lists.alioth.debian.org>33Copyright: Copyright 2009, Crosswire Packaging Team <pkg-crosswire-devel@lists.alioth.debian.org>
diff -pruN orig/debian/patches/autoreconf.patch main/debian/patches/autoreconf.patch
--- orig/debian/patches/autoreconf.patch 1970-01-01 01:00:00.000000000 +0100
+++ main/debian/patches/autoreconf.patch 2009-09-12 10:24:50.649434412 +0200
@@ -0,0 +1,3 @@
1Update the autotools files to get rid of the binary-or-shlib-defines-rpath lintian warning.
2This patch is created by running "autoreconf && rm -r autom4te.cache".
3[...]
diff -pruN orig/debian/patches/series main/debian/patches/series
--- orig/debian/patches/series 2009-09-12 10:08:25.380267231 +0200
+++ main/debian/patches/series 2009-09-10 16:29:13.607775138 +0200
@@ -1,3 +1,4 @@
1autoreconf.patch
1ignone-desktop.in.patch2ignone-desktop.in.patch
2remove-obsolete-potfile.patch3remove-obsolete-potfile.patch
3remove-extra-licenses.patch4remove-extra-licenses.patch
Revision history for this message
Jonathan Marsden (jmarsden) wrote :

Benjamin Drung wrote:

> I get following report from lintian -iIE --pedantic (version 2.2.14,
> build on jaunty):
> P: xiphos: copyright-refers-to-symlink-license usr/share/common-licenses/GFDL
> W: xiphos: binary-or-shlib-defines-rpath ./usr/bin/xiphos /usr/lib
> W: xiphos: binary-or-shlib-defines-rpath ./usr/bin/xiphos /lib
> P: xiphos-data: copyright-refers-to-symlink-license usr/share/common-licenses/GFDL
> P: gnomesword: copyright-refers-to-symlink-license usr/share/common-licenses/GFDL
>
> My changes are not huge. The problem is the 2.3 MiB big auto-generated
> patch. Attached the diff with this patch trimmed down. Then the changes
> are only 60 lines long.

OK, thanks. That helps :) I think it might be simpler to just
build-depend on chrpath and run it

  chrpath -d $(CURDIR)/usr/bin/xiphos

(or something like that) in debian/rules at the appropriate point,
rather than carry such a big patch around?

That is how I handled (removed) the rpath warnings in the sword package,
which Dmitri and I created together and which xiphos depends on.

Then, longer term, we can (hopefully) persuade "upstream" to put newer
autoconf-generated files in their release tarballs.

I think that it is easier to deal with (easier to read, understand and
review) a line or two more in debian/rules, instead of adding a 2+ MByte
patch :)

Do you know if it is common to have such large patches just to overcome
lintian warnings like this?

Jonathan

Revision history for this message
Dimitri John Ledkov (xnox) wrote :

(Me is very confused with To and Cc right now I've been getting double
of every email so far and I'm sorry if you are going to get a double
of this email as well)

2009/9/12 Jonathan Marsden <email address hidden>:
> Benjamin Drung wrote:
>
>> I get following report from lintian -iIE --pedantic (version 2.2.14,
>> build on jaunty):
>> P: xiphos: copyright-refers-to-symlink-license usr/share/common-licenses/GFDL
>> W: xiphos: binary-or-shlib-defines-rpath ./usr/bin/xiphos /usr/lib
>> W: xiphos: binary-or-shlib-defines-rpath ./usr/bin/xiphos /lib
>> P: xiphos-data: copyright-refers-to-symlink-license usr/share/common-licenses/GFDL
>> P: gnomesword: copyright-refers-to-symlink-license usr/share/common-licenses/GFDL
>>
>> My changes are not huge. The problem is the 2.3 MiB big auto-generated
>> patch. Attached the diff with this patch trimmed down. Then the changes
>> are only 60 lines long.
>

The debian/copyright can certainly go it =) I'll merge as soon as i'll
be back on my main ubuntu box.

As for autoreconf, not so sure about chrpath either. Because I have
longer term solution

> Then, longer term, we can (hopefully) persuade "upstream" to put newer
> autoconf-generated files in their release tarballs.
>

I am one of the "upstreams" now, well I have commit access anyway. So
far I've update configure.ac, all makefiles.am and so far already
dropped image-magick dependency. And after I will convince the lead
developer not to use Fedora 7 to generate tarballs this issue will be
gone. So next upstream release hopefully will be generated with modern
autotools and this issue will be gone fingers-crossed.

>
> Do you know if it is common to have such large patches just to overcome
> lintian warnings like this?
>

As far as I know if you modify configure.ac, makefile.am and etc you
should run all autofoo and use it as a patch cause then you will have
the same configure + Makefile.in's on all architectures. There is high
chance that each architecture and each release has different autotools
and by applying patch is the only option to make reproducible builds.

> Jonathan
> --
> https://code.launchpad.net/~bdrung/xiphos/lintian-clean/+merge/11535
> You are requested to review the proposed merge of lp:~bdrung/xiphos/lintian-clean into lp:~pkgcrosswire/xiphos/main.
>

--
With best regards

Dmitrijs Ledkovs (for short Dima),
Ледков Дмитрий Юрьевич

Revision history for this message
Dimitri John Ledkov (xnox) wrote :

I've merged the copyright fixes.

I'll use chrpath for now instead of autoreconf patch, because it is less intrusive.

Next upstream release will be generated with modern toolchain so the chrpath problem will go away. Hopefully =/

I can't reproduce chrpath on my i386 machine. Are you on AMD64?

Can you please test that chrpath is gone? (Please mind the latest xulrunner makes xiphos FTBFS Bug #427638)

Thank you for your contribution.

review: Approve
Revision history for this message
Benjamin Drung (bdrung) wrote :

Am Samstag, den 12.09.2009, 09:18 +0000 schrieb Jonathan Marsden:
> Do you know if it is common to have such large patches just to overcome
> lintian warnings like this?

Sometimes, yes. As Dmitrijs wrote is it the only way to get reproducible
builds.

Am Samstag, den 12.09.2009, 16:57 +0000 schrieb Dmitrijs Ledkovs:
> Review: Approve
> I've merged the copyright fixes.
>
> I'll use chrpath for now instead of autoreconf patch, because it is less intrusive.

Use what you like more.

> Next upstream release will be generated with modern toolchain so the chrpath problem will go away. Hopefully =/

Yes, that's the real solution.

> I can't reproduce chrpath on my i386 machine. Are you on AMD64?

Yes, I am on amd64.

> Can you please test that chrpath is gone? (Please mind the latest xulrunner makes xiphos FTBFS Bug #427638)

Ok, I have tested it on jaunty and it works.

Cheers,
Benjamin

Revision history for this message
Dimitri John Ledkov (xnox) wrote :

LinkedIn
------------

I'd like to add you to my professional network on LinkedIn.

- Dmitrijs Ledkovs

Confirm that you know Dmitrijs Ledkovs
https://www.linkedin.com/e/isd/1067432952/SW8oVJBu/

------
(c) 2010, LinkedIn Corporation

Preview Diff

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

Subscribers

People subscribed via source and target branches