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