Merge lp:~indicator-applet-developers/ubuntu/precise/indicator-messages/upstream into lp:~ubuntu-desktop/indicator-messages/ubuntu

Proposed by Ted Gould
Status: Merged
Merged at revision: 211
Proposed branch: lp:~indicator-applet-developers/ubuntu/precise/indicator-messages/upstream
Merge into: lp:~ubuntu-desktop/indicator-messages/ubuntu
Diff against target: 20646 lines (+9906/-8824)
44 files modified
AUTHORS (+3/-0)
ChangeLog (+84/-0)
Makefile.am (+36/-0)
Makefile.in (+62/-15)
aclocal.m4 (+10/-8641)
configure (+407/-82)
configure.ac (+16/-5)
data/Makefile.in (+12/-1)
data/icons/16x16/Makefile.in (+12/-1)
data/icons/16x16/categories/Makefile.in (+12/-1)
data/icons/16x16/status/Makefile.in (+12/-1)
data/icons/22x22/Makefile.in (+12/-1)
data/icons/22x22/categories/Makefile.in (+12/-1)
data/icons/22x22/status/Makefile.in (+12/-1)
data/icons/24x24/Makefile.in (+12/-1)
data/icons/24x24/status/Makefile.in (+12/-1)
data/icons/32x32/Makefile.in (+12/-1)
data/icons/32x32/categories/Makefile.in (+12/-1)
data/icons/32x32/status/Makefile.in (+12/-1)
data/icons/48x48/Makefile.in (+12/-1)
data/icons/48x48/status/Makefile.in (+12/-1)
data/icons/Makefile.in (+12/-1)
data/icons/scalable/Makefile.in (+12/-1)
data/icons/scalable/categories/Makefile.in (+12/-1)
data/icons/scalable/status/Makefile.in (+12/-1)
debian/changelog (+15/-0)
debian/control (+6/-6)
ltmain.sh (+57/-38)
m4/gcov.m4 (+83/-0)
m4/intltool.m4 (+216/-0)
m4/libtool.m4 (+8001/-0)
m4/ltoptions.m4 (+384/-0)
m4/ltsugar.m4 (+123/-0)
m4/ltversion.m4 (+23/-0)
m4/lt~obsolete.m4 (+98/-0)
po/Makefile.in.in (+2/-2)
src/Makefile.am (+8/-1)
src/Makefile.in (+23/-4)
src/indicator-messages.c (+15/-5)
src/launcher-menu-item.c (+4/-1)
src/messages-service.c (+11/-3)
src/status-provider-mc5-marshal.c (+1/-1)
src/status-provider-pidgin-marshal.c (+1/-1)
src/status-provider-telepathy-marshal.c (+1/-1)
To merge this branch: bzr merge lp:~indicator-applet-developers/ubuntu/precise/indicator-messages/upstream
Reviewer Review Type Date Requested Status
Ken VanDine Pending
Review via email: mp+92411@code.launchpad.net

Description of the change

0.5.90

To post a comment you must log in.

Preview Diff

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

Subscribers

People subscribed via source and target branches