Merge lp:~bregma/ginn/packaging-699925 into lp:ginn

Proposed by Stephen M. Webb
Status: Superseded
Proposed branch: lp:~bregma/ginn/packaging-699925
Merge into: lp:ginn
Diff against target: 39016 lines (+38364/-505)
29 files modified
.bzrignore (+0/-81)
Makefile.in (+796/-0)
aclocal.m4 (+9115/-0)
autogen.sh (+0/-11)
config-aux/config.guess (+1502/-0)
config-aux/config.sub (+1714/-0)
config-aux/depcomp (+630/-0)
config-aux/install-sh (+520/-0)
config-aux/ltmain.sh (+8413/-0)
config-aux/missing (+376/-0)
config.h.in (+62/-0)
configure (+13983/-0)
debian/changelog (+15/-0)
debian/compat (+1/-0)
debian/control (+25/-0)
debian/copyright (+22/-0)
debian/ginn.install (+5/-0)
debian/postinst (+50/-0)
debian/postrm (+39/-0)
debian/rules (+13/-0)
debian/source/format (+1/-0)
debian/watch (+2/-0)
etc/Makefile.in (+414/-0)
etc/appNames (+0/-156)
etc/attributes (+0/-44)
etc/buttons (+0/-10)
etc/keys (+0/-189)
src/Makefile.in (+666/-0)
src/todo (+0/-14)
To merge this branch: bzr merge lp:~bregma/ginn/packaging-699925
Reviewer Review Type Date Requested Status
Henrik Rydberg (community) Needs Fixing
Review via email: mp+46595@code.launchpad.net

Description of the change

Added installer files for configuration file handling.

To post a comment you must log in.
Revision history for this message
Henrik Rydberg (rydberg) wrote :

Diff looks quite extensive ;-)

review: Needs Fixing
lp:~bregma/ginn/packaging-699925 updated
7. By Stephen M. Webb

Fixed bogus code that caused the fix to not work.

Unmerged revisions

7. By Stephen M. Webb

Fixed bogus code that caused the fix to not work.

6. By Stephen M. Webb

Added installer scripts to handle config files (LP: #699925).

5. By Mohamed IKBEL Boulabiar

releasing version 0.2.3-0ubuntu1-1

4. By Mohamed IKBEL Boulabiar

Packaging, Signing...

3. By Mohamed IKBEL Boulabiar

New upstream release.

2. By Mohamed IKBEL Boulabiar

initial packaging

1. By Mohamed IKBEL Boulabiar

initial import

Preview Diff

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