]> git.pld-linux.org Git - packages/agsync.git/blame - agsync-debian.patch
- ghost soname symlink
[packages/agsync.git] / agsync-debian.patch
CommitLineData
1253894b
ER
1--- agsync-0.2-pre.orig/mal-files/client/Makefile.am
2+++ agsync-0.2-pre/mal-files/client/Makefile.am
3@@ -0,0 +1,4 @@
4+EXTRA_DIST = AGClientProcessor.c AGClientProcessor.h AGCommandProcessor.c AGCommandProcessor.h AGProxyDebug.c AGProxyDebug.h AGSyncProcessor.c AGSyncProcessor.h
5+
6+include_HEADERS = AGClientProcessor.h AGCommandProcessor.h AGProxyDebug.h AGSyncProcessor.h
7+noinst_HEADERS = AGClientProcessor.h AGCommandProcessor.h AGProxyDebug.h AGSyncProcessor.h
8--- agsync-0.2-pre.orig/mal-files/client/Makefile.in
9+++ agsync-0.2-pre/mal-files/client/Makefile.in
10@@ -0,0 +1,359 @@
11+# Makefile.in generated by automake 1.7.9 from Makefile.am.
12+# @configure_input@
13+
14+# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
15+# Free Software Foundation, Inc.
16+# This Makefile.in is free software; the Free Software Foundation
17+# gives unlimited permission to copy and/or distribute it,
18+# with or without modifications, as long as this notice is preserved.
19+
20+# This program is distributed in the hope that it will be useful,
21+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
22+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
23+# PARTICULAR PURPOSE.
24+
25+@SET_MAKE@
26+
27+srcdir = @srcdir@
28+top_srcdir = @top_srcdir@
29+VPATH = @srcdir@
30+pkgdatadir = $(datadir)/@PACKAGE@
31+pkglibdir = $(libdir)/@PACKAGE@
32+pkgincludedir = $(includedir)/@PACKAGE@
33+top_builddir = ../..
34+
35+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
36+INSTALL = @INSTALL@
37+install_sh_DATA = $(install_sh) -c -m 644
38+install_sh_PROGRAM = $(install_sh) -c
39+install_sh_SCRIPT = $(install_sh) -c
40+INSTALL_HEADER = $(INSTALL_DATA)
41+transform = $(program_transform_name)
42+NORMAL_INSTALL = :
43+PRE_INSTALL = :
44+POST_INSTALL = :
45+NORMAL_UNINSTALL = :
46+PRE_UNINSTALL = :
47+POST_UNINSTALL = :
48+host_triplet = @host@
49+ACLOCAL = @ACLOCAL@
50+AMDEP_FALSE = @AMDEP_FALSE@
51+AMDEP_TRUE = @AMDEP_TRUE@
52+AMTAR = @AMTAR@
53+AR = @AR@
54+AUTOCONF = @AUTOCONF@
55+AUTOHEADER = @AUTOHEADER@
56+AUTOMAKE = @AUTOMAKE@
57+AWK = @AWK@
58+CC = @CC@
59+CCDEPMODE = @CCDEPMODE@
60+CFLAGS = @CFLAGS@
61+CPP = @CPP@
62+CPPFLAGS = @CPPFLAGS@
63+CXX = @CXX@
64+CXXCPP = @CXXCPP@
65+CXXDEPMODE = @CXXDEPMODE@
66+CXXFLAGS = @CXXFLAGS@
67+CYGPATH_W = @CYGPATH_W@
68+DEFS = @DEFS@
69+DEPDIR = @DEPDIR@
70+ECHO = @ECHO@
71+ECHO_C = @ECHO_C@
72+ECHO_N = @ECHO_N@
73+ECHO_T = @ECHO_T@
74+EGREP = @EGREP@
75+EXEEXT = @EXEEXT@
76+F77 = @F77@
77+FFLAGS = @FFLAGS@
78+INSTALL_DATA = @INSTALL_DATA@
79+INSTALL_PROGRAM = @INSTALL_PROGRAM@
80+INSTALL_SCRIPT = @INSTALL_SCRIPT@
81+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
82+LDFLAGS = @LDFLAGS@
83+LIBOBJS = @LIBOBJS@
84+LIBS = @LIBS@
85+LIBTOOL = @LIBTOOL@
86+LN_S = @LN_S@
87+LTLIBOBJS = @LTLIBOBJS@
88+MAINT = @MAINT@
89+MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
90+MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
91+MAKEINFO = @MAKEINFO@
92+OBJEXT = @OBJEXT@
93+PACKAGE = @PACKAGE@
94+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
95+PACKAGE_NAME = @PACKAGE_NAME@
96+PACKAGE_STRING = @PACKAGE_STRING@
97+PACKAGE_TARNAME = @PACKAGE_TARNAME@
98+PACKAGE_VERSION = @PACKAGE_VERSION@
99+PATH_SEPARATOR = @PATH_SEPARATOR@
100+RANLIB = @RANLIB@
101+SET_MAKE = @SET_MAKE@
102+SHELL = @SHELL@
103+STRIP = @STRIP@
104+VERSION = @VERSION@
105+ac_ct_AR = @ac_ct_AR@
106+ac_ct_CC = @ac_ct_CC@
107+ac_ct_CXX = @ac_ct_CXX@
108+ac_ct_F77 = @ac_ct_F77@
109+ac_ct_RANLIB = @ac_ct_RANLIB@
110+ac_ct_STRIP = @ac_ct_STRIP@
111+am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
112+am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
113+am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
114+am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
115+am__include = @am__include@
116+am__leading_dot = @am__leading_dot@
117+am__quote = @am__quote@
118+bindir = @bindir@
119+build = @build@
120+build_alias = @build_alias@
121+build_cpu = @build_cpu@
122+build_os = @build_os@
123+build_vendor = @build_vendor@
124+datadir = @datadir@
125+exec_prefix = @exec_prefix@
126+host = @host@
127+host_alias = @host_alias@
128+host_cpu = @host_cpu@
129+host_os = @host_os@
130+host_vendor = @host_vendor@
131+includedir = @includedir@
132+infodir = @infodir@
133+install_sh = @install_sh@
134+libdir = @libdir@
135+libexecdir = @libexecdir@
136+localstatedir = @localstatedir@
137+mandir = @mandir@
138+oldincludedir = @oldincludedir@
139+prefix = @prefix@
140+program_transform_name = @program_transform_name@
141+sbindir = @sbindir@
142+sharedstatedir = @sharedstatedir@
143+sysconfdir = @sysconfdir@
144+target_alias = @target_alias@
145+EXTRA_DIST = AGClientProcessor.c AGClientProcessor.h AGCommandProcessor.c AGCommandProcessor.h AGProxyDebug.c AGProxyDebug.h AGSyncProcessor.c AGSyncProcessor.h
146+
147+include_HEADERS = AGClientProcessor.h AGCommandProcessor.h AGProxyDebug.h AGSyncProcessor.h
148+noinst_HEADERS = AGClientProcessor.h AGCommandProcessor.h AGProxyDebug.h AGSyncProcessor.h
149+subdir = mal-files/client
150+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
151+mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
152+CONFIG_HEADER = $(top_builddir)/config.h
153+CONFIG_CLEAN_FILES =
154+DIST_SOURCES =
155+HEADERS = $(include_HEADERS) $(noinst_HEADERS)
156+
157+DIST_COMMON = $(include_HEADERS) $(noinst_HEADERS) \
158+ $(srcdir)/Makefile.in Makefile.am
159+all: all-am
160+
161+.SUFFIXES:
162+$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
163+ cd $(top_srcdir) && \
164+ $(AUTOMAKE) --gnu mal-files/client/Makefile
165+Makefile: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.in $(top_builddir)/config.status
166+ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
167+
168+mostlyclean-libtool:
169+ -rm -f *.lo
170+
171+clean-libtool:
172+ -rm -rf .libs _libs
173+
174+distclean-libtool:
175+ -rm -f libtool
176+uninstall-info-am:
177+includeHEADERS_INSTALL = $(INSTALL_HEADER)
178+install-includeHEADERS: $(include_HEADERS)
179+ @$(NORMAL_INSTALL)
180+ $(mkinstalldirs) $(DESTDIR)$(includedir)
181+ @list='$(include_HEADERS)'; for p in $$list; do \
182+ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
183+ f="`echo $$p | sed -e 's|^.*/||'`"; \
184+ echo " $(includeHEADERS_INSTALL) $$d$$p $(DESTDIR)$(includedir)/$$f"; \
185+ $(includeHEADERS_INSTALL) $$d$$p $(DESTDIR)$(includedir)/$$f; \
186+ done
187+
188+uninstall-includeHEADERS:
189+ @$(NORMAL_UNINSTALL)
190+ @list='$(include_HEADERS)'; for p in $$list; do \
191+ f="`echo $$p | sed -e 's|^.*/||'`"; \
192+ echo " rm -f $(DESTDIR)$(includedir)/$$f"; \
193+ rm -f $(DESTDIR)$(includedir)/$$f; \
194+ done
195+
196+ETAGS = etags
197+ETAGSFLAGS =
198+
199+CTAGS = ctags
200+CTAGSFLAGS =
201+
202+tags: TAGS
203+
204+ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
205+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
206+ unique=`for i in $$list; do \
207+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
208+ done | \
209+ $(AWK) ' { files[$$0] = 1; } \
210+ END { for (i in files) print i; }'`; \
211+ mkid -fID $$unique
212+
213+TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
214+ $(TAGS_FILES) $(LISP)
215+ tags=; \
216+ here=`pwd`; \
217+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
218+ unique=`for i in $$list; do \
219+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
220+ done | \
221+ $(AWK) ' { files[$$0] = 1; } \
222+ END { for (i in files) print i; }'`; \
223+ test -z "$(ETAGS_ARGS)$$tags$$unique" \
224+ || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
225+ $$tags $$unique
226+
227+ctags: CTAGS
228+CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
229+ $(TAGS_FILES) $(LISP)
230+ tags=; \
231+ here=`pwd`; \
232+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
233+ unique=`for i in $$list; do \
234+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
235+ done | \
236+ $(AWK) ' { files[$$0] = 1; } \
237+ END { for (i in files) print i; }'`; \
238+ test -z "$(CTAGS_ARGS)$$tags$$unique" \
239+ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
240+ $$tags $$unique
241+
242+GTAGS:
243+ here=`$(am__cd) $(top_builddir) && pwd` \
244+ && cd $(top_srcdir) \
245+ && gtags -i $(GTAGS_ARGS) $$here
246+
247+distclean-tags:
248+ -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
249+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
250+
251+top_distdir = ../..
252+distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
253+
254+distdir: $(DISTFILES)
255+ @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
256+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
257+ list='$(DISTFILES)'; for file in $$list; do \
258+ case $$file in \
259+ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
260+ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
261+ esac; \
262+ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
263+ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
264+ if test "$$dir" != "$$file" && test "$$dir" != "."; then \
265+ dir="/$$dir"; \
266+ $(mkinstalldirs) "$(distdir)$$dir"; \
267+ else \
268+ dir=''; \
269+ fi; \
270+ if test -d $$d/$$file; then \
271+ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
272+ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
273+ fi; \
274+ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
275+ else \
276+ test -f $(distdir)/$$file \
277+ || cp -p $$d/$$file $(distdir)/$$file \
278+ || exit 1; \
279+ fi; \
280+ done
281+check-am: all-am
282+check: check-am
283+all-am: Makefile $(HEADERS)
284+
285+installdirs:
286+ $(mkinstalldirs) $(DESTDIR)$(includedir)
287+install: install-am
288+install-exec: install-exec-am
289+install-data: install-data-am
290+uninstall: uninstall-am
291+
292+install-am: all-am
293+ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
294+
295+installcheck: installcheck-am
296+install-strip:
297+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
298+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
299+ `test -z '$(STRIP)' || \
300+ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
301+mostlyclean-generic:
302+
303+clean-generic:
304+
305+distclean-generic:
306+ -rm -f $(CONFIG_CLEAN_FILES)
307+
308+maintainer-clean-generic:
309+ @echo "This command is intended for maintainers to use"
310+ @echo "it deletes files that may require special tools to rebuild."
311+clean: clean-am
312+
313+clean-am: clean-generic clean-libtool mostlyclean-am
314+
315+distclean: distclean-am
316+ -rm -f Makefile
317+distclean-am: clean-am distclean-generic distclean-libtool \
318+ distclean-tags
319+
320+dvi: dvi-am
321+
322+dvi-am:
323+
324+info: info-am
325+
326+info-am:
327+
328+install-data-am: install-includeHEADERS
329+
330+install-exec-am:
331+
332+install-info: install-info-am
333+
334+install-man:
335+
336+installcheck-am:
337+
338+maintainer-clean: maintainer-clean-am
339+ -rm -f Makefile
340+maintainer-clean-am: distclean-am maintainer-clean-generic
341+
342+mostlyclean: mostlyclean-am
343+
344+mostlyclean-am: mostlyclean-generic mostlyclean-libtool
345+
346+pdf: pdf-am
347+
348+pdf-am:
349+
350+ps: ps-am
351+
352+ps-am:
353+
354+uninstall-am: uninstall-includeHEADERS uninstall-info-am
355+
356+.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
357+ clean-libtool ctags distclean distclean-generic \
358+ distclean-libtool distclean-tags distdir dvi dvi-am info \
359+ info-am install install-am install-data install-data-am \
360+ install-exec install-exec-am install-includeHEADERS \
361+ install-info install-info-am install-man install-strip \
362+ installcheck installcheck-am installdirs maintainer-clean \
363+ maintainer-clean-generic mostlyclean mostlyclean-generic \
364+ mostlyclean-libtool pdf pdf-am ps ps-am tags uninstall \
365+ uninstall-am uninstall-includeHEADERS uninstall-info-am
366+
367+# Tell versions [3.59,3.63) of GNU make to not export all variables.
368+# Otherwise a system limit (for SysV at least) may be exceeded.
369+.NOEXPORT:
370--- agsync-0.2-pre.orig/mal-files/AGNet.h
371+++ agsync-0.2-pre/mal-files/AGNet.h
372@@ -61,7 +61,7 @@
373 # include <sys/filio.h>
374 # include <arpa/inet.h>
375 # else
376-# if defined(__FreeBSD__) || defined(_HPUX_SOURCE)
377+# if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(_HPUX_SOURCE)
378 # include <sys/ioctl.h>
379 # include <arpa/inet.h>
380 # else
381--- agsync-0.2-pre.orig/mal-files/AGBase64.c
382+++ agsync-0.2-pre/mal-files/AGBase64.c
383@@ -103,7 +103,7 @@
384 int ixtext;
385 int lentext;
386 char ch, *ptr, *tptr;
387- char inbuf [3];
388+ char inbuf [4];
389 int ixinbuf;
390 int ignorechar;
391 int endtext = 0;
392--- agsync-0.2-pre.orig/mal-files/Makefile.am
393+++ agsync-0.2-pre/mal-files/Makefile.am
394@@ -0,0 +1,24 @@
395+
396+METASOURCES = AUTO
397+SUBDIRS = client
398+lib_LTLIBRARIES = libmal-funcs.la
399+libmal_funcs_la_SOURCES = AGArray.c AGArray.h AGBase64.c AGBase64.h \
400+ AGBufferedNet.c AGBufferedNet.h AGBufferReader.c AGBufferReader.h \
401+ AGBufferWriter.c AGBufferWriter.h AGCollection.c AGCollection.h \
402+ AGDBConfig.c AGDBConfig.h AGDeviceInfo.c AGDeviceInfo.h AGDigest.c \
403+ AGDigest.h AGLocationConfig.c AGLocationConfig.h AGMD5.c AGMD5.h \
404+ AGMsg.c AGMsg.h AGNet.c AGNet.h AGProtectedMem.c AGProtectedMem.h \
405+ AGProtocol.c AGProtocol.h AGProxy.c AGProxy.h AGReader.c AGReader.h \
406+ AGRecord.c AGRecord.h AGServerConfig.c AGServerConfig.h \
407+ AGSynchronize.c AGSynchronize.h AGTypes.h AGUserConfig.c \
408+ AGUserConfig.h AGUtil.h AGUtilUnix.c AGUtilUnix.h AGWriter.c \
409+ AGWriter.h md5.c md5.h client/AGClientProcessor.c \
410+ client/AGClientProcessor.h client/AGCommandProcessor.c \
411+ client/AGCommandProcessor.h client/AGProxyDebug.c \
412+ client/AGProxyDebug.h client/AGSyncProcessor.c client/AGSyncProcessor.h
413+
414+
415+
416+INCLUDES = -I$(top_srcdir)/mal-files -I$(top_srcdir)/mal-files/client
417+noinst_HEADERS = AGArray.h AGBase64.h AGBufferedNet.h AGBufferReader.h AGBufferWriter.h AGCollection.h AGDBConfig.h AGDeviceInfo.h AGDigest.h AGLocationConfig.h AGMD5.h AGMsg.h AGNet.h AGProtectedMem.h AGProtocol.h AGProxy.h AGReader.h AGRecord.h AGServerConfig.h AGSynchronize.h AGTypes.h AGUserConfig.h AGUtil.h AGUtilUnix.h AGWriter.h md5.h
418+include_HEADERS = AGArray.h AGBase64.h AGBufferedNet.h AGBufferReader.h AGBufferWriter.h AGCollection.h AGDBConfig.h AGDeviceInfo.h AGDigest.h AGLocationConfig.h AGMD5.h AGMsg.h AGNet.h AGProtectedMem.h AGProtocol.h AGProxy.h AGReader.h AGRecord.h AGServerConfig.h AGSynchronize.h AGTypes.h AGUserConfig.h AGUtil.h AGUtilUnix.h AGWriter.h md5.h
419--- agsync-0.2-pre.orig/mal-files/Makefile.in
420+++ agsync-0.2-pre/mal-files/Makefile.in
421@@ -0,0 +1,765 @@
422+# Makefile.in generated by automake 1.7.9 from Makefile.am.
423+# @configure_input@
424+
425+# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
426+# Free Software Foundation, Inc.
427+# This Makefile.in is free software; the Free Software Foundation
428+# gives unlimited permission to copy and/or distribute it,
429+# with or without modifications, as long as this notice is preserved.
430+
431+# This program is distributed in the hope that it will be useful,
432+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
433+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
434+# PARTICULAR PURPOSE.
435+
436+@SET_MAKE@
437+
438+srcdir = @srcdir@
439+top_srcdir = @top_srcdir@
440+VPATH = @srcdir@
441+pkgdatadir = $(datadir)/@PACKAGE@
442+pkglibdir = $(libdir)/@PACKAGE@
443+pkgincludedir = $(includedir)/@PACKAGE@
444+top_builddir = ..
445+
446+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
447+INSTALL = @INSTALL@
448+install_sh_DATA = $(install_sh) -c -m 644
449+install_sh_PROGRAM = $(install_sh) -c
450+install_sh_SCRIPT = $(install_sh) -c
451+INSTALL_HEADER = $(INSTALL_DATA)
452+transform = $(program_transform_name)
453+NORMAL_INSTALL = :
454+PRE_INSTALL = :
455+POST_INSTALL = :
456+NORMAL_UNINSTALL = :
457+PRE_UNINSTALL = :
458+POST_UNINSTALL = :
459+host_triplet = @host@
460+ACLOCAL = @ACLOCAL@
461+AMDEP_FALSE = @AMDEP_FALSE@
462+AMDEP_TRUE = @AMDEP_TRUE@
463+AMTAR = @AMTAR@
464+AR = @AR@
465+AUTOCONF = @AUTOCONF@
466+AUTOHEADER = @AUTOHEADER@
467+AUTOMAKE = @AUTOMAKE@
468+AWK = @AWK@
469+CC = @CC@
470+CCDEPMODE = @CCDEPMODE@
471+CFLAGS = @CFLAGS@
472+CPP = @CPP@
473+CPPFLAGS = @CPPFLAGS@
474+CXX = @CXX@
475+CXXCPP = @CXXCPP@
476+CXXDEPMODE = @CXXDEPMODE@
477+CXXFLAGS = @CXXFLAGS@
478+CYGPATH_W = @CYGPATH_W@
479+DEFS = @DEFS@
480+DEPDIR = @DEPDIR@
481+ECHO = @ECHO@
482+ECHO_C = @ECHO_C@
483+ECHO_N = @ECHO_N@
484+ECHO_T = @ECHO_T@
485+EGREP = @EGREP@
486+EXEEXT = @EXEEXT@
487+F77 = @F77@
488+FFLAGS = @FFLAGS@
489+INSTALL_DATA = @INSTALL_DATA@
490+INSTALL_PROGRAM = @INSTALL_PROGRAM@
491+INSTALL_SCRIPT = @INSTALL_SCRIPT@
492+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
493+LDFLAGS = @LDFLAGS@
494+LIBOBJS = @LIBOBJS@
495+LIBS = @LIBS@
496+LIBTOOL = @LIBTOOL@
497+LN_S = @LN_S@
498+LTLIBOBJS = @LTLIBOBJS@
499+MAINT = @MAINT@
500+MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
501+MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
502+MAKEINFO = @MAKEINFO@
503+OBJEXT = @OBJEXT@
504+PACKAGE = @PACKAGE@
505+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
506+PACKAGE_NAME = @PACKAGE_NAME@
507+PACKAGE_STRING = @PACKAGE_STRING@
508+PACKAGE_TARNAME = @PACKAGE_TARNAME@
509+PACKAGE_VERSION = @PACKAGE_VERSION@
510+PATH_SEPARATOR = @PATH_SEPARATOR@
511+RANLIB = @RANLIB@
512+SET_MAKE = @SET_MAKE@
513+SHELL = @SHELL@
514+STRIP = @STRIP@
515+VERSION = @VERSION@
516+ac_ct_AR = @ac_ct_AR@
517+ac_ct_CC = @ac_ct_CC@
518+ac_ct_CXX = @ac_ct_CXX@
519+ac_ct_F77 = @ac_ct_F77@
520+ac_ct_RANLIB = @ac_ct_RANLIB@
521+ac_ct_STRIP = @ac_ct_STRIP@
522+am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
523+am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
524+am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
525+am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
526+am__include = @am__include@
527+am__leading_dot = @am__leading_dot@
528+am__quote = @am__quote@
529+bindir = @bindir@
530+build = @build@
531+build_alias = @build_alias@
532+build_cpu = @build_cpu@
533+build_os = @build_os@
534+build_vendor = @build_vendor@
535+datadir = @datadir@
536+exec_prefix = @exec_prefix@
537+host = @host@
538+host_alias = @host_alias@
539+host_cpu = @host_cpu@
540+host_os = @host_os@
541+host_vendor = @host_vendor@
542+includedir = @includedir@
543+infodir = @infodir@
544+install_sh = @install_sh@
545+libdir = @libdir@
546+libexecdir = @libexecdir@
547+localstatedir = @localstatedir@
548+mandir = @mandir@
549+oldincludedir = @oldincludedir@
550+prefix = @prefix@
551+program_transform_name = @program_transform_name@
552+sbindir = @sbindir@
553+sharedstatedir = @sharedstatedir@
554+sysconfdir = @sysconfdir@
555+target_alias = @target_alias@
556+
557+METASOURCES = AUTO
558+SUBDIRS = client
559+lib_LTLIBRARIES = libmal-funcs.la
560+libmal_funcs_la_SOURCES = AGArray.c AGArray.h AGBase64.c AGBase64.h \
561+ AGBufferedNet.c AGBufferedNet.h AGBufferReader.c AGBufferReader.h \
562+ AGBufferWriter.c AGBufferWriter.h AGCollection.c AGCollection.h \
563+ AGDBConfig.c AGDBConfig.h AGDeviceInfo.c AGDeviceInfo.h AGDigest.c \
564+ AGDigest.h AGLocationConfig.c AGLocationConfig.h AGMD5.c AGMD5.h \
565+ AGMsg.c AGMsg.h AGNet.c AGNet.h AGProtectedMem.c AGProtectedMem.h \
566+ AGProtocol.c AGProtocol.h AGProxy.c AGProxy.h AGReader.c AGReader.h \
567+ AGRecord.c AGRecord.h AGServerConfig.c AGServerConfig.h \
568+ AGSynchronize.c AGSynchronize.h AGTypes.h AGUserConfig.c \
569+ AGUserConfig.h AGUtil.h AGUtilUnix.c AGUtilUnix.h AGWriter.c \
570+ AGWriter.h md5.c md5.h client/AGClientProcessor.c \
571+ client/AGClientProcessor.h client/AGCommandProcessor.c \
572+ client/AGCommandProcessor.h client/AGProxyDebug.c \
573+ client/AGProxyDebug.h client/AGSyncProcessor.c client/AGSyncProcessor.h
574+
575+
576+INCLUDES = -I$(top_srcdir)/mal-files -I$(top_srcdir)/mal-files/client
577+noinst_HEADERS = AGArray.h AGBase64.h AGBufferedNet.h AGBufferReader.h AGBufferWriter.h AGCollection.h AGDBConfig.h AGDeviceInfo.h AGDigest.h AGLocationConfig.h AGMD5.h AGMsg.h AGNet.h AGProtectedMem.h AGProtocol.h AGProxy.h AGReader.h AGRecord.h AGServerConfig.h AGSynchronize.h AGTypes.h AGUserConfig.h AGUtil.h AGUtilUnix.h AGWriter.h md5.h
578+include_HEADERS = AGArray.h AGBase64.h AGBufferedNet.h AGBufferReader.h AGBufferWriter.h AGCollection.h AGDBConfig.h AGDeviceInfo.h AGDigest.h AGLocationConfig.h AGMD5.h AGMsg.h AGNet.h AGProtectedMem.h AGProtocol.h AGProxy.h AGReader.h AGRecord.h AGServerConfig.h AGSynchronize.h AGTypes.h AGUserConfig.h AGUtil.h AGUtilUnix.h AGWriter.h md5.h
579+subdir = mal-files
580+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
581+mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
582+CONFIG_HEADER = $(top_builddir)/config.h
583+CONFIG_CLEAN_FILES =
584+LTLIBRARIES = $(lib_LTLIBRARIES)
585+
586+libmal_funcs_la_LDFLAGS =
587+libmal_funcs_la_LIBADD =
588+am_libmal_funcs_la_OBJECTS = AGArray.lo AGBase64.lo AGBufferedNet.lo \
589+ AGBufferReader.lo AGBufferWriter.lo AGCollection.lo \
590+ AGDBConfig.lo AGDeviceInfo.lo AGDigest.lo AGLocationConfig.lo \
591+ AGMD5.lo AGMsg.lo AGNet.lo AGProtectedMem.lo AGProtocol.lo \
592+ AGProxy.lo AGReader.lo AGRecord.lo AGServerConfig.lo \
593+ AGSynchronize.lo AGUserConfig.lo AGUtilUnix.lo AGWriter.lo \
594+ md5.lo AGClientProcessor.lo AGCommandProcessor.lo \
595+ AGProxyDebug.lo AGSyncProcessor.lo
596+libmal_funcs_la_OBJECTS = $(am_libmal_funcs_la_OBJECTS)
597+
598+DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
599+depcomp = $(SHELL) $(top_srcdir)/depcomp
600+am__depfiles_maybe = depfiles
601+@AMDEP_TRUE@DEP_FILES = ./$(DEPDIR)/AGArray.Plo ./$(DEPDIR)/AGBase64.Plo \
602+@AMDEP_TRUE@ ./$(DEPDIR)/AGBufferReader.Plo \
603+@AMDEP_TRUE@ ./$(DEPDIR)/AGBufferWriter.Plo \
604+@AMDEP_TRUE@ ./$(DEPDIR)/AGBufferedNet.Plo \
605+@AMDEP_TRUE@ ./$(DEPDIR)/AGClientProcessor.Plo \
606+@AMDEP_TRUE@ ./$(DEPDIR)/AGCollection.Plo \
607+@AMDEP_TRUE@ ./$(DEPDIR)/AGCommandProcessor.Plo \
608+@AMDEP_TRUE@ ./$(DEPDIR)/AGDBConfig.Plo \
609+@AMDEP_TRUE@ ./$(DEPDIR)/AGDeviceInfo.Plo \
610+@AMDEP_TRUE@ ./$(DEPDIR)/AGDigest.Plo \
611+@AMDEP_TRUE@ ./$(DEPDIR)/AGLocationConfig.Plo \
612+@AMDEP_TRUE@ ./$(DEPDIR)/AGMD5.Plo ./$(DEPDIR)/AGMsg.Plo \
613+@AMDEP_TRUE@ ./$(DEPDIR)/AGNet.Plo \
614+@AMDEP_TRUE@ ./$(DEPDIR)/AGProtectedMem.Plo \
615+@AMDEP_TRUE@ ./$(DEPDIR)/AGProtocol.Plo ./$(DEPDIR)/AGProxy.Plo \
616+@AMDEP_TRUE@ ./$(DEPDIR)/AGProxyDebug.Plo \
617+@AMDEP_TRUE@ ./$(DEPDIR)/AGReader.Plo ./$(DEPDIR)/AGRecord.Plo \
618+@AMDEP_TRUE@ ./$(DEPDIR)/AGServerConfig.Plo \
619+@AMDEP_TRUE@ ./$(DEPDIR)/AGSyncProcessor.Plo \
620+@AMDEP_TRUE@ ./$(DEPDIR)/AGSynchronize.Plo \
621+@AMDEP_TRUE@ ./$(DEPDIR)/AGUserConfig.Plo \
622+@AMDEP_TRUE@ ./$(DEPDIR)/AGUtilUnix.Plo ./$(DEPDIR)/AGWriter.Plo \
623+@AMDEP_TRUE@ ./$(DEPDIR)/md5.Plo
624+COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
625+ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
626+LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) \
627+ $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
628+CCLD = $(CC)
629+LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
630+ $(AM_LDFLAGS) $(LDFLAGS) -o $@
631+DIST_SOURCES = $(libmal_funcs_la_SOURCES)
632+HEADERS = $(include_HEADERS) $(noinst_HEADERS)
633+
634+
635+RECURSIVE_TARGETS = info-recursive dvi-recursive pdf-recursive \
636+ ps-recursive install-info-recursive uninstall-info-recursive \
637+ all-recursive install-data-recursive install-exec-recursive \
638+ installdirs-recursive install-recursive uninstall-recursive \
639+ check-recursive installcheck-recursive
640+DIST_COMMON = $(include_HEADERS) $(noinst_HEADERS) \
641+ $(srcdir)/Makefile.in Makefile.am
642+DIST_SUBDIRS = $(SUBDIRS)
643+SOURCES = $(libmal_funcs_la_SOURCES)
644+
645+all: all-recursive
646+
647+.SUFFIXES:
648+.SUFFIXES: .c .lo .o .obj
649+$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
650+ cd $(top_srcdir) && \
651+ $(AUTOMAKE) --gnu mal-files/Makefile
652+Makefile: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.in $(top_builddir)/config.status
653+ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
654+libLTLIBRARIES_INSTALL = $(INSTALL)
655+install-libLTLIBRARIES: $(lib_LTLIBRARIES)
656+ @$(NORMAL_INSTALL)
657+ $(mkinstalldirs) $(DESTDIR)$(libdir)
658+ @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
659+ if test -f $$p; then \
660+ f="`echo $$p | sed -e 's|^.*/||'`"; \
661+ echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(libdir)/$$f"; \
662+ $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(libdir)/$$f; \
663+ else :; fi; \
664+ done
665+
666+uninstall-libLTLIBRARIES:
667+ @$(NORMAL_UNINSTALL)
668+ @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
669+ p="`echo $$p | sed -e 's|^.*/||'`"; \
670+ echo " $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$$p"; \
671+ $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$$p; \
672+ done
673+
674+clean-libLTLIBRARIES:
675+ -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
676+ @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
677+ dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
678+ test "$$dir" = "$$p" && dir=.; \
679+ echo "rm -f \"$${dir}/so_locations\""; \
680+ rm -f "$${dir}/so_locations"; \
681+ done
682+libmal-funcs.la: $(libmal_funcs_la_OBJECTS) $(libmal_funcs_la_DEPENDENCIES)
683+ $(LINK) -rpath $(libdir) $(libmal_funcs_la_LDFLAGS) $(libmal_funcs_la_OBJECTS) $(libmal_funcs_la_LIBADD) $(LIBS)
684+
685+mostlyclean-compile:
686+ -rm -f *.$(OBJEXT) core *.core
687+
688+distclean-compile:
689+ -rm -f *.tab.c
690+
691+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/AGArray.Plo@am__quote@
692+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/AGBase64.Plo@am__quote@
693+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/AGBufferReader.Plo@am__quote@
694+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/AGBufferWriter.Plo@am__quote@
695+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/AGBufferedNet.Plo@am__quote@
696+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/AGClientProcessor.Plo@am__quote@
697+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/AGCollection.Plo@am__quote@
698+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/AGCommandProcessor.Plo@am__quote@
699+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/AGDBConfig.Plo@am__quote@
700+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/AGDeviceInfo.Plo@am__quote@
701+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/AGDigest.Plo@am__quote@
702+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/AGLocationConfig.Plo@am__quote@
703+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/AGMD5.Plo@am__quote@
704+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/AGMsg.Plo@am__quote@
705+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/AGNet.Plo@am__quote@
706+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/AGProtectedMem.Plo@am__quote@
707+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/AGProtocol.Plo@am__quote@
708+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/AGProxy.Plo@am__quote@
709+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/AGProxyDebug.Plo@am__quote@
710+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/AGReader.Plo@am__quote@
711+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/AGRecord.Plo@am__quote@
712+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/AGServerConfig.Plo@am__quote@
713+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/AGSyncProcessor.Plo@am__quote@
714+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/AGSynchronize.Plo@am__quote@
715+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/AGUserConfig.Plo@am__quote@
716+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/AGUtilUnix.Plo@am__quote@
717+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/AGWriter.Plo@am__quote@
718+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/md5.Plo@am__quote@
719+
720+.c.o:
721+@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \
722+@am__fastdepCC_TRUE@ -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<; \
723+@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; \
724+@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
725+@am__fastdepCC_TRUE@ fi
726+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
727+@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
728+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
729+@am__fastdepCC_FALSE@ $(COMPILE) -c `test -f '$<' || echo '$(srcdir)/'`$<
730+
731+.c.obj:
732+@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \
733+@am__fastdepCC_TRUE@ -c -o $@ `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'; fi`; \
734+@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; \
735+@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
736+@am__fastdepCC_TRUE@ fi
737+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
738+@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
739+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
740+@am__fastdepCC_FALSE@ $(COMPILE) -c `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'; fi`
741+
742+.c.lo:
743+@am__fastdepCC_TRUE@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \
744+@am__fastdepCC_TRUE@ -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<; \
745+@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; \
746+@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
747+@am__fastdepCC_TRUE@ fi
748+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
749+@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Plo' tmpdepfile='$(DEPDIR)/$*.TPlo' @AMDEPBACKSLASH@
750+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
751+@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<
752+
753+AGClientProcessor.o: client/AGClientProcessor.c
754+@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT AGClientProcessor.o -MD -MP -MF "$(DEPDIR)/AGClientProcessor.Tpo" \
755+@am__fastdepCC_TRUE@ -c -o AGClientProcessor.o `test -f 'client/AGClientProcessor.c' || echo '$(srcdir)/'`client/AGClientProcessor.c; \
756+@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/AGClientProcessor.Tpo" "$(DEPDIR)/AGClientProcessor.Po"; \
757+@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/AGClientProcessor.Tpo"; exit 1; \
758+@am__fastdepCC_TRUE@ fi
759+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='client/AGClientProcessor.c' object='AGClientProcessor.o' libtool=no @AMDEPBACKSLASH@
760+@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/AGClientProcessor.Po' tmpdepfile='$(DEPDIR)/AGClientProcessor.TPo' @AMDEPBACKSLASH@
761+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
762+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o AGClientProcessor.o `test -f 'client/AGClientProcessor.c' || echo '$(srcdir)/'`client/AGClientProcessor.c
763+
764+AGClientProcessor.obj: client/AGClientProcessor.c
765+@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT AGClientProcessor.obj -MD -MP -MF "$(DEPDIR)/AGClientProcessor.Tpo" \
766+@am__fastdepCC_TRUE@ -c -o AGClientProcessor.obj `if test -f 'client/AGClientProcessor.c'; then $(CYGPATH_W) 'client/AGClientProcessor.c'; else $(CYGPATH_W) '$(srcdir)/client/AGClientProcessor.c'; fi`; \
767+@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/AGClientProcessor.Tpo" "$(DEPDIR)/AGClientProcessor.Po"; \
768+@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/AGClientProcessor.Tpo"; exit 1; \
769+@am__fastdepCC_TRUE@ fi
770+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='client/AGClientProcessor.c' object='AGClientProcessor.obj' libtool=no @AMDEPBACKSLASH@
771+@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/AGClientProcessor.Po' tmpdepfile='$(DEPDIR)/AGClientProcessor.TPo' @AMDEPBACKSLASH@
772+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
773+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o AGClientProcessor.obj `if test -f 'client/AGClientProcessor.c'; then $(CYGPATH_W) 'client/AGClientProcessor.c'; else $(CYGPATH_W) '$(srcdir)/client/AGClientProcessor.c'; fi`
774+
775+AGClientProcessor.lo: client/AGClientProcessor.c
776+@am__fastdepCC_TRUE@ if $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT AGClientProcessor.lo -MD -MP -MF "$(DEPDIR)/AGClientProcessor.Tpo" \
777+@am__fastdepCC_TRUE@ -c -o AGClientProcessor.lo `test -f 'client/AGClientProcessor.c' || echo '$(srcdir)/'`client/AGClientProcessor.c; \
778+@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/AGClientProcessor.Tpo" "$(DEPDIR)/AGClientProcessor.Plo"; \
779+@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/AGClientProcessor.Tpo"; exit 1; \
780+@am__fastdepCC_TRUE@ fi
781+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='client/AGClientProcessor.c' object='AGClientProcessor.lo' libtool=yes @AMDEPBACKSLASH@
782+@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/AGClientProcessor.Plo' tmpdepfile='$(DEPDIR)/AGClientProcessor.TPlo' @AMDEPBACKSLASH@
783+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
784+@am__fastdepCC_FALSE@ $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o AGClientProcessor.lo `test -f 'client/AGClientProcessor.c' || echo '$(srcdir)/'`client/AGClientProcessor.c
785+
786+AGCommandProcessor.o: client/AGCommandProcessor.c
787+@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT AGCommandProcessor.o -MD -MP -MF "$(DEPDIR)/AGCommandProcessor.Tpo" \
788+@am__fastdepCC_TRUE@ -c -o AGCommandProcessor.o `test -f 'client/AGCommandProcessor.c' || echo '$(srcdir)/'`client/AGCommandProcessor.c; \
789+@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/AGCommandProcessor.Tpo" "$(DEPDIR)/AGCommandProcessor.Po"; \
790+@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/AGCommandProcessor.Tpo"; exit 1; \
791+@am__fastdepCC_TRUE@ fi
792+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='client/AGCommandProcessor.c' object='AGCommandProcessor.o' libtool=no @AMDEPBACKSLASH@
793+@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/AGCommandProcessor.Po' tmpdepfile='$(DEPDIR)/AGCommandProcessor.TPo' @AMDEPBACKSLASH@
794+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
795+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o AGCommandProcessor.o `test -f 'client/AGCommandProcessor.c' || echo '$(srcdir)/'`client/AGCommandProcessor.c
796+
797+AGCommandProcessor.obj: client/AGCommandProcessor.c
798+@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT AGCommandProcessor.obj -MD -MP -MF "$(DEPDIR)/AGCommandProcessor.Tpo" \
799+@am__fastdepCC_TRUE@ -c -o AGCommandProcessor.obj `if test -f 'client/AGCommandProcessor.c'; then $(CYGPATH_W) 'client/AGCommandProcessor.c'; else $(CYGPATH_W) '$(srcdir)/client/AGCommandProcessor.c'; fi`; \
800+@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/AGCommandProcessor.Tpo" "$(DEPDIR)/AGCommandProcessor.Po"; \
801+@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/AGCommandProcessor.Tpo"; exit 1; \
802+@am__fastdepCC_TRUE@ fi
803+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='client/AGCommandProcessor.c' object='AGCommandProcessor.obj' libtool=no @AMDEPBACKSLASH@
804+@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/AGCommandProcessor.Po' tmpdepfile='$(DEPDIR)/AGCommandProcessor.TPo' @AMDEPBACKSLASH@
805+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
806+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o AGCommandProcessor.obj `if test -f 'client/AGCommandProcessor.c'; then $(CYGPATH_W) 'client/AGCommandProcessor.c'; else $(CYGPATH_W) '$(srcdir)/client/AGCommandProcessor.c'; fi`
807+
808+AGCommandProcessor.lo: client/AGCommandProcessor.c
809+@am__fastdepCC_TRUE@ if $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT AGCommandProcessor.lo -MD -MP -MF "$(DEPDIR)/AGCommandProcessor.Tpo" \
810+@am__fastdepCC_TRUE@ -c -o AGCommandProcessor.lo `test -f 'client/AGCommandProcessor.c' || echo '$(srcdir)/'`client/AGCommandProcessor.c; \
811+@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/AGCommandProcessor.Tpo" "$(DEPDIR)/AGCommandProcessor.Plo"; \
812+@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/AGCommandProcessor.Tpo"; exit 1; \
813+@am__fastdepCC_TRUE@ fi
814+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='client/AGCommandProcessor.c' object='AGCommandProcessor.lo' libtool=yes @AMDEPBACKSLASH@
815+@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/AGCommandProcessor.Plo' tmpdepfile='$(DEPDIR)/AGCommandProcessor.TPlo' @AMDEPBACKSLASH@
816+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
817+@am__fastdepCC_FALSE@ $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o AGCommandProcessor.lo `test -f 'client/AGCommandProcessor.c' || echo '$(srcdir)/'`client/AGCommandProcessor.c
818+
819+AGProxyDebug.o: client/AGProxyDebug.c
820+@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT AGProxyDebug.o -MD -MP -MF "$(DEPDIR)/AGProxyDebug.Tpo" \
821+@am__fastdepCC_TRUE@ -c -o AGProxyDebug.o `test -f 'client/AGProxyDebug.c' || echo '$(srcdir)/'`client/AGProxyDebug.c; \
822+@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/AGProxyDebug.Tpo" "$(DEPDIR)/AGProxyDebug.Po"; \
823+@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/AGProxyDebug.Tpo"; exit 1; \
824+@am__fastdepCC_TRUE@ fi
825+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='client/AGProxyDebug.c' object='AGProxyDebug.o' libtool=no @AMDEPBACKSLASH@
826+@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/AGProxyDebug.Po' tmpdepfile='$(DEPDIR)/AGProxyDebug.TPo' @AMDEPBACKSLASH@
827+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
828+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o AGProxyDebug.o `test -f 'client/AGProxyDebug.c' || echo '$(srcdir)/'`client/AGProxyDebug.c
829+
830+AGProxyDebug.obj: client/AGProxyDebug.c
831+@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT AGProxyDebug.obj -MD -MP -MF "$(DEPDIR)/AGProxyDebug.Tpo" \
832+@am__fastdepCC_TRUE@ -c -o AGProxyDebug.obj `if test -f 'client/AGProxyDebug.c'; then $(CYGPATH_W) 'client/AGProxyDebug.c'; else $(CYGPATH_W) '$(srcdir)/client/AGProxyDebug.c'; fi`; \
833+@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/AGProxyDebug.Tpo" "$(DEPDIR)/AGProxyDebug.Po"; \
834+@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/AGProxyDebug.Tpo"; exit 1; \
835+@am__fastdepCC_TRUE@ fi
836+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='client/AGProxyDebug.c' object='AGProxyDebug.obj' libtool=no @AMDEPBACKSLASH@
837+@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/AGProxyDebug.Po' tmpdepfile='$(DEPDIR)/AGProxyDebug.TPo' @AMDEPBACKSLASH@
838+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
839+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o AGProxyDebug.obj `if test -f 'client/AGProxyDebug.c'; then $(CYGPATH_W) 'client/AGProxyDebug.c'; else $(CYGPATH_W) '$(srcdir)/client/AGProxyDebug.c'; fi`
840+
841+AGProxyDebug.lo: client/AGProxyDebug.c
842+@am__fastdepCC_TRUE@ if $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT AGProxyDebug.lo -MD -MP -MF "$(DEPDIR)/AGProxyDebug.Tpo" \
843+@am__fastdepCC_TRUE@ -c -o AGProxyDebug.lo `test -f 'client/AGProxyDebug.c' || echo '$(srcdir)/'`client/AGProxyDebug.c; \
844+@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/AGProxyDebug.Tpo" "$(DEPDIR)/AGProxyDebug.Plo"; \
845+@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/AGProxyDebug.Tpo"; exit 1; \
846+@am__fastdepCC_TRUE@ fi
847+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='client/AGProxyDebug.c' object='AGProxyDebug.lo' libtool=yes @AMDEPBACKSLASH@
848+@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/AGProxyDebug.Plo' tmpdepfile='$(DEPDIR)/AGProxyDebug.TPlo' @AMDEPBACKSLASH@
849+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
850+@am__fastdepCC_FALSE@ $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o AGProxyDebug.lo `test -f 'client/AGProxyDebug.c' || echo '$(srcdir)/'`client/AGProxyDebug.c
851+
852+AGSyncProcessor.o: client/AGSyncProcessor.c
853+@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT AGSyncProcessor.o -MD -MP -MF "$(DEPDIR)/AGSyncProcessor.Tpo" \
854+@am__fastdepCC_TRUE@ -c -o AGSyncProcessor.o `test -f 'client/AGSyncProcessor.c' || echo '$(srcdir)/'`client/AGSyncProcessor.c; \
855+@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/AGSyncProcessor.Tpo" "$(DEPDIR)/AGSyncProcessor.Po"; \
856+@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/AGSyncProcessor.Tpo"; exit 1; \
857+@am__fastdepCC_TRUE@ fi
858+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='client/AGSyncProcessor.c' object='AGSyncProcessor.o' libtool=no @AMDEPBACKSLASH@
859+@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/AGSyncProcessor.Po' tmpdepfile='$(DEPDIR)/AGSyncProcessor.TPo' @AMDEPBACKSLASH@
860+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
861+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o AGSyncProcessor.o `test -f 'client/AGSyncProcessor.c' || echo '$(srcdir)/'`client/AGSyncProcessor.c
862+
863+AGSyncProcessor.obj: client/AGSyncProcessor.c
864+@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT AGSyncProcessor.obj -MD -MP -MF "$(DEPDIR)/AGSyncProcessor.Tpo" \
865+@am__fastdepCC_TRUE@ -c -o AGSyncProcessor.obj `if test -f 'client/AGSyncProcessor.c'; then $(CYGPATH_W) 'client/AGSyncProcessor.c'; else $(CYGPATH_W) '$(srcdir)/client/AGSyncProcessor.c'; fi`; \
866+@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/AGSyncProcessor.Tpo" "$(DEPDIR)/AGSyncProcessor.Po"; \
867+@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/AGSyncProcessor.Tpo"; exit 1; \
868+@am__fastdepCC_TRUE@ fi
869+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='client/AGSyncProcessor.c' object='AGSyncProcessor.obj' libtool=no @AMDEPBACKSLASH@
870+@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/AGSyncProcessor.Po' tmpdepfile='$(DEPDIR)/AGSyncProcessor.TPo' @AMDEPBACKSLASH@
871+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
872+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o AGSyncProcessor.obj `if test -f 'client/AGSyncProcessor.c'; then $(CYGPATH_W) 'client/AGSyncProcessor.c'; else $(CYGPATH_W) '$(srcdir)/client/AGSyncProcessor.c'; fi`
873+
874+AGSyncProcessor.lo: client/AGSyncProcessor.c
875+@am__fastdepCC_TRUE@ if $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT AGSyncProcessor.lo -MD -MP -MF "$(DEPDIR)/AGSyncProcessor.Tpo" \
876+@am__fastdepCC_TRUE@ -c -o AGSyncProcessor.lo `test -f 'client/AGSyncProcessor.c' || echo '$(srcdir)/'`client/AGSyncProcessor.c; \
877+@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/AGSyncProcessor.Tpo" "$(DEPDIR)/AGSyncProcessor.Plo"; \
878+@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/AGSyncProcessor.Tpo"; exit 1; \
879+@am__fastdepCC_TRUE@ fi
880+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='client/AGSyncProcessor.c' object='AGSyncProcessor.lo' libtool=yes @AMDEPBACKSLASH@
881+@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/AGSyncProcessor.Plo' tmpdepfile='$(DEPDIR)/AGSyncProcessor.TPlo' @AMDEPBACKSLASH@
882+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
883+@am__fastdepCC_FALSE@ $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o AGSyncProcessor.lo `test -f 'client/AGSyncProcessor.c' || echo '$(srcdir)/'`client/AGSyncProcessor.c
884+
885+mostlyclean-libtool:
886+ -rm -f *.lo
887+
888+clean-libtool:
889+ -rm -rf .libs _libs
890+
891+distclean-libtool:
892+ -rm -f libtool
893+uninstall-info-am:
894+includeHEADERS_INSTALL = $(INSTALL_HEADER)
895+install-includeHEADERS: $(include_HEADERS)
896+ @$(NORMAL_INSTALL)
897+ $(mkinstalldirs) $(DESTDIR)$(includedir)
898+ @list='$(include_HEADERS)'; for p in $$list; do \
899+ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
900+ f="`echo $$p | sed -e 's|^.*/||'`"; \
901+ echo " $(includeHEADERS_INSTALL) $$d$$p $(DESTDIR)$(includedir)/$$f"; \
902+ $(includeHEADERS_INSTALL) $$d$$p $(DESTDIR)$(includedir)/$$f; \
903+ done
904+
905+uninstall-includeHEADERS:
906+ @$(NORMAL_UNINSTALL)
907+ @list='$(include_HEADERS)'; for p in $$list; do \
908+ f="`echo $$p | sed -e 's|^.*/||'`"; \
909+ echo " rm -f $(DESTDIR)$(includedir)/$$f"; \
910+ rm -f $(DESTDIR)$(includedir)/$$f; \
911+ done
912+
913+# This directory's subdirectories are mostly independent; you can cd
914+# into them and run `make' without going through this Makefile.
915+# To change the values of `make' variables: instead of editing Makefiles,
916+# (1) if the variable is set in `config.status', edit `config.status'
917+# (which will cause the Makefiles to be regenerated when you run `make');
918+# (2) otherwise, pass the desired values on the `make' command line.
919+$(RECURSIVE_TARGETS):
920+ @set fnord $$MAKEFLAGS; amf=$$2; \
921+ dot_seen=no; \
922+ target=`echo $@ | sed s/-recursive//`; \
923+ list='$(SUBDIRS)'; for subdir in $$list; do \
924+ echo "Making $$target in $$subdir"; \
925+ if test "$$subdir" = "."; then \
926+ dot_seen=yes; \
927+ local_target="$$target-am"; \
928+ else \
929+ local_target="$$target"; \
930+ fi; \
931+ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
932+ || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
933+ done; \
934+ if test "$$dot_seen" = "no"; then \
935+ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
936+ fi; test -z "$$fail"
937+
938+mostlyclean-recursive clean-recursive distclean-recursive \
939+maintainer-clean-recursive:
940+ @set fnord $$MAKEFLAGS; amf=$$2; \
941+ dot_seen=no; \
942+ case "$@" in \
943+ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
944+ *) list='$(SUBDIRS)' ;; \
945+ esac; \
946+ rev=''; for subdir in $$list; do \
947+ if test "$$subdir" = "."; then :; else \
948+ rev="$$subdir $$rev"; \
949+ fi; \
950+ done; \
951+ rev="$$rev ."; \
952+ target=`echo $@ | sed s/-recursive//`; \
953+ for subdir in $$rev; do \
954+ echo "Making $$target in $$subdir"; \
955+ if test "$$subdir" = "."; then \
956+ local_target="$$target-am"; \
957+ else \
958+ local_target="$$target"; \
959+ fi; \
960+ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
961+ || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
962+ done && test -z "$$fail"
963+tags-recursive:
964+ list='$(SUBDIRS)'; for subdir in $$list; do \
965+ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
966+ done
967+ctags-recursive:
968+ list='$(SUBDIRS)'; for subdir in $$list; do \
969+ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
970+ done
971+
972+ETAGS = etags
973+ETAGSFLAGS =
974+
975+CTAGS = ctags
976+CTAGSFLAGS =
977+
978+tags: TAGS
979+
980+ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
981+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
982+ unique=`for i in $$list; do \
983+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
984+ done | \
985+ $(AWK) ' { files[$$0] = 1; } \
986+ END { for (i in files) print i; }'`; \
987+ mkid -fID $$unique
988+
989+TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
990+ $(TAGS_FILES) $(LISP)
991+ tags=; \
992+ here=`pwd`; \
993+ if (etags --etags-include --version) >/dev/null 2>&1; then \
994+ include_option=--etags-include; \
995+ else \
996+ include_option=--include; \
997+ fi; \
998+ list='$(SUBDIRS)'; for subdir in $$list; do \
999+ if test "$$subdir" = .; then :; else \
1000+ test -f $$subdir/TAGS && \
1001+ tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
1002+ fi; \
1003+ done; \
1004+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
1005+ unique=`for i in $$list; do \
1006+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
1007+ done | \
1008+ $(AWK) ' { files[$$0] = 1; } \
1009+ END { for (i in files) print i; }'`; \
1010+ test -z "$(ETAGS_ARGS)$$tags$$unique" \
1011+ || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
1012+ $$tags $$unique
1013+
1014+ctags: CTAGS
1015+CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
1016+ $(TAGS_FILES) $(LISP)
1017+ tags=; \
1018+ here=`pwd`; \
1019+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
1020+ unique=`for i in $$list; do \
1021+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
1022+ done | \
1023+ $(AWK) ' { files[$$0] = 1; } \
1024+ END { for (i in files) print i; }'`; \
1025+ test -z "$(CTAGS_ARGS)$$tags$$unique" \
1026+ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
1027+ $$tags $$unique
1028+
1029+GTAGS:
1030+ here=`$(am__cd) $(top_builddir) && pwd` \
1031+ && cd $(top_srcdir) \
1032+ && gtags -i $(GTAGS_ARGS) $$here
1033+
1034+distclean-tags:
1035+ -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
1036+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
1037+
1038+top_distdir = ..
1039+distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
1040+
1041+distdir: $(DISTFILES)
1042+ @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
1043+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
1044+ list='$(DISTFILES)'; for file in $$list; do \
1045+ case $$file in \
1046+ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
1047+ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
1048+ esac; \
1049+ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
1050+ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
1051+ if test "$$dir" != "$$file" && test "$$dir" != "."; then \
1052+ dir="/$$dir"; \
1053+ $(mkinstalldirs) "$(distdir)$$dir"; \
1054+ else \
1055+ dir=''; \
1056+ fi; \
1057+ if test -d $$d/$$file; then \
1058+ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
1059+ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
1060+ fi; \
1061+ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
1062+ else \
1063+ test -f $(distdir)/$$file \
1064+ || cp -p $$d/$$file $(distdir)/$$file \
1065+ || exit 1; \
1066+ fi; \
1067+ done
1068+ list='$(SUBDIRS)'; for subdir in $$list; do \
1069+ if test "$$subdir" = .; then :; else \
1070+ test -d $(distdir)/$$subdir \
1071+ || mkdir $(distdir)/$$subdir \
1072+ || exit 1; \
1073+ (cd $$subdir && \
1074+ $(MAKE) $(AM_MAKEFLAGS) \
1075+ top_distdir="$(top_distdir)" \
1076+ distdir=../$(distdir)/$$subdir \
1077+ distdir) \
1078+ || exit 1; \
1079+ fi; \
1080+ done
1081+check-am: all-am
1082+check: check-recursive
1083+all-am: Makefile $(LTLIBRARIES) $(HEADERS)
1084+installdirs: installdirs-recursive
1085+installdirs-am:
1086+ $(mkinstalldirs) $(DESTDIR)$(libdir) $(DESTDIR)$(includedir)
1087+
1088+install: install-recursive
1089+install-exec: install-exec-recursive
1090+install-data: install-data-recursive
1091+uninstall: uninstall-recursive
1092+
1093+install-am: all-am
1094+ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
1095+
1096+installcheck: installcheck-recursive
1097+install-strip:
1098+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
1099+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
1100+ `test -z '$(STRIP)' || \
1101+ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
1102+mostlyclean-generic:
1103+
1104+clean-generic:
1105+
1106+distclean-generic:
1107+ -rm -f $(CONFIG_CLEAN_FILES)
1108+
1109+maintainer-clean-generic:
1110+ @echo "This command is intended for maintainers to use"
1111+ @echo "it deletes files that may require special tools to rebuild."
1112+clean: clean-recursive
1113+
1114+clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \
1115+ mostlyclean-am
1116+
1117+distclean: distclean-recursive
1118+ -rm -rf ./$(DEPDIR)
1119+ -rm -f Makefile
1120+distclean-am: clean-am distclean-compile distclean-generic \
1121+ distclean-libtool distclean-tags
1122+
1123+dvi: dvi-recursive
1124+
1125+dvi-am:
1126+
1127+info: info-recursive
1128+
1129+info-am:
1130+
1131+install-data-am: install-includeHEADERS
1132+
1133+install-exec-am: install-libLTLIBRARIES
1134+
1135+install-info: install-info-recursive
1136+
1137+install-man:
1138+
1139+installcheck-am:
1140+
1141+maintainer-clean: maintainer-clean-recursive
1142+ -rm -rf ./$(DEPDIR)
1143+ -rm -f Makefile
1144+maintainer-clean-am: distclean-am maintainer-clean-generic
1145+
1146+mostlyclean: mostlyclean-recursive
1147+
1148+mostlyclean-am: mostlyclean-compile mostlyclean-generic \
1149+ mostlyclean-libtool
1150+
1151+pdf: pdf-recursive
1152+
1153+pdf-am:
1154+
1155+ps: ps-recursive
1156+
1157+ps-am:
1158+
1159+uninstall-am: uninstall-includeHEADERS uninstall-info-am \
1160+ uninstall-libLTLIBRARIES
1161+
1162+uninstall-info: uninstall-info-recursive
1163+
1164+.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am clean \
1165+ clean-generic clean-libLTLIBRARIES clean-libtool \
1166+ clean-recursive ctags ctags-recursive distclean \
1167+ distclean-compile distclean-generic distclean-libtool \
1168+ distclean-recursive distclean-tags distdir dvi dvi-am \
1169+ dvi-recursive info info-am info-recursive install install-am \
1170+ install-data install-data-am install-data-recursive \
1171+ install-exec install-exec-am install-exec-recursive \
1172+ install-includeHEADERS install-info install-info-am \
1173+ install-info-recursive install-libLTLIBRARIES install-man \
1174+ install-recursive install-strip installcheck installcheck-am \
1175+ installdirs installdirs-am installdirs-recursive \
1176+ maintainer-clean maintainer-clean-generic \
1177+ maintainer-clean-recursive mostlyclean mostlyclean-compile \
1178+ mostlyclean-generic mostlyclean-libtool mostlyclean-recursive \
1179+ pdf pdf-am pdf-recursive ps ps-am ps-recursive tags \
1180+ tags-recursive uninstall uninstall-am uninstall-includeHEADERS \
1181+ uninstall-info-am uninstall-info-recursive \
1182+ uninstall-libLTLIBRARIES uninstall-recursive
1183+
1184+# Tell versions [3.59,3.63) of GNU make to not export all variables.
1185+# Otherwise a system limit (for SysV at least) may be exceeded.
1186+.NOEXPORT:
1187--- agsync-0.2-pre.orig/depcomp
1188+++ agsync-0.2-pre/depcomp
1189@@ -0,0 +1,479 @@
1190+#! /bin/sh
1191+
1192+# depcomp - compile a program generating dependencies as side-effects
1193+# Copyright 1999, 2000, 2003 Free Software Foundation, Inc.
1194+
1195+# This program is free software; you can redistribute it and/or modify
1196+# it under the terms of the GNU General Public License as published by
1197+# the Free Software Foundation; either version 2, or (at your option)
1198+# any later version.
1199+
1200+# This program is distributed in the hope that it will be useful,
1201+# but WITHOUT ANY WARRANTY; without even the implied warranty of
1202+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1203+# GNU General Public License for more details.
1204+
1205+# You should have received a copy of the GNU General Public License
1206+# along with this program; if not, write to the Free Software
1207+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1208+# 02111-1307, USA.
1209+
1210+# As a special exception to the GNU General Public License, if you
1211+# distribute this file as part of a program that contains a
1212+# configuration script generated by Autoconf, you may include it under
1213+# the same distribution terms that you use for the rest of that program.
1214+
1215+# Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>.
1216+
1217+if test -z "$depmode" || test -z "$source" || test -z "$object"; then
1218+ echo "depcomp: Variables source, object and depmode must be set" 1>&2
1219+ exit 1
1220+fi
1221+# `libtool' can also be set to `yes' or `no'.
1222+
1223+if test -z "$depfile"; then
1224+ base=`echo "$object" | sed -e 's,^.*/,,' -e 's,\.\([^.]*\)$,.P\1,'`
1225+ dir=`echo "$object" | sed 's,/.*$,/,'`
1226+ if test "$dir" = "$object"; then
1227+ dir=
1228+ fi
1229+ # FIXME: should be _deps on DOS.
1230+ depfile="$dir.deps/$base"
1231+fi
1232+
1233+tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
1234+
1235+rm -f "$tmpdepfile"
1236+
1237+# Some modes work just like other modes, but use different flags. We
1238+# parameterize here, but still list the modes in the big case below,
1239+# to make depend.m4 easier to write. Note that we *cannot* use a case
1240+# here, because this file can only contain one case statement.
1241+if test "$depmode" = hp; then
1242+ # HP compiler uses -M and no extra arg.
1243+ gccflag=-M
1244+ depmode=gcc
1245+fi
1246+
1247+if test "$depmode" = dashXmstdout; then
1248+ # This is just like dashmstdout with a different argument.
1249+ dashmflag=-xM
1250+ depmode=dashmstdout
1251+fi
1252+
1253+case "$depmode" in
1254+gcc3)
1255+## gcc 3 implements dependency tracking that does exactly what
1256+## we want. Yay! Note: for some reason libtool 1.4 doesn't like
1257+## it if -MD -MP comes after the -MF stuff. Hmm.
1258+ "$@" -MT "$object" -MD -MP -MF "$tmpdepfile"
1259+ stat=$?
1260+ if test $stat -eq 0; then :
1261+ else
1262+ rm -f "$tmpdepfile"
1263+ exit $stat
1264+ fi
1265+ mv "$tmpdepfile" "$depfile"
1266+ ;;
1267+
1268+gcc)
1269+## There are various ways to get dependency output from gcc. Here's
1270+## why we pick this rather obscure method:
1271+## - Don't want to use -MD because we'd like the dependencies to end
1272+## up in a subdir. Having to rename by hand is ugly.
1273+## (We might end up doing this anyway to support other compilers.)
1274+## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
1275+## -MM, not -M (despite what the docs say).
1276+## - Using -M directly means running the compiler twice (even worse
1277+## than renaming).
1278+ if test -z "$gccflag"; then
1279+ gccflag=-MD,
1280+ fi
1281+ "$@" -Wp,"$gccflag$tmpdepfile"
1282+ stat=$?
1283+ if test $stat -eq 0; then :
1284+ else
1285+ rm -f "$tmpdepfile"
1286+ exit $stat
1287+ fi
1288+ rm -f "$depfile"
1289+ echo "$object : \\" > "$depfile"
1290+ alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
1291+## The second -e expression handles DOS-style file names with drive letters.
1292+ sed -e 's/^[^:]*: / /' \
1293+ -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
1294+## This next piece of magic avoids the `deleted header file' problem.
1295+## The problem is that when a header file which appears in a .P file
1296+## is deleted, the dependency causes make to die (because there is
1297+## typically no way to rebuild the header). We avoid this by adding
1298+## dummy dependencies for each header file. Too bad gcc doesn't do
1299+## this for us directly.
1300+ tr ' ' '
1301+' < "$tmpdepfile" |
1302+## Some versions of gcc put a space before the `:'. On the theory
1303+## that the space means something, we add a space to the output as
1304+## well.
1305+## Some versions of the HPUX 10.20 sed can't process this invocation
1306+## correctly. Breaking it into two sed invocations is a workaround.
1307+ sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
1308+ rm -f "$tmpdepfile"
1309+ ;;
1310+
1311+hp)
1312+ # This case exists only to let depend.m4 do its work. It works by
1313+ # looking at the text of this script. This case will never be run,
1314+ # since it is checked for above.
1315+ exit 1
1316+ ;;
1317+
1318+sgi)
1319+ if test "$libtool" = yes; then
1320+ "$@" "-Wp,-MDupdate,$tmpdepfile"
1321+ else
1322+ "$@" -MDupdate "$tmpdepfile"
1323+ fi
1324+ stat=$?
1325+ if test $stat -eq 0; then :
1326+ else
1327+ rm -f "$tmpdepfile"
1328+ exit $stat
1329+ fi
1330+ rm -f "$depfile"
1331+
1332+ if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files
1333+ echo "$object : \\" > "$depfile"
1334+
1335+ # Clip off the initial element (the dependent). Don't try to be
1336+ # clever and replace this with sed code, as IRIX sed won't handle
1337+ # lines with more than a fixed number of characters (4096 in
1338+ # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines;
1339+ # the IRIX cc adds comments like `#:fec' to the end of the
1340+ # dependency line.
1341+ tr ' ' '
1342+' < "$tmpdepfile" \
1343+ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
1344+ tr '
1345+' ' ' >> $depfile
1346+ echo >> $depfile
1347+
1348+ # The second pass generates a dummy entry for each header file.
1349+ tr ' ' '
1350+' < "$tmpdepfile" \
1351+ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
1352+ >> $depfile
1353+ else
1354+ # The sourcefile does not contain any dependencies, so just
1355+ # store a dummy comment line, to avoid errors with the Makefile
1356+ # "include basename.Plo" scheme.
1357+ echo "#dummy" > "$depfile"
1358+ fi
1359+ rm -f "$tmpdepfile"
1360+ ;;
1361+
1362+aix)
1363+ # The C for AIX Compiler uses -M and outputs the dependencies
1364+ # in a .u file. In older versions, this file always lives in the
1365+ # current directory. Also, the AIX compiler puts `$object:' at the
1366+ # start of each line; $object doesn't have directory information.
1367+ # Version 6 uses the directory in both cases.
1368+ stripped=`echo "$object" | sed 's/\(.*\)\..*$/\1/'`
1369+ tmpdepfile="$stripped.u"
1370+ if test "$libtool" = yes; then
1371+ "$@" -Wc,-M
1372+ else
1373+ "$@" -M
1374+ fi
1375+ stat=$?
1376+
1377+ if test -f "$tmpdepfile"; then :
1378+ else
1379+ stripped=`echo "$stripped" | sed 's,^.*/,,'`
1380+ tmpdepfile="$stripped.u"
1381+ fi
1382+
1383+ if test $stat -eq 0; then :
1384+ else
1385+ rm -f "$tmpdepfile"
1386+ exit $stat
1387+ fi
1388+
1389+ if test -f "$tmpdepfile"; then
1390+ outname="$stripped.o"
1391+ # Each line is of the form `foo.o: dependent.h'.
1392+ # Do two passes, one to just change these to
1393+ # `$object: dependent.h' and one to simply `dependent.h:'.
1394+ sed -e "s,^$outname:,$object :," < "$tmpdepfile" > "$depfile"
1395+ sed -e "s,^$outname: \(.*\)$,\1:," < "$tmpdepfile" >> "$depfile"
1396+ else
1397+ # The sourcefile does not contain any dependencies, so just
1398+ # store a dummy comment line, to avoid errors with the Makefile
1399+ # "include basename.Plo" scheme.
1400+ echo "#dummy" > "$depfile"
1401+ fi
1402+ rm -f "$tmpdepfile"
1403+ ;;
1404+
1405+icc)
1406+ # Intel's C compiler understands `-MD -MF file'. However on
1407+ # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c
1408+ # ICC 7.0 will fill foo.d with something like
1409+ # foo.o: sub/foo.c
1410+ # foo.o: sub/foo.h
1411+ # which is wrong. We want:
1412+ # sub/foo.o: sub/foo.c
1413+ # sub/foo.o: sub/foo.h
1414+ # sub/foo.c:
1415+ # sub/foo.h:
1416+ # ICC 7.1 will output
1417+ # foo.o: sub/foo.c sub/foo.h
1418+ # and will wrap long lines using \ :
1419+ # foo.o: sub/foo.c ... \
1420+ # sub/foo.h ... \
1421+ # ...
1422+
1423+ "$@" -MD -MF "$tmpdepfile"
1424+ stat=$?
1425+ if test $stat -eq 0; then :
1426+ else
1427+ rm -f "$tmpdepfile"
1428+ exit $stat
1429+ fi
1430+ rm -f "$depfile"
1431+ # Each line is of the form `foo.o: dependent.h',
1432+ # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'.
1433+ # Do two passes, one to just change these to
1434+ # `$object: dependent.h' and one to simply `dependent.h:'.
1435+ sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
1436+ # Some versions of the HPUX 10.20 sed can't process this invocation
1437+ # correctly. Breaking it into two sed invocations is a workaround.
1438+ sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" |
1439+ sed -e 's/$/ :/' >> "$depfile"
1440+ rm -f "$tmpdepfile"
1441+ ;;
1442+
1443+tru64)
1444+ # The Tru64 compiler uses -MD to generate dependencies as a side
1445+ # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'.
1446+ # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
1447+ # dependencies in `foo.d' instead, so we check for that too.
1448+ # Subdirectories are respected.
1449+ dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
1450+ test "x$dir" = "x$object" && dir=
1451+ base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
1452+
1453+ if test "$libtool" = yes; then
1454+ tmpdepfile1="$dir.libs/$base.lo.d"
1455+ tmpdepfile2="$dir.libs/$base.d"
1456+ "$@" -Wc,-MD
1457+ else
1458+ tmpdepfile1="$dir$base.o.d"
1459+ tmpdepfile2="$dir$base.d"
1460+ "$@" -MD
1461+ fi
1462+
1463+ stat=$?
1464+ if test $stat -eq 0; then :
1465+ else
1466+ rm -f "$tmpdepfile1" "$tmpdepfile2"
1467+ exit $stat
1468+ fi
1469+
1470+ if test -f "$tmpdepfile1"; then
1471+ tmpdepfile="$tmpdepfile1"
1472+ else
1473+ tmpdepfile="$tmpdepfile2"
1474+ fi
1475+ if test -f "$tmpdepfile"; then
1476+ sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
1477+ # That's a tab and a space in the [].
1478+ sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
1479+ else
1480+ echo "#dummy" > "$depfile"
1481+ fi
1482+ rm -f "$tmpdepfile"
1483+ ;;
1484+
1485+#nosideeffect)
1486+ # This comment above is used by automake to tell side-effect
1487+ # dependency tracking mechanisms from slower ones.
1488+
1489+dashmstdout)
1490+ # Important note: in order to support this mode, a compiler *must*
1491+ # always write the preprocessed file to stdout, regardless of -o.
1492+ "$@" || exit $?
1493+
1494+ # Remove the call to Libtool.
1495+ if test "$libtool" = yes; then
1496+ while test $1 != '--mode=compile'; do
1497+ shift
1498+ done
1499+ shift
1500+ fi
1501+
1502+ # Remove `-o $object'.
1503+ IFS=" "
1504+ for arg
1505+ do
1506+ case $arg in
1507+ -o)
1508+ shift
1509+ ;;
1510+ $object)
1511+ shift
1512+ ;;
1513+ *)
1514+ set fnord "$@" "$arg"
1515+ shift # fnord
1516+ shift # $arg
1517+ ;;
1518+ esac
1519+ done
1520+
1521+ test -z "$dashmflag" && dashmflag=-M
1522+ # Require at least two characters before searching for `:'
1523+ # in the target name. This is to cope with DOS-style filenames:
1524+ # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise.
1525+ "$@" $dashmflag |
1526+ sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile"
1527+ rm -f "$depfile"
1528+ cat < "$tmpdepfile" > "$depfile"
1529+ tr ' ' '
1530+' < "$tmpdepfile" | \
1531+## Some versions of the HPUX 10.20 sed can't process this invocation
1532+## correctly. Breaking it into two sed invocations is a workaround.
1533+ sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
1534+ rm -f "$tmpdepfile"
1535+ ;;
1536+
1537+dashXmstdout)
1538+ # This case only exists to satisfy depend.m4. It is never actually
1539+ # run, as this mode is specially recognized in the preamble.
1540+ exit 1
1541+ ;;
1542+
1543+makedepend)
1544+ "$@" || exit $?
1545+ # Remove any Libtool call
1546+ if test "$libtool" = yes; then
1547+ while test $1 != '--mode=compile'; do
1548+ shift
1549+ done
1550+ shift
1551+ fi
1552+ # X makedepend
1553+ shift
1554+ cleared=no
1555+ for arg in "$@"; do
1556+ case $cleared in
1557+ no)
1558+ set ""; shift
1559+ cleared=yes ;;
1560+ esac
1561+ case "$arg" in
1562+ -D*|-I*)
1563+ set fnord "$@" "$arg"; shift ;;
1564+ # Strip any option that makedepend may not understand. Remove
1565+ # the object too, otherwise makedepend will parse it as a source file.
1566+ -*|$object)
1567+ ;;
1568+ *)
1569+ set fnord "$@" "$arg"; shift ;;
1570+ esac
1571+ done
1572+ obj_suffix="`echo $object | sed 's/^.*\././'`"
1573+ touch "$tmpdepfile"
1574+ ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
1575+ rm -f "$depfile"
1576+ cat < "$tmpdepfile" > "$depfile"
1577+ sed '1,2d' "$tmpdepfile" | tr ' ' '
1578+' | \
1579+## Some versions of the HPUX 10.20 sed can't process this invocation
1580+## correctly. Breaking it into two sed invocations is a workaround.
1581+ sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
1582+ rm -f "$tmpdepfile" "$tmpdepfile".bak
1583+ ;;
1584+
1585+cpp)
1586+ # Important note: in order to support this mode, a compiler *must*
1587+ # always write the preprocessed file to stdout.
1588+ "$@" || exit $?
1589+
1590+ # Remove the call to Libtool.
1591+ if test "$libtool" = yes; then
1592+ while test $1 != '--mode=compile'; do
1593+ shift
1594+ done
1595+ shift
1596+ fi
1597+
1598+ # Remove `-o $object'.
1599+ IFS=" "
1600+ for arg
1601+ do
1602+ case $arg in
1603+ -o)
1604+ shift
1605+ ;;
1606+ $object)
1607+ shift
1608+ ;;
1609+ *)
1610+ set fnord "$@" "$arg"
1611+ shift # fnord
1612+ shift # $arg
1613+ ;;
1614+ esac
1615+ done
1616+
1617+ "$@" -E |
1618+ sed -n '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |
1619+ sed '$ s: \\$::' > "$tmpdepfile"
1620+ rm -f "$depfile"
1621+ echo "$object : \\" > "$depfile"
1622+ cat < "$tmpdepfile" >> "$depfile"
1623+ sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile"
1624+ rm -f "$tmpdepfile"
1625+ ;;
1626+
1627+msvisualcpp)
1628+ # Important note: in order to support this mode, a compiler *must*
1629+ # always write the preprocessed file to stdout, regardless of -o,
1630+ # because we must use -o when running libtool.
1631+ "$@" || exit $?
1632+ IFS=" "
1633+ for arg
1634+ do
1635+ case "$arg" in
1636+ "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
1637+ set fnord "$@"
1638+ shift
1639+ shift
1640+ ;;
1641+ *)
1642+ set fnord "$@" "$arg"
1643+ shift
1644+ shift
1645+ ;;
1646+ esac
1647+ done
1648+ "$@" -E |
1649+ sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile"
1650+ rm -f "$depfile"
1651+ echo "$object : \\" > "$depfile"
1652+ . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
1653+ echo " " >> "$depfile"
1654+ . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile"
1655+ rm -f "$tmpdepfile"
1656+ ;;
1657+
1658+none)
1659+ exec "$@"
1660+ ;;
1661+
1662+*)
1663+ echo "Unknown depmode $depmode" 1>&2
1664+ exit 1
1665+ ;;
1666+esac
1667+
1668+exit 0
1669--- agsync-0.2-pre.orig/aclocal.m4
1670+++ agsync-0.2-pre/aclocal.m4
1671@@ -0,0 +1,6816 @@
1672+# generated automatically by aclocal 1.7.9 -*- Autoconf -*-
1673+
1674+# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002
1675+# Free Software Foundation, Inc.
1676+# This file is free software; the Free Software Foundation
1677+# gives unlimited permission to copy and/or distribute it,
1678+# with or without modifications, as long as this notice is preserved.
1679+
1680+# This program is distributed in the hope that it will be useful,
1681+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
1682+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
1683+# PARTICULAR PURPOSE.
1684+
1685+# Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-
1686+
1687+# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
1688+
1689+# This program is free software; you can redistribute it and/or modify
1690+# it under the terms of the GNU General Public License as published by
1691+# the Free Software Foundation; either version 2, or (at your option)
1692+# any later version.
1693+
1694+# This program is distributed in the hope that it will be useful,
1695+# but WITHOUT ANY WARRANTY; without even the implied warranty of
1696+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1697+# GNU General Public License for more details.
1698+
1699+# You should have received a copy of the GNU General Public License
1700+# along with this program; if not, write to the Free Software
1701+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1702+# 02111-1307, USA.
1703+
1704+AC_PREREQ([2.52])
1705+
1706+# serial 6
1707+
1708+# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
1709+AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
1710+
1711+# Do all the work for Automake. -*- Autoconf -*-
1712+
1713+# This macro actually does too much some checks are only needed if
1714+# your package does certain things. But this isn't really a big deal.
1715+
1716+# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
1717+# Free Software Foundation, Inc.
1718+
1719+# This program is free software; you can redistribute it and/or modify
1720+# it under the terms of the GNU General Public License as published by
1721+# the Free Software Foundation; either version 2, or (at your option)
1722+# any later version.
1723+
1724+# This program is distributed in the hope that it will be useful,
1725+# but WITHOUT ANY WARRANTY; without even the implied warranty of
1726+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1727+# GNU General Public License for more details.
1728+
1729+# You should have received a copy of the GNU General Public License
1730+# along with this program; if not, write to the Free Software
1731+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1732+# 02111-1307, USA.
1733+
1734+# serial 10
1735+
1736+AC_PREREQ([2.54])
1737+
1738+# Autoconf 2.50 wants to disallow AM_ names. We explicitly allow
1739+# the ones we care about.
1740+m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
1741+
1742+# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
1743+# AM_INIT_AUTOMAKE([OPTIONS])
1744+# -----------------------------------------------
1745+# The call with PACKAGE and VERSION arguments is the old style
1746+# call (pre autoconf-2.50), which is being phased out. PACKAGE
1747+# and VERSION should now be passed to AC_INIT and removed from
1748+# the call to AM_INIT_AUTOMAKE.
1749+# We support both call styles for the transition. After
1750+# the next Automake release, Autoconf can make the AC_INIT
1751+# arguments mandatory, and then we can depend on a new Autoconf
1752+# release and drop the old call support.
1753+AC_DEFUN([AM_INIT_AUTOMAKE],
1754+[AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
1755+ AC_REQUIRE([AC_PROG_INSTALL])dnl
1756+# test to see if srcdir already configured
1757+if test "`cd $srcdir && pwd`" != "`pwd`" &&
1758+ test -f $srcdir/config.status; then
1759+ AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
1760+fi
1761+
1762+# test whether we have cygpath
1763+if test -z "$CYGPATH_W"; then
1764+ if (cygpath --version) >/dev/null 2>/dev/null; then
1765+ CYGPATH_W='cygpath -w'
1766+ else
1767+ CYGPATH_W=echo
1768+ fi
1769+fi
1770+AC_SUBST([CYGPATH_W])
1771+
1772+# Define the identity of the package.
1773+dnl Distinguish between old-style and new-style calls.
1774+m4_ifval([$2],
1775+[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
1776+ AC_SUBST([PACKAGE], [$1])dnl
1777+ AC_SUBST([VERSION], [$2])],
1778+[_AM_SET_OPTIONS([$1])dnl
1779+ AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
1780+ AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
1781+
1782+_AM_IF_OPTION([no-define],,
1783+[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
1784+ AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
1785+
1786+# Some tools Automake needs.
1787+AC_REQUIRE([AM_SANITY_CHECK])dnl
1788+AC_REQUIRE([AC_ARG_PROGRAM])dnl
1789+AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
1790+AM_MISSING_PROG(AUTOCONF, autoconf)
1791+AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
1792+AM_MISSING_PROG(AUTOHEADER, autoheader)
1793+AM_MISSING_PROG(MAKEINFO, makeinfo)
1794+AM_MISSING_PROG(AMTAR, tar)
1795+AM_PROG_INSTALL_SH
1796+AM_PROG_INSTALL_STRIP
1797+# We need awk for the "check" target. The system "awk" is bad on
1798+# some platforms.
1799+AC_REQUIRE([AC_PROG_AWK])dnl
1800+AC_REQUIRE([AC_PROG_MAKE_SET])dnl
1801+AC_REQUIRE([AM_SET_LEADING_DOT])dnl
1802+
1803+_AM_IF_OPTION([no-dependencies],,
1804+[AC_PROVIDE_IFELSE([AC_PROG_CC],
1805+ [_AM_DEPENDENCIES(CC)],
1806+ [define([AC_PROG_CC],
1807+ defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
1808+AC_PROVIDE_IFELSE([AC_PROG_CXX],
1809+ [_AM_DEPENDENCIES(CXX)],
1810+ [define([AC_PROG_CXX],
1811+ defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
1812+])
1813+])
1814+
1815+
1816+# When config.status generates a header, we must update the stamp-h file.
1817+# This file resides in the same directory as the config header
1818+# that is generated. The stamp files are numbered to have different names.
1819+
1820+# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
1821+# loop where config.status creates the headers, so we can generate
1822+# our stamp files there.
1823+AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
1824+[# Compute $1's index in $config_headers.
1825+_am_stamp_count=1
1826+for _am_header in $config_headers :; do
1827+ case $_am_header in
1828+ $1 | $1:* )
1829+ break ;;
1830+ * )
1831+ _am_stamp_count=`expr $_am_stamp_count + 1` ;;
1832+ esac
1833+done
1834+echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
1835+
1836+# Copyright 2002 Free Software Foundation, Inc.
1837+
1838+# This program is free software; you can redistribute it and/or modify
1839+# it under the terms of the GNU General Public License as published by
1840+# the Free Software Foundation; either version 2, or (at your option)
1841+# any later version.
1842+
1843+# This program is distributed in the hope that it will be useful,
1844+# but WITHOUT ANY WARRANTY; without even the implied warranty of
1845+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1846+# GNU General Public License for more details.
1847+
1848+# You should have received a copy of the GNU General Public License
1849+# along with this program; if not, write to the Free Software
1850+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1851+
1852+# AM_AUTOMAKE_VERSION(VERSION)
1853+# ----------------------------
1854+# Automake X.Y traces this macro to ensure aclocal.m4 has been
1855+# generated from the m4 files accompanying Automake X.Y.
1856+AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.7"])
1857+
1858+# AM_SET_CURRENT_AUTOMAKE_VERSION
1859+# -------------------------------
1860+# Call AM_AUTOMAKE_VERSION so it can be traced.
1861+# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
1862+AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
1863+ [AM_AUTOMAKE_VERSION([1.7.9])])
1864+
1865+# Helper functions for option handling. -*- Autoconf -*-
1866+
1867+# Copyright 2001, 2002 Free Software Foundation, Inc.
1868+
1869+# This program is free software; you can redistribute it and/or modify
1870+# it under the terms of the GNU General Public License as published by
1871+# the Free Software Foundation; either version 2, or (at your option)
1872+# any later version.
1873+
1874+# This program is distributed in the hope that it will be useful,
1875+# but WITHOUT ANY WARRANTY; without even the implied warranty of
1876+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1877+# GNU General Public License for more details.
1878+
1879+# You should have received a copy of the GNU General Public License
1880+# along with this program; if not, write to the Free Software
1881+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1882+# 02111-1307, USA.
1883+
1884+# serial 2
1885+
1886+# _AM_MANGLE_OPTION(NAME)
1887+# -----------------------
1888+AC_DEFUN([_AM_MANGLE_OPTION],
1889+[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
1890+
1891+# _AM_SET_OPTION(NAME)
1892+# ------------------------------
1893+# Set option NAME. Presently that only means defining a flag for this option.
1894+AC_DEFUN([_AM_SET_OPTION],
1895+[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
1896+
1897+# _AM_SET_OPTIONS(OPTIONS)
1898+# ----------------------------------
1899+# OPTIONS is a space-separated list of Automake options.
1900+AC_DEFUN([_AM_SET_OPTIONS],
1901+[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
1902+
1903+# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
1904+# -------------------------------------------
1905+# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
1906+AC_DEFUN([_AM_IF_OPTION],
1907+[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
1908+
1909+#
1910+# Check to make sure that the build environment is sane.
1911+#
1912+
1913+# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
1914+
1915+# This program is free software; you can redistribute it and/or modify
1916+# it under the terms of the GNU General Public License as published by
1917+# the Free Software Foundation; either version 2, or (at your option)
1918+# any later version.
1919+
1920+# This program is distributed in the hope that it will be useful,
1921+# but WITHOUT ANY WARRANTY; without even the implied warranty of
1922+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1923+# GNU General Public License for more details.
1924+
1925+# You should have received a copy of the GNU General Public License
1926+# along with this program; if not, write to the Free Software
1927+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1928+# 02111-1307, USA.
1929+
1930+# serial 3
1931+
1932+# AM_SANITY_CHECK
1933+# ---------------
1934+AC_DEFUN([AM_SANITY_CHECK],
1935+[AC_MSG_CHECKING([whether build environment is sane])
1936+# Just in case
1937+sleep 1
1938+echo timestamp > conftest.file
1939+# Do `set' in a subshell so we don't clobber the current shell's
1940+# arguments. Must try -L first in case configure is actually a
1941+# symlink; some systems play weird games with the mod time of symlinks
1942+# (eg FreeBSD returns the mod time of the symlink's containing
1943+# directory).
1944+if (
1945+ set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1946+ if test "$[*]" = "X"; then
1947+ # -L didn't work.
1948+ set X `ls -t $srcdir/configure conftest.file`
1949+ fi
1950+ rm -f conftest.file
1951+ if test "$[*]" != "X $srcdir/configure conftest.file" \
1952+ && test "$[*]" != "X conftest.file $srcdir/configure"; then
1953+
1954+ # If neither matched, then we have a broken ls. This can happen
1955+ # if, for instance, CONFIG_SHELL is bash and it inherits a
1956+ # broken ls alias from the environment. This has actually
1957+ # happened. Such a system could not be considered "sane".
1958+ AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
1959+alias in your environment])
1960+ fi
1961+
1962+ test "$[2]" = conftest.file
1963+ )
1964+then
1965+ # Ok.
1966+ :
1967+else
1968+ AC_MSG_ERROR([newly created file is older than distributed files!
1969+Check your system clock])
1970+fi
1971+AC_MSG_RESULT(yes)])
1972+
1973+# -*- Autoconf -*-
1974+
1975+
1976+# Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
1977+
1978+# This program is free software; you can redistribute it and/or modify
1979+# it under the terms of the GNU General Public License as published by
1980+# the Free Software Foundation; either version 2, or (at your option)
1981+# any later version.
1982+
1983+# This program is distributed in the hope that it will be useful,
1984+# but WITHOUT ANY WARRANTY; without even the implied warranty of
1985+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1986+# GNU General Public License for more details.
1987+
1988+# You should have received a copy of the GNU General Public License
1989+# along with this program; if not, write to the Free Software
1990+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1991+# 02111-1307, USA.
1992+
1993+# serial 3
1994+
1995+# AM_MISSING_PROG(NAME, PROGRAM)
1996+# ------------------------------
1997+AC_DEFUN([AM_MISSING_PROG],
1998+[AC_REQUIRE([AM_MISSING_HAS_RUN])
1999+$1=${$1-"${am_missing_run}$2"}
2000+AC_SUBST($1)])
2001+
2002+
2003+# AM_MISSING_HAS_RUN
2004+# ------------------
2005+# Define MISSING if not defined so far and test if it supports --run.
2006+# If it does, set am_missing_run to use it, otherwise, to nothing.
2007+AC_DEFUN([AM_MISSING_HAS_RUN],
2008+[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
2009+test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2010+# Use eval to expand $SHELL
2011+if eval "$MISSING --run true"; then
2012+ am_missing_run="$MISSING --run "
2013+else
2014+ am_missing_run=
2015+ AC_MSG_WARN([`missing' script is too old or missing])
2016+fi
2017+])
2018+
2019+# AM_AUX_DIR_EXPAND
2020+
2021+# Copyright 2001 Free Software Foundation, Inc.
2022+
2023+# This program is free software; you can redistribute it and/or modify
2024+# it under the terms of the GNU General Public License as published by
2025+# the Free Software Foundation; either version 2, or (at your option)
2026+# any later version.
2027+
2028+# This program is distributed in the hope that it will be useful,
2029+# but WITHOUT ANY WARRANTY; without even the implied warranty of
2030+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2031+# GNU General Public License for more details.
2032+
2033+# You should have received a copy of the GNU General Public License
2034+# along with this program; if not, write to the Free Software
2035+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
2036+# 02111-1307, USA.
2037+
2038+# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
2039+# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
2040+# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
2041+#
2042+# Of course, Automake must honor this variable whenever it calls a
2043+# tool from the auxiliary directory. The problem is that $srcdir (and
2044+# therefore $ac_aux_dir as well) can be either absolute or relative,
2045+# depending on how configure is run. This is pretty annoying, since
2046+# it makes $ac_aux_dir quite unusable in subdirectories: in the top
2047+# source directory, any form will work fine, but in subdirectories a
2048+# relative path needs to be adjusted first.
2049+#
2050+# $ac_aux_dir/missing
2051+# fails when called from a subdirectory if $ac_aux_dir is relative
2052+# $top_srcdir/$ac_aux_dir/missing
2053+# fails if $ac_aux_dir is absolute,
2054+# fails when called from a subdirectory in a VPATH build with
2055+# a relative $ac_aux_dir
2056+#
2057+# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
2058+# are both prefixed by $srcdir. In an in-source build this is usually
2059+# harmless because $srcdir is `.', but things will broke when you
2060+# start a VPATH build or use an absolute $srcdir.
2061+#
2062+# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
2063+# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
2064+# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
2065+# and then we would define $MISSING as
2066+# MISSING="\${SHELL} $am_aux_dir/missing"
2067+# This will work as long as MISSING is not called from configure, because
2068+# unfortunately $(top_srcdir) has no meaning in configure.
2069+# However there are other variables, like CC, which are often used in
2070+# configure, and could therefore not use this "fixed" $ac_aux_dir.
2071+#
2072+# Another solution, used here, is to always expand $ac_aux_dir to an
2073+# absolute PATH. The drawback is that using absolute paths prevent a
2074+# configured tree to be moved without reconfiguration.
2075+
2076+# Rely on autoconf to set up CDPATH properly.
2077+AC_PREREQ([2.50])
2078+
2079+AC_DEFUN([AM_AUX_DIR_EXPAND], [
2080+# expand $ac_aux_dir to an absolute path
2081+am_aux_dir=`cd $ac_aux_dir && pwd`
2082+])
2083+
2084+# AM_PROG_INSTALL_SH
2085+# ------------------
2086+# Define $install_sh.
2087+
2088+# Copyright 2001 Free Software Foundation, Inc.
2089+
2090+# This program is free software; you can redistribute it and/or modify
2091+# it under the terms of the GNU General Public License as published by
2092+# the Free Software Foundation; either version 2, or (at your option)
2093+# any later version.
2094+
2095+# This program is distributed in the hope that it will be useful,
2096+# but WITHOUT ANY WARRANTY; without even the implied warranty of
2097+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2098+# GNU General Public License for more details.
2099+
2100+# You should have received a copy of the GNU General Public License
2101+# along with this program; if not, write to the Free Software
2102+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
2103+# 02111-1307, USA.
2104+
2105+AC_DEFUN([AM_PROG_INSTALL_SH],
2106+[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
2107+install_sh=${install_sh-"$am_aux_dir/install-sh"}
2108+AC_SUBST(install_sh)])
2109+
2110+# AM_PROG_INSTALL_STRIP
2111+
2112+# Copyright 2001 Free Software Foundation, Inc.
2113+
2114+# This program is free software; you can redistribute it and/or modify
2115+# it under the terms of the GNU General Public License as published by
2116+# the Free Software Foundation; either version 2, or (at your option)
2117+# any later version.
2118+
2119+# This program is distributed in the hope that it will be useful,
2120+# but WITHOUT ANY WARRANTY; without even the implied warranty of
2121+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2122+# GNU General Public License for more details.
2123+
2124+# You should have received a copy of the GNU General Public License
2125+# along with this program; if not, write to the Free Software
2126+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
2127+# 02111-1307, USA.
2128+
2129+# One issue with vendor `install' (even GNU) is that you can't
2130+# specify the program used to strip binaries. This is especially
2131+# annoying in cross-compiling environments, where the build's strip
2132+# is unlikely to handle the host's binaries.
2133+# Fortunately install-sh will honor a STRIPPROG variable, so we
2134+# always use install-sh in `make install-strip', and initialize
2135+# STRIPPROG with the value of the STRIP variable (set by the user).
2136+AC_DEFUN([AM_PROG_INSTALL_STRIP],
2137+[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
2138+# Installed binaries are usually stripped using `strip' when the user
2139+# run `make install-strip'. However `strip' might not be the right
2140+# tool to use in cross-compilation environments, therefore Automake
2141+# will honor the `STRIP' environment variable to overrule this program.
2142+dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
2143+if test "$cross_compiling" != no; then
2144+ AC_CHECK_TOOL([STRIP], [strip], :)
2145+fi
2146+INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2147+AC_SUBST([INSTALL_STRIP_PROGRAM])])
2148+
2149+# -*- Autoconf -*-
2150+# Copyright (C) 2003 Free Software Foundation, Inc.
2151+
2152+# This program is free software; you can redistribute it and/or modify
2153+# it under the terms of the GNU General Public License as published by
2154+# the Free Software Foundation; either version 2, or (at your option)
2155+# any later version.
2156+
2157+# This program is distributed in the hope that it will be useful,
2158+# but WITHOUT ANY WARRANTY; without even the implied warranty of
2159+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2160+# GNU General Public License for more details.
2161+
2162+# You should have received a copy of the GNU General Public License
2163+# along with this program; if not, write to the Free Software
2164+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
2165+# 02111-1307, USA.
2166+
2167+# serial 1
2168+
2169+# Check whether the underlying file-system supports filenames
2170+# with a leading dot. For instance MS-DOS doesn't.
2171+AC_DEFUN([AM_SET_LEADING_DOT],
2172+[rm -rf .tst 2>/dev/null
2173+mkdir .tst 2>/dev/null
2174+if test -d .tst; then
2175+ am__leading_dot=.
2176+else
2177+ am__leading_dot=_
2178+fi
2179+rmdir .tst 2>/dev/null
2180+AC_SUBST([am__leading_dot])])
2181+
2182+# serial 5 -*- Autoconf -*-
2183+
2184+# Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
2185+
2186+# This program is free software; you can redistribute it and/or modify
2187+# it under the terms of the GNU General Public License as published by
2188+# the Free Software Foundation; either version 2, or (at your option)
2189+# any later version.
2190+
2191+# This program is distributed in the hope that it will be useful,
2192+# but WITHOUT ANY WARRANTY; without even the implied warranty of
2193+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2194+# GNU General Public License for more details.
2195+
2196+# You should have received a copy of the GNU General Public License
2197+# along with this program; if not, write to the Free Software
2198+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
2199+# 02111-1307, USA.
2200+
2201+
2202+# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
2203+# written in clear, in which case automake, when reading aclocal.m4,
2204+# will think it sees a *use*, and therefore will trigger all it's
2205+# C support machinery. Also note that it means that autoscan, seeing
2206+# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
2207+
2208+
2209+
2210+# _AM_DEPENDENCIES(NAME)
2211+# ----------------------
2212+# See how the compiler implements dependency checking.
2213+# NAME is "CC", "CXX", "GCJ", or "OBJC".
2214+# We try a few techniques and use that to set a single cache variable.
2215+#
2216+# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
2217+# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
2218+# dependency, and given that the user is not expected to run this macro,
2219+# just rely on AC_PROG_CC.
2220+AC_DEFUN([_AM_DEPENDENCIES],
2221+[AC_REQUIRE([AM_SET_DEPDIR])dnl
2222+AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
2223+AC_REQUIRE([AM_MAKE_INCLUDE])dnl
2224+AC_REQUIRE([AM_DEP_TRACK])dnl
2225+
2226+ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
2227+ [$1], CXX, [depcc="$CXX" am_compiler_list=],
2228+ [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
2229+ [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
2230+ [depcc="$$1" am_compiler_list=])
2231+
2232+AC_CACHE_CHECK([dependency style of $depcc],
2233+ [am_cv_$1_dependencies_compiler_type],
2234+[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2235+ # We make a subdir and do the tests there. Otherwise we can end up
2236+ # making bogus files that we don't know about and never remove. For
2237+ # instance it was reported that on HP-UX the gcc test will end up
2238+ # making a dummy file named `D' -- because `-MD' means `put the output
2239+ # in D'.
2240+ mkdir conftest.dir
2241+ # Copy depcomp to subdir because otherwise we won't find it if we're
2242+ # using a relative directory.
2243+ cp "$am_depcomp" conftest.dir
2244+ cd conftest.dir
2245+ # We will build objects and dependencies in a subdirectory because
2246+ # it helps to detect inapplicable dependency modes. For instance
2247+ # both Tru64's cc and ICC support -MD to output dependencies as a
2248+ # side effect of compilation, but ICC will put the dependencies in
2249+ # the current directory while Tru64 will put them in the object
2250+ # directory.
2251+ mkdir sub
2252+
2253+ am_cv_$1_dependencies_compiler_type=none
2254+ if test "$am_compiler_list" = ""; then
2255+ am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
2256+ fi
2257+ for depmode in $am_compiler_list; do
2258+ # Setup a source with many dependencies, because some compilers
2259+ # like to wrap large dependency lists on column 80 (with \), and
2260+ # we should not choose a depcomp mode which is confused by this.
2261+ #
2262+ # We need to recreate these files for each test, as the compiler may
2263+ # overwrite some of them when testing with obscure command lines.
2264+ # This happens at least with the AIX C compiler.
2265+ : > sub/conftest.c
2266+ for i in 1 2 3 4 5 6; do
2267+ echo '#include "conftst'$i'.h"' >> sub/conftest.c
2268+ : > sub/conftst$i.h
2269+ done
2270+ echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2271+
2272+ case $depmode in
2273+ nosideeffect)
2274+ # after this tag, mechanisms are not by side-effect, so they'll
2275+ # only be used when explicitly requested
2276+ if test "x$enable_dependency_tracking" = xyes; then
2277+ continue
2278+ else
2279+ break
2280+ fi
2281+ ;;
2282+ none) break ;;
2283+ esac
2284+ # We check with `-c' and `-o' for the sake of the "dashmstdout"
2285+ # mode. It turns out that the SunPro C++ compiler does not properly
2286+ # handle `-M -o', and we need to detect this.
2287+ if depmode=$depmode \
2288+ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2289+ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2290+ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2291+ >/dev/null 2>conftest.err &&
2292+ grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2293+ grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2294+ ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2295+ # icc doesn't choke on unknown options, it will just issue warnings
2296+ # (even with -Werror). So we grep stderr for any message
2297+ # that says an option was ignored.
2298+ if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2299+ am_cv_$1_dependencies_compiler_type=$depmode
2300+ break
2301+ fi
2302+ fi
2303+ done
2304+
2305+ cd ..
2306+ rm -rf conftest.dir
2307+else
2308+ am_cv_$1_dependencies_compiler_type=none
2309+fi
2310+])
2311+AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
2312+AM_CONDITIONAL([am__fastdep$1], [
2313+ test "x$enable_dependency_tracking" != xno \
2314+ && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
2315+])
2316+
2317+
2318+# AM_SET_DEPDIR
2319+# -------------
2320+# Choose a directory name for dependency files.
2321+# This macro is AC_REQUIREd in _AM_DEPENDENCIES
2322+AC_DEFUN([AM_SET_DEPDIR],
2323+[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
2324+AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
2325+])
2326+
2327+
2328+# AM_DEP_TRACK
2329+# ------------
2330+AC_DEFUN([AM_DEP_TRACK],
2331+[AC_ARG_ENABLE(dependency-tracking,
2332+[ --disable-dependency-tracking Speeds up one-time builds
2333+ --enable-dependency-tracking Do not reject slow dependency extractors])
2334+if test "x$enable_dependency_tracking" != xno; then
2335+ am_depcomp="$ac_aux_dir/depcomp"
2336+ AMDEPBACKSLASH='\'
2337+fi
2338+AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
2339+AC_SUBST([AMDEPBACKSLASH])
2340+])
2341+
2342+# Generate code to set up dependency tracking. -*- Autoconf -*-
2343+
2344+# Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
2345+
2346+# This program is free software; you can redistribute it and/or modify
2347+# it under the terms of the GNU General Public License as published by
2348+# the Free Software Foundation; either version 2, or (at your option)
2349+# any later version.
2350+
2351+# This program is distributed in the hope that it will be useful,
2352+# but WITHOUT ANY WARRANTY; without even the implied warranty of
2353+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2354+# GNU General Public License for more details.
2355+
2356+# You should have received a copy of the GNU General Public License
2357+# along with this program; if not, write to the Free Software
2358+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
2359+# 02111-1307, USA.
2360+
2361+#serial 2
2362+
2363+# _AM_OUTPUT_DEPENDENCY_COMMANDS
2364+# ------------------------------
2365+AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
2366+[for mf in $CONFIG_FILES; do
2367+ # Strip MF so we end up with the name of the file.
2368+ mf=`echo "$mf" | sed -e 's/:.*$//'`
2369+ # Check whether this is an Automake generated Makefile or not.
2370+ # We used to match only the files named `Makefile.in', but
2371+ # some people rename them; so instead we look at the file content.
2372+ # Grep'ing the first line is not enough: some people post-process
2373+ # each Makefile.in and add a new line on top of each file to say so.
2374+ # So let's grep whole file.
2375+ if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
2376+ dirpart=`AS_DIRNAME("$mf")`
2377+ else
2378+ continue
2379+ fi
2380+ grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
2381+ # Extract the definition of DEP_FILES from the Makefile without
2382+ # running `make'.
2383+ DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
2384+ test -z "$DEPDIR" && continue
2385+ # When using ansi2knr, U may be empty or an underscore; expand it
2386+ U=`sed -n -e '/^U = / s///p' < "$mf"`
2387+ test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
2388+ # We invoke sed twice because it is the simplest approach to
2389+ # changing $(DEPDIR) to its actual value in the expansion.
2390+ for file in `sed -n -e '
2391+ /^DEP_FILES = .*\\\\$/ {
2392+ s/^DEP_FILES = //
2393+ :loop
2394+ s/\\\\$//
2395+ p
2396+ n
2397+ /\\\\$/ b loop
2398+ p
2399+ }
2400+ /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
2401+ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
2402+ # Make sure the directory exists.
2403+ test -f "$dirpart/$file" && continue
2404+ fdir=`AS_DIRNAME(["$file"])`
2405+ AS_MKDIR_P([$dirpart/$fdir])
2406+ # echo "creating $dirpart/$file"
2407+ echo '# dummy' > "$dirpart/$file"
2408+ done
2409+done
2410+])# _AM_OUTPUT_DEPENDENCY_COMMANDS
2411+
2412+
2413+# AM_OUTPUT_DEPENDENCY_COMMANDS
2414+# -----------------------------
2415+# This macro should only be invoked once -- use via AC_REQUIRE.
2416+#
2417+# This code is only required when automatic dependency tracking
2418+# is enabled. FIXME. This creates each `.P' file that we will
2419+# need in order to bootstrap the dependency handling code.
2420+AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
2421+[AC_CONFIG_COMMANDS([depfiles],
2422+ [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
2423+ [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
2424+])
2425+
2426+# Check to see how 'make' treats includes. -*- Autoconf -*-
2427+
2428+# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
2429+
2430+# This program is free software; you can redistribute it and/or modify
2431+# it under the terms of the GNU General Public License as published by
2432+# the Free Software Foundation; either version 2, or (at your option)
2433+# any later version.
2434+
2435+# This program is distributed in the hope that it will be useful,
2436+# but WITHOUT ANY WARRANTY; without even the implied warranty of
2437+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2438+# GNU General Public License for more details.
2439+
2440+# You should have received a copy of the GNU General Public License
2441+# along with this program; if not, write to the Free Software
2442+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
2443+# 02111-1307, USA.
2444+
2445+# serial 2
2446+
2447+# AM_MAKE_INCLUDE()
2448+# -----------------
2449+# Check to see how make treats includes.
2450+AC_DEFUN([AM_MAKE_INCLUDE],
2451+[am_make=${MAKE-make}
2452+cat > confinc << 'END'
2453+am__doit:
2454+ @echo done
2455+.PHONY: am__doit
2456+END
2457+# If we don't find an include directive, just comment out the code.
2458+AC_MSG_CHECKING([for style of include used by $am_make])
2459+am__include="#"
2460+am__quote=
2461+_am_result=none
2462+# First try GNU make style include.
2463+echo "include confinc" > confmf
2464+# We grep out `Entering directory' and `Leaving directory'
2465+# messages which can occur if `w' ends up in MAKEFLAGS.
2466+# In particular we don't look at `^make:' because GNU make might
2467+# be invoked under some other name (usually "gmake"), in which
2468+# case it prints its new name instead of `make'.
2469+if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2470+ am__include=include
2471+ am__quote=
2472+ _am_result=GNU
2473+fi
2474+# Now try BSD make style include.
2475+if test "$am__include" = "#"; then
2476+ echo '.include "confinc"' > confmf
2477+ if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2478+ am__include=.include
2479+ am__quote="\""
2480+ _am_result=BSD
2481+ fi
2482+fi
2483+AC_SUBST([am__include])
2484+AC_SUBST([am__quote])
2485+AC_MSG_RESULT([$_am_result])
2486+rm -f confinc confmf
2487+])
2488+
2489+# AM_CONDITIONAL -*- Autoconf -*-
2490+
2491+# Copyright 1997, 2000, 2001 Free Software Foundation, Inc.
2492+
2493+# This program is free software; you can redistribute it and/or modify
2494+# it under the terms of the GNU General Public License as published by
2495+# the Free Software Foundation; either version 2, or (at your option)
2496+# any later version.
2497+
2498+# This program is distributed in the hope that it will be useful,
2499+# but WITHOUT ANY WARRANTY; without even the implied warranty of
2500+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2501+# GNU General Public License for more details.
2502+
2503+# You should have received a copy of the GNU General Public License
2504+# along with this program; if not, write to the Free Software
2505+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
2506+# 02111-1307, USA.
2507+
2508+# serial 5
2509+
2510+AC_PREREQ(2.52)
2511+
2512+# AM_CONDITIONAL(NAME, SHELL-CONDITION)
2513+# -------------------------------------
2514+# Define a conditional.
2515+AC_DEFUN([AM_CONDITIONAL],
2516+[ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
2517+ [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
2518+AC_SUBST([$1_TRUE])
2519+AC_SUBST([$1_FALSE])
2520+if $2; then
2521+ $1_TRUE=
2522+ $1_FALSE='#'
2523+else
2524+ $1_TRUE='#'
2525+ $1_FALSE=
2526+fi
2527+AC_CONFIG_COMMANDS_PRE(
2528+[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
2529+ AC_MSG_ERROR([conditional "$1" was never defined.
2530+Usually this means the macro was only invoked conditionally.])
2531+fi])])
2532+
2533+# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
2534+
2535+# serial 47 AC_PROG_LIBTOOL
2536+# Debian $Rev: 214 $
2537+
2538+
2539+# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
2540+# -----------------------------------------------------------
2541+# If this macro is not defined by Autoconf, define it here.
2542+m4_ifdef([AC_PROVIDE_IFELSE],
2543+ [],
2544+ [m4_define([AC_PROVIDE_IFELSE],
2545+ [m4_ifdef([AC_PROVIDE_$1],
2546+ [$2], [$3])])])
2547+
2548+
2549+# AC_PROG_LIBTOOL
2550+# ---------------
2551+AC_DEFUN([AC_PROG_LIBTOOL],
2552+[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
2553+dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
2554+dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
2555+ AC_PROVIDE_IFELSE([AC_PROG_CXX],
2556+ [AC_LIBTOOL_CXX],
2557+ [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
2558+ ])])
2559+dnl And a similar setup for Fortran 77 support
2560+ AC_PROVIDE_IFELSE([AC_PROG_F77],
2561+ [AC_LIBTOOL_F77],
2562+ [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
2563+])])
2564+
2565+dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
2566+dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
2567+dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
2568+ AC_PROVIDE_IFELSE([AC_PROG_GCJ],
2569+ [AC_LIBTOOL_GCJ],
2570+ [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
2571+ [AC_LIBTOOL_GCJ],
2572+ [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
2573+ [AC_LIBTOOL_GCJ],
2574+ [ifdef([AC_PROG_GCJ],
2575+ [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
2576+ ifdef([A][M_PROG_GCJ],
2577+ [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
2578+ ifdef([LT_AC_PROG_GCJ],
2579+ [define([LT_AC_PROG_GCJ],
2580+ defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
2581+])])# AC_PROG_LIBTOOL
2582+
2583+
2584+# _AC_PROG_LIBTOOL
2585+# ----------------
2586+AC_DEFUN([_AC_PROG_LIBTOOL],
2587+[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
2588+AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
2589+AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
2590+AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
2591+
2592+# This can be used to rebuild libtool when needed
2593+LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
2594+
2595+# Always use our own libtool.
2596+LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2597+AC_SUBST(LIBTOOL)dnl
2598+
2599+# Prevent multiple expansion
2600+define([AC_PROG_LIBTOOL], [])
2601+])# _AC_PROG_LIBTOOL
2602+
2603+
2604+# AC_LIBTOOL_SETUP
2605+# ----------------
2606+AC_DEFUN([AC_LIBTOOL_SETUP],
2607+[AC_PREREQ(2.50)dnl
2608+AC_REQUIRE([AC_ENABLE_SHARED])dnl
2609+AC_REQUIRE([AC_ENABLE_STATIC])dnl
2610+AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
2611+AC_REQUIRE([AC_CANONICAL_HOST])dnl
2612+AC_REQUIRE([AC_CANONICAL_BUILD])dnl
2613+AC_REQUIRE([AC_PROG_CC])dnl
2614+AC_REQUIRE([AC_PROG_LD])dnl
2615+AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
2616+AC_REQUIRE([AC_PROG_NM])dnl
2617+
2618+AC_REQUIRE([AC_PROG_LN_S])dnl
2619+AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
2620+# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2621+AC_REQUIRE([AC_OBJEXT])dnl
2622+AC_REQUIRE([AC_EXEEXT])dnl
2623+dnl
2624+
2625+AC_LIBTOOL_SYS_MAX_CMD_LEN
2626+AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
2627+AC_LIBTOOL_OBJDIR
2628+
2629+AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
2630+_LT_AC_PROG_ECHO_BACKSLASH
2631+
2632+case $host_os in
2633+aix3*)
2634+ # AIX sometimes has problems with the GCC collect2 program. For some
2635+ # reason, if we set the COLLECT_NAMES environment variable, the problems
2636+ # vanish in a puff of smoke.
2637+ if test "X${COLLECT_NAMES+set}" != Xset; then
2638+ COLLECT_NAMES=
2639+ export COLLECT_NAMES
2640+ fi
2641+ ;;
2642+esac
2643+
2644+# Sed substitution that helps us do robust quoting. It backslashifies
2645+# metacharacters that are still active within double-quoted strings.
2646+Xsed='sed -e s/^X//'
2647+[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
2648+
2649+# Same as above, but do not quote variable references.
2650+[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
2651+
2652+# Sed substitution to delay expansion of an escaped shell variable in a
2653+# double_quote_subst'ed string.
2654+delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2655+
2656+# Sed substitution to avoid accidental globbing in evaled expressions
2657+no_glob_subst='s/\*/\\\*/g'
2658+
2659+# Constants:
2660+rm="rm -f"
2661+
2662+# Global variables:
2663+default_ofile=libtool
2664+can_build_shared=yes
2665+
2666+# All known linkers require a `.a' archive for static linking (except M$VC,
2667+# which needs '.lib').
2668+libext=a
2669+ltmain="$ac_aux_dir/ltmain.sh"
2670+ofile="$default_ofile"
2671+with_gnu_ld="$lt_cv_prog_gnu_ld"
2672+
2673+AC_CHECK_TOOL(AR, ar, false)
2674+AC_CHECK_TOOL(RANLIB, ranlib, :)
2675+AC_CHECK_TOOL(STRIP, strip, :)
2676+
2677+old_CC="$CC"
2678+old_CFLAGS="$CFLAGS"
2679+
2680+# Set sane defaults for various variables
2681+test -z "$AR" && AR=ar
2682+test -z "$AR_FLAGS" && AR_FLAGS=cru
2683+test -z "$AS" && AS=as
2684+test -z "$CC" && CC=cc
2685+test -z "$LTCC" && LTCC=$CC
2686+test -z "$DLLTOOL" && DLLTOOL=dlltool
2687+test -z "$LD" && LD=ld
2688+test -z "$LN_S" && LN_S="ln -s"
2689+test -z "$MAGIC_CMD" && MAGIC_CMD=file
2690+test -z "$NM" && NM=nm
2691+test -z "$SED" && SED=sed
2692+test -z "$OBJDUMP" && OBJDUMP=objdump
2693+test -z "$RANLIB" && RANLIB=:
2694+test -z "$STRIP" && STRIP=:
2695+test -z "$ac_objext" && ac_objext=o
2696+
2697+# Determine commands to create old-style static archives.
2698+old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
2699+old_postinstall_cmds='chmod 644 $oldlib'
2700+old_postuninstall_cmds=
2701+
2702+if test -n "$RANLIB"; then
2703+ case $host_os in
2704+ openbsd*)
2705+ old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
2706+ ;;
2707+ *)
2708+ old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
2709+ ;;
2710+ esac
2711+ old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
2712+fi
2713+
2714+# Only perform the check for file, if the check method requires it
2715+case $deplibs_check_method in
2716+file_magic*)
2717+ if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2718+ AC_PATH_MAGIC
2719+ fi
2720+ ;;
2721+esac
2722+
2723+AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
2724+AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
2725+enable_win32_dll=yes, enable_win32_dll=no)
2726+
2727+AC_ARG_ENABLE([libtool-lock],
2728+ [AC_HELP_STRING([--disable-libtool-lock],
2729+ [avoid locking (might break parallel builds)])])
2730+test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
2731+
2732+AC_ARG_WITH([pic],
2733+ [AC_HELP_STRING([--with-pic],
2734+ [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
2735+ [pic_mode="$withval"],
2736+ [pic_mode=default])
2737+test -z "$pic_mode" && pic_mode=default
2738+
2739+# Use C for the default configuration in the libtool script
2740+tagname=
2741+AC_LIBTOOL_LANG_C_CONFIG
2742+_LT_AC_TAGCONFIG
2743+])# AC_LIBTOOL_SETUP
2744+
2745+
2746+# _LT_AC_SYS_COMPILER
2747+# -------------------
2748+AC_DEFUN([_LT_AC_SYS_COMPILER],
2749+[AC_REQUIRE([AC_PROG_CC])dnl
2750+
2751+# If no C compiler was specified, use CC.
2752+LTCC=${LTCC-"$CC"}
2753+
2754+# Allow CC to be a program name with arguments.
2755+compiler=$CC
2756+])# _LT_AC_SYS_COMPILER
2757+
2758+
2759+# _LT_AC_SYS_LIBPATH_AIX
2760+# ----------------------
2761+# Links a minimal program and checks the executable
2762+# for the system default hardcoded library path. In most cases,
2763+# this is /usr/lib:/lib, but when the MPI compilers are used
2764+# the location of the communication and MPI libs are included too.
2765+# If we don't find anything, use the default library path according
2766+# to the aix ld manual.
2767+AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
2768+[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
2769+aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
2770+}'`
2771+# Check for a 64-bit object if we didn't find anything.
2772+if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
2773+}'`; fi],[])
2774+if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
2775+])# _LT_AC_SYS_LIBPATH_AIX
2776+
2777+
2778+# _LT_AC_SHELL_INIT(ARG)
2779+# ----------------------
2780+AC_DEFUN([_LT_AC_SHELL_INIT],
2781+[ifdef([AC_DIVERSION_NOTICE],
2782+ [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
2783+ [AC_DIVERT_PUSH(NOTICE)])
2784+$1
2785+AC_DIVERT_POP
2786+])# _LT_AC_SHELL_INIT
2787+
2788+
2789+# _LT_AC_PROG_ECHO_BACKSLASH
2790+# --------------------------
2791+# Add some code to the start of the generated configure script which
2792+# will find an echo command which doesn't interpret backslashes.
2793+AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
2794+[_LT_AC_SHELL_INIT([
2795+# Check that we are running under the correct shell.
2796+SHELL=${CONFIG_SHELL-/bin/sh}
2797+
2798+case X$ECHO in
2799+X*--fallback-echo)
2800+ # Remove one level of quotation (which was required for Make).
2801+ ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
2802+ ;;
2803+esac
2804+
2805+echo=${ECHO-echo}
2806+if test "X[$]1" = X--no-reexec; then
2807+ # Discard the --no-reexec flag, and continue.
2808+ shift
2809+elif test "X[$]1" = X--fallback-echo; then
2810+ # Avoid inline document here, it may be left over
2811+ :
2812+elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
2813+ # Yippee, $echo works!
2814+ :
2815+else
2816+ # Restart under the correct shell.
2817+ exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
2818+fi
2819+
2820+if test "X[$]1" = X--fallback-echo; then
2821+ # used as fallback echo
2822+ shift
2823+ cat <<EOF
2824+[$]*
2825+EOF
2826+ exit 0
2827+fi
2828+
2829+# The HP-UX ksh and POSIX shell print the target directory to stdout
2830+# if CDPATH is set.
2831+if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
2832+
2833+if test -z "$ECHO"; then
2834+if test "X${echo_test_string+set}" != Xset; then
2835+# find a string as large as possible, as long as the shell can cope with it
2836+ for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
2837+ # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
2838+ if (echo_test_string="`eval $cmd`") 2>/dev/null &&
2839+ echo_test_string="`eval $cmd`" &&
2840+ (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
2841+ then
2842+ break
2843+ fi
2844+ done
2845+fi
2846+
2847+if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
2848+ echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
2849+ test "X$echo_testing_string" = "X$echo_test_string"; then
2850+ :
2851+else
2852+ # The Solaris, AIX, and Digital Unix default echo programs unquote
2853+ # backslashes. This makes it impossible to quote backslashes using
2854+ # echo "$something" | sed 's/\\/\\\\/g'
2855+ #
2856+ # So, first we look for a working echo in the user's PATH.
2857+
2858+ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2859+ for dir in $PATH /usr/ucb; do
2860+ IFS="$lt_save_ifs"
2861+ if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
2862+ test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
2863+ echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
2864+ test "X$echo_testing_string" = "X$echo_test_string"; then
2865+ echo="$dir/echo"
2866+ break
2867+ fi
2868+ done
2869+ IFS="$lt_save_ifs"
2870+
2871+ if test "X$echo" = Xecho; then
2872+ # We didn't find a better echo, so look for alternatives.
2873+ if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
2874+ echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
2875+ test "X$echo_testing_string" = "X$echo_test_string"; then
2876+ # This shell has a builtin print -r that does the trick.
2877+ echo='print -r'
2878+ elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
2879+ test "X$CONFIG_SHELL" != X/bin/ksh; then
2880+ # If we have ksh, try running configure again with it.
2881+ ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
2882+ export ORIGINAL_CONFIG_SHELL
2883+ CONFIG_SHELL=/bin/ksh
2884+ export CONFIG_SHELL
2885+ exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
2886+ else
2887+ # Try using printf.
2888+ echo='printf %s\n'
2889+ if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
2890+ echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
2891+ test "X$echo_testing_string" = "X$echo_test_string"; then
2892+ # Cool, printf works
2893+ :
2894+ elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
2895+ test "X$echo_testing_string" = 'X\t' &&
2896+ echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
2897+ test "X$echo_testing_string" = "X$echo_test_string"; then
2898+ CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
2899+ export CONFIG_SHELL
2900+ SHELL="$CONFIG_SHELL"
2901+ export SHELL
2902+ echo="$CONFIG_SHELL [$]0 --fallback-echo"
2903+ elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
2904+ test "X$echo_testing_string" = 'X\t' &&
2905+ echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
2906+ test "X$echo_testing_string" = "X$echo_test_string"; then
2907+ echo="$CONFIG_SHELL [$]0 --fallback-echo"
2908+ else
2909+ # maybe with a smaller string...
2910+ prev=:
2911+
2912+ for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
2913+ if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
2914+ then
2915+ break
2916+ fi
2917+ prev="$cmd"
2918+ done
2919+
2920+ if test "$prev" != 'sed 50q "[$]0"'; then
2921+ echo_test_string=`eval $prev`
2922+ export echo_test_string
2923+ exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
2924+ else
2925+ # Oops. We lost completely, so just stick with echo.
2926+ echo=echo
2927+ fi
2928+ fi
2929+ fi
2930+ fi
2931+fi
2932+fi
2933+
2934+# Copy echo and quote the copy suitably for passing to libtool from
2935+# the Makefile, instead of quoting the original, which is used later.
2936+ECHO=$echo
2937+if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
2938+ ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
2939+fi
2940+
2941+AC_SUBST(ECHO)
2942+])])# _LT_AC_PROG_ECHO_BACKSLASH
2943+
2944+
2945+# _LT_AC_LOCK
2946+# -----------
2947+AC_DEFUN([_LT_AC_LOCK],
2948+[AC_ARG_ENABLE([libtool-lock],
2949+ [AC_HELP_STRING([--disable-libtool-lock],
2950+ [avoid locking (might break parallel builds)])])
2951+test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
2952+
2953+# Some flags need to be propagated to the compiler or linker for good
2954+# libtool support.
2955+case $host in
2956+ia64-*-hpux*)
2957+ # Find out which ABI we are using.
2958+ echo 'int i;' > conftest.$ac_ext
2959+ if AC_TRY_EVAL(ac_compile); then
2960+ case `/usr/bin/file conftest.$ac_objext` in
2961+ *ELF-32*)
2962+ HPUX_IA64_MODE="32"
2963+ ;;
2964+ *ELF-64*)
2965+ HPUX_IA64_MODE="64"
2966+ ;;
2967+ esac
2968+ fi
2969+ rm -rf conftest*
2970+ ;;
2971+*-*-irix6*)
2972+ # Find out which ABI we are using.
2973+ echo '[#]line __oline__ "configure"' > conftest.$ac_ext
2974+ if AC_TRY_EVAL(ac_compile); then
2975+ if test "$lt_cv_prog_gnu_ld" = yes; then
2976+ case `/usr/bin/file conftest.$ac_objext` in
2977+ *32-bit*)
2978+ LD="${LD-ld} -melf32bsmip"
2979+ ;;
2980+ *N32*)
2981+ LD="${LD-ld} -melf32bmipn32"
2982+ ;;
2983+ *64-bit*)
2984+ LD="${LD-ld} -melf64bmip"
2985+ ;;
2986+ esac
2987+ else
2988+ case `/usr/bin/file conftest.$ac_objext` in
2989+ *32-bit*)
2990+ LD="${LD-ld} -32"
2991+ ;;
2992+ *N32*)
2993+ LD="${LD-ld} -n32"
2994+ ;;
2995+ *64-bit*)
2996+ LD="${LD-ld} -64"
2997+ ;;
2998+ esac
2999+ fi
3000+ fi
3001+ rm -rf conftest*
3002+ ;;
3003+
3004+x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3005+ # Find out which ABI we are using.
3006+ echo 'int i;' > conftest.$ac_ext
3007+ if AC_TRY_EVAL(ac_compile); then
3008+ case "`/usr/bin/file conftest.o`" in
3009+ *32-bit*)
3010+ case $host in
3011+ x86_64-*linux*)
3012+ LD="${LD-ld} -m elf_i386"
3013+ ;;
3014+ ppc64-*linux*|powerpc64-*linux*)
3015+ LD="${LD-ld} -m elf32ppclinux"
3016+ ;;
3017+ s390x-*linux*)
3018+ LD="${LD-ld} -m elf_s390"
3019+ ;;
3020+ sparc64-*linux*)
3021+ LD="${LD-ld} -m elf32_sparc"
3022+ ;;
3023+ esac
3024+ ;;
3025+ *64-bit*)
3026+ case $host in
3027+ x86_64-*linux*)
3028+ LD="${LD-ld} -m elf_x86_64"
3029+ ;;
3030+ ppc*-*linux*|powerpc*-*linux*)
3031+ LD="${LD-ld} -m elf64ppc"
3032+ ;;
3033+ s390*-*linux*)
3034+ LD="${LD-ld} -m elf64_s390"
3035+ ;;
3036+ sparc*-*linux*)
3037+ LD="${LD-ld} -m elf64_sparc"
3038+ ;;
3039+ esac
3040+ ;;
3041+ esac
3042+ fi
3043+ rm -rf conftest*
3044+ ;;
3045+
3046+*-*-sco3.2v5*)
3047+ # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3048+ SAVE_CFLAGS="$CFLAGS"
3049+ CFLAGS="$CFLAGS -belf"
3050+ AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
3051+ [AC_LANG_PUSH(C)
3052+ AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
3053+ AC_LANG_POP])
3054+ if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3055+ # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3056+ CFLAGS="$SAVE_CFLAGS"
3057+ fi
3058+ ;;
3059+AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
3060+[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
3061+ AC_CHECK_TOOL(DLLTOOL, dlltool, false)
3062+ AC_CHECK_TOOL(AS, as, false)
3063+ AC_CHECK_TOOL(OBJDUMP, objdump, false)
3064+ ;;
3065+ ])
3066+esac
3067+
3068+need_locks="$enable_libtool_lock"
3069+
3070+])# _LT_AC_LOCK
3071+
3072+
3073+# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
3074+# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
3075+# ----------------------------------------------------------------
3076+# Check whether the given compiler option works
3077+AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
3078+[AC_REQUIRE([LT_AC_PROG_SED])
3079+AC_CACHE_CHECK([$1], [$2],
3080+ [$2=no
3081+ ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
3082+ printf "$lt_simple_compile_test_code" > conftest.$ac_ext
3083+ lt_compiler_flag="$3"
3084+ # Insert the option either (1) after the last *FLAGS variable, or
3085+ # (2) before a word containing "conftest.", or (3) at the end.
3086+ # Note that $ac_compile itself does not contain backslashes and begins
3087+ # with a dollar sign (not a hyphen), so the echo should work correctly.
3088+ # The option is referenced via a variable to avoid confusing sed.
3089+ lt_compile=`echo "$ac_compile" | $SED \
3090+ -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
3091+ -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
3092+ -e 's:$: $lt_compiler_flag:'`
3093+ (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
3094+ (eval "$lt_compile" 2>conftest.err)
3095+ ac_status=$?
3096+ cat conftest.err >&AS_MESSAGE_LOG_FD
3097+ echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
3098+ if (exit $ac_status) && test -s "$ac_outfile"; then
3099+ # The compiler can only warn and ignore the option if not recognized
3100+ # So say no if there are warnings
3101+ if test ! -s conftest.err; then
3102+ $2=yes
3103+ fi
3104+ fi
3105+ $rm conftest*
3106+])
3107+
3108+if test x"[$]$2" = xyes; then
3109+ ifelse([$5], , :, [$5])
3110+else
3111+ ifelse([$6], , :, [$6])
3112+fi
3113+])# AC_LIBTOOL_COMPILER_OPTION
3114+
3115+
3116+# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
3117+# [ACTION-SUCCESS], [ACTION-FAILURE])
3118+# ------------------------------------------------------------
3119+# Check whether the given compiler option works
3120+AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
3121+[AC_CACHE_CHECK([$1], [$2],
3122+ [$2=no
3123+ save_LDFLAGS="$LDFLAGS"
3124+ LDFLAGS="$LDFLAGS $3"
3125+ printf "$lt_simple_link_test_code" > conftest.$ac_ext
3126+ if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
3127+ # The compiler can only warn and ignore the option if not recognized
3128+ # So say no if there are warnings
3129+ if test -s conftest.err; then
3130+ # Append any errors to the config.log.
3131+ cat conftest.err 1>&AS_MESSAGE_LOG_FD
3132+ else
3133+ $2=yes
3134+ fi
3135+ fi
3136+ $rm conftest*
3137+ LDFLAGS="$save_LDFLAGS"
3138+])
3139+
3140+if test x"[$]$2" = xyes; then
3141+ ifelse([$4], , :, [$4])
3142+else
3143+ ifelse([$5], , :, [$5])
3144+fi
3145+])# AC_LIBTOOL_LINKER_OPTION
3146+
3147+
3148+# AC_LIBTOOL_SYS_MAX_CMD_LEN
3149+# --------------------------
3150+AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
3151+[# find the maximum length of command line arguments
3152+AC_MSG_CHECKING([the maximum length of command line arguments])
3153+AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
3154+ i=0
3155+ teststring="ABCD"
3156+
3157+ case $build_os in
3158+ msdosdjgpp*)
3159+ # On DJGPP, this test can blow up pretty badly due to problems in libc
3160+ # (any single argument exceeding 2000 bytes causes a buffer overrun
3161+ # during glob expansion). Even if it were fixed, the result of this
3162+ # check would be larger than it should be.
3163+ lt_cv_sys_max_cmd_len=12288; # 12K is about right
3164+ ;;
3165+
3166+ gnu*)
3167+ # Under GNU Hurd, this test is not required because there is
3168+ # no limit to the length of command line arguments.
3169+ # Libtool will interpret -1 as no limit whatsoever
3170+ lt_cv_sys_max_cmd_len=-1;
3171+ ;;
3172+
3173+ cygwin* | mingw*)
3174+ # On Win9x/ME, this test blows up -- it succeeds, but takes
3175+ # about 5 minutes as the teststring grows exponentially.
3176+ # Worse, since 9x/ME are not pre-emptively multitasking,
3177+ # you end up with a "frozen" computer, even though with patience
3178+ # the test eventually succeeds (with a max line length of 256k).
3179+ # Instead, let's just punt: use the minimum linelength reported by
3180+ # all of the supported platforms: 8192 (on NT/2K/XP).
3181+ lt_cv_sys_max_cmd_len=8192;
3182+ ;;
3183+
3184+ amigaos*)
3185+ # On AmigaOS with pdksh, this test takes hours, literally.
3186+ # So we just punt and use a minimum line length of 8192.
3187+ lt_cv_sys_max_cmd_len=8192;
3188+ ;;
3189+
3190+ *)
3191+ # If test is not a shell built-in, we'll probably end up computing a
3192+ # maximum length that is only half of the actual maximum length, but
3193+ # we can't tell.
3194+ while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
3195+ = "XX$teststring") >/dev/null 2>&1 &&
3196+ new_result=`expr "X$teststring" : ".*" 2>&1` &&
3197+ lt_cv_sys_max_cmd_len=$new_result &&
3198+ test $i != 17 # 1/2 MB should be enough
3199+ do
3200+ i=`expr $i + 1`
3201+ teststring=$teststring$teststring
3202+ done
3203+ teststring=
3204+ # Add a significant safety factor because C++ compilers can tack on massive
3205+ # amounts of additional arguments before passing them to the linker.
3206+ # It appears as though 1/2 is a usable value.
3207+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
3208+ ;;
3209+ esac
3210+])
3211+if test -n $lt_cv_sys_max_cmd_len ; then
3212+ AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
3213+else
3214+ AC_MSG_RESULT(none)
3215+fi
3216+])# AC_LIBTOOL_SYS_MAX_CMD_LEN
3217+
3218+
3219+# _LT_AC_CHECK_DLFCN
3220+# --------------------
3221+AC_DEFUN([_LT_AC_CHECK_DLFCN],
3222+[AC_CHECK_HEADERS(dlfcn.h)dnl
3223+])# _LT_AC_CHECK_DLFCN
3224+
3225+
3226+# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
3227+# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
3228+# ------------------------------------------------------------------
3229+AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
3230+[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
3231+if test "$cross_compiling" = yes; then :
3232+ [$4]
3233+else
3234+ lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
3235+ lt_status=$lt_dlunknown
3236+ cat > conftest.$ac_ext <<EOF
3237+[#line __oline__ "configure"
3238+#include "confdefs.h"
3239+
3240+#if HAVE_DLFCN_H
3241+#include <dlfcn.h>
3242+#endif
3243+
3244+#include <stdio.h>
3245+
3246+#ifdef RTLD_GLOBAL
3247+# define LT_DLGLOBAL RTLD_GLOBAL
3248+#else
3249+# ifdef DL_GLOBAL
3250+# define LT_DLGLOBAL DL_GLOBAL
3251+# else
3252+# define LT_DLGLOBAL 0
3253+# endif
3254+#endif
3255+
3256+/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
3257+ find out it does not work in some platform. */
3258+#ifndef LT_DLLAZY_OR_NOW
3259+# ifdef RTLD_LAZY
3260+# define LT_DLLAZY_OR_NOW RTLD_LAZY
3261+# else
3262+# ifdef DL_LAZY
3263+# define LT_DLLAZY_OR_NOW DL_LAZY
3264+# else
3265+# ifdef RTLD_NOW
3266+# define LT_DLLAZY_OR_NOW RTLD_NOW
3267+# else
3268+# ifdef DL_NOW
3269+# define LT_DLLAZY_OR_NOW DL_NOW
3270+# else
3271+# define LT_DLLAZY_OR_NOW 0
3272+# endif
3273+# endif
3274+# endif
3275+# endif
3276+#endif
3277+
3278+#ifdef __cplusplus
3279+extern "C" void exit (int);
3280+#endif
3281+
3282+void fnord() { int i=42;}
3283+int main ()
3284+{
3285+ void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
3286+ int status = $lt_dlunknown;
3287+
3288+ if (self)
3289+ {
3290+ if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
3291+ else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
3292+ /* dlclose (self); */
3293+ }
3294+
3295+ exit (status);
3296+}]
3297+EOF
3298+ if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
3299+ (./conftest; exit; ) 2>/dev/null
3300+ lt_status=$?
3301+ case x$lt_status in
3302+ x$lt_dlno_uscore) $1 ;;
3303+ x$lt_dlneed_uscore) $2 ;;
3304+ x$lt_unknown|x*) $3 ;;
3305+ esac
3306+ else :
3307+ # compilation failed
3308+ $3
3309+ fi
3310+fi
3311+rm -fr conftest*
3312+])# _LT_AC_TRY_DLOPEN_SELF
3313+
3314+
3315+# AC_LIBTOOL_DLOPEN_SELF
3316+# -------------------
3317+AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
3318+[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
3319+if test "x$enable_dlopen" != xyes; then
3320+ enable_dlopen=unknown
3321+ enable_dlopen_self=unknown
3322+ enable_dlopen_self_static=unknown
3323+else
3324+ lt_cv_dlopen=no
3325+ lt_cv_dlopen_libs=
3326+
3327+ case $host_os in
3328+ beos*)
3329+ lt_cv_dlopen="load_add_on"
3330+ lt_cv_dlopen_libs=
3331+ lt_cv_dlopen_self=yes
3332+ ;;
3333+
3334+ mingw* | pw32*)
3335+ lt_cv_dlopen="LoadLibrary"
3336+ lt_cv_dlopen_libs=
3337+ ;;
3338+
3339+ cygwin*)
3340+ lt_cv_dlopen="dlopen"
3341+ lt_cv_dlopen_libs=
3342+ ;;
3343+
3344+ darwin*)
3345+ # if libdl is installed we need to link against it
3346+ AC_CHECK_LIB([dl], [dlopen],
3347+ [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
3348+ lt_cv_dlopen="dyld"
3349+ lt_cv_dlopen_libs=
3350+ lt_cv_dlopen_self=yes
3351+ ])
3352+ ;;
3353+
3354+ *)
3355+ AC_CHECK_FUNC([shl_load],
3356+ [lt_cv_dlopen="shl_load"],
3357+ [AC_CHECK_LIB([dld], [shl_load],
3358+ [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
3359+ [AC_CHECK_FUNC([dlopen],
3360+ [lt_cv_dlopen="dlopen"],
3361+ [AC_CHECK_LIB([dl], [dlopen],
3362+ [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
3363+ [AC_CHECK_LIB([svld], [dlopen],
3364+ [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
3365+ [AC_CHECK_LIB([dld], [dld_link],
3366+ [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
3367+ ])
3368+ ])
3369+ ])
3370+ ])
3371+ ])
3372+ ;;
3373+ esac
3374+
3375+ if test "x$lt_cv_dlopen" != xno; then
3376+ enable_dlopen=yes
3377+ else
3378+ enable_dlopen=no
3379+ fi
3380+
3381+ case $lt_cv_dlopen in
3382+ dlopen)
3383+ save_CPPFLAGS="$CPPFLAGS"
3384+ test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
3385+
3386+ save_LDFLAGS="$LDFLAGS"
3387+ eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
3388+
3389+ save_LIBS="$LIBS"
3390+ LIBS="$lt_cv_dlopen_libs $LIBS"
3391+
3392+ AC_CACHE_CHECK([whether a program can dlopen itself],
3393+ lt_cv_dlopen_self, [dnl
3394+ _LT_AC_TRY_DLOPEN_SELF(
3395+ lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
3396+ lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
3397+ ])
3398+
3399+ if test "x$lt_cv_dlopen_self" = xyes; then
3400+ LDFLAGS="$LDFLAGS $link_static_flag"
3401+ AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
3402+ lt_cv_dlopen_self_static, [dnl
3403+ _LT_AC_TRY_DLOPEN_SELF(
3404+ lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
3405+ lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
3406+ ])
3407+ fi
3408+
3409+ CPPFLAGS="$save_CPPFLAGS"
3410+ LDFLAGS="$save_LDFLAGS"
3411+ LIBS="$save_LIBS"
3412+ ;;
3413+ esac
3414+
3415+ case $lt_cv_dlopen_self in
3416+ yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
3417+ *) enable_dlopen_self=unknown ;;
3418+ esac
3419+
3420+ case $lt_cv_dlopen_self_static in
3421+ yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
3422+ *) enable_dlopen_self_static=unknown ;;
3423+ esac
3424+fi
3425+])# AC_LIBTOOL_DLOPEN_SELF
3426+
3427+
3428+# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
3429+# ---------------------------------
3430+# Check to see if options -c and -o are simultaneously supported by compiler
3431+AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
3432+[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
3433+AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
3434+ [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
3435+ [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
3436+ $rm -r conftest 2>/dev/null
3437+ mkdir conftest
3438+ cd conftest
3439+ mkdir out
3440+ printf "$lt_simple_compile_test_code" > conftest.$ac_ext
3441+
3442+ lt_compiler_flag="-o out/conftest2.$ac_objext"
3443+ # Insert the option either (1) after the last *FLAGS variable, or
3444+ # (2) before a word containing "conftest.", or (3) at the end.
3445+ # Note that $ac_compile itself does not contain backslashes and begins
3446+ # with a dollar sign (not a hyphen), so the echo should work correctly.
3447+ lt_compile=`echo "$ac_compile" | $SED \
3448+ -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
3449+ -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
3450+ -e 's:$: $lt_compiler_flag:'`
3451+ (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
3452+ (eval "$lt_compile" 2>out/conftest.err)
3453+ ac_status=$?
3454+ cat out/conftest.err >&AS_MESSAGE_LOG_FD
3455+ echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
3456+ if (exit $ac_status) && test -s out/conftest2.$ac_objext
3457+ then
3458+ # The compiler can only warn and ignore the option if not recognized
3459+ # So say no if there are warnings
3460+ if test ! -s out/conftest.err; then
3461+ _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
3462+ fi
3463+ fi
3464+ chmod u+w .
3465+ $rm conftest*
3466+ # SGI C++ compiler will create directory out/ii_files/ for
3467+ # template instantiation
3468+ test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
3469+ $rm out/* && rmdir out
3470+ cd ..
3471+ rmdir conftest
3472+ $rm conftest*
3473+])
3474+])# AC_LIBTOOL_PROG_CC_C_O
3475+
3476+
3477+# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
3478+# -----------------------------------------
3479+# Check to see if we can do hard links to lock some files if needed
3480+AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
3481+[AC_REQUIRE([_LT_AC_LOCK])dnl
3482+
3483+hard_links="nottested"
3484+if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
3485+ # do not overwrite the value of need_locks provided by the user
3486+ AC_MSG_CHECKING([if we can lock with hard links])
3487+ hard_links=yes
3488+ $rm conftest*
3489+ ln conftest.a conftest.b 2>/dev/null && hard_links=no
3490+ touch conftest.a
3491+ ln conftest.a conftest.b 2>&5 || hard_links=no
3492+ ln conftest.a conftest.b 2>/dev/null && hard_links=no
3493+ AC_MSG_RESULT([$hard_links])
3494+ if test "$hard_links" = no; then
3495+ AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
3496+ need_locks=warn
3497+ fi
3498+else
3499+ need_locks=no
3500+fi
3501+])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
3502+
3503+
3504+# AC_LIBTOOL_OBJDIR
3505+# -----------------
3506+AC_DEFUN([AC_LIBTOOL_OBJDIR],
3507+[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
3508+[rm -f .libs 2>/dev/null
3509+mkdir .libs 2>/dev/null
3510+if test -d .libs; then
3511+ lt_cv_objdir=.libs
3512+else
3513+ # MS-DOS does not allow filenames that begin with a dot.
3514+ lt_cv_objdir=_libs
3515+fi
3516+rmdir .libs 2>/dev/null])
3517+objdir=$lt_cv_objdir
3518+])# AC_LIBTOOL_OBJDIR
3519+
3520+
3521+# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
3522+# ----------------------------------------------
3523+# Check hardcoding attributes.
3524+AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
3525+[AC_MSG_CHECKING([how to hardcode library paths into programs])
3526+_LT_AC_TAGVAR(hardcode_action, $1)=
3527+if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
3528+ test -n "$_LT_AC_TAGVAR(runpath_var $1)" || \
3529+ test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)"="Xyes" ; then
3530+
3531+ # We can hardcode non-existant directories.
3532+ if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
3533+ # If the only mechanism to avoid hardcoding is shlibpath_var, we
3534+ # have to relink, otherwise we might link with an installed library
3535+ # when we should be linking with a yet-to-be-installed one
3536+ ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
3537+ test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
3538+ # Linking always hardcodes the temporary library directory.
3539+ _LT_AC_TAGVAR(hardcode_action, $1)=relink
3540+ else
3541+ # We can link without hardcoding, and we can hardcode nonexisting dirs.
3542+ _LT_AC_TAGVAR(hardcode_action, $1)=immediate
3543+ fi
3544+else
3545+ # We cannot hardcode anything, or else we can only hardcode existing
3546+ # directories.
3547+ _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
3548+fi
3549+AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
3550+
3551+if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
3552+ # Fast installation is not supported
3553+ enable_fast_install=no
3554+elif test "$shlibpath_overrides_runpath" = yes ||
3555+ test "$enable_shared" = no; then
3556+ # Fast installation is not necessary
3557+ enable_fast_install=needless
3558+fi
3559+])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
3560+
3561+
3562+# AC_LIBTOOL_SYS_LIB_STRIP
3563+# ------------------------
3564+AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
3565+[striplib=
3566+old_striplib=
3567+AC_MSG_CHECKING([whether stripping libraries is possible])
3568+if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
3569+ test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
3570+ test -z "$striplib" && striplib="$STRIP --strip-unneeded"
3571+ AC_MSG_RESULT([yes])
3572+else
3573+# FIXME - insert some real tests, host_os isn't really good enough
3574+ case $host_os in
3575+ darwin*)
3576+ if test -n "$STRIP" ; then
3577+ striplib="$STRIP -x"
3578+ AC_MSG_RESULT([yes])
3579+ else
3580+ AC_MSG_RESULT([no])
3581+fi
3582+ ;;
3583+ *)
3584+ AC_MSG_RESULT([no])
3585+ ;;
3586+ esac
3587+fi
3588+])# AC_LIBTOOL_SYS_LIB_STRIP
3589+
3590+
3591+# AC_LIBTOOL_SYS_DYNAMIC_LINKER
3592+# -----------------------------
3593+# PORTME Fill in your ld.so characteristics
3594+AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
3595+[AC_MSG_CHECKING([dynamic linker characteristics])
3596+library_names_spec=
3597+libname_spec='lib$name'
3598+soname_spec=
3599+shrext_cmds=".so"
3600+postinstall_cmds=
3601+postuninstall_cmds=
3602+finish_cmds=
3603+finish_eval=
3604+shlibpath_var=
3605+shlibpath_overrides_runpath=unknown
3606+version_type=none
3607+dynamic_linker="$host_os ld.so"
3608+sys_lib_dlsearch_path_spec="/lib /usr/lib"
3609+if test "$GCC" = yes; then
3610+ sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
3611+ if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
3612+ # if the path contains ";" then we assume it to be the separator
3613+ # otherwise default to the standard path separator (i.e. ":") - it is
3614+ # assumed that no part of a normal pathname contains ";" but that should
3615+ # okay in the real world where ";" in dirpaths is itself problematic.
3616+ sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
3617+ else
3618+ sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
3619+ fi
3620+else
3621+ sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
3622+fi
3623+need_lib_prefix=unknown
3624+hardcode_into_libs=no
3625+
3626+# when you set need_version to no, make sure it does not cause -set_version
3627+# flags to be left without arguments
3628+need_version=unknown
3629+
3630+case $host_os in
3631+aix3*)
3632+ version_type=linux
3633+ library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
3634+ shlibpath_var=LIBPATH
3635+
3636+ # AIX 3 has no versioning support, so we append a major version to the name.
3637+ soname_spec='${libname}${release}${shared_ext}$major'
3638+ ;;
3639+
3640+aix4* | aix5*)
3641+ version_type=linux
3642+ need_lib_prefix=no
3643+ need_version=no
3644+ hardcode_into_libs=yes
3645+ if test "$host_cpu" = ia64; then
3646+ # AIX 5 supports IA64
3647+ library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
3648+ shlibpath_var=LD_LIBRARY_PATH
3649+ else
3650+ # With GCC up to 2.95.x, collect2 would create an import file
3651+ # for dependence libraries. The import file would start with
3652+ # the line `#! .'. This would cause the generated library to
3653+ # depend on `.', always an invalid library. This was fixed in
3654+ # development snapshots of GCC prior to 3.0.
3655+ case $host_os in
3656+ aix4 | aix4.[[01]] | aix4.[[01]].*)
3657+ if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
3658+ echo ' yes '
3659+ echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
3660+ :
3661+ else
3662+ can_build_shared=no
3663+ fi
3664+ ;;
3665+ esac
3666+ # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
3667+ # soname into executable. Probably we can add versioning support to
3668+ # collect2, so additional links can be useful in future.
3669+ if test "$aix_use_runtimelinking" = yes; then
3670+ # If using run time linking (on AIX 4.2 or later) use lib<name>.so
3671+ # instead of lib<name>.a to let people know that these are not
3672+ # typical AIX shared libraries.
3673+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3674+ else
3675+ # We preserve .a as extension for shared libraries through AIX4.2
3676+ # and later when we are not doing run time linking.
3677+ library_names_spec='${libname}${release}.a $libname.a'
3678+ soname_spec='${libname}${release}${shared_ext}$major'
3679+ fi
3680+ shlibpath_var=LIBPATH
3681+ fi
3682+ ;;
3683+
3684+amigaos*)
3685+ library_names_spec='$libname.ixlibrary $libname.a'
3686+ # Create ${libname}_ixlibrary.a entries in /sys/libs.
3687+ 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'
3688+ ;;
3689+
3690+beos*)
3691+ library_names_spec='${libname}${shared_ext}'
3692+ dynamic_linker="$host_os ld.so"
3693+ shlibpath_var=LIBRARY_PATH
3694+ ;;
3695+
3696+bsdi4*)
3697+ version_type=linux
3698+ need_version=no
3699+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3700+ soname_spec='${libname}${release}${shared_ext}$major'
3701+ finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
3702+ shlibpath_var=LD_LIBRARY_PATH
3703+ sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
3704+ sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
3705+ # the default ld.so.conf also contains /usr/contrib/lib and
3706+ # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
3707+ # libtool to hard-code these into programs
3708+ ;;
3709+
3710+cygwin* | mingw* | pw32*)
3711+ version_type=windows
3712+ shrext_cmds=".dll"
3713+ need_version=no
3714+ need_lib_prefix=no
3715+
3716+ case $GCC,$host_os in
3717+ yes,cygwin* | yes,mingw* | yes,pw32*)
3718+ library_names_spec='$libname.dll.a'
3719+ # DLL is installed to $(libdir)/../bin by postinstall_cmds
3720+ postinstall_cmds='base_file=`basename \${file}`~
3721+ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
3722+ dldir=$destdir/`dirname \$dlpath`~
3723+ test -d \$dldir || mkdir -p \$dldir~
3724+ $install_prog $dir/$dlname \$dldir/$dlname'
3725+ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
3726+ dlpath=$dir/\$dldll~
3727+ $rm \$dlpath'
3728+ shlibpath_overrides_runpath=yes
3729+
3730+ case $host_os in
3731+ cygwin*)
3732+ # Cygwin DLLs use 'cyg' prefix rather than 'lib'
3733+ soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3734+ sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
3735+ ;;
3736+ mingw*)
3737+ # MinGW DLLs use traditional 'lib' prefix
3738+ soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3739+ sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
3740+ if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
3741+ # It is most probably a Windows format PATH printed by
3742+ # mingw gcc, but we are running on Cygwin. Gcc prints its search
3743+ # path with ; separators, and with drive letters. We can handle the
3744+ # drive letters (cygwin fileutils understands them), so leave them,
3745+ # especially as we might pass files found there to a mingw objdump,
3746+ # which wouldn't understand a cygwinified path. Ahh.
3747+ sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
3748+ else
3749+ sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
3750+ fi
3751+ ;;
3752+ pw32*)
3753+ # pw32 DLLs use 'pw' prefix rather than 'lib'
3754+ library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
3755+ ;;
3756+ esac
3757+ ;;
3758+
3759+ *)
3760+ library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
3761+ ;;
3762+ esac
3763+ dynamic_linker='Win32 ld.exe'
3764+ # FIXME: first we should search . and the directory the executable is in
3765+ shlibpath_var=PATH
3766+ ;;
3767+
3768+darwin* | rhapsody*)
3769+ dynamic_linker="$host_os dyld"
3770+ version_type=darwin
3771+ need_lib_prefix=no
3772+ need_version=no
3773+ library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
3774+ soname_spec='${libname}${release}${major}$shared_ext'
3775+ shlibpath_overrides_runpath=yes
3776+ shlibpath_var=DYLD_LIBRARY_PATH
3777+ shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
3778+ # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
3779+ if test "$GCC" = yes; then
3780+ sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
3781+ else
3782+ sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
3783+ fi
3784+ sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
3785+ ;;
3786+
3787+dgux*)
3788+ version_type=linux
3789+ need_lib_prefix=no
3790+ need_version=no
3791+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
3792+ soname_spec='${libname}${release}${shared_ext}$major'
3793+ shlibpath_var=LD_LIBRARY_PATH
3794+ ;;
3795+
3796+freebsd1*)
3797+ dynamic_linker=no
3798+ ;;
3799+
3800+kfreebsd*-gnu)
3801+ version_type=linux
3802+ need_lib_prefix=no
3803+ need_version=no
3804+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3805+ soname_spec='${libname}${release}${shared_ext}$major'
3806+ shlibpath_var=LD_LIBRARY_PATH
3807+ shlibpath_overrides_runpath=no
3808+ hardcode_into_libs=yes
3809+ dynamic_linker='GNU ld.so'
3810+ ;;
3811+
3812+freebsd*)
3813+ objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
3814+ version_type=freebsd-$objformat
3815+ case $version_type in
3816+ freebsd-elf*)
3817+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
3818+ need_version=no
3819+ need_lib_prefix=no
3820+ ;;
3821+ freebsd-*)
3822+ library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
3823+ need_version=yes
3824+ ;;
3825+ esac
3826+ shlibpath_var=LD_LIBRARY_PATH
3827+ case $host_os in
3828+ freebsd2*)
3829+ shlibpath_overrides_runpath=yes
3830+ ;;
3831+ freebsd3.[01]* | freebsdelf3.[01]*)
3832+ shlibpath_overrides_runpath=yes
3833+ hardcode_into_libs=yes
3834+ ;;
3835+ *) # from 3.2 on
3836+ shlibpath_overrides_runpath=no
3837+ hardcode_into_libs=yes
3838+ ;;
3839+ esac
3840+ ;;
3841+
3842+gnu*)
3843+ version_type=linux
3844+ need_lib_prefix=no
3845+ need_version=no
3846+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
3847+ soname_spec='${libname}${release}${shared_ext}$major'
3848+ shlibpath_var=LD_LIBRARY_PATH
3849+ hardcode_into_libs=yes
3850+ ;;
3851+
3852+hpux9* | hpux10* | hpux11*)
3853+ # Give a soname corresponding to the major version so that dld.sl refuses to
3854+ # link against other versions.
3855+ version_type=sunos
3856+ need_lib_prefix=no
3857+ need_version=no
3858+ case "$host_cpu" in
3859+ ia64*)
3860+ shrext_cmds='.so'
3861+ hardcode_into_libs=yes
3862+ dynamic_linker="$host_os dld.so"
3863+ shlibpath_var=LD_LIBRARY_PATH
3864+ shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
3865+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3866+ soname_spec='${libname}${release}${shared_ext}$major'
3867+ if test "X$HPUX_IA64_MODE" = X32; then
3868+ sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
3869+ else
3870+ sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
3871+ fi
3872+ sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
3873+ ;;
3874+ hppa*64*)
3875+ shrext_cmds='.sl'
3876+ hardcode_into_libs=yes
3877+ dynamic_linker="$host_os dld.sl"
3878+ shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
3879+ shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
3880+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3881+ soname_spec='${libname}${release}${shared_ext}$major'
3882+ sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
3883+ sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
3884+ ;;
3885+ *)
3886+ shrext_cmds='.sl'
3887+ dynamic_linker="$host_os dld.sl"
3888+ shlibpath_var=SHLIB_PATH
3889+ shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
3890+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3891+ soname_spec='${libname}${release}${shared_ext}$major'
3892+ ;;
3893+ esac
3894+ # HP-UX runs *really* slowly unless shared libraries are mode 555.
3895+ postinstall_cmds='chmod 555 $lib'
3896+ ;;
3897+
3898+irix5* | irix6* | nonstopux*)
3899+ case $host_os in
3900+ nonstopux*) version_type=nonstopux ;;
3901+ *)
3902+ if test "$lt_cv_prog_gnu_ld" = yes; then
3903+ version_type=linux
3904+ else
3905+ version_type=irix
3906+ fi ;;
3907+ esac
3908+ need_lib_prefix=no
3909+ need_version=no
3910+ soname_spec='${libname}${release}${shared_ext}$major'
3911+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
3912+ case $host_os in
3913+ irix5* | nonstopux*)
3914+ libsuff= shlibsuff=
3915+ ;;
3916+ *)
3917+ case $LD in # libtool.m4 will add one of these switches to LD
3918+ *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
3919+ libsuff= shlibsuff= libmagic=32-bit;;
3920+ *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
3921+ libsuff=32 shlibsuff=N32 libmagic=N32;;
3922+ *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
3923+ libsuff=64 shlibsuff=64 libmagic=64-bit;;
3924+ *) libsuff= shlibsuff= libmagic=never-match;;
3925+ esac
3926+ ;;
3927+ esac
3928+ shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
3929+ shlibpath_overrides_runpath=no
3930+ sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
3931+ sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
3932+ hardcode_into_libs=yes
3933+ ;;
3934+
3935+# No shared lib support for Linux oldld, aout, or coff.
3936+linux*oldld* | linux*aout* | linux*coff*)
3937+ dynamic_linker=no
3938+ ;;
3939+
3940+# This must be Linux ELF.
3941+linux*)
3942+ version_type=linux
3943+ need_lib_prefix=no
3944+ need_version=no
3945+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3946+ soname_spec='${libname}${release}${shared_ext}$major'
3947+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
3948+ shlibpath_var=LD_LIBRARY_PATH
3949+ shlibpath_overrides_runpath=no
3950+ # This implies no fast_install, which is unacceptable.
3951+ # Some rework will be needed to allow for fast_install
3952+ # before this can be enabled.
3953+ hardcode_into_libs=yes
3954+
3955+ # Append ld.so.conf contents to the search path
3956+ if test -f /etc/ld.so.conf; then
3957+ lt_ld_extra=`$SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.conf | tr '\n' ' '`
3958+ sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
3959+ fi
3960+
3961+ # We used to test for /lib/ld.so.1 and disable shared libraries on
3962+ # powerpc, because MkLinux only supported shared libraries with the
3963+ # GNU dynamic linker. Since this was broken with cross compilers,
3964+ # most powerpc-linux boxes support dynamic linking these days and
3965+ # people can always --disable-shared, the test was removed, and we
3966+ # assume the GNU/Linux dynamic linker is in use.
3967+ dynamic_linker='GNU/Linux ld.so'
3968+ ;;
3969+
3970+netbsdelf*-gnu)
3971+ version_type=linux
3972+ need_lib_prefix=no
3973+ need_version=no
3974+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3975+ soname_spec='${libname}${release}${shared_ext}$major'
3976+ shlibpath_var=LD_LIBRARY_PATH
3977+ shlibpath_overrides_runpath=no
3978+ hardcode_into_libs=yes
3979+ dynamic_linker='NetBSD ld.elf_so'
3980+ ;;
3981+
3982+knetbsd*-gnu)
3983+ version_type=linux
3984+ need_lib_prefix=no
3985+ need_version=no
3986+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3987+ soname_spec='${libname}${release}${shared_ext}$major'
3988+ shlibpath_var=LD_LIBRARY_PATH
3989+ shlibpath_overrides_runpath=no
3990+ hardcode_into_libs=yes
3991+ dynamic_linker='GNU ld.so'
3992+ ;;
3993+
3994+netbsd*)
3995+ version_type=sunos
3996+ need_lib_prefix=no
3997+ need_version=no
3998+ if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3999+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4000+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4001+ dynamic_linker='NetBSD (a.out) ld.so'
4002+ else
4003+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
4004+ soname_spec='${libname}${release}${shared_ext}$major'
4005+ dynamic_linker='NetBSD ld.elf_so'
4006+ fi
4007+ shlibpath_var=LD_LIBRARY_PATH
4008+ shlibpath_overrides_runpath=yes
4009+ hardcode_into_libs=yes
4010+ ;;
4011+
4012+newsos6)
4013+ version_type=linux
4014+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4015+ shlibpath_var=LD_LIBRARY_PATH
4016+ shlibpath_overrides_runpath=yes
4017+ ;;
4018+
4019+nto-qnx*)
4020+ version_type=linux
4021+ need_lib_prefix=no
4022+ need_version=no
4023+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4024+ soname_spec='${libname}${release}${shared_ext}$major'
4025+ shlibpath_var=LD_LIBRARY_PATH
4026+ shlibpath_overrides_runpath=yes
4027+ ;;
4028+
4029+openbsd*)
4030+ version_type=sunos
4031+ need_lib_prefix=no
4032+ need_version=yes
4033+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4034+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4035+ shlibpath_var=LD_LIBRARY_PATH
4036+ if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4037+ case $host_os in
4038+ openbsd2.[[89]] | openbsd2.[[89]].*)
4039+ shlibpath_overrides_runpath=no
4040+ ;;
4041+ *)
4042+ shlibpath_overrides_runpath=yes
4043+ ;;
4044+ esac
4045+ else
4046+ shlibpath_overrides_runpath=yes
4047+ fi
4048+ ;;
4049+
4050+os2*)
4051+ libname_spec='$name'
4052+ shrext_cmds=".dll"
4053+ need_lib_prefix=no
4054+ library_names_spec='$libname${shared_ext} $libname.a'
4055+ dynamic_linker='OS/2 ld.exe'
4056+ shlibpath_var=LIBPATH
4057+ ;;
4058+
4059+osf3* | osf4* | osf5*)
4060+ version_type=osf
4061+ need_lib_prefix=no
4062+ need_version=no
4063+ soname_spec='${libname}${release}${shared_ext}$major'
4064+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4065+ shlibpath_var=LD_LIBRARY_PATH
4066+ sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
4067+ sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
4068+ ;;
4069+
4070+sco3.2v5*)
4071+ version_type=osf
4072+ soname_spec='${libname}${release}${shared_ext}$major'
4073+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4074+ shlibpath_var=LD_LIBRARY_PATH
4075+ ;;
4076+
4077+solaris*)
4078+ version_type=linux
4079+ need_lib_prefix=no
4080+ need_version=no
4081+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4082+ soname_spec='${libname}${release}${shared_ext}$major'
4083+ shlibpath_var=LD_LIBRARY_PATH
4084+ shlibpath_overrides_runpath=yes
4085+ hardcode_into_libs=yes
4086+ # ldd complains unless libraries are executable
4087+ postinstall_cmds='chmod +x $lib'
4088+ ;;
4089+
4090+sunos4*)
4091+ version_type=sunos
4092+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4093+ finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
4094+ shlibpath_var=LD_LIBRARY_PATH
4095+ shlibpath_overrides_runpath=yes
4096+ if test "$with_gnu_ld" = yes; then
4097+ need_lib_prefix=no
4098+ fi
4099+ need_version=yes
4100+ ;;
4101+
4102+sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4103+ version_type=linux
4104+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4105+ soname_spec='${libname}${release}${shared_ext}$major'
4106+ shlibpath_var=LD_LIBRARY_PATH
4107+ case $host_vendor in
4108+ sni)
4109+ shlibpath_overrides_runpath=no
4110+ need_lib_prefix=no
4111+ export_dynamic_flag_spec='${wl}-Blargedynsym'
4112+ runpath_var=LD_RUN_PATH
4113+ ;;
4114+ siemens)
4115+ need_lib_prefix=no
4116+ ;;
4117+ motorola)
4118+ need_lib_prefix=no
4119+ need_version=no
4120+ shlibpath_overrides_runpath=no
4121+ sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
4122+ ;;
4123+ esac
4124+ ;;
4125+
4126+sysv4*MP*)
4127+ if test -d /usr/nec ;then
4128+ version_type=linux
4129+ library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
4130+ soname_spec='$libname${shared_ext}.$major'
4131+ shlibpath_var=LD_LIBRARY_PATH
4132+ fi
4133+ ;;
4134+
4135+uts4*)
4136+ version_type=linux
4137+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4138+ soname_spec='${libname}${release}${shared_ext}$major'
4139+ shlibpath_var=LD_LIBRARY_PATH
4140+ ;;
4141+
4142+*)
4143+ dynamic_linker=no
4144+ ;;
4145+esac
4146+AC_MSG_RESULT([$dynamic_linker])
4147+test "$dynamic_linker" = no && can_build_shared=no
4148+])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
4149+
4150+
4151+# _LT_AC_TAGCONFIG
4152+# ----------------
4153+AC_DEFUN([_LT_AC_TAGCONFIG],
4154+[AC_ARG_WITH([tags],
4155+ [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
4156+ [include additional configurations @<:@automatic@:>@])],
4157+ [tagnames="$withval"])
4158+
4159+if test -f "$ltmain" && test -n "$tagnames"; then
4160+ if test ! -f "${ofile}"; then
4161+ AC_MSG_WARN([output file `$ofile' does not exist])
4162+ fi
4163+
4164+ if test -z "$LTCC"; then
4165+ eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
4166+ if test -z "$LTCC"; then
4167+ AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
4168+ else
4169+ AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
4170+ fi
4171+ fi
4172+
4173+ # Extract list of available tagged configurations in $ofile.
4174+ # Note that this assumes the entire list is on one line.
4175+ available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
4176+
4177+ lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4178+ for tagname in $tagnames; do
4179+ IFS="$lt_save_ifs"
4180+ # Check whether tagname contains only valid characters
4181+ case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
4182+ "") ;;
4183+ *) AC_MSG_ERROR([invalid tag name: $tagname])
4184+ ;;
4185+ esac
4186+
4187+ if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
4188+ then
4189+ AC_MSG_ERROR([tag name \"$tagname\" already exists])
4190+ fi
4191+
4192+ # Update the list of available tags.
4193+ if test -n "$tagname"; then
4194+ echo appending configuration tag \"$tagname\" to $ofile
4195+
4196+ case $tagname in
4197+ CXX)
4198+ if test -n "$CXX" && test "X$CXX" != "Xno"; then
4199+ AC_LIBTOOL_LANG_CXX_CONFIG
4200+ else
4201+ tagname=""
4202+ fi
4203+ ;;
4204+
4205+ F77)
4206+ if test -n "$F77" && test "X$F77" != "Xno"; then
4207+ AC_LIBTOOL_LANG_F77_CONFIG
4208+ else
4209+ tagname=""
4210+ fi
4211+ ;;
4212+
4213+ GCJ)
4214+ if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
4215+ AC_LIBTOOL_LANG_GCJ_CONFIG
4216+ else
4217+ tagname=""
4218+ fi
4219+ ;;
4220+
4221+ RC)
4222+ AC_LIBTOOL_LANG_RC_CONFIG
4223+ ;;
4224+
4225+ *)
4226+ AC_MSG_ERROR([Unsupported tag name: $tagname])
4227+ ;;
4228+ esac
4229+
4230+ # Append the new tag name to the list of available tags.
4231+ if test -n "$tagname" ; then
4232+ available_tags="$available_tags $tagname"
4233+ fi
4234+ fi
4235+ done
4236+ IFS="$lt_save_ifs"
4237+
4238+ # Now substitute the updated list of available tags.
4239+ if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
4240+ mv "${ofile}T" "$ofile"
4241+ chmod +x "$ofile"
4242+ else
4243+ rm -f "${ofile}T"
4244+ AC_MSG_ERROR([unable to update list of available tagged configurations.])
4245+ fi
4246+fi
4247+])# _LT_AC_TAGCONFIG
4248+
4249+
4250+# AC_LIBTOOL_DLOPEN
4251+# -----------------
4252+# enable checks for dlopen support
4253+AC_DEFUN([AC_LIBTOOL_DLOPEN],
4254+ [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
4255+])# AC_LIBTOOL_DLOPEN
4256+
4257+
4258+# AC_LIBTOOL_WIN32_DLL
4259+# --------------------
4260+# declare package support for building win32 dll's
4261+AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
4262+[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
4263+])# AC_LIBTOOL_WIN32_DLL
4264+
4265+
4266+# AC_ENABLE_SHARED([DEFAULT])
4267+# ---------------------------
4268+# implement the --enable-shared flag
4269+# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
4270+AC_DEFUN([AC_ENABLE_SHARED],
4271+[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
4272+AC_ARG_ENABLE([shared],
4273+ [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
4274+ [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
4275+ [p=${PACKAGE-default}
4276+ case $enableval in
4277+ yes) enable_shared=yes ;;
4278+ no) enable_shared=no ;;
4279+ *)
4280+ enable_shared=no
4281+ # Look at the argument we got. We use all the common list separators.
4282+ lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4283+ for pkg in $enableval; do
4284+ IFS="$lt_save_ifs"
4285+ if test "X$pkg" = "X$p"; then
4286+ enable_shared=yes
4287+ fi
4288+ done
4289+ IFS="$lt_save_ifs"
4290+ ;;
4291+ esac],
4292+ [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
4293+])# AC_ENABLE_SHARED
4294+
4295+
4296+# AC_DISABLE_SHARED
4297+# -----------------
4298+#- set the default shared flag to --disable-shared
4299+AC_DEFUN([AC_DISABLE_SHARED],
4300+[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
4301+AC_ENABLE_SHARED(no)
4302+])# AC_DISABLE_SHARED
4303+
4304+
4305+# AC_ENABLE_STATIC([DEFAULT])
4306+# ---------------------------
4307+# implement the --enable-static flag
4308+# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
4309+AC_DEFUN([AC_ENABLE_STATIC],
4310+[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
4311+AC_ARG_ENABLE([static],
4312+ [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
4313+ [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
4314+ [p=${PACKAGE-default}
4315+ case $enableval in
4316+ yes) enable_static=yes ;;
4317+ no) enable_static=no ;;
4318+ *)
4319+ enable_static=no
4320+ # Look at the argument we got. We use all the common list separators.
4321+ lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4322+ for pkg in $enableval; do
4323+ IFS="$lt_save_ifs"
4324+ if test "X$pkg" = "X$p"; then
4325+ enable_static=yes
4326+ fi
4327+ done
4328+ IFS="$lt_save_ifs"
4329+ ;;
4330+ esac],
4331+ [enable_static=]AC_ENABLE_STATIC_DEFAULT)
4332+])# AC_ENABLE_STATIC
4333+
4334+
4335+# AC_DISABLE_STATIC
4336+# -----------------
4337+# set the default static flag to --disable-static
4338+AC_DEFUN([AC_DISABLE_STATIC],
4339+[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
4340+AC_ENABLE_STATIC(no)
4341+])# AC_DISABLE_STATIC
4342+
4343+
4344+# AC_ENABLE_FAST_INSTALL([DEFAULT])
4345+# ---------------------------------
4346+# implement the --enable-fast-install flag
4347+# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
4348+AC_DEFUN([AC_ENABLE_FAST_INSTALL],
4349+[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
4350+AC_ARG_ENABLE([fast-install],
4351+ [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
4352+ [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
4353+ [p=${PACKAGE-default}
4354+ case $enableval in
4355+ yes) enable_fast_install=yes ;;
4356+ no) enable_fast_install=no ;;
4357+ *)
4358+ enable_fast_install=no
4359+ # Look at the argument we got. We use all the common list separators.
4360+ lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4361+ for pkg in $enableval; do
4362+ IFS="$lt_save_ifs"
4363+ if test "X$pkg" = "X$p"; then
4364+ enable_fast_install=yes
4365+ fi
4366+ done
4367+ IFS="$lt_save_ifs"
4368+ ;;
4369+ esac],
4370+ [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
4371+])# AC_ENABLE_FAST_INSTALL
4372+
4373+
4374+# AC_DISABLE_FAST_INSTALL
4375+# -----------------------
4376+# set the default to --disable-fast-install
4377+AC_DEFUN([AC_DISABLE_FAST_INSTALL],
4378+[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
4379+AC_ENABLE_FAST_INSTALL(no)
4380+])# AC_DISABLE_FAST_INSTALL
4381+
4382+
4383+# AC_LIBTOOL_PICMODE([MODE])
4384+# --------------------------
4385+# implement the --with-pic flag
4386+# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
4387+AC_DEFUN([AC_LIBTOOL_PICMODE],
4388+[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
4389+pic_mode=ifelse($#,1,$1,default)
4390+])# AC_LIBTOOL_PICMODE
4391+
4392+
4393+# AC_PROG_EGREP
4394+# -------------
4395+# This is predefined starting with Autoconf 2.54, so this conditional
4396+# definition can be removed once we require Autoconf 2.54 or later.
4397+m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
4398+[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
4399+ [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4400+ then ac_cv_prog_egrep='grep -E'
4401+ else ac_cv_prog_egrep='egrep'
4402+ fi])
4403+ EGREP=$ac_cv_prog_egrep
4404+ AC_SUBST([EGREP])
4405+])])
4406+
4407+
4408+# AC_PATH_TOOL_PREFIX
4409+# -------------------
4410+# find a file program which can recognise shared library
4411+AC_DEFUN([AC_PATH_TOOL_PREFIX],
4412+[AC_REQUIRE([AC_PROG_EGREP])dnl
4413+AC_MSG_CHECKING([for $1])
4414+AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
4415+[case $MAGIC_CMD in
4416+[[\\/*] | ?:[\\/]*])
4417+ lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4418+ ;;
4419+*)
4420+ lt_save_MAGIC_CMD="$MAGIC_CMD"
4421+ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4422+dnl $ac_dummy forces splitting on constant user-supplied paths.
4423+dnl POSIX.2 word splitting is done only on the output of word expansions,
4424+dnl not every word. This closes a longstanding sh security hole.
4425+ ac_dummy="ifelse([$2], , $PATH, [$2])"
4426+ for ac_dir in $ac_dummy; do
4427+ IFS="$lt_save_ifs"
4428+ test -z "$ac_dir" && ac_dir=.
4429+ if test -f $ac_dir/$1; then
4430+ lt_cv_path_MAGIC_CMD="$ac_dir/$1"
4431+ if test -n "$file_magic_test_file"; then
4432+ case $deplibs_check_method in
4433+ "file_magic "*)
4434+ file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4435+ MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4436+ if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4437+ $EGREP "$file_magic_regex" > /dev/null; then
4438+ :
4439+ else
4440+ cat <<EOF 1>&2
4441+
4442+*** Warning: the command libtool uses to detect shared libraries,
4443+*** $file_magic_cmd, produces output that libtool cannot recognize.
4444+*** The result is that libtool may fail to recognize shared libraries
4445+*** as such. This will affect the creation of libtool libraries that
4446+*** depend on shared libraries, but programs linked with such libtool
4447+*** libraries will work regardless of this problem. Nevertheless, you
4448+*** may want to report the problem to your system manager and/or to
4449+*** bug-libtool@gnu.org
4450+
4451+EOF
4452+ fi ;;
4453+ esac
4454+ fi
4455+ break
4456+ fi
4457+ done
4458+ IFS="$lt_save_ifs"
4459+ MAGIC_CMD="$lt_save_MAGIC_CMD"
4460+ ;;
4461+esac])
4462+MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4463+if test -n "$MAGIC_CMD"; then
4464+ AC_MSG_RESULT($MAGIC_CMD)
4465+else
4466+ AC_MSG_RESULT(no)
4467+fi
4468+])# AC_PATH_TOOL_PREFIX
4469+
4470+
4471+# AC_PATH_MAGIC
4472+# -------------
4473+# find a file program which can recognise a shared library
4474+AC_DEFUN([AC_PATH_MAGIC],
4475+[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
4476+if test -z "$lt_cv_path_MAGIC_CMD"; then
4477+ if test -n "$ac_tool_prefix"; then
4478+ AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
4479+ else
4480+ MAGIC_CMD=:
4481+ fi
4482+fi
4483+])# AC_PATH_MAGIC
4484+
4485+
4486+# AC_PROG_LD
4487+# ----------
4488+# find the pathname to the GNU or non-GNU linker
4489+AC_DEFUN([AC_PROG_LD],
4490+[AC_ARG_WITH([gnu-ld],
4491+ [AC_HELP_STRING([--with-gnu-ld],
4492+ [assume the C compiler uses GNU ld @<:@default=no@:>@])],
4493+ [test "$withval" = no || with_gnu_ld=yes],
4494+ [with_gnu_ld=no])
4495+AC_REQUIRE([LT_AC_PROG_SED])dnl
4496+AC_REQUIRE([AC_PROG_CC])dnl
4497+AC_REQUIRE([AC_CANONICAL_HOST])dnl
4498+AC_REQUIRE([AC_CANONICAL_BUILD])dnl
4499+ac_prog=ld
4500+if test "$GCC" = yes; then
4501+ # Check if gcc -print-prog-name=ld gives a path.
4502+ AC_MSG_CHECKING([for ld used by $CC])
4503+ case $host in
4504+ *-*-mingw*)
4505+ # gcc leaves a trailing carriage return which upsets mingw
4506+ ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4507+ *)
4508+ ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4509+ esac
4510+ case $ac_prog in
4511+ # Accept absolute paths.
4512+ [[\\/]]* | ?:[[\\/]]*)
4513+ re_direlt='/[[^/]][[^/]]*/\.\./'
4514+ # Canonicalize the pathname of ld
4515+ ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4516+ while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4517+ ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4518+ done
4519+ test -z "$LD" && LD="$ac_prog"
4520+ ;;
4521+ "")
4522+ # If it fails, then pretend we aren't using GCC.
4523+ ac_prog=ld
4524+ ;;
4525+ *)
4526+ # If it is relative, then search for the first ld in PATH.
4527+ with_gnu_ld=unknown
4528+ ;;
4529+ esac
4530+elif test "$with_gnu_ld" = yes; then
4531+ AC_MSG_CHECKING([for GNU ld])
4532+else
4533+ AC_MSG_CHECKING([for non-GNU ld])
4534+fi
4535+AC_CACHE_VAL(lt_cv_path_LD,
4536+[if test -z "$LD"; then
4537+ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4538+ for ac_dir in $PATH; do
4539+ IFS="$lt_save_ifs"
4540+ test -z "$ac_dir" && ac_dir=.
4541+ if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4542+ lt_cv_path_LD="$ac_dir/$ac_prog"
4543+ # Check to see if the program is GNU ld. I'd rather use --version,
4544+ # but apparently some GNU ld's only accept -v.
4545+ # Break only if it was the GNU/non-GNU ld that we prefer.
4546+ case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4547+ *GNU* | *'with BFD'*)
4548+ test "$with_gnu_ld" != no && break
4549+ ;;
4550+ *)
4551+ test "$with_gnu_ld" != yes && break
4552+ ;;
4553+ esac
4554+ fi
4555+ done
4556+ IFS="$lt_save_ifs"
4557+else
4558+ lt_cv_path_LD="$LD" # Let the user override the test with a path.
4559+fi])
4560+LD="$lt_cv_path_LD"
4561+if test -n "$LD"; then
4562+ AC_MSG_RESULT($LD)
4563+else
4564+ AC_MSG_RESULT(no)
4565+fi
4566+test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
4567+AC_PROG_LD_GNU
4568+])# AC_PROG_LD
4569+
4570+
4571+# AC_PROG_LD_GNU
4572+# --------------
4573+AC_DEFUN([AC_PROG_LD_GNU],
4574+[AC_REQUIRE([AC_PROG_EGREP])dnl
4575+AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
4576+[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
4577+case `$LD -v 2>&1 </dev/null` in
4578+*GNU* | *'with BFD'*)
4579+ lt_cv_prog_gnu_ld=yes
4580+ ;;
4581+*)
4582+ lt_cv_prog_gnu_ld=no
4583+ ;;
4584+esac])
4585+with_gnu_ld=$lt_cv_prog_gnu_ld
4586+])# AC_PROG_LD_GNU
4587+
4588+
4589+# AC_PROG_LD_RELOAD_FLAG
4590+# ----------------------
4591+# find reload flag for linker
4592+# -- PORTME Some linkers may need a different reload flag.
4593+AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
4594+[AC_CACHE_CHECK([for $LD option to reload object files],
4595+ lt_cv_ld_reload_flag,
4596+ [lt_cv_ld_reload_flag='-r'])
4597+reload_flag=$lt_cv_ld_reload_flag
4598+case $reload_flag in
4599+"" | " "*) ;;
4600+*) reload_flag=" $reload_flag" ;;
4601+esac
4602+reload_cmds='$LD$reload_flag -o $output$reload_objs'
4603+])# AC_PROG_LD_RELOAD_FLAG
4604+
4605+
4606+# AC_DEPLIBS_CHECK_METHOD
4607+# -----------------------
4608+# how to check for library dependencies
4609+# -- PORTME fill in with the dynamic library characteristics
4610+AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
4611+[AC_CACHE_CHECK([how to recognise dependent libraries],
4612+lt_cv_deplibs_check_method,
4613+[lt_cv_file_magic_cmd='$MAGIC_CMD'
4614+lt_cv_file_magic_test_file=
4615+lt_cv_deplibs_check_method='unknown'
4616+# Need to set the preceding variable on all platforms that support
4617+# interlibrary dependencies.
4618+# 'none' -- dependencies not supported.
4619+# `unknown' -- same as none, but documents that we really don't know.
4620+# 'pass_all' -- all dependencies passed with no checks.
4621+# 'test_compile' -- check by making test program.
4622+# 'file_magic [[regex]]' -- check by looking for files in library path
4623+# which responds to the $file_magic_cmd with a given extended regex.
4624+# If you have `file' or equivalent on your system and you're not sure
4625+# whether `pass_all' will *always* work, you probably want this one.
4626+
4627+case $host_os in
4628+aix4* | aix5*)
4629+ lt_cv_deplibs_check_method=pass_all
4630+ ;;
4631+
4632+beos*)
4633+ lt_cv_deplibs_check_method=pass_all
4634+ ;;
4635+
4636+bsdi4*)
4637+ lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
4638+ lt_cv_file_magic_cmd='/usr/bin/file -L'
4639+ lt_cv_file_magic_test_file=/shlib/libc.so
4640+ ;;
4641+
4642+cygwin*)
4643+ # func_win32_libid is a shell function defined in ltmain.sh
4644+ lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4645+ lt_cv_file_magic_cmd='func_win32_libid'
4646+ ;;
4647+
4648+mingw* | pw32*)
4649+ # Base MSYS/MinGW do not provide the 'file' command needed by
4650+ # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4651+ lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4652+ lt_cv_file_magic_cmd='$OBJDUMP -f'
4653+ ;;
4654+
4655+darwin* | rhapsody*)
4656+ lt_cv_deplibs_check_method=pass_all
4657+ ;;
4658+
4659+freebsd* | kfreebsd*-gnu)
4660+ if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4661+ case $host_cpu in
4662+ i*86 )
4663+ # Not sure whether the presence of OpenBSD here was a mistake.
4664+ # Let's accept both of them until this is cleared up.
4665+ lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
4666+ lt_cv_file_magic_cmd=/usr/bin/file
4667+ lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4668+ ;;
4669+ esac
4670+ else
4671+ lt_cv_deplibs_check_method=pass_all
4672+ fi
4673+ ;;
4674+
4675+gnu*)
4676+ lt_cv_deplibs_check_method=pass_all
4677+ ;;
4678+
4679+hpux10.20* | hpux11*)
4680+ lt_cv_file_magic_cmd=/usr/bin/file
4681+ case "$host_cpu" in
4682+ ia64*)
4683+ lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
4684+ lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4685+ ;;
4686+ hppa*64*)
4687+ [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]']
4688+ lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4689+ ;;
4690+ *)
4691+ lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
4692+ lt_cv_file_magic_test_file=/usr/lib/libc.sl
4693+ ;;
4694+ esac
4695+ ;;
4696+
4697+irix5* | irix6* | nonstopux*)
4698+ case $LD in
4699+ *-32|*"-32 ") libmagic=32-bit;;
4700+ *-n32|*"-n32 ") libmagic=N32;;
4701+ *-64|*"-64 ") libmagic=64-bit;;
4702+ *) libmagic=never-match;;
4703+ esac
4704+ lt_cv_deplibs_check_method=pass_all
4705+ ;;
4706+
4707+# This must be Linux ELF.
4708+linux*)
4709+ lt_cv_deplibs_check_method=pass_all
4710+ ;;
4711+
4712+netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
4713+ if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4714+ lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
4715+ else
4716+ lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
4717+ fi
4718+ ;;
4719+
4720+newos6*)
4721+ lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
4722+ lt_cv_file_magic_cmd=/usr/bin/file
4723+ lt_cv_file_magic_test_file=/usr/lib/libnls.so
4724+ ;;
4725+
4726+nto-qnx*)
4727+ lt_cv_deplibs_check_method=unknown
4728+ ;;
4729+
4730+openbsd*)
4731+ lt_cv_file_magic_cmd=/usr/bin/file
4732+ lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4733+ if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4734+ lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object'
4735+ else
4736+ lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4737+ fi
4738+ ;;
4739+
4740+osf3* | osf4* | osf5*)
4741+ lt_cv_deplibs_check_method=pass_all
4742+ ;;
4743+
4744+sco3.2v5*)
4745+ lt_cv_deplibs_check_method=pass_all
4746+ ;;
4747+
4748+solaris*)
4749+ lt_cv_deplibs_check_method=pass_all
4750+ ;;
4751+
4752+sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4753+ case $host_vendor in
4754+ motorola)
4755+ 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]]'
4756+ lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4757+ ;;
4758+ ncr)
4759+ lt_cv_deplibs_check_method=pass_all
4760+ ;;
4761+ sequent)
4762+ lt_cv_file_magic_cmd='/bin/file'
4763+ lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
4764+ ;;
4765+ sni)
4766+ lt_cv_file_magic_cmd='/bin/file'
4767+ lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
4768+ lt_cv_file_magic_test_file=/lib/libc.so
4769+ ;;
4770+ siemens)
4771+ lt_cv_deplibs_check_method=pass_all
4772+ ;;
4773+ esac
4774+ ;;
4775+
4776+sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
4777+ lt_cv_deplibs_check_method=pass_all
4778+ ;;
4779+esac
4780+])
4781+file_magic_cmd=$lt_cv_file_magic_cmd
4782+deplibs_check_method=$lt_cv_deplibs_check_method
4783+test -z "$deplibs_check_method" && deplibs_check_method=unknown
4784+])# AC_DEPLIBS_CHECK_METHOD
4785+
4786+
4787+# AC_PROG_NM
4788+# ----------
4789+# find the pathname to a BSD-compatible name lister
4790+AC_DEFUN([AC_PROG_NM],
4791+[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
4792+[if test -n "$NM"; then
4793+ # Let the user override the test.
4794+ lt_cv_path_NM="$NM"
4795+else
4796+ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4797+ for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4798+ IFS="$lt_save_ifs"
4799+ test -z "$ac_dir" && ac_dir=.
4800+ tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4801+ if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4802+ # Check to see if the nm accepts a BSD-compat flag.
4803+ # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4804+ # nm: unknown option "B" ignored
4805+ # Tru64's nm complains that /dev/null is an invalid object file
4806+ case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4807+ */dev/null* | *'Invalid file or object type'*)
4808+ lt_cv_path_NM="$tmp_nm -B"
4809+ break
4810+ ;;
4811+ *)
4812+ case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4813+ */dev/null*)
4814+ lt_cv_path_NM="$tmp_nm -p"
4815+ break
4816+ ;;
4817+ *)
4818+ lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4819+ continue # so that we can try to find one that supports BSD flags
4820+ ;;
4821+ esac
4822+ esac
4823+ fi
4824+ done
4825+ IFS="$lt_save_ifs"
4826+ test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4827+fi])
4828+NM="$lt_cv_path_NM"
4829+])# AC_PROG_NM
4830+
4831+
4832+# AC_CHECK_LIBM
4833+# -------------
4834+# check for math library
4835+AC_DEFUN([AC_CHECK_LIBM],
4836+[AC_REQUIRE([AC_CANONICAL_HOST])dnl
4837+LIBM=
4838+case $host in
4839+*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
4840+ # These system don't have libm, or don't need it
4841+ ;;
4842+*-ncr-sysv4.3*)
4843+ AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
4844+ AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
4845+ ;;
4846+*)
4847+ AC_CHECK_LIB(m, cos, LIBM="-lm")
4848+ ;;
4849+esac
4850+])# AC_CHECK_LIBM
4851+
4852+
4853+# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
4854+# -----------------------------------
4855+# sets LIBLTDL to the link flags for the libltdl convenience library and
4856+# LTDLINCL to the include flags for the libltdl header and adds
4857+# --enable-ltdl-convenience to the configure arguments. Note that LIBLTDL
4858+# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
4859+# DIRECTORY is not provided, it is assumed to be `libltdl'. LIBLTDL will
4860+# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
4861+# '${top_srcdir}/' (note the single quotes!). If your package is not
4862+# flat and you're not using automake, define top_builddir and
4863+# top_srcdir appropriately in the Makefiles.
4864+AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
4865+[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
4866+ case $enable_ltdl_convenience in
4867+ no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
4868+ "") enable_ltdl_convenience=yes
4869+ ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
4870+ esac
4871+ LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
4872+ LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
4873+ # For backwards non-gettext consistent compatibility...
4874+ INCLTDL="$LTDLINCL"
4875+])# AC_LIBLTDL_CONVENIENCE
4876+
4877+
4878+# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
4879+# -----------------------------------
4880+# sets LIBLTDL to the link flags for the libltdl installable library and
4881+# LTDLINCL to the include flags for the libltdl header and adds
4882+# --enable-ltdl-install to the configure arguments. Note that LIBLTDL
4883+# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
4884+# DIRECTORY is not provided and an installed libltdl is not found, it is
4885+# assumed to be `libltdl'. LIBLTDL will be prefixed with '${top_builddir}/'
4886+# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
4887+# quotes!). If your package is not flat and you're not using automake,
4888+# define top_builddir and top_srcdir appropriately in the Makefiles.
4889+# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
4890+AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
4891+[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
4892+ AC_CHECK_LIB(ltdl, lt_dlinit,
4893+ [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
4894+ [if test x"$enable_ltdl_install" = xno; then
4895+ AC_MSG_WARN([libltdl not installed, but installation disabled])
4896+ else
4897+ enable_ltdl_install=yes
4898+ fi
4899+ ])
4900+ if test x"$enable_ltdl_install" = x"yes"; then
4901+ ac_configure_args="$ac_configure_args --enable-ltdl-install"
4902+ LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
4903+ LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
4904+ else
4905+ ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
4906+ LIBLTDL="-lltdl"
4907+ LTDLINCL=
4908+ fi
4909+ # For backwards non-gettext consistent compatibility...
4910+ INCLTDL="$LTDLINCL"
4911+])# AC_LIBLTDL_INSTALLABLE
4912+
4913+
4914+# AC_LIBTOOL_CXX
4915+# --------------
4916+# enable support for C++ libraries
4917+AC_DEFUN([AC_LIBTOOL_CXX],
4918+[AC_REQUIRE([_LT_AC_LANG_CXX])
4919+])# AC_LIBTOOL_CXX
4920+
4921+
4922+# _LT_AC_LANG_CXX
4923+# ---------------
4924+AC_DEFUN([_LT_AC_LANG_CXX],
4925+[AC_REQUIRE([AC_PROG_CXX])
4926+AC_REQUIRE([AC_PROG_CXXCPP])
4927+_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
4928+])# _LT_AC_LANG_CXX
4929+
4930+
4931+# AC_LIBTOOL_F77
4932+# --------------
4933+# enable support for Fortran 77 libraries
4934+AC_DEFUN([AC_LIBTOOL_F77],
4935+[AC_REQUIRE([_LT_AC_LANG_F77])
4936+])# AC_LIBTOOL_F77
4937+
4938+
4939+# _LT_AC_LANG_F77
4940+# ---------------
4941+AC_DEFUN([_LT_AC_LANG_F77],
4942+[AC_REQUIRE([AC_PROG_F77])
4943+_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
4944+])# _LT_AC_LANG_F77
4945+
4946+
4947+# AC_LIBTOOL_GCJ
4948+# --------------
4949+# enable support for GCJ libraries
4950+AC_DEFUN([AC_LIBTOOL_GCJ],
4951+[AC_REQUIRE([_LT_AC_LANG_GCJ])
4952+])# AC_LIBTOOL_GCJ
4953+
4954+
4955+# _LT_AC_LANG_GCJ
4956+# ---------------
4957+AC_DEFUN([_LT_AC_LANG_GCJ],
4958+[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
4959+ [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
4960+ [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
4961+ [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
4962+ [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
4963+ [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
4964+_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
4965+])# _LT_AC_LANG_GCJ
4966+
4967+
4968+# AC_LIBTOOL_RC
4969+# --------------
4970+# enable support for Windows resource files
4971+AC_DEFUN([AC_LIBTOOL_RC],
4972+[AC_REQUIRE([LT_AC_PROG_RC])
4973+_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
4974+])# AC_LIBTOOL_RC
4975+
4976+
4977+# AC_LIBTOOL_LANG_C_CONFIG
4978+# ------------------------
4979+# Ensure that the configuration vars for the C compiler are
4980+# suitably defined. Those variables are subsequently used by
4981+# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4982+AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
4983+AC_DEFUN([_LT_AC_LANG_C_CONFIG],
4984+[lt_save_CC="$CC"
4985+AC_LANG_PUSH(C)
4986+
4987+# Source file extension for C test sources.
4988+ac_ext=c
4989+
4990+# Object file extension for compiled C test sources.
4991+objext=o
4992+_LT_AC_TAGVAR(objext, $1)=$objext
4993+
4994+# Code to be used in simple compile tests
4995+lt_simple_compile_test_code="int some_variable = 0;\n"
4996+
4997+# Code to be used in simple link tests
4998+lt_simple_link_test_code='int main(){return(0);}\n'
4999+
5000+_LT_AC_SYS_COMPILER
5001+
5002+#
5003+# Check for any special shared library compilation flags.
5004+#
5005+_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
5006+if test "$GCC" = no; then
5007+ case $host_os in
5008+ sco3.2v5*)
5009+ _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
5010+ ;;
5011+ esac
5012+fi
5013+if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
5014+ AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
5015+ if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ ]]" >/dev/null; then :
5016+ else
5017+ AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
5018+ _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
5019+ fi
5020+fi
5021+
5022+
5023+#
5024+# Check to make sure the static flag actually works.
5025+#
5026+AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
5027+ _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
5028+ $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
5029+ [],
5030+ [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
5031+
5032+
5033+AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
5034+AC_LIBTOOL_PROG_COMPILER_PIC($1)
5035+AC_LIBTOOL_PROG_CC_C_O($1)
5036+AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
5037+AC_LIBTOOL_PROG_LD_SHLIBS($1)
5038+AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
5039+AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
5040+AC_LIBTOOL_SYS_LIB_STRIP
5041+AC_LIBTOOL_DLOPEN_SELF($1)
5042+
5043+# Report which librarie types wil actually be built
5044+AC_MSG_CHECKING([if libtool supports shared libraries])
5045+AC_MSG_RESULT([$can_build_shared])
5046+
5047+AC_MSG_CHECKING([whether to build shared libraries])
5048+test "$can_build_shared" = "no" && enable_shared=no
5049+
5050+# On AIX, shared libraries and static libraries use the same namespace, and
5051+# are all built from PIC.
5052+case "$host_os" in
5053+aix3*)
5054+ test "$enable_shared" = yes && enable_static=no
5055+ if test -n "$RANLIB"; then
5056+ archive_cmds="$archive_cmds~\$RANLIB \$lib"
5057+ postinstall_cmds='$RANLIB $lib'
5058+ fi
5059+ ;;
5060+
5061+aix4* | aix5*)
5062+ if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5063+ test "$enable_shared" = yes && enable_static=no
5064+ fi
5065+ ;;
5066+ darwin* | rhapsody*)
5067+ if test "$GCC" = yes; then
5068+ _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5069+ case "$host_os" in
5070+ rhapsody* | darwin1.[[012]])
5071+ _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
5072+ ;;
5073+ *) # Darwin 1.3 on
5074+ if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
5075+ _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
5076+ else
5077+ case ${MACOSX_DEPLOYMENT_TARGET} in
5078+ 10.[[012]])
5079+ _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
5080+ ;;
5081+ 10.*)
5082+ _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
5083+ ;;
5084+ esac
5085+ fi
5086+ ;;
5087+ esac
5088+ output_verbose_link_cmd='echo'
5089+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
5090+ _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5091+ # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
5092+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5093+ _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5094+ _LT_AC_TAGVAR(hardcode_direct, $1)=no
5095+ _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
5096+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5097+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
5098+ _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5099+ else
5100+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
5101+ fi
5102+ ;;
5103+esac
5104+AC_MSG_RESULT([$enable_shared])
5105+
5106+AC_MSG_CHECKING([whether to build static libraries])
5107+# Make sure either enable_shared or enable_static is yes.
5108+test "$enable_shared" = yes || enable_static=yes
5109+AC_MSG_RESULT([$enable_static])
5110+
5111+AC_LIBTOOL_CONFIG($1)
5112+
5113+AC_LANG_POP
5114+CC="$lt_save_CC"
5115+])# AC_LIBTOOL_LANG_C_CONFIG
5116+
5117+
5118+# AC_LIBTOOL_LANG_CXX_CONFIG
5119+# --------------------------
5120+# Ensure that the configuration vars for the C compiler are
5121+# suitably defined. Those variables are subsequently used by
5122+# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
5123+AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
5124+AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
5125+[AC_LANG_PUSH(C++)
5126+AC_REQUIRE([AC_PROG_CXX])
5127+AC_REQUIRE([AC_PROG_CXXCPP])
5128+
5129+_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5130+_LT_AC_TAGVAR(allow_undefined_flag, $1)=
5131+_LT_AC_TAGVAR(always_export_symbols, $1)=no
5132+_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
5133+_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5134+_LT_AC_TAGVAR(hardcode_direct, $1)=no
5135+_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5136+_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5137+_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5138+_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5139+_LT_AC_TAGVAR(hardcode_automatic, $1)=no
5140+_LT_AC_TAGVAR(module_cmds, $1)=
5141+_LT_AC_TAGVAR(module_expsym_cmds, $1)=
5142+_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
5143+_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
5144+_LT_AC_TAGVAR(no_undefined_flag, $1)=
5145+_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5146+_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5147+
5148+# Dependencies to place before and after the object being linked:
5149+_LT_AC_TAGVAR(predep_objects, $1)=
5150+_LT_AC_TAGVAR(postdep_objects, $1)=
5151+_LT_AC_TAGVAR(predeps, $1)=
5152+_LT_AC_TAGVAR(postdeps, $1)=
5153+_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
5154+
5155+# Source file extension for C++ test sources.
5156+ac_ext=cc
5157+
5158+# Object file extension for compiled C++ test sources.
5159+objext=o
5160+_LT_AC_TAGVAR(objext, $1)=$objext
5161+
5162+# Code to be used in simple compile tests
5163+lt_simple_compile_test_code="int some_variable = 0;\n"
5164+
5165+# Code to be used in simple link tests
5166+lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
5167+
5168+# ltmain only uses $CC for tagged configurations so make sure $CC is set.
5169+_LT_AC_SYS_COMPILER
5170+
5171+# Allow CC to be a program name with arguments.
5172+lt_save_CC=$CC
5173+lt_save_LD=$LD
5174+lt_save_GCC=$GCC
5175+GCC=$GXX
5176+lt_save_with_gnu_ld=$with_gnu_ld
5177+lt_save_path_LD=$lt_cv_path_LD
5178+if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
5179+ lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
5180+else
5181+ unset lt_cv_prog_gnu_ld
5182+fi
5183+if test -n "${lt_cv_path_LDCXX+set}"; then
5184+ lt_cv_path_LD=$lt_cv_path_LDCXX
5185+else
5186+ unset lt_cv_path_LD
5187+fi
5188+test -z "${LDCXX+set}" || LD=$LDCXX
5189+CC=${CXX-"c++"}
5190+compiler=$CC
5191+_LT_AC_TAGVAR(compiler, $1)=$CC
5192+cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
5193+
5194+# We don't want -fno-exception wen compiling C++ code, so set the
5195+# no_builtin_flag separately
5196+if test "$GXX" = yes; then
5197+ _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
5198+else
5199+ _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
5200+fi
5201+
5202+if test "$GXX" = yes; then
5203+ # Set up default GNU C++ configuration
5204+
5205+ AC_PROG_LD
5206+
5207+ # Check if GNU C++ uses GNU ld as the underlying linker, since the
5208+ # archiving commands below assume that GNU ld is being used.
5209+ if test "$with_gnu_ld" = yes; then
5210+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5211+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5212+
5213+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
5214+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5215+
5216+ # If archive_cmds runs LD, not CC, wlarc should be empty
5217+ # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
5218+ # investigate it a little bit more. (MM)
5219+ wlarc='${wl}'
5220+
5221+ # ancient GNU ld didn't support --whole-archive et. al.
5222+ if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
5223+ grep 'no-whole-archive' > /dev/null; then
5224+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5225+ else
5226+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5227+ fi
5228+ else
5229+ with_gnu_ld=no
5230+ wlarc=
5231+
5232+ # A generic and very simple default shared library creation
5233+ # command for GNU C++ for the case where it uses the native
5234+ # linker, instead of GNU ld. If possible, this setting should
5235+ # overridden to take advantage of the native linker features on
5236+ # the platform it is being used on.
5237+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
5238+ fi
5239+
5240+ # Commands to make compiler produce verbose output that lists
5241+ # what "hidden" libraries, object files and flags are used when
5242+ # linking a shared library.
5243+ output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
5244+
5245+else
5246+ GXX=no
5247+ with_gnu_ld=no
5248+ wlarc=
5249+fi
5250+
5251+# PORTME: fill in a description of your system's C++ link characteristics
5252+AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5253+_LT_AC_TAGVAR(ld_shlibs, $1)=yes
5254+case $host_os in
5255+ aix3*)
5256+ # FIXME: insert proper C++ library support
5257+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
5258+ ;;
5259+ aix4* | aix5*)
5260+ if test "$host_cpu" = ia64; then
5261+ # On IA64, the linker does run time linking by default, so we don't
5262+ # have to do anything special.
5263+ aix_use_runtimelinking=no
5264+ exp_sym_flag='-Bexport'
5265+ no_entry_flag=""
5266+ else
5267+ aix_use_runtimelinking=no
5268+
5269+ # Test if we are trying to use run time linking or normal
5270+ # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5271+ # need to do runtime linking.
5272+ case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
5273+ for ld_flag in $LDFLAGS; do
5274+ case $ld_flag in
5275+ *-brtl*)
5276+ aix_use_runtimelinking=yes
5277+ break
5278+ ;;
5279+ esac
5280+ done
5281+ esac
5282+
5283+ exp_sym_flag='-bexport'
5284+ no_entry_flag='-bnoentry'
5285+ fi
5286+
5287+ # When large executables or shared objects are built, AIX ld can
5288+ # have problems creating the table of contents. If linking a library
5289+ # or program results in "error TOC overflow" add -mminimal-toc to
5290+ # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5291+ # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5292+
5293+ _LT_AC_TAGVAR(archive_cmds, $1)=''
5294+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5295+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
5296+ _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5297+
5298+ if test "$GXX" = yes; then
5299+ case $host_os in aix4.[012]|aix4.[012].*)
5300+ # We only want to do this on AIX 4.2 and lower, the check
5301+ # below for broken collect2 doesn't work under 4.3+
5302+ collect2name=`${CC} -print-prog-name=collect2`
5303+ if test -f "$collect2name" && \
5304+ strings "$collect2name" | grep resolve_lib_name >/dev/null
5305+ then
5306+ # We have reworked collect2
5307+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5308+ else
5309+ # We have old collect2
5310+ _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5311+ # It fails to find uninstalled libraries when the uninstalled
5312+ # path is not listed in the libpath. Setting hardcode_minus_L
5313+ # to unsupported forces relinking
5314+ _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5315+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5316+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5317+ fi
5318+ esac
5319+ shared_flag='-shared'
5320+ else
5321+ # not using gcc
5322+ if test "$host_cpu" = ia64; then
5323+ # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5324+ # chokes on -Wl,-G. The following line is correct:
5325+ shared_flag='-G'
5326+ else
5327+ if test "$aix_use_runtimelinking" = yes; then
5328+ shared_flag='${wl}-G'
5329+ else
5330+ shared_flag='${wl}-bM:SRE'
5331+ fi
5332+ fi
5333+ fi
5334+
5335+ # It seems that -bexpall does not export symbols beginning with
5336+ # underscore (_), so it is better to generate a list of symbols to export.
5337+ _LT_AC_TAGVAR(always_export_symbols, $1)=yes
5338+ if test "$aix_use_runtimelinking" = yes; then
5339+ # Warning - without using the other runtime loading flags (-brtl),
5340+ # -berok will link without error, but may produce a broken library.
5341+ _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
5342+ # Determine the default libpath from the value encoded in an empty executable.
5343+ _LT_AC_SYS_LIBPATH_AIX
5344+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5345+
5346+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5347+ else
5348+ if test "$host_cpu" = ia64; then
5349+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5350+ _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5351+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
5352+ else
5353+ # Determine the default libpath from the value encoded in an empty executable.
5354+ _LT_AC_SYS_LIBPATH_AIX
5355+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5356+ # Warning - without using the other run time loading flags,
5357+ # -berok will link without error, but may produce a broken library.
5358+ _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5359+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5360+ # -bexpall does not export symbols beginning with underscore (_)
5361+ _LT_AC_TAGVAR(always_export_symbols, $1)=yes
5362+ # Exported symbols can be pulled into shared objects from archives
5363+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
5364+ _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
5365+ # This is similar to how AIX traditionally builds it's shared libraries.
5366+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
5367+ fi
5368+ fi
5369+ ;;
5370+ chorus*)
5371+ case $cc_basename in
5372+ *)
5373+ # FIXME: insert proper C++ library support
5374+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
5375+ ;;
5376+ esac
5377+ ;;
5378+
5379+ cygwin* | mingw* | pw32*)
5380+ # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5381+ # as there is no search path for DLLs.
5382+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5383+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5384+ _LT_AC_TAGVAR(always_export_symbols, $1)=no
5385+ _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5386+
5387+ if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5388+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
5389+ # If the export-symbols file already is a .def file (1st line
5390+ # is EXPORTS), use it as is; otherwise, prepend...
5391+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5392+ cp $export_symbols $output_objdir/$soname.def;
5393+ else
5394+ echo EXPORTS > $output_objdir/$soname.def;
5395+ cat $export_symbols >> $output_objdir/$soname.def;
5396+ fi~
5397+ $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
5398+ else
5399+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
5400+ fi
5401+ ;;
5402+
5403+ darwin* | rhapsody*)
5404+ if test "$GXX" = yes; then
5405+ _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5406+ case "$host_os" in
5407+ rhapsody* | darwin1.[[012]])
5408+ _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
5409+ ;;
5410+ *) # Darwin 1.3 on
5411+ if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
5412+ _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
5413+ else
5414+ case ${MACOSX_DEPLOYMENT_TARGET} in
5415+ 10.[[012]])
5416+ _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
5417+ ;;
5418+ 10.*)
5419+ _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
5420+ ;;
5421+ esac
5422+ fi
5423+ ;;
5424+ esac
5425+ lt_int_apple_cc_single_mod=no
5426+ output_verbose_link_cmd='echo'
5427+ if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
5428+ lt_int_apple_cc_single_mod=yes
5429+ fi
5430+ if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
5431+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
5432+ else
5433+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -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'
5434+ fi
5435+ _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5436+
5437+ # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
5438+ if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
5439+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5440+ else
5441+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5442+ fi
5443+ _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5444+ _LT_AC_TAGVAR(hardcode_direct, $1)=no
5445+ _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
5446+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5447+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
5448+ _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5449+ else
5450+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
5451+ fi
5452+ ;;
5453+
5454+ dgux*)
5455+ case $cc_basename in
5456+ ec++)
5457+ # FIXME: insert proper C++ library support
5458+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
5459+ ;;
5460+ ghcx)
5461+ # Green Hills C++ Compiler
5462+ # FIXME: insert proper C++ library support
5463+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
5464+ ;;
5465+ *)
5466+ # FIXME: insert proper C++ library support
5467+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
5468+ ;;
5469+ esac
5470+ ;;
5471+ freebsd[12]*)
5472+ # C++ shared libraries reported to be fairly broken before switch to ELF
5473+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
5474+ ;;
5475+ freebsd-elf*)
5476+ _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5477+ ;;
5478+ freebsd* | kfreebsd*-gnu)
5479+ # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
5480+ # conventions
5481+ _LT_AC_TAGVAR(ld_shlibs, $1)=yes
5482+ ;;
5483+ gnu*)
5484+ ;;
5485+ hpux9*)
5486+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5487+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5488+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5489+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5490+ _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
5491+ # but as the default
5492+ # location of the library.
5493+
5494+ case $cc_basename in
5495+ CC)
5496+ # FIXME: insert proper C++ library support
5497+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
5498+ ;;
5499+ aCC)
5500+ _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5501+ # Commands to make compiler produce verbose output that lists
5502+ # what "hidden" libraries, object files and flags are used when
5503+ # linking a shared library.
5504+ #
5505+ # There doesn't appear to be a way to prevent this compiler from
5506+ # explicitly linking system object files so we need to strip them
5507+ # from the output so that they don't get included in the library
5508+ # dependencies.
5509+ output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
5510+ ;;
5511+ *)
5512+ if test "$GXX" = yes; then
5513+ _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5514+ else
5515+ # FIXME: insert proper C++ library support
5516+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
5517+ fi
5518+ ;;
5519+ esac
5520+ ;;
5521+ hpux10*|hpux11*)
5522+ if test $with_gnu_ld = no; then
5523+ case "$host_cpu" in
5524+ hppa*64*)
5525+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5526+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
5527+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5528+ ;;
5529+ ia64*)
5530+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5531+ ;;
5532+ *)
5533+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5534+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5535+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5536+ ;;
5537+ esac
5538+ fi
5539+ case "$host_cpu" in
5540+ hppa*64*)
5541+ _LT_AC_TAGVAR(hardcode_direct, $1)=no
5542+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5543+ ;;
5544+ ia64*)
5545+ _LT_AC_TAGVAR(hardcode_direct, $1)=no
5546+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5547+ _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
5548+ # but as the default
5549+ # location of the library.
5550+ ;;
5551+ *)
5552+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5553+ _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
5554+ # but as the default
5555+ # location of the library.
5556+ ;;
5557+ esac
5558+
5559+ case $cc_basename in
5560+ CC)
5561+ # FIXME: insert proper C++ library support
5562+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
5563+ ;;
5564+ aCC)
5565+ case "$host_cpu" in
5566+ hppa*64*|ia64*)
5567+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
5568+ ;;
5569+ *)
5570+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5571+ ;;
5572+ esac
5573+ # Commands to make compiler produce verbose output that lists
5574+ # what "hidden" libraries, object files and flags are used when
5575+ # linking a shared library.
5576+ #
5577+ # There doesn't appear to be a way to prevent this compiler from
5578+ # explicitly linking system object files so we need to strip them
5579+ # from the output so that they don't get included in the library
5580+ # dependencies.
5581+ output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
5582+ ;;
5583+ *)
5584+ if test "$GXX" = yes; then
5585+ if test $with_gnu_ld = no; then
5586+ case "$host_cpu" in
5587+ ia64*|hppa*64*)
5588+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
5589+ ;;
5590+ *)
5591+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5592+ ;;
5593+ esac
5594+ fi
5595+ else
5596+ # FIXME: insert proper C++ library support
5597+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
5598+ fi
5599+ ;;
5600+ esac
5601+ ;;
5602+ irix5* | irix6*)
5603+ case $cc_basename in
5604+ CC)
5605+ # SGI C++
5606+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
5607+
5608+ # Archives containing C++ object files must be created using
5609+ # "CC -ar", where "CC" is the IRIX C++ compiler. This is
5610+ # necessary to make sure instantiated templates are included
5611+ # in the archive.
5612+ _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
5613+ ;;
5614+ *)
5615+ if test "$GXX" = yes; then
5616+ if test "$with_gnu_ld" = no; then
5617+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
5618+ else
5619+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
5620+ fi
5621+ fi
5622+ _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5623+ ;;
5624+ esac
5625+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5626+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5627+ ;;
5628+ linux*)
5629+ case $cc_basename in
5630+ KCC)
5631+ # Kuck and Associates, Inc. (KAI) C++ Compiler
5632+
5633+ # KCC will only create a shared library if the output file
5634+ # ends with ".so" (or ".sl" for HP-UX), so rename the library
5635+ # to its proper name (with version) after linking.
5636+ _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
5637+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
5638+ # Commands to make compiler produce verbose output that lists
5639+ # what "hidden" libraries, object files and flags are used when
5640+ # linking a shared library.
5641+ #
5642+ # There doesn't appear to be a way to prevent this compiler from
5643+ # explicitly linking system object files so we need to strip them
5644+ # from the output so that they don't get included in the library
5645+ # dependencies.
5646+ output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
5647+
5648+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
5649+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5650+
5651+ # Archives containing C++ object files must be created using
5652+ # "CC -Bstatic", where "CC" is the KAI C++ compiler.
5653+ _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
5654+ ;;
5655+ icpc)
5656+ # Intel C++
5657+ with_gnu_ld=yes
5658+ _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5659+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5660+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5661+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5662+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5663+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
5664+ ;;
5665+ cxx)
5666+ # Compaq C++
5667+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5668+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
5669+
5670+ runpath_var=LD_RUN_PATH
5671+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5672+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5673+
5674+ # Commands to make compiler produce verbose output that lists
5675+ # what "hidden" libraries, object files and flags are used when
5676+ # linking a shared library.
5677+ #
5678+ # There doesn't appear to be a way to prevent this compiler from
5679+ # explicitly linking system object files so we need to strip them
5680+ # from the output so that they don't get included in the library
5681+ # dependencies.
5682+ output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
5683+ ;;
5684+ esac
5685+ ;;
5686+ lynxos*)
5687+ # FIXME: insert proper C++ library support
5688+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
5689+ ;;
5690+ m88k*)
5691+ # FIXME: insert proper C++ library support
5692+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
5693+ ;;
5694+ mvs*)
5695+ case $cc_basename in
5696+ cxx)
5697+ # FIXME: insert proper C++ library support
5698+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
5699+ ;;
5700+ *)
5701+ # FIXME: insert proper C++ library support
5702+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
5703+ ;;
5704+ esac
5705+ ;;
5706+ netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
5707+ if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5708+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
5709+ wlarc=
5710+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5711+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5712+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5713+ fi
5714+ # Workaround some broken pre-1.5 toolchains
5715+ output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
5716+ ;;
5717+ osf3*)
5718+ case $cc_basename in
5719+ KCC)
5720+ # Kuck and Associates, Inc. (KAI) C++ Compiler
5721+
5722+ # KCC will only create a shared library if the output file
5723+ # ends with ".so" (or ".sl" for HP-UX), so rename the library
5724+ # to its proper name (with version) after linking.
5725+ _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
5726+
5727+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5728+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5729+
5730+ # Archives containing C++ object files must be created using
5731+ # "CC -Bstatic", where "CC" is the KAI C++ compiler.
5732+ _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
5733+
5734+ ;;
5735+ RCC)
5736+ # Rational C++ 2.4.1
5737+ # FIXME: insert proper C++ library support
5738+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
5739+ ;;
5740+ cxx)
5741+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5742+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
5743+
5744+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5745+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5746+
5747+ # Commands to make compiler produce verbose output that lists
5748+ # what "hidden" libraries, object files and flags are used when
5749+ # linking a shared library.
5750+ #
5751+ # There doesn't appear to be a way to prevent this compiler from
5752+ # explicitly linking system object files so we need to strip them
5753+ # from the output so that they don't get included in the library
5754+ # dependencies.
5755+ output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
5756+ ;;
5757+ *)
5758+ if test "$GXX" = yes && test "$with_gnu_ld" = no; then
5759+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5760+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
5761+
5762+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5763+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5764+
5765+ # Commands to make compiler produce verbose output that lists
5766+ # what "hidden" libraries, object files and flags are used when
5767+ # linking a shared library.
5768+ output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
5769+
5770+ else
5771+ # FIXME: insert proper C++ library support
5772+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
5773+ fi
5774+ ;;
5775+ esac
5776+ ;;
5777+ osf4* | osf5*)
5778+ case $cc_basename in
5779+ KCC)
5780+ # Kuck and Associates, Inc. (KAI) C++ Compiler
5781+
5782+ # KCC will only create a shared library if the output file
5783+ # ends with ".so" (or ".sl" for HP-UX), so rename the library
5784+ # to its proper name (with version) after linking.
5785+ _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
5786+
5787+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5788+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5789+
5790+ # Archives containing C++ object files must be created using
5791+ # the KAI C++ compiler.
5792+ _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
5793+ ;;
5794+ RCC)
5795+ # Rational C++ 2.4.1
5796+ # FIXME: insert proper C++ library support
5797+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
5798+ ;;
5799+ cxx)
5800+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5801+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
5802+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
5803+ echo "-hidden">> $lib.exp~
5804+ $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
5805+ $rm $lib.exp'
5806+
5807+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5808+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5809+
5810+ # Commands to make compiler produce verbose output that lists
5811+ # what "hidden" libraries, object files and flags are used when
5812+ # linking a shared library.
5813+ #
5814+ # There doesn't appear to be a way to prevent this compiler from
5815+ # explicitly linking system object files so we need to strip them
5816+ # from the output so that they don't get included in the library
5817+ # dependencies.
5818+ output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
5819+ ;;
5820+ *)
5821+ if test "$GXX" = yes && test "$with_gnu_ld" = no; then
5822+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5823+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
5824+
5825+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5826+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5827+
5828+ # Commands to make compiler produce verbose output that lists
5829+ # what "hidden" libraries, object files and flags are used when
5830+ # linking a shared library.
5831+ output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
5832+
5833+ else
5834+ # FIXME: insert proper C++ library support
5835+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
5836+ fi
5837+ ;;
5838+ esac
5839+ ;;
5840+ psos*)
5841+ # FIXME: insert proper C++ library support
5842+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
5843+ ;;
5844+ sco*)
5845+ _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5846+ case $cc_basename in
5847+ CC)
5848+ # FIXME: insert proper C++ library support
5849+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
5850+ ;;
5851+ *)
5852+ # FIXME: insert proper C++ library support
5853+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
5854+ ;;
5855+ esac
5856+ ;;
5857+ sunos4*)
5858+ case $cc_basename in
5859+ CC)
5860+ # Sun C++ 4.x
5861+ # FIXME: insert proper C++ library support
5862+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
5863+ ;;
5864+ lcc)
5865+ # Lucid
5866+ # FIXME: insert proper C++ library support
5867+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
5868+ ;;
5869+ *)
5870+ # FIXME: insert proper C++ library support
5871+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
5872+ ;;
5873+ esac
5874+ ;;
5875+ solaris*)
5876+ case $cc_basename in
5877+ CC)
5878+ # Sun C++ 4.2, 5.x and Centerline C++
5879+ _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
5880+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5881+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5882+ $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
5883+
5884+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5885+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5886+ case $host_os in
5887+ solaris2.[0-5] | solaris2.[0-5].*) ;;
5888+ *)
5889+ # The C++ compiler is used as linker so we must use $wl
5890+ # flag to pass the commands to the underlying system
5891+ # linker.
5892+ # Supported since Solaris 2.6 (maybe 2.5.1?)
5893+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
5894+ ;;
5895+ esac
5896+ _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5897+
5898+ # Commands to make compiler produce verbose output that lists
5899+ # what "hidden" libraries, object files and flags are used when
5900+ # linking a shared library.
5901+ #
5902+ # There doesn't appear to be a way to prevent this compiler from
5903+ # explicitly linking system object files so we need to strip them
5904+ # from the output so that they don't get included in the library
5905+ # dependencies.
5906+ output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[[LR]]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
5907+
5908+ # Archives containing C++ object files must be created using
5909+ # "CC -xar", where "CC" is the Sun C++ compiler. This is
5910+ # necessary to make sure instantiated templates are included
5911+ # in the archive.
5912+ _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
5913+ ;;
5914+ gcx)
5915+ # Green Hills C++ Compiler
5916+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
5917+
5918+ # The C++ compiler must be used to create the archive.
5919+ _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
5920+ ;;
5921+ *)
5922+ # GNU C++ compiler with Solaris linker
5923+ if test "$GXX" = yes && test "$with_gnu_ld" = no; then
5924+ _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
5925+ if $CC --version | grep -v '^2\.7' > /dev/null; then
5926+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
5927+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5928+ $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
5929+
5930+ # Commands to make compiler produce verbose output that lists
5931+ # what "hidden" libraries, object files and flags are used when
5932+ # linking a shared library.
5933+ output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
5934+ else
5935+ # g++ 2.7 appears to require `-G' NOT `-shared' on this
5936+ # platform.
5937+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
5938+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5939+ $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
5940+
5941+ # Commands to make compiler produce verbose output that lists
5942+ # what "hidden" libraries, object files and flags are used when
5943+ # linking a shared library.
5944+ output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
5945+ fi
5946+
5947+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
5948+ fi
5949+ ;;
5950+ esac
5951+ ;;
5952+ sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
5953+ _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5954+ ;;
5955+ tandem*)
5956+ case $cc_basename in
5957+ NCC)
5958+ # NonStop-UX NCC 3.20
5959+ # FIXME: insert proper C++ library support
5960+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
5961+ ;;
5962+ *)
5963+ # FIXME: insert proper C++ library support
5964+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
5965+ ;;
5966+ esac
5967+ ;;
5968+ vxworks*)
5969+ # FIXME: insert proper C++ library support
5970+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
5971+ ;;
5972+ *)
5973+ # FIXME: insert proper C++ library support
5974+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
5975+ ;;
5976+esac
5977+AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
5978+test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
5979+
5980+_LT_AC_TAGVAR(GCC, $1)="$GXX"
5981+_LT_AC_TAGVAR(LD, $1)="$LD"
5982+
5983+AC_LIBTOOL_POSTDEP_PREDEP($1)
5984+AC_LIBTOOL_PROG_COMPILER_PIC($1)
5985+AC_LIBTOOL_PROG_CC_C_O($1)
5986+AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
5987+AC_LIBTOOL_PROG_LD_SHLIBS($1)
5988+AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
5989+AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
5990+AC_LIBTOOL_SYS_LIB_STRIP
5991+AC_LIBTOOL_DLOPEN_SELF($1)
5992+
5993+AC_LIBTOOL_CONFIG($1)
5994+
5995+AC_LANG_POP
5996+CC=$lt_save_CC
5997+LDCXX=$LD
5998+LD=$lt_save_LD
5999+GCC=$lt_save_GCC
6000+with_gnu_ldcxx=$with_gnu_ld
6001+with_gnu_ld=$lt_save_with_gnu_ld
6002+lt_cv_path_LDCXX=$lt_cv_path_LD
6003+lt_cv_path_LD=$lt_save_path_LD
6004+lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
6005+lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
6006+])# AC_LIBTOOL_LANG_CXX_CONFIG
6007+
6008+# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
6009+# ------------------------
6010+# Figure out "hidden" library dependencies from verbose
6011+# compiler output when linking a shared library.
6012+# Parse the compiler output and extract the necessary
6013+# objects, libraries and library flags.
6014+AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
6015+dnl we can't use the lt_simple_compile_test_code here,
6016+dnl because it contains code intended for an executable,
6017+dnl not a library. It's possible we should let each
6018+dnl tag define a new lt_????_link_test_code variable,
6019+dnl but it's only used here...
6020+ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
6021+int a;
6022+void foo (void) { a = 0; }
6023+EOF
6024+],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
6025+class Foo
6026+{
6027+public:
6028+ Foo (void) { a = 0; }
6029+private:
6030+ int a;
6031+};
6032+EOF
6033+],[$1],[F77],[cat > conftest.$ac_ext <<EOF
6034+ subroutine foo
6035+ implicit none
6036+ integer*4 a
6037+ a=0
6038+ return
6039+ end
6040+EOF
6041+],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
6042+public class foo {
6043+ private int a;
6044+ public void bar (void) {
6045+ a = 0;
6046+ }
6047+};
6048+EOF
6049+])
6050+dnl Parse the compiler output and extract the necessary
6051+dnl objects, libraries and library flags.
6052+if AC_TRY_EVAL(ac_compile); then
6053+ # Parse the compiler output and extract the necessary
6054+ # objects, libraries and library flags.
6055+
6056+ # Sentinel used to keep track of whether or not we are before
6057+ # the conftest object file.
6058+ pre_test_object_deps_done=no
6059+
6060+ # The `*' in the case matches for architectures that use `case' in
6061+ # $output_verbose_cmd can trigger glob expansion during the loop
6062+ # eval without this substitution.
6063+ output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
6064+
6065+ for p in `eval $output_verbose_link_cmd`; do
6066+ case $p in
6067+
6068+ -L* | -R* | -l*)
6069+ # Some compilers place space between "-{L,R}" and the path.
6070+ # Remove the space.
6071+ if test $p = "-L" \
6072+ || test $p = "-R"; then
6073+ prev=$p
6074+ continue
6075+ else
6076+ prev=
6077+ fi
6078+
6079+ if test "$pre_test_object_deps_done" = no; then
6080+ case $p in
6081+ -L* | -R*)
6082+ # Internal compiler library paths should come after those
6083+ # provided the user. The postdeps already come after the
6084+ # user supplied libs so there is no need to process them.
6085+ if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
6086+ _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
6087+ else
6088+ _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
6089+ fi
6090+ ;;
6091+ # The "-l" case would never come before the object being
6092+ # linked, so don't bother handling this case.
6093+ esac
6094+ else
6095+ if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
6096+ _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
6097+ else
6098+ _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
6099+ fi
6100+ fi
6101+ ;;
6102+
6103+ *.$objext)
6104+ # This assumes that the test object file only shows up
6105+ # once in the compiler output.
6106+ if test "$p" = "conftest.$objext"; then
6107+ pre_test_object_deps_done=yes
6108+ continue
6109+ fi
6110+
6111+ if test "$pre_test_object_deps_done" = no; then
6112+ if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
6113+ _LT_AC_TAGVAR(predep_objects, $1)="$p"
6114+ else
6115+ _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
6116+ fi
6117+ else
6118+ if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
6119+ _LT_AC_TAGVAR(postdep_objects, $1)="$p"
6120+ else
6121+ _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
6122+ fi
6123+ fi
6124+ ;;
6125+
6126+ *) ;; # Ignore the rest.
6127+
6128+ esac
6129+ done
6130+
6131+ # Clean up.
6132+ rm -f a.out a.exe
6133+else
6134+ echo "libtool.m4: error: problem compiling $1 test program"
6135+fi
6136+
6137+$rm -f confest.$objext
6138+
6139+case " $_LT_AC_TAGVAR(postdeps, $1) " in
6140+*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
6141+esac
6142+])# AC_LIBTOOL_POSTDEP_PREDEP
6143+
6144+# AC_LIBTOOL_LANG_F77_CONFIG
6145+# ------------------------
6146+# Ensure that the configuration vars for the C compiler are
6147+# suitably defined. Those variables are subsequently used by
6148+# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
6149+AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
6150+AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
6151+[AC_REQUIRE([AC_PROG_F77])
6152+AC_LANG_PUSH(Fortran 77)
6153+
6154+_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6155+_LT_AC_TAGVAR(allow_undefined_flag, $1)=
6156+_LT_AC_TAGVAR(always_export_symbols, $1)=no
6157+_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
6158+_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
6159+_LT_AC_TAGVAR(hardcode_direct, $1)=no
6160+_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
6161+_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6162+_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
6163+_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
6164+_LT_AC_TAGVAR(hardcode_automatic, $1)=no
6165+_LT_AC_TAGVAR(module_cmds, $1)=
6166+_LT_AC_TAGVAR(module_expsym_cmds, $1)=
6167+_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
6168+_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6169+_LT_AC_TAGVAR(no_undefined_flag, $1)=
6170+_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6171+_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6172+
6173+# Source file extension for f77 test sources.
6174+ac_ext=f
6175+
6176+# Object file extension for compiled f77 test sources.
6177+objext=o
6178+_LT_AC_TAGVAR(objext, $1)=$objext
6179+
6180+# Code to be used in simple compile tests
6181+lt_simple_compile_test_code=" subroutine t\n return\n end\n"
6182+
6183+# Code to be used in simple link tests
6184+lt_simple_link_test_code=" program t\n end\n"
6185+
6186+# ltmain only uses $CC for tagged configurations so make sure $CC is set.
6187+_LT_AC_SYS_COMPILER
6188+
6189+# Allow CC to be a program name with arguments.
6190+lt_save_CC="$CC"
6191+CC=${F77-"f77"}
6192+compiler=$CC
6193+_LT_AC_TAGVAR(compiler, $1)=$CC
6194+cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
6195+
6196+AC_MSG_CHECKING([if libtool supports shared libraries])
6197+AC_MSG_RESULT([$can_build_shared])
6198+
6199+AC_MSG_CHECKING([whether to build shared libraries])
6200+test "$can_build_shared" = "no" && enable_shared=no
6201+
6202+# On AIX, shared libraries and static libraries use the same namespace, and
6203+# are all built from PIC.
6204+case "$host_os" in
6205+aix3*)
6206+ test "$enable_shared" = yes && enable_static=no
6207+ if test -n "$RANLIB"; then
6208+ archive_cmds="$archive_cmds~\$RANLIB \$lib"
6209+ postinstall_cmds='$RANLIB $lib'
6210+ fi
6211+ ;;
6212+aix4* | aix5*)
6213+ test "$enable_shared" = yes && enable_static=no
6214+ ;;
6215+esac
6216+AC_MSG_RESULT([$enable_shared])
6217+
6218+AC_MSG_CHECKING([whether to build static libraries])
6219+# Make sure either enable_shared or enable_static is yes.
6220+test "$enable_shared" = yes || enable_static=yes
6221+AC_MSG_RESULT([$enable_static])
6222+
6223+test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6224+
6225+_LT_AC_TAGVAR(GCC, $1)="$G77"
6226+_LT_AC_TAGVAR(LD, $1)="$LD"
6227+
6228+AC_LIBTOOL_PROG_COMPILER_PIC($1)
6229+AC_LIBTOOL_PROG_CC_C_O($1)
6230+AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
6231+AC_LIBTOOL_PROG_LD_SHLIBS($1)
6232+AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
6233+AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
6234+AC_LIBTOOL_SYS_LIB_STRIP
6235+
6236+
6237+AC_LIBTOOL_CONFIG($1)
6238+
6239+AC_LANG_POP
6240+CC="$lt_save_CC"
6241+])# AC_LIBTOOL_LANG_F77_CONFIG
6242+
6243+
6244+# AC_LIBTOOL_LANG_GCJ_CONFIG
6245+# --------------------------
6246+# Ensure that the configuration vars for the C compiler are
6247+# suitably defined. Those variables are subsequently used by
6248+# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
6249+AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
6250+AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
6251+[AC_LANG_SAVE
6252+
6253+# Source file extension for Java test sources.
6254+ac_ext=java
6255+
6256+# Object file extension for compiled Java test sources.
6257+objext=o
6258+_LT_AC_TAGVAR(objext, $1)=$objext
6259+
6260+# Code to be used in simple compile tests
6261+lt_simple_compile_test_code="class foo {}\n"
6262+
6263+# Code to be used in simple link tests
6264+lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
6265+
6266+# ltmain only uses $CC for tagged configurations so make sure $CC is set.
6267+_LT_AC_SYS_COMPILER
6268+
6269+# Allow CC to be a program name with arguments.
6270+lt_save_CC="$CC"
6271+CC=${GCJ-"gcj"}
6272+compiler=$CC
6273+_LT_AC_TAGVAR(compiler, $1)=$CC
6274+
6275+# GCJ did not exist at the time GCC didn't implicitly link libc in.
6276+_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6277+
6278+AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
6279+AC_LIBTOOL_PROG_COMPILER_PIC($1)
6280+AC_LIBTOOL_PROG_CC_C_O($1)
6281+AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
6282+AC_LIBTOOL_PROG_LD_SHLIBS($1)
6283+AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
6284+AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
6285+AC_LIBTOOL_SYS_LIB_STRIP
6286+AC_LIBTOOL_DLOPEN_SELF($1)
6287+
6288+AC_LIBTOOL_CONFIG($1)
6289+
6290+AC_LANG_RESTORE
6291+CC="$lt_save_CC"
6292+])# AC_LIBTOOL_LANG_GCJ_CONFIG
6293+
6294+
6295+# AC_LIBTOOL_LANG_RC_CONFIG
6296+# --------------------------
6297+# Ensure that the configuration vars for the Windows resource compiler are
6298+# suitably defined. Those variables are subsequently used by
6299+# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
6300+AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
6301+AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
6302+[AC_LANG_SAVE
6303+
6304+# Source file extension for RC test sources.
6305+ac_ext=rc
6306+
6307+# Object file extension for compiled RC test sources.
6308+objext=o
6309+_LT_AC_TAGVAR(objext, $1)=$objext
6310+
6311+# Code to be used in simple compile tests
6312+lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
6313+
6314+# Code to be used in simple link tests
6315+lt_simple_link_test_code="$lt_simple_compile_test_code"
6316+
6317+# ltmain only uses $CC for tagged configurations so make sure $CC is set.
6318+_LT_AC_SYS_COMPILER
6319+
6320+# Allow CC to be a program name with arguments.
6321+lt_save_CC="$CC"
6322+CC=${RC-"windres"}
6323+compiler=$CC
6324+_LT_AC_TAGVAR(compiler, $1)=$CC
6325+_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
6326+
6327+AC_LIBTOOL_CONFIG($1)
6328+
6329+AC_LANG_RESTORE
6330+CC="$lt_save_CC"
6331+])# AC_LIBTOOL_LANG_RC_CONFIG
6332+
6333+
6334+# AC_LIBTOOL_CONFIG([TAGNAME])
6335+# ----------------------------
6336+# If TAGNAME is not passed, then create an initial libtool script
6337+# with a default configuration from the untagged config vars. Otherwise
6338+# add code to config.status for appending the configuration named by
6339+# TAGNAME from the matching tagged config vars.
6340+AC_DEFUN([AC_LIBTOOL_CONFIG],
6341+[# The else clause should only fire when bootstrapping the
6342+# libtool distribution, otherwise you forgot to ship ltmain.sh
6343+# with your package, and you will get complaints that there are
6344+# no rules to generate ltmain.sh.
6345+if test -f "$ltmain"; then
6346+ # See if we are running on zsh, and set the options which allow our commands through
6347+ # without removal of \ escapes.
6348+ if test -n "${ZSH_VERSION+set}" ; then
6349+ setopt NO_GLOB_SUBST
6350+ fi
6351+ # Now quote all the things that may contain metacharacters while being
6352+ # careful not to overquote the AC_SUBSTed values. We take copies of the
6353+ # variables and quote the copies for generation of the libtool script.
6354+ for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
6355+ SED SHELL STRIP \
6356+ libname_spec library_names_spec soname_spec extract_expsyms_cmds \
6357+ old_striplib striplib file_magic_cmd finish_cmds finish_eval \
6358+ deplibs_check_method reload_flag reload_cmds need_locks \
6359+ lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
6360+ lt_cv_sys_global_symbol_to_c_name_address \
6361+ sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
6362+ old_postinstall_cmds old_postuninstall_cmds \
6363+ _LT_AC_TAGVAR(compiler, $1) \
6364+ _LT_AC_TAGVAR(CC, $1) \
6365+ _LT_AC_TAGVAR(LD, $1) \
6366+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
6367+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
6368+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
6369+ _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
6370+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
6371+ _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
6372+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
6373+ _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
6374+ _LT_AC_TAGVAR(old_archive_cmds, $1) \
6375+ _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
6376+ _LT_AC_TAGVAR(predep_objects, $1) \
6377+ _LT_AC_TAGVAR(postdep_objects, $1) \
6378+ _LT_AC_TAGVAR(predeps, $1) \
6379+ _LT_AC_TAGVAR(postdeps, $1) \
6380+ _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
6381+ _LT_AC_TAGVAR(archive_cmds, $1) \
6382+ _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
6383+ _LT_AC_TAGVAR(postinstall_cmds, $1) \
6384+ _LT_AC_TAGVAR(postuninstall_cmds, $1) \
6385+ _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
6386+ _LT_AC_TAGVAR(allow_undefined_flag, $1) \
6387+ _LT_AC_TAGVAR(no_undefined_flag, $1) \
6388+ _LT_AC_TAGVAR(export_symbols_cmds, $1) \
6389+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
6390+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
6391+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
6392+ _LT_AC_TAGVAR(hardcode_automatic, $1) \
6393+ _LT_AC_TAGVAR(module_cmds, $1) \
6394+ _LT_AC_TAGVAR(module_expsym_cmds, $1) \
6395+ _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
6396+ _LT_AC_TAGVAR(exclude_expsyms, $1) \
6397+ _LT_AC_TAGVAR(include_expsyms, $1); do
6398+
6399+ case $var in
6400+ _LT_AC_TAGVAR(old_archive_cmds, $1) | \
6401+ _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
6402+ _LT_AC_TAGVAR(archive_cmds, $1) | \
6403+ _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
6404+ _LT_AC_TAGVAR(module_cmds, $1) | \
6405+ _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
6406+ _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
6407+ _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
6408+ extract_expsyms_cmds | reload_cmds | finish_cmds | \
6409+ postinstall_cmds | postuninstall_cmds | \
6410+ old_postinstall_cmds | old_postuninstall_cmds | \
6411+ sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
6412+ # Double-quote double-evaled strings.
6413+ eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
6414+ ;;
6415+ *)
6416+ eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
6417+ ;;
6418+ esac
6419+ done
6420+
6421+ case $lt_echo in
6422+ *'\[$]0 --fallback-echo"')
6423+ lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
6424+ ;;
6425+ esac
6426+
6427+ifelse([$1], [],
6428+ [cfgfile="${ofile}T"
6429+ trap "$rm \"$cfgfile\"; exit 1" 1 2 15
6430+ $rm -f "$cfgfile"
6431+ AC_MSG_NOTICE([creating $ofile])],
6432+ [cfgfile="$ofile"])
6433+
6434+ cat <<__EOF__ >> "$cfgfile"
6435+ifelse([$1], [],
6436+[#! $SHELL
6437+
6438+# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
6439+# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
6440+# NOTE: Changes made to this file will be lost: look at ltmain.sh.
6441+#
6442+# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
6443+# Free Software Foundation, Inc.
6444+#
6445+# This file is part of GNU Libtool:
6446+# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
6447+#
6448+# This program is free software; you can redistribute it and/or modify
6449+# it under the terms of the GNU General Public License as published by
6450+# the Free Software Foundation; either version 2 of the License, or
6451+# (at your option) any later version.
6452+#
6453+# This program is distributed in the hope that it will be useful, but
6454+# WITHOUT ANY WARRANTY; without even the implied warranty of
6455+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
6456+# General Public License for more details.
6457+#
6458+# You should have received a copy of the GNU General Public License
6459+# along with this program; if not, write to the Free Software
6460+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6461+#
6462+# As a special exception to the GNU General Public License, if you
6463+# distribute this file as part of a program that contains a
6464+# configuration script generated by Autoconf, you may include it under
6465+# the same distribution terms that you use for the rest of that program.
6466+
6467+# A sed program that does not truncate output.
6468+SED=$lt_SED
6469+
6470+# Sed that helps us avoid accidentally triggering echo(1) options like -n.
6471+Xsed="$SED -e s/^X//"
6472+
6473+# The HP-UX ksh and POSIX shell print the target directory to stdout
6474+# if CDPATH is set.
6475+if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
6476+
6477+# The names of the tagged configurations supported by this script.
6478+available_tags=
6479+
6480+# ### BEGIN LIBTOOL CONFIG],
6481+[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
6482+
6483+# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6484+
6485+# Shell to use when invoking shell scripts.
6486+SHELL=$lt_SHELL
6487+
6488+# Whether or not to build shared libraries.
6489+build_libtool_libs=$enable_shared
6490+
6491+# Whether or not to build static libraries.
6492+build_old_libs=$enable_static
6493+
6494+# Whether or not to add -lc for building shared libraries.
6495+build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
6496+
6497+# Whether or not to disallow shared libs when runtime libs are static
6498+allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
6499+
6500+# Whether or not to optimize for fast installation.
6501+fast_install=$enable_fast_install
6502+
6503+# The host system.
6504+host_alias=$host_alias
6505+host=$host
6506+
6507+# An echo program that does not interpret backslashes.
6508+echo=$lt_echo
6509+
6510+# The archiver.
6511+AR=$lt_AR
6512+AR_FLAGS=$lt_AR_FLAGS
6513+
6514+# A C compiler.
6515+LTCC=$lt_LTCC
6516+
6517+# A language-specific compiler.
6518+CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
6519+
6520+# Is the compiler the GNU C compiler?
6521+with_gcc=$_LT_AC_TAGVAR(GCC, $1)
6522+
6523+# An ERE matcher.
6524+EGREP=$lt_EGREP
6525+
6526+# The linker used to build libraries.
6527+LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
6528+
6529+# Whether we need hard or soft links.
6530+LN_S=$lt_LN_S
6531+
6532+# A BSD-compatible nm program.
6533+NM=$lt_NM
6534+
6535+# A symbol stripping program
6536+STRIP=$lt_STRIP
6537+
6538+# Used to examine libraries when file_magic_cmd begins "file"
6539+MAGIC_CMD=$MAGIC_CMD
6540+
6541+# Used on cygwin: DLL creation program.
6542+DLLTOOL="$DLLTOOL"
6543+
6544+# Used on cygwin: object dumper.
6545+OBJDUMP="$OBJDUMP"
6546+
6547+# Used on cygwin: assembler.
6548+AS="$AS"
6549+
6550+# The name of the directory that contains temporary libtool files.
6551+objdir=$objdir
6552+
6553+# How to create reloadable object files.
6554+reload_flag=$lt_reload_flag
6555+reload_cmds=$lt_reload_cmds
6556+
6557+# How to pass a linker flag through the compiler.
6558+wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
6559+
6560+# Object file suffix (normally "o").
6561+objext="$ac_objext"
6562+
6563+# Old archive suffix (normally "a").
6564+libext="$libext"
6565+
6566+# Shared library suffix (normally ".so").
6567+shrext_cmds='$shrext_cmds'
6568+
6569+# Executable file suffix (normally "").
6570+exeext="$exeext"
6571+
6572+# Additional compiler flags for building library objects.
6573+pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
6574+pic_mode=$pic_mode
6575+
6576+# What is the maximum length of a command?
6577+max_cmd_len=$lt_cv_sys_max_cmd_len
6578+
6579+# Does compiler simultaneously support -c and -o options?
6580+compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
6581+
6582+# Must we lock files when doing compilation ?
6583+need_locks=$lt_need_locks
6584+
6585+# Do we need the lib prefix for modules?
6586+need_lib_prefix=$need_lib_prefix
6587+
6588+# Do we need a version for libraries?
6589+need_version=$need_version
6590+
6591+# Whether dlopen is supported.
6592+dlopen_support=$enable_dlopen
6593+
6594+# Whether dlopen of programs is supported.
6595+dlopen_self=$enable_dlopen_self
6596+
6597+# Whether dlopen of statically linked programs is supported.
6598+dlopen_self_static=$enable_dlopen_self_static
6599+
6600+# Compiler flag to prevent dynamic linking.
6601+link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
6602+
6603+# Compiler flag to turn off builtin functions.
6604+no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
6605+
6606+# Compiler flag to allow reflexive dlopens.
6607+export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
6608+
6609+# Compiler flag to generate shared objects directly from archives.
6610+whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
6611+
6612+# Compiler flag to generate thread-safe objects.
6613+thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
6614+
6615+# Library versioning type.
6616+version_type=$version_type
6617+
6618+# Format of library name prefix.
6619+libname_spec=$lt_libname_spec
6620+
6621+# List of archive names. First name is the real one, the rest are links.
6622+# The last name is the one that the linker finds with -lNAME.
6623+library_names_spec=$lt_library_names_spec
6624+
6625+# The coded name of the library, if different from the real name.
6626+soname_spec=$lt_soname_spec
6627+
6628+# Commands used to build and install an old-style archive.
6629+RANLIB=$lt_RANLIB
6630+old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
6631+old_postinstall_cmds=$lt_old_postinstall_cmds
6632+old_postuninstall_cmds=$lt_old_postuninstall_cmds
6633+
6634+# Create an old-style archive from a shared archive.
6635+old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
6636+
6637+# Create a temporary old-style archive to link instead of a shared archive.
6638+old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
6639+
6640+# Commands used to build and install a shared archive.
6641+archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
6642+archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
6643+postinstall_cmds=$lt_postinstall_cmds
6644+postuninstall_cmds=$lt_postuninstall_cmds
6645+
6646+# Commands used to build a loadable module (assumed same as above if empty)
6647+module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
6648+module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
6649+
6650+# Commands to strip libraries.
6651+old_striplib=$lt_old_striplib
6652+striplib=$lt_striplib
6653+
6654+# Dependencies to place before the objects being linked to create a
6655+# shared library.
6656+predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
6657+
6658+# Dependencies to place after the objects being linked to create a
6659+# shared library.
6660+postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
6661+
6662+# Dependencies to place before the objects being linked to create a
6663+# shared library.
6664+predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
6665+
6666+# Dependencies to place after the objects being linked to create a
6667+# shared library.
6668+postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
6669+
6670+# The library search path used internally by the compiler when linking
6671+# a shared library.
6672+compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
6673+
6674+# Method to check whether dependent libraries are shared objects.
6675+deplibs_check_method=$lt_deplibs_check_method
6676+
6677+# Command to use when deplibs_check_method == file_magic.
6678+file_magic_cmd=$lt_file_magic_cmd
6679+
6680+# Flag that allows shared libraries with undefined symbols to be built.
6681+allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
6682+
6683+# Flag that forces no undefined symbols.
6684+no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
6685+
6686+# Commands used to finish a libtool library installation in a directory.
6687+finish_cmds=$lt_finish_cmds
6688+
6689+# Same as above, but a single script fragment to be evaled but not shown.
6690+finish_eval=$lt_finish_eval
6691+
6692+# Take the output of nm and produce a listing of raw symbols and C names.
6693+global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
6694+
6695+# Transform the output of nm in a proper C declaration
6696+global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
6697+
6698+# Transform the output of nm in a C name address pair
6699+global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
6700+
6701+# This is the shared library runtime path variable.
6702+runpath_var=$runpath_var
6703+
6704+# This is the shared library path variable.
6705+shlibpath_var=$shlibpath_var
6706+
6707+# Is shlibpath searched before the hard-coded library search path?
6708+shlibpath_overrides_runpath=$shlibpath_overrides_runpath
6709+
6710+# How to hardcode a shared library path into an executable.
6711+hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
6712+
6713+# Whether we should hardcode library paths into libraries.
6714+hardcode_into_libs=$hardcode_into_libs
6715+
6716+# Flag to hardcode \$libdir into a binary during linking.
6717+# This must work even if \$libdir does not exist.
6718+hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
6719+
6720+# If ld is used when linking, flag to hardcode \$libdir into
6721+# a binary during linking. This must work even if \$libdir does
6722+# not exist.
6723+hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
6724+
6725+# Whether we need a single -rpath flag with a separated argument.
6726+hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
6727+
6728+# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
6729+# resulting binary.
6730+hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
6731+
6732+# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
6733+# resulting binary.
6734+hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
6735+
6736+# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
6737+# the resulting binary.
6738+hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
6739+
6740+# Set to yes if building a shared library automatically hardcodes DIR into the library
6741+# and all subsequent libraries and executables linked against it.
6742+hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
6743+
6744+# Variables whose values should be saved in libtool wrapper scripts and
6745+# restored at relink time.
6746+variables_saved_for_relink="$variables_saved_for_relink"
6747+
6748+# Whether libtool must link a program against all its dependency libraries.
6749+link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
6750+
6751+# Compile-time system search path for libraries
6752+sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
6753+
6754+# Run-time system search path for libraries
6755+sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
6756+
6757+# Fix the shell variable \$srcfile for the compiler.
6758+fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
6759+
6760+# Set to yes if exported symbols are required.
6761+always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
6762+
6763+# The commands to list exported symbols.
6764+export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
6765+
6766+# The commands to extract the exported symbol list from a shared archive.
6767+extract_expsyms_cmds=$lt_extract_expsyms_cmds
6768+
6769+# Symbols that should not be listed in the preloaded symbols.
6770+exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
6771+
6772+# Symbols that must always be exported.
6773+include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
6774+
6775+ifelse([$1],[],
6776+[# ### END LIBTOOL CONFIG],
6777+[# ### END LIBTOOL TAG CONFIG: $tagname])
6778+
6779+__EOF__
6780+
6781+ifelse([$1],[], [
6782+ case $host_os in
6783+ aix3*)
6784+ cat <<\EOF >> "$cfgfile"
6785+
6786+# AIX sometimes has problems with the GCC collect2 program. For some
6787+# reason, if we set the COLLECT_NAMES environment variable, the problems
6788+# vanish in a puff of smoke.
6789+if test "X${COLLECT_NAMES+set}" != Xset; then
6790+ COLLECT_NAMES=
6791+ export COLLECT_NAMES
6792+fi
6793+EOF
6794+ ;;
6795+ esac
6796+
6797+ # We use sed instead of cat because bash on DJGPP gets confused if
6798+ # if finds mixed CR/LF and LF-only lines. Since sed operates in
6799+ # text mode, it properly converts lines to CR/LF. This bash problem
6800+ # is reportedly fixed, but why not run on old versions too?
6801+ sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
6802+
6803+ mv -f "$cfgfile" "$ofile" || \
6804+ (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
6805+ chmod +x "$ofile"
6806+])
6807+else
6808+ # If there is no Makefile yet, we rely on a make rule to execute
6809+ # `config.status --recheck' to rerun these tests and create the
6810+ # libtool script then.
6811+ ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
6812+ if test -f "$ltmain_in"; then
6813+ test -f Makefile && make "$ltmain"
6814+ fi
6815+fi
6816+])# AC_LIBTOOL_CONFIG
6817+
6818+
6819+# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
6820+# -------------------------------------------
6821+AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
6822+[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
6823+
6824+_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
6825+
6826+if test "$GCC" = yes; then
6827+ _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
6828+
6829+ AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
6830+ lt_cv_prog_compiler_rtti_exceptions,
6831+ [-fno-rtti -fno-exceptions], [],
6832+ [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
6833+fi
6834+])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
6835+
6836+
6837+# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
6838+# ---------------------------------
6839+AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
6840+[AC_REQUIRE([AC_CANONICAL_HOST])
6841+AC_REQUIRE([AC_PROG_NM])
6842+AC_REQUIRE([AC_OBJEXT])
6843+# Check for command to grab the raw symbol name followed by C symbol from nm.
6844+AC_MSG_CHECKING([command to parse $NM output from $compiler object])
6845+AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
6846+[
6847+# These are sane defaults that work on at least a few old systems.
6848+# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6849+
6850+# Character class describing NM global symbol codes.
6851+symcode='[[BCDEGRST]]'
6852+
6853+# Regexp to match symbols that can be accessed directly from C.
6854+sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
6855+
6856+# Transform the above into a raw symbol and a C symbol.
6857+symxfrm='\1 \2\3 \3'
6858+
6859+# Transform an extracted symbol line into a proper C declaration
6860+lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6861+
6862+# Transform an extracted symbol line into symbol name and symbol address
6863+lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6864+
6865+# Define system-specific variables.
6866+case $host_os in
6867+aix*)
6868+ symcode='[[BCDT]]'
6869+ ;;
6870+cygwin* | mingw* | pw32*)
6871+ symcode='[[ABCDGISTW]]'
6872+ ;;
6873+hpux*) # Its linker distinguishes data from code symbols
6874+ if test "$host_cpu" = ia64; then
6875+ symcode='[[ABCDEGRST]]'
6876+ fi
6877+ lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6878+ lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6879+ ;;
6880+irix* | nonstopux*)
6881+ symcode='[[BCDEGRST]]'
6882+ ;;
6883+osf*)
6884+ symcode='[[BCDEGQRST]]'
6885+ ;;
6886+solaris* | sysv5*)
6887+ symcode='[[BDRT]]'
6888+ ;;
6889+sysv4)
6890+ symcode='[[DFNSTU]]'
6891+ ;;
6892+esac
6893+
6894+# Handle CRLF in mingw tool chain
6895+opt_cr=
6896+case $build_os in
6897+mingw*)
6898+ opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6899+ ;;
6900+esac
6901+
6902+# If we're using GNU nm, then use its standard symbol codes.
6903+case `$NM -V 2>&1` in
6904+*GNU* | *'with BFD'*)
6905+ symcode='[[ABCDGIRSTW]]' ;;
6906+esac
6907+
6908+# Try without a prefix undercore, then with it.
6909+for ac_symprfx in "" "_"; do
6910+
6911+ # Write the raw and C identifiers.
6912+ lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
6913+
6914+ # Check to see that the pipe works correctly.
6915+ pipe_works=no
6916+
6917+ rm -f conftest*
6918+ cat > conftest.$ac_ext <<EOF
6919+#ifdef __cplusplus
6920+extern "C" {
6921+#endif
6922+char nm_test_var;
6923+void nm_test_func(){}
6924+#ifdef __cplusplus
6925+}
6926+#endif
6927+int main(){nm_test_var='a';nm_test_func();return(0);}
6928+EOF
6929+
6930+ if AC_TRY_EVAL(ac_compile); then
6931+ # Now try to grab the symbols.
6932+ nlist=conftest.nm
6933+ if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
6934+ # Try sorting and uniquifying the output.
6935+ if sort "$nlist" | uniq > "$nlist"T; then
6936+ mv -f "$nlist"T "$nlist"
6937+ else
6938+ rm -f "$nlist"T
6939+ fi
6940+
6941+ # Make sure that we snagged all the symbols we need.
6942+ if grep ' nm_test_var$' "$nlist" >/dev/null; then
6943+ if grep ' nm_test_func$' "$nlist" >/dev/null; then
6944+ cat <<EOF > conftest.$ac_ext
6945+#ifdef __cplusplus
6946+extern "C" {
6947+#endif
6948+
6949+EOF
6950+ # Now generate the symbol file.
6951+ eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6952+
6953+ cat <<EOF >> conftest.$ac_ext
6954+#if defined (__STDC__) && __STDC__
6955+# define lt_ptr_t void *
6956+#else
6957+# define lt_ptr_t char *
6958+# define const
6959+#endif
6960+
6961+/* The mapping between symbol names and symbols. */
6962+const struct {
6963+ const char *name;
6964+ lt_ptr_t address;
6965+}
6966+lt_preloaded_symbols[[]] =
6967+{
6968+EOF
6969+ $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6970+ cat <<\EOF >> conftest.$ac_ext
6971+ {0, (lt_ptr_t) 0}
6972+};
6973+
6974+#ifdef __cplusplus
6975+}
6976+#endif
6977+EOF
6978+ # Now try linking the two files.
6979+ mv conftest.$ac_objext conftstm.$ac_objext
6980+ lt_save_LIBS="$LIBS"
6981+ lt_save_CFLAGS="$CFLAGS"
6982+ LIBS="conftstm.$ac_objext"
6983+ CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
6984+ if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
6985+ pipe_works=yes
6986+ fi
6987+ LIBS="$lt_save_LIBS"
6988+ CFLAGS="$lt_save_CFLAGS"
6989+ else
6990+ echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
6991+ fi
6992+ else
6993+ echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
6994+ fi
6995+ else
6996+ echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
6997+ fi
6998+ else
6999+ echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
7000+ cat conftest.$ac_ext >&5
7001+ fi
7002+ rm -f conftest* conftst*
7003+
7004+ # Do not use the global_symbol_pipe unless it works.
7005+ if test "$pipe_works" = yes; then
7006+ break
7007+ else
7008+ lt_cv_sys_global_symbol_pipe=
7009+ fi
7010+done
7011+])
7012+if test -z "$lt_cv_sys_global_symbol_pipe"; then
7013+ lt_cv_sys_global_symbol_to_cdecl=
7014+fi
7015+if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7016+ AC_MSG_RESULT(failed)
7017+else
7018+ AC_MSG_RESULT(ok)
7019+fi
7020+]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
7021+
7022+
7023+# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
7024+# ---------------------------------------
7025+AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
7026+[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
7027+_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
7028+_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
7029+
7030+AC_MSG_CHECKING([for $compiler option to produce PIC])
7031+ ifelse([$1],[CXX],[
7032+ # C++ specific cases for pic, static, wl, etc.
7033+ if test "$GXX" = yes; then
7034+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7035+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
7036+
7037+ case $host_os in
7038+ aix*)
7039+ # All AIX code is PIC.
7040+ if test "$host_cpu" = ia64; then
7041+ # AIX 5 now supports IA64 processor
7042+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7043+ fi
7044+ ;;
7045+ amigaos*)
7046+ # FIXME: we need at least 68020 code to build shared libraries, but
7047+ # adding the `-m68020' flag to GCC prevents building anything better,
7048+ # like `-m68040'.
7049+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
7050+ ;;
7051+ beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7052+ # PIC is the default for these OSes.
7053+ ;;
7054+ mingw* | os2* | pw32*)
7055+ # This hack is so that the source file can tell whether it is being
7056+ # built for inclusion in a dll (and should export symbols for example).
7057+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
7058+ ;;
7059+ darwin* | rhapsody*)
7060+ # PIC is the default on this platform
7061+ # Common symbols not allowed in MH_DYLIB files
7062+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
7063+ ;;
7064+ *djgpp*)
7065+ # DJGPP does not support shared libraries at all
7066+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
7067+ ;;
7068+ sysv4*MP*)
7069+ if test -d /usr/nec; then
7070+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
7071+ fi
7072+ ;;
7073+ hpux*)
7074+ # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7075+ # not for PA HP-UX.
7076+ case "$host_cpu" in
7077+ hppa*64*|ia64*)
7078+ ;;
7079+ *)
7080+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
7081+ ;;
7082+ esac
7083+ ;;
7084+ *)
7085+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
7086+ ;;
7087+ esac
7088+ else
7089+ case $host_os in
7090+ aix4* | aix5*)
7091+ # All AIX code is PIC.
7092+ if test "$host_cpu" = ia64; then
7093+ # AIX 5 now supports IA64 processor
7094+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7095+ else
7096+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
7097+ fi
7098+ ;;
7099+ chorus*)
7100+ case $cc_basename in
7101+ cxch68)
7102+ # Green Hills C++ Compiler
7103+ # _LT_AC_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"
7104+ ;;
7105+ esac
7106+ ;;
7107+ dgux*)
7108+ case $cc_basename in
7109+ ec++)
7110+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7111+ ;;
7112+ ghcx)
7113+ # Green Hills C++ Compiler
7114+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
7115+ ;;
7116+ *)
7117+ ;;
7118+ esac
7119+ ;;
7120+ freebsd* | kfreebsd*-gnu)
7121+ # FreeBSD uses GNU C++
7122+ ;;
7123+ hpux9* | hpux10* | hpux11*)
7124+ case $cc_basename in
7125+ CC)
7126+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7127+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
7128+ if test "$host_cpu" != ia64; then
7129+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
7130+ fi
7131+ ;;
7132+ aCC)
7133+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7134+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
7135+ case "$host_cpu" in
7136+ hppa*64*|ia64*)
7137+ # +Z the default
7138+ ;;
7139+ *)
7140+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
7141+ ;;
7142+ esac
7143+ ;;
7144+ *)
7145+ ;;
7146+ esac
7147+ ;;
7148+ irix5* | irix6* | nonstopux*)
7149+ case $cc_basename in
7150+ CC)
7151+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7152+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
7153+ # CC pic flag -KPIC is the default.
7154+ ;;
7155+ *)
7156+ ;;
7157+ esac
7158+ ;;
7159+ linux*)
7160+ case $cc_basename in
7161+ KCC)
7162+ # KAI C++ Compiler
7163+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
7164+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
7165+ ;;
7166+ icpc)
7167+ # Intel C++
7168+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7169+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7170+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
7171+ ;;
7172+ cxx)
7173+ # Compaq C++
7174+ # Make sure the PIC flag is empty. It appears that all Alpha
7175+ # Linux and Compaq Tru64 Unix objects are PIC.
7176+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
7177+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
7178+ ;;
7179+ *)
7180+ ;;
7181+ esac
7182+ ;;
7183+ lynxos*)
7184+ ;;
7185+ m88k*)
7186+ ;;
7187+ mvs*)
7188+ case $cc_basename in
7189+ cxx)
7190+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
7191+ ;;
7192+ *)
7193+ ;;
7194+ esac
7195+ ;;
7196+ netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7197+ ;;
7198+ osf3* | osf4* | osf5*)
7199+ case $cc_basename in
7200+ KCC)
7201+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
7202+ ;;
7203+ RCC)
7204+ # Rational C++ 2.4.1
7205+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
7206+ ;;
7207+ cxx)
7208+ # Digital/Compaq C++
7209+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7210+ # Make sure the PIC flag is empty. It appears that all Alpha
7211+ # Linux and Compaq Tru64 Unix objects are PIC.
7212+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
7213+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
7214+ ;;
7215+ *)
7216+ ;;
7217+ esac
7218+ ;;
7219+ psos*)
7220+ ;;
7221+ sco*)
7222+ case $cc_basename in
7223+ CC)
7224+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
7225+ ;;
7226+ *)
7227+ ;;
7228+ esac
7229+ ;;
7230+ solaris*)
7231+ case $cc_basename in
7232+ CC)
7233+ # Sun C++ 4.2, 5.x and Centerline C++
7234+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7235+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7236+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
7237+ ;;
7238+ gcx)
7239+ # Green Hills C++ Compiler
7240+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
7241+ ;;
7242+ *)
7243+ ;;
7244+ esac
7245+ ;;
7246+ sunos4*)
7247+ case $cc_basename in
7248+ CC)
7249+ # Sun C++ 4.x
7250+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
7251+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7252+ ;;
7253+ lcc)
7254+ # Lucid
7255+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
7256+ ;;
7257+ *)
7258+ ;;
7259+ esac
7260+ ;;
7261+ tandem*)
7262+ case $cc_basename in
7263+ NCC)
7264+ # NonStop-UX NCC 3.20
7265+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7266+ ;;
7267+ *)
7268+ ;;
7269+ esac
7270+ ;;
7271+ unixware*)
7272+ ;;
7273+ vxworks*)
7274+ ;;
7275+ *)
7276+ _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
7277+ ;;
7278+ esac
7279+ fi
7280+],
7281+[
7282+ if test "$GCC" = yes; then
7283+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7284+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
7285+
7286+ case $host_os in
7287+ aix*)
7288+ # All AIX code is PIC.
7289+ if test "$host_cpu" = ia64; then
7290+ # AIX 5 now supports IA64 processor
7291+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7292+ fi
7293+ ;;
7294+
7295+ amigaos*)
7296+ # FIXME: we need at least 68020 code to build shared libraries, but
7297+ # adding the `-m68020' flag to GCC prevents building anything better,
7298+ # like `-m68040'.
7299+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
7300+ ;;
7301+
7302+ beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7303+ # PIC is the default for these OSes.
7304+ ;;
7305+
7306+ mingw* | pw32* | os2*)
7307+ # This hack is so that the source file can tell whether it is being
7308+ # built for inclusion in a dll (and should export symbols for example).
7309+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
7310+ ;;
7311+
7312+ darwin* | rhapsody*)
7313+ # PIC is the default on this platform
7314+ # Common symbols not allowed in MH_DYLIB files
7315+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
7316+ ;;
7317+
7318+ msdosdjgpp*)
7319+ # Just because we use GCC doesn't mean we suddenly get shared libraries
7320+ # on systems that don't support them.
7321+ _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
7322+ enable_shared=no
7323+ ;;
7324+
7325+ sysv4*MP*)
7326+ if test -d /usr/nec; then
7327+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
7328+ fi
7329+ ;;
7330+
7331+ hpux*)
7332+ # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7333+ # not for PA HP-UX.
7334+ case "$host_cpu" in
7335+ hppa*64*|ia64*)
7336+ # +Z the default
7337+ ;;
7338+ *)
7339+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
7340+ ;;
7341+ esac
7342+ ;;
7343+
7344+ *)
7345+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
7346+ ;;
7347+ esac
7348+ else
7349+ # PORTME Check for flag to pass linker flags through the system compiler.
7350+ case $host_os in
7351+ aix*)
7352+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7353+ if test "$host_cpu" = ia64; then
7354+ # AIX 5 now supports IA64 processor
7355+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7356+ else
7357+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
7358+ fi
7359+ ;;
7360+
7361+ mingw* | pw32* | os2*)
7362+ # This hack is so that the source file can tell whether it is being
7363+ # built for inclusion in a dll (and should export symbols for example).
7364+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
7365+ ;;
7366+
7367+ hpux9* | hpux10* | hpux11*)
7368+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7369+ # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7370+ # not for PA HP-UX.
7371+ case "$host_cpu" in
7372+ hppa*64*|ia64*)
7373+ # +Z the default
7374+ ;;
7375+ *)
7376+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
7377+ ;;
7378+ esac
7379+ # Is there a better lt_prog_compiler_static that works with the bundled CC?
7380+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
7381+ ;;
7382+
7383+ irix5* | irix6* | nonstopux*)
7384+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7385+ # PIC (with -KPIC) is the default.
7386+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
7387+ ;;
7388+
7389+ newsos6)
7390+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7391+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7392+ ;;
7393+
7394+ linux*)
7395+ case $CC in
7396+ icc* | ecc*)
7397+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7398+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7399+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
7400+ ;;
7401+ ccc*)
7402+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7403+ # All Alpha code is PIC.
7404+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
7405+ ;;
7406+ esac
7407+ ;;
7408+
7409+ osf3* | osf4* | osf5*)
7410+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7411+ # All OSF/1 code is PIC.
7412+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
7413+ ;;
7414+
7415+ sco3.2v5*)
7416+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
7417+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
7418+ ;;
7419+
7420+ solaris*)
7421+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7422+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7423+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7424+ ;;
7425+
7426+ sunos4*)
7427+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
7428+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
7429+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7430+ ;;
7431+
7432+ sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7433+ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7434+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7435+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7436+ ;;
7437+
7438+ sysv4*MP*)
7439+ if test -d /usr/nec ;then
7440+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
7441+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7442+ fi
7443+ ;;
7444+
7445+ uts4*)
7446+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
7447+ _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7448+ ;;
7449+
7450+ *)
7451+ _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
7452+ ;;
7453+ esac
7454+ fi
7455+])
7456+AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
7457+
7458+#
7459+# Check to make sure the PIC flag actually works.
7460+#
7461+if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
7462+ AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
7463+ _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
7464+ [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
7465+ [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
7466+ "" | " "*) ;;
7467+ *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
7468+ esac],
7469+ [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
7470+ _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
7471+fi
7472+case "$host_os" in
7473+ # For platforms which do not support PIC, -DPIC is meaningless:
7474+ *djgpp*)
7475+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
7476+ ;;
7477+ *)
7478+ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
7479+ ;;
7480+esac
7481+])
7482+
7483+
7484+# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
7485+# ------------------------------------
7486+# See if the linker supports building shared libraries.
7487+AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
7488+[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
7489+ifelse([$1],[CXX],[
7490+ _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7491+ case $host_os in
7492+ aix4* | aix5*)
7493+ # If we're using GNU nm, then we don't want the "-C" option.
7494+ # -C means demangle to AIX nm, but means don't demangle with GNU nm
7495+ if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7496+ _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
7497+ else
7498+ _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
7499+ fi
7500+ ;;
7501+ pw32*)
7502+ _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
7503+ ;;
7504+ cygwin* | mingw*)
7505+ _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
7506+ ;;
7507+ linux*)
7508+ _LT_AC_TAGVAR(link_all_deplibs, $1)=no
7509+ ;;
7510+ *)
7511+ _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7512+ ;;
7513+ esac
7514+],[
7515+ runpath_var=
7516+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=
7517+ _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7518+ _LT_AC_TAGVAR(archive_cmds, $1)=
7519+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
7520+ _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
7521+ _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
7522+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
7523+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
7524+ _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
7525+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
7526+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7527+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
7528+ _LT_AC_TAGVAR(hardcode_direct, $1)=no
7529+ _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
7530+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
7531+ _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
7532+ _LT_AC_TAGVAR(hardcode_automatic, $1)=no
7533+ _LT_AC_TAGVAR(module_cmds, $1)=
7534+ _LT_AC_TAGVAR(module_expsym_cmds, $1)=
7535+ _LT_AC_TAGVAR(always_export_symbols, $1)=no
7536+ _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7537+ # include_expsyms should be a list of space-separated symbols to be *always*
7538+ # included in the symbol list
7539+ _LT_AC_TAGVAR(include_expsyms, $1)=
7540+ # exclude_expsyms can be an extended regexp of symbols to exclude
7541+ # it will be wrapped by ` (' and `)$', so one must not match beginning or
7542+ # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7543+ # as well as any symbol that contains `d'.
7544+ _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
7545+ # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7546+ # platforms (ab)use it in PIC code, but their linkers get confused if
7547+ # the symbol is explicitly referenced. Since portable code cannot
7548+ # rely on this symbol name, it's probably fine to never include it in
7549+ # preloaded symbol tables.
7550+ extract_expsyms_cmds=
7551+
7552+ case $host_os in
7553+ cygwin* | mingw* | pw32*)
7554+ # FIXME: the MSVC++ port hasn't been tested in a loooong time
7555+ # When not using gcc, we currently assume that we are using
7556+ # Microsoft Visual C++.
7557+ if test "$GCC" != yes; then
7558+ with_gnu_ld=no
7559+ fi
7560+ ;;
7561+ openbsd*)
7562+ with_gnu_ld=no
7563+ ;;
7564+ esac
7565+
7566+ _LT_AC_TAGVAR(ld_shlibs, $1)=yes
7567+ if test "$with_gnu_ld" = yes; then
7568+ # If archive_cmds runs LD, not CC, wlarc should be empty
7569+ wlarc='${wl}'
7570+
7571+ # See if GNU ld supports shared libraries.
7572+ case $host_os in
7573+ aix3* | aix4* | aix5*)
7574+ # On AIX/PPC, the GNU linker is very broken
7575+ if test "$host_cpu" != ia64; then
7576+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
7577+ cat <<EOF 1>&2
7578+
7579+*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7580+*** to be unable to reliably create shared libraries on AIX.
7581+*** Therefore, libtool is disabling shared libraries support. If you
7582+*** really care for shared libraries, you may want to modify your PATH
7583+*** so that a non-GNU linker is found, and then restart.
7584+
7585+EOF
7586+ fi
7587+ ;;
7588+
7589+ amigaos*)
7590+ _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7591+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7592+ _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7593+
7594+ # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7595+ # that the semantics of dynamic libraries on AmigaOS, at least up
7596+ # to version 4, is to share data among multiple programs linked
7597+ # with the same dynamic library. Since this doesn't match the
7598+ # behavior of shared libraries on other platforms, we can't use
7599+ # them.
7600+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
7601+ ;;
7602+
7603+ beos*)
7604+ if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7605+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
7606+ # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7607+ # support --undefined. This deserves some investigation. FIXME
7608+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7609+ else
7610+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
7611+ fi
7612+ ;;
7613+
7614+ cygwin* | mingw* | pw32*)
7615+ # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
7616+ # as there is no search path for DLLs.
7617+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7618+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
7619+ _LT_AC_TAGVAR(always_export_symbols, $1)=no
7620+ _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
7621+ _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
7622+
7623+ if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7624+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7625+ # If the export-symbols file already is a .def file (1st line
7626+ # is EXPORTS), use it as is; otherwise, prepend...
7627+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7628+ cp $export_symbols $output_objdir/$soname.def;
7629+ else
7630+ echo EXPORTS > $output_objdir/$soname.def;
7631+ cat $export_symbols >> $output_objdir/$soname.def;
7632+ fi~
7633+ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7634+ else
7635+ ld_shlibs=no
7636+ fi
7637+ ;;
7638+
7639+ netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7640+ if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7641+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7642+ wlarc=
7643+ else
7644+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7645+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7646+ fi
7647+ ;;
7648+
7649+ solaris* | sysv5*)
7650+ if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7651+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
7652+ cat <<EOF 1>&2
7653+
7654+*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7655+*** create shared libraries on Solaris systems. Therefore, libtool
7656+*** is disabling shared libraries support. We urge you to upgrade GNU
7657+*** binutils to release 2.9.1 or newer. Another option is to modify
7658+*** your PATH or compiler configuration so that the native linker is
7659+*** used, and then restart.
7660+
7661+EOF
7662+ elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7663+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7664+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7665+ else
7666+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
7667+ fi
7668+ ;;
7669+
7670+ sunos4*)
7671+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7672+ wlarc=
7673+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7674+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7675+ ;;
7676+
7677+ linux*)
7678+ if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7679+ tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7680+ _LT_AC_TAGVAR(archive_cmds, $1)="$tmp_archive_cmds"
7681+ supports_anon_versioning=no
7682+ case `$LD -v 2>/dev/null` in
7683+ *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
7684+ *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7685+ *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7686+ *\ 2.11.*) ;; # other 2.11 versions
7687+ *) supports_anon_versioning=yes ;;
7688+ esac
7689+ if test $supports_anon_versioning = yes; then
7690+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
7691+cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7692+$echo "local: *; };" >> $output_objdir/$libname.ver~
7693+ $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7694+ else
7695+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)="$tmp_archive_cmds"
7696+ fi
7697+ _LT_AC_TAGVAR(link_all_deplibs, $1)=no
7698+ else
7699+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
7700+ fi
7701+ ;;
7702+
7703+ *)
7704+ if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7705+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7706+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7707+ else
7708+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
7709+ fi
7710+ ;;
7711+ esac
7712+
7713+ if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then
7714+ runpath_var=LD_RUN_PATH
7715+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
7716+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
7717+ # ancient GNU ld didn't support --whole-archive et. al.
7718+ if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7719+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7720+ else
7721+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
7722+ fi
7723+ fi
7724+ else
7725+ # PORTME fill in a description of your system's linker (not GNU ld)
7726+ case $host_os in
7727+ aix3*)
7728+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
7729+ _LT_AC_TAGVAR(always_export_symbols, $1)=yes
7730+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
7731+ # Note: this linker hardcodes the directories in LIBPATH if there
7732+ # are no directories specified by -L.
7733+ _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7734+ if test "$GCC" = yes && test -z "$link_static_flag"; then
7735+ # Neither direct hardcoding nor static linking is supported with a
7736+ # broken collect2.
7737+ _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
7738+ fi
7739+ ;;
7740+
7741+ aix4* | aix5*)
7742+ if test "$host_cpu" = ia64; then
7743+ # On IA64, the linker does run time linking by default, so we don't
7744+ # have to do anything special.
7745+ aix_use_runtimelinking=no
7746+ exp_sym_flag='-Bexport'
7747+ no_entry_flag=""
7748+ else
7749+ # If we're using GNU nm, then we don't want the "-C" option.
7750+ # -C means demangle to AIX nm, but means don't demangle with GNU nm
7751+ if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7752+ _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
7753+ else
7754+ _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
7755+ fi
7756+ aix_use_runtimelinking=no
7757+
7758+ # Test if we are trying to use run time linking or normal
7759+ # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7760+ # need to do runtime linking.
7761+ case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
7762+ for ld_flag in $LDFLAGS; do
7763+ if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7764+ aix_use_runtimelinking=yes
7765+ break
7766+ fi
7767+ done
7768+ esac
7769+
7770+ exp_sym_flag='-bexport'
7771+ no_entry_flag='-bnoentry'
7772+ fi
7773+
7774+ # When large executables or shared objects are built, AIX ld can
7775+ # have problems creating the table of contents. If linking a library
7776+ # or program results in "error TOC overflow" add -mminimal-toc to
7777+ # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7778+ # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7779+
7780+ _LT_AC_TAGVAR(archive_cmds, $1)=''
7781+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7782+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
7783+ _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
7784+
7785+ if test "$GCC" = yes; then
7786+ case $host_os in aix4.[012]|aix4.[012].*)
7787+ # We only want to do this on AIX 4.2 and lower, the check
7788+ # below for broken collect2 doesn't work under 4.3+
7789+ collect2name=`${CC} -print-prog-name=collect2`
7790+ if test -f "$collect2name" && \
7791+ strings "$collect2name" | grep resolve_lib_name >/dev/null
7792+ then
7793+ # We have reworked collect2
7794+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7795+ else
7796+ # We have old collect2
7797+ _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
7798+ # It fails to find uninstalled libraries when the uninstalled
7799+ # path is not listed in the libpath. Setting hardcode_minus_L
7800+ # to unsupported forces relinking
7801+ _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7802+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7803+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
7804+ fi
7805+ esac
7806+ shared_flag='-shared'
7807+ else
7808+ # not using gcc
7809+ if test "$host_cpu" = ia64; then
7810+ # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7811+ # chokes on -Wl,-G. The following line is correct:
7812+ shared_flag='-G'
7813+ else
7814+ if test "$aix_use_runtimelinking" = yes; then
7815+ shared_flag='${wl}-G'
7816+ else
7817+ shared_flag='${wl}-bM:SRE'
7818+ fi
7819+ fi
7820+ fi
7821+
7822+ # It seems that -bexpall does not export symbols beginning with
7823+ # underscore (_), so it is better to generate a list of symbols to export.
7824+ _LT_AC_TAGVAR(always_export_symbols, $1)=yes
7825+ if test "$aix_use_runtimelinking" = yes; then
7826+ # Warning - without using the other runtime loading flags (-brtl),
7827+ # -berok will link without error, but may produce a broken library.
7828+ _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
7829+ # Determine the default libpath from the value encoded in an empty executable.
7830+ _LT_AC_SYS_LIBPATH_AIX
7831+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
7832+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7833+ else
7834+ if test "$host_cpu" = ia64; then
7835+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
7836+ _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
7837+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7838+ else
7839+ # Determine the default libpath from the value encoded in an empty executable.
7840+ _LT_AC_SYS_LIBPATH_AIX
7841+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
7842+ # Warning - without using the other run time loading flags,
7843+ # -berok will link without error, but may produce a broken library.
7844+ _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
7845+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
7846+ # -bexpall does not export symbols beginning with underscore (_)
7847+ _LT_AC_TAGVAR(always_export_symbols, $1)=yes
7848+ # Exported symbols can be pulled into shared objects from archives
7849+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
7850+ _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
7851+ # This is similar to how AIX traditionally builds it's shared libraries.
7852+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7853+ fi
7854+ fi
7855+ ;;
7856+
7857+ amigaos*)
7858+ _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7859+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7860+ _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7861+ # see comment about different semantics on the GNU ld section
7862+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
7863+ ;;
7864+
7865+ bsdi4*)
7866+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
7867+ ;;
7868+
7869+ cygwin* | mingw* | pw32*)
7870+ # When not using gcc, we currently assume that we are using
7871+ # Microsoft Visual C++.
7872+ # hardcode_libdir_flag_spec is actually meaningless, as there is
7873+ # no search path for DLLs.
7874+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
7875+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
7876+ # Tell ltmain to make .lib files, not .a files.
7877+ libext=lib
7878+ # Tell ltmain to make .dll files, not .so files.
7879+ shrext_cmds=".dll"
7880+ # FIXME: Setting linknames here is a bad hack.
7881+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7882+ # The linker will automatically build a .lib file if we build a DLL.
7883+ _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
7884+ # FIXME: Should let the user specify the lib program.
7885+ _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
7886+ fix_srcfile_path='`cygpath -w "$srcfile"`'
7887+ _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
7888+ ;;
7889+
7890+ darwin* | rhapsody*)
7891+ if test "$GXX" = yes ; then
7892+ _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7893+ case "$host_os" in
7894+ rhapsody* | darwin1.[[012]])
7895+ _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
7896+ ;;
7897+ *) # Darwin 1.3 on
7898+ if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7899+ _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
7900+ else
7901+ case ${MACOSX_DEPLOYMENT_TARGET} in
7902+ 10.[[012]])
7903+ _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
7904+ ;;
7905+ 10.*)
7906+ _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
7907+ ;;
7908+ esac
7909+ fi
7910+ ;;
7911+ esac
7912+ lt_int_apple_cc_single_mod=no
7913+ output_verbose_link_cmd='echo'
7914+ if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7915+ lt_int_apple_cc_single_mod=yes
7916+ fi
7917+ if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7918+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7919+ else
7920+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -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'
7921+ fi
7922+ _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7923+ # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7924+ if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7925+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7926+ else
7927+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7928+ fi
7929+ _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7930+ _LT_AC_TAGVAR(hardcode_direct, $1)=no
7931+ _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
7932+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
7933+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
7934+ _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
7935+ else
7936+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
7937+ fi
7938+ ;;
7939+
7940+ dgux*)
7941+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7942+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7943+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7944+ ;;
7945+
7946+ freebsd1*)
7947+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
7948+ ;;
7949+
7950+ # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7951+ # support. Future versions do this automatically, but an explicit c++rt0.o
7952+ # does not break anything, and helps significantly (at the cost of a little
7953+ # extra space).
7954+ freebsd2.2*)
7955+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7956+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7957+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7958+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7959+ ;;
7960+
7961+ # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7962+ freebsd2*)
7963+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7964+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7965+ _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7966+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7967+ ;;
7968+
7969+ # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7970+ freebsd* | kfreebsd*-gnu)
7971+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7972+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7973+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7974+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7975+ ;;
7976+
7977+ hpux9*)
7978+ if test "$GCC" = yes; then
7979+ _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7980+ else
7981+ _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7982+ fi
7983+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
7984+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7985+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7986+
7987+ # hardcode_minus_L: Not really in the search PATH,
7988+ # but as the default location of the library.
7989+ _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7990+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7991+ ;;
7992+
7993+ hpux10* | hpux11*)
7994+ if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7995+ case "$host_cpu" in
7996+ hppa*64*|ia64*)
7997+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7998+ ;;
7999+ *)
8000+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8001+ ;;
8002+ esac
8003+ else
8004+ case "$host_cpu" in
8005+ hppa*64*|ia64*)
8006+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8007+ ;;
8008+ *)
8009+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8010+ ;;
8011+ esac
8012+ fi
8013+ if test "$with_gnu_ld" = no; then
8014+ case "$host_cpu" in
8015+ hppa*64*)
8016+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
8017+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
8018+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8019+ _LT_AC_TAGVAR(hardcode_direct, $1)=no
8020+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8021+ ;;
8022+ ia64*)
8023+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8024+ _LT_AC_TAGVAR(hardcode_direct, $1)=no
8025+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8026+
8027+ # hardcode_minus_L: Not really in the search PATH,
8028+ # but as the default location of the library.
8029+ _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
8030+ ;;
8031+ *)
8032+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
8033+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8034+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes
8035+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
8036+
8037+ # hardcode_minus_L: Not really in the search PATH,
8038+ # but as the default location of the library.
8039+ _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
8040+ ;;
8041+ esac
8042+ fi
8043+ ;;
8044+
8045+ irix5* | irix6* | nonstopux*)
8046+ if test "$GCC" = yes; then
8047+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8048+ else
8049+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8050+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
8051+ fi
8052+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8053+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8054+ _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
8055+ ;;
8056+
8057+ netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
8058+ if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8059+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8060+ else
8061+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8062+ fi
8063+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8064+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes
8065+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8066+ ;;
8067+
8068+ newsos6)
8069+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8070+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes
8071+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8072+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8073+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8074+ ;;
8075+
8076+ openbsd*)
8077+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes
8078+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8079+ if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8080+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8081+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
8082+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
8083+ else
8084+ case $host_os in
8085+ openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
8086+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8087+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8088+ ;;
8089+ *)
8090+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8091+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
8092+ ;;
8093+ esac
8094+ fi
8095+ ;;
8096+
8097+ os2*)
8098+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8099+ _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
8100+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
8101+ _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8102+ _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8103+ ;;
8104+
8105+ osf3*)
8106+ if test "$GCC" = yes; then
8107+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
8108+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8109+ else
8110+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
8111+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8112+ fi
8113+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8114+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8115+ ;;
8116+
8117+ osf4* | osf5*) # as osf3* with the addition of -msym flag
8118+ if test "$GCC" = yes; then
8119+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
8120+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8121+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8122+ else
8123+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
8124+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8125+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8126+ $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
8127+
8128+ # Both c and cxx compiler support -rpath directly
8129+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
8130+ fi
8131+ _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8132+ ;;
8133+
8134+ sco3.2v5*)
8135+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8136+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8137+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
8138+ runpath_var=LD_RUN_PATH
8139+ hardcode_runpath_var=yes
8140+ ;;
8141+
8142+ solaris*)
8143+ _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
8144+ if test "$GCC" = yes; then
8145+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8146+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8147+ $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8148+ else
8149+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8150+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8151+ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8152+ fi
8153+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8154+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8155+ case $host_os in
8156+ solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
8157+ *) # Supported since Solaris 2.6 (maybe 2.5.1?)
8158+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
8159+ esac
8160+ _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
8161+ ;;
8162+
8163+ sunos4*)
8164+ if test "x$host_vendor" = xsequent; then
8165+ # Use $CC to link under sequent, because it throws in some extra .o
8166+ # files that make .init and .fini sections work.
8167+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8168+ else
8169+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8170+ fi
8171+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8172+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes
8173+ _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
8174+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8175+ ;;
8176+
8177+ sysv4)
8178+ case $host_vendor in
8179+ sni)
8180+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8181+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
8182+ ;;
8183+ siemens)
8184+ ## LD is ld it makes a PLAMLIB
8185+ ## CC just makes a GrossModule.
8186+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8187+ _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
8188+ _LT_AC_TAGVAR(hardcode_direct, $1)=no
8189+ ;;
8190+ motorola)
8191+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8192+ _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
8193+ ;;
8194+ esac
8195+ runpath_var='LD_RUN_PATH'
8196+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8197+ ;;
8198+
8199+ sysv4.3*)
8200+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8201+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8202+ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
8203+ ;;
8204+
8205+ sysv4*MP*)
8206+ if test -d /usr/nec; then
8207+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8208+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8209+ runpath_var=LD_RUN_PATH
8210+ hardcode_runpath_var=yes
8211+ _LT_AC_TAGVAR(ld_shlibs, $1)=yes
8212+ fi
8213+ ;;
8214+
8215+ sysv4.2uw2*)
8216+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8217+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes
8218+ _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
8219+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8220+ hardcode_runpath_var=yes
8221+ runpath_var=LD_RUN_PATH
8222+ ;;
8223+
8224+ sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
8225+ _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
8226+ if test "$GCC" = yes; then
8227+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8228+ else
8229+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8230+ fi
8231+ runpath_var='LD_RUN_PATH'
8232+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8233+ ;;
8234+
8235+ sysv5*)
8236+ _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
8237+ # $CC -shared without GNU ld will not create a library from C++
8238+ # object files and a static libstdc++, better avoid it by now
8239+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8240+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8241+ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8242+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
8243+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8244+ runpath_var='LD_RUN_PATH'
8245+ ;;
8246+
8247+ uts4*)
8248+ _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8249+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8250+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8251+ ;;
8252+
8253+ *)
8254+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
8255+ ;;
8256+ esac
8257+ fi
8258+])
8259+AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
8260+test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
8261+
8262+variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8263+if test "$GCC" = yes; then
8264+ variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8265+fi
8266+
8267+#
8268+# Do we need to explicitly link libc?
8269+#
8270+case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
8271+x|xyes)
8272+ # Assume -lc should be added
8273+ _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
8274+
8275+ if test "$enable_shared" = yes && test "$GCC" = yes; then
8276+ case $_LT_AC_TAGVAR(archive_cmds, $1) in
8277+ *'~'*)
8278+ # FIXME: we may have to deal with multi-command sequences.
8279+ ;;
8280+ '$CC '*)
8281+ # Test whether the compiler implicitly links with -lc since on some
8282+ # systems, -lgcc has to come before -lc. If gcc already passes -lc
8283+ # to ld, don't add -lc before -lgcc.
8284+ AC_MSG_CHECKING([whether -lc should be explicitly linked in])
8285+ $rm conftest*
8286+ printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8287+
8288+ if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
8289+ soname=conftest
8290+ lib=conftest
8291+ libobjs=conftest.$ac_objext
8292+ deplibs=
8293+ wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
8294+ compiler_flags=-v
8295+ linker_flags=-v
8296+ verstring=
8297+ output_objdir=.
8298+ libname=conftest
8299+ lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
8300+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=
8301+ if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
8302+ then
8303+ _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
8304+ else
8305+ _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
8306+ fi
8307+ _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
8308+ else
8309+ cat conftest.err 1>&5
8310+ fi
8311+ $rm conftest*
8312+ AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
8313+ ;;
8314+ esac
8315+ fi
8316+ ;;
8317+esac
8318+])# AC_LIBTOOL_PROG_LD_SHLIBS
8319+
8320+
8321+# _LT_AC_FILE_LTDLL_C
8322+# -------------------
8323+# Be careful that the start marker always follows a newline.
8324+AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
8325+# /* ltdll.c starts here */
8326+# #define WIN32_LEAN_AND_MEAN
8327+# #include <windows.h>
8328+# #undef WIN32_LEAN_AND_MEAN
8329+# #include <stdio.h>
8330+#
8331+# #ifndef __CYGWIN__
8332+# # ifdef __CYGWIN32__
8333+# # define __CYGWIN__ __CYGWIN32__
8334+# # endif
8335+# #endif
8336+#
8337+# #ifdef __cplusplus
8338+# extern "C" {
8339+# #endif
8340+# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
8341+# #ifdef __cplusplus
8342+# }
8343+# #endif
8344+#
8345+# #ifdef __CYGWIN__
8346+# #include <cygwin/cygwin_dll.h>
8347+# DECLARE_CYGWIN_DLL( DllMain );
8348+# #endif
8349+# HINSTANCE __hDllInstance_base;
8350+#
8351+# BOOL APIENTRY
8352+# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8353+# {
8354+# __hDllInstance_base = hInst;
8355+# return TRUE;
8356+# }
8357+# /* ltdll.c ends here */
8358+])# _LT_AC_FILE_LTDLL_C
8359+
8360+
8361+# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
8362+# ---------------------------------
8363+AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
8364+
8365+
8366+# old names
8367+AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
8368+AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
8369+AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
8370+AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
8371+AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
8372+AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
8373+AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
8374+
8375+# This is just to silence aclocal about the macro not being used
8376+ifelse([AC_DISABLE_FAST_INSTALL])
8377+
8378+AC_DEFUN([LT_AC_PROG_GCJ],
8379+[AC_CHECK_TOOL(GCJ, gcj, no)
8380+ test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
8381+ AC_SUBST(GCJFLAGS)
8382+])
8383+
8384+AC_DEFUN([LT_AC_PROG_RC],
8385+[AC_CHECK_TOOL(RC, windres, no)
8386+])
8387+
8388+# NOTE: This macro has been submitted for inclusion into #
8389+# GNU Autoconf as AC_PROG_SED. When it is available in #
8390+# a released version of Autoconf we should remove this #
8391+# macro and use it instead. #
8392+# LT_AC_PROG_SED
8393+# --------------
8394+# Check for a fully-functional sed program, that truncates
8395+# as few characters as possible. Prefer GNU sed if found.
8396+AC_DEFUN([LT_AC_PROG_SED],
8397+[AC_MSG_CHECKING([for a sed that does not truncate output])
8398+AC_CACHE_VAL(lt_cv_path_SED,
8399+[# Loop through the user's path and test for sed and gsed.
8400+# Then use that list of sed's as ones to test for truncation.
8401+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8402+for as_dir in $PATH
8403+do
8404+ IFS=$as_save_IFS
8405+ test -z "$as_dir" && as_dir=.
8406+ for lt_ac_prog in sed gsed; do
8407+ for ac_exec_ext in '' $ac_executable_extensions; do
8408+ if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
8409+ lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
8410+ fi
8411+ done
8412+ done
8413+done
8414+lt_ac_max=0
8415+lt_ac_count=0
8416+# Add /usr/xpg4/bin/sed as it is typically found on Solaris
8417+# along with /bin/sed that truncates output.
8418+for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
8419+ test ! -f $lt_ac_sed && break
8420+ cat /dev/null > conftest.in
8421+ lt_ac_count=0
8422+ echo $ECHO_N "0123456789$ECHO_C" >conftest.in
8423+ # Check for GNU sed and select it if it is found.
8424+ if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
8425+ lt_cv_path_SED=$lt_ac_sed
8426+ break
8427+ fi
8428+ while true; do
8429+ cat conftest.in conftest.in >conftest.tmp
8430+ mv conftest.tmp conftest.in
8431+ cp conftest.in conftest.nl
8432+ echo >>conftest.nl
8433+ $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
8434+ cmp -s conftest.out conftest.nl || break
8435+ # 10000 chars as input seems more than enough
8436+ test $lt_ac_count -gt 10 && break
8437+ lt_ac_count=`expr $lt_ac_count + 1`
8438+ if test $lt_ac_count -gt $lt_ac_max; then
8439+ lt_ac_max=$lt_ac_count
8440+ lt_cv_path_SED=$lt_ac_sed
8441+ fi
8442+ done
8443+done
8444+SED=$lt_cv_path_SED
8445+])
8446+AC_MSG_RESULT([$SED])
8447+])
8448+
8449+# Add --enable-maintainer-mode option to configure.
8450+# From Jim Meyering
8451+
8452+# Copyright 1996, 1998, 2000, 2001, 2002 Free Software Foundation, Inc.
8453+
8454+# This program is free software; you can redistribute it and/or modify
8455+# it under the terms of the GNU General Public License as published by
8456+# the Free Software Foundation; either version 2, or (at your option)
8457+# any later version.
8458+
8459+# This program is distributed in the hope that it will be useful,
8460+# but WITHOUT ANY WARRANTY; without even the implied warranty of
8461+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
8462+# GNU General Public License for more details.
8463+
8464+# You should have received a copy of the GNU General Public License
8465+# along with this program; if not, write to the Free Software
8466+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
8467+# 02111-1307, USA.
8468+
8469+# serial 2
8470+
8471+AC_DEFUN([AM_MAINTAINER_MODE],
8472+[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
8473+ dnl maintainer-mode is disabled by default
8474+ AC_ARG_ENABLE(maintainer-mode,
8475+[ --enable-maintainer-mode enable make rules and dependencies not useful
8476+ (and sometimes confusing) to the casual installer],
8477+ USE_MAINTAINER_MODE=$enableval,
8478+ USE_MAINTAINER_MODE=no)
8479+ AC_MSG_RESULT([$USE_MAINTAINER_MODE])
8480+ AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
8481+ MAINT=$MAINTAINER_MODE_TRUE
8482+ AC_SUBST(MAINT)dnl
8483+]
8484+)
8485+
8486+AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
8487+
8488--- agsync-0.2-pre.orig/ltmain.sh
8489+++ agsync-0.2-pre/ltmain.sh
8490@@ -0,0 +1,6426 @@
8491+# ltmain.sh - Provide generalized library-building support services.
8492+# NOTE: Changing this file will not affect anything until you rerun configure.
8493+#
8494+# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004
8495+# Free Software Foundation, Inc.
8496+# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8497+#
8498+# This program is free software; you can redistribute it and/or modify
8499+# it under the terms of the GNU General Public License as published by
8500+# the Free Software Foundation; either version 2 of the License, or
8501+# (at your option) any later version.
8502+#
8503+# This program is distributed in the hope that it will be useful, but
8504+# WITHOUT ANY WARRANTY; without even the implied warranty of
8505+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8506+# General Public License for more details.
8507+#
8508+# You should have received a copy of the GNU General Public License
8509+# along with this program; if not, write to the Free Software
8510+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8511+#
8512+# As a special exception to the GNU General Public License, if you
8513+# distribute this file as part of a program that contains a
8514+# configuration script generated by Autoconf, you may include it under
8515+# the same distribution terms that you use for the rest of that program.
8516+
8517+basename="s,^.*/,,g"
8518+
8519+# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
8520+# is ksh but when the shell is invoked as "sh" and the current value of
8521+# the _XPG environment variable is not equal to 1 (one), the special
8522+# positional parameter $0, within a function call, is the name of the
8523+# function.
8524+progpath="$0"
8525+
8526+# The name of this program:
8527+progname=`echo "$progpath" | $SED $basename`
8528+modename="$progname"
8529+
8530+# Global variables:
8531+EXIT_SUCCESS=0
8532+EXIT_FAILURE=1
8533+
8534+PROGRAM=ltmain.sh
8535+PACKAGE=libtool
8536+VERSION=1.5.6
8537+TIMESTAMP=" (1.1220.2.95 2004/04/11 05:50:42) Debian$Rev: 224 $"
8538+
8539+
8540+# Check that we have a working $echo.
8541+if test "X$1" = X--no-reexec; then
8542+ # Discard the --no-reexec flag, and continue.
8543+ shift
8544+elif test "X$1" = X--fallback-echo; then
8545+ # Avoid inline document here, it may be left over
8546+ :
8547+elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
8548+ # Yippee, $echo works!
8549+ :
8550+else
8551+ # Restart under the correct shell, and then maybe $echo will work.
8552+ exec $SHELL "$progpath" --no-reexec ${1+"$@"}
8553+fi
8554+
8555+if test "X$1" = X--fallback-echo; then
8556+ # used as fallback echo
8557+ shift
8558+ cat <<EOF
8559+$*
8560+EOF
8561+ exit $EXIT_SUCCESS
8562+fi
8563+
8564+default_mode=
8565+help="Try \`$progname --help' for more information."
8566+magic="%%%MAGIC variable%%%"
8567+mkdir="mkdir"
8568+mv="mv -f"
8569+rm="rm -f"
8570+
8571+# Sed substitution that helps us do robust quoting. It backslashifies
8572+# metacharacters that are still active within double-quoted strings.
8573+Xsed="${SED}"' -e 1s/^X//'
8574+sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
8575+# test EBCDIC or ASCII
8576+case `echo A|tr A '\301'` in
8577+ A) # EBCDIC based system
8578+ SP2NL="tr '\100' '\n'"
8579+ NL2SP="tr '\r\n' '\100\100'"
8580+ ;;
8581+ *) # Assume ASCII based system
8582+ SP2NL="tr '\040' '\012'"
8583+ NL2SP="tr '\015\012' '\040\040'"
8584+ ;;
8585+esac
8586+
8587+# NLS nuisances.
8588+# Only set LANG and LC_ALL to C if already set.
8589+# These must not be set unconditionally because not all systems understand
8590+# e.g. LANG=C (notably SCO).
8591+# We save the old values to restore during execute mode.
8592+if test "${LC_ALL+set}" = set; then
8593+ save_LC_ALL="$LC_ALL"; LC_ALL=C; export LC_ALL
8594+fi
8595+if test "${LANG+set}" = set; then
8596+ save_LANG="$LANG"; LANG=C; export LANG
8597+fi
8598+
8599+# Make sure IFS has a sensible default
8600+: ${IFS="
8601+"}
8602+
8603+if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
8604+ $echo "$modename: not configured to build any kind of library" 1>&2
8605+ $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
8606+ exit $EXIT_FAILURE
8607+fi
8608+
8609+# Global variables.
8610+mode=$default_mode
8611+nonopt=
8612+prev=
8613+prevopt=
8614+run=
8615+show="$echo"
8616+show_help=
8617+execute_dlfiles=
8618+lo2o="s/\\.lo\$/.${objext}/"
8619+o2lo="s/\\.${objext}\$/.lo/"
8620+
8621+#####################################
8622+# Shell function definitions:
8623+# This seems to be the best place for them
8624+
8625+# func_win32_libid arg
8626+# return the library type of file 'arg'
8627+#
8628+# Need a lot of goo to handle *both* DLLs and import libs
8629+# Has to be a shell function in order to 'eat' the argument
8630+# that is supplied when $file_magic_command is called.
8631+func_win32_libid () {
8632+ win32_libid_type="unknown"
8633+ win32_fileres=`file -L $1 2>/dev/null`
8634+ case $win32_fileres in
8635+ *ar\ archive\ import\ library*) # definitely import
8636+ win32_libid_type="x86 archive import"
8637+ ;;
8638+ *ar\ archive*) # could be an import, or static
8639+ if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \
8640+ $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
8641+ win32_nmres=`eval $NM -f posix -A $1 | \
8642+ sed -n -e '1,100{/ I /{x;/import/!{s/^/import/;h;p;};x;};}'`
8643+ if test "X$win32_nmres" = "Ximport" ; then
8644+ win32_libid_type="x86 archive import"
8645+ else
8646+ win32_libid_type="x86 archive static"
8647+ fi
8648+ fi
8649+ ;;
8650+ *DLL*)
8651+ win32_libid_type="x86 DLL"
8652+ ;;
8653+ *executable*) # but shell scripts are "executable" too...
8654+ case $win32_fileres in
8655+ *MS\ Windows\ PE\ Intel*)
8656+ win32_libid_type="x86 DLL"
8657+ ;;
8658+ esac
8659+ ;;
8660+ esac
8661+ $echo $win32_libid_type
8662+}
8663+
8664+
8665+# func_infer_tag arg
8666+# Infer tagged configuration to use if any are available and
8667+# if one wasn't chosen via the "--tag" command line option.
8668+# Only attempt this if the compiler in the base compile
8669+# command doesn't match the default compiler.
8670+# arg is usually of the form 'gcc ...'
8671+func_infer_tag () {
8672+ if test -n "$available_tags" && test -z "$tagname"; then
8673+ CC_quoted=
8674+ for arg in $CC; do
8675+ case $arg in
8676+ *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
8677+ arg="\"$arg\""
8678+ ;;
8679+ esac
8680+ CC_quoted="$CC_quoted $arg"
8681+ done
8682+ case $@ in
8683+ # Blanks in the command may have been stripped by the calling shell,
8684+ # but not from the CC environment variable when configure was run.
8685+ " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) ;;
8686+ # Blanks at the start of $base_compile will cause this to fail
8687+ # if we don't check for them as well.
8688+ *)
8689+ for z in $available_tags; do
8690+ if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
8691+ # Evaluate the configuration.
8692+ eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
8693+ CC_quoted=
8694+ for arg in $CC; do
8695+ # Double-quote args containing other shell metacharacters.
8696+ case $arg in
8697+ *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
8698+ arg="\"$arg\""
8699+ ;;
8700+ esac
8701+ CC_quoted="$CC_quoted $arg"
8702+ done
8703+ case "$@ " in
8704+ " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*)
8705+ # The compiler in the base compile command matches
8706+ # the one in the tagged configuration.
8707+ # Assume this is the tagged configuration we want.
8708+ tagname=$z
8709+ break
8710+ ;;
8711+ esac
8712+ fi
8713+ done
8714+ # If $tagname still isn't set, then no tagged configuration
8715+ # was found and let the user know that the "--tag" command
8716+ # line option must be used.
8717+ if test -z "$tagname"; then
8718+ $echo "$modename: unable to infer tagged configuration"
8719+ $echo "$modename: specify a tag with \`--tag'" 1>&2
8720+ exit $EXIT_FAILURE
8721+# else
8722+# $echo "$modename: using $tagname tagged configuration"
8723+ fi
8724+ ;;
8725+ esac
8726+ fi
8727+}
8728+# End of Shell function definitions
8729+#####################################
8730+
8731+# Darwin sucks
8732+eval std_shrext=\"$shrext_cmds\"
8733+
8734+# Parse our command line options once, thoroughly.
8735+while test "$#" -gt 0
8736+do
8737+ arg="$1"
8738+ shift
8739+
8740+ case $arg in
8741+ -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;;
8742+ *) optarg= ;;
8743+ esac
8744+
8745+ # If the previous option needs an argument, assign it.
8746+ if test -n "$prev"; then
8747+ case $prev in
8748+ execute_dlfiles)
8749+ execute_dlfiles="$execute_dlfiles $arg"
8750+ ;;
8751+ tag)
8752+ tagname="$arg"
8753+ preserve_args="${preserve_args}=$arg"
8754+
8755+ # Check whether tagname contains only valid characters
8756+ case $tagname in
8757+ *[!-_A-Za-z0-9,/]*)
8758+ $echo "$progname: invalid tag name: $tagname" 1>&2
8759+ exit $EXIT_FAILURE
8760+ ;;
8761+ esac
8762+
8763+ case $tagname in
8764+ CC)
8765+ # Don't test for the "default" C tag, as we know, it's there, but
8766+ # not specially marked.
8767+ ;;
8768+ *)
8769+ if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$progpath" > /dev/null; then
8770+ taglist="$taglist $tagname"
8771+ # Evaluate the configuration.
8772+ eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $progpath`"
8773+ else
8774+ $echo "$progname: ignoring unknown tag $tagname" 1>&2
8775+ fi
8776+ ;;
8777+ esac
8778+ ;;
8779+ *)
8780+ eval "$prev=\$arg"
8781+ ;;
8782+ esac
8783+
8784+ prev=
8785+ prevopt=
8786+ continue
8787+ fi
8788+
8789+ # Have we seen a non-optional argument yet?
8790+ case $arg in
8791+ --help)
8792+ show_help=yes
8793+ ;;
8794+
8795+ --version)
8796+ $echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP"
8797+ $echo
8798+ $echo "Copyright (C) 2003 Free Software Foundation, Inc."
8799+ $echo "This is free software; see the source for copying conditions. There is NO"
8800+ $echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
8801+ exit $EXIT_SUCCESS
8802+ ;;
8803+
8804+ --config)
8805+ ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $progpath
8806+ # Now print the configurations for the tags.
8807+ for tagname in $taglist; do
8808+ ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath"
8809+ done
8810+ exit $EXIT_SUCCESS
8811+ ;;
8812+
8813+ --debug)
8814+ $echo "$progname: enabling shell trace mode"
8815+ set -x
8816+ preserve_args="$preserve_args $arg"
8817+ ;;
8818+
8819+ --dry-run | -n)
8820+ run=:
8821+ ;;
8822+
8823+ --features)
8824+ $echo "host: $host"
8825+ if test "$build_libtool_libs" = yes; then
8826+ $echo "enable shared libraries"
8827+ else
8828+ $echo "disable shared libraries"
8829+ fi
8830+ if test "$build_old_libs" = yes; then
8831+ $echo "enable static libraries"
8832+ else
8833+ $echo "disable static libraries"
8834+ fi
8835+ exit $EXIT_SUCCESS
8836+ ;;
8837+
8838+ --finish) mode="finish" ;;
8839+
8840+ --mode) prevopt="--mode" prev=mode ;;
8841+ --mode=*) mode="$optarg" ;;
8842+
8843+ --preserve-dup-deps) duplicate_deps="yes" ;;
8844+
8845+ --quiet | --silent)
8846+ show=:
8847+ preserve_args="$preserve_args $arg"
8848+ ;;
8849+
8850+ --tag) prevopt="--tag" prev=tag ;;
8851+ --tag=*)
8852+ set tag "$optarg" ${1+"$@"}
8853+ shift
8854+ prev=tag
8855+ preserve_args="$preserve_args --tag"
8856+ ;;
8857+
8858+ -dlopen)
8859+ prevopt="-dlopen"
8860+ prev=execute_dlfiles
8861+ ;;
8862+
8863+ -*)
8864+ $echo "$modename: unrecognized option \`$arg'" 1>&2
8865+ $echo "$help" 1>&2
8866+ exit $EXIT_FAILURE
8867+ ;;
8868+
8869+ *)
8870+ nonopt="$arg"
8871+ break
8872+ ;;
8873+ esac
8874+done
8875+
8876+if test -n "$prevopt"; then
8877+ $echo "$modename: option \`$prevopt' requires an argument" 1>&2
8878+ $echo "$help" 1>&2
8879+ exit $EXIT_FAILURE
8880+fi
8881+
8882+# If this variable is set in any of the actions, the command in it
8883+# will be execed at the end. This prevents here-documents from being
8884+# left over by shells.
8885+exec_cmd=
8886+
8887+if test -z "$show_help"; then
8888+
8889+ # Infer the operation mode.
8890+ if test -z "$mode"; then
8891+ $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2
8892+ $echo "*** Future versions of Libtool will require -mode=MODE be specified." 1>&2
8893+ case $nonopt in
8894+ *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*)
8895+ mode=link
8896+ for arg
8897+ do
8898+ case $arg in
8899+ -c)
8900+ mode=compile
8901+ break
8902+ ;;
8903+ esac
8904+ done
8905+ ;;
8906+ *db | *dbx | *strace | *truss)
8907+ mode=execute
8908+ ;;
8909+ *install*|cp|mv)
8910+ mode=install
8911+ ;;
8912+ *rm)
8913+ mode=uninstall
8914+ ;;
8915+ *)
8916+ # If we have no mode, but dlfiles were specified, then do execute mode.
8917+ test -n "$execute_dlfiles" && mode=execute
8918+
8919+ # Just use the default operation mode.
8920+ if test -z "$mode"; then
8921+ if test -n "$nonopt"; then
8922+ $echo "$modename: warning: cannot infer operation mode from \`$nonopt'" 1>&2
8923+ else
8924+ $echo "$modename: warning: cannot infer operation mode without MODE-ARGS" 1>&2
8925+ fi
8926+ fi
8927+ ;;
8928+ esac
8929+ fi
8930+
8931+ # Only execute mode is allowed to have -dlopen flags.
8932+ if test -n "$execute_dlfiles" && test "$mode" != execute; then
8933+ $echo "$modename: unrecognized option \`-dlopen'" 1>&2
8934+ $echo "$help" 1>&2
8935+ exit $EXIT_FAILURE
8936+ fi
8937+
8938+ # Change the help message to a mode-specific one.
8939+ generic_help="$help"
8940+ help="Try \`$modename --help --mode=$mode' for more information."
8941+
8942+ # These modes are in order of execution frequency so that they run quickly.
8943+ case $mode in
8944+ # libtool compile mode
8945+ compile)
8946+ modename="$modename: compile"
8947+ # Get the compilation command and the source file.
8948+ base_compile=
8949+ srcfile="$nonopt" # always keep a non-empty value in "srcfile"
8950+ suppress_opt=yes
8951+ suppress_output=
8952+ arg_mode=normal
8953+ libobj=
8954+ later=
8955+
8956+ for arg
8957+ do
8958+ case "$arg_mode" in
8959+ arg )
8960+ # do not "continue". Instead, add this to base_compile
8961+ lastarg="$arg"
8962+ arg_mode=normal
8963+ ;;
8964+
8965+ target )
8966+ libobj="$arg"
8967+ arg_mode=normal
8968+ continue
8969+ ;;
8970+
8971+ normal )
8972+ # Accept any command-line options.
8973+ case $arg in
8974+ -o)
8975+ if test -n "$libobj" ; then
8976+ $echo "$modename: you cannot specify \`-o' more than once" 1>&2
8977+ exit $EXIT_FAILURE
8978+ fi
8979+ arg_mode=target
8980+ continue
8981+ ;;
8982+
8983+ -static | -prefer-pic | -prefer-non-pic)
8984+ later="$later $arg"
8985+ continue
8986+ ;;
8987+
8988+ -no-suppress)
8989+ suppress_opt=no
8990+ continue
8991+ ;;
8992+
8993+ -Xcompiler)
8994+ arg_mode=arg # the next one goes into the "base_compile" arg list
8995+ continue # The current "srcfile" will either be retained or
8996+ ;; # replaced later. I would guess that would be a bug.
8997+
8998+ -Wc,*)
8999+ args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"`
9000+ lastarg=
9001+ save_ifs="$IFS"; IFS=','
9002+ for arg in $args; do
9003+ IFS="$save_ifs"
9004+
9005+ # Double-quote args containing other shell metacharacters.
9006+ # Many Bourne shells cannot handle close brackets correctly
9007+ # in scan sets, so we specify it separately.
9008+ case $arg in
9009+ *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
9010+ arg="\"$arg\""
9011+ ;;
9012+ esac
9013+ lastarg="$lastarg $arg"
9014+ done
9015+ IFS="$save_ifs"
9016+ lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"`
9017+
9018+ # Add the arguments to base_compile.
9019+ base_compile="$base_compile $lastarg"
9020+ continue
9021+ ;;
9022+
9023+ * )
9024+ # Accept the current argument as the source file.
9025+ # The previous "srcfile" becomes the current argument.
9026+ #
9027+ lastarg="$srcfile"
9028+ srcfile="$arg"
9029+ ;;
9030+ esac # case $arg
9031+ ;;
9032+ esac # case $arg_mode
9033+
9034+ # Aesthetically quote the previous argument.
9035+ lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"`
9036+
9037+ case $lastarg in
9038+ # Double-quote args containing other shell metacharacters.
9039+ # Many Bourne shells cannot handle close brackets correctly
9040+ # in scan sets, so we specify it separately.
9041+ *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
9042+ lastarg="\"$lastarg\""
9043+ ;;
9044+ esac
9045+
9046+ base_compile="$base_compile $lastarg"
9047+ done # for arg
9048+
9049+ case $arg_mode in
9050+ arg)
9051+ $echo "$modename: you must specify an argument for -Xcompile"
9052+ exit $EXIT_FAILURE
9053+ ;;
9054+ target)
9055+ $echo "$modename: you must specify a target with \`-o'" 1>&2
9056+ exit $EXIT_FAILURE
9057+ ;;
9058+ *)
9059+ # Get the name of the library object.
9060+ [ -z "$libobj" ] && libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'`
9061+ ;;
9062+ esac
9063+
9064+ # Recognize several different file suffixes.
9065+ # If the user specifies -o file.o, it is replaced with file.lo
9066+ xform='[cCFSifmso]'
9067+ case $libobj in
9068+ *.ada) xform=ada ;;
9069+ *.adb) xform=adb ;;
9070+ *.ads) xform=ads ;;
9071+ *.asm) xform=asm ;;
9072+ *.c++) xform=c++ ;;
9073+ *.cc) xform=cc ;;
9074+ *.ii) xform=ii ;;
9075+ *.class) xform=class ;;
9076+ *.cpp) xform=cpp ;;
9077+ *.cxx) xform=cxx ;;
9078+ *.f90) xform=f90 ;;
9079+ *.for) xform=for ;;
9080+ *.java) xform=java ;;
9081+ esac
9082+
9083+ libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`
9084+
9085+ case $libobj in
9086+ *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;;
9087+ *)
9088+ $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2
9089+ exit $EXIT_FAILURE
9090+ ;;
9091+ esac
9092+
9093+ func_infer_tag $base_compile
9094+
9095+ for arg in $later; do
9096+ case $arg in
9097+ -static)
9098+ build_old_libs=yes
9099+ continue
9100+ ;;
9101+
9102+ -prefer-pic)
9103+ pic_mode=yes
9104+ continue
9105+ ;;
9106+
9107+ -prefer-non-pic)
9108+ pic_mode=no
9109+ continue
9110+ ;;
9111+ esac
9112+ done
9113+
9114+ objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
9115+ xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
9116+ if test "X$xdir" = "X$obj"; then
9117+ xdir=
9118+ else
9119+ xdir=$xdir/
9120+ fi
9121+ lobj=${xdir}$objdir/$objname
9122+
9123+ if test -z "$base_compile"; then
9124+ $echo "$modename: you must specify a compilation command" 1>&2
9125+ $echo "$help" 1>&2
9126+ exit $EXIT_FAILURE
9127+ fi
9128+
9129+ # Delete any leftover library objects.
9130+ if test "$build_old_libs" = yes; then
9131+ removelist="$obj $lobj $libobj ${libobj}T"
9132+ else
9133+ removelist="$lobj $libobj ${libobj}T"
9134+ fi
9135+
9136+ $run $rm $removelist
9137+ trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
9138+
9139+ # On Cygwin there's no "real" PIC flag so we must build both object types
9140+ case $host_os in
9141+ cygwin* | mingw* | pw32* | os2*)
9142+ pic_mode=default
9143+ ;;
9144+ esac
9145+ if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then
9146+ # non-PIC code in shared libraries is not supported
9147+ pic_mode=default
9148+ fi
9149+
9150+ # Calculate the filename of the output object if compiler does
9151+ # not support -o with -c
9152+ if test "$compiler_c_o" = no; then
9153+ output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
9154+ lockfile="$output_obj.lock"
9155+ removelist="$removelist $output_obj $lockfile"
9156+ trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
9157+ else
9158+ output_obj=
9159+ need_locks=no
9160+ lockfile=
9161+ fi
9162+
9163+ # Lock this critical section if it is needed
9164+ # We use this script file to make the link, it avoids creating a new file
9165+ if test "$need_locks" = yes; then
9166+ until $run ln "$progpath" "$lockfile" 2>/dev/null; do
9167+ $show "Waiting for $lockfile to be removed"
9168+ sleep 2
9169+ done
9170+ elif test "$need_locks" = warn; then
9171+ if test -f "$lockfile"; then
9172+ $echo "\
9173+*** ERROR, $lockfile exists and contains:
9174+`cat $lockfile 2>/dev/null`
9175+
9176+This indicates that another process is trying to use the same
9177+temporary object file, and libtool could not work around it because
9178+your compiler does not support \`-c' and \`-o' together. If you
9179+repeat this compilation, it may succeed, by chance, but you had better
9180+avoid parallel builds (make -j) in this platform, or get a better
9181+compiler."
9182+
9183+ $run $rm $removelist
9184+ exit $EXIT_FAILURE
9185+ fi
9186+ $echo $srcfile > "$lockfile"
9187+ fi
9188+
9189+ if test -n "$fix_srcfile_path"; then
9190+ eval srcfile=\"$fix_srcfile_path\"
9191+ fi
9192+
9193+ $run $rm "$libobj" "${libobj}T"
9194+
9195+ # Create a libtool object file (analogous to a ".la" file),
9196+ # but don't create it if we're doing a dry run.
9197+ test -z "$run" && cat > ${libobj}T <<EOF
9198+# $libobj - a libtool object file
9199+# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
9200+#
9201+# Please DO NOT delete this file!
9202+# It is necessary for linking the library.
9203+
9204+# Name of the PIC object.
9205+EOF
9206+
9207+ # Only build a PIC object if we are building libtool libraries.
9208+ if test "$build_libtool_libs" = yes; then
9209+ # Without this assignment, base_compile gets emptied.
9210+ fbsd_hideous_sh_bug=$base_compile
9211+
9212+ if test "$pic_mode" != no; then
9213+ command="$base_compile $srcfile $pic_flag"
9214+ else
9215+ # Don't build PIC code
9216+ command="$base_compile $srcfile"
9217+ fi
9218+
9219+ if test ! -d "${xdir}$objdir"; then
9220+ $show "$mkdir ${xdir}$objdir"
9221+ $run $mkdir ${xdir}$objdir
9222+ status=$?
9223+ if test "$status" -ne 0 && test ! -d "${xdir}$objdir"; then
9224+ exit $status
9225+ fi
9226+ fi
9227+
9228+ if test -z "$output_obj"; then
9229+ # Place PIC objects in $objdir
9230+ command="$command -o $lobj"
9231+ fi
9232+
9233+ $run $rm "$lobj" "$output_obj"
9234+
9235+ $show "$command"
9236+ if $run eval "$command"; then :
9237+ else
9238+ test -n "$output_obj" && $run $rm $removelist
9239+ exit $EXIT_FAILURE
9240+ fi
9241+
9242+ if test "$need_locks" = warn &&
9243+ test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
9244+ $echo "\
9245+*** ERROR, $lockfile contains:
9246+`cat $lockfile 2>/dev/null`
9247+
9248+but it should contain:
9249+$srcfile
9250+
9251+This indicates that another process is trying to use the same
9252+temporary object file, and libtool could not work around it because
9253+your compiler does not support \`-c' and \`-o' together. If you
9254+repeat this compilation, it may succeed, by chance, but you had better
9255+avoid parallel builds (make -j) in this platform, or get a better
9256+compiler."
9257+
9258+ $run $rm $removelist
9259+ exit $EXIT_FAILURE
9260+ fi
9261+
9262+ # Just move the object if needed, then go on to compile the next one
9263+ if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
9264+ $show "$mv $output_obj $lobj"
9265+ if $run $mv $output_obj $lobj; then :
9266+ else
9267+ error=$?
9268+ $run $rm $removelist
9269+ exit $error
9270+ fi
9271+ fi
9272+
9273+ # Append the name of the PIC object to the libtool object file.
9274+ test -z "$run" && cat >> ${libobj}T <<EOF
9275+pic_object='$objdir/$objname'
9276+
9277+EOF
9278+
9279+ # Allow error messages only from the first compilation.
9280+ if test "$suppress_opt" = yes; then
9281+ suppress_output=' >/dev/null 2>&1'
9282+ fi
9283+ else
9284+ # No PIC object so indicate it doesn't exist in the libtool
9285+ # object file.
9286+ test -z "$run" && cat >> ${libobj}T <<EOF
9287+pic_object=none
9288+
9289+EOF
9290+ fi
9291+
9292+ # Only build a position-dependent object if we build old libraries.
9293+ if test "$build_old_libs" = yes; then
9294+ if test "$pic_mode" != yes; then
9295+ # Don't build PIC code
9296+ command="$base_compile $srcfile"
9297+ else
9298+ command="$base_compile $srcfile $pic_flag"
9299+ fi
9300+ if test "$compiler_c_o" = yes; then
9301+ command="$command -o $obj"
9302+ fi
9303+
9304+ # Suppress compiler output if we already did a PIC compilation.
9305+ command="$command$suppress_output"
9306+ $run $rm "$obj" "$output_obj"
9307+ $show "$command"
9308+ if $run eval "$command"; then :
9309+ else
9310+ $run $rm $removelist
9311+ exit $EXIT_FAILURE
9312+ fi
9313+
9314+ if test "$need_locks" = warn &&
9315+ test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
9316+ $echo "\
9317+*** ERROR, $lockfile contains:
9318+`cat $lockfile 2>/dev/null`
9319+
9320+but it should contain:
9321+$srcfile
9322+
9323+This indicates that another process is trying to use the same
9324+temporary object file, and libtool could not work around it because
9325+your compiler does not support \`-c' and \`-o' together. If you
9326+repeat this compilation, it may succeed, by chance, but you had better
9327+avoid parallel builds (make -j) in this platform, or get a better
9328+compiler."
9329+
9330+ $run $rm $removelist
9331+ exit $EXIT_FAILURE
9332+ fi
9333+
9334+ # Just move the object if needed
9335+ if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
9336+ $show "$mv $output_obj $obj"
9337+ if $run $mv $output_obj $obj; then :
9338+ else
9339+ error=$?
9340+ $run $rm $removelist
9341+ exit $error
9342+ fi
9343+ fi
9344+
9345+ # Append the name of the non-PIC object the libtool object file.
9346+ # Only append if the libtool object file exists.
9347+ test -z "$run" && cat >> ${libobj}T <<EOF
9348+# Name of the non-PIC object.
9349+non_pic_object='$objname'
9350+
9351+EOF
9352+ else
9353+ # Append the name of the non-PIC object the libtool object file.
9354+ # Only append if the libtool object file exists.
9355+ test -z "$run" && cat >> ${libobj}T <<EOF
9356+# Name of the non-PIC object.
9357+non_pic_object=none
9358+
9359+EOF
9360+ fi
9361+
9362+ $run $mv "${libobj}T" "${libobj}"
9363+
9364+ # Unlock the critical section if it was locked
9365+ if test "$need_locks" != no; then
9366+ $run $rm "$lockfile"
9367+ fi
9368+
9369+ exit $EXIT_SUCCESS
9370+ ;;
9371+
9372+ # libtool link mode
9373+ link | relink)
9374+ modename="$modename: link"
9375+ case $host in
9376+ *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
9377+ # It is impossible to link a dll without this setting, and
9378+ # we shouldn't force the makefile maintainer to figure out
9379+ # which system we are compiling for in order to pass an extra
9380+ # flag for every libtool invocation.
9381+ # allow_undefined=no
9382+
9383+ # FIXME: Unfortunately, there are problems with the above when trying
9384+ # to make a dll which has undefined symbols, in which case not
9385+ # even a static library is built. For now, we need to specify
9386+ # -no-undefined on the libtool link line when we can be certain
9387+ # that all symbols are satisfied, otherwise we get a static library.
9388+ allow_undefined=yes
9389+ ;;
9390+ *)
9391+ allow_undefined=yes
9392+ ;;
9393+ esac
9394+ libtool_args="$nonopt"
9395+ base_compile="$nonopt $@"
9396+ compile_command="$nonopt"
9397+ finalize_command="$nonopt"
9398+
9399+ compile_rpath=
9400+ finalize_rpath=
9401+ compile_shlibpath=
9402+ finalize_shlibpath=
9403+ convenience=
9404+ old_convenience=
9405+ deplibs=
9406+ old_deplibs=
9407+ compiler_flags=
9408+ linker_flags=
9409+ dllsearchpath=
9410+ lib_search_path=`pwd`
9411+ inst_prefix_dir=
9412+
9413+ avoid_version=no
9414+ dlfiles=
9415+ dlprefiles=
9416+ dlself=no
9417+ export_dynamic=no
9418+ export_symbols=
9419+ export_symbols_regex=
9420+ generated=
9421+ libobjs=
9422+ ltlibs=
9423+ module=no
9424+ no_install=no
9425+ objs=
9426+ non_pic_objects=
9427+ precious_files_regex=
9428+ prefer_static_libs=no
9429+ preload=no
9430+ prev=
9431+ prevarg=
9432+ release=
9433+ rpath=
9434+ xrpath=
9435+ perm_rpath=
9436+ temp_rpath=
9437+ thread_safe=no
9438+ vinfo=
9439+ vinfo_number=no
9440+
9441+ func_infer_tag $base_compile
9442+
9443+ # We need to know -static, to get the right output filenames.
9444+ for arg
9445+ do
9446+ case $arg in
9447+ -all-static | -static)
9448+ if test "X$arg" = "X-all-static"; then
9449+ if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
9450+ $echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2
9451+ fi
9452+ if test -n "$link_static_flag"; then
9453+ dlopen_self=$dlopen_self_static
9454+ fi
9455+ else
9456+ if test -z "$pic_flag" && test -n "$link_static_flag"; then
9457+ dlopen_self=$dlopen_self_static
9458+ fi
9459+ fi
9460+ build_libtool_libs=no
9461+ build_old_libs=yes
9462+ prefer_static_libs=yes
9463+ break
9464+ ;;
9465+ esac
9466+ done
9467+
9468+ # See if our shared archives depend on static archives.
9469+ test -n "$old_archive_from_new_cmds" && build_old_libs=yes
9470+
9471+ # Go through the arguments, transforming them on the way.
9472+ while test "$#" -gt 0; do
9473+ arg="$1"
9474+ shift
9475+ case $arg in
9476+ *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
9477+ qarg=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test
9478+ ;;
9479+ *) qarg=$arg ;;
9480+ esac
9481+ libtool_args="$libtool_args $qarg"
9482+
9483+ # If the previous option needs an argument, assign it.
9484+ if test -n "$prev"; then
9485+ case $prev in
9486+ output)
9487+ compile_command="$compile_command @OUTPUT@"
9488+ finalize_command="$finalize_command @OUTPUT@"
9489+ ;;
9490+ esac
9491+
9492+ case $prev in
9493+ dlfiles|dlprefiles)
9494+ if test "$preload" = no; then
9495+ # Add the symbol object into the linking commands.
9496+ compile_command="$compile_command @SYMFILE@"
9497+ finalize_command="$finalize_command @SYMFILE@"
9498+ preload=yes
9499+ fi
9500+ case $arg in
9501+ *.la | *.lo) ;; # We handle these cases below.
9502+ force)
9503+ if test "$dlself" = no; then
9504+ dlself=needless
9505+ export_dynamic=yes
9506+ fi
9507+ prev=
9508+ continue
9509+ ;;
9510+ self)
9511+ if test "$prev" = dlprefiles; then
9512+ dlself=yes
9513+ elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
9514+ dlself=yes
9515+ else
9516+ dlself=needless
9517+ export_dynamic=yes
9518+ fi
9519+ prev=
9520+ continue
9521+ ;;
9522+ *)
9523+ if test "$prev" = dlfiles; then
9524+ dlfiles="$dlfiles $arg"
9525+ else
9526+ dlprefiles="$dlprefiles $arg"
9527+ fi
9528+ prev=
9529+ continue
9530+ ;;
9531+ esac
9532+ ;;
9533+ expsyms)
9534+ export_symbols="$arg"
9535+ if test ! -f "$arg"; then
9536+ $echo "$modename: symbol file \`$arg' does not exist"
9537+ exit $EXIT_FAILURE
9538+ fi
9539+ prev=
9540+ continue
9541+ ;;
9542+ expsyms_regex)
9543+ export_symbols_regex="$arg"
9544+ prev=
9545+ continue
9546+ ;;
9547+ inst_prefix)
9548+ inst_prefix_dir="$arg"
9549+ prev=
9550+ continue
9551+ ;;
9552+ precious_regex)
9553+ precious_files_regex="$arg"
9554+ prev=
9555+ continue
9556+ ;;
9557+ release)
9558+ release="-$arg"
9559+ prev=
9560+ continue
9561+ ;;
9562+ objectlist)
9563+ if test -f "$arg"; then
9564+ save_arg=$arg
9565+ moreargs=
9566+ for fil in `cat $save_arg`
9567+ do
9568+# moreargs="$moreargs $fil"
9569+ arg=$fil
9570+ # A libtool-controlled object.
9571+
9572+ # Check to see that this really is a libtool object.
9573+ if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
9574+ pic_object=
9575+ non_pic_object=
9576+
9577+ # Read the .lo file
9578+ # If there is no directory component, then add one.
9579+ case $arg in
9580+ */* | *\\*) . $arg ;;
9581+ *) . ./$arg ;;
9582+ esac
9583+
9584+ if test -z "$pic_object" || \
9585+ test -z "$non_pic_object" ||
9586+ test "$pic_object" = none && \
9587+ test "$non_pic_object" = none; then
9588+ $echo "$modename: cannot find name of object for \`$arg'" 1>&2
9589+ exit $EXIT_FAILURE
9590+ fi
9591+
9592+ # Extract subdirectory from the argument.
9593+ xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
9594+ if test "X$xdir" = "X$arg"; then
9595+ xdir=
9596+ else
9597+ xdir="$xdir/"
9598+ fi
9599+
9600+ if test "$pic_object" != none; then
9601+ # Prepend the subdirectory the object is found in.
9602+ pic_object="$xdir$pic_object"
9603+
9604+ if test "$prev" = dlfiles; then
9605+ if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
9606+ dlfiles="$dlfiles $pic_object"
9607+ prev=
9608+ continue
9609+ else
9610+ # If libtool objects are unsupported, then we need to preload.
9611+ prev=dlprefiles
9612+ fi
9613+ fi
9614+
9615+ # CHECK ME: I think I busted this. -Ossama
9616+ if test "$prev" = dlprefiles; then
9617+ # Preload the old-style object.
9618+ dlprefiles="$dlprefiles $pic_object"
9619+ prev=
9620+ fi
9621+
9622+ # A PIC object.
9623+ libobjs="$libobjs $pic_object"
9624+ arg="$pic_object"
9625+ fi
9626+
9627+ # Non-PIC object.
9628+ if test "$non_pic_object" != none; then
9629+ # Prepend the subdirectory the object is found in.
9630+ non_pic_object="$xdir$non_pic_object"
9631+
9632+ # A standard non-PIC object
9633+ non_pic_objects="$non_pic_objects $non_pic_object"
9634+ if test -z "$pic_object" || test "$pic_object" = none ; then
9635+ arg="$non_pic_object"
9636+ fi
9637+ fi
9638+ else
9639+ # Only an error if not doing a dry-run.
9640+ if test -z "$run"; then
9641+ $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
9642+ exit $EXIT_FAILURE
9643+ else
9644+ # Dry-run case.
9645+
9646+ # Extract subdirectory from the argument.
9647+ xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
9648+ if test "X$xdir" = "X$arg"; then
9649+ xdir=
9650+ else
9651+ xdir="$xdir/"
9652+ fi
9653+
9654+ pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
9655+ non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
9656+ libobjs="$libobjs $pic_object"
9657+ non_pic_objects="$non_pic_objects $non_pic_object"
9658+ fi
9659+ fi
9660+ done
9661+ else
9662+ $echo "$modename: link input file \`$save_arg' does not exist"
9663+ exit $EXIT_FAILURE
9664+ fi
9665+ arg=$save_arg
9666+ prev=
9667+ continue
9668+ ;;
9669+ rpath | xrpath)
9670+ # We need an absolute path.
9671+ case $arg in
9672+ [\\/]* | [A-Za-z]:[\\/]*) ;;
9673+ *)
9674+ $echo "$modename: only absolute run-paths are allowed" 1>&2
9675+ exit $EXIT_FAILURE
9676+ ;;
9677+ esac
9678+ if test "$prev" = rpath; then
9679+ case "$rpath " in
9680+ *" $arg "*) ;;
9681+ *) rpath="$rpath $arg" ;;
9682+ esac
9683+ else
9684+ case "$xrpath " in
9685+ *" $arg "*) ;;
9686+ *) xrpath="$xrpath $arg" ;;
9687+ esac
9688+ fi
9689+ prev=
9690+ continue
9691+ ;;
9692+ xcompiler)
9693+ compiler_flags="$compiler_flags $qarg"
9694+ prev=
9695+ compile_command="$compile_command $qarg"
9696+ finalize_command="$finalize_command $qarg"
9697+ continue
9698+ ;;
9699+ xlinker)
9700+ linker_flags="$linker_flags $qarg"
9701+ compiler_flags="$compiler_flags $wl$qarg"
9702+ prev=
9703+ compile_command="$compile_command $wl$qarg"
9704+ finalize_command="$finalize_command $wl$qarg"
9705+ continue
9706+ ;;
9707+ xcclinker)
9708+ linker_flags="$linker_flags $qarg"
9709+ compiler_flags="$compiler_flags $qarg"
9710+ prev=
9711+ compile_command="$compile_command $qarg"
9712+ finalize_command="$finalize_command $qarg"
9713+ continue
9714+ ;;
9715+ shrext)
9716+ shrext_cmds="$arg"
9717+ prev=
9718+ continue
9719+ ;;
9720+ *)
9721+ eval "$prev=\"\$arg\""
9722+ prev=
9723+ continue
9724+ ;;
9725+ esac
9726+ fi # test -n "$prev"
9727+
9728+ prevarg="$arg"
9729+
9730+ case $arg in
9731+ -all-static)
9732+ if test -n "$link_static_flag"; then
9733+ compile_command="$compile_command $link_static_flag"
9734+ finalize_command="$finalize_command $link_static_flag"
9735+ fi
9736+ continue
9737+ ;;
9738+
9739+ -allow-undefined)
9740+ # FIXME: remove this flag sometime in the future.
9741+ $echo "$modename: \`-allow-undefined' is deprecated because it is the default" 1>&2
9742+ continue
9743+ ;;
9744+
9745+ -avoid-version)
9746+ avoid_version=yes
9747+ continue
9748+ ;;
9749+
9750+ -dlopen)
9751+ prev=dlfiles
9752+ continue
9753+ ;;
9754+
9755+ -dlpreopen)
9756+ prev=dlprefiles
9757+ continue
9758+ ;;
9759+
9760+ -export-dynamic)
9761+ export_dynamic=yes
9762+ continue
9763+ ;;
9764+
9765+ -export-symbols | -export-symbols-regex)
9766+ if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
9767+ $echo "$modename: more than one -exported-symbols argument is not allowed"
9768+ exit $EXIT_FAILURE
9769+ fi
9770+ if test "X$arg" = "X-export-symbols"; then
9771+ prev=expsyms
9772+ else
9773+ prev=expsyms_regex
9774+ fi
9775+ continue
9776+ ;;
9777+
9778+ -inst-prefix-dir)
9779+ prev=inst_prefix
9780+ continue
9781+ ;;
9782+
9783+ # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
9784+ # so, if we see these flags be careful not to treat them like -L
9785+ -L[A-Z][A-Z]*:*)
9786+ case $with_gcc/$host in
9787+ no/*-*-irix* | /*-*-irix*)
9788+ compile_command="$compile_command $arg"
9789+ finalize_command="$finalize_command $arg"
9790+ ;;
9791+ esac
9792+ continue
9793+ ;;
9794+
9795+ -L*)
9796+ dir=`$echo "X$arg" | $Xsed -e 's/^-L//'`
9797+ # We need an absolute path.
9798+ case $dir in
9799+ [\\/]* | [A-Za-z]:[\\/]*) ;;
9800+ *)
9801+ absdir=`cd "$dir" && pwd`
9802+ if test -z "$absdir"; then
9803+ $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
9804+ exit $EXIT_FAILURE
9805+ fi
9806+ dir="$absdir"
9807+ ;;
9808+ esac
9809+ case "$deplibs " in
9810+ *" -L$dir "*) ;;
9811+ *)
9812+ deplibs="$deplibs -L$dir"
9813+ lib_search_path="$lib_search_path $dir"
9814+ ;;
9815+ esac
9816+ case $host in
9817+ *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
9818+ case :$dllsearchpath: in
9819+ *":$dir:"*) ;;
9820+ *) dllsearchpath="$dllsearchpath:$dir";;
9821+ esac
9822+ ;;
9823+ esac
9824+ continue
9825+ ;;
9826+
9827+ -l*)
9828+ if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
9829+ case $host in
9830+ *-*-cygwin* | *-*-pw32* | *-*-beos*)
9831+ # These systems don't actually have a C or math library (as such)
9832+ continue
9833+ ;;
9834+ *-*-mingw* | *-*-os2*)
9835+ # These systems don't actually have a C library (as such)
9836+ test "X$arg" = "X-lc" && continue
9837+ ;;
9838+ *-*-openbsd* | *-*-freebsd*)
9839+ # Do not include libc due to us having libc/libc_r.
9840+ test "X$arg" = "X-lc" && continue
9841+ ;;
9842+ *-*-rhapsody* | *-*-darwin1.[012])
9843+ # Rhapsody C and math libraries are in the System framework
9844+ deplibs="$deplibs -framework System"
9845+ continue
9846+ esac
9847+ elif test "X$arg" = "X-lc_r"; then
9848+ case $host in
9849+ *-*-openbsd* | *-*-freebsd*)
9850+ # Do not include libc_r directly, use -pthread flag.
9851+ continue
9852+ ;;
9853+ esac
9854+ fi
9855+ deplibs="$deplibs $arg"
9856+ continue
9857+ ;;
9858+
9859+ -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
9860+ deplibs="$deplibs $arg"
9861+ continue
9862+ ;;
9863+
9864+ -module)
9865+ module=yes
9866+ continue
9867+ ;;
9868+
9869+ # gcc -m* arguments should be passed to the linker via $compiler_flags
9870+ # in order to pass architecture information to the linker
9871+ # (e.g. 32 vs 64-bit). This may also be accomplished via -Wl,-mfoo
9872+ # but this is not reliable with gcc because gcc may use -mfoo to
9873+ # select a different linker, different libraries, etc, while
9874+ # -Wl,-mfoo simply passes -mfoo to the linker.
9875+ -m*)
9876+ # Unknown arguments in both finalize_command and compile_command need
9877+ # to be aesthetically quoted because they are evaled later.
9878+ arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
9879+ case $arg in
9880+ *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
9881+ arg="\"$arg\""
9882+ ;;
9883+ esac
9884+ compile_command="$compile_command $arg"
9885+ finalize_command="$finalize_command $arg"
9886+ if test "$with_gcc" = "yes" ; then
9887+ compiler_flags="$compiler_flags $arg"
9888+ fi
9889+ continue
9890+ ;;
9891+
9892+ -shrext)
9893+ prev=shrext
9894+ continue
9895+ ;;
9896+
9897+ -no-fast-install)
9898+ fast_install=no
9899+ continue
9900+ ;;
9901+
9902+ -no-install)
9903+ case $host in
9904+ *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
9905+ # The PATH hackery in wrapper scripts is required on Windows
9906+ # in order for the loader to find any dlls it needs.
9907+ $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2
9908+ $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2
9909+ fast_install=no
9910+ ;;
9911+ *) no_install=yes ;;
9912+ esac
9913+ continue
9914+ ;;
9915+
9916+ -no-undefined)
9917+ allow_undefined=no
9918+ continue
9919+ ;;
9920+
9921+ -objectlist)
9922+ prev=objectlist
9923+ continue
9924+ ;;
9925+
9926+ -o) prev=output ;;
9927+
9928+ -precious-files-regex)
9929+ prev=precious_regex
9930+ continue
9931+ ;;
9932+
9933+ -release)
9934+ prev=release
9935+ continue
9936+ ;;
9937+
9938+ -rpath)
9939+ prev=rpath
9940+ continue
9941+ ;;
9942+
9943+ -R)
9944+ prev=xrpath
9945+ continue
9946+ ;;
9947+
9948+ -R*)
9949+ dir=`$echo "X$arg" | $Xsed -e 's/^-R//'`
9950+ # We need an absolute path.
9951+ case $dir in
9952+ [\\/]* | [A-Za-z]:[\\/]*) ;;
9953+ *)
9954+ $echo "$modename: only absolute run-paths are allowed" 1>&2
9955+ exit $EXIT_FAILURE
9956+ ;;
9957+ esac
9958+ case "$xrpath " in
9959+ *" $dir "*) ;;
9960+ *) xrpath="$xrpath $dir" ;;
9961+ esac
9962+ continue
9963+ ;;
9964+
9965+ -static)
9966+ # The effects of -static are defined in a previous loop.
9967+ # We used to do the same as -all-static on platforms that
9968+ # didn't have a PIC flag, but the assumption that the effects
9969+ # would be equivalent was wrong. It would break on at least
9970+ # Digital Unix and AIX.
9971+ continue
9972+ ;;
9973+
9974+ -thread-safe)
9975+ thread_safe=yes
9976+ continue
9977+ ;;
9978+
9979+ -version-info)
9980+ prev=vinfo
9981+ continue
9982+ ;;
9983+ -version-number)
9984+ prev=vinfo
9985+ vinfo_number=yes
9986+ continue
9987+ ;;
9988+
9989+ -Wc,*)
9990+ args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'`
9991+ arg=
9992+ save_ifs="$IFS"; IFS=','
9993+ for flag in $args; do
9994+ IFS="$save_ifs"
9995+ case $flag in
9996+ *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
9997+ flag="\"$flag\""
9998+ ;;
9999+ esac
10000+ arg="$arg $wl$flag"
10001+ compiler_flags="$compiler_flags $flag"
10002+ done
10003+ IFS="$save_ifs"
10004+ arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
10005+ ;;
10006+
10007+ -Wl,*)
10008+ args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'`
10009+ arg=
10010+ save_ifs="$IFS"; IFS=','
10011+ for flag in $args; do
10012+ IFS="$save_ifs"
10013+ case $flag in
10014+ *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
10015+ flag="\"$flag\""
10016+ ;;
10017+ esac
10018+ arg="$arg $wl$flag"
10019+ compiler_flags="$compiler_flags $wl$flag"
10020+ linker_flags="$linker_flags $flag"
10021+ done
10022+ IFS="$save_ifs"
10023+ arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
10024+ ;;
10025+
10026+ -Xcompiler)
10027+ prev=xcompiler
10028+ continue
10029+ ;;
10030+
10031+ -Xlinker)
10032+ prev=xlinker
10033+ continue
10034+ ;;
10035+
10036+ -XCClinker)
10037+ prev=xcclinker
10038+ continue
10039+ ;;
10040+
10041+ # Some other compiler flag.
10042+ -* | +*)
10043+ # Unknown arguments in both finalize_command and compile_command need
10044+ # to be aesthetically quoted because they are evaled later.
10045+ arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
10046+ case $arg in
10047+ *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
10048+ arg="\"$arg\""
10049+ ;;
10050+ esac
10051+ ;;
10052+
10053+ *.$objext)
10054+ # A standard object.
10055+ objs="$objs $arg"
10056+ ;;
10057+
10058+ *.lo)
10059+ # A libtool-controlled object.
10060+
10061+ # Check to see that this really is a libtool object.
10062+ if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
10063+ pic_object=
10064+ non_pic_object=
10065+
10066+ # Read the .lo file
10067+ # If there is no directory component, then add one.
10068+ case $arg in
10069+ */* | *\\*) . $arg ;;
10070+ *) . ./$arg ;;
10071+ esac
10072+
10073+ if test -z "$pic_object" || \
10074+ test -z "$non_pic_object" ||
10075+ test "$pic_object" = none && \
10076+ test "$non_pic_object" = none; then
10077+ $echo "$modename: cannot find name of object for \`$arg'" 1>&2
10078+ exit $EXIT_FAILURE
10079+ fi
10080+
10081+ # Extract subdirectory from the argument.
10082+ xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
10083+ if test "X$xdir" = "X$arg"; then
10084+ xdir=
10085+ else
10086+ xdir="$xdir/"
10087+ fi
10088+
10089+ if test "$pic_object" != none; then
10090+ # Prepend the subdirectory the object is found in.
10091+ pic_object="$xdir$pic_object"
10092+
10093+ if test "$prev" = dlfiles; then
10094+ if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
10095+ dlfiles="$dlfiles $pic_object"
10096+ prev=
10097+ continue
10098+ else
10099+ # If libtool objects are unsupported, then we need to preload.
10100+ prev=dlprefiles
10101+ fi
10102+ fi
10103+
10104+ # CHECK ME: I think I busted this. -Ossama
10105+ if test "$prev" = dlprefiles; then
10106+ # Preload the old-style object.
10107+ dlprefiles="$dlprefiles $pic_object"
10108+ prev=
10109+ fi
10110+
10111+ # A PIC object.
10112+ libobjs="$libobjs $pic_object"
10113+ arg="$pic_object"
10114+ fi
10115+
10116+ # Non-PIC object.
10117+ if test "$non_pic_object" != none; then
10118+ # Prepend the subdirectory the object is found in.
10119+ non_pic_object="$xdir$non_pic_object"
10120+
10121+ # A standard non-PIC object
10122+ non_pic_objects="$non_pic_objects $non_pic_object"
10123+ if test -z "$pic_object" || test "$pic_object" = none ; then
10124+ arg="$non_pic_object"
10125+ fi
10126+ fi
10127+ else
10128+ # Only an error if not doing a dry-run.
10129+ if test -z "$run"; then
10130+ $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
10131+ exit $EXIT_FAILURE
10132+ else
10133+ # Dry-run case.
10134+
10135+ # Extract subdirectory from the argument.
10136+ xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
10137+ if test "X$xdir" = "X$arg"; then
10138+ xdir=
10139+ else
10140+ xdir="$xdir/"
10141+ fi
10142+
10143+ pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
10144+ non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
10145+ libobjs="$libobjs $pic_object"
10146+ non_pic_objects="$non_pic_objects $non_pic_object"
10147+ fi
10148+ fi
10149+ ;;
10150+
10151+ *.$libext)
10152+ # An archive.
10153+ deplibs="$deplibs $arg"
10154+ old_deplibs="$old_deplibs $arg"
10155+ continue
10156+ ;;
10157+
10158+ *.la)
10159+ # A libtool-controlled library.
10160+
10161+ if test "$prev" = dlfiles; then
10162+ # This library was specified with -dlopen.
10163+ dlfiles="$dlfiles $arg"
10164+ prev=
10165+ elif test "$prev" = dlprefiles; then
10166+ # The library was specified with -dlpreopen.
10167+ dlprefiles="$dlprefiles $arg"
10168+ prev=
10169+ else
10170+ deplibs="$deplibs $arg"
10171+ fi
10172+ continue
10173+ ;;
10174+
10175+ # Some other compiler argument.
10176+ *)
10177+ # Unknown arguments in both finalize_command and compile_command need
10178+ # to be aesthetically quoted because they are evaled later.
10179+ arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
10180+ case $arg in
10181+ *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
10182+ arg="\"$arg\""
10183+ ;;
10184+ esac
10185+ ;;
10186+ esac # arg
10187+
10188+ # Now actually substitute the argument into the commands.
10189+ if test -n "$arg"; then
10190+ compile_command="$compile_command $arg"
10191+ finalize_command="$finalize_command $arg"
10192+ fi
10193+ done # argument parsing loop
10194+
10195+ if test -n "$prev"; then
10196+ $echo "$modename: the \`$prevarg' option requires an argument" 1>&2
10197+ $echo "$help" 1>&2
10198+ exit $EXIT_FAILURE
10199+ fi
10200+
10201+ if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
10202+ eval arg=\"$export_dynamic_flag_spec\"
10203+ compile_command="$compile_command $arg"
10204+ finalize_command="$finalize_command $arg"
10205+ fi
10206+
10207+ oldlibs=
10208+ # calculate the name of the file, without its directory
10209+ outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'`
10210+ libobjs_save="$libobjs"
10211+
10212+ if test -n "$shlibpath_var"; then
10213+ # get the directories listed in $shlibpath_var
10214+ eval shlib_search_path=\`\$echo \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
10215+ else
10216+ shlib_search_path=
10217+ fi
10218+ eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
10219+ eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
10220+
10221+ output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'`
10222+ if test "X$output_objdir" = "X$output"; then
10223+ output_objdir="$objdir"
10224+ else
10225+ output_objdir="$output_objdir/$objdir"
10226+ fi
10227+ # Create the object directory.
10228+ if test ! -d "$output_objdir"; then
10229+ $show "$mkdir $output_objdir"
10230+ $run $mkdir $output_objdir
10231+ status=$?
10232+ if test "$status" -ne 0 && test ! -d "$output_objdir"; then
10233+ exit $status
10234+ fi
10235+ fi
10236+
10237+ # Determine the type of output
10238+ case $output in
10239+ "")
10240+ $echo "$modename: you must specify an output file" 1>&2
10241+ $echo "$help" 1>&2
10242+ exit $EXIT_FAILURE
10243+ ;;
10244+ *.$libext) linkmode=oldlib ;;
10245+ *.lo | *.$objext) linkmode=obj ;;
10246+ *.la) linkmode=lib ;;
10247+ *) linkmode=prog ;; # Anything else should be a program.
10248+ esac
10249+
10250+ case $host in
10251+ *cygwin* | *mingw* | *pw32*)
10252+ # don't eliminate duplications in $postdeps and $predeps
10253+ duplicate_compiler_generated_deps=yes
10254+ ;;
10255+ *)
10256+ duplicate_compiler_generated_deps=$duplicate_deps
10257+ ;;
10258+ esac
10259+ specialdeplibs=
10260+
10261+ libs=
10262+ # Find all interdependent deplibs by searching for libraries
10263+ # that are linked more than once (e.g. -la -lb -la)
10264+ for deplib in $deplibs; do
10265+ if test "X$duplicate_deps" = "Xyes" ; then
10266+ case "$libs " in
10267+ *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
10268+ esac
10269+ fi
10270+ libs="$libs $deplib"
10271+ done
10272+
10273+ if test "$linkmode" = lib; then
10274+ libs="$predeps $libs $compiler_lib_search_path $postdeps"
10275+
10276+ # Compute libraries that are listed more than once in $predeps
10277+ # $postdeps and mark them as special (i.e., whose duplicates are
10278+ # not to be eliminated).
10279+ pre_post_deps=
10280+ if test "X$duplicate_compiler_generated_deps" = "Xyes" ; then
10281+ for pre_post_dep in $predeps $postdeps; do
10282+ case "$pre_post_deps " in
10283+ *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
10284+ esac
10285+ pre_post_deps="$pre_post_deps $pre_post_dep"
10286+ done
10287+ fi
10288+ pre_post_deps=
10289+ fi
10290+
10291+ deplibs=
10292+ newdependency_libs=
10293+ newlib_search_path=
10294+ need_relink=no # whether we're linking any uninstalled libtool libraries
10295+ notinst_deplibs= # not-installed libtool libraries
10296+ notinst_path= # paths that contain not-installed libtool libraries
10297+ case $linkmode in
10298+ lib)
10299+ passes="conv link"
10300+ for file in $dlfiles $dlprefiles; do
10301+ case $file in
10302+ *.la) ;;
10303+ *)
10304+ $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2
10305+ exit $EXIT_FAILURE
10306+ ;;
10307+ esac
10308+ done
10309+ ;;
10310+ prog)
10311+ compile_deplibs=
10312+ finalize_deplibs=
10313+ alldeplibs=no
10314+ newdlfiles=
10315+ newdlprefiles=
10316+ passes="conv scan dlopen dlpreopen link"
10317+ ;;
10318+ *) passes="conv"
10319+ ;;
10320+ esac
10321+ for pass in $passes; do
10322+ if test "$linkmode,$pass" = "lib,link" ||
10323+ test "$linkmode,$pass" = "prog,scan"; then
10324+ libs="$deplibs"
10325+ deplibs=
10326+ fi
10327+ if test "$linkmode" = prog; then
10328+ case $pass in
10329+ dlopen) libs="$dlfiles" ;;
10330+ dlpreopen) libs="$dlprefiles" ;;
10331+ link)
10332+ libs="$deplibs %DEPLIBS%"
10333+ test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
10334+ ;;
10335+ esac
10336+ fi
10337+ if test "$pass" = dlopen; then
10338+ # Collect dlpreopened libraries
10339+ save_deplibs="$deplibs"
10340+ deplibs=
10341+ fi
10342+ for deplib in $libs; do
10343+ lib=
10344+ found=no
10345+ case $deplib in
10346+ -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
10347+ if test "$linkmode,$pass" = "prog,link"; then
10348+ compile_deplibs="$deplib $compile_deplibs"
10349+ finalize_deplibs="$deplib $finalize_deplibs"
10350+ else
10351+ deplibs="$deplib $deplibs"
10352+ fi
10353+ continue
10354+ ;;
10355+ -l*)
10356+ if test "$linkmode" != lib && test "$linkmode" != prog; then
10357+ $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2
10358+ continue
10359+ fi
10360+ name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`
10361+ for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do
10362+ for search_ext in .la $std_shrext .so .a; do
10363+ # Search the libtool library
10364+ lib="$searchdir/lib${name}${search_ext}"
10365+ if test -f "$lib"; then
10366+ if test "$search_ext" = ".la"; then
10367+ found=yes
10368+ else
10369+ found=no
10370+ fi
10371+ break 2
10372+ fi
10373+ done
10374+ done
10375+ if test "$found" != yes; then
10376+ # deplib doesn't seem to be a libtool library
10377+ if test "$linkmode,$pass" = "prog,link"; then
10378+ compile_deplibs="$deplib $compile_deplibs"
10379+ finalize_deplibs="$deplib $finalize_deplibs"
10380+ else
10381+ deplibs="$deplib $deplibs"
10382+ test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
10383+ fi
10384+ continue
10385+ else # deplib is a libtool library
10386+ # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
10387+ # We need to do some special things here, and not later.
10388+ if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
10389+ case " $predeps $postdeps " in
10390+ *" $deplib "*)
10391+ if (${SED} -e '2q' $lib |
10392+ grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
10393+ library_names=
10394+ old_library=
10395+ case $lib in
10396+ */* | *\\*) . $lib ;;
10397+ *) . ./$lib ;;
10398+ esac
10399+ for l in $old_library $library_names; do
10400+ ll="$l"
10401+ done
10402+ if test "X$ll" = "X$old_library" ; then # only static version available
10403+ found=no
10404+ ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
10405+ test "X$ladir" = "X$lib" && ladir="."
10406+ lib=$ladir/$old_library
10407+ if test "$linkmode,$pass" = "prog,link"; then
10408+ compile_deplibs="$deplib $compile_deplibs"
10409+ finalize_deplibs="$deplib $finalize_deplibs"
10410+ else
10411+ deplibs="$deplib $deplibs"
10412+ test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
10413+ fi
10414+ continue
10415+ fi
10416+ fi
10417+ ;;
10418+ *) ;;
10419+ esac
10420+ fi
10421+ fi
10422+ ;; # -l
10423+ -L*)
10424+ case $linkmode in
10425+ lib)
10426+ deplibs="$deplib $deplibs"
10427+ test "$pass" = conv && continue
10428+ newdependency_libs="$deplib $newdependency_libs"
10429+ newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
10430+ ;;
10431+ prog)
10432+ if test "$pass" = conv; then
10433+ deplibs="$deplib $deplibs"
10434+ continue
10435+ fi
10436+ if test "$pass" = scan; then
10437+ deplibs="$deplib $deplibs"
10438+ else
10439+ compile_deplibs="$deplib $compile_deplibs"
10440+ finalize_deplibs="$deplib $finalize_deplibs"
10441+ fi
10442+ newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
10443+ ;;
10444+ *)
10445+ $echo "$modename: warning: \`-L' is ignored for archives/objects" 1>&2
10446+ ;;
10447+ esac # linkmode
10448+ continue
10449+ ;; # -L
10450+ -R*)
10451+ if test "$pass" = link; then
10452+ dir=`$echo "X$deplib" | $Xsed -e 's/^-R//'`
10453+ # Make sure the xrpath contains only unique directories.
10454+ case "$xrpath " in
10455+ *" $dir "*) ;;
10456+ *) xrpath="$xrpath $dir" ;;
10457+ esac
10458+ fi
10459+ deplibs="$deplib $deplibs"
10460+ continue
10461+ ;;
10462+ *.la) lib="$deplib" ;;
10463+ *.$libext)
10464+ if test "$pass" = conv; then
10465+ deplibs="$deplib $deplibs"
10466+ continue
10467+ fi
10468+ case $linkmode in
10469+ lib)
10470+ if test "$deplibs_check_method" != pass_all; then
10471+ $echo
10472+ $echo "*** Warning: Trying to link with static lib archive $deplib."
10473+ $echo "*** I have the capability to make that library automatically link in when"
10474+ $echo "*** you link to this library. But I can only do this if you have a"
10475+ $echo "*** shared version of the library, which you do not appear to have"
10476+ $echo "*** because the file extensions .$libext of this argument makes me believe"
10477+ $echo "*** that it is just a static archive that I should not used here."
10478+ else
10479+ $echo
10480+ $echo "*** Warning: Linking the shared library $output against the"
10481+ $echo "*** static library $deplib is not portable!"
10482+ deplibs="$deplib $deplibs"
10483+ fi
10484+ continue
10485+ ;;
10486+ prog)
10487+ if test "$pass" != link; then
10488+ deplibs="$deplib $deplibs"
10489+ else
10490+ compile_deplibs="$deplib $compile_deplibs"
10491+ finalize_deplibs="$deplib $finalize_deplibs"
10492+ fi
10493+ continue
10494+ ;;
10495+ esac # linkmode
10496+ ;; # *.$libext
10497+ *.lo | *.$objext)
10498+ if test "$pass" = conv; then
10499+ deplibs="$deplib $deplibs"
10500+ elif test "$linkmode" = prog; then
10501+ if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
10502+ # If there is no dlopen support or we're linking statically,
10503+ # we need to preload.
10504+ newdlprefiles="$newdlprefiles $deplib"
10505+ compile_deplibs="$deplib $compile_deplibs"
10506+ finalize_deplibs="$deplib $finalize_deplibs"
10507+ else
10508+ newdlfiles="$newdlfiles $deplib"
10509+ fi
10510+ fi
10511+ continue
10512+ ;;
10513+ %DEPLIBS%)
10514+ alldeplibs=yes
10515+ continue
10516+ ;;
10517+ esac # case $deplib
10518+ if test "$found" = yes || test -f "$lib"; then :
10519+ else
10520+ $echo "$modename: cannot find the library \`$lib'" 1>&2
10521+ exit $EXIT_FAILURE
10522+ fi
10523+
10524+ # Check to see that this really is a libtool archive.
10525+ if (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
10526+ else
10527+ $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
10528+ exit $EXIT_FAILURE
10529+ fi
10530+
10531+ ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
10532+ test "X$ladir" = "X$lib" && ladir="."
10533+
10534+ dlname=
10535+ dlopen=
10536+ dlpreopen=
10537+ libdir=
10538+ library_names=
10539+ old_library=
10540+ # If the library was installed with an old release of libtool,
10541+ # it will not redefine variables installed, or shouldnotlink
10542+ installed=yes
10543+ shouldnotlink=no
10544+
10545+ # Read the .la file
10546+ case $lib in
10547+ */* | *\\*) . $lib ;;
10548+ *) . ./$lib ;;
10549+ esac
10550+
10551+ if test "$linkmode,$pass" = "lib,link" ||
10552+ test "$linkmode,$pass" = "prog,scan" ||
10553+ { test "$linkmode" != prog && test "$linkmode" != lib; }; then
10554+ test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
10555+ test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
10556+ fi
10557+
10558+ if test "$pass" = conv; then
10559+ # Only check for convenience libraries
10560+ deplibs="$lib $deplibs"
10561+ if test -z "$libdir"; then
10562+ if test -z "$old_library"; then
10563+ $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
10564+ exit $EXIT_FAILURE
10565+ fi
10566+ # It is a libtool convenience library, so add in its objects.
10567+ convenience="$convenience $ladir/$objdir/$old_library"
10568+ old_convenience="$old_convenience $ladir/$objdir/$old_library"
10569+ tmp_libs=
10570+ for deplib in $dependency_libs; do
10571+ deplibs="$deplib $deplibs"
10572+ if test "X$duplicate_deps" = "Xyes" ; then
10573+ case "$tmp_libs " in
10574+ *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
10575+ esac
10576+ fi
10577+ tmp_libs="$tmp_libs $deplib"
10578+ done
10579+ elif test "$linkmode" != prog && test "$linkmode" != lib; then
10580+ $echo "$modename: \`$lib' is not a convenience library" 1>&2
10581+ exit $EXIT_FAILURE
10582+ fi
10583+ continue
10584+ fi # $pass = conv
10585+
10586+
10587+ # Get the name of the library we link against.
10588+ linklib=
10589+ for l in $old_library $library_names; do
10590+ linklib="$l"
10591+ done
10592+ if test -z "$linklib"; then
10593+ $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
10594+ exit $EXIT_FAILURE
10595+ fi
10596+
10597+ # This library was specified with -dlopen.
10598+ if test "$pass" = dlopen; then
10599+ if test -z "$libdir"; then
10600+ $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2
10601+ exit $EXIT_FAILURE
10602+ fi
10603+ if test -z "$dlname" ||
10604+ test "$dlopen_support" != yes ||
10605+ test "$build_libtool_libs" = no; then
10606+ # If there is no dlname, no dlopen support or we're linking
10607+ # statically, we need to preload. We also need to preload any
10608+ # dependent libraries so libltdl's deplib preloader doesn't
10609+ # bomb out in the load deplibs phase.
10610+ dlprefiles="$dlprefiles $lib $dependency_libs"
10611+ else
10612+ newdlfiles="$newdlfiles $lib"
10613+ fi
10614+ continue
10615+ fi # $pass = dlopen
10616+
10617+ # We need an absolute path.
10618+ case $ladir in
10619+ [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
10620+ *)
10621+ abs_ladir=`cd "$ladir" && pwd`
10622+ if test -z "$abs_ladir"; then
10623+ $echo "$modename: warning: cannot determine absolute directory name of \`$ladir'" 1>&2
10624+ $echo "$modename: passing it literally to the linker, although it might fail" 1>&2
10625+ abs_ladir="$ladir"
10626+ fi
10627+ ;;
10628+ esac
10629+ laname=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
10630+
10631+ # Find the relevant object directory and library name.
10632+ if test "X$installed" = Xyes; then
10633+ if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
10634+ $echo "$modename: warning: library \`$lib' was moved." 1>&2
10635+ dir="$ladir"
10636+ absdir="$abs_ladir"
10637+ libdir="$abs_ladir"
10638+ else
10639+ dir="$libdir"
10640+ absdir="$libdir"
10641+ fi
10642+ else
10643+ dir="$ladir/$objdir"
10644+ absdir="$abs_ladir/$objdir"
10645+ # Remove this search path later
10646+ notinst_path="$notinst_path $abs_ladir"
10647+ fi # $installed = yes
10648+ name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
10649+
10650+ # This library was specified with -dlpreopen.
10651+ if test "$pass" = dlpreopen; then
10652+ if test -z "$libdir"; then
10653+ $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2
10654+ exit $EXIT_FAILURE
10655+ fi
10656+ # Prefer using a static library (so that no silly _DYNAMIC symbols
10657+ # are required to link).
10658+ if test -n "$old_library"; then
10659+ newdlprefiles="$newdlprefiles $dir/$old_library"
10660+ # Otherwise, use the dlname, so that lt_dlopen finds it.
10661+ elif test -n "$dlname"; then
10662+ newdlprefiles="$newdlprefiles $dir/$dlname"
10663+ else
10664+ newdlprefiles="$newdlprefiles $dir/$linklib"
10665+ fi
10666+ fi # $pass = dlpreopen
10667+
10668+ if test -z "$libdir"; then
10669+ # Link the convenience library
10670+ if test "$linkmode" = lib; then
10671+ deplibs="$dir/$old_library $deplibs"
10672+ elif test "$linkmode,$pass" = "prog,link"; then
10673+ compile_deplibs="$dir/$old_library $compile_deplibs"
10674+ finalize_deplibs="$dir/$old_library $finalize_deplibs"
10675+ else
10676+ deplibs="$lib $deplibs" # used for prog,scan pass
10677+ fi
10678+ continue
10679+ fi
10680+
10681+
10682+ if test "$linkmode" = prog && test "$pass" != link; then
10683+ newlib_search_path="$newlib_search_path $ladir"
10684+ deplibs="$lib $deplibs"
10685+
10686+ linkalldeplibs=no
10687+ if test "$link_all_deplibs" != no || test -z "$library_names" ||
10688+ test "$build_libtool_libs" = no; then
10689+ linkalldeplibs=yes
10690+ fi
10691+
10692+ tmp_libs=
10693+ for deplib in $dependency_libs; do
10694+ case $deplib in
10695+ -L*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test
10696+ esac
10697+ # Need to link against all dependency_libs?
10698+ if test "$linkalldeplibs" = yes; then
10699+ deplibs="$deplib $deplibs"
10700+ else
10701+ # Need to hardcode shared library paths
10702+ # or/and link against static libraries
10703+ newdependency_libs="$deplib $newdependency_libs"
10704+ fi
10705+ if test "X$duplicate_deps" = "Xyes" ; then
10706+ case "$tmp_libs " in
10707+ *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
10708+ esac
10709+ fi
10710+ tmp_libs="$tmp_libs $deplib"
10711+ done # for deplib
10712+ continue
10713+ fi # $linkmode = prog...
10714+
10715+ if test "$linkmode,$pass" = "prog,link"; then
10716+ if test -n "$library_names" &&
10717+ { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
10718+ # We need to hardcode the library path
10719+ if test -n "$shlibpath_var"; then
10720+ # Make sure the rpath contains only unique directories.
10721+ case "$temp_rpath " in
10722+ *" $dir "*) ;;
10723+ *" $absdir "*) ;;
10724+ *) temp_rpath="$temp_rpath $dir" ;;
10725+ esac
10726+ fi
10727+
10728+ # Hardcode the library path.
10729+ # Skip directories that are in the system default run-time
10730+ # search path.
10731+ case " $sys_lib_dlsearch_path " in
10732+ *" $absdir "*) ;;
10733+ *)
10734+ case "$compile_rpath " in
10735+ *" $absdir "*) ;;
10736+ *) compile_rpath="$compile_rpath $absdir"
10737+ esac
10738+ ;;
10739+ esac
10740+ case " $sys_lib_dlsearch_path " in
10741+ *" $libdir "*) ;;
10742+ *)
10743+ case "$finalize_rpath " in
10744+ *" $libdir "*) ;;
10745+ *) finalize_rpath="$finalize_rpath $libdir"
10746+ esac
10747+ ;;
10748+ esac
10749+ fi # $linkmode,$pass = prog,link...
10750+
10751+ if test "$alldeplibs" = yes &&
10752+ { test "$deplibs_check_method" = pass_all ||
10753+ { test "$build_libtool_libs" = yes &&
10754+ test -n "$library_names"; }; }; then
10755+ # We only need to search for static libraries
10756+ continue
10757+ fi
10758+ fi
10759+
10760+ link_static=no # Whether the deplib will be linked statically
10761+ if test -n "$library_names" &&
10762+ { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
10763+ if test "$installed" = no; then
10764+ notinst_deplibs="$notinst_deplibs $lib"
10765+ need_relink=yes
10766+ fi
10767+ # This is a shared library
10768+
10769+ # Warn about portability, can't link against -module's on
10770+ # some systems (darwin)
10771+ if test "$shouldnotlink" = yes && test "$pass" = link ; then
10772+ $echo
10773+ if test "$linkmode" = prog; then
10774+ $echo "*** Warning: Linking the executable $output against the loadable module"
10775+ else
10776+ $echo "*** Warning: Linking the shared library $output against the loadable module"
10777+ fi
10778+ $echo "*** $linklib is not portable!"
10779+ fi
10780+ if test "$linkmode" = lib &&
10781+ test "$hardcode_into_libs" = yes; then
10782+ # Hardcode the library path.
10783+ # Skip directories that are in the system default run-time
10784+ # search path.
10785+ case " $sys_lib_dlsearch_path " in
10786+ *" $absdir "*) ;;
10787+ *)
10788+ case "$compile_rpath " in
10789+ *" $absdir "*) ;;
10790+ *) compile_rpath="$compile_rpath $absdir"
10791+ esac
10792+ ;;
10793+ esac
10794+ case " $sys_lib_dlsearch_path " in
10795+ *" $libdir "*) ;;
10796+ *)
10797+ case "$finalize_rpath " in
10798+ *" $libdir "*) ;;
10799+ *) finalize_rpath="$finalize_rpath $libdir"
10800+ esac
10801+ ;;
10802+ esac
10803+ fi
10804+
10805+ if test -n "$old_archive_from_expsyms_cmds"; then
10806+ # figure out the soname
10807+ set dummy $library_names
10808+ realname="$2"
10809+ shift; shift
10810+ libname=`eval \\$echo \"$libname_spec\"`
10811+ # use dlname if we got it. it's perfectly good, no?
10812+ if test -n "$dlname"; then
10813+ soname="$dlname"
10814+ elif test -n "$soname_spec"; then
10815+ # bleh windows
10816+ case $host in
10817+ *cygwin* | mingw*)
10818+ major=`expr $current - $age`
10819+ versuffix="-$major"
10820+ ;;
10821+ esac
10822+ eval soname=\"$soname_spec\"
10823+ else
10824+ soname="$realname"
10825+ fi
10826+
10827+ # Make a new name for the extract_expsyms_cmds to use
10828+ soroot="$soname"
10829+ soname=`$echo $soroot | ${SED} -e 's/^.*\///'`
10830+ newlib="libimp-`$echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a"
10831+
10832+ # If the library has no export list, then create one now
10833+ if test -f "$output_objdir/$soname-def"; then :
10834+ else
10835+ $show "extracting exported symbol list from \`$soname'"
10836+ save_ifs="$IFS"; IFS='~'
10837+ cmds=$extract_expsyms_cmds
10838+ for cmd in $cmds; do
10839+ IFS="$save_ifs"
10840+ eval cmd=\"$cmd\"
10841+ $show "$cmd"
10842+ $run eval "$cmd" || exit $?
10843+ done
10844+ IFS="$save_ifs"
10845+ fi
10846+
10847+ # Create $newlib
10848+ if test -f "$output_objdir/$newlib"; then :; else
10849+ $show "generating import library for \`$soname'"
10850+ save_ifs="$IFS"; IFS='~'
10851+ cmds=$old_archive_from_expsyms_cmds
10852+ for cmd in $cmds; do
10853+ IFS="$save_ifs"
10854+ eval cmd=\"$cmd\"
10855+ $show "$cmd"
10856+ $run eval "$cmd" || exit $?
10857+ done
10858+ IFS="$save_ifs"
10859+ fi
10860+ # make sure the library variables are pointing to the new library
10861+ dir=$output_objdir
10862+ linklib=$newlib
10863+ fi # test -n "$old_archive_from_expsyms_cmds"
10864+
10865+ if test "$linkmode" = prog || test "$mode" != relink; then
10866+ add_shlibpath=
10867+ add_dir=
10868+ add=
10869+ lib_linked=yes
10870+ case $hardcode_action in
10871+ immediate | unsupported)
10872+ if test "$hardcode_direct" = no; then
10873+ add="$dir/$linklib"
10874+ case $host in
10875+ *-*-sco3.2v5* ) add_dir="-L$dir" ;;
10876+ *-*-darwin* )
10877+ # if the lib is a module then we can not link against
10878+ # it, someone is ignoring the new warnings I added
10879+ if /usr/bin/file -L $add 2> /dev/null | $EGREP "bundle" >/dev/null ; then
10880+ $echo "** Warning, lib $linklib is a module, not a shared library"
10881+ if test -z "$old_library" ; then
10882+ $echo
10883+ $echo "** And there doesn't seem to be a static archive available"
10884+ $echo "** The link will probably fail, sorry"
10885+ else
10886+ add="$dir/$old_library"
10887+ fi
10888+ fi
10889+ esac
10890+ elif test "$hardcode_minus_L" = no; then
10891+ case $host in
10892+ *-*-sunos*) add_shlibpath="$dir" ;;
10893+ esac
10894+ add_dir="-L$dir"
10895+ add="-l$name"
10896+ elif test "$hardcode_shlibpath_var" = no; then
10897+ add_shlibpath="$dir"
10898+ add="-l$name"
10899+ else
10900+ lib_linked=no
10901+ fi
10902+ ;;
10903+ relink)
10904+ if test "$hardcode_direct" = yes; then
10905+ add="$dir/$linklib"
10906+ elif test "$hardcode_minus_L" = yes; then
10907+ add_dir="-L$dir"
10908+ # Try looking first in the location we're being installed to.
10909+ if test -n "$inst_prefix_dir"; then
10910+ case "$libdir" in
10911+ [\\/]*)
10912+ add_dir="$add_dir -L$inst_prefix_dir$libdir"
10913+ ;;
10914+ esac
10915+ fi
10916+ add="-l$name"
10917+ elif test "$hardcode_shlibpath_var" = yes; then
10918+ add_shlibpath="$dir"
10919+ add="-l$name"
10920+ else
10921+ lib_linked=no
10922+ fi
10923+ ;;
10924+ *) lib_linked=no ;;
10925+ esac
10926+
10927+ if test "$lib_linked" != yes; then
10928+ $echo "$modename: configuration error: unsupported hardcode properties"
10929+ exit $EXIT_FAILURE
10930+ fi
10931+
10932+ if test -n "$add_shlibpath"; then
10933+ case :$compile_shlibpath: in
10934+ *":$add_shlibpath:"*) ;;
10935+ *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
10936+ esac
10937+ fi
10938+ if test "$linkmode" = prog; then
10939+ test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
10940+ test -n "$add" && compile_deplibs="$add $compile_deplibs"
10941+ else
10942+ test -n "$add_dir" && deplibs="$add_dir $deplibs"
10943+ test -n "$add" && deplibs="$add $deplibs"
10944+ if test "$hardcode_direct" != yes && \
10945+ test "$hardcode_minus_L" != yes && \
10946+ test "$hardcode_shlibpath_var" = yes; then
10947+ case :$finalize_shlibpath: in
10948+ *":$libdir:"*) ;;
10949+ *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
10950+ esac
10951+ fi
10952+ fi
10953+ fi
10954+
10955+ if test "$linkmode" = prog || test "$mode" = relink; then
10956+ add_shlibpath=
10957+ add_dir=
10958+ add=
10959+ # Finalize command for both is simple: just hardcode it.
10960+ if test "$hardcode_direct" = yes; then
10961+ add="$libdir/$linklib"
10962+ elif test "$hardcode_minus_L" = yes; then
10963+ add_dir="-L$libdir"
10964+ add="-l$name"
10965+ elif test "$hardcode_shlibpath_var" = yes; then
10966+ case :$finalize_shlibpath: in
10967+ *":$libdir:"*) ;;
10968+ *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
10969+ esac
10970+ add="-l$name"
10971+ elif test "$hardcode_automatic" = yes; then
10972+ if test -n "$inst_prefix_dir" &&
10973+ test -f "$inst_prefix_dir$libdir/$linklib" ; then
10974+ add="$inst_prefix_dir$libdir/$linklib"
10975+ else
10976+ add="$libdir/$linklib"
10977+ fi
10978+ else
10979+ # We cannot seem to hardcode it, guess we'll fake it.
10980+ add_dir="-L$libdir"
10981+ # Try looking first in the location we're being installed to.
10982+ if test -n "$inst_prefix_dir"; then
10983+ case "$libdir" in
10984+ [\\/]*)
10985+ add_dir="$add_dir -L$inst_prefix_dir$libdir"
10986+ ;;
10987+ esac
10988+ fi
10989+ add="-l$name"
10990+ fi
10991+
10992+ if test "$linkmode" = prog; then
10993+ test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
10994+ test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
10995+ else
10996+ test -n "$add_dir" && deplibs="$add_dir $deplibs"
10997+ test -n "$add" && deplibs="$add $deplibs"
10998+ fi
10999+ fi
11000+ elif test "$linkmode" = prog; then
11001+ # Here we assume that one of hardcode_direct or hardcode_minus_L
11002+ # is not unsupported. This is valid on all known static and
11003+ # shared platforms.
11004+ if test "$hardcode_direct" != unsupported; then
11005+ test -n "$old_library" && linklib="$old_library"
11006+ compile_deplibs="$dir/$linklib $compile_deplibs"
11007+ finalize_deplibs="$dir/$linklib $finalize_deplibs"
11008+ else
11009+ compile_deplibs="-l$name -L$dir $compile_deplibs"
11010+ finalize_deplibs="-l$name -L$dir $finalize_deplibs"
11011+ fi
11012+ elif test "$build_libtool_libs" = yes; then
11013+ # Not a shared library
11014+ if test "$deplibs_check_method" != pass_all; then
11015+ # We're trying link a shared library against a static one
11016+ # but the system doesn't support it.
11017+
11018+ # Just print a warning and add the library to dependency_libs so
11019+ # that the program can be linked against the static library.
11020+ $echo
11021+ $echo "*** Warning: This system can not link to static lib archive $lib."
11022+ $echo "*** I have the capability to make that library automatically link in when"
11023+ $echo "*** you link to this library. But I can only do this if you have a"
11024+ $echo "*** shared version of the library, which you do not appear to have."
11025+ if test "$module" = yes; then
11026+ $echo "*** But as you try to build a module library, libtool will still create "
11027+ $echo "*** a static module, that should work as long as the dlopening application"
11028+ $echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
11029+ if test -z "$global_symbol_pipe"; then
11030+ $echo
11031+ $echo "*** However, this would only work if libtool was able to extract symbol"
11032+ $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
11033+ $echo "*** not find such a program. So, this module is probably useless."
11034+ $echo "*** \`nm' from GNU binutils and a full rebuild may help."
11035+ fi
11036+ if test "$build_old_libs" = no; then
11037+ build_libtool_libs=module
11038+ build_old_libs=yes
11039+ else
11040+ build_libtool_libs=no
11041+ fi
11042+ fi
11043+ else
11044+ convenience="$convenience $dir/$old_library"
11045+ old_convenience="$old_convenience $dir/$old_library"
11046+ deplibs="$dir/$old_library $deplibs"
11047+ link_static=yes
11048+ fi
11049+ fi # link shared/static library?
11050+
11051+ if test "$linkmode" = lib; then
11052+ if test -n "$dependency_libs" &&
11053+ { test "$hardcode_into_libs" != yes ||
11054+ test "$build_old_libs" = yes ||
11055+ test "$link_static" = yes; }; then
11056+ # Extract -R from dependency_libs
11057+ temp_deplibs=
11058+ for libdir in $dependency_libs; do
11059+ case $libdir in
11060+ -R*) temp_xrpath=`$echo "X$libdir" | $Xsed -e 's/^-R//'`
11061+ case " $xrpath " in
11062+ *" $temp_xrpath "*) ;;
11063+ *) xrpath="$xrpath $temp_xrpath";;
11064+ esac;;
11065+ *) temp_deplibs="$temp_deplibs $libdir";;
11066+ esac
11067+ done
11068+ dependency_libs="$temp_deplibs"
11069+ fi
11070+
11071+ newlib_search_path="$newlib_search_path $absdir"
11072+ # Link against this library
11073+ test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
11074+ # ... and its dependency_libs
11075+ tmp_libs=
11076+ for deplib in $dependency_libs; do
11077+ newdependency_libs="$deplib $newdependency_libs"
11078+ if test "X$duplicate_deps" = "Xyes" ; then
11079+ case "$tmp_libs " in
11080+ *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
11081+ esac
11082+ fi
11083+ tmp_libs="$tmp_libs $deplib"
11084+ done
11085+
11086+ if test "$link_all_deplibs" != no; then
11087+ # Add the search paths of all dependency libraries
11088+ for deplib in $dependency_libs; do
11089+ case $deplib in
11090+ -L*) path="$deplib" ;;
11091+ *.la)
11092+ dir=`$echo "X$deplib" | $Xsed -e 's%/[^/]*$%%'`
11093+ test "X$dir" = "X$deplib" && dir="."
11094+ # We need an absolute path.
11095+ case $dir in
11096+ [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
11097+ *)
11098+ absdir=`cd "$dir" && pwd`
11099+ if test -z "$absdir"; then
11100+ $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2
11101+ absdir="$dir"
11102+ fi
11103+ ;;
11104+ esac
11105+ if grep "^installed=no" $deplib > /dev/null; then
11106+ path="$absdir/$objdir"
11107+ else
11108+ eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
11109+ if test -z "$libdir"; then
11110+ $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
11111+ exit $EXIT_FAILURE
11112+ fi
11113+ if test "$absdir" != "$libdir"; then
11114+ $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
11115+ fi
11116+ path="$absdir"
11117+ fi
11118+ depdepl=
11119+ case $host in
11120+ *-*-darwin*)
11121+ # we do not want to link against static libs,
11122+ # but need to link against shared
11123+ eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
11124+ if test -n "$deplibrary_names" ; then
11125+ for tmp in $deplibrary_names ; do
11126+ depdepl=$tmp
11127+ done
11128+ if test -f "$path/$depdepl" ; then
11129+ depdepl="$path/$depdepl"
11130+ fi
11131+ # do not add paths which are already there
11132+ case " $newlib_search_path " in
11133+ *" $path "*) ;;
11134+ *) newlib_search_path="$newlib_search_path $path";;
11135+ esac
11136+ fi
11137+ path=""
11138+ ;;
11139+ *)
11140+ path="-L$path"
11141+ ;;
11142+ esac
11143+ ;;
11144+ -l*)
11145+ case $host in
11146+ *-*-darwin*)
11147+ # Again, we only want to link against shared libraries
11148+ eval tmp_libs=`$echo "X$deplib" | $Xsed -e "s,^\-l,,"`
11149+ for tmp in $newlib_search_path ; do
11150+ if test -f "$tmp/lib$tmp_libs.dylib" ; then
11151+ eval depdepl="$tmp/lib$tmp_libs.dylib"
11152+ break
11153+ fi
11154+ done
11155+ path=""
11156+ ;;
11157+ *) continue ;;
11158+ esac
11159+ ;;
11160+ *) continue ;;
11161+ esac
11162+ case " $deplibs " in
11163+ *" $depdepl "*) ;;
11164+ *) deplibs="$depdepl $deplibs" ;;
11165+ esac
11166+ case " $deplibs " in
11167+ *" $path "*) ;;
11168+ *) deplibs="$deplibs $path" ;;
11169+ esac
11170+ done
11171+ fi # link_all_deplibs != no
11172+ fi # linkmode = lib
11173+ done # for deplib in $libs
11174+ dependency_libs="$newdependency_libs"
11175+ if test "$pass" = dlpreopen; then
11176+ # Link the dlpreopened libraries before other libraries
11177+ for deplib in $save_deplibs; do
11178+ deplibs="$deplib $deplibs"
11179+ done
11180+ fi
11181+ if test "$pass" != dlopen; then
11182+ if test "$pass" != conv; then
11183+ # Make sure lib_search_path contains only unique directories.
11184+ lib_search_path=
11185+ for dir in $newlib_search_path; do
11186+ case "$lib_search_path " in
11187+ *" $dir "*) ;;
11188+ *) lib_search_path="$lib_search_path $dir" ;;
11189+ esac
11190+ done
11191+ newlib_search_path=
11192+ fi
11193+
11194+ if test "$linkmode,$pass" != "prog,link"; then
11195+ vars="deplibs"
11196+ else
11197+ vars="compile_deplibs finalize_deplibs"
11198+ fi
11199+ for var in $vars dependency_libs; do
11200+ # Add libraries to $var in reverse order
11201+ eval tmp_libs=\"\$$var\"
11202+ new_libs=
11203+ for deplib in $tmp_libs; do
11204+ # FIXME: Pedantically, this is the right thing to do, so
11205+ # that some nasty dependency loop isn't accidentally
11206+ # broken:
11207+ #new_libs="$deplib $new_libs"
11208+ # Pragmatically, this seems to cause very few problems in
11209+ # practice:
11210+ case $deplib in
11211+ -L*) new_libs="$deplib $new_libs" ;;
11212+ -R*) ;;
11213+ *)
11214+ # And here is the reason: when a library appears more
11215+ # than once as an explicit dependence of a library, or
11216+ # is implicitly linked in more than once by the
11217+ # compiler, it is considered special, and multiple
11218+ # occurrences thereof are not removed. Compare this
11219+ # with having the same library being listed as a
11220+ # dependency of multiple other libraries: in this case,
11221+ # we know (pedantically, we assume) the library does not
11222+ # need to be listed more than once, so we keep only the
11223+ # last copy. This is not always right, but it is rare
11224+ # enough that we require users that really mean to play
11225+ # such unportable linking tricks to link the library
11226+ # using -Wl,-lname, so that libtool does not consider it
11227+ # for duplicate removal.
11228+ case " $specialdeplibs " in
11229+ *" $deplib "*) new_libs="$deplib $new_libs" ;;
11230+ *)
11231+ case " $new_libs " in
11232+ *" $deplib "*) ;;
11233+ *) new_libs="$deplib $new_libs" ;;
11234+ esac
11235+ ;;
11236+ esac
11237+ ;;
11238+ esac
11239+ done
11240+ tmp_libs=
11241+ for deplib in $new_libs; do
11242+ case $deplib in
11243+ -L*)
11244+ case " $tmp_libs " in
11245+ *" $deplib "*) ;;
11246+ *) tmp_libs="$tmp_libs $deplib" ;;
11247+ esac
11248+ ;;
11249+ *) tmp_libs="$tmp_libs $deplib" ;;
11250+ esac
11251+ done
11252+ eval $var=\"$tmp_libs\"
11253+ done # for var
11254+ fi
11255+ # Last step: remove runtime libs from dependency_libs
11256+ # (they stay in deplibs)
11257+ tmp_libs=
11258+ for i in $dependency_libs ; do
11259+ case " $predeps $postdeps $compiler_lib_search_path " in
11260+ *" $i "*)
11261+ i=""
11262+ ;;
11263+ esac
11264+ if test -n "$i" ; then
11265+ tmp_libs="$tmp_libs $i"
11266+ fi
11267+ done
11268+ dependency_libs=$tmp_libs
11269+ done # for pass
11270+ if test "$linkmode" = prog; then
11271+ dlfiles="$newdlfiles"
11272+ dlprefiles="$newdlprefiles"
11273+ fi
11274+
11275+ case $linkmode in
11276+ oldlib)
11277+ if test -n "$deplibs"; then
11278+ $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2
11279+ fi
11280+
11281+ if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
11282+ $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2
11283+ fi
11284+
11285+ if test -n "$rpath"; then
11286+ $echo "$modename: warning: \`-rpath' is ignored for archives" 1>&2
11287+ fi
11288+
11289+ if test -n "$xrpath"; then
11290+ $echo "$modename: warning: \`-R' is ignored for archives" 1>&2
11291+ fi
11292+
11293+ if test -n "$vinfo"; then
11294+ $echo "$modename: warning: \`-version-info/-version-number' is ignored for archives" 1>&2
11295+ fi
11296+
11297+ if test -n "$release"; then
11298+ $echo "$modename: warning: \`-release' is ignored for archives" 1>&2
11299+ fi
11300+
11301+ if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
11302+ $echo "$modename: warning: \`-export-symbols' is ignored for archives" 1>&2
11303+ fi
11304+
11305+ # Now set the variables for building old libraries.
11306+ build_libtool_libs=no
11307+ oldlibs="$output"
11308+ objs="$objs$old_deplibs"
11309+ ;;
11310+
11311+ lib)
11312+ # Make sure we only generate libraries of the form `libNAME.la'.
11313+ case $outputname in
11314+ lib*)
11315+ name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
11316+ eval shared_ext=\"$shrext_cmds\"
11317+ eval libname=\"$libname_spec\"
11318+ ;;
11319+ *)
11320+ if test "$module" = no; then
11321+ $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2
11322+ $echo "$help" 1>&2
11323+ exit $EXIT_FAILURE
11324+ fi
11325+ if test "$need_lib_prefix" != no; then
11326+ # Add the "lib" prefix for modules if required
11327+ name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
11328+ eval shared_ext=\"$shrext_cmds\"
11329+ eval libname=\"$libname_spec\"
11330+ else
11331+ libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
11332+ fi
11333+ ;;
11334+ esac
11335+
11336+ if test -n "$objs"; then
11337+ if test "$deplibs_check_method" != pass_all; then
11338+ $echo "$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 2>&1
11339+ exit $EXIT_FAILURE
11340+ else
11341+ $echo
11342+ $echo "*** Warning: Linking the shared library $output against the non-libtool"
11343+ $echo "*** objects $objs is not portable!"
11344+ libobjs="$libobjs $objs"
11345+ fi
11346+ fi
11347+
11348+ if test "$dlself" != no; then
11349+ $echo "$modename: warning: \`-dlopen self' is ignored for libtool libraries" 1>&2
11350+ fi
11351+
11352+ set dummy $rpath
11353+ if test "$#" -gt 2; then
11354+ $echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2
11355+ fi
11356+ install_libdir="$2"
11357+
11358+ oldlibs=
11359+ if test -z "$rpath"; then
11360+ if test "$build_libtool_libs" = yes; then
11361+ # Building a libtool convenience library.
11362+ # Some compilers have problems with a `.al' extension so
11363+ # convenience libraries should have the same extension an
11364+ # archive normally would.
11365+ oldlibs="$output_objdir/$libname.$libext $oldlibs"
11366+ build_libtool_libs=convenience
11367+ build_old_libs=yes
11368+ fi
11369+
11370+ if test -n "$vinfo"; then
11371+ $echo "$modename: warning: \`-version-info/-version-number' is ignored for convenience libraries" 1>&2
11372+ fi
11373+
11374+ if test -n "$release"; then
11375+ $echo "$modename: warning: \`-release' is ignored for convenience libraries" 1>&2
11376+ fi
11377+ else
11378+
11379+ # Parse the version information argument.
11380+ save_ifs="$IFS"; IFS=':'
11381+ set dummy $vinfo 0 0 0
11382+ IFS="$save_ifs"
11383+
11384+ if test -n "$8"; then
11385+ $echo "$modename: too many parameters to \`-version-info'" 1>&2
11386+ $echo "$help" 1>&2
11387+ exit $EXIT_FAILURE
11388+ fi
11389+
11390+ # convert absolute version numbers to libtool ages
11391+ # this retains compatibility with .la files and attempts
11392+ # to make the code below a bit more comprehensible
11393+
11394+ case $vinfo_number in
11395+ yes)
11396+ number_major="$2"
11397+ number_minor="$3"
11398+ number_revision="$4"
11399+ #
11400+ # There are really only two kinds -- those that
11401+ # use the current revision as the major version
11402+ # and those that subtract age and use age as
11403+ # a minor version. But, then there is irix
11404+ # which has an extra 1 added just for fun
11405+ #
11406+ case $version_type in
11407+ darwin|linux|osf|windows)
11408+ current=`expr $number_major + $number_minor`
11409+ age="$number_minor"
11410+ revision="$number_revision"
11411+ ;;
11412+ freebsd-aout|freebsd-elf|sunos)
11413+ current="$number_major"
11414+ revision="$number_minor"
11415+ age="0"
11416+ ;;
11417+ irix|nonstopux)
11418+ current=`expr $number_major + $number_minor - 1`
11419+ age="$number_minor"
11420+ revision="$number_minor"
11421+ ;;
11422+ *)
11423+ $echo "$modename: unknown library version type \`$version_type'" 1>&2
11424+ $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
11425+ exit $EXIT_FAILURE
11426+ ;;
11427+ esac
11428+ ;;
11429+ no)
11430+ current="$2"
11431+ revision="$3"
11432+ age="$4"
11433+ ;;
11434+ esac
11435+
11436+ # Check that each of the things are valid numbers.
11437+ case $current in
11438+ 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
11439+ *)
11440+ $echo "$modename: CURRENT \`$current' is not a nonnegative integer" 1>&2
11441+ $echo "$modename: \`$vinfo' is not valid version information" 1>&2
11442+ exit $EXIT_FAILURE
11443+ ;;
11444+ esac
11445+
11446+ case $revision in
11447+ 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
11448+ *)
11449+ $echo "$modename: REVISION \`$revision' is not a nonnegative integer" 1>&2
11450+ $echo "$modename: \`$vinfo' is not valid version information" 1>&2
11451+ exit $EXIT_FAILURE
11452+ ;;
11453+ esac
11454+
11455+ case $age in
11456+ 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
11457+ *)
11458+ $echo "$modename: AGE \`$age' is not a nonnegative integer" 1>&2
11459+ $echo "$modename: \`$vinfo' is not valid version information" 1>&2
11460+ exit $EXIT_FAILURE
11461+ ;;
11462+ esac
11463+
11464+ if test "$age" -gt "$current"; then
11465+ $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2
11466+ $echo "$modename: \`$vinfo' is not valid version information" 1>&2
11467+ exit $EXIT_FAILURE
11468+ fi
11469+
11470+ # Calculate the version variables.
11471+ major=
11472+ versuffix=
11473+ verstring=
11474+ case $version_type in
11475+ none) ;;
11476+
11477+ darwin)
11478+ # Like Linux, but with the current version available in
11479+ # verstring for coding it into the library header
11480+ major=.`expr $current - $age`
11481+ versuffix="$major.$age.$revision"
11482+ # Darwin ld doesn't like 0 for these options...
11483+ minor_current=`expr $current + 1`
11484+ verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
11485+ ;;
11486+
11487+ freebsd-aout)
11488+ major=".$current"
11489+ versuffix=".$current.$revision";
11490+ ;;
11491+
11492+ freebsd-elf)
11493+ major=".$current"
11494+ versuffix=".$current";
11495+ ;;
11496+
11497+ irix | nonstopux)
11498+ major=`expr $current - $age + 1`
11499+
11500+ case $version_type in
11501+ nonstopux) verstring_prefix=nonstopux ;;
11502+ *) verstring_prefix=sgi ;;
11503+ esac
11504+ verstring="$verstring_prefix$major.$revision"
11505+
11506+ # Add in all the interfaces that we are compatible with.
11507+ loop=$revision
11508+ while test "$loop" -ne 0; do
11509+ iface=`expr $revision - $loop`
11510+ loop=`expr $loop - 1`
11511+ verstring="$verstring_prefix$major.$iface:$verstring"
11512+ done
11513+
11514+ # Before this point, $major must not contain `.'.
11515+ major=.$major
11516+ versuffix="$major.$revision"
11517+ ;;
11518+
11519+ linux)
11520+ major=.`expr $current - $age`
11521+ versuffix="$major.$age.$revision"
11522+ ;;
11523+
11524+ osf)
11525+ major=.`expr $current - $age`
11526+ versuffix=".$current.$age.$revision"
11527+ verstring="$current.$age.$revision"
11528+
11529+ # Add in all the interfaces that we are compatible with.
11530+ loop=$age
11531+ while test "$loop" -ne 0; do
11532+ iface=`expr $current - $loop`
11533+ loop=`expr $loop - 1`
11534+ verstring="$verstring:${iface}.0"
11535+ done
11536+
11537+ # Make executables depend on our current version.
11538+ verstring="$verstring:${current}.0"
11539+ ;;
11540+
11541+ sunos)
11542+ major=".$current"
11543+ versuffix=".$current.$revision"
11544+ ;;
11545+
11546+ windows)
11547+ # Use '-' rather than '.', since we only want one
11548+ # extension on DOS 8.3 filesystems.
11549+ major=`expr $current - $age`
11550+ versuffix="-$major"
11551+ ;;
11552+
11553+ *)
11554+ $echo "$modename: unknown library version type \`$version_type'" 1>&2
11555+ $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
11556+ exit $EXIT_FAILURE
11557+ ;;
11558+ esac
11559+
11560+ # Clear the version info if we defaulted, and they specified a release.
11561+ if test -z "$vinfo" && test -n "$release"; then
11562+ major=
11563+ case $version_type in
11564+ darwin)
11565+ # we can't check for "0.0" in archive_cmds due to quoting
11566+ # problems, so we reset it completely
11567+ verstring=
11568+ ;;
11569+ *)
11570+ verstring="0.0"
11571+ ;;
11572+ esac
11573+ if test "$need_version" = no; then
11574+ versuffix=
11575+ else
11576+ versuffix=".0.0"
11577+ fi
11578+ fi
11579+
11580+ # Remove version info from name if versioning should be avoided
11581+ if test "$avoid_version" = yes && test "$need_version" = no; then
11582+ major=
11583+ versuffix=
11584+ verstring=""
11585+ fi
11586+
11587+ # Check to see if the archive will have undefined symbols.
11588+ if test "$allow_undefined" = yes; then
11589+ if test "$allow_undefined_flag" = unsupported; then
11590+ $echo "$modename: warning: undefined symbols not allowed in $host shared libraries" 1>&2
11591+ build_libtool_libs=no
11592+ build_old_libs=yes
11593+ fi
11594+ else
11595+ # Don't allow undefined symbols.
11596+ allow_undefined_flag="$no_undefined_flag"
11597+ fi
11598+ fi
11599+
11600+ if test "$mode" != relink; then
11601+ # Remove our outputs, but don't remove object files since they
11602+ # may have been created when compiling PIC objects.
11603+ removelist=
11604+ tempremovelist=`$echo "$output_objdir/*"`
11605+ for p in $tempremovelist; do
11606+ case $p in
11607+ *.$objext)
11608+ ;;
11609+ $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
11610+ if test "X$precious_files_regex" != "X"; then
11611+ if echo $p | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
11612+ then
11613+ continue
11614+ fi
11615+ fi
11616+ removelist="$removelist $p"
11617+ ;;
11618+ *) ;;
11619+ esac
11620+ done
11621+ if test -n "$removelist"; then
11622+ $show "${rm}r $removelist"
11623+ $run ${rm}r $removelist
11624+ fi
11625+ fi
11626+
11627+ # Now set the variables for building old libraries.
11628+ if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
11629+ oldlibs="$oldlibs $output_objdir/$libname.$libext"
11630+
11631+ # Transform .lo files to .o files.
11632+ oldobjs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
11633+ fi
11634+
11635+ # Eliminate all temporary directories.
11636+ for path in $notinst_path; do
11637+ lib_search_path=`$echo "$lib_search_path " | ${SED} -e 's% $path % %g'`
11638+ deplibs=`$echo "$deplibs " | ${SED} -e 's% -L$path % %g'`
11639+ dependency_libs=`$echo "$dependency_libs " | ${SED} -e 's% -L$path % %g'`
11640+ done
11641+
11642+ if test -n "$xrpath"; then
11643+ # If the user specified any rpath flags, then add them.
11644+ temp_xrpath=
11645+ for libdir in $xrpath; do
11646+ temp_xrpath="$temp_xrpath -R$libdir"
11647+ case "$finalize_rpath " in
11648+ *" $libdir "*) ;;
11649+ *) finalize_rpath="$finalize_rpath $libdir" ;;
11650+ esac
11651+ done
11652+ if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
11653+ dependency_libs="$temp_xrpath $dependency_libs"
11654+ fi
11655+ fi
11656+
11657+ # Make sure dlfiles contains only unique files that won't be dlpreopened
11658+ old_dlfiles="$dlfiles"
11659+ dlfiles=
11660+ for lib in $old_dlfiles; do
11661+ case " $dlprefiles $dlfiles " in
11662+ *" $lib "*) ;;
11663+ *) dlfiles="$dlfiles $lib" ;;
11664+ esac
11665+ done
11666+
11667+ # Make sure dlprefiles contains only unique files
11668+ old_dlprefiles="$dlprefiles"
11669+ dlprefiles=
11670+ for lib in $old_dlprefiles; do
11671+ case "$dlprefiles " in
11672+ *" $lib "*) ;;
11673+ *) dlprefiles="$dlprefiles $lib" ;;
11674+ esac
11675+ done
11676+
11677+ if test "$build_libtool_libs" = yes; then
11678+ if test -n "$rpath"; then
11679+ case $host in
11680+ *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos*)
11681+ # these systems don't actually have a c library (as such)!
11682+ ;;
11683+ *-*-rhapsody* | *-*-darwin1.[012])
11684+ # Rhapsody C library is in the System framework
11685+ deplibs="$deplibs -framework System"
11686+ ;;
11687+ *-*-netbsd*)
11688+ # Don't link with libc until the a.out ld.so is fixed.
11689+ ;;
11690+ *-*-openbsd* | *-*-freebsd*)
11691+ # Do not include libc due to us having libc/libc_r.
11692+ test "X$arg" = "X-lc" && continue
11693+ ;;
11694+ *)
11695+ # Add libc to deplibs on all other systems if necessary.
11696+ if test "$build_libtool_need_lc" = "yes"; then
11697+ deplibs="$deplibs -lc"
11698+ fi
11699+ ;;
11700+ esac
11701+ fi
11702+
11703+ # Transform deplibs into only deplibs that can be linked in shared.
11704+ name_save=$name
11705+ libname_save=$libname
11706+ release_save=$release
11707+ versuffix_save=$versuffix
11708+ major_save=$major
11709+ # I'm not sure if I'm treating the release correctly. I think
11710+ # release should show up in the -l (ie -lgmp5) so we don't want to
11711+ # add it in twice. Is that correct?
11712+ release=""
11713+ versuffix=""
11714+ major=""
11715+ newdeplibs=
11716+ droppeddeps=no
11717+ case $deplibs_check_method in
11718+ pass_all)
11719+ # Don't check for shared/static. Everything works.
11720+ # This might be a little naive. We might want to check
11721+ # whether the library exists or not. But this is on
11722+ # osf3 & osf4 and I'm not really sure... Just
11723+ # implementing what was already the behavior.
11724+ newdeplibs=$deplibs
11725+ ;;
11726+ test_compile)
11727+ # This code stresses the "libraries are programs" paradigm to its
11728+ # limits. Maybe even breaks it. We compile a program, linking it
11729+ # against the deplibs as a proxy for the library. Then we can check
11730+ # whether they linked in statically or dynamically with ldd.
11731+ $rm conftest.c
11732+ cat > conftest.c <<EOF
11733+ int main() { return 0; }
11734+EOF
11735+ $rm conftest
11736+ $LTCC -o conftest conftest.c $deplibs
11737+ if test "$?" -eq 0 ; then
11738+ ldd_output=`ldd conftest`
11739+ for i in $deplibs; do
11740+ name="`expr $i : '-l\(.*\)'`"
11741+ # If $name is empty we are operating on a -L argument.
11742+ if test "$name" != "" && test "$name" -ne "0"; then
11743+ if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
11744+ case " $predeps $postdeps " in
11745+ *" $i "*)
11746+ newdeplibs="$newdeplibs $i"
11747+ i=""
11748+ ;;
11749+ esac
11750+ fi
11751+ if test -n "$i" ; then
11752+ libname=`eval \\$echo \"$libname_spec\"`
11753+ deplib_matches=`eval \\$echo \"$library_names_spec\"`
11754+ set dummy $deplib_matches
11755+ deplib_match=$2
11756+ if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
11757+ newdeplibs="$newdeplibs $i"
11758+ else
11759+ droppeddeps=yes
11760+ $echo
11761+ $echo "*** Warning: dynamic linker does not accept needed library $i."
11762+ $echo "*** I have the capability to make that library automatically link in when"
11763+ $echo "*** you link to this library. But I can only do this if you have a"
11764+ $echo "*** shared version of the library, which I believe you do not have"
11765+ $echo "*** because a test_compile did reveal that the linker did not use it for"
11766+ $echo "*** its dynamic dependency list that programs get resolved with at runtime."
11767+ fi
11768+ fi
11769+ else
11770+ newdeplibs="$newdeplibs $i"
11771+ fi
11772+ done
11773+ else
11774+ # Error occurred in the first compile. Let's try to salvage
11775+ # the situation: Compile a separate program for each library.
11776+ for i in $deplibs; do
11777+ name="`expr $i : '-l\(.*\)'`"
11778+ # If $name is empty we are operating on a -L argument.
11779+ if test "$name" != "" && test "$name" != "0"; then
11780+ $rm conftest
11781+ $LTCC -o conftest conftest.c $i
11782+ # Did it work?
11783+ if test "$?" -eq 0 ; then
11784+ ldd_output=`ldd conftest`
11785+ if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
11786+ case " $predeps $postdeps " in
11787+ *" $i "*)
11788+ newdeplibs="$newdeplibs $i"
11789+ i=""
11790+ ;;
11791+ esac
11792+ fi
11793+ if test -n "$i" ; then
11794+ libname=`eval \\$echo \"$libname_spec\"`
11795+ deplib_matches=`eval \\$echo \"$library_names_spec\"`
11796+ set dummy $deplib_matches
11797+ deplib_match=$2
11798+ if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
11799+ newdeplibs="$newdeplibs $i"
11800+ else
11801+ droppeddeps=yes
11802+ $echo
11803+ $echo "*** Warning: dynamic linker does not accept needed library $i."
11804+ $echo "*** I have the capability to make that library automatically link in when"
11805+ $echo "*** you link to this library. But I can only do this if you have a"
11806+ $echo "*** shared version of the library, which you do not appear to have"
11807+ $echo "*** because a test_compile did reveal that the linker did not use this one"
11808+ $echo "*** as a dynamic dependency that programs can get resolved with at runtime."
11809+ fi
11810+ fi
11811+ else
11812+ droppeddeps=yes
11813+ $echo
11814+ $echo "*** Warning! Library $i is needed by this library but I was not able to"
11815+ $echo "*** make it link in! You will probably need to install it or some"
11816+ $echo "*** library that it depends on before this library will be fully"
11817+ $echo "*** functional. Installing it before continuing would be even better."
11818+ fi
11819+ else
11820+ newdeplibs="$newdeplibs $i"
11821+ fi
11822+ done
11823+ fi
11824+ ;;
11825+ file_magic*)
11826+ set dummy $deplibs_check_method
11827+ file_magic_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
11828+ for a_deplib in $deplibs; do
11829+ name="`expr $a_deplib : '-l\(.*\)'`"
11830+ # If $name is empty we are operating on a -L argument.
11831+ if test "$name" != "" && test "$name" != "0"; then
11832+ if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
11833+ case " $predeps $postdeps " in
11834+ *" $a_deplib "*)
11835+ newdeplibs="$newdeplibs $a_deplib"
11836+ a_deplib=""
11837+ ;;
11838+ esac
11839+ fi
11840+ if test -n "$a_deplib" ; then
11841+ libname=`eval \\$echo \"$libname_spec\"`
11842+ for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
11843+ potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
11844+ for potent_lib in $potential_libs; do
11845+ # Follow soft links.
11846+ if ls -lLd "$potent_lib" 2>/dev/null \
11847+ | grep " -> " >/dev/null; then
11848+ continue
11849+ fi
11850+ # The statement above tries to avoid entering an
11851+ # endless loop below, in case of cyclic links.
11852+ # We might still enter an endless loop, since a link
11853+ # loop can be closed while we follow links,
11854+ # but so what?
11855+ potlib="$potent_lib"
11856+ while test -h "$potlib" 2>/dev/null; do
11857+ potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
11858+ case $potliblink in
11859+ [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
11860+ *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
11861+ esac
11862+ done
11863+ if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \
11864+ | ${SED} 10q \
11865+ | $EGREP "$file_magic_regex" > /dev/null; then
11866+ newdeplibs="$newdeplibs $a_deplib"
11867+ a_deplib=""
11868+ break 2
11869+ fi
11870+ done
11871+ done
11872+ fi
11873+ if test -n "$a_deplib" ; then
11874+ droppeddeps=yes
11875+ $echo
11876+ $echo "*** Warning: linker path does not have real file for library $a_deplib."
11877+ $echo "*** I have the capability to make that library automatically link in when"
11878+ $echo "*** you link to this library. But I can only do this if you have a"
11879+ $echo "*** shared version of the library, which you do not appear to have"
11880+ $echo "*** because I did check the linker path looking for a file starting"
11881+ if test -z "$potlib" ; then
11882+ $echo "*** with $libname but no candidates were found. (...for file magic test)"
11883+ else
11884+ $echo "*** with $libname and none of the candidates passed a file format test"
11885+ $echo "*** using a file magic. Last file checked: $potlib"
11886+ fi
11887+ fi
11888+ else
11889+ # Add a -L argument.
11890+ newdeplibs="$newdeplibs $a_deplib"
11891+ fi
11892+ done # Gone through all deplibs.
11893+ ;;
11894+ match_pattern*)
11895+ set dummy $deplibs_check_method
11896+ match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
11897+ for a_deplib in $deplibs; do
11898+ name="`expr $a_deplib : '-l\(.*\)'`"
11899+ # If $name is empty we are operating on a -L argument.
11900+ if test -n "$name" && test "$name" != "0"; then
11901+ if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
11902+ case " $predeps $postdeps " in
11903+ *" $a_deplib "*)
11904+ newdeplibs="$newdeplibs $a_deplib"
11905+ a_deplib=""
11906+ ;;
11907+ esac
11908+ fi
11909+ if test -n "$a_deplib" ; then
11910+ libname=`eval \\$echo \"$libname_spec\"`
11911+ for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
11912+ potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
11913+ for potent_lib in $potential_libs; do
11914+ potlib="$potent_lib" # see symlink-check above in file_magic test
11915+ if eval $echo \"$potent_lib\" 2>/dev/null \
11916+ | ${SED} 10q \
11917+ | $EGREP "$match_pattern_regex" > /dev/null; then
11918+ newdeplibs="$newdeplibs $a_deplib"
11919+ a_deplib=""
11920+ break 2
11921+ fi
11922+ done
11923+ done
11924+ fi
11925+ if test -n "$a_deplib" ; then
11926+ droppeddeps=yes
11927+ $echo
11928+ $echo "*** Warning: linker path does not have real file for library $a_deplib."
11929+ $echo "*** I have the capability to make that library automatically link in when"
11930+ $echo "*** you link to this library. But I can only do this if you have a"
11931+ $echo "*** shared version of the library, which you do not appear to have"
11932+ $echo "*** because I did check the linker path looking for a file starting"
11933+ if test -z "$potlib" ; then
11934+ $echo "*** with $libname but no candidates were found. (...for regex pattern test)"
11935+ else
11936+ $echo "*** with $libname and none of the candidates passed a file format test"
11937+ $echo "*** using a regex pattern. Last file checked: $potlib"
11938+ fi
11939+ fi
11940+ else
11941+ # Add a -L argument.
11942+ newdeplibs="$newdeplibs $a_deplib"
11943+ fi
11944+ done # Gone through all deplibs.
11945+ ;;
11946+ none | unknown | *)
11947+ newdeplibs=""
11948+ tmp_deplibs=`$echo "X $deplibs" | $Xsed -e 's/ -lc$//' \
11949+ -e 's/ -[LR][^ ]*//g'`
11950+ if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
11951+ for i in $predeps $postdeps ; do
11952+ # can't use Xsed below, because $i might contain '/'
11953+ tmp_deplibs=`$echo "X $tmp_deplibs" | ${SED} -e "1s,^X,," -e "s,$i,,"`
11954+ done
11955+ fi
11956+ if $echo "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' \
11957+ | grep . >/dev/null; then
11958+ $echo
11959+ if test "X$deplibs_check_method" = "Xnone"; then
11960+ $echo "*** Warning: inter-library dependencies are not supported in this platform."
11961+ else
11962+ $echo "*** Warning: inter-library dependencies are not known to be supported."
11963+ fi
11964+ $echo "*** All declared inter-library dependencies are being dropped."
11965+ droppeddeps=yes
11966+ fi
11967+ ;;
11968+ esac
11969+ versuffix=$versuffix_save
11970+ major=$major_save
11971+ release=$release_save
11972+ libname=$libname_save
11973+ name=$name_save
11974+
11975+ case $host in
11976+ *-*-rhapsody* | *-*-darwin1.[012])
11977+ # On Rhapsody replace the C library is the System framework
11978+ newdeplibs=`$echo "X $newdeplibs" | $Xsed -e 's/ -lc / -framework System /'`
11979+ ;;
11980+ esac
11981+
11982+ if test "$droppeddeps" = yes; then
11983+ if test "$module" = yes; then
11984+ $echo
11985+ $echo "*** Warning: libtool could not satisfy all declared inter-library"
11986+ $echo "*** dependencies of module $libname. Therefore, libtool will create"
11987+ $echo "*** a static module, that should work as long as the dlopening"
11988+ $echo "*** application is linked with the -dlopen flag."
11989+ if test -z "$global_symbol_pipe"; then
11990+ $echo
11991+ $echo "*** However, this would only work if libtool was able to extract symbol"
11992+ $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
11993+ $echo "*** not find such a program. So, this module is probably useless."
11994+ $echo "*** \`nm' from GNU binutils and a full rebuild may help."
11995+ fi
11996+ if test "$build_old_libs" = no; then
11997+ oldlibs="$output_objdir/$libname.$libext"
11998+ build_libtool_libs=module
11999+ build_old_libs=yes
12000+ else
12001+ build_libtool_libs=no
12002+ fi
12003+ else
12004+ $echo "*** The inter-library dependencies that have been dropped here will be"
12005+ $echo "*** automatically added whenever a program is linked with this library"
12006+ $echo "*** or is declared to -dlopen it."
12007+
12008+ if test "$allow_undefined" = no; then
12009+ $echo
12010+ $echo "*** Since this library must not contain undefined symbols,"
12011+ $echo "*** because either the platform does not support them or"
12012+ $echo "*** it was explicitly requested with -no-undefined,"
12013+ $echo "*** libtool will only create a static version of it."
12014+ if test "$build_old_libs" = no; then
12015+ oldlibs="$output_objdir/$libname.$libext"
12016+ build_libtool_libs=module
12017+ build_old_libs=yes
12018+ else
12019+ build_libtool_libs=no
12020+ fi
12021+ fi
12022+ fi
12023+ fi
12024+ # Done checking deplibs!
12025+ deplibs=$newdeplibs
12026+ fi
12027+
12028+ # All the library-specific variables (install_libdir is set above).
12029+ library_names=
12030+ old_library=
12031+ dlname=
12032+
12033+ # Test again, we may have decided not to build it any more
12034+ if test "$build_libtool_libs" = yes; then
12035+ if test "$hardcode_into_libs" = yes; then
12036+ # Hardcode the library paths
12037+ hardcode_libdirs=
12038+ dep_rpath=
12039+ rpath="$finalize_rpath"
12040+ test "$mode" != relink && rpath="$compile_rpath$rpath"
12041+ for libdir in $rpath; do
12042+ if test -n "$hardcode_libdir_flag_spec"; then
12043+ if test -n "$hardcode_libdir_separator"; then
12044+ if test -z "$hardcode_libdirs"; then
12045+ hardcode_libdirs="$libdir"
12046+ else
12047+ # Just accumulate the unique libdirs.
12048+ case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
12049+ *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
12050+ ;;
12051+ *)
12052+ hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
12053+ ;;
12054+ esac
12055+ fi
12056+ else
12057+ eval flag=\"$hardcode_libdir_flag_spec\"
12058+ dep_rpath="$dep_rpath $flag"
12059+ fi
12060+ elif test -n "$runpath_var"; then
12061+ case "$perm_rpath " in
12062+ *" $libdir "*) ;;
12063+ *) perm_rpath="$perm_rpath $libdir" ;;
12064+ esac
12065+ fi
12066+ done
12067+ # Substitute the hardcoded libdirs into the rpath.
12068+ if test -n "$hardcode_libdir_separator" &&
12069+ test -n "$hardcode_libdirs"; then
12070+ libdir="$hardcode_libdirs"
12071+ if test -n "$hardcode_libdir_flag_spec_ld"; then
12072+ eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
12073+ else
12074+ eval dep_rpath=\"$hardcode_libdir_flag_spec\"
12075+ fi
12076+ fi
12077+ if test -n "$runpath_var" && test -n "$perm_rpath"; then
12078+ # We should set the runpath_var.
12079+ rpath=
12080+ for dir in $perm_rpath; do
12081+ rpath="$rpath$dir:"
12082+ done
12083+ eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
12084+ fi
12085+ test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
12086+ fi
12087+
12088+ shlibpath="$finalize_shlibpath"
12089+ test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
12090+ if test -n "$shlibpath"; then
12091+ eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
12092+ fi
12093+
12094+ # Get the real and link names of the library.
12095+ eval shared_ext=\"$shrext_cmds\"
12096+ eval library_names=\"$library_names_spec\"
12097+ set dummy $library_names
12098+ realname="$2"
12099+ shift; shift
12100+
12101+ if test -n "$soname_spec"; then
12102+ eval soname=\"$soname_spec\"
12103+ else
12104+ soname="$realname"
12105+ fi
12106+ if test -z "$dlname"; then
12107+ dlname=$soname
12108+ fi
12109+
12110+ lib="$output_objdir/$realname"
12111+ for link
12112+ do
12113+ linknames="$linknames $link"
12114+ done
12115+
12116+ # Use standard objects if they are pic
12117+ test -z "$pic_flag" && libobjs=`$echo "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
12118+
12119+ # Prepare the list of exported symbols
12120+ if test -z "$export_symbols"; then
12121+ if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
12122+ $show "generating symbol list for \`$libname.la'"
12123+ export_symbols="$output_objdir/$libname.exp"
12124+ $run $rm $export_symbols
12125+ cmds=$export_symbols_cmds
12126+ save_ifs="$IFS"; IFS='~'
12127+ for cmd in $cmds; do
12128+ IFS="$save_ifs"
12129+ eval cmd=\"$cmd\"
12130+ if len=`expr "X$cmd" : ".*"` &&
12131+ test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
12132+ $show "$cmd"
12133+ $run eval "$cmd" || exit $?
12134+ skipped_export=false
12135+ else
12136+ # The command line is too long to execute in one step.
12137+ $show "using reloadable object file for export list..."
12138+ skipped_export=:
12139+ fi
12140+ done
12141+ IFS="$save_ifs"
12142+ if test -n "$export_symbols_regex"; then
12143+ $show "$EGREP -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\""
12144+ $run eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
12145+ $show "$mv \"${export_symbols}T\" \"$export_symbols\""
12146+ $run eval '$mv "${export_symbols}T" "$export_symbols"'
12147+ fi
12148+ fi
12149+ fi
12150+
12151+ if test -n "$export_symbols" && test -n "$include_expsyms"; then
12152+ $run eval '$echo "X$include_expsyms" | $SP2NL >> "$export_symbols"'
12153+ fi
12154+
12155+ tmp_deplibs=
12156+ for test_deplib in $deplibs; do
12157+ case " $convenience " in
12158+ *" $test_deplib "*) ;;
12159+ *)
12160+ tmp_deplibs="$tmp_deplibs $test_deplib"
12161+ ;;
12162+ esac
12163+ done
12164+ deplibs="$tmp_deplibs"
12165+
12166+ if test -n "$convenience"; then
12167+ if test -n "$whole_archive_flag_spec"; then
12168+ save_libobjs=$libobjs
12169+ eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
12170+ else
12171+ gentop="$output_objdir/${outputname}x"
12172+ $show "${rm}r $gentop"
12173+ $run ${rm}r "$gentop"
12174+ $show "$mkdir $gentop"
12175+ $run $mkdir "$gentop"
12176+ status=$?
12177+ if test "$status" -ne 0 && test ! -d "$gentop"; then
12178+ exit $status
12179+ fi
12180+ generated="$generated $gentop"
12181+
12182+ for xlib in $convenience; do
12183+ # Extract the objects.
12184+ case $xlib in
12185+ [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
12186+ *) xabs=`pwd`"/$xlib" ;;
12187+ esac
12188+ xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
12189+ xdir="$gentop/$xlib"
12190+
12191+ $show "${rm}r $xdir"
12192+ $run ${rm}r "$xdir"
12193+ $show "$mkdir $xdir"
12194+ $run $mkdir "$xdir"
12195+ status=$?
12196+ if test "$status" -ne 0 && test ! -d "$xdir"; then
12197+ exit $status
12198+ fi
12199+ # We will extract separately just the conflicting names and we will no
12200+ # longer touch any unique names. It is faster to leave these extract
12201+ # automatically by $AR in one run.
12202+ $show "(cd $xdir && $AR x $xabs)"
12203+ $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
12204+ if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then
12205+ :
12206+ else
12207+ $echo "$modename: warning: object name conflicts; renaming object files" 1>&2
12208+ $echo "$modename: warning: to ensure that they will not overwrite" 1>&2
12209+ $AR t "$xabs" | sort | uniq -cd | while read -r count name
12210+ do
12211+ i=1
12212+ while test "$i" -le "$count"
12213+ do
12214+ # Put our $i before any first dot (extension)
12215+ # Never overwrite any file
12216+ name_to="$name"
12217+ while test "X$name_to" = "X$name" || test -f "$xdir/$name_to"
12218+ do
12219+ name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"`
12220+ done
12221+ $show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')"
12222+ $run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $?
12223+ i=`expr $i + 1`
12224+ done
12225+ done
12226+ fi
12227+
12228+ libobjs="$libobjs "`find $xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
12229+ done
12230+ fi
12231+ fi
12232+
12233+ if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
12234+ eval flag=\"$thread_safe_flag_spec\"
12235+ linker_flags="$linker_flags $flag"
12236+ fi
12237+
12238+ # Make a backup of the uninstalled library when relinking
12239+ if test "$mode" = relink; then
12240+ $run eval '(cd $output_objdir && $rm ${realname}U && $mv $realname ${realname}U)' || exit $?
12241+ fi
12242+
12243+ # Do each of the archive commands.
12244+ if test "$module" = yes && test -n "$module_cmds" ; then
12245+ if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
12246+ eval test_cmds=\"$module_expsym_cmds\"
12247+ cmds=$module_expsym_cmds
12248+ else
12249+ eval test_cmds=\"$module_cmds\"
12250+ cmds=$module_cmds
12251+ fi
12252+ else
12253+ if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
12254+ eval test_cmds=\"$archive_expsym_cmds\"
12255+ cmds=$archive_expsym_cmds
12256+ else
12257+ eval test_cmds=\"$archive_cmds\"
12258+ cmds=$archive_cmds
12259+ fi
12260+ fi
12261+
12262+ if test "X$skipped_export" != "X:" && len=`expr "X$test_cmds" : ".*"` &&
12263+ test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
12264+ :
12265+ else
12266+ # The command line is too long to link in one step, link piecewise.
12267+ $echo "creating reloadable object files..."
12268+
12269+ # Save the value of $output and $libobjs because we want to
12270+ # use them later. If we have whole_archive_flag_spec, we
12271+ # want to use save_libobjs as it was before
12272+ # whole_archive_flag_spec was expanded, because we can't
12273+ # assume the linker understands whole_archive_flag_spec.
12274+ # This may have to be revisited, in case too many
12275+ # convenience libraries get linked in and end up exceeding
12276+ # the spec.
12277+ if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
12278+ save_libobjs=$libobjs
12279+ fi
12280+ save_output=$output
12281+
12282+ # Clear the reloadable object creation command queue and
12283+ # initialize k to one.
12284+ test_cmds=
12285+ concat_cmds=
12286+ objlist=
12287+ delfiles=
12288+ last_robj=
12289+ k=1
12290+ output=$output_objdir/$save_output-${k}.$objext
12291+ # Loop over the list of objects to be linked.
12292+ for obj in $save_libobjs
12293+ do
12294+ eval test_cmds=\"$reload_cmds $objlist $last_robj\"
12295+ if test "X$objlist" = X ||
12296+ { len=`expr "X$test_cmds" : ".*"` &&
12297+ test "$len" -le "$max_cmd_len"; }; then
12298+ objlist="$objlist $obj"
12299+ else
12300+ # The command $test_cmds is almost too long, add a
12301+ # command to the queue.
12302+ if test "$k" -eq 1 ; then
12303+ # The first file doesn't have a previous command to add.
12304+ eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
12305+ else
12306+ # All subsequent reloadable object files will link in
12307+ # the last one created.
12308+ eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\"
12309+ fi
12310+ last_robj=$output_objdir/$save_output-${k}.$objext
12311+ k=`expr $k + 1`
12312+ output=$output_objdir/$save_output-${k}.$objext
12313+ objlist=$obj
12314+ len=1
12315+ fi
12316+ done
12317+ # Handle the remaining objects by creating one last
12318+ # reloadable object file. All subsequent reloadable object
12319+ # files will link in the last one created.
12320+ test -z "$concat_cmds" || concat_cmds=$concat_cmds~
12321+ eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
12322+
12323+ if ${skipped_export-false}; then
12324+ $show "generating symbol list for \`$libname.la'"
12325+ export_symbols="$output_objdir/$libname.exp"
12326+ $run $rm $export_symbols
12327+ libobjs=$output
12328+ # Append the command to create the export file.
12329+ eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\"
12330+ fi
12331+
12332+ # Set up a command to remove the reloadale object files
12333+ # after they are used.
12334+ i=0
12335+ while test "$i" -lt "$k"
12336+ do
12337+ i=`expr $i + 1`
12338+ delfiles="$delfiles $output_objdir/$save_output-${i}.$objext"
12339+ done
12340+
12341+ $echo "creating a temporary reloadable object file: $output"
12342+
12343+ # Loop through the commands generated above and execute them.
12344+ save_ifs="$IFS"; IFS='~'
12345+ for cmd in $concat_cmds; do
12346+ IFS="$save_ifs"
12347+ $show "$cmd"
12348+ $run eval "$cmd" || exit $?
12349+ done
12350+ IFS="$save_ifs"
12351+
12352+ libobjs=$output
12353+ # Restore the value of output.
12354+ output=$save_output
12355+
12356+ if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
12357+ eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
12358+ fi
12359+ # Expand the library linking commands again to reset the
12360+ # value of $libobjs for piecewise linking.
12361+
12362+ # Do each of the archive commands.
12363+ if test "$module" = yes && test -n "$module_cmds" ; then
12364+ if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
12365+ cmds=$module_expsym_cmds
12366+ else
12367+ cmds=$module_cmds
12368+ fi
12369+ else
12370+ if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
12371+ cmds=$archive_expsym_cmds
12372+ else
12373+ cmds=$archive_cmds
12374+ fi
12375+ fi
12376+
12377+ # Append the command to remove the reloadable object files
12378+ # to the just-reset $cmds.
12379+ eval cmds=\"\$cmds~\$rm $delfiles\"
12380+ fi
12381+ save_ifs="$IFS"; IFS='~'
12382+ for cmd in $cmds; do
12383+ IFS="$save_ifs"
12384+ eval cmd=\"$cmd\"
12385+ $show "$cmd"
12386+ $run eval "$cmd" || exit $?
12387+ done
12388+ IFS="$save_ifs"
12389+
12390+ # Restore the uninstalled library and exit
12391+ if test "$mode" = relink; then
12392+ $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $?
12393+ exit $EXIT_SUCCESS
12394+ fi
12395+
12396+ # Create links to the real library.
12397+ for linkname in $linknames; do
12398+ if test "$realname" != "$linkname"; then
12399+ $show "(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)"
12400+ $run eval '(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)' || exit $?
12401+ fi
12402+ done
12403+
12404+ # If -module or -export-dynamic was specified, set the dlname.
12405+ if test "$module" = yes || test "$export_dynamic" = yes; then
12406+ # On all known operating systems, these are identical.
12407+ dlname="$soname"
12408+ fi
12409+ fi
12410+ ;;
12411+
12412+ obj)
12413+ if test -n "$deplibs"; then
12414+ $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2
12415+ fi
12416+
12417+ if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
12418+ $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2
12419+ fi
12420+
12421+ if test -n "$rpath"; then
12422+ $echo "$modename: warning: \`-rpath' is ignored for objects" 1>&2
12423+ fi
12424+
12425+ if test -n "$xrpath"; then
12426+ $echo "$modename: warning: \`-R' is ignored for objects" 1>&2
12427+ fi
12428+
12429+ if test -n "$vinfo"; then
12430+ $echo "$modename: warning: \`-version-info' is ignored for objects" 1>&2
12431+ fi
12432+
12433+ if test -n "$release"; then
12434+ $echo "$modename: warning: \`-release' is ignored for objects" 1>&2
12435+ fi
12436+
12437+ case $output in
12438+ *.lo)
12439+ if test -n "$objs$old_deplibs"; then
12440+ $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2
12441+ exit $EXIT_FAILURE
12442+ fi
12443+ libobj="$output"
12444+ obj=`$echo "X$output" | $Xsed -e "$lo2o"`
12445+ ;;
12446+ *)
12447+ libobj=
12448+ obj="$output"
12449+ ;;
12450+ esac
12451+
12452+ # Delete the old objects.
12453+ $run $rm $obj $libobj
12454+
12455+ # Objects from convenience libraries. This assumes
12456+ # single-version convenience libraries. Whenever we create
12457+ # different ones for PIC/non-PIC, this we'll have to duplicate
12458+ # the extraction.
12459+ reload_conv_objs=
12460+ gentop=
12461+ # reload_cmds runs $LD directly, so let us get rid of
12462+ # -Wl from whole_archive_flag_spec
12463+ wl=
12464+
12465+ if test -n "$convenience"; then
12466+ if test -n "$whole_archive_flag_spec"; then
12467+ eval reload_conv_objs=\"\$reload_objs $whole_archive_flag_spec\"
12468+ else
12469+ gentop="$output_objdir/${obj}x"
12470+ $show "${rm}r $gentop"
12471+ $run ${rm}r "$gentop"
12472+ $show "$mkdir $gentop"
12473+ $run $mkdir "$gentop"
12474+ status=$?
12475+ if test "$status" -ne 0 && test ! -d "$gentop"; then
12476+ exit $status
12477+ fi
12478+ generated="$generated $gentop"
12479+
12480+ for xlib in $convenience; do
12481+ # Extract the objects.
12482+ case $xlib in
12483+ [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
12484+ *) xabs=`pwd`"/$xlib" ;;
12485+ esac
12486+ xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
12487+ xdir="$gentop/$xlib"
12488+
12489+ $show "${rm}r $xdir"
12490+ $run ${rm}r "$xdir"
12491+ $show "$mkdir $xdir"
12492+ $run $mkdir "$xdir"
12493+ status=$?
12494+ if test "$status" -ne 0 && test ! -d "$xdir"; then
12495+ exit $status
12496+ fi
12497+ # We will extract separately just the conflicting names and we will no
12498+ # longer touch any unique names. It is faster to leave these extract
12499+ # automatically by $AR in one run.
12500+ $show "(cd $xdir && $AR x $xabs)"
12501+ $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
12502+ if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then
12503+ :
12504+ else
12505+ $echo "$modename: warning: object name conflicts; renaming object files" 1>&2
12506+ $echo "$modename: warning: to ensure that they will not overwrite" 1>&2
12507+ $AR t "$xabs" | sort | uniq -cd | while read -r count name
12508+ do
12509+ i=1
12510+ while test "$i" -le "$count"
12511+ do
12512+ # Put our $i before any first dot (extension)
12513+ # Never overwrite any file
12514+ name_to="$name"
12515+ while test "X$name_to" = "X$name" || test -f "$xdir/$name_to"
12516+ do
12517+ name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"`
12518+ done
12519+ $show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')"
12520+ $run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $?
12521+ i=`expr $i + 1`
12522+ done
12523+ done
12524+ fi
12525+
12526+ reload_conv_objs="$reload_objs "`find $xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
12527+ done
12528+ fi
12529+ fi
12530+
12531+ # Create the old-style object.
12532+ reload_objs="$objs$old_deplibs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
12533+
12534+ output="$obj"
12535+ cmds=$reload_cmds
12536+ save_ifs="$IFS"; IFS='~'
12537+ for cmd in $cmds; do
12538+ IFS="$save_ifs"
12539+ eval cmd=\"$cmd\"
12540+ $show "$cmd"
12541+ $run eval "$cmd" || exit $?
12542+ done
12543+ IFS="$save_ifs"
12544+
12545+ # Exit if we aren't doing a library object file.
12546+ if test -z "$libobj"; then
12547+ if test -n "$gentop"; then
12548+ $show "${rm}r $gentop"
12549+ $run ${rm}r $gentop
12550+ fi
12551+
12552+ exit $EXIT_SUCCESS
12553+ fi
12554+
12555+ if test "$build_libtool_libs" != yes; then
12556+ if test -n "$gentop"; then
12557+ $show "${rm}r $gentop"
12558+ $run ${rm}r $gentop
12559+ fi
12560+
12561+ # Create an invalid libtool object if no PIC, so that we don't
12562+ # accidentally link it into a program.
12563+ # $show "echo timestamp > $libobj"
12564+ # $run eval "echo timestamp > $libobj" || exit $?
12565+ exit $EXIT_SUCCESS
12566+ fi
12567+
12568+ if test -n "$pic_flag" || test "$pic_mode" != default; then
12569+ # Only do commands if we really have different PIC objects.
12570+ reload_objs="$libobjs $reload_conv_objs"
12571+ output="$libobj"
12572+ cmds=$reload_cmds
12573+ save_ifs="$IFS"; IFS='~'
12574+ for cmd in $cmds; do
12575+ IFS="$save_ifs"
12576+ eval cmd=\"$cmd\"
12577+ $show "$cmd"
12578+ $run eval "$cmd" || exit $?
12579+ done
12580+ IFS="$save_ifs"
12581+ fi
12582+
12583+ if test -n "$gentop"; then
12584+ $show "${rm}r $gentop"
12585+ $run ${rm}r $gentop
12586+ fi
12587+
12588+ exit $EXIT_SUCCESS
12589+ ;;
12590+
12591+ prog)
12592+ case $host in
12593+ *cygwin*) output=`$echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;;
12594+ esac
12595+ if test -n "$vinfo"; then
12596+ $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2
12597+ fi
12598+
12599+ if test -n "$release"; then
12600+ $echo "$modename: warning: \`-release' is ignored for programs" 1>&2
12601+ fi
12602+
12603+ if test "$preload" = yes; then
12604+ if test "$dlopen_support" = unknown && test "$dlopen_self" = unknown &&
12605+ test "$dlopen_self_static" = unknown; then
12606+ $echo "$modename: warning: \`AC_LIBTOOL_DLOPEN' not used. Assuming no dlopen support."
12607+ fi
12608+ fi
12609+
12610+ case $host in
12611+ *-*-rhapsody* | *-*-darwin1.[012])
12612+ # On Rhapsody replace the C library is the System framework
12613+ compile_deplibs=`$echo "X $compile_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
12614+ finalize_deplibs=`$echo "X $finalize_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
12615+ ;;
12616+ esac
12617+
12618+ case $host in
12619+ *darwin*)
12620+ # Don't allow lazy linking, it breaks C++ global constructors
12621+ if test "$tagname" = CXX ; then
12622+ compile_command="$compile_command ${wl}-bind_at_load"
12623+ finalize_command="$finalize_command ${wl}-bind_at_load"
12624+ fi
12625+ ;;
12626+ esac
12627+
12628+ compile_command="$compile_command $compile_deplibs"
12629+ finalize_command="$finalize_command $finalize_deplibs"
12630+
12631+ if test -n "$rpath$xrpath"; then
12632+ # If the user specified any rpath flags, then add them.
12633+ for libdir in $rpath $xrpath; do
12634+ # This is the magic to use -rpath.
12635+ case "$finalize_rpath " in
12636+ *" $libdir "*) ;;
12637+ *) finalize_rpath="$finalize_rpath $libdir" ;;
12638+ esac
12639+ done
12640+ fi
12641+
12642+ # Now hardcode the library paths
12643+ rpath=
12644+ hardcode_libdirs=
12645+ for libdir in $compile_rpath $finalize_rpath; do
12646+ if test -n "$hardcode_libdir_flag_spec"; then
12647+ if test -n "$hardcode_libdir_separator"; then
12648+ if test -z "$hardcode_libdirs"; then
12649+ hardcode_libdirs="$libdir"
12650+ else
12651+ # Just accumulate the unique libdirs.
12652+ case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
12653+ *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
12654+ ;;
12655+ *)
12656+ hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
12657+ ;;
12658+ esac
12659+ fi
12660+ else
12661+ eval flag=\"$hardcode_libdir_flag_spec\"
12662+ rpath="$rpath $flag"
12663+ fi
12664+ elif test -n "$runpath_var"; then
12665+ case "$perm_rpath " in
12666+ *" $libdir "*) ;;
12667+ *) perm_rpath="$perm_rpath $libdir" ;;
12668+ esac
12669+ fi
12670+ case $host in
12671+ *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
12672+ case :$dllsearchpath: in
12673+ *":$libdir:"*) ;;
12674+ *) dllsearchpath="$dllsearchpath:$libdir";;
12675+ esac
12676+ ;;
12677+ esac
12678+ done
12679+ # Substitute the hardcoded libdirs into the rpath.
12680+ if test -n "$hardcode_libdir_separator" &&
12681+ test -n "$hardcode_libdirs"; then
12682+ libdir="$hardcode_libdirs"
12683+ eval rpath=\" $hardcode_libdir_flag_spec\"
12684+ fi
12685+ compile_rpath="$rpath"
12686+
12687+ rpath=
12688+ hardcode_libdirs=
12689+ for libdir in $finalize_rpath; do
12690+ if test -n "$hardcode_libdir_flag_spec"; then
12691+ if test -n "$hardcode_libdir_separator"; then
12692+ if test -z "$hardcode_libdirs"; then
12693+ hardcode_libdirs="$libdir"
12694+ else
12695+ # Just accumulate the unique libdirs.
12696+ case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
12697+ *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
12698+ ;;
12699+ *)
12700+ hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
12701+ ;;
12702+ esac
12703+ fi
12704+ else
12705+ eval flag=\"$hardcode_libdir_flag_spec\"
12706+ rpath="$rpath $flag"
12707+ fi
12708+ elif test -n "$runpath_var"; then
12709+ case "$finalize_perm_rpath " in
12710+ *" $libdir "*) ;;
12711+ *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
12712+ esac
12713+ fi
12714+ done
12715+ # Substitute the hardcoded libdirs into the rpath.
12716+ if test -n "$hardcode_libdir_separator" &&
12717+ test -n "$hardcode_libdirs"; then
12718+ libdir="$hardcode_libdirs"
12719+ eval rpath=\" $hardcode_libdir_flag_spec\"
12720+ fi
12721+ finalize_rpath="$rpath"
12722+
12723+ if test -n "$libobjs" && test "$build_old_libs" = yes; then
12724+ # Transform all the library objects into standard objects.
12725+ compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
12726+ finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
12727+ fi
12728+
12729+ dlsyms=
12730+ if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
12731+ if test -n "$NM" && test -n "$global_symbol_pipe"; then
12732+ dlsyms="${outputname}S.c"
12733+ else
12734+ $echo "$modename: not configured to extract global symbols from dlpreopened files" 1>&2
12735+ fi
12736+ fi
12737+
12738+ if test -n "$dlsyms"; then
12739+ case $dlsyms in
12740+ "") ;;
12741+ *.c)
12742+ # Discover the nlist of each of the dlfiles.
12743+ nlist="$output_objdir/${outputname}.nm"
12744+
12745+ $show "$rm $nlist ${nlist}S ${nlist}T"
12746+ $run $rm "$nlist" "${nlist}S" "${nlist}T"
12747+
12748+ # Parse the name list into a source file.
12749+ $show "creating $output_objdir/$dlsyms"
12750+
12751+ test -z "$run" && $echo > "$output_objdir/$dlsyms" "\
12752+/* $dlsyms - symbol resolution table for \`$outputname' dlsym emulation. */
12753+/* Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP */
12754+
12755+#ifdef __cplusplus
12756+extern \"C\" {
12757+#endif
12758+
12759+/* Prevent the only kind of declaration conflicts we can make. */
12760+#define lt_preloaded_symbols some_other_symbol
12761+
12762+/* External symbol declarations for the compiler. */\
12763+"
12764+
12765+ if test "$dlself" = yes; then
12766+ $show "generating symbol list for \`$output'"
12767+
12768+ test -z "$run" && $echo ': @PROGRAM@ ' > "$nlist"
12769+
12770+ # Add our own program objects to the symbol list.
12771+ progfiles=`$echo "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
12772+ for arg in $progfiles; do
12773+ $show "extracting global C symbols from \`$arg'"
12774+ $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
12775+ done
12776+
12777+ if test -n "$exclude_expsyms"; then
12778+ $run eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
12779+ $run eval '$mv "$nlist"T "$nlist"'
12780+ fi
12781+
12782+ if test -n "$export_symbols_regex"; then
12783+ $run eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
12784+ $run eval '$mv "$nlist"T "$nlist"'
12785+ fi
12786+
12787+ # Prepare the list of exported symbols
12788+ if test -z "$export_symbols"; then
12789+ export_symbols="$output_objdir/$output.exp"
12790+ $run $rm $export_symbols
12791+ $run eval "${SED} -n -e '/^: @PROGRAM@$/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
12792+ else
12793+ $run eval "${SED} -e 's/\([][.*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$output.exp"'
12794+ $run eval 'grep -f "$output_objdir/$output.exp" < "$nlist" > "$nlist"T'
12795+ $run eval 'mv "$nlist"T "$nlist"'
12796+ fi
12797+ fi
12798+
12799+ for arg in $dlprefiles; do
12800+ $show "extracting global C symbols from \`$arg'"
12801+ name=`$echo "$arg" | ${SED} -e 's%^.*/%%'`
12802+ $run eval '$echo ": $name " >> "$nlist"'
12803+ $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
12804+ done
12805+
12806+ if test -z "$run"; then
12807+ # Make sure we have at least an empty file.
12808+ test -f "$nlist" || : > "$nlist"
12809+
12810+ if test -n "$exclude_expsyms"; then
12811+ $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
12812+ $mv "$nlist"T "$nlist"
12813+ fi
12814+
12815+ # Try sorting and uniquifying the output.
12816+ if grep -v "^: " < "$nlist" |
12817+ if sort -k 3 </dev/null >/dev/null 2>&1; then
12818+ sort -k 3
12819+ else
12820+ sort +2
12821+ fi |
12822+ uniq > "$nlist"S; then
12823+ :
12824+ else
12825+ grep -v "^: " < "$nlist" > "$nlist"S
12826+ fi
12827+
12828+ if test -f "$nlist"S; then
12829+ eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$dlsyms"'
12830+ else
12831+ $echo '/* NONE */' >> "$output_objdir/$dlsyms"
12832+ fi
12833+
12834+ $echo >> "$output_objdir/$dlsyms" "\
12835+
12836+#undef lt_preloaded_symbols
12837+
12838+#if defined (__STDC__) && __STDC__
12839+# define lt_ptr void *
12840+#else
12841+# define lt_ptr char *
12842+# define const
12843+#endif
12844+
12845+/* The mapping between symbol names and symbols. */
12846+const struct {
12847+ const char *name;
12848+ lt_ptr address;
12849+}
12850+lt_preloaded_symbols[] =
12851+{\
12852+"
12853+
12854+ eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$dlsyms"
12855+
12856+ $echo >> "$output_objdir/$dlsyms" "\
12857+ {0, (lt_ptr) 0}
12858+};
12859+
12860+/* This works around a problem in FreeBSD linker */
12861+#ifdef FREEBSD_WORKAROUND
12862+static const void *lt_preloaded_setup() {
12863+ return lt_preloaded_symbols;
12864+}
12865+#endif
12866+
12867+#ifdef __cplusplus
12868+}
12869+#endif\
12870+"
12871+ fi
12872+
12873+ pic_flag_for_symtable=
12874+ case $host in
12875+ # compiling the symbol table file with pic_flag works around
12876+ # a FreeBSD bug that causes programs to crash when -lm is
12877+ # linked before any other PIC object. But we must not use
12878+ # pic_flag when linking with -static. The problem exists in
12879+ # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
12880+ *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
12881+ case "$compile_command " in
12882+ *" -static "*) ;;
12883+ *) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND";;
12884+ esac;;
12885+ *-*-hpux*)
12886+ case "$compile_command " in
12887+ *" -static "*) ;;
12888+ *) pic_flag_for_symtable=" $pic_flag";;
12889+ esac
12890+ esac
12891+
12892+ # Now compile the dynamic symbol file.
12893+ $show "(cd $output_objdir && $LTCC -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
12894+ $run eval '(cd $output_objdir && $LTCC -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
12895+
12896+ # Clean up the generated files.
12897+ $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T"
12898+ $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T"
12899+
12900+ # Transform the symbol file into the correct name.
12901+ compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
12902+ finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
12903+ ;;
12904+ *)
12905+ $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2
12906+ exit $EXIT_FAILURE
12907+ ;;
12908+ esac
12909+ else
12910+ # We keep going just in case the user didn't refer to
12911+ # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
12912+ # really was required.
12913+
12914+ # Nullify the symbol file.
12915+ compile_command=`$echo "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
12916+ finalize_command=`$echo "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
12917+ fi
12918+
12919+ if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
12920+ # Replace the output file specification.
12921+ compile_command=`$echo "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
12922+ link_command="$compile_command$compile_rpath"
12923+
12924+ # We have no uninstalled library dependencies, so finalize right now.
12925+ $show "$link_command"
12926+ $run eval "$link_command"
12927+ status=$?
12928+
12929+ # Delete the generated files.
12930+ if test -n "$dlsyms"; then
12931+ $show "$rm $output_objdir/${outputname}S.${objext}"
12932+ $run $rm "$output_objdir/${outputname}S.${objext}"
12933+ fi
12934+
12935+ exit $status
12936+ fi
12937+
12938+ if test -n "$shlibpath_var"; then
12939+ # We should set the shlibpath_var
12940+ rpath=
12941+ for dir in $temp_rpath; do
12942+ case $dir in
12943+ [\\/]* | [A-Za-z]:[\\/]*)
12944+ # Absolute path.
12945+ rpath="$rpath$dir:"
12946+ ;;
12947+ *)
12948+ # Relative path: add a thisdir entry.
12949+ rpath="$rpath\$thisdir/$dir:"
12950+ ;;
12951+ esac
12952+ done
12953+ temp_rpath="$rpath"
12954+ fi
12955+
12956+ if test -n "$compile_shlibpath$finalize_shlibpath"; then
12957+ compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
12958+ fi
12959+ if test -n "$finalize_shlibpath"; then
12960+ finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
12961+ fi
12962+
12963+ compile_var=
12964+ finalize_var=
12965+ if test -n "$runpath_var"; then
12966+ if test -n "$perm_rpath"; then
12967+ # We should set the runpath_var.
12968+ rpath=
12969+ for dir in $perm_rpath; do
12970+ rpath="$rpath$dir:"
12971+ done
12972+ compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
12973+ fi
12974+ if test -n "$finalize_perm_rpath"; then
12975+ # We should set the runpath_var.
12976+ rpath=
12977+ for dir in $finalize_perm_rpath; do
12978+ rpath="$rpath$dir:"
12979+ done
12980+ finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
12981+ fi
12982+ fi
12983+
12984+ if test "$no_install" = yes; then
12985+ # We don't need to create a wrapper script.
12986+ link_command="$compile_var$compile_command$compile_rpath"
12987+ # Replace the output file specification.
12988+ link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
12989+ # Delete the old output file.
12990+ $run $rm $output
12991+ # Link the executable and exit
12992+ $show "$link_command"
12993+ $run eval "$link_command" || exit $?
12994+ exit $EXIT_SUCCESS
12995+ fi
12996+
12997+ if test "$hardcode_action" = relink; then
12998+ # Fast installation is not supported
12999+ link_command="$compile_var$compile_command$compile_rpath"
13000+ relink_command="$finalize_var$finalize_command$finalize_rpath"
13001+
13002+ $echo "$modename: warning: this platform does not like uninstalled shared libraries" 1>&2
13003+ $echo "$modename: \`$output' will be relinked during installation" 1>&2
13004+ else
13005+ if test "$fast_install" != no; then
13006+ link_command="$finalize_var$compile_command$finalize_rpath"
13007+ if test "$fast_install" = yes; then
13008+ relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
13009+ else
13010+ # fast_install is set to needless
13011+ relink_command=
13012+ fi
13013+ else
13014+ link_command="$compile_var$compile_command$compile_rpath"
13015+ relink_command="$finalize_var$finalize_command$finalize_rpath"
13016+ fi
13017+ fi
13018+
13019+ # Replace the output file specification.
13020+ link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
13021+
13022+ # Delete the old output files.
13023+ $run $rm $output $output_objdir/$outputname $output_objdir/lt-$outputname
13024+
13025+ $show "$link_command"
13026+ $run eval "$link_command" || exit $?
13027+
13028+ # Now create the wrapper script.
13029+ $show "creating $output"
13030+
13031+ # Quote the relink command for shipping.
13032+ if test -n "$relink_command"; then
13033+ # Preserve any variables that may affect compiler behavior
13034+ for var in $variables_saved_for_relink; do
13035+ if eval test -z \"\${$var+set}\"; then
13036+ relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
13037+ elif eval var_value=\$$var; test -z "$var_value"; then
13038+ relink_command="$var=; export $var; $relink_command"
13039+ else
13040+ var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
13041+ relink_command="$var=\"$var_value\"; export $var; $relink_command"
13042+ fi
13043+ done
13044+ relink_command="(cd `pwd`; $relink_command)"
13045+ relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
13046+ fi
13047+
13048+ # Quote $echo for shipping.
13049+ if test "X$echo" = "X$SHELL $progpath --fallback-echo"; then
13050+ case $progpath in
13051+ [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
13052+ *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
13053+ esac
13054+ qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"`
13055+ else
13056+ qecho=`$echo "X$echo" | $Xsed -e "$sed_quote_subst"`
13057+ fi
13058+
13059+ # Only actually do things if our run command is non-null.
13060+ if test -z "$run"; then
13061+ # win32 will think the script is a binary if it has
13062+ # a .exe suffix, so we strip it off here.
13063+ case $output in
13064+ *.exe) output=`$echo $output|${SED} 's,.exe$,,'` ;;
13065+ esac
13066+ # test for cygwin because mv fails w/o .exe extensions
13067+ case $host in
13068+ *cygwin*)
13069+ exeext=.exe
13070+ outputname=`$echo $outputname|${SED} 's,.exe$,,'` ;;
13071+ *) exeext= ;;
13072+ esac
13073+ case $host in
13074+ *cygwin* | *mingw* )
13075+ cwrappersource=`$echo ${objdir}/lt-${output}.c`
13076+ cwrapper=`$echo ${output}.exe`
13077+ $rm $cwrappersource $cwrapper
13078+ trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
13079+
13080+ cat > $cwrappersource <<EOF
13081+
13082+/* $cwrappersource - temporary wrapper executable for $objdir/$outputname
13083+ Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
13084+
13085+ The $output program cannot be directly executed until all the libtool
13086+ libraries that it depends on are installed.
13087+
13088+ This wrapper executable should never be moved out of the build directory.
13089+ If it is, it will not operate correctly.
13090+
13091+ Currently, it simply execs the wrapper *script* "/bin/sh $output",
13092+ but could eventually absorb all of the scripts functionality and
13093+ exec $objdir/$outputname directly.
13094+*/
13095+EOF
13096+ cat >> $cwrappersource<<"EOF"
13097+#include <stdio.h>
13098+#include <stdlib.h>
13099+#include <unistd.h>
13100+#include <malloc.h>
13101+#include <stdarg.h>
13102+#include <assert.h>
13103+
13104+#if defined(PATH_MAX)
13105+# define LT_PATHMAX PATH_MAX
13106+#elif defined(MAXPATHLEN)
13107+# define LT_PATHMAX MAXPATHLEN
13108+#else
13109+# define LT_PATHMAX 1024
13110+#endif
13111+
13112+#ifndef DIR_SEPARATOR
13113+#define DIR_SEPARATOR '/'
13114+#endif
13115+
13116+#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
13117+ defined (__OS2__)
13118+#define HAVE_DOS_BASED_FILE_SYSTEM
13119+#ifndef DIR_SEPARATOR_2
13120+#define DIR_SEPARATOR_2 '\\'
13121+#endif
13122+#endif
13123+
13124+#ifndef DIR_SEPARATOR_2
13125+# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
13126+#else /* DIR_SEPARATOR_2 */
13127+# define IS_DIR_SEPARATOR(ch) \
13128+ (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
13129+#endif /* DIR_SEPARATOR_2 */
13130+
13131+#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
13132+#define XFREE(stale) do { \
13133+ if (stale) { free ((void *) stale); stale = 0; } \
13134+} while (0)
13135+
13136+const char *program_name = NULL;
13137+
13138+void * xmalloc (size_t num);
13139+char * xstrdup (const char *string);
13140+char * basename (const char *name);
13141+char * fnqualify(const char *path);
13142+char * strendzap(char *str, const char *pat);
13143+void lt_fatal (const char *message, ...);
13144+
13145+int
13146+main (int argc, char *argv[])
13147+{
13148+ char **newargz;
13149+ int i;
13150+
13151+ program_name = (char *) xstrdup ((char *) basename (argv[0]));
13152+ newargz = XMALLOC(char *, argc+2);
13153+EOF
13154+
13155+ cat >> $cwrappersource <<EOF
13156+ newargz[0] = "$SHELL";
13157+EOF
13158+
13159+ cat >> $cwrappersource <<"EOF"
13160+ newargz[1] = fnqualify(argv[0]);
13161+ /* we know the script has the same name, without the .exe */
13162+ /* so make sure newargz[1] doesn't end in .exe */
13163+ strendzap(newargz[1],".exe");
13164+ for (i = 1; i < argc; i++)
13165+ newargz[i+1] = xstrdup(argv[i]);
13166+ newargz[argc+1] = NULL;
13167+EOF
13168+
13169+ cat >> $cwrappersource <<EOF
13170+ execv("$SHELL",newargz);
13171+EOF
13172+
13173+ cat >> $cwrappersource <<"EOF"
13174+}
13175+
13176+void *
13177+xmalloc (size_t num)
13178+{
13179+ void * p = (void *) malloc (num);
13180+ if (!p)
13181+ lt_fatal ("Memory exhausted");
13182+
13183+ return p;
13184+}
13185+
13186+char *
13187+xstrdup (const char *string)
13188+{
13189+ return string ? strcpy ((char *) xmalloc (strlen (string) + 1), string) : NULL
13190+;
13191+}
13192+
13193+char *
13194+basename (const char *name)
13195+{
13196+ const char *base;
13197+
13198+#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
13199+ /* Skip over the disk name in MSDOS pathnames. */
13200+ if (isalpha (name[0]) && name[1] == ':')
13201+ name += 2;
13202+#endif
13203+
13204+ for (base = name; *name; name++)
13205+ if (IS_DIR_SEPARATOR (*name))
13206+ base = name + 1;
13207+ return (char *) base;
13208+}
13209+
13210+char *
13211+fnqualify(const char *path)
13212+{
13213+ size_t size;
13214+ char *p;
13215+ char tmp[LT_PATHMAX + 1];
13216+
13217+ assert(path != NULL);
13218+
13219+ /* Is it qualified already? */
13220+#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
13221+ if (isalpha (path[0]) && path[1] == ':')
13222+ return xstrdup (path);
13223+#endif
13224+ if (IS_DIR_SEPARATOR (path[0]))
13225+ return xstrdup (path);
13226+
13227+ /* prepend the current directory */
13228+ /* doesn't handle '~' */
13229+ if (getcwd (tmp, LT_PATHMAX) == NULL)
13230+ lt_fatal ("getcwd failed");
13231+ size = strlen(tmp) + 1 + strlen(path) + 1; /* +2 for '/' and '\0' */
13232+ p = XMALLOC(char, size);
13233+ sprintf(p, "%s%c%s", tmp, DIR_SEPARATOR, path);
13234+ return p;
13235+}
13236+
13237+char *
13238+strendzap(char *str, const char *pat)
13239+{
13240+ size_t len, patlen;
13241+
13242+ assert(str != NULL);
13243+ assert(pat != NULL);
13244+
13245+ len = strlen(str);
13246+ patlen = strlen(pat);
13247+
13248+ if (patlen <= len)
13249+ {
13250+ str += len - patlen;
13251+ if (strcmp(str, pat) == 0)
13252+ *str = '\0';
13253+ }
13254+ return str;
13255+}
13256+
13257+static void
13258+lt_error_core (int exit_status, const char * mode,
13259+ const char * message, va_list ap)
13260+{
13261+ fprintf (stderr, "%s: %s: ", program_name, mode);
13262+ vfprintf (stderr, message, ap);
13263+ fprintf (stderr, ".\n");
13264+
13265+ if (exit_status >= 0)
13266+ exit (exit_status);
13267+}
13268+
13269+void
13270+lt_fatal (const char *message, ...)
13271+{
13272+ va_list ap;
13273+ va_start (ap, message);
13274+ lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
13275+ va_end (ap);
13276+}
13277+EOF
13278+ # we should really use a build-platform specific compiler
13279+ # here, but OTOH, the wrappers (shell script and this C one)
13280+ # are only useful if you want to execute the "real" binary.
13281+ # Since the "real" binary is built for $host, then this
13282+ # wrapper might as well be built for $host, too.
13283+ $run $LTCC -s -o $cwrapper $cwrappersource
13284+ ;;
13285+ esac
13286+ $rm $output
13287+ trap "$rm $output; exit $EXIT_FAILURE" 1 2 15
13288+
13289+ $echo > $output "\
13290+#! $SHELL
13291+
13292+# $output - temporary wrapper script for $objdir/$outputname
13293+# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
13294+#
13295+# The $output program cannot be directly executed until all the libtool
13296+# libraries that it depends on are installed.
13297+#
13298+# This wrapper script should never be moved out of the build directory.
13299+# If it is, it will not operate correctly.
13300+
13301+# Sed substitution that helps us do robust quoting. It backslashifies
13302+# metacharacters that are still active within double-quoted strings.
13303+Xsed='${SED} -e 1s/^X//'
13304+sed_quote_subst='$sed_quote_subst'
13305+
13306+# The HP-UX ksh and POSIX shell print the target directory to stdout
13307+# if CDPATH is set.
13308+if test \"\${CDPATH+set}\" = set; then CDPATH=:; export CDPATH; fi
13309+
13310+relink_command=\"$relink_command\"
13311+
13312+# This environment variable determines our operation mode.
13313+if test \"\$libtool_install_magic\" = \"$magic\"; then
13314+ # install mode needs the following variable:
13315+ notinst_deplibs='$notinst_deplibs'
13316+else
13317+ # When we are sourced in execute mode, \$file and \$echo are already set.
13318+ if test \"\$libtool_execute_magic\" != \"$magic\"; then
13319+ echo=\"$qecho\"
13320+ file=\"\$0\"
13321+ # Make sure echo works.
13322+ if test \"X\$1\" = X--no-reexec; then
13323+ # Discard the --no-reexec flag, and continue.
13324+ shift
13325+ elif test \"X\`(\$echo '\t') 2>/dev/null\`\" = 'X\t'; then
13326+ # Yippee, \$echo works!
13327+ :
13328+ else
13329+ # Restart under the correct shell, and then maybe \$echo will work.
13330+ exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
13331+ fi
13332+ fi\
13333+"
13334+ $echo >> $output "\
13335+
13336+ # Find the directory that this script lives in.
13337+ thisdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
13338+ test \"x\$thisdir\" = \"x\$file\" && thisdir=.
13339+
13340+ # Follow symbolic links until we get to the real thisdir.
13341+ file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
13342+ while test -n \"\$file\"; do
13343+ destdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
13344+
13345+ # If there was a directory component, then change thisdir.
13346+ if test \"x\$destdir\" != \"x\$file\"; then
13347+ case \"\$destdir\" in
13348+ [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
13349+ *) thisdir=\"\$thisdir/\$destdir\" ;;
13350+ esac
13351+ fi
13352+
13353+ file=\`\$echo \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
13354+ file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
13355+ done
13356+
13357+ # Try to get the absolute directory name.
13358+ absdir=\`cd \"\$thisdir\" && pwd\`
13359+ test -n \"\$absdir\" && thisdir=\"\$absdir\"
13360+"
13361+
13362+ if test "$fast_install" = yes; then
13363+ $echo >> $output "\
13364+ program=lt-'$outputname'$exeext
13365+ progdir=\"\$thisdir/$objdir\"
13366+
13367+ if test ! -f \"\$progdir/\$program\" || \\
13368+ { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
13369+ test \"X\$file\" != \"X\$progdir/\$program\"; }; then
13370+
13371+ file=\"\$\$-\$program\"
13372+
13373+ if test ! -d \"\$progdir\"; then
13374+ $mkdir \"\$progdir\"
13375+ else
13376+ $rm \"\$progdir/\$file\"
13377+ fi"
13378+
13379+ $echo >> $output "\
13380+
13381+ # relink executable if necessary
13382+ if test -n \"\$relink_command\"; then
13383+ if relink_command_output=\`eval \$relink_command 2>&1\`; then :
13384+ else
13385+ $echo \"\$relink_command_output\" >&2
13386+ $rm \"\$progdir/\$file\"
13387+ exit $EXIT_FAILURE
13388+ fi
13389+ fi
13390+
13391+ $mv \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
13392+ { $rm \"\$progdir/\$program\";
13393+ $mv \"\$progdir/\$file\" \"\$progdir/\$program\"; }
13394+ $rm \"\$progdir/\$file\"
13395+ fi"
13396+ else
13397+ $echo >> $output "\
13398+ program='$outputname'
13399+ progdir=\"\$thisdir/$objdir\"
13400+"
13401+ fi
13402+
13403+ $echo >> $output "\
13404+
13405+ if test -f \"\$progdir/\$program\"; then"
13406+
13407+ # Export our shlibpath_var if we have one.
13408+ if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
13409+ $echo >> $output "\
13410+ # Add our own library path to $shlibpath_var
13411+ $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
13412+
13413+ # Some systems cannot cope with colon-terminated $shlibpath_var
13414+ # The second colon is a workaround for a bug in BeOS R4 sed
13415+ $shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
13416+
13417+ export $shlibpath_var
13418+"
13419+ fi
13420+
13421+ # fixup the dll searchpath if we need to.
13422+ if test -n "$dllsearchpath"; then
13423+ $echo >> $output "\
13424+ # Add the dll search path components to the executable PATH
13425+ PATH=$dllsearchpath:\$PATH
13426+"
13427+ fi
13428+
13429+ $echo >> $output "\
13430+ if test \"\$libtool_execute_magic\" != \"$magic\"; then
13431+ # Run the actual program with our arguments.
13432+"
13433+ case $host in
13434+ # Backslashes separate directories on plain windows
13435+ *-*-mingw | *-*-os2*)
13436+ $echo >> $output "\
13437+ exec \$progdir\\\\\$program \${1+\"\$@\"}
13438+"
13439+ ;;
13440+
13441+ *)
13442+ $echo >> $output "\
13443+ exec \$progdir/\$program \${1+\"\$@\"}
13444+"
13445+ ;;
13446+ esac
13447+ $echo >> $output "\
13448+ \$echo \"\$0: cannot exec \$program \${1+\"\$@\"}\"
13449+ exit $EXIT_FAILURE
13450+ fi
13451+ else
13452+ # The program doesn't exist.
13453+ \$echo \"\$0: error: \$progdir/\$program does not exist\" 1>&2
13454+ \$echo \"This script is just a wrapper for \$program.\" 1>&2
13455+ $echo \"See the $PACKAGE documentation for more information.\" 1>&2
13456+ exit $EXIT_FAILURE
13457+ fi
13458+fi\
13459+"
13460+ chmod +x $output
13461+ fi
13462+ exit $EXIT_SUCCESS
13463+ ;;
13464+ esac
13465+
13466+ # See if we need to build an old-fashioned archive.
13467+ for oldlib in $oldlibs; do
13468+
13469+ if test "$build_libtool_libs" = convenience; then
13470+ oldobjs="$libobjs_save"
13471+ addlibs="$convenience"
13472+ build_libtool_libs=no
13473+ else
13474+ if test "$build_libtool_libs" = module; then
13475+ oldobjs="$libobjs_save"
13476+ build_libtool_libs=no
13477+ else
13478+ oldobjs="$old_deplibs $non_pic_objects"
13479+ fi
13480+ addlibs="$old_convenience"
13481+ fi
13482+
13483+ if test -n "$addlibs"; then
13484+ gentop="$output_objdir/${outputname}x"
13485+ $show "${rm}r $gentop"
13486+ $run ${rm}r "$gentop"
13487+ $show "$mkdir $gentop"
13488+ $run $mkdir "$gentop"
13489+ status=$?
13490+ if test "$status" -ne 0 && test ! -d "$gentop"; then
13491+ exit $status
13492+ fi
13493+ generated="$generated $gentop"
13494+
13495+ # Add in members from convenience archives.
13496+ for xlib in $addlibs; do
13497+ # Extract the objects.
13498+ case $xlib in
13499+ [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
13500+ *) xabs=`pwd`"/$xlib" ;;
13501+ esac
13502+ xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
13503+ xdir="$gentop/$xlib"
13504+
13505+ $show "${rm}r $xdir"
13506+ $run ${rm}r "$xdir"
13507+ $show "$mkdir $xdir"
13508+ $run $mkdir "$xdir"
13509+ status=$?
13510+ if test "$status" -ne 0 && test ! -d "$xdir"; then
13511+ exit $status
13512+ fi
13513+ # We will extract separately just the conflicting names and we will no
13514+ # longer touch any unique names. It is faster to leave these extract
13515+ # automatically by $AR in one run.
13516+ $show "(cd $xdir && $AR x $xabs)"
13517+ $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
13518+ if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then
13519+ :
13520+ else
13521+ $echo "$modename: warning: object name conflicts; renaming object files" 1>&2
13522+ $echo "$modename: warning: to ensure that they will not overwrite" 1>&2
13523+ $AR t "$xabs" | sort | uniq -cd | while read -r count name
13524+ do
13525+ i=1
13526+ while test "$i" -le "$count"
13527+ do
13528+ # Put our $i before any first dot (extension)
13529+ # Never overwrite any file
13530+ name_to="$name"
13531+ while test "X$name_to" = "X$name" || test -f "$xdir/$name_to"
13532+ do
13533+ name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"`
13534+ done
13535+ $show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')"
13536+ $run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $?
13537+ i=`expr $i + 1`
13538+ done
13539+ done
13540+ fi
13541+
13542+ oldobjs="$oldobjs "`find $xdir -name \*.${objext} -print -o -name \*.lo -print | $NL2SP`
13543+ done
13544+ fi
13545+
13546+ # Do each command in the archive commands.
13547+ if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
13548+ cmds=$old_archive_from_new_cmds
13549+ else
13550+ eval cmds=\"$old_archive_cmds\"
13551+
13552+ if len=`expr "X$cmds" : ".*"` &&
13553+ test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
13554+ cmds=$old_archive_cmds
13555+ else
13556+ # the command line is too long to link in one step, link in parts
13557+ $echo "using piecewise archive linking..."
13558+ save_RANLIB=$RANLIB
13559+ RANLIB=:
13560+ objlist=
13561+ concat_cmds=
13562+ save_oldobjs=$oldobjs
13563+ # GNU ar 2.10+ was changed to match POSIX; thus no paths are
13564+ # encoded into archives. This makes 'ar r' malfunction in
13565+ # this piecewise linking case whenever conflicting object
13566+ # names appear in distinct ar calls; check, warn and compensate.
13567+ if (for obj in $save_oldobjs
13568+ do
13569+ $echo "X$obj" | $Xsed -e 's%^.*/%%'
13570+ done | sort | sort -uc >/dev/null 2>&1); then
13571+ :
13572+ else
13573+ $echo "$modename: warning: object name conflicts; overriding AR_FLAGS to 'cq'" 1>&2
13574+ $echo "$modename: warning: to ensure that POSIX-compatible ar will work" 1>&2
13575+ AR_FLAGS=cq
13576+ fi
13577+ # Is there a better way of finding the last object in the list?
13578+ for obj in $save_oldobjs
13579+ do
13580+ last_oldobj=$obj
13581+ done
13582+ for obj in $save_oldobjs
13583+ do
13584+ oldobjs="$objlist $obj"
13585+ objlist="$objlist $obj"
13586+ eval test_cmds=\"$old_archive_cmds\"
13587+ if len=`expr "X$test_cmds" : ".*"` &&
13588+ test "$len" -le "$max_cmd_len"; then
13589+ :
13590+ else
13591+ # the above command should be used before it gets too long
13592+ oldobjs=$objlist
13593+ if test "$obj" = "$last_oldobj" ; then
13594+ RANLIB=$save_RANLIB
13595+ fi
13596+ test -z "$concat_cmds" || concat_cmds=$concat_cmds~
13597+ eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
13598+ objlist=
13599+ fi
13600+ done
13601+ RANLIB=$save_RANLIB
13602+ oldobjs=$objlist
13603+ if test "X$oldobjs" = "X" ; then
13604+ eval cmds=\"\$concat_cmds\"
13605+ else
13606+ eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
13607+ fi
13608+ fi
13609+ fi
13610+ save_ifs="$IFS"; IFS='~'
13611+ for cmd in $cmds; do
13612+ eval cmd=\"$cmd\"
13613+ IFS="$save_ifs"
13614+ $show "$cmd"
13615+ $run eval "$cmd" || exit $?
13616+ done
13617+ IFS="$save_ifs"
13618+ done
13619+
13620+ if test -n "$generated"; then
13621+ $show "${rm}r$generated"
13622+ $run ${rm}r$generated
13623+ fi
13624+
13625+ # Now create the libtool archive.
13626+ case $output in
13627+ *.la)
13628+ old_library=
13629+ test "$build_old_libs" = yes && old_library="$libname.$libext"
13630+ $show "creating $output"
13631+
13632+ # Preserve any variables that may affect compiler behavior
13633+ for var in $variables_saved_for_relink; do
13634+ if eval test -z \"\${$var+set}\"; then
13635+ relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
13636+ elif eval var_value=\$$var; test -z "$var_value"; then
13637+ relink_command="$var=; export $var; $relink_command"
13638+ else
13639+ var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
13640+ relink_command="$var=\"$var_value\"; export $var; $relink_command"
13641+ fi
13642+ done
13643+ # Quote the link command for shipping.
13644+ relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
13645+ relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
13646+ if test "$hardcode_automatic" = yes ; then
13647+ relink_command=
13648+ fi
13649+
13650+
13651+ # Only create the output if not a dry run.
13652+ if test -z "$run"; then
13653+ for installed in no yes; do
13654+ if test "$installed" = yes; then
13655+ if test -z "$install_libdir"; then
13656+ break
13657+ fi
13658+ output="$output_objdir/$outputname"i
13659+ # Replace all uninstalled libtool libraries with the installed ones
13660+ newdependency_libs=
13661+ for deplib in $dependency_libs; do
13662+ case $deplib in
13663+ *.la)
13664+ name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'`
13665+ eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
13666+ if test -z "$libdir"; then
13667+ $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
13668+ exit $EXIT_FAILURE
13669+ fi
13670+ newdependency_libs="$newdependency_libs $libdir/$name"
13671+ ;;
13672+ *) newdependency_libs="$newdependency_libs $deplib" ;;
13673+ esac
13674+ done
13675+ dependency_libs="$newdependency_libs"
13676+ newdlfiles=
13677+ for lib in $dlfiles; do
13678+ name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
13679+ eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
13680+ if test -z "$libdir"; then
13681+ $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
13682+ exit $EXIT_FAILURE
13683+ fi
13684+ newdlfiles="$newdlfiles $libdir/$name"
13685+ done
13686+ dlfiles="$newdlfiles"
13687+ newdlprefiles=
13688+ for lib in $dlprefiles; do
13689+ name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
13690+ eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
13691+ if test -z "$libdir"; then
13692+ $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
13693+ exit $EXIT_FAILURE
13694+ fi
13695+ newdlprefiles="$newdlprefiles $libdir/$name"
13696+ done
13697+ dlprefiles="$newdlprefiles"
13698+ else
13699+ newdlfiles=
13700+ for lib in $dlfiles; do
13701+ case $lib in
13702+ [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
13703+ *) abs=`pwd`"/$lib" ;;
13704+ esac
13705+ newdlfiles="$newdlfiles $abs"
13706+ done
13707+ dlfiles="$newdlfiles"
13708+ newdlprefiles=
13709+ for lib in $dlprefiles; do
13710+ case $lib in
13711+ [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
13712+ *) abs=`pwd`"/$lib" ;;
13713+ esac
13714+ newdlprefiles="$newdlprefiles $abs"
13715+ done
13716+ dlprefiles="$newdlprefiles"
13717+ fi
13718+ $rm $output
13719+ # place dlname in correct position for cygwin
13720+ tdlname=$dlname
13721+ case $host,$output,$installed,$module,$dlname in
13722+ *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
13723+ esac
13724+ $echo > $output "\
13725+# $outputname - a libtool library file
13726+# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
13727+#
13728+# Please DO NOT delete this file!
13729+# It is necessary for linking the library.
13730+
13731+# The name that we can dlopen(3).
13732+dlname='$tdlname'
13733+
13734+# Names of this library.
13735+library_names='$library_names'
13736+
13737+# The name of the static archive.
13738+old_library='$old_library'
13739+
13740+# Libraries that this one depends upon.
13741+dependency_libs='$dependency_libs'
13742+
13743+# Version information for $libname.
13744+current=$current
13745+age=$age
13746+revision=$revision
13747+
13748+# Is this an already installed library?
13749+installed=$installed
13750+
13751+# Should we warn about portability when linking against -modules?
13752+shouldnotlink=$module
13753+
13754+# Files to dlopen/dlpreopen
13755+dlopen='$dlfiles'
13756+dlpreopen='$dlprefiles'
13757+
13758+# Directory that this library needs to be installed in:
13759+libdir='$install_libdir'"
13760+ if test "$installed" = no && test "$need_relink" = yes; then
13761+ $echo >> $output "\
13762+relink_command=\"$relink_command\""
13763+ fi
13764+ done
13765+ fi
13766+
13767+ # Do a symbolic link so that the libtool archive can be found in
13768+ # LD_LIBRARY_PATH before the program is installed.
13769+ $show "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)"
13770+ $run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $?
13771+ ;;
13772+ esac
13773+ exit $EXIT_SUCCESS
13774+ ;;
13775+
13776+ # libtool install mode
13777+ install)
13778+ modename="$modename: install"
13779+
13780+ # There may be an optional sh(1) argument at the beginning of
13781+ # install_prog (especially on Windows NT).
13782+ if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
13783+ # Allow the use of GNU shtool's install command.
13784+ $echo "X$nonopt" | $Xsed | grep shtool > /dev/null; then
13785+ # Aesthetically quote it.
13786+ arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"`
13787+ case $arg in
13788+ *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
13789+ arg="\"$arg\""
13790+ ;;
13791+ esac
13792+ install_prog="$arg "
13793+ arg="$1"
13794+ shift
13795+ else
13796+ install_prog=
13797+ arg="$nonopt"
13798+ fi
13799+
13800+ # The real first argument should be the name of the installation program.
13801+ # Aesthetically quote it.
13802+ arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
13803+ case $arg in
13804+ *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
13805+ arg="\"$arg\""
13806+ ;;
13807+ esac
13808+ install_prog="$install_prog$arg"
13809+
13810+ # We need to accept at least all the BSD install flags.
13811+ dest=
13812+ files=
13813+ opts=
13814+ prev=
13815+ install_type=
13816+ isdir=no
13817+ stripme=
13818+ for arg
13819+ do
13820+ if test -n "$dest"; then
13821+ files="$files $dest"
13822+ dest="$arg"
13823+ continue
13824+ fi
13825+
13826+ case $arg in
13827+ -d) isdir=yes ;;
13828+ -f) prev="-f" ;;
13829+ -g) prev="-g" ;;
13830+ -m) prev="-m" ;;
13831+ -o) prev="-o" ;;
13832+ -s)
13833+ stripme=" -s"
13834+ continue
13835+ ;;
13836+ -*) ;;
13837+
13838+ *)
13839+ # If the previous option needed an argument, then skip it.
13840+ if test -n "$prev"; then
13841+ prev=
13842+ else
13843+ dest="$arg"
13844+ continue
13845+ fi
13846+ ;;
13847+ esac
13848+
13849+ # Aesthetically quote the argument.
13850+ arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
13851+ case $arg in
13852+ *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
13853+ arg="\"$arg\""
13854+ ;;
13855+ esac
13856+ install_prog="$install_prog $arg"
13857+ done
13858+
13859+ if test -z "$install_prog"; then
13860+ $echo "$modename: you must specify an install program" 1>&2
13861+ $echo "$help" 1>&2
13862+ exit $EXIT_FAILURE
13863+ fi
13864+
13865+ if test -n "$prev"; then
13866+ $echo "$modename: the \`$prev' option requires an argument" 1>&2
13867+ $echo "$help" 1>&2
13868+ exit $EXIT_FAILURE
13869+ fi
13870+
13871+ if test -z "$files"; then
13872+ if test -z "$dest"; then
13873+ $echo "$modename: no file or destination specified" 1>&2
13874+ else
13875+ $echo "$modename: you must specify a destination" 1>&2
13876+ fi
13877+ $echo "$help" 1>&2
13878+ exit $EXIT_FAILURE
13879+ fi
13880+
13881+ # Strip any trailing slash from the destination.
13882+ dest=`$echo "X$dest" | $Xsed -e 's%/$%%'`
13883+
13884+ # Check to see that the destination is a directory.
13885+ test -d "$dest" && isdir=yes
13886+ if test "$isdir" = yes; then
13887+ destdir="$dest"
13888+ destname=
13889+ else
13890+ destdir=`$echo "X$dest" | $Xsed -e 's%/[^/]*$%%'`
13891+ test "X$destdir" = "X$dest" && destdir=.
13892+ destname=`$echo "X$dest" | $Xsed -e 's%^.*/%%'`
13893+
13894+ # Not a directory, so check to see that there is only one file specified.
13895+ set dummy $files
13896+ if test "$#" -gt 2; then
13897+ $echo "$modename: \`$dest' is not a directory" 1>&2
13898+ $echo "$help" 1>&2
13899+ exit $EXIT_FAILURE
13900+ fi
13901+ fi
13902+ case $destdir in
13903+ [\\/]* | [A-Za-z]:[\\/]*) ;;
13904+ *)
13905+ for file in $files; do
13906+ case $file in
13907+ *.lo) ;;
13908+ *)
13909+ $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2
13910+ $echo "$help" 1>&2
13911+ exit $EXIT_FAILURE
13912+ ;;
13913+ esac
13914+ done
13915+ ;;
13916+ esac
13917+
13918+ # This variable tells wrapper scripts just to set variables rather
13919+ # than running their programs.
13920+ libtool_install_magic="$magic"
13921+
13922+ staticlibs=
13923+ future_libdirs=
13924+ current_libdirs=
13925+ for file in $files; do
13926+
13927+ # Do each installation.
13928+ case $file in
13929+ *.$libext)
13930+ # Do the static libraries later.
13931+ staticlibs="$staticlibs $file"
13932+ ;;
13933+
13934+ *.la)
13935+ # Check to see that this really is a libtool archive.
13936+ if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
13937+ else
13938+ $echo "$modename: \`$file' is not a valid libtool archive" 1>&2
13939+ $echo "$help" 1>&2
13940+ exit $EXIT_FAILURE
13941+ fi
13942+
13943+ library_names=
13944+ old_library=
13945+ relink_command=
13946+ # If there is no directory component, then add one.
13947+ case $file in
13948+ */* | *\\*) . $file ;;
13949+ *) . ./$file ;;
13950+ esac
13951+
13952+ # Add the libdir to current_libdirs if it is the destination.
13953+ if test "X$destdir" = "X$libdir"; then
13954+ case "$current_libdirs " in
13955+ *" $libdir "*) ;;
13956+ *) current_libdirs="$current_libdirs $libdir" ;;
13957+ esac
13958+ else
13959+ # Note the libdir as a future libdir.
13960+ case "$future_libdirs " in
13961+ *" $libdir "*) ;;
13962+ *) future_libdirs="$future_libdirs $libdir" ;;
13963+ esac
13964+ fi
13965+
13966+ dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/
13967+ test "X$dir" = "X$file/" && dir=
13968+ dir="$dir$objdir"
13969+
13970+ if test -n "$relink_command"; then
13971+ # Determine the prefix the user has applied to our future dir.
13972+ inst_prefix_dir=`$echo "$destdir" | $SED "s%$libdir\$%%"`
13973+
13974+ # Don't allow the user to place us outside of our expected
13975+ # location b/c this prevents finding dependent libraries that
13976+ # are installed to the same prefix.
13977+ # At present, this check doesn't affect windows .dll's that
13978+ # are installed into $libdir/../bin (currently, that works fine)
13979+ # but it's something to keep an eye on.
13980+ if test "$inst_prefix_dir" = "$destdir"; then
13981+ $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
13982+ exit $EXIT_FAILURE
13983+ fi
13984+
13985+ if test -n "$inst_prefix_dir"; then
13986+ # Stick the inst_prefix_dir data into the link command.
13987+ relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
13988+ else
13989+ relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%%"`
13990+ fi
13991+
13992+ $echo "$modename: warning: relinking \`$file'" 1>&2
13993+ $show "$relink_command"
13994+ if $run eval "$relink_command"; then :
13995+ else
13996+ $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
13997+ exit $EXIT_FAILURE
13998+ fi
13999+ fi
14000+
14001+ # See the names of the shared library.
14002+ set dummy $library_names
14003+ if test -n "$2"; then
14004+ realname="$2"
14005+ shift
14006+ shift
14007+
14008+ srcname="$realname"
14009+ test -n "$relink_command" && srcname="$realname"T
14010+
14011+ # Install the shared library and build the symlinks.
14012+ $show "$install_prog $dir/$srcname $destdir/$realname"
14013+ $run eval "$install_prog $dir/$srcname $destdir/$realname" || exit $?
14014+ if test -n "$stripme" && test -n "$striplib"; then
14015+ $show "$striplib $destdir/$realname"
14016+ $run eval "$striplib $destdir/$realname" || exit $?
14017+ fi
14018+
14019+ if test "$#" -gt 0; then
14020+ # Delete the old symlinks, and create new ones.
14021+ for linkname
14022+ do
14023+ if test "$linkname" != "$realname"; then
14024+ $show "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)"
14025+ $run eval "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)"
14026+ fi
14027+ done
14028+ fi
14029+
14030+ # Do each command in the postinstall commands.
14031+ lib="$destdir/$realname"
14032+ cmds=$postinstall_cmds
14033+ save_ifs="$IFS"; IFS='~'
14034+ for cmd in $cmds; do
14035+ IFS="$save_ifs"
14036+ eval cmd=\"$cmd\"
14037+ $show "$cmd"
14038+ $run eval "$cmd" || exit $?
14039+ done
14040+ IFS="$save_ifs"
14041+ fi
14042+
14043+ # Install the pseudo-library for information purposes.
14044+ name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
14045+ instname="$dir/$name"i
14046+ $show "$install_prog $instname $destdir/$name"
14047+ $run eval "$install_prog $instname $destdir/$name" || exit $?
14048+
14049+ # Maybe install the static library, too.
14050+ test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
14051+ ;;
14052+
14053+ *.lo)
14054+ # Install (i.e. copy) a libtool object.
14055+
14056+ # Figure out destination file name, if it wasn't already specified.
14057+ if test -n "$destname"; then
14058+ destfile="$destdir/$destname"
14059+ else
14060+ destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
14061+ destfile="$destdir/$destfile"
14062+ fi
14063+
14064+ # Deduce the name of the destination old-style object file.
14065+ case $destfile in
14066+ *.lo)
14067+ staticdest=`$echo "X$destfile" | $Xsed -e "$lo2o"`
14068+ ;;
14069+ *.$objext)
14070+ staticdest="$destfile"
14071+ destfile=
14072+ ;;
14073+ *)
14074+ $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2
14075+ $echo "$help" 1>&2
14076+ exit $EXIT_FAILURE
14077+ ;;
14078+ esac
14079+
14080+ # Install the libtool object if requested.
14081+ if test -n "$destfile"; then
14082+ $show "$install_prog $file $destfile"
14083+ $run eval "$install_prog $file $destfile" || exit $?
14084+ fi
14085+
14086+ # Install the old object if enabled.
14087+ if test "$build_old_libs" = yes; then
14088+ # Deduce the name of the old-style object file.
14089+ staticobj=`$echo "X$file" | $Xsed -e "$lo2o"`
14090+
14091+ $show "$install_prog $staticobj $staticdest"
14092+ $run eval "$install_prog \$staticobj \$staticdest" || exit $?
14093+ fi
14094+ exit $EXIT_SUCCESS
14095+ ;;
14096+
14097+ *)
14098+ # Figure out destination file name, if it wasn't already specified.
14099+ if test -n "$destname"; then
14100+ destfile="$destdir/$destname"
14101+ else
14102+ destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
14103+ destfile="$destdir/$destfile"
14104+ fi
14105+
14106+ # If the file is missing, and there is a .exe on the end, strip it
14107+ # because it is most likely a libtool script we actually want to
14108+ # install
14109+ stripped_ext=""
14110+ case $file in
14111+ *.exe)
14112+ if test ! -f "$file"; then
14113+ file=`$echo $file|${SED} 's,.exe$,,'`
14114+ stripped_ext=".exe"
14115+ fi
14116+ ;;
14117+ esac
14118+
14119+ # Do a test to see if this is really a libtool program.
14120+ case $host in
14121+ *cygwin*|*mingw*)
14122+ wrapper=`$echo $file | ${SED} -e 's,.exe$,,'`
14123+ ;;
14124+ *)
14125+ wrapper=$file
14126+ ;;
14127+ esac
14128+ if (${SED} -e '4q' $wrapper | grep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then
14129+ notinst_deplibs=
14130+ relink_command=
14131+
14132+ # To insure that "foo" is sourced, and not "foo.exe",
14133+ # finese the cygwin/MSYS system by explicitly sourcing "foo."
14134+ # which disallows the automatic-append-.exe behavior.
14135+ case $build in
14136+ *cygwin* | *mingw*) wrapperdot=${wrapper}. ;;
14137+ *) wrapperdot=${wrapper} ;;
14138+ esac
14139+ # If there is no directory component, then add one.
14140+ case $file in
14141+ */* | *\\*) . ${wrapperdot} ;;
14142+ *) . ./${wrapperdot} ;;
14143+ esac
14144+
14145+ # Check the variables that should have been set.
14146+ if test -z "$notinst_deplibs"; then
14147+ $echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2
14148+ exit $EXIT_FAILURE
14149+ fi
14150+
14151+ finalize=yes
14152+ for lib in $notinst_deplibs; do
14153+ # Check to see that each library is installed.
14154+ libdir=
14155+ if test -f "$lib"; then
14156+ # If there is no directory component, then add one.
14157+ case $lib in
14158+ */* | *\\*) . $lib ;;
14159+ *) . ./$lib ;;
14160+ esac
14161+ fi
14162+ libfile="$libdir/"`$echo "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
14163+ if test -n "$libdir" && test ! -f "$libfile"; then
14164+ $echo "$modename: warning: \`$lib' has not been installed in \`$libdir'" 1>&2
14165+ finalize=no
14166+ fi
14167+ done
14168+
14169+ relink_command=
14170+ # To insure that "foo" is sourced, and not "foo.exe",
14171+ # finese the cygwin/MSYS system by explicitly sourcing "foo."
14172+ # which disallows the automatic-append-.exe behavior.
14173+ case $build in
14174+ *cygwin* | *mingw*) wrapperdot=${wrapper}. ;;
14175+ *) wrapperdot=${wrapper} ;;
14176+ esac
14177+ # If there is no directory component, then add one.
14178+ case $file in
14179+ */* | *\\*) . ${wrapperdot} ;;
14180+ *) . ./${wrapperdot} ;;
14181+ esac
14182+
14183+ outputname=
14184+ if test "$fast_install" = no && test -n "$relink_command"; then
14185+ if test "$finalize" = yes && test -z "$run"; then
14186+ tmpdir="/tmp"
14187+ test -n "$TMPDIR" && tmpdir="$TMPDIR"
14188+ tmpdir="$tmpdir/libtool-$$"
14189+ save_umask=`umask`
14190+ umask 0077
14191+ if $mkdir "$tmpdir"; then
14192+ umask $save_umask
14193+ else
14194+ umask $save_umask
14195+ $echo "$modename: error: cannot create temporary directory \`$tmpdir'" 1>&2
14196+ continue
14197+ fi
14198+ file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'`
14199+ outputname="$tmpdir/$file"
14200+ # Replace the output file specification.
14201+ relink_command=`$echo "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
14202+
14203+ $show "$relink_command"
14204+ if $run eval "$relink_command"; then :
14205+ else
14206+ $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
14207+ ${rm}r "$tmpdir"
14208+ continue
14209+ fi
14210+ file="$outputname"
14211+ else
14212+ $echo "$modename: warning: cannot relink \`$file'" 1>&2
14213+ fi
14214+ else
14215+ # Install the binary that we compiled earlier.
14216+ file=`$echo "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
14217+ fi
14218+ fi
14219+
14220+ # remove .exe since cygwin /usr/bin/install will append another
14221+ # one anyways
14222+ case $install_prog,$host in
14223+ */usr/bin/install*,*cygwin*)
14224+ case $file:$destfile in
14225+ *.exe:*.exe)
14226+ # this is ok
14227+ ;;
14228+ *.exe:*)
14229+ destfile=$destfile.exe
14230+ ;;
14231+ *:*.exe)
14232+ destfile=`$echo $destfile | ${SED} -e 's,.exe$,,'`
14233+ ;;
14234+ esac
14235+ ;;
14236+ esac
14237+ $show "$install_prog$stripme $file $destfile"
14238+ $run eval "$install_prog\$stripme \$file \$destfile" || exit $?
14239+ test -n "$outputname" && ${rm}r "$tmpdir"
14240+ ;;
14241+ esac
14242+ done
14243+
14244+ for file in $staticlibs; do
14245+ name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
14246+
14247+ # Set up the ranlib parameters.
14248+ oldlib="$destdir/$name"
14249+
14250+ $show "$install_prog $file $oldlib"
14251+ $run eval "$install_prog \$file \$oldlib" || exit $?
14252+
14253+ if test -n "$stripme" && test -n "$old_striplib"; then
14254+ $show "$old_striplib $oldlib"
14255+ $run eval "$old_striplib $oldlib" || exit $?
14256+ fi
14257+
14258+ # Do each command in the postinstall commands.
14259+ cmds=$old_postinstall_cmds
14260+ save_ifs="$IFS"; IFS='~'
14261+ for cmd in $cmds; do
14262+ IFS="$save_ifs"
14263+ eval cmd=\"$cmd\"
14264+ $show "$cmd"
14265+ $run eval "$cmd" || exit $?
14266+ done
14267+ IFS="$save_ifs"
14268+ done
14269+
14270+ if test -n "$future_libdirs"; then
14271+ $echo "$modename: warning: remember to run \`$progname --finish$future_libdirs'" 1>&2
14272+ fi
14273+
14274+ if test -n "$current_libdirs"; then
14275+ # Maybe just do a dry run.
14276+ test -n "$run" && current_libdirs=" -n$current_libdirs"
14277+ exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
14278+ else
14279+ exit $EXIT_SUCCESS
14280+ fi
14281+ ;;
14282+
14283+ # libtool finish mode
14284+ finish)
14285+ modename="$modename: finish"
14286+ libdirs="$nonopt"
14287+ admincmds=
14288+
14289+ if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
14290+ for dir
14291+ do
14292+ libdirs="$libdirs $dir"
14293+ done
14294+
14295+ for libdir in $libdirs; do
14296+ if test -n "$finish_cmds"; then
14297+ # Do each command in the finish commands.
14298+ cmds=$finish_cmds
14299+ save_ifs="$IFS"; IFS='~'
14300+ for cmd in $cmds; do
14301+ IFS="$save_ifs"
14302+ eval cmd=\"$cmd\"
14303+ $show "$cmd"
14304+ $run eval "$cmd" || admincmds="$admincmds
14305+ $cmd"
14306+ done
14307+ IFS="$save_ifs"
14308+ fi
14309+ if test -n "$finish_eval"; then
14310+ # Do the single finish_eval.
14311+ eval cmds=\"$finish_eval\"
14312+ $run eval "$cmds" || admincmds="$admincmds
14313+ $cmds"
14314+ fi
14315+ done
14316+ fi
14317+
14318+ # Exit here if they wanted silent mode.
14319+ test "$show" = : && exit $EXIT_SUCCESS
14320+
14321+ $echo "----------------------------------------------------------------------"
14322+ $echo "Libraries have been installed in:"
14323+ for libdir in $libdirs; do
14324+ $echo " $libdir"
14325+ done
14326+ $echo
14327+ $echo "If you ever happen to want to link against installed libraries"
14328+ $echo "in a given directory, LIBDIR, you must either use libtool, and"
14329+ $echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
14330+ $echo "flag during linking and do at least one of the following:"
14331+ if test -n "$shlibpath_var"; then
14332+ $echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
14333+ $echo " during execution"
14334+ fi
14335+ if test -n "$runpath_var"; then
14336+ $echo " - add LIBDIR to the \`$runpath_var' environment variable"
14337+ $echo " during linking"
14338+ fi
14339+ if test -n "$hardcode_libdir_flag_spec"; then
14340+ libdir=LIBDIR
14341+ eval flag=\"$hardcode_libdir_flag_spec\"
14342+
14343+ $echo " - use the \`$flag' linker flag"
14344+ fi
14345+ if test -n "$admincmds"; then
14346+ $echo " - have your system administrator run these commands:$admincmds"
14347+ fi
14348+ if test -f /etc/ld.so.conf; then
14349+ $echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
14350+ fi
14351+ $echo
14352+ $echo "See any operating system documentation about shared libraries for"
14353+ $echo "more information, such as the ld(1) and ld.so(8) manual pages."
14354+ $echo "----------------------------------------------------------------------"
14355+ exit $EXIT_SUCCESS
14356+ ;;
14357+
14358+ # libtool execute mode
14359+ execute)
14360+ modename="$modename: execute"
14361+
14362+ # The first argument is the command name.
14363+ cmd="$nonopt"
14364+ if test -z "$cmd"; then
14365+ $echo "$modename: you must specify a COMMAND" 1>&2
14366+ $echo "$help"
14367+ exit $EXIT_FAILURE
14368+ fi
14369+
14370+ # Handle -dlopen flags immediately.
14371+ for file in $execute_dlfiles; do
14372+ if test ! -f "$file"; then
14373+ $echo "$modename: \`$file' is not a file" 1>&2
14374+ $echo "$help" 1>&2
14375+ exit $EXIT_FAILURE
14376+ fi
14377+
14378+ dir=
14379+ case $file in
14380+ *.la)
14381+ # Check to see that this really is a libtool archive.
14382+ if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
14383+ else
14384+ $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
14385+ $echo "$help" 1>&2
14386+ exit $EXIT_FAILURE
14387+ fi
14388+
14389+ # Read the libtool library.
14390+ dlname=
14391+ library_names=
14392+
14393+ # If there is no directory component, then add one.
14394+ case $file in
14395+ */* | *\\*) . $file ;;
14396+ *) . ./$file ;;
14397+ esac
14398+
14399+ # Skip this library if it cannot be dlopened.
14400+ if test -z "$dlname"; then
14401+ # Warn if it was a shared library.
14402+ test -n "$library_names" && $echo "$modename: warning: \`$file' was not linked with \`-export-dynamic'"
14403+ continue
14404+ fi
14405+
14406+ dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
14407+ test "X$dir" = "X$file" && dir=.
14408+
14409+ if test -f "$dir/$objdir/$dlname"; then
14410+ dir="$dir/$objdir"
14411+ else
14412+ $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
14413+ exit $EXIT_FAILURE
14414+ fi
14415+ ;;
14416+
14417+ *.lo)
14418+ # Just add the directory containing the .lo file.
14419+ dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
14420+ test "X$dir" = "X$file" && dir=.
14421+ ;;
14422+
14423+ *)
14424+ $echo "$modename: warning \`-dlopen' is ignored for non-libtool libraries and objects" 1>&2
14425+ continue
14426+ ;;
14427+ esac
14428+
14429+ # Get the absolute pathname.
14430+ absdir=`cd "$dir" && pwd`
14431+ test -n "$absdir" && dir="$absdir"
14432+
14433+ # Now add the directory to shlibpath_var.
14434+ if eval "test -z \"\$$shlibpath_var\""; then
14435+ eval "$shlibpath_var=\"\$dir\""
14436+ else
14437+ eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
14438+ fi
14439+ done
14440+
14441+ # This variable tells wrapper scripts just to set shlibpath_var
14442+ # rather than running their programs.
14443+ libtool_execute_magic="$magic"
14444+
14445+ # Check if any of the arguments is a wrapper script.
14446+ args=
14447+ for file
14448+ do
14449+ case $file in
14450+ -*) ;;
14451+ *)
14452+ # Do a test to see if this is really a libtool program.
14453+ if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
14454+ # If there is no directory component, then add one.
14455+ case $file in
14456+ */* | *\\*) . $file ;;
14457+ *) . ./$file ;;
14458+ esac
14459+
14460+ # Transform arg to wrapped name.
14461+ file="$progdir/$program"
14462+ fi
14463+ ;;
14464+ esac
14465+ # Quote arguments (to preserve shell metacharacters).
14466+ file=`$echo "X$file" | $Xsed -e "$sed_quote_subst"`
14467+ args="$args \"$file\""
14468+ done
14469+
14470+ if test -z "$run"; then
14471+ if test -n "$shlibpath_var"; then
14472+ # Export the shlibpath_var.
14473+ eval "export $shlibpath_var"
14474+ fi
14475+
14476+ # Restore saved environment variables
14477+ if test "${save_LC_ALL+set}" = set; then
14478+ LC_ALL="$save_LC_ALL"; export LC_ALL
14479+ fi
14480+ if test "${save_LANG+set}" = set; then
14481+ LANG="$save_LANG"; export LANG
14482+ fi
14483+
14484+ # Now prepare to actually exec the command.
14485+ exec_cmd="\$cmd$args"
14486+ else
14487+ # Display what would be done.
14488+ if test -n "$shlibpath_var"; then
14489+ eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\""
14490+ $echo "export $shlibpath_var"
14491+ fi
14492+ $echo "$cmd$args"
14493+ exit $EXIT_SUCCESS
14494+ fi
14495+ ;;
14496+
14497+ # libtool clean and uninstall mode
14498+ clean | uninstall)
14499+ modename="$modename: $mode"
14500+ rm="$nonopt"
14501+ files=
14502+ rmforce=
14503+ exit_status=0
14504+
14505+ # This variable tells wrapper scripts just to set variables rather
14506+ # than running their programs.
14507+ libtool_install_magic="$magic"
14508+
14509+ for arg
14510+ do
14511+ case $arg in
14512+ -f) rm="$rm $arg"; rmforce=yes ;;
14513+ -*) rm="$rm $arg" ;;
14514+ *) files="$files $arg" ;;
14515+ esac
14516+ done
14517+
14518+ if test -z "$rm"; then
14519+ $echo "$modename: you must specify an RM program" 1>&2
14520+ $echo "$help" 1>&2
14521+ exit $EXIT_FAILURE
14522+ fi
14523+
14524+ rmdirs=
14525+
14526+ origobjdir="$objdir"
14527+ for file in $files; do
14528+ dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
14529+ if test "X$dir" = "X$file"; then
14530+ dir=.
14531+ objdir="$origobjdir"
14532+ else
14533+ objdir="$dir/$origobjdir"
14534+ fi
14535+ name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
14536+ test "$mode" = uninstall && objdir="$dir"
14537+
14538+ # Remember objdir for removal later, being careful to avoid duplicates
14539+ if test "$mode" = clean; then
14540+ case " $rmdirs " in
14541+ *" $objdir "*) ;;
14542+ *) rmdirs="$rmdirs $objdir" ;;
14543+ esac
14544+ fi
14545+
14546+ # Don't error if the file doesn't exist and rm -f was used.
14547+ if (test -L "$file") >/dev/null 2>&1 \
14548+ || (test -h "$file") >/dev/null 2>&1 \
14549+ || test -f "$file"; then
14550+ :
14551+ elif test -d "$file"; then
14552+ exit_status=1
14553+ continue
14554+ elif test "$rmforce" = yes; then
14555+ continue
14556+ fi
14557+
14558+ rmfiles="$file"
14559+
14560+ case $name in
14561+ *.la)
14562+ # Possibly a libtool archive, so verify it.
14563+ if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
14564+ . $dir/$name
14565+
14566+ # Delete the libtool libraries and symlinks.
14567+ for n in $library_names; do
14568+ rmfiles="$rmfiles $objdir/$n"
14569+ done
14570+ test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library"
14571+ test "$mode" = clean && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
14572+
14573+ if test "$mode" = uninstall; then
14574+ if test -n "$library_names"; then
14575+ # Do each command in the postuninstall commands.
14576+ cmds=$postuninstall_cmds
14577+ save_ifs="$IFS"; IFS='~'
14578+ for cmd in $cmds; do
14579+ IFS="$save_ifs"
14580+ eval cmd=\"$cmd\"
14581+ $show "$cmd"
14582+ $run eval "$cmd"
14583+ if test "$?" -ne 0 && test "$rmforce" != yes; then
14584+ exit_status=1
14585+ fi
14586+ done
14587+ IFS="$save_ifs"
14588+ fi
14589+
14590+ if test -n "$old_library"; then
14591+ # Do each command in the old_postuninstall commands.
14592+ cmds=$old_postuninstall_cmds
14593+ save_ifs="$IFS"; IFS='~'
14594+ for cmd in $cmds; do
14595+ IFS="$save_ifs"
14596+ eval cmd=\"$cmd\"
14597+ $show "$cmd"
14598+ $run eval "$cmd"
14599+ if test "$?" -ne 0 && test "$rmforce" != yes; then
14600+ exit_status=1
14601+ fi
14602+ done
14603+ IFS="$save_ifs"
14604+ fi
14605+ # FIXME: should reinstall the best remaining shared library.
14606+ fi
14607+ fi
14608+ ;;
14609+
14610+ *.lo)
14611+ # Possibly a libtool object, so verify it.
14612+ if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
14613+
14614+ # Read the .lo file
14615+ . $dir/$name
14616+
14617+ # Add PIC object to the list of files to remove.
14618+ if test -n "$pic_object" \
14619+ && test "$pic_object" != none; then
14620+ rmfiles="$rmfiles $dir/$pic_object"
14621+ fi
14622+
14623+ # Add non-PIC object to the list of files to remove.
14624+ if test -n "$non_pic_object" \
14625+ && test "$non_pic_object" != none; then
14626+ rmfiles="$rmfiles $dir/$non_pic_object"
14627+ fi
14628+ fi
14629+ ;;
14630+
14631+ *)
14632+ if test "$mode" = clean ; then
14633+ noexename=$name
14634+ case $file in
14635+ *.exe)
14636+ file=`$echo $file|${SED} 's,.exe$,,'`
14637+ noexename=`$echo $name|${SED} 's,.exe$,,'`
14638+ # $file with .exe has already been added to rmfiles,
14639+ # add $file without .exe
14640+ rmfiles="$rmfiles $file"
14641+ ;;
14642+ esac
14643+ # Do a test to see if this is a libtool program.
14644+ if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
14645+ relink_command=
14646+ . $dir/$noexename
14647+
14648+ # note $name still contains .exe if it was in $file originally
14649+ # as does the version of $file that was added into $rmfiles
14650+ rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}"
14651+ if test "$fast_install" = yes && test -n "$relink_command"; then
14652+ rmfiles="$rmfiles $objdir/lt-$name"
14653+ fi
14654+ if test "X$noexename" != "X$name" ; then
14655+ rmfiles="$rmfiles $objdir/lt-${noexename}.c"
14656+ fi
14657+ fi
14658+ fi
14659+ ;;
14660+ esac
14661+ $show "$rm $rmfiles"
14662+ $run $rm $rmfiles || exit_status=1
14663+ done
14664+ objdir="$origobjdir"
14665+
14666+ # Try to remove the ${objdir}s in the directories where we deleted files
14667+ for dir in $rmdirs; do
14668+ if test -d "$dir"; then
14669+ $show "rmdir $dir"
14670+ $run rmdir $dir >/dev/null 2>&1
14671+ fi
14672+ done
14673+
14674+ exit $exit_status
14675+ ;;
14676+
14677+ "")
14678+ $echo "$modename: you must specify a MODE" 1>&2
14679+ $echo "$generic_help" 1>&2
14680+ exit $EXIT_FAILURE
14681+ ;;
14682+ esac
14683+
14684+ if test -z "$exec_cmd"; then
14685+ $echo "$modename: invalid operation mode \`$mode'" 1>&2
14686+ $echo "$generic_help" 1>&2
14687+ exit $EXIT_FAILURE
14688+ fi
14689+fi # test -z "$show_help"
14690+
14691+if test -n "$exec_cmd"; then
14692+ eval exec $exec_cmd
14693+ exit $EXIT_FAILURE
14694+fi
14695+
14696+# We need to display help for each of the modes.
14697+case $mode in
14698+"") $echo \
14699+"Usage: $modename [OPTION]... [MODE-ARG]...
14700+
14701+Provide generalized library-building support services.
14702+
14703+ --config show all configuration variables
14704+ --debug enable verbose shell tracing
14705+-n, --dry-run display commands without modifying any files
14706+ --features display basic configuration information and exit
14707+ --finish same as \`--mode=finish'
14708+ --help display this help message and exit
14709+ --mode=MODE use operation mode MODE [default=inferred from MODE-ARGS]
14710+ --quiet same as \`--silent'
14711+ --silent don't print informational messages
14712+ --tag=TAG use configuration variables from tag TAG
14713+ --version print version information
14714+
14715+MODE must be one of the following:
14716+
14717+ clean remove files from the build directory
14718+ compile compile a source file into a libtool object
14719+ execute automatically set library path, then run a program
14720+ finish complete the installation of libtool libraries
14721+ install install libraries or executables
14722+ link create a library or an executable
14723+ uninstall remove libraries from an installed directory
14724+
14725+MODE-ARGS vary depending on the MODE. Try \`$modename --help --mode=MODE' for
14726+a more detailed description of MODE.
14727+
14728+Report bugs to <bug-libtool@gnu.org>."
14729+ exit $EXIT_SUCCESS
14730+ ;;
14731+
14732+clean)
14733+ $echo \
14734+"Usage: $modename [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
14735+
14736+Remove files from the build directory.
14737+
14738+RM is the name of the program to use to delete files associated with each FILE
14739+(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
14740+to RM.
14741+
14742+If FILE is a libtool library, object or program, all the files associated
14743+with it are deleted. Otherwise, only FILE itself is deleted using RM."
14744+ ;;
14745+
14746+compile)
14747+ $echo \
14748+"Usage: $modename [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
14749+
14750+Compile a source file into a libtool library object.
14751+
14752+This mode accepts the following additional options:
14753+
14754+ -o OUTPUT-FILE set the output file name to OUTPUT-FILE
14755+ -prefer-pic try to building PIC objects only
14756+ -prefer-non-pic try to building non-PIC objects only
14757+ -static always build a \`.o' file suitable for static linking
14758+
14759+COMPILE-COMMAND is a command to be used in creating a \`standard' object file
14760+from the given SOURCEFILE.
14761+
14762+The output file name is determined by removing the directory component from
14763+SOURCEFILE, then substituting the C source code suffix \`.c' with the
14764+library object suffix, \`.lo'."
14765+ ;;
14766+
14767+execute)
14768+ $echo \
14769+"Usage: $modename [OPTION]... --mode=execute COMMAND [ARGS]...
14770+
14771+Automatically set library path, then run a program.
14772+
14773+This mode accepts the following additional options:
14774+
14775+ -dlopen FILE add the directory containing FILE to the library path
14776+
14777+This mode sets the library path environment variable according to \`-dlopen'
14778+flags.
14779+
14780+If any of the ARGS are libtool executable wrappers, then they are translated
14781+into their corresponding uninstalled binary, and any of their required library
14782+directories are added to the library path.
14783+
14784+Then, COMMAND is executed, with ARGS as arguments."
14785+ ;;
14786+
14787+finish)
14788+ $echo \
14789+"Usage: $modename [OPTION]... --mode=finish [LIBDIR]...
14790+
14791+Complete the installation of libtool libraries.
14792+
14793+Each LIBDIR is a directory that contains libtool libraries.
14794+
14795+The commands that this mode executes may require superuser privileges. Use
14796+the \`--dry-run' option if you just want to see what would be executed."
14797+ ;;
14798+
14799+install)
14800+ $echo \
14801+"Usage: $modename [OPTION]... --mode=install INSTALL-COMMAND...
14802+
14803+Install executables or libraries.
14804+
14805+INSTALL-COMMAND is the installation command. The first component should be
14806+either the \`install' or \`cp' program.
14807+
14808+The rest of the components are interpreted as arguments to that command (only
14809+BSD-compatible install options are recognized)."
14810+ ;;
14811+
14812+link)
14813+ $echo \
14814+"Usage: $modename [OPTION]... --mode=link LINK-COMMAND...
14815+
14816+Link object files or libraries together to form another library, or to
14817+create an executable program.
14818+
14819+LINK-COMMAND is a command using the C compiler that you would use to create
14820+a program from several object files.
14821+
14822+The following components of LINK-COMMAND are treated specially:
14823+
14824+ -all-static do not do any dynamic linking at all
14825+ -avoid-version do not add a version suffix if possible
14826+ -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
14827+ -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
14828+ -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
14829+ -export-symbols SYMFILE
14830+ try to export only the symbols listed in SYMFILE
14831+ -export-symbols-regex REGEX
14832+ try to export only the symbols matching REGEX
14833+ -LLIBDIR search LIBDIR for required installed libraries
14834+ -lNAME OUTPUT-FILE requires the installed library libNAME
14835+ -module build a library that can dlopened
14836+ -no-fast-install disable the fast-install mode
14837+ -no-install link a not-installable executable
14838+ -no-undefined declare that a library does not refer to external symbols
14839+ -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
14840+ -objectlist FILE Use a list of object files found in FILE to specify objects
14841+ -precious-files-regex REGEX
14842+ don't remove output files matching REGEX
14843+ -release RELEASE specify package release information
14844+ -rpath LIBDIR the created library will eventually be installed in LIBDIR
14845+ -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
14846+ -static do not do any dynamic linking of libtool libraries
14847+ -version-info CURRENT[:REVISION[:AGE]]
14848+ specify library version info [each variable defaults to 0]
14849+
14850+All other options (arguments beginning with \`-') are ignored.
14851+
14852+Every other argument is treated as a filename. Files ending in \`.la' are
14853+treated as uninstalled libtool libraries, other files are standard or library
14854+object files.
14855+
14856+If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
14857+only library objects (\`.lo' files) may be specified, and \`-rpath' is
14858+required, except when creating a convenience library.
14859+
14860+If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
14861+using \`ar' and \`ranlib', or on Windows using \`lib'.
14862+
14863+If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
14864+is created, otherwise an executable program is created."
14865+ ;;
14866+
14867+uninstall)
14868+ $echo \
14869+"Usage: $modename [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
14870+
14871+Remove libraries from an installation directory.
14872+
14873+RM is the name of the program to use to delete files associated with each FILE
14874+(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
14875+to RM.
14876+
14877+If FILE is a libtool library, all the files associated with it are deleted.
14878+Otherwise, only FILE itself is deleted using RM."
14879+ ;;
14880+
14881+*)
14882+ $echo "$modename: invalid operation mode \`$mode'" 1>&2
14883+ $echo "$help" 1>&2
14884+ exit $EXIT_FAILURE
14885+ ;;
14886+esac
14887+
14888+$echo
14889+$echo "Try \`$modename --help' for more information about other modes."
14890+
14891+exit $EXIT_SUCCESS
14892+
14893+# The TAGs below are defined such that we never get into a situation
14894+# in which we disable both kinds of libraries. Given conflicting
14895+# choices, we go for a static library, that is the most portable,
14896+# since we can't tell whether shared libraries were disabled because
14897+# the user asked for that or because the platform doesn't support
14898+# them. This is particularly important on AIX, because we don't
14899+# support having both static and shared libraries enabled at the same
14900+# time on that platform, so we default to a shared-only configuration.
14901+# If a disable-shared tag is given, we'll fallback to a static-only
14902+# configuration. But we'll never go from static-only to shared-only.
14903+
14904+# ### BEGIN LIBTOOL TAG CONFIG: disable-shared
14905+build_libtool_libs=no
14906+build_old_libs=yes
14907+# ### END LIBTOOL TAG CONFIG: disable-shared
14908+
14909+# ### BEGIN LIBTOOL TAG CONFIG: disable-static
14910+build_old_libs=`case $build_libtool_libs in yes) $echo no;; *) $echo yes;; esac`
14911+# ### END LIBTOOL TAG CONFIG: disable-static
14912+
14913+# Local Variables:
14914+# mode:shell-script
14915+# sh-indentation:2
14916+# End:
14917--- agsync-0.2-pre.orig/agsync.1
14918+++ agsync-0.2-pre/agsync.1
14919@@ -0,0 +1,44 @@
14920+.TH "AGSYNC" "1"
14921+.SH "NAME"
14922+agsync \(em mediates a AvantGo session between an AvantGo server and an
14923+Pocket PC connected via SynCE.
14924+.SH "SYNOPSIS"
14925+.PP
14926+\fBagsync\fR [\fB-v\fP] [\fB-q\fP] [\fB-p \fIhost:port\fR\fP] [\fB-u \fIusername:pass\fR\fP] [\fB-s \fIhost:port\fR\fP]
14927+.SH "DESCRIPTION"
14928+.PP
14929+This manual page documents briefly the
14930+The \fBagsync\fR command is used to start
14931+and control a AvantGo synchronizing session between an AvantGo server
14932+and and Pocket PC. The Pocket PC has to be connected to the desktop via
14933+SynCE.
14934+.PP
14935+This manual page was written for the \fBDebian\fP distribution
14936+because the original program does not have a manual page.
14937+Instead, it has documentation in the GNU \fBInfo\fP format; see below.
14938+.PP
14939+\fBagsync\fR is a program that...
14940+.SH "OPTIONS"
14941+.PP
14942+A summary of
14943+options is included below.
14944+.IP "\fB-v\fP " 10
14945+Be verbose. Print even more information as default.
14946+.IP "\fB-q\fP " 10
14947+Be quiet. Don't print anything.
14948+.IP "\fB-p host:port\fP " 10
14949+Hostname or IP-adderess and portnumber of the HTTP-proxy.
14950+.IP "\fB-u username:pass\fP " 10
14951+Username and password to login into the AvantGo server.
14952+.IP "\fB-s host:port\fP " 10
14953+Hostname or IP-adress and portnumber of a Socks proxy.
14954+.SH "AUTHOR"
14955+.PP
14956+This manual page was written by Volker Christian voc@users.sourceforge.net for
14957+the \fBDebian\fP system (but may be used by others). Permission is
14958+granted to copy, distribute and/or modify this document under
14959+the terms of the GNU Free Documentation
14960+License, Version 1.1 or any later version published by the Free
14961+Software Foundation; with no Invariant Sections, no Front-Cover
14962+Texts and no Back-Cover Texts.
14963+.\" created by instant / docbook-to-man, Thu 22 Sep 2005, 20:34
14964--- agsync-0.2-pre.orig/configure
14965+++ agsync-0.2-pre/configure
14966@@ -0,0 +1,21004 @@
14967+#! /bin/sh
14968+# Guess values for system-dependent variables and create Makefiles.
14969+# Generated by GNU Autoconf 2.59.
14970+#
14971+# Copyright (C) 2003 Free Software Foundation, Inc.
14972+# This configure script is free software; the Free Software Foundation
14973+# gives unlimited permission to copy, distribute and modify it.
14974+## --------------------- ##
14975+## M4sh Initialization. ##
14976+## --------------------- ##
14977+
14978+# Be Bourne compatible
14979+if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14980+ emulate sh
14981+ NULLCMD=:
14982+ # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14983+ # is contrary to our usage. Disable this feature.
14984+ alias -g '${1+"$@"}'='"$@"'
14985+elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
14986+ set -o posix
14987+fi
14988+DUALCASE=1; export DUALCASE # for MKS sh
14989+
14990+# Support unset when possible.
14991+if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14992+ as_unset=unset
14993+else
14994+ as_unset=false
14995+fi
14996+
14997+
14998+# Work around bugs in pre-3.0 UWIN ksh.
14999+$as_unset ENV MAIL MAILPATH
15000+PS1='$ '
15001+PS2='> '
15002+PS4='+ '
15003+
15004+# NLS nuisances.
15005+for as_var in \
15006+ LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15007+ LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15008+ LC_TELEPHONE LC_TIME
15009+do
15010+ if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15011+ eval $as_var=C; export $as_var
15012+ else
15013+ $as_unset $as_var
15014+ fi
15015+done
15016+
15017+# Required to use basename.
15018+if expr a : '\(a\)' >/dev/null 2>&1; then
15019+ as_expr=expr
15020+else
15021+ as_expr=false
15022+fi
15023+
15024+if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
15025+ as_basename=basename
15026+else
15027+ as_basename=false
15028+fi
15029+
15030+
15031+# Name of the executable.
15032+as_me=`$as_basename "$0" ||
15033+$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15034+ X"$0" : 'X\(//\)$' \| \
15035+ X"$0" : 'X\(/\)$' \| \
15036+ . : '\(.\)' 2>/dev/null ||
15037+echo X/"$0" |
15038+ sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15039+ /^X\/\(\/\/\)$/{ s//\1/; q; }
15040+ /^X\/\(\/\).*/{ s//\1/; q; }
15041+ s/.*/./; q'`
15042+
15043+
15044+# PATH needs CR, and LINENO needs CR and PATH.
15045+# Avoid depending upon Character Ranges.
15046+as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15047+as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15048+as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15049+as_cr_digits='0123456789'
15050+as_cr_alnum=$as_cr_Letters$as_cr_digits
15051+
15052+# The user is always right.
15053+if test "${PATH_SEPARATOR+set}" != set; then
15054+ echo "#! /bin/sh" >conf$$.sh
15055+ echo "exit 0" >>conf$$.sh
15056+ chmod +x conf$$.sh
15057+ if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15058+ PATH_SEPARATOR=';'
15059+ else
15060+ PATH_SEPARATOR=:
15061+ fi
15062+ rm -f conf$$.sh
15063+fi
15064+
15065+
15066+ as_lineno_1=$LINENO
15067+ as_lineno_2=$LINENO
15068+ as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15069+ test "x$as_lineno_1" != "x$as_lineno_2" &&
15070+ test "x$as_lineno_3" = "x$as_lineno_2" || {
15071+ # Find who we are. Look in the path if we contain no path at all
15072+ # relative or not.
15073+ case $0 in
15074+ *[\\/]* ) as_myself=$0 ;;
15075+ *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15076+for as_dir in $PATH
15077+do
15078+ IFS=$as_save_IFS
15079+ test -z "$as_dir" && as_dir=.
15080+ test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15081+done
15082+
15083+ ;;
15084+ esac
15085+ # We did not find ourselves, most probably we were run as `sh COMMAND'
15086+ # in which case we are not to be found in the path.
15087+ if test "x$as_myself" = x; then
15088+ as_myself=$0
15089+ fi
15090+ if test ! -f "$as_myself"; then
15091+ { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
15092+ { (exit 1); exit 1; }; }
15093+ fi
15094+ case $CONFIG_SHELL in
15095+ '')
15096+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15097+for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15098+do
15099+ IFS=$as_save_IFS
15100+ test -z "$as_dir" && as_dir=.
15101+ for as_base in sh bash ksh sh5; do
15102+ case $as_dir in
15103+ /*)
15104+ if ("$as_dir/$as_base" -c '
15105+ as_lineno_1=$LINENO
15106+ as_lineno_2=$LINENO
15107+ as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15108+ test "x$as_lineno_1" != "x$as_lineno_2" &&
15109+ test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
15110+ $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
15111+ $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
15112+ CONFIG_SHELL=$as_dir/$as_base
15113+ export CONFIG_SHELL
15114+ exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15115+ fi;;
15116+ esac
15117+ done
15118+done
15119+;;
15120+ esac
15121+
15122+ # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15123+ # uniformly replaced by the line number. The first 'sed' inserts a
15124+ # line-number line before each line; the second 'sed' does the real
15125+ # work. The second script uses 'N' to pair each line-number line
15126+ # with the numbered line, and appends trailing '-' during
15127+ # substitution so that $LINENO is not a special case at line end.
15128+ # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15129+ # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
15130+ sed '=' <$as_myself |
15131+ sed '
15132+ N
15133+ s,$,-,
15134+ : loop
15135+ s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15136+ t loop
15137+ s,-$,,
15138+ s,^['$as_cr_digits']*\n,,
15139+ ' >$as_me.lineno &&
15140+ chmod +x $as_me.lineno ||
15141+ { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
15142+ { (exit 1); exit 1; }; }
15143+
15144+ # Don't try to exec as it changes $[0], causing all sort of problems
15145+ # (the dirname of $[0] is not the place where we might find the
15146+ # original and so on. Autoconf is especially sensible to this).
15147+ . ./$as_me.lineno
15148+ # Exit status is that of the last command.
15149+ exit
15150+}
15151+
15152+
15153+case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15154+ *c*,-n*) ECHO_N= ECHO_C='
15155+' ECHO_T=' ' ;;
15156+ *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15157+ *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
15158+esac
15159+
15160+if expr a : '\(a\)' >/dev/null 2>&1; then
15161+ as_expr=expr
15162+else
15163+ as_expr=false
15164+fi
15165+
15166+rm -f conf$$ conf$$.exe conf$$.file
15167+echo >conf$$.file
15168+if ln -s conf$$.file conf$$ 2>/dev/null; then
15169+ # We could just check for DJGPP; but this test a) works b) is more generic
15170+ # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15171+ if test -f conf$$.exe; then
15172+ # Don't use ln at all; we don't have any links
15173+ as_ln_s='cp -p'
15174+ else
15175+ as_ln_s='ln -s'
15176+ fi
15177+elif ln conf$$.file conf$$ 2>/dev/null; then
15178+ as_ln_s=ln
15179+else
15180+ as_ln_s='cp -p'
15181+fi
15182+rm -f conf$$ conf$$.exe conf$$.file
15183+
15184+if mkdir -p . 2>/dev/null; then
15185+ as_mkdir_p=:
15186+else
15187+ test -d ./-p && rmdir ./-p
15188+ as_mkdir_p=false
15189+fi
15190+
15191+as_executable_p="test -f"
15192+
15193+# Sed expression to map a string onto a valid CPP name.
15194+as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15195+
15196+# Sed expression to map a string onto a valid variable name.
15197+as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15198+
15199+
15200+# IFS
15201+# We need space, tab and new line, in precisely that order.
15202+as_nl='
15203+'
15204+IFS=" $as_nl"
15205+
15206+# CDPATH.
15207+$as_unset CDPATH
15208+
15209+
15210+
15211+# Check that we are running under the correct shell.
15212+SHELL=${CONFIG_SHELL-/bin/sh}
15213+
15214+case X$ECHO in
15215+X*--fallback-echo)
15216+ # Remove one level of quotation (which was required for Make).
15217+ ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
15218+ ;;
15219+esac
15220+
15221+echo=${ECHO-echo}
15222+if test "X$1" = X--no-reexec; then
15223+ # Discard the --no-reexec flag, and continue.
15224+ shift
15225+elif test "X$1" = X--fallback-echo; then
15226+ # Avoid inline document here, it may be left over
15227+ :
15228+elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
15229+ # Yippee, $echo works!
15230+ :
15231+else
15232+ # Restart under the correct shell.
15233+ exec $SHELL "$0" --no-reexec ${1+"$@"}
15234+fi
15235+
15236+if test "X$1" = X--fallback-echo; then
15237+ # used as fallback echo
15238+ shift
15239+ cat <<EOF
15240+$*
15241+EOF
15242+ exit 0
15243+fi
15244+
15245+# The HP-UX ksh and POSIX shell print the target directory to stdout
15246+# if CDPATH is set.
15247+if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
15248+
15249+if test -z "$ECHO"; then
15250+if test "X${echo_test_string+set}" != Xset; then
15251+# find a string as large as possible, as long as the shell can cope with it
15252+ for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
15253+ # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
15254+ if (echo_test_string="`eval $cmd`") 2>/dev/null &&
15255+ echo_test_string="`eval $cmd`" &&
15256+ (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
15257+ then
15258+ break
15259+ fi
15260+ done
15261+fi
15262+
15263+if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
15264+ echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
15265+ test "X$echo_testing_string" = "X$echo_test_string"; then
15266+ :
15267+else
15268+ # The Solaris, AIX, and Digital Unix default echo programs unquote
15269+ # backslashes. This makes it impossible to quote backslashes using
15270+ # echo "$something" | sed 's/\\/\\\\/g'
15271+ #
15272+ # So, first we look for a working echo in the user's PATH.
15273+
15274+ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15275+ for dir in $PATH /usr/ucb; do
15276+ IFS="$lt_save_ifs"
15277+ if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
15278+ test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
15279+ echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
15280+ test "X$echo_testing_string" = "X$echo_test_string"; then
15281+ echo="$dir/echo"
15282+ break
15283+ fi
15284+ done
15285+ IFS="$lt_save_ifs"
15286+
15287+ if test "X$echo" = Xecho; then
15288+ # We didn't find a better echo, so look for alternatives.
15289+ if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
15290+ echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
15291+ test "X$echo_testing_string" = "X$echo_test_string"; then
15292+ # This shell has a builtin print -r that does the trick.
15293+ echo='print -r'
15294+ elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
15295+ test "X$CONFIG_SHELL" != X/bin/ksh; then
15296+ # If we have ksh, try running configure again with it.
15297+ ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
15298+ export ORIGINAL_CONFIG_SHELL
15299+ CONFIG_SHELL=/bin/ksh
15300+ export CONFIG_SHELL
15301+ exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
15302+ else
15303+ # Try using printf.
15304+ echo='printf %s\n'
15305+ if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
15306+ echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
15307+ test "X$echo_testing_string" = "X$echo_test_string"; then
15308+ # Cool, printf works
15309+ :
15310+ elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
15311+ test "X$echo_testing_string" = 'X\t' &&
15312+ echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
15313+ test "X$echo_testing_string" = "X$echo_test_string"; then
15314+ CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
15315+ export CONFIG_SHELL
15316+ SHELL="$CONFIG_SHELL"
15317+ export SHELL
15318+ echo="$CONFIG_SHELL $0 --fallback-echo"
15319+ elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
15320+ test "X$echo_testing_string" = 'X\t' &&
15321+ echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
15322+ test "X$echo_testing_string" = "X$echo_test_string"; then
15323+ echo="$CONFIG_SHELL $0 --fallback-echo"
15324+ else
15325+ # maybe with a smaller string...
15326+ prev=:
15327+
15328+ for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
15329+ if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
15330+ then
15331+ break
15332+ fi
15333+ prev="$cmd"
15334+ done
15335+
15336+ if test "$prev" != 'sed 50q "$0"'; then
15337+ echo_test_string=`eval $prev`
15338+ export echo_test_string
15339+ exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
15340+ else
15341+ # Oops. We lost completely, so just stick with echo.
15342+ echo=echo
15343+ fi
15344+ fi
15345+ fi
15346+ fi
15347+fi
15348+fi
15349+
15350+# Copy echo and quote the copy suitably for passing to libtool from
15351+# the Makefile, instead of quoting the original, which is used later.
15352+ECHO=$echo
15353+if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
15354+ ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
15355+fi
15356+
15357+
15358+
15359+
15360+tagnames=${tagnames+${tagnames},}CXX
15361+
15362+tagnames=${tagnames+${tagnames},}F77
15363+
15364+# Name of the host.
15365+# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
15366+# so uname gets run too.
15367+ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
15368+
15369+exec 6>&1
15370+
15371+#
15372+# Initializations.
15373+#
15374+ac_default_prefix=/usr/local
15375+ac_config_libobj_dir=.
15376+cross_compiling=no
15377+subdirs=
15378+MFLAGS=
15379+MAKEFLAGS=
15380+SHELL=${CONFIG_SHELL-/bin/sh}
15381+
15382+# Maximum number of lines to put in a shell here document.
15383+# This variable seems obsolete. It should probably be removed, and
15384+# only ac_max_sed_lines should be used.
15385+: ${ac_max_here_lines=38}
15386+
15387+# Identity of this package.
15388+PACKAGE_NAME=
15389+PACKAGE_TARNAME=
15390+PACKAGE_VERSION=
15391+PACKAGE_STRING=
15392+PACKAGE_BUGREPORT=
15393+
15394+ac_unique_file="configure.in"
15395+# Factoring default headers for most tests.
15396+ac_includes_default="\
15397+#include <stdio.h>
15398+#if HAVE_SYS_TYPES_H
15399+# include <sys/types.h>
15400+#endif
15401+#if HAVE_SYS_STAT_H
15402+# include <sys/stat.h>
15403+#endif
15404+#if STDC_HEADERS
15405+# include <stdlib.h>
15406+# include <stddef.h>
15407+#else
15408+# if HAVE_STDLIB_H
15409+# include <stdlib.h>
15410+# endif
15411+#endif
15412+#if HAVE_STRING_H
15413+# if !STDC_HEADERS && HAVE_MEMORY_H
15414+# include <memory.h>
15415+# endif
15416+# include <string.h>
15417+#endif
15418+#if HAVE_STRINGS_H
15419+# include <strings.h>
15420+#endif
15421+#if HAVE_INTTYPES_H
15422+# include <inttypes.h>
15423+#else
15424+# if HAVE_STDINT_H
15425+# include <stdint.h>
15426+# endif
15427+#endif
15428+#if HAVE_UNISTD_H
15429+# include <unistd.h>
15430+#endif"
15431+
15432+ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBOBJS LTLIBOBJS'
15433+ac_subst_files=''
15434+
15435+# Initialize some variables set by options.
15436+ac_init_help=
15437+ac_init_version=false
15438+# The variables have the same names as the options, with
15439+# dashes changed to underlines.
15440+cache_file=/dev/null
15441+exec_prefix=NONE
15442+no_create=
15443+no_recursion=
15444+prefix=NONE
15445+program_prefix=NONE
15446+program_suffix=NONE
15447+program_transform_name=s,x,x,
15448+silent=
15449+site=
15450+srcdir=
15451+verbose=
15452+x_includes=NONE
15453+x_libraries=NONE
15454+
15455+# Installation directory options.
15456+# These are left unexpanded so users can "make install exec_prefix=/foo"
15457+# and all the variables that are supposed to be based on exec_prefix
15458+# by default will actually change.
15459+# Use braces instead of parens because sh, perl, etc. also accept them.
15460+bindir='${exec_prefix}/bin'
15461+sbindir='${exec_prefix}/sbin'
15462+libexecdir='${exec_prefix}/libexec'
15463+datadir='${prefix}/share'
15464+sysconfdir='${prefix}/etc'
15465+sharedstatedir='${prefix}/com'
15466+localstatedir='${prefix}/var'
15467+libdir='${exec_prefix}/lib'
15468+includedir='${prefix}/include'
15469+oldincludedir='/usr/include'
15470+infodir='${prefix}/info'
15471+mandir='${prefix}/man'
15472+
15473+ac_prev=
15474+for ac_option
15475+do
15476+ # If the previous option needs an argument, assign it.
15477+ if test -n "$ac_prev"; then
15478+ eval "$ac_prev=\$ac_option"
15479+ ac_prev=
15480+ continue
15481+ fi
15482+
15483+ ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
15484+
15485+ # Accept the important Cygnus configure options, so we can diagnose typos.
15486+
15487+ case $ac_option in
15488+
15489+ -bindir | --bindir | --bindi | --bind | --bin | --bi)
15490+ ac_prev=bindir ;;
15491+ -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
15492+ bindir=$ac_optarg ;;
15493+
15494+ -build | --build | --buil | --bui | --bu)
15495+ ac_prev=build_alias ;;
15496+ -build=* | --build=* | --buil=* | --bui=* | --bu=*)
15497+ build_alias=$ac_optarg ;;
15498+
15499+ -cache-file | --cache-file | --cache-fil | --cache-fi \
15500+ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
15501+ ac_prev=cache_file ;;
15502+ -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
15503+ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
15504+ cache_file=$ac_optarg ;;
15505+
15506+ --config-cache | -C)
15507+ cache_file=config.cache ;;
15508+
15509+ -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
15510+ ac_prev=datadir ;;
15511+ -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
15512+ | --da=*)
15513+ datadir=$ac_optarg ;;
15514+
15515+ -disable-* | --disable-*)
15516+ ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
15517+ # Reject names that are not valid shell variable names.
15518+ expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
15519+ { echo "$as_me: error: invalid feature name: $ac_feature" >&2
15520+ { (exit 1); exit 1; }; }
15521+ ac_feature=`echo $ac_feature | sed 's/-/_/g'`
15522+ eval "enable_$ac_feature=no" ;;
15523+
15524+ -enable-* | --enable-*)
15525+ ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
15526+ # Reject names that are not valid shell variable names.
15527+ expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
15528+ { echo "$as_me: error: invalid feature name: $ac_feature" >&2
15529+ { (exit 1); exit 1; }; }
15530+ ac_feature=`echo $ac_feature | sed 's/-/_/g'`
15531+ case $ac_option in
15532+ *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
15533+ *) ac_optarg=yes ;;
15534+ esac
15535+ eval "enable_$ac_feature='$ac_optarg'" ;;
15536+
15537+ -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
15538+ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
15539+ | --exec | --exe | --ex)
15540+ ac_prev=exec_prefix ;;
15541+ -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
15542+ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
15543+ | --exec=* | --exe=* | --ex=*)
15544+ exec_prefix=$ac_optarg ;;
15545+
15546+ -gas | --gas | --ga | --g)
15547+ # Obsolete; use --with-gas.
15548+ with_gas=yes ;;
15549+
15550+ -help | --help | --hel | --he | -h)
15551+ ac_init_help=long ;;
15552+ -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
15553+ ac_init_help=recursive ;;
15554+ -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
15555+ ac_init_help=short ;;
15556+
15557+ -host | --host | --hos | --ho)
15558+ ac_prev=host_alias ;;
15559+ -host=* | --host=* | --hos=* | --ho=*)
15560+ host_alias=$ac_optarg ;;
15561+
15562+ -includedir | --includedir | --includedi | --included | --include \
15563+ | --includ | --inclu | --incl | --inc)
15564+ ac_prev=includedir ;;
15565+ -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
15566+ | --includ=* | --inclu=* | --incl=* | --inc=*)
15567+ includedir=$ac_optarg ;;
15568+
15569+ -infodir | --infodir | --infodi | --infod | --info | --inf)
15570+ ac_prev=infodir ;;
15571+ -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
15572+ infodir=$ac_optarg ;;
15573+
15574+ -libdir | --libdir | --libdi | --libd)
15575+ ac_prev=libdir ;;
15576+ -libdir=* | --libdir=* | --libdi=* | --libd=*)
15577+ libdir=$ac_optarg ;;
15578+
15579+ -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
15580+ | --libexe | --libex | --libe)
15581+ ac_prev=libexecdir ;;
15582+ -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
15583+ | --libexe=* | --libex=* | --libe=*)
15584+ libexecdir=$ac_optarg ;;
15585+
15586+ -localstatedir | --localstatedir | --localstatedi | --localstated \
15587+ | --localstate | --localstat | --localsta | --localst \
15588+ | --locals | --local | --loca | --loc | --lo)
15589+ ac_prev=localstatedir ;;
15590+ -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
15591+ | --localstate=* | --localstat=* | --localsta=* | --localst=* \
15592+ | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
15593+ localstatedir=$ac_optarg ;;
15594+
15595+ -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
15596+ ac_prev=mandir ;;
15597+ -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
15598+ mandir=$ac_optarg ;;
15599+
15600+ -nfp | --nfp | --nf)
15601+ # Obsolete; use --without-fp.
15602+ with_fp=no ;;
15603+
15604+ -no-create | --no-create | --no-creat | --no-crea | --no-cre \
15605+ | --no-cr | --no-c | -n)
15606+ no_create=yes ;;
15607+
15608+ -no-recursion | --no-recursion | --no-recursio | --no-recursi \
15609+ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
15610+ no_recursion=yes ;;
15611+
15612+ -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
15613+ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
15614+ | --oldin | --oldi | --old | --ol | --o)
15615+ ac_prev=oldincludedir ;;
15616+ -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
15617+ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
15618+ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
15619+ oldincludedir=$ac_optarg ;;
15620+
15621+ -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
15622+ ac_prev=prefix ;;
15623+ -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
15624+ prefix=$ac_optarg ;;
15625+
15626+ -program-prefix | --program-prefix | --program-prefi | --program-pref \
15627+ | --program-pre | --program-pr | --program-p)
15628+ ac_prev=program_prefix ;;
15629+ -program-prefix=* | --program-prefix=* | --program-prefi=* \
15630+ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
15631+ program_prefix=$ac_optarg ;;
15632+
15633+ -program-suffix | --program-suffix | --program-suffi | --program-suff \
15634+ | --program-suf | --program-su | --program-s)
15635+ ac_prev=program_suffix ;;
15636+ -program-suffix=* | --program-suffix=* | --program-suffi=* \
15637+ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
15638+ program_suffix=$ac_optarg ;;
15639+
15640+ -program-transform-name | --program-transform-name \
15641+ | --program-transform-nam | --program-transform-na \
15642+ | --program-transform-n | --program-transform- \
15643+ | --program-transform | --program-transfor \
15644+ | --program-transfo | --program-transf \
15645+ | --program-trans | --program-tran \
15646+ | --progr-tra | --program-tr | --program-t)
15647+ ac_prev=program_transform_name ;;
15648+ -program-transform-name=* | --program-transform-name=* \
15649+ | --program-transform-nam=* | --program-transform-na=* \
15650+ | --program-transform-n=* | --program-transform-=* \
15651+ | --program-transform=* | --program-transfor=* \
15652+ | --program-transfo=* | --program-transf=* \
15653+ | --program-trans=* | --program-tran=* \
15654+ | --progr-tra=* | --program-tr=* | --program-t=*)
15655+ program_transform_name=$ac_optarg ;;
15656+
15657+ -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15658+ | -silent | --silent | --silen | --sile | --sil)
15659+ silent=yes ;;
15660+
15661+ -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
15662+ ac_prev=sbindir ;;
15663+ -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
15664+ | --sbi=* | --sb=*)
15665+ sbindir=$ac_optarg ;;
15666+
15667+ -sharedstatedir | --sharedstatedir | --sharedstatedi \
15668+ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
15669+ | --sharedst | --shareds | --shared | --share | --shar \
15670+ | --sha | --sh)
15671+ ac_prev=sharedstatedir ;;
15672+ -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
15673+ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
15674+ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
15675+ | --sha=* | --sh=*)
15676+ sharedstatedir=$ac_optarg ;;
15677+
15678+ -site | --site | --sit)
15679+ ac_prev=site ;;
15680+ -site=* | --site=* | --sit=*)
15681+ site=$ac_optarg ;;
15682+
15683+ -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
15684+ ac_prev=srcdir ;;
15685+ -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
15686+ srcdir=$ac_optarg ;;
15687+
15688+ -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
15689+ | --syscon | --sysco | --sysc | --sys | --sy)
15690+ ac_prev=sysconfdir ;;
15691+ -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
15692+ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
15693+ sysconfdir=$ac_optarg ;;
15694+
15695+ -target | --target | --targe | --targ | --tar | --ta | --t)
15696+ ac_prev=target_alias ;;
15697+ -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
15698+ target_alias=$ac_optarg ;;
15699+
15700+ -v | -verbose | --verbose | --verbos | --verbo | --verb)
15701+ verbose=yes ;;
15702+
15703+ -version | --version | --versio | --versi | --vers | -V)
15704+ ac_init_version=: ;;
15705+
15706+ -with-* | --with-*)
15707+ ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
15708+ # Reject names that are not valid shell variable names.
15709+ expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
15710+ { echo "$as_me: error: invalid package name: $ac_package" >&2
15711+ { (exit 1); exit 1; }; }
15712+ ac_package=`echo $ac_package| sed 's/-/_/g'`
15713+ case $ac_option in
15714+ *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
15715+ *) ac_optarg=yes ;;
15716+ esac
15717+ eval "with_$ac_package='$ac_optarg'" ;;
15718+
15719+ -without-* | --without-*)
15720+ ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
15721+ # Reject names that are not valid shell variable names.
15722+ expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
15723+ { echo "$as_me: error: invalid package name: $ac_package" >&2
15724+ { (exit 1); exit 1; }; }
15725+ ac_package=`echo $ac_package | sed 's/-/_/g'`
15726+ eval "with_$ac_package=no" ;;
15727+
15728+ --x)
15729+ # Obsolete; use --with-x.
15730+ with_x=yes ;;
15731+
15732+ -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
15733+ | --x-incl | --x-inc | --x-in | --x-i)
15734+ ac_prev=x_includes ;;
15735+ -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
15736+ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
15737+ x_includes=$ac_optarg ;;
15738+
15739+ -x-libraries | --x-libraries | --x-librarie | --x-librari \
15740+ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
15741+ ac_prev=x_libraries ;;
15742+ -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
15743+ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
15744+ x_libraries=$ac_optarg ;;
15745+
15746+ -*) { echo "$as_me: error: unrecognized option: $ac_option
15747+Try \`$0 --help' for more information." >&2
15748+ { (exit 1); exit 1; }; }
15749+ ;;
15750+
15751+ *=*)
15752+ ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
15753+ # Reject names that are not valid shell variable names.
15754+ expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
15755+ { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
15756+ { (exit 1); exit 1; }; }
15757+ ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
15758+ eval "$ac_envvar='$ac_optarg'"
15759+ export $ac_envvar ;;
15760+
15761+ *)
15762+ # FIXME: should be removed in autoconf 3.0.
15763+ echo "$as_me: WARNING: you should use --build, --host, --target" >&2
15764+ expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
15765+ echo "$as_me: WARNING: invalid host type: $ac_option" >&2
15766+ : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
15767+ ;;
15768+
15769+ esac
15770+done
15771+
15772+if test -n "$ac_prev"; then
15773+ ac_option=--`echo $ac_prev | sed 's/_/-/g'`
15774+ { echo "$as_me: error: missing argument to $ac_option" >&2
15775+ { (exit 1); exit 1; }; }
15776+fi
15777+
15778+# Be sure to have absolute paths.
15779+for ac_var in exec_prefix prefix
15780+do
15781+ eval ac_val=$`echo $ac_var`
15782+ case $ac_val in
15783+ [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
15784+ *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
15785+ { (exit 1); exit 1; }; };;
15786+ esac
15787+done
15788+
15789+# Be sure to have absolute paths.
15790+for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
15791+ localstatedir libdir includedir oldincludedir infodir mandir
15792+do
15793+ eval ac_val=$`echo $ac_var`
15794+ case $ac_val in
15795+ [\\/$]* | ?:[\\/]* ) ;;
15796+ *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
15797+ { (exit 1); exit 1; }; };;
15798+ esac
15799+done
15800+
15801+# There might be people who depend on the old broken behavior: `$host'
15802+# used to hold the argument of --host etc.
15803+# FIXME: To remove some day.
15804+build=$build_alias
15805+host=$host_alias
15806+target=$target_alias
15807+
15808+# FIXME: To remove some day.
15809+if test "x$host_alias" != x; then
15810+ if test "x$build_alias" = x; then
15811+ cross_compiling=maybe
15812+ echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
15813+ If a cross compiler is detected then cross compile mode will be used." >&2
15814+ elif test "x$build_alias" != "x$host_alias"; then
15815+ cross_compiling=yes
15816+ fi
15817+fi
15818+
15819+ac_tool_prefix=
15820+test -n "$host_alias" && ac_tool_prefix=$host_alias-
15821+
15822+test "$silent" = yes && exec 6>/dev/null
15823+
15824+
15825+# Find the source files, if location was not specified.
15826+if test -z "$srcdir"; then
15827+ ac_srcdir_defaulted=yes
15828+ # Try the directory containing this script, then its parent.
15829+ ac_confdir=`(dirname "$0") 2>/dev/null ||
15830+$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15831+ X"$0" : 'X\(//\)[^/]' \| \
15832+ X"$0" : 'X\(//\)$' \| \
15833+ X"$0" : 'X\(/\)' \| \
15834+ . : '\(.\)' 2>/dev/null ||
15835+echo X"$0" |
15836+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15837+ /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15838+ /^X\(\/\/\)$/{ s//\1/; q; }
15839+ /^X\(\/\).*/{ s//\1/; q; }
15840+ s/.*/./; q'`
15841+ srcdir=$ac_confdir
15842+ if test ! -r $srcdir/$ac_unique_file; then
15843+ srcdir=..
15844+ fi
15845+else
15846+ ac_srcdir_defaulted=no
15847+fi
15848+if test ! -r $srcdir/$ac_unique_file; then
15849+ if test "$ac_srcdir_defaulted" = yes; then
15850+ { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
15851+ { (exit 1); exit 1; }; }
15852+ else
15853+ { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
15854+ { (exit 1); exit 1; }; }
15855+ fi
15856+fi
15857+(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
15858+ { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
15859+ { (exit 1); exit 1; }; }
15860+srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
15861+ac_env_build_alias_set=${build_alias+set}
15862+ac_env_build_alias_value=$build_alias
15863+ac_cv_env_build_alias_set=${build_alias+set}
15864+ac_cv_env_build_alias_value=$build_alias
15865+ac_env_host_alias_set=${host_alias+set}
15866+ac_env_host_alias_value=$host_alias
15867+ac_cv_env_host_alias_set=${host_alias+set}
15868+ac_cv_env_host_alias_value=$host_alias
15869+ac_env_target_alias_set=${target_alias+set}
15870+ac_env_target_alias_value=$target_alias
15871+ac_cv_env_target_alias_set=${target_alias+set}
15872+ac_cv_env_target_alias_value=$target_alias
15873+ac_env_CC_set=${CC+set}
15874+ac_env_CC_value=$CC
15875+ac_cv_env_CC_set=${CC+set}
15876+ac_cv_env_CC_value=$CC
15877+ac_env_CFLAGS_set=${CFLAGS+set}
15878+ac_env_CFLAGS_value=$CFLAGS
15879+ac_cv_env_CFLAGS_set=${CFLAGS+set}
15880+ac_cv_env_CFLAGS_value=$CFLAGS
15881+ac_env_LDFLAGS_set=${LDFLAGS+set}
15882+ac_env_LDFLAGS_value=$LDFLAGS
15883+ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
15884+ac_cv_env_LDFLAGS_value=$LDFLAGS
15885+ac_env_CPPFLAGS_set=${CPPFLAGS+set}
15886+ac_env_CPPFLAGS_value=$CPPFLAGS
15887+ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
15888+ac_cv_env_CPPFLAGS_value=$CPPFLAGS
15889+ac_env_CPP_set=${CPP+set}
15890+ac_env_CPP_value=$CPP
15891+ac_cv_env_CPP_set=${CPP+set}
15892+ac_cv_env_CPP_value=$CPP
15893+ac_env_CXX_set=${CXX+set}
15894+ac_env_CXX_value=$CXX
15895+ac_cv_env_CXX_set=${CXX+set}
15896+ac_cv_env_CXX_value=$CXX
15897+ac_env_CXXFLAGS_set=${CXXFLAGS+set}
15898+ac_env_CXXFLAGS_value=$CXXFLAGS
15899+ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
15900+ac_cv_env_CXXFLAGS_value=$CXXFLAGS
15901+ac_env_CXXCPP_set=${CXXCPP+set}
15902+ac_env_CXXCPP_value=$CXXCPP
15903+ac_cv_env_CXXCPP_set=${CXXCPP+set}
15904+ac_cv_env_CXXCPP_value=$CXXCPP
15905+ac_env_F77_set=${F77+set}
15906+ac_env_F77_value=$F77
15907+ac_cv_env_F77_set=${F77+set}
15908+ac_cv_env_F77_value=$F77
15909+ac_env_FFLAGS_set=${FFLAGS+set}
15910+ac_env_FFLAGS_value=$FFLAGS
15911+ac_cv_env_FFLAGS_set=${FFLAGS+set}
15912+ac_cv_env_FFLAGS_value=$FFLAGS
15913+
15914+#
15915+# Report the --help message.
15916+#
15917+if test "$ac_init_help" = "long"; then
15918+ # Omit some internal or obsolete options to make the list less imposing.
15919+ # This message is too long to be a string in the A/UX 3.1 sh.
15920+ cat <<_ACEOF
15921+\`configure' configures this package to adapt to many kinds of systems.
15922+
15923+Usage: $0 [OPTION]... [VAR=VALUE]...
15924+
15925+To assign environment variables (e.g., CC, CFLAGS...), specify them as
15926+VAR=VALUE. See below for descriptions of some of the useful variables.
15927+
15928+Defaults for the options are specified in brackets.
15929+
15930+Configuration:
15931+ -h, --help display this help and exit
15932+ --help=short display options specific to this package
15933+ --help=recursive display the short help of all the included packages
15934+ -V, --version display version information and exit
15935+ -q, --quiet, --silent do not print \`checking...' messages
15936+ --cache-file=FILE cache test results in FILE [disabled]
15937+ -C, --config-cache alias for \`--cache-file=config.cache'
15938+ -n, --no-create do not create output files
15939+ --srcdir=DIR find the sources in DIR [configure dir or \`..']
15940+
15941+_ACEOF
15942+
15943+ cat <<_ACEOF
15944+Installation directories:
15945+ --prefix=PREFIX install architecture-independent files in PREFIX
15946+ [$ac_default_prefix]
15947+ --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
15948+ [PREFIX]
15949+
15950+By default, \`make install' will install all the files in
15951+\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
15952+an installation prefix other than \`$ac_default_prefix' using \`--prefix',
15953+for instance \`--prefix=\$HOME'.
15954+
15955+For better control, use the options below.
15956+
15957+Fine tuning of the installation directories:
15958+ --bindir=DIR user executables [EPREFIX/bin]
15959+ --sbindir=DIR system admin executables [EPREFIX/sbin]
15960+ --libexecdir=DIR program executables [EPREFIX/libexec]
15961+ --datadir=DIR read-only architecture-independent data [PREFIX/share]
15962+ --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
15963+ --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
15964+ --localstatedir=DIR modifiable single-machine data [PREFIX/var]
15965+ --libdir=DIR object code libraries [EPREFIX/lib]
15966+ --includedir=DIR C header files [PREFIX/include]
15967+ --oldincludedir=DIR C header files for non-gcc [/usr/include]
15968+ --infodir=DIR info documentation [PREFIX/info]
15969+ --mandir=DIR man documentation [PREFIX/man]
15970+_ACEOF
15971+
15972+ cat <<\_ACEOF
15973+
15974+Program names:
15975+ --program-prefix=PREFIX prepend PREFIX to installed program names
15976+ --program-suffix=SUFFIX append SUFFIX to installed program names
15977+ --program-transform-name=PROGRAM run sed PROGRAM on installed program names
15978+
15979+System types:
15980+ --build=BUILD configure for building on BUILD [guessed]
15981+ --host=HOST cross-compile to build programs to run on HOST [BUILD]
15982+_ACEOF
15983+fi
15984+
15985+if test -n "$ac_init_help"; then
15986+
15987+ cat <<\_ACEOF
15988+
15989+Optional Features:
15990+ --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
15991+ --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
15992+ --disable-dependency-tracking Speeds up one-time builds
15993+ --enable-dependency-tracking Do not reject slow dependency extractors
15994+ --enable-shared[=PKGS]
15995+ build shared libraries [default=yes]
15996+ --enable-static[=PKGS]
15997+ build static libraries [default=yes]
15998+ --enable-fast-install[=PKGS]
15999+ optimize for fast installation [default=yes]
16000+ --disable-libtool-lock avoid locking (might break parallel builds)
16001+ --enable-maintainer-mode enable make rules and dependencies not useful
16002+ (and sometimes confusing) to the casual installer
16003+
16004+Optional Packages:
16005+ --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
16006+ --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
16007+ --with-gnu-ld assume the C compiler uses GNU ld [default=no]
16008+ --with-pic try to use only PIC/non-PIC objects [default=use
16009+ both]
16010+ --with-tags[=TAGS]
16011+ include additional configurations [automatic]
16012+ --with-libsynce=DIR Search for libsynce in DIR/include and DIR/lib
16013+ --with-libsynce-include=DIR
16014+ Search for libsynce header files in DIR
16015+ --with-libsynce-lib=DIR Search for libsynce library files in DIR
16016+ --with-librapi2=DIR Search for librapi2 in DIR/include and DIR/lib
16017+ --with-librapi2-include=DIR
16018+ Search for librapi2 header files in DIR
16019+ --with-librapi2-lib=DIR Search for librapi2 library files in DIR
16020+
16021+Some influential environment variables:
16022+ CC C compiler command
16023+ CFLAGS C compiler flags
16024+ LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
16025+ nonstandard directory <lib dir>
16026+ CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
16027+ headers in a nonstandard directory <include dir>
16028+ CPP C preprocessor
16029+ CXX C++ compiler command
16030+ CXXFLAGS C++ compiler flags
16031+ CXXCPP C++ preprocessor
16032+ F77 Fortran 77 compiler command
16033+ FFLAGS Fortran 77 compiler flags
16034+
16035+Use these variables to override the choices made by `configure' or to help
16036+it to find libraries and programs with nonstandard names/locations.
16037+
16038+_ACEOF
16039+fi
16040+
16041+if test "$ac_init_help" = "recursive"; then
16042+ # If there are subdirs, report their specific --help.
16043+ ac_popdir=`pwd`
16044+ for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
16045+ test -d $ac_dir || continue
16046+ ac_builddir=.
16047+
16048+if test "$ac_dir" != .; then
16049+ ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16050+ # A "../" for each directory in $ac_dir_suffix.
16051+ ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16052+else
16053+ ac_dir_suffix= ac_top_builddir=
16054+fi
16055+
16056+case $srcdir in
16057+ .) # No --srcdir option. We are building in place.
16058+ ac_srcdir=.
16059+ if test -z "$ac_top_builddir"; then
16060+ ac_top_srcdir=.
16061+ else
16062+ ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16063+ fi ;;
16064+ [\\/]* | ?:[\\/]* ) # Absolute path.
16065+ ac_srcdir=$srcdir$ac_dir_suffix;
16066+ ac_top_srcdir=$srcdir ;;
16067+ *) # Relative path.
16068+ ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16069+ ac_top_srcdir=$ac_top_builddir$srcdir ;;
16070+esac
16071+
16072+# Do not use `cd foo && pwd` to compute absolute paths, because
16073+# the directories may not exist.
16074+case `pwd` in
16075+.) ac_abs_builddir="$ac_dir";;
16076+*)
16077+ case "$ac_dir" in
16078+ .) ac_abs_builddir=`pwd`;;
16079+ [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16080+ *) ac_abs_builddir=`pwd`/"$ac_dir";;
16081+ esac;;
16082+esac
16083+case $ac_abs_builddir in
16084+.) ac_abs_top_builddir=${ac_top_builddir}.;;
16085+*)
16086+ case ${ac_top_builddir}. in
16087+ .) ac_abs_top_builddir=$ac_abs_builddir;;
16088+ [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16089+ *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16090+ esac;;
16091+esac
16092+case $ac_abs_builddir in
16093+.) ac_abs_srcdir=$ac_srcdir;;
16094+*)
16095+ case $ac_srcdir in
16096+ .) ac_abs_srcdir=$ac_abs_builddir;;
16097+ [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16098+ *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16099+ esac;;
16100+esac
16101+case $ac_abs_builddir in
16102+.) ac_abs_top_srcdir=$ac_top_srcdir;;
16103+*)
16104+ case $ac_top_srcdir in
16105+ .) ac_abs_top_srcdir=$ac_abs_builddir;;
16106+ [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16107+ *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16108+ esac;;
16109+esac
16110+
16111+ cd $ac_dir
16112+ # Check for guested configure; otherwise get Cygnus style configure.
16113+ if test -f $ac_srcdir/configure.gnu; then
16114+ echo
16115+ $SHELL $ac_srcdir/configure.gnu --help=recursive
16116+ elif test -f $ac_srcdir/configure; then
16117+ echo
16118+ $SHELL $ac_srcdir/configure --help=recursive
16119+ elif test -f $ac_srcdir/configure.ac ||
16120+ test -f $ac_srcdir/configure.in; then
16121+ echo
16122+ $ac_configure --help
16123+ else
16124+ echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
16125+ fi
16126+ cd "$ac_popdir"
16127+ done
16128+fi
16129+
16130+test -n "$ac_init_help" && exit 0
16131+if $ac_init_version; then
16132+ cat <<\_ACEOF
16133+
16134+Copyright (C) 2003 Free Software Foundation, Inc.
16135+This configure script is free software; the Free Software Foundation
16136+gives unlimited permission to copy, distribute and modify it.
16137+_ACEOF
16138+ exit 0
16139+fi
16140+exec 5>config.log
16141+cat >&5 <<_ACEOF
16142+This file contains any messages produced by compilers while
16143+running configure, to aid debugging if configure makes a mistake.
16144+
16145+It was created by $as_me, which was
16146+generated by GNU Autoconf 2.59. Invocation command line was
16147+
16148+ $ $0 $@
16149+
16150+_ACEOF
16151+{
16152+cat <<_ASUNAME
16153+## --------- ##
16154+## Platform. ##
16155+## --------- ##
16156+
16157+hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
16158+uname -m = `(uname -m) 2>/dev/null || echo unknown`
16159+uname -r = `(uname -r) 2>/dev/null || echo unknown`
16160+uname -s = `(uname -s) 2>/dev/null || echo unknown`
16161+uname -v = `(uname -v) 2>/dev/null || echo unknown`
16162+
16163+/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
16164+/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
16165+
16166+/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
16167+/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
16168+/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
16169+hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
16170+/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
16171+/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
16172+/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
16173+
16174+_ASUNAME
16175+
16176+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16177+for as_dir in $PATH
16178+do
16179+ IFS=$as_save_IFS
16180+ test -z "$as_dir" && as_dir=.
16181+ echo "PATH: $as_dir"
16182+done
16183+
16184+} >&5
16185+
16186+cat >&5 <<_ACEOF
16187+
16188+
16189+## ----------- ##
16190+## Core tests. ##
16191+## ----------- ##
16192+
16193+_ACEOF
16194+
16195+
16196+# Keep a trace of the command line.
16197+# Strip out --no-create and --no-recursion so they do not pile up.
16198+# Strip out --silent because we don't want to record it for future runs.
16199+# Also quote any args containing shell meta-characters.
16200+# Make two passes to allow for proper duplicate-argument suppression.
16201+ac_configure_args=
16202+ac_configure_args0=
16203+ac_configure_args1=
16204+ac_sep=
16205+ac_must_keep_next=false
16206+for ac_pass in 1 2
16207+do
16208+ for ac_arg
16209+ do
16210+ case $ac_arg in
16211+ -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
16212+ -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16213+ | -silent | --silent | --silen | --sile | --sil)
16214+ continue ;;
16215+ *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
16216+ ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
16217+ esac
16218+ case $ac_pass in
16219+ 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
16220+ 2)
16221+ ac_configure_args1="$ac_configure_args1 '$ac_arg'"
16222+ if test $ac_must_keep_next = true; then
16223+ ac_must_keep_next=false # Got value, back to normal.
16224+ else
16225+ case $ac_arg in
16226+ *=* | --config-cache | -C | -disable-* | --disable-* \
16227+ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
16228+ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
16229+ | -with-* | --with-* | -without-* | --without-* | --x)
16230+ case "$ac_configure_args0 " in
16231+ "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
16232+ esac
16233+ ;;
16234+ -* ) ac_must_keep_next=true ;;
16235+ esac
16236+ fi
16237+ ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
16238+ # Get rid of the leading space.
16239+ ac_sep=" "
16240+ ;;
16241+ esac
16242+ done
16243+done
16244+$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
16245+$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
16246+
16247+# When interrupted or exit'd, cleanup temporary files, and complete
16248+# config.log. We remove comments because anyway the quotes in there
16249+# would cause problems or look ugly.
16250+# WARNING: Be sure not to use single quotes in there, as some shells,
16251+# such as our DU 5.0 friend, will then `close' the trap.
16252+trap 'exit_status=$?
16253+ # Save into config.log some information that might help in debugging.
16254+ {
16255+ echo
16256+
16257+ cat <<\_ASBOX
16258+## ---------------- ##
16259+## Cache variables. ##
16260+## ---------------- ##
16261+_ASBOX
16262+ echo
16263+ # The following way of writing the cache mishandles newlines in values,
16264+{
16265+ (set) 2>&1 |
16266+ case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
16267+ *ac_space=\ *)
16268+ sed -n \
16269+ "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
16270+ s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
16271+ ;;
16272+ *)
16273+ sed -n \
16274+ "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16275+ ;;
16276+ esac;
16277+}
16278+ echo
16279+
16280+ cat <<\_ASBOX
16281+## ----------------- ##
16282+## Output variables. ##
16283+## ----------------- ##
16284+_ASBOX
16285+ echo
16286+ for ac_var in $ac_subst_vars
16287+ do
16288+ eval ac_val=$`echo $ac_var`
16289+ echo "$ac_var='"'"'$ac_val'"'"'"
16290+ done | sort
16291+ echo
16292+
16293+ if test -n "$ac_subst_files"; then
16294+ cat <<\_ASBOX
16295+## ------------- ##
16296+## Output files. ##
16297+## ------------- ##
16298+_ASBOX
16299+ echo
16300+ for ac_var in $ac_subst_files
16301+ do
16302+ eval ac_val=$`echo $ac_var`
16303+ echo "$ac_var='"'"'$ac_val'"'"'"
16304+ done | sort
16305+ echo
16306+ fi
16307+
16308+ if test -s confdefs.h; then
16309+ cat <<\_ASBOX
16310+## ----------- ##
16311+## confdefs.h. ##
16312+## ----------- ##
16313+_ASBOX
16314+ echo
16315+ sed "/^$/d" confdefs.h | sort
16316+ echo
16317+ fi
16318+ test "$ac_signal" != 0 &&
16319+ echo "$as_me: caught signal $ac_signal"
16320+ echo "$as_me: exit $exit_status"
16321+ } >&5
16322+ rm -f core *.core &&
16323+ rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
16324+ exit $exit_status
16325+ ' 0
16326+for ac_signal in 1 2 13 15; do
16327+ trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
16328+done
16329+ac_signal=0
16330+
16331+# confdefs.h avoids OS command line length limits that DEFS can exceed.
16332+rm -rf conftest* confdefs.h
16333+# AIX cpp loses on an empty file, so make sure it contains at least a newline.
16334+echo >confdefs.h
16335+
16336+# Predefined preprocessor variables.
16337+
16338+cat >>confdefs.h <<_ACEOF
16339+#define PACKAGE_NAME "$PACKAGE_NAME"
16340+_ACEOF
16341+
16342+
16343+cat >>confdefs.h <<_ACEOF
16344+#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
16345+_ACEOF
16346+
16347+
16348+cat >>confdefs.h <<_ACEOF
16349+#define PACKAGE_VERSION "$PACKAGE_VERSION"
16350+_ACEOF
16351+
16352+
16353+cat >>confdefs.h <<_ACEOF
16354+#define PACKAGE_STRING "$PACKAGE_STRING"
16355+_ACEOF
16356+
16357+
16358+cat >>confdefs.h <<_ACEOF
16359+#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
16360+_ACEOF
16361+
16362+
16363+# Let the site file select an alternate cache file if it wants to.
16364+# Prefer explicitly selected file to automatically selected ones.
16365+if test -z "$CONFIG_SITE"; then
16366+ if test "x$prefix" != xNONE; then
16367+ CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
16368+ else
16369+ CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
16370+ fi
16371+fi
16372+for ac_site_file in $CONFIG_SITE; do
16373+ if test -r "$ac_site_file"; then
16374+ { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
16375+echo "$as_me: loading site script $ac_site_file" >&6;}
16376+ sed 's/^/| /' "$ac_site_file" >&5
16377+ . "$ac_site_file"
16378+ fi
16379+done
16380+
16381+if test -r "$cache_file"; then
16382+ # Some versions of bash will fail to source /dev/null (special
16383+ # files actually), so we avoid doing that.
16384+ if test -f "$cache_file"; then
16385+ { echo "$as_me:$LINENO: loading cache $cache_file" >&5
16386+echo "$as_me: loading cache $cache_file" >&6;}
16387+ case $cache_file in
16388+ [\\/]* | ?:[\\/]* ) . $cache_file;;
16389+ *) . ./$cache_file;;
16390+ esac
16391+ fi
16392+else
16393+ { echo "$as_me:$LINENO: creating cache $cache_file" >&5
16394+echo "$as_me: creating cache $cache_file" >&6;}
16395+ >$cache_file
16396+fi
16397+
16398+# Check that the precious variables saved in the cache have kept the same
16399+# value.
16400+ac_cache_corrupted=false
16401+for ac_var in `(set) 2>&1 |
16402+ sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
16403+ eval ac_old_set=\$ac_cv_env_${ac_var}_set
16404+ eval ac_new_set=\$ac_env_${ac_var}_set
16405+ eval ac_old_val="\$ac_cv_env_${ac_var}_value"
16406+ eval ac_new_val="\$ac_env_${ac_var}_value"
16407+ case $ac_old_set,$ac_new_set in
16408+ set,)
16409+ { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
16410+echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
16411+ ac_cache_corrupted=: ;;
16412+ ,set)
16413+ { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
16414+echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
16415+ ac_cache_corrupted=: ;;
16416+ ,);;
16417+ *)
16418+ if test "x$ac_old_val" != "x$ac_new_val"; then
16419+ { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
16420+echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
16421+ { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
16422+echo "$as_me: former value: $ac_old_val" >&2;}
16423+ { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
16424+echo "$as_me: current value: $ac_new_val" >&2;}
16425+ ac_cache_corrupted=:
16426+ fi;;
16427+ esac
16428+ # Pass precious variables to config.status.
16429+ if test "$ac_new_set" = set; then
16430+ case $ac_new_val in
16431+ *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
16432+ ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
16433+ *) ac_arg=$ac_var=$ac_new_val ;;
16434+ esac
16435+ case " $ac_configure_args " in
16436+ *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
16437+ *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
16438+ esac
16439+ fi
16440+done
16441+if $ac_cache_corrupted; then
16442+ { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
16443+echo "$as_me: error: changes in the environment can compromise the build" >&2;}
16444+ { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
16445+echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
16446+ { (exit 1); exit 1; }; }
16447+fi
16448+
16449+ac_ext=c
16450+ac_cpp='$CPP $CPPFLAGS'
16451+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16452+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16453+ac_compiler_gnu=$ac_cv_c_compiler_gnu
16454+
16455+
16456+
16457+
16458+
16459+
16460+
16461+
16462+
16463+
16464+
16465+
16466+
16467+
16468+
16469+
16470+
16471+
16472+
16473+
16474+ ac_config_headers="$ac_config_headers config.h"
16475+
16476+am__api_version="1.7"
16477+ac_aux_dir=
16478+for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
16479+ if test -f $ac_dir/install-sh; then
16480+ ac_aux_dir=$ac_dir
16481+ ac_install_sh="$ac_aux_dir/install-sh -c"
16482+ break
16483+ elif test -f $ac_dir/install.sh; then
16484+ ac_aux_dir=$ac_dir
16485+ ac_install_sh="$ac_aux_dir/install.sh -c"
16486+ break
16487+ elif test -f $ac_dir/shtool; then
16488+ ac_aux_dir=$ac_dir
16489+ ac_install_sh="$ac_aux_dir/shtool install -c"
16490+ break
16491+ fi
16492+done
16493+if test -z "$ac_aux_dir"; then
16494+ { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
16495+echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
16496+ { (exit 1); exit 1; }; }
16497+fi
16498+ac_config_guess="$SHELL $ac_aux_dir/config.guess"
16499+ac_config_sub="$SHELL $ac_aux_dir/config.sub"
16500+ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
16501+
16502+# Find a good install program. We prefer a C program (faster),
16503+# so one script is as good as another. But avoid the broken or
16504+# incompatible versions:
16505+# SysV /etc/install, /usr/sbin/install
16506+# SunOS /usr/etc/install
16507+# IRIX /sbin/install
16508+# AIX /bin/install
16509+# AmigaOS /C/install, which installs bootblocks on floppy discs
16510+# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
16511+# AFS /usr/afsws/bin/install, which mishandles nonexistent args
16512+# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
16513+# OS/2's system install, which has a completely different semantic
16514+# ./install, which can be erroneously created by make from ./install.sh.
16515+echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
16516+echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
16517+if test -z "$INSTALL"; then
16518+if test "${ac_cv_path_install+set}" = set; then
16519+ echo $ECHO_N "(cached) $ECHO_C" >&6
16520+else
16521+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16522+for as_dir in $PATH
16523+do
16524+ IFS=$as_save_IFS
16525+ test -z "$as_dir" && as_dir=.
16526+ # Account for people who put trailing slashes in PATH elements.
16527+case $as_dir/ in
16528+ ./ | .// | /cC/* | \
16529+ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
16530+ ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
16531+ /usr/ucb/* ) ;;
16532+ *)
16533+ # OSF1 and SCO ODT 3.0 have their own names for install.
16534+ # Don't use installbsd from OSF since it installs stuff as root
16535+ # by default.
16536+ for ac_prog in ginstall scoinst install; do
16537+ for ac_exec_ext in '' $ac_executable_extensions; do
16538+ if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
16539+ if test $ac_prog = install &&
16540+ grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
16541+ # AIX install. It has an incompatible calling convention.
16542+ :
16543+ elif test $ac_prog = install &&
16544+ grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
16545+ # program-specific install script used by HP pwplus--don't use.
16546+ :
16547+ else
16548+ ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
16549+ break 3
16550+ fi
16551+ fi
16552+ done
16553+ done
16554+ ;;
16555+esac
16556+done
16557+
16558+
16559+fi
16560+ if test "${ac_cv_path_install+set}" = set; then
16561+ INSTALL=$ac_cv_path_install
16562+ else
16563+ # As a last resort, use the slow shell script. We don't cache a
16564+ # path for INSTALL within a source directory, because that will
16565+ # break other packages using the cache if that directory is
16566+ # removed, or if the path is relative.
16567+ INSTALL=$ac_install_sh
16568+ fi
16569+fi
16570+echo "$as_me:$LINENO: result: $INSTALL" >&5
16571+echo "${ECHO_T}$INSTALL" >&6
16572+
16573+# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
16574+# It thinks the first close brace ends the variable substitution.
16575+test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
16576+
16577+test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
16578+
16579+test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
16580+
16581+echo "$as_me:$LINENO: checking whether build environment is sane" >&5
16582+echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
16583+# Just in case
16584+sleep 1
16585+echo timestamp > conftest.file
16586+# Do `set' in a subshell so we don't clobber the current shell's
16587+# arguments. Must try -L first in case configure is actually a
16588+# symlink; some systems play weird games with the mod time of symlinks
16589+# (eg FreeBSD returns the mod time of the symlink's containing
16590+# directory).
16591+if (
16592+ set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
16593+ if test "$*" = "X"; then
16594+ # -L didn't work.
16595+ set X `ls -t $srcdir/configure conftest.file`
16596+ fi
16597+ rm -f conftest.file
16598+ if test "$*" != "X $srcdir/configure conftest.file" \
16599+ && test "$*" != "X conftest.file $srcdir/configure"; then
16600+
16601+ # If neither matched, then we have a broken ls. This can happen
16602+ # if, for instance, CONFIG_SHELL is bash and it inherits a
16603+ # broken ls alias from the environment. This has actually
16604+ # happened. Such a system could not be considered "sane".
16605+ { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
16606+alias in your environment" >&5
16607+echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
16608+alias in your environment" >&2;}
16609+ { (exit 1); exit 1; }; }
16610+ fi
16611+
16612+ test "$2" = conftest.file
16613+ )
16614+then
16615+ # Ok.
16616+ :
16617+else
16618+ { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
16619+Check your system clock" >&5
16620+echo "$as_me: error: newly created file is older than distributed files!
16621+Check your system clock" >&2;}
16622+ { (exit 1); exit 1; }; }
16623+fi
16624+echo "$as_me:$LINENO: result: yes" >&5
16625+echo "${ECHO_T}yes" >&6
16626+test "$program_prefix" != NONE &&
16627+ program_transform_name="s,^,$program_prefix,;$program_transform_name"
16628+# Use a double $ so make ignores it.
16629+test "$program_suffix" != NONE &&
16630+ program_transform_name="s,\$,$program_suffix,;$program_transform_name"
16631+# Double any \ or $. echo might interpret backslashes.
16632+# By default was `s,x,x', remove it if useless.
16633+cat <<\_ACEOF >conftest.sed
16634+s/[\\$]/&&/g;s/;s,x,x,$//
16635+_ACEOF
16636+program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
16637+rm conftest.sed
16638+
16639+
16640+# expand $ac_aux_dir to an absolute path
16641+am_aux_dir=`cd $ac_aux_dir && pwd`
16642+
16643+test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
16644+# Use eval to expand $SHELL
16645+if eval "$MISSING --run true"; then
16646+ am_missing_run="$MISSING --run "
16647+else
16648+ am_missing_run=
16649+ { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
16650+echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
16651+fi
16652+
16653+for ac_prog in gawk mawk nawk awk
16654+do
16655+ # Extract the first word of "$ac_prog", so it can be a program name with args.
16656+set dummy $ac_prog; ac_word=$2
16657+echo "$as_me:$LINENO: checking for $ac_word" >&5
16658+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16659+if test "${ac_cv_prog_AWK+set}" = set; then
16660+ echo $ECHO_N "(cached) $ECHO_C" >&6
16661+else
16662+ if test -n "$AWK"; then
16663+ ac_cv_prog_AWK="$AWK" # Let the user override the test.
16664+else
16665+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16666+for as_dir in $PATH
16667+do
16668+ IFS=$as_save_IFS
16669+ test -z "$as_dir" && as_dir=.
16670+ for ac_exec_ext in '' $ac_executable_extensions; do
16671+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16672+ ac_cv_prog_AWK="$ac_prog"
16673+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16674+ break 2
16675+ fi
16676+done
16677+done
16678+
16679+fi
16680+fi
16681+AWK=$ac_cv_prog_AWK
16682+if test -n "$AWK"; then
16683+ echo "$as_me:$LINENO: result: $AWK" >&5
16684+echo "${ECHO_T}$AWK" >&6
16685+else
16686+ echo "$as_me:$LINENO: result: no" >&5
16687+echo "${ECHO_T}no" >&6
16688+fi
16689+
16690+ test -n "$AWK" && break
16691+done
16692+
16693+echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16694+echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
16695+set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
16696+if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
16697+ echo $ECHO_N "(cached) $ECHO_C" >&6
16698+else
16699+ cat >conftest.make <<\_ACEOF
16700+all:
16701+ @echo 'ac_maketemp="$(MAKE)"'
16702+_ACEOF
16703+# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16704+eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
16705+if test -n "$ac_maketemp"; then
16706+ eval ac_cv_prog_make_${ac_make}_set=yes
16707+else
16708+ eval ac_cv_prog_make_${ac_make}_set=no
16709+fi
16710+rm -f conftest.make
16711+fi
16712+if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
16713+ echo "$as_me:$LINENO: result: yes" >&5
16714+echo "${ECHO_T}yes" >&6
16715+ SET_MAKE=
16716+else
16717+ echo "$as_me:$LINENO: result: no" >&5
16718+echo "${ECHO_T}no" >&6
16719+ SET_MAKE="MAKE=${MAKE-make}"
16720+fi
16721+
16722+rm -rf .tst 2>/dev/null
16723+mkdir .tst 2>/dev/null
16724+if test -d .tst; then
16725+ am__leading_dot=.
16726+else
16727+ am__leading_dot=_
16728+fi
16729+rmdir .tst 2>/dev/null
16730+
16731+ # test to see if srcdir already configured
16732+if test "`cd $srcdir && pwd`" != "`pwd`" &&
16733+ test -f $srcdir/config.status; then
16734+ { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
16735+echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
16736+ { (exit 1); exit 1; }; }
16737+fi
16738+
16739+# test whether we have cygpath
16740+if test -z "$CYGPATH_W"; then
16741+ if (cygpath --version) >/dev/null 2>/dev/null; then
16742+ CYGPATH_W='cygpath -w'
16743+ else
16744+ CYGPATH_W=echo
16745+ fi
16746+fi
16747+
16748+
16749+# Define the identity of the package.
16750+ PACKAGE=agsync
16751+ VERSION=0.2-pre
16752+
16753+
16754+cat >>confdefs.h <<_ACEOF
16755+#define PACKAGE "$PACKAGE"
16756+_ACEOF
16757+
16758+
16759+cat >>confdefs.h <<_ACEOF
16760+#define VERSION "$VERSION"
16761+_ACEOF
16762+
16763+# Some tools Automake needs.
16764+
16765+ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
16766+
16767+
16768+AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
16769+
16770+
16771+AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
16772+
16773+
16774+AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
16775+
16776+
16777+MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
16778+
16779+
16780+AMTAR=${AMTAR-"${am_missing_run}tar"}
16781+
16782+install_sh=${install_sh-"$am_aux_dir/install-sh"}
16783+
16784+# Installed binaries are usually stripped using `strip' when the user
16785+# run `make install-strip'. However `strip' might not be the right
16786+# tool to use in cross-compilation environments, therefore Automake
16787+# will honor the `STRIP' environment variable to overrule this program.
16788+if test "$cross_compiling" != no; then
16789+ if test -n "$ac_tool_prefix"; then
16790+ # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
16791+set dummy ${ac_tool_prefix}strip; ac_word=$2
16792+echo "$as_me:$LINENO: checking for $ac_word" >&5
16793+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16794+if test "${ac_cv_prog_STRIP+set}" = set; then
16795+ echo $ECHO_N "(cached) $ECHO_C" >&6
16796+else
16797+ if test -n "$STRIP"; then
16798+ ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
16799+else
16800+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16801+for as_dir in $PATH
16802+do
16803+ IFS=$as_save_IFS
16804+ test -z "$as_dir" && as_dir=.
16805+ for ac_exec_ext in '' $ac_executable_extensions; do
16806+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16807+ ac_cv_prog_STRIP="${ac_tool_prefix}strip"
16808+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16809+ break 2
16810+ fi
16811+done
16812+done
16813+
16814+fi
16815+fi
16816+STRIP=$ac_cv_prog_STRIP
16817+if test -n "$STRIP"; then
16818+ echo "$as_me:$LINENO: result: $STRIP" >&5
16819+echo "${ECHO_T}$STRIP" >&6
16820+else
16821+ echo "$as_me:$LINENO: result: no" >&5
16822+echo "${ECHO_T}no" >&6
16823+fi
16824+
16825+fi
16826+if test -z "$ac_cv_prog_STRIP"; then
16827+ ac_ct_STRIP=$STRIP
16828+ # Extract the first word of "strip", so it can be a program name with args.
16829+set dummy strip; ac_word=$2
16830+echo "$as_me:$LINENO: checking for $ac_word" >&5
16831+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16832+if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
16833+ echo $ECHO_N "(cached) $ECHO_C" >&6
16834+else
16835+ if test -n "$ac_ct_STRIP"; then
16836+ ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
16837+else
16838+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16839+for as_dir in $PATH
16840+do
16841+ IFS=$as_save_IFS
16842+ test -z "$as_dir" && as_dir=.
16843+ for ac_exec_ext in '' $ac_executable_extensions; do
16844+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16845+ ac_cv_prog_ac_ct_STRIP="strip"
16846+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16847+ break 2
16848+ fi
16849+done
16850+done
16851+
16852+ test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
16853+fi
16854+fi
16855+ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
16856+if test -n "$ac_ct_STRIP"; then
16857+ echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
16858+echo "${ECHO_T}$ac_ct_STRIP" >&6
16859+else
16860+ echo "$as_me:$LINENO: result: no" >&5
16861+echo "${ECHO_T}no" >&6
16862+fi
16863+
16864+ STRIP=$ac_ct_STRIP
16865+else
16866+ STRIP="$ac_cv_prog_STRIP"
16867+fi
16868+
16869+fi
16870+INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
16871+
16872+# We need awk for the "check" target. The system "awk" is bad on
16873+# some platforms.
16874+
16875+
16876+
16877+
16878+ac_ext=c
16879+ac_cpp='$CPP $CPPFLAGS'
16880+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16881+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16882+ac_compiler_gnu=$ac_cv_c_compiler_gnu
16883+
16884+ac_ext=c
16885+ac_cpp='$CPP $CPPFLAGS'
16886+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16887+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16888+ac_compiler_gnu=$ac_cv_c_compiler_gnu
16889+if test -n "$ac_tool_prefix"; then
16890+ # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
16891+set dummy ${ac_tool_prefix}gcc; ac_word=$2
16892+echo "$as_me:$LINENO: checking for $ac_word" >&5
16893+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16894+if test "${ac_cv_prog_CC+set}" = set; then
16895+ echo $ECHO_N "(cached) $ECHO_C" >&6
16896+else
16897+ if test -n "$CC"; then
16898+ ac_cv_prog_CC="$CC" # Let the user override the test.
16899+else
16900+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16901+for as_dir in $PATH
16902+do
16903+ IFS=$as_save_IFS
16904+ test -z "$as_dir" && as_dir=.
16905+ for ac_exec_ext in '' $ac_executable_extensions; do
16906+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16907+ ac_cv_prog_CC="${ac_tool_prefix}gcc"
16908+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16909+ break 2
16910+ fi
16911+done
16912+done
16913+
16914+fi
16915+fi
16916+CC=$ac_cv_prog_CC
16917+if test -n "$CC"; then
16918+ echo "$as_me:$LINENO: result: $CC" >&5
16919+echo "${ECHO_T}$CC" >&6
16920+else
16921+ echo "$as_me:$LINENO: result: no" >&5
16922+echo "${ECHO_T}no" >&6
16923+fi
16924+
16925+fi
16926+if test -z "$ac_cv_prog_CC"; then
16927+ ac_ct_CC=$CC
16928+ # Extract the first word of "gcc", so it can be a program name with args.
16929+set dummy gcc; ac_word=$2
16930+echo "$as_me:$LINENO: checking for $ac_word" >&5
16931+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16932+if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
16933+ echo $ECHO_N "(cached) $ECHO_C" >&6
16934+else
16935+ if test -n "$ac_ct_CC"; then
16936+ ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
16937+else
16938+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16939+for as_dir in $PATH
16940+do
16941+ IFS=$as_save_IFS
16942+ test -z "$as_dir" && as_dir=.
16943+ for ac_exec_ext in '' $ac_executable_extensions; do
16944+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16945+ ac_cv_prog_ac_ct_CC="gcc"
16946+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16947+ break 2
16948+ fi
16949+done
16950+done
16951+
16952+fi
16953+fi
16954+ac_ct_CC=$ac_cv_prog_ac_ct_CC
16955+if test -n "$ac_ct_CC"; then
16956+ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
16957+echo "${ECHO_T}$ac_ct_CC" >&6
16958+else
16959+ echo "$as_me:$LINENO: result: no" >&5
16960+echo "${ECHO_T}no" >&6
16961+fi
16962+
16963+ CC=$ac_ct_CC
16964+else
16965+ CC="$ac_cv_prog_CC"
16966+fi
16967+
16968+if test -z "$CC"; then
16969+ if test -n "$ac_tool_prefix"; then
16970+ # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
16971+set dummy ${ac_tool_prefix}cc; ac_word=$2
16972+echo "$as_me:$LINENO: checking for $ac_word" >&5
16973+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16974+if test "${ac_cv_prog_CC+set}" = set; then
16975+ echo $ECHO_N "(cached) $ECHO_C" >&6
16976+else
16977+ if test -n "$CC"; then
16978+ ac_cv_prog_CC="$CC" # Let the user override the test.
16979+else
16980+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16981+for as_dir in $PATH
16982+do
16983+ IFS=$as_save_IFS
16984+ test -z "$as_dir" && as_dir=.
16985+ for ac_exec_ext in '' $ac_executable_extensions; do
16986+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16987+ ac_cv_prog_CC="${ac_tool_prefix}cc"
16988+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16989+ break 2
16990+ fi
16991+done
16992+done
16993+
16994+fi
16995+fi
16996+CC=$ac_cv_prog_CC
16997+if test -n "$CC"; then
16998+ echo "$as_me:$LINENO: result: $CC" >&5
16999+echo "${ECHO_T}$CC" >&6
17000+else
17001+ echo "$as_me:$LINENO: result: no" >&5
17002+echo "${ECHO_T}no" >&6
17003+fi
17004+
17005+fi
17006+if test -z "$ac_cv_prog_CC"; then
17007+ ac_ct_CC=$CC
17008+ # Extract the first word of "cc", so it can be a program name with args.
17009+set dummy cc; ac_word=$2
17010+echo "$as_me:$LINENO: checking for $ac_word" >&5
17011+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17012+if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
17013+ echo $ECHO_N "(cached) $ECHO_C" >&6
17014+else
17015+ if test -n "$ac_ct_CC"; then
17016+ ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
17017+else
17018+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17019+for as_dir in $PATH
17020+do
17021+ IFS=$as_save_IFS
17022+ test -z "$as_dir" && as_dir=.
17023+ for ac_exec_ext in '' $ac_executable_extensions; do
17024+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17025+ ac_cv_prog_ac_ct_CC="cc"
17026+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17027+ break 2
17028+ fi
17029+done
17030+done
17031+
17032+fi
17033+fi
17034+ac_ct_CC=$ac_cv_prog_ac_ct_CC
17035+if test -n "$ac_ct_CC"; then
17036+ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
17037+echo "${ECHO_T}$ac_ct_CC" >&6
17038+else
17039+ echo "$as_me:$LINENO: result: no" >&5
17040+echo "${ECHO_T}no" >&6
17041+fi
17042+
17043+ CC=$ac_ct_CC
17044+else
17045+ CC="$ac_cv_prog_CC"
17046+fi
17047+
17048+fi
17049+if test -z "$CC"; then
17050+ # Extract the first word of "cc", so it can be a program name with args.
17051+set dummy cc; ac_word=$2
17052+echo "$as_me:$LINENO: checking for $ac_word" >&5
17053+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17054+if test "${ac_cv_prog_CC+set}" = set; then
17055+ echo $ECHO_N "(cached) $ECHO_C" >&6
17056+else
17057+ if test -n "$CC"; then
17058+ ac_cv_prog_CC="$CC" # Let the user override the test.
17059+else
17060+ ac_prog_rejected=no
17061+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17062+for as_dir in $PATH
17063+do
17064+ IFS=$as_save_IFS
17065+ test -z "$as_dir" && as_dir=.
17066+ for ac_exec_ext in '' $ac_executable_extensions; do
17067+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17068+ if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
17069+ ac_prog_rejected=yes
17070+ continue
17071+ fi
17072+ ac_cv_prog_CC="cc"
17073+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17074+ break 2
17075+ fi
17076+done
17077+done
17078+
17079+if test $ac_prog_rejected = yes; then
17080+ # We found a bogon in the path, so make sure we never use it.
17081+ set dummy $ac_cv_prog_CC
17082+ shift
17083+ if test $# != 0; then
17084+ # We chose a different compiler from the bogus one.
17085+ # However, it has the same basename, so the bogon will be chosen
17086+ # first if we set CC to just the basename; use the full file name.
17087+ shift
17088+ ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
17089+ fi
17090+fi
17091+fi
17092+fi
17093+CC=$ac_cv_prog_CC
17094+if test -n "$CC"; then
17095+ echo "$as_me:$LINENO: result: $CC" >&5
17096+echo "${ECHO_T}$CC" >&6
17097+else
17098+ echo "$as_me:$LINENO: result: no" >&5
17099+echo "${ECHO_T}no" >&6
17100+fi
17101+
17102+fi
17103+if test -z "$CC"; then
17104+ if test -n "$ac_tool_prefix"; then
17105+ for ac_prog in cl
17106+ do
17107+ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
17108+set dummy $ac_tool_prefix$ac_prog; ac_word=$2
17109+echo "$as_me:$LINENO: checking for $ac_word" >&5
17110+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17111+if test "${ac_cv_prog_CC+set}" = set; then
17112+ echo $ECHO_N "(cached) $ECHO_C" >&6
17113+else
17114+ if test -n "$CC"; then
17115+ ac_cv_prog_CC="$CC" # Let the user override the test.
17116+else
17117+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17118+for as_dir in $PATH
17119+do
17120+ IFS=$as_save_IFS
17121+ test -z "$as_dir" && as_dir=.
17122+ for ac_exec_ext in '' $ac_executable_extensions; do
17123+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17124+ ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
17125+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17126+ break 2
17127+ fi
17128+done
17129+done
17130+
17131+fi
17132+fi
17133+CC=$ac_cv_prog_CC
17134+if test -n "$CC"; then
17135+ echo "$as_me:$LINENO: result: $CC" >&5
17136+echo "${ECHO_T}$CC" >&6
17137+else
17138+ echo "$as_me:$LINENO: result: no" >&5
17139+echo "${ECHO_T}no" >&6
17140+fi
17141+
17142+ test -n "$CC" && break
17143+ done
17144+fi
17145+if test -z "$CC"; then
17146+ ac_ct_CC=$CC
17147+ for ac_prog in cl
17148+do
17149+ # Extract the first word of "$ac_prog", so it can be a program name with args.
17150+set dummy $ac_prog; ac_word=$2
17151+echo "$as_me:$LINENO: checking for $ac_word" >&5
17152+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17153+if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
17154+ echo $ECHO_N "(cached) $ECHO_C" >&6
17155+else
17156+ if test -n "$ac_ct_CC"; then
17157+ ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
17158+else
17159+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17160+for as_dir in $PATH
17161+do
17162+ IFS=$as_save_IFS
17163+ test -z "$as_dir" && as_dir=.
17164+ for ac_exec_ext in '' $ac_executable_extensions; do
17165+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17166+ ac_cv_prog_ac_ct_CC="$ac_prog"
17167+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17168+ break 2
17169+ fi
17170+done
17171+done
17172+
17173+fi
17174+fi
17175+ac_ct_CC=$ac_cv_prog_ac_ct_CC
17176+if test -n "$ac_ct_CC"; then
17177+ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
17178+echo "${ECHO_T}$ac_ct_CC" >&6
17179+else
17180+ echo "$as_me:$LINENO: result: no" >&5
17181+echo "${ECHO_T}no" >&6
17182+fi
17183+
17184+ test -n "$ac_ct_CC" && break
17185+done
17186+
17187+ CC=$ac_ct_CC
17188+fi
17189+
17190+fi
17191+
17192+
17193+test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
17194+See \`config.log' for more details." >&5
17195+echo "$as_me: error: no acceptable C compiler found in \$PATH
17196+See \`config.log' for more details." >&2;}
17197+ { (exit 1); exit 1; }; }
17198+
17199+# Provide some information about the compiler.
17200+echo "$as_me:$LINENO:" \
17201+ "checking for C compiler version" >&5
17202+ac_compiler=`set X $ac_compile; echo $2`
17203+{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
17204+ (eval $ac_compiler --version </dev/null >&5) 2>&5
17205+ ac_status=$?
17206+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
17207+ (exit $ac_status); }
17208+{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
17209+ (eval $ac_compiler -v </dev/null >&5) 2>&5
17210+ ac_status=$?
17211+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
17212+ (exit $ac_status); }
17213+{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
17214+ (eval $ac_compiler -V </dev/null >&5) 2>&5
17215+ ac_status=$?
17216+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
17217+ (exit $ac_status); }
17218+
17219+cat >conftest.$ac_ext <<_ACEOF
17220+/* confdefs.h. */
17221+_ACEOF
17222+cat confdefs.h >>conftest.$ac_ext
17223+cat >>conftest.$ac_ext <<_ACEOF
17224+/* end confdefs.h. */
17225+
17226+int
17227+main ()
17228+{
17229+
17230+ ;
17231+ return 0;
17232+}
17233+_ACEOF
17234+ac_clean_files_save=$ac_clean_files
17235+ac_clean_files="$ac_clean_files a.out a.exe b.out"
17236+# Try to create an executable without -o first, disregard a.out.
17237+# It will help us diagnose broken compilers, and finding out an intuition
17238+# of exeext.
17239+echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
17240+echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
17241+ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
17242+if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
17243+ (eval $ac_link_default) 2>&5
17244+ ac_status=$?
17245+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
17246+ (exit $ac_status); }; then
17247+ # Find the output, starting from the most likely. This scheme is
17248+# not robust to junk in `.', hence go to wildcards (a.*) only as a last
17249+# resort.
17250+
17251+# Be careful to initialize this variable, since it used to be cached.
17252+# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
17253+ac_cv_exeext=
17254+# b.out is created by i960 compilers.
17255+for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
17256+do
17257+ test -f "$ac_file" || continue
17258+ case $ac_file in
17259+ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
17260+ ;;
17261+ conftest.$ac_ext )
17262+ # This is the source file.
17263+ ;;
17264+ [ab].out )
17265+ # We found the default executable, but exeext='' is most
17266+ # certainly right.
17267+ break;;
17268+ *.* )
17269+ ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
17270+ # FIXME: I believe we export ac_cv_exeext for Libtool,
17271+ # but it would be cool to find out if it's true. Does anybody
17272+ # maintain Libtool? --akim.
17273+ export ac_cv_exeext
17274+ break;;
17275+ * )
17276+ break;;
17277+ esac
17278+done
17279+else
17280+ echo "$as_me: failed program was:" >&5
17281+sed 's/^/| /' conftest.$ac_ext >&5
17282+
17283+{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
17284+See \`config.log' for more details." >&5
17285+echo "$as_me: error: C compiler cannot create executables
17286+See \`config.log' for more details." >&2;}
17287+ { (exit 77); exit 77; }; }
17288+fi
17289+
17290+ac_exeext=$ac_cv_exeext
17291+echo "$as_me:$LINENO: result: $ac_file" >&5
17292+echo "${ECHO_T}$ac_file" >&6
17293+
17294+# Check the compiler produces executables we can run. If not, either
17295+# the compiler is broken, or we cross compile.
17296+echo "$as_me:$LINENO: checking whether the C compiler works" >&5
17297+echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
17298+# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
17299+# If not cross compiling, check that we can run a simple program.
17300+if test "$cross_compiling" != yes; then
17301+ if { ac_try='./$ac_file'
17302+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17303+ (eval $ac_try) 2>&5
17304+ ac_status=$?
17305+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
17306+ (exit $ac_status); }; }; then
17307+ cross_compiling=no
17308+ else
17309+ if test "$cross_compiling" = maybe; then
17310+ cross_compiling=yes
17311+ else
17312+ { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
17313+If you meant to cross compile, use \`--host'.
17314+See \`config.log' for more details." >&5
17315+echo "$as_me: error: cannot run C compiled programs.
17316+If you meant to cross compile, use \`--host'.
17317+See \`config.log' for more details." >&2;}
17318+ { (exit 1); exit 1; }; }
17319+ fi
17320+ fi
17321+fi
17322+echo "$as_me:$LINENO: result: yes" >&5
17323+echo "${ECHO_T}yes" >&6
17324+
17325+rm -f a.out a.exe conftest$ac_cv_exeext b.out
17326+ac_clean_files=$ac_clean_files_save
17327+# Check the compiler produces executables we can run. If not, either
17328+# the compiler is broken, or we cross compile.
17329+echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
17330+echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
17331+echo "$as_me:$LINENO: result: $cross_compiling" >&5
17332+echo "${ECHO_T}$cross_compiling" >&6
17333+
17334+echo "$as_me:$LINENO: checking for suffix of executables" >&5
17335+echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
17336+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17337+ (eval $ac_link) 2>&5
17338+ ac_status=$?
17339+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
17340+ (exit $ac_status); }; then
17341+ # If both `conftest.exe' and `conftest' are `present' (well, observable)
17342+# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
17343+# work properly (i.e., refer to `conftest.exe'), while it won't with
17344+# `rm'.
17345+for ac_file in conftest.exe conftest conftest.*; do
17346+ test -f "$ac_file" || continue
17347+ case $ac_file in
17348+ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
17349+ *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
17350+ export ac_cv_exeext
17351+ break;;
17352+ * ) break;;
17353+ esac
17354+done
17355+else
17356+ { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
17357+See \`config.log' for more details." >&5
17358+echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
17359+See \`config.log' for more details." >&2;}
17360+ { (exit 1); exit 1; }; }
17361+fi
17362+
17363+rm -f conftest$ac_cv_exeext
17364+echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
17365+echo "${ECHO_T}$ac_cv_exeext" >&6
17366+
17367+rm -f conftest.$ac_ext
17368+EXEEXT=$ac_cv_exeext
17369+ac_exeext=$EXEEXT
17370+echo "$as_me:$LINENO: checking for suffix of object files" >&5
17371+echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
17372+if test "${ac_cv_objext+set}" = set; then
17373+ echo $ECHO_N "(cached) $ECHO_C" >&6
17374+else
17375+ cat >conftest.$ac_ext <<_ACEOF
17376+/* confdefs.h. */
17377+_ACEOF
17378+cat confdefs.h >>conftest.$ac_ext
17379+cat >>conftest.$ac_ext <<_ACEOF
17380+/* end confdefs.h. */
17381+
17382+int
17383+main ()
17384+{
17385+
17386+ ;
17387+ return 0;
17388+}
17389+_ACEOF
17390+rm -f conftest.o conftest.obj
17391+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17392+ (eval $ac_compile) 2>&5
17393+ ac_status=$?
17394+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
17395+ (exit $ac_status); }; then
17396+ for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
17397+ case $ac_file in
17398+ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
17399+ *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
17400+ break;;
17401+ esac
17402+done
17403+else
17404+ echo "$as_me: failed program was:" >&5
17405+sed 's/^/| /' conftest.$ac_ext >&5
17406+
17407+{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
17408+See \`config.log' for more details." >&5
17409+echo "$as_me: error: cannot compute suffix of object files: cannot compile
17410+See \`config.log' for more details." >&2;}
17411+ { (exit 1); exit 1; }; }
17412+fi
17413+
17414+rm -f conftest.$ac_cv_objext conftest.$ac_ext
17415+fi
17416+echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
17417+echo "${ECHO_T}$ac_cv_objext" >&6
17418+OBJEXT=$ac_cv_objext
17419+ac_objext=$OBJEXT
17420+echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
17421+echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
17422+if test "${ac_cv_c_compiler_gnu+set}" = set; then
17423+ echo $ECHO_N "(cached) $ECHO_C" >&6
17424+else
17425+ cat >conftest.$ac_ext <<_ACEOF
17426+/* confdefs.h. */
17427+_ACEOF
17428+cat confdefs.h >>conftest.$ac_ext
17429+cat >>conftest.$ac_ext <<_ACEOF
17430+/* end confdefs.h. */
17431+
17432+int
17433+main ()
17434+{
17435+#ifndef __GNUC__
17436+ choke me
17437+#endif
17438+
17439+ ;
17440+ return 0;
17441+}
17442+_ACEOF
17443+rm -f conftest.$ac_objext
17444+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17445+ (eval $ac_compile) 2>conftest.er1
17446+ ac_status=$?
17447+ grep -v '^ *+' conftest.er1 >conftest.err
17448+ rm -f conftest.er1
17449+ cat conftest.err >&5
17450+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
17451+ (exit $ac_status); } &&
17452+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17453+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17454+ (eval $ac_try) 2>&5
17455+ ac_status=$?
17456+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
17457+ (exit $ac_status); }; } &&
17458+ { ac_try='test -s conftest.$ac_objext'
17459+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17460+ (eval $ac_try) 2>&5
17461+ ac_status=$?
17462+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
17463+ (exit $ac_status); }; }; then
17464+ ac_compiler_gnu=yes
17465+else
17466+ echo "$as_me: failed program was:" >&5
17467+sed 's/^/| /' conftest.$ac_ext >&5
17468+
17469+ac_compiler_gnu=no
17470+fi
17471+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17472+ac_cv_c_compiler_gnu=$ac_compiler_gnu
17473+
17474+fi
17475+echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
17476+echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
17477+GCC=`test $ac_compiler_gnu = yes && echo yes`
17478+ac_test_CFLAGS=${CFLAGS+set}
17479+ac_save_CFLAGS=$CFLAGS
17480+CFLAGS="-g"
17481+echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
17482+echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
17483+if test "${ac_cv_prog_cc_g+set}" = set; then
17484+ echo $ECHO_N "(cached) $ECHO_C" >&6
17485+else
17486+ cat >conftest.$ac_ext <<_ACEOF
17487+/* confdefs.h. */
17488+_ACEOF
17489+cat confdefs.h >>conftest.$ac_ext
17490+cat >>conftest.$ac_ext <<_ACEOF
17491+/* end confdefs.h. */
17492+
17493+int
17494+main ()
17495+{
17496+
17497+ ;
17498+ return 0;
17499+}
17500+_ACEOF
17501+rm -f conftest.$ac_objext
17502+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17503+ (eval $ac_compile) 2>conftest.er1
17504+ ac_status=$?
17505+ grep -v '^ *+' conftest.er1 >conftest.err
17506+ rm -f conftest.er1
17507+ cat conftest.err >&5
17508+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
17509+ (exit $ac_status); } &&
17510+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17511+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17512+ (eval $ac_try) 2>&5
17513+ ac_status=$?
17514+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
17515+ (exit $ac_status); }; } &&
17516+ { ac_try='test -s conftest.$ac_objext'
17517+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17518+ (eval $ac_try) 2>&5
17519+ ac_status=$?
17520+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
17521+ (exit $ac_status); }; }; then
17522+ ac_cv_prog_cc_g=yes
17523+else
17524+ echo "$as_me: failed program was:" >&5
17525+sed 's/^/| /' conftest.$ac_ext >&5
17526+
17527+ac_cv_prog_cc_g=no
17528+fi
17529+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17530+fi
17531+echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
17532+echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
17533+if test "$ac_test_CFLAGS" = set; then
17534+ CFLAGS=$ac_save_CFLAGS
17535+elif test $ac_cv_prog_cc_g = yes; then
17536+ if test "$GCC" = yes; then
17537+ CFLAGS="-g -O2"
17538+ else
17539+ CFLAGS="-g"
17540+ fi
17541+else
17542+ if test "$GCC" = yes; then
17543+ CFLAGS="-O2"
17544+ else
17545+ CFLAGS=
17546+ fi
17547+fi
17548+echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
17549+echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
17550+if test "${ac_cv_prog_cc_stdc+set}" = set; then
17551+ echo $ECHO_N "(cached) $ECHO_C" >&6
17552+else
17553+ ac_cv_prog_cc_stdc=no
17554+ac_save_CC=$CC
17555+cat >conftest.$ac_ext <<_ACEOF
17556+/* confdefs.h. */
17557+_ACEOF
17558+cat confdefs.h >>conftest.$ac_ext
17559+cat >>conftest.$ac_ext <<_ACEOF
17560+/* end confdefs.h. */
17561+#include <stdarg.h>
17562+#include <stdio.h>
17563+#include <sys/types.h>
17564+#include <sys/stat.h>
17565+/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
17566+struct buf { int x; };
17567+FILE * (*rcsopen) (struct buf *, struct stat *, int);
17568+static char *e (p, i)
17569+ char **p;
17570+ int i;
17571+{
17572+ return p[i];
17573+}
17574+static char *f (char * (*g) (char **, int), char **p, ...)
17575+{
17576+ char *s;
17577+ va_list v;
17578+ va_start (v,p);
17579+ s = g (p, va_arg (v,int));
17580+ va_end (v);
17581+ return s;
17582+}
17583+
17584+/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
17585+ function prototypes and stuff, but not '\xHH' hex character constants.
17586+ These don't provoke an error unfortunately, instead are silently treated
17587+ as 'x'. The following induces an error, until -std1 is added to get
17588+ proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
17589+ array size at least. It's necessary to write '\x00'==0 to get something
17590+ that's true only with -std1. */
17591+int osf4_cc_array ['\x00' == 0 ? 1 : -1];
17592+
17593+int test (int i, double x);
17594+struct s1 {int (*f) (int a);};
17595+struct s2 {int (*f) (double a);};
17596+int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
17597+int argc;
17598+char **argv;
17599+int
17600+main ()
17601+{
17602+return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
17603+ ;
17604+ return 0;
17605+}
17606+_ACEOF
17607+# Don't try gcc -ansi; that turns off useful extensions and
17608+# breaks some systems' header files.
17609+# AIX -qlanglvl=ansi
17610+# Ultrix and OSF/1 -std1
17611+# HP-UX 10.20 and later -Ae
17612+# HP-UX older versions -Aa -D_HPUX_SOURCE
17613+# SVR4 -Xc -D__EXTENSIONS__
17614+for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
17615+do
17616+ CC="$ac_save_CC $ac_arg"
17617+ rm -f conftest.$ac_objext
17618+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17619+ (eval $ac_compile) 2>conftest.er1
17620+ ac_status=$?
17621+ grep -v '^ *+' conftest.er1 >conftest.err
17622+ rm -f conftest.er1
17623+ cat conftest.err >&5
17624+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
17625+ (exit $ac_status); } &&
17626+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17627+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17628+ (eval $ac_try) 2>&5
17629+ ac_status=$?
17630+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
17631+ (exit $ac_status); }; } &&
17632+ { ac_try='test -s conftest.$ac_objext'
17633+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17634+ (eval $ac_try) 2>&5
17635+ ac_status=$?
17636+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
17637+ (exit $ac_status); }; }; then
17638+ ac_cv_prog_cc_stdc=$ac_arg
17639+break
17640+else
17641+ echo "$as_me: failed program was:" >&5
17642+sed 's/^/| /' conftest.$ac_ext >&5
17643+
17644+fi
17645+rm -f conftest.err conftest.$ac_objext
17646+done
17647+rm -f conftest.$ac_ext conftest.$ac_objext
17648+CC=$ac_save_CC
17649+
17650+fi
17651+
17652+case "x$ac_cv_prog_cc_stdc" in
17653+ x|xno)
17654+ echo "$as_me:$LINENO: result: none needed" >&5
17655+echo "${ECHO_T}none needed" >&6 ;;
17656+ *)
17657+ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
17658+echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
17659+ CC="$CC $ac_cv_prog_cc_stdc" ;;
17660+esac
17661+
17662+# Some people use a C++ compiler to compile C. Since we use `exit',
17663+# in C++ we need to declare it. In case someone uses the same compiler
17664+# for both compiling C and C++ we need to have the C++ compiler decide
17665+# the declaration of exit, since it's the most demanding environment.
17666+cat >conftest.$ac_ext <<_ACEOF
17667+#ifndef __cplusplus
17668+ choke me
17669+#endif
17670+_ACEOF
17671+rm -f conftest.$ac_objext
17672+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17673+ (eval $ac_compile) 2>conftest.er1
17674+ ac_status=$?
17675+ grep -v '^ *+' conftest.er1 >conftest.err
17676+ rm -f conftest.er1
17677+ cat conftest.err >&5
17678+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
17679+ (exit $ac_status); } &&
17680+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17681+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17682+ (eval $ac_try) 2>&5
17683+ ac_status=$?
17684+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
17685+ (exit $ac_status); }; } &&
17686+ { ac_try='test -s conftest.$ac_objext'
17687+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17688+ (eval $ac_try) 2>&5
17689+ ac_status=$?
17690+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
17691+ (exit $ac_status); }; }; then
17692+ for ac_declaration in \
17693+ '' \
17694+ 'extern "C" void std::exit (int) throw (); using std::exit;' \
17695+ 'extern "C" void std::exit (int); using std::exit;' \
17696+ 'extern "C" void exit (int) throw ();' \
17697+ 'extern "C" void exit (int);' \
17698+ 'void exit (int);'
17699+do
17700+ cat >conftest.$ac_ext <<_ACEOF
17701+/* confdefs.h. */
17702+_ACEOF
17703+cat confdefs.h >>conftest.$ac_ext
17704+cat >>conftest.$ac_ext <<_ACEOF
17705+/* end confdefs.h. */
17706+$ac_declaration
17707+#include <stdlib.h>
17708+int
17709+main ()
17710+{
17711+exit (42);
17712+ ;
17713+ return 0;
17714+}
17715+_ACEOF
17716+rm -f conftest.$ac_objext
17717+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17718+ (eval $ac_compile) 2>conftest.er1
17719+ ac_status=$?
17720+ grep -v '^ *+' conftest.er1 >conftest.err
17721+ rm -f conftest.er1
17722+ cat conftest.err >&5
17723+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724+ (exit $ac_status); } &&
17725+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17726+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17727+ (eval $ac_try) 2>&5
17728+ ac_status=$?
17729+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
17730+ (exit $ac_status); }; } &&
17731+ { ac_try='test -s conftest.$ac_objext'
17732+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17733+ (eval $ac_try) 2>&5
17734+ ac_status=$?
17735+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
17736+ (exit $ac_status); }; }; then
17737+ :
17738+else
17739+ echo "$as_me: failed program was:" >&5
17740+sed 's/^/| /' conftest.$ac_ext >&5
17741+
17742+continue
17743+fi
17744+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17745+ cat >conftest.$ac_ext <<_ACEOF
17746+/* confdefs.h. */
17747+_ACEOF
17748+cat confdefs.h >>conftest.$ac_ext
17749+cat >>conftest.$ac_ext <<_ACEOF
17750+/* end confdefs.h. */
17751+$ac_declaration
17752+int
17753+main ()
17754+{
17755+exit (42);
17756+ ;
17757+ return 0;
17758+}
17759+_ACEOF
17760+rm -f conftest.$ac_objext
17761+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17762+ (eval $ac_compile) 2>conftest.er1
17763+ ac_status=$?
17764+ grep -v '^ *+' conftest.er1 >conftest.err
17765+ rm -f conftest.er1
17766+ cat conftest.err >&5
17767+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
17768+ (exit $ac_status); } &&
17769+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17770+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17771+ (eval $ac_try) 2>&5
17772+ ac_status=$?
17773+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
17774+ (exit $ac_status); }; } &&
17775+ { ac_try='test -s conftest.$ac_objext'
17776+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17777+ (eval $ac_try) 2>&5
17778+ ac_status=$?
17779+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
17780+ (exit $ac_status); }; }; then
17781+ break
17782+else
17783+ echo "$as_me: failed program was:" >&5
17784+sed 's/^/| /' conftest.$ac_ext >&5
17785+
17786+fi
17787+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17788+done
17789+rm -f conftest*
17790+if test -n "$ac_declaration"; then
17791+ echo '#ifdef __cplusplus' >>confdefs.h
17792+ echo $ac_declaration >>confdefs.h
17793+ echo '#endif' >>confdefs.h
17794+fi
17795+
17796+else
17797+ echo "$as_me: failed program was:" >&5
17798+sed 's/^/| /' conftest.$ac_ext >&5
17799+
17800+fi
17801+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17802+ac_ext=c
17803+ac_cpp='$CPP $CPPFLAGS'
17804+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17805+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17806+ac_compiler_gnu=$ac_cv_c_compiler_gnu
17807+DEPDIR="${am__leading_dot}deps"
17808+
17809+ ac_config_commands="$ac_config_commands depfiles"
17810+
17811+
17812+am_make=${MAKE-make}
17813+cat > confinc << 'END'
17814+am__doit:
17815+ @echo done
17816+.PHONY: am__doit
17817+END
17818+# If we don't find an include directive, just comment out the code.
17819+echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
17820+echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
17821+am__include="#"
17822+am__quote=
17823+_am_result=none
17824+# First try GNU make style include.
17825+echo "include confinc" > confmf
17826+# We grep out `Entering directory' and `Leaving directory'
17827+# messages which can occur if `w' ends up in MAKEFLAGS.
17828+# In particular we don't look at `^make:' because GNU make might
17829+# be invoked under some other name (usually "gmake"), in which
17830+# case it prints its new name instead of `make'.
17831+if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
17832+ am__include=include
17833+ am__quote=
17834+ _am_result=GNU
17835+fi
17836+# Now try BSD make style include.
17837+if test "$am__include" = "#"; then
17838+ echo '.include "confinc"' > confmf
17839+ if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
17840+ am__include=.include
17841+ am__quote="\""
17842+ _am_result=BSD
17843+ fi
17844+fi
17845+
17846+
17847+echo "$as_me:$LINENO: result: $_am_result" >&5
17848+echo "${ECHO_T}$_am_result" >&6
17849+rm -f confinc confmf
17850+
17851+# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
17852+if test "${enable_dependency_tracking+set}" = set; then
17853+ enableval="$enable_dependency_tracking"
17854+
17855+fi;
17856+if test "x$enable_dependency_tracking" != xno; then
17857+ am_depcomp="$ac_aux_dir/depcomp"
17858+ AMDEPBACKSLASH='\'
17859+fi
17860+
17861+
17862+if test "x$enable_dependency_tracking" != xno; then
17863+ AMDEP_TRUE=
17864+ AMDEP_FALSE='#'
17865+else
17866+ AMDEP_TRUE='#'
17867+ AMDEP_FALSE=
17868+fi
17869+
17870+
17871+
17872+
17873+depcc="$CC" am_compiler_list=
17874+
17875+echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
17876+echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
17877+if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
17878+ echo $ECHO_N "(cached) $ECHO_C" >&6
17879+else
17880+ if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
17881+ # We make a subdir and do the tests there. Otherwise we can end up
17882+ # making bogus files that we don't know about and never remove. For
17883+ # instance it was reported that on HP-UX the gcc test will end up
17884+ # making a dummy file named `D' -- because `-MD' means `put the output
17885+ # in D'.
17886+ mkdir conftest.dir
17887+ # Copy depcomp to subdir because otherwise we won't find it if we're
17888+ # using a relative directory.
17889+ cp "$am_depcomp" conftest.dir
17890+ cd conftest.dir
17891+ # We will build objects and dependencies in a subdirectory because
17892+ # it helps to detect inapplicable dependency modes. For instance
17893+ # both Tru64's cc and ICC support -MD to output dependencies as a
17894+ # side effect of compilation, but ICC will put the dependencies in
17895+ # the current directory while Tru64 will put them in the object
17896+ # directory.
17897+ mkdir sub
17898+
17899+ am_cv_CC_dependencies_compiler_type=none
17900+ if test "$am_compiler_list" = ""; then
17901+ am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
17902+ fi
17903+ for depmode in $am_compiler_list; do
17904+ # Setup a source with many dependencies, because some compilers
17905+ # like to wrap large dependency lists on column 80 (with \), and
17906+ # we should not choose a depcomp mode which is confused by this.
17907+ #
17908+ # We need to recreate these files for each test, as the compiler may
17909+ # overwrite some of them when testing with obscure command lines.
17910+ # This happens at least with the AIX C compiler.
17911+ : > sub/conftest.c
17912+ for i in 1 2 3 4 5 6; do
17913+ echo '#include "conftst'$i'.h"' >> sub/conftest.c
17914+ : > sub/conftst$i.h
17915+ done
17916+ echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
17917+
17918+ case $depmode in
17919+ nosideeffect)
17920+ # after this tag, mechanisms are not by side-effect, so they'll
17921+ # only be used when explicitly requested
17922+ if test "x$enable_dependency_tracking" = xyes; then
17923+ continue
17924+ else
17925+ break
17926+ fi
17927+ ;;
17928+ none) break ;;
17929+ esac
17930+ # We check with `-c' and `-o' for the sake of the "dashmstdout"
17931+ # mode. It turns out that the SunPro C++ compiler does not properly
17932+ # handle `-M -o', and we need to detect this.
17933+ if depmode=$depmode \
17934+ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
17935+ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
17936+ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
17937+ >/dev/null 2>conftest.err &&
17938+ grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
17939+ grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
17940+ ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
17941+ # icc doesn't choke on unknown options, it will just issue warnings
17942+ # (even with -Werror). So we grep stderr for any message
17943+ # that says an option was ignored.
17944+ if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
17945+ am_cv_CC_dependencies_compiler_type=$depmode
17946+ break
17947+ fi
17948+ fi
17949+ done
17950+
17951+ cd ..
17952+ rm -rf conftest.dir
17953+else
17954+ am_cv_CC_dependencies_compiler_type=none
17955+fi
17956+
17957+fi
17958+echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
17959+echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
17960+CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
17961+
17962+
17963+
17964+if
17965+ test "x$enable_dependency_tracking" != xno \
17966+ && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
17967+ am__fastdepCC_TRUE=
17968+ am__fastdepCC_FALSE='#'
17969+else
17970+ am__fastdepCC_TRUE='#'
17971+ am__fastdepCC_FALSE=
17972+fi
17973+
17974+
17975+# Check whether --enable-shared or --disable-shared was given.
17976+if test "${enable_shared+set}" = set; then
17977+ enableval="$enable_shared"
17978+ p=${PACKAGE-default}
17979+ case $enableval in
17980+ yes) enable_shared=yes ;;
17981+ no) enable_shared=no ;;
17982+ *)
17983+ enable_shared=no
17984+ # Look at the argument we got. We use all the common list separators.
17985+ lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17986+ for pkg in $enableval; do
17987+ IFS="$lt_save_ifs"
17988+ if test "X$pkg" = "X$p"; then
17989+ enable_shared=yes
17990+ fi
17991+ done
17992+ IFS="$lt_save_ifs"
17993+ ;;
17994+ esac
17995+else
17996+ enable_shared=yes
17997+fi;
17998+
17999+# Check whether --enable-static or --disable-static was given.
18000+if test "${enable_static+set}" = set; then
18001+ enableval="$enable_static"
18002+ p=${PACKAGE-default}
18003+ case $enableval in
18004+ yes) enable_static=yes ;;
18005+ no) enable_static=no ;;
18006+ *)
18007+ enable_static=no
18008+ # Look at the argument we got. We use all the common list separators.
18009+ lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18010+ for pkg in $enableval; do
18011+ IFS="$lt_save_ifs"
18012+ if test "X$pkg" = "X$p"; then
18013+ enable_static=yes
18014+ fi
18015+ done
18016+ IFS="$lt_save_ifs"
18017+ ;;
18018+ esac
18019+else
18020+ enable_static=yes
18021+fi;
18022+
18023+# Check whether --enable-fast-install or --disable-fast-install was given.
18024+if test "${enable_fast_install+set}" = set; then
18025+ enableval="$enable_fast_install"
18026+ p=${PACKAGE-default}
18027+ case $enableval in
18028+ yes) enable_fast_install=yes ;;
18029+ no) enable_fast_install=no ;;
18030+ *)
18031+ enable_fast_install=no
18032+ # Look at the argument we got. We use all the common list separators.
18033+ lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18034+ for pkg in $enableval; do
18035+ IFS="$lt_save_ifs"
18036+ if test "X$pkg" = "X$p"; then
18037+ enable_fast_install=yes
18038+ fi
18039+ done
18040+ IFS="$lt_save_ifs"
18041+ ;;
18042+ esac
18043+else
18044+ enable_fast_install=yes
18045+fi;
18046+
18047+# Make sure we can run config.sub.
18048+$ac_config_sub sun4 >/dev/null 2>&1 ||
18049+ { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
18050+echo "$as_me: error: cannot run $ac_config_sub" >&2;}
18051+ { (exit 1); exit 1; }; }
18052+
18053+echo "$as_me:$LINENO: checking build system type" >&5
18054+echo $ECHO_N "checking build system type... $ECHO_C" >&6
18055+if test "${ac_cv_build+set}" = set; then
18056+ echo $ECHO_N "(cached) $ECHO_C" >&6
18057+else
18058+ ac_cv_build_alias=$build_alias
18059+test -z "$ac_cv_build_alias" &&
18060+ ac_cv_build_alias=`$ac_config_guess`
18061+test -z "$ac_cv_build_alias" &&
18062+ { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
18063+echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
18064+ { (exit 1); exit 1; }; }
18065+ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
18066+ { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
18067+echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
18068+ { (exit 1); exit 1; }; }
18069+
18070+fi
18071+echo "$as_me:$LINENO: result: $ac_cv_build" >&5
18072+echo "${ECHO_T}$ac_cv_build" >&6
18073+build=$ac_cv_build
18074+build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
18075+build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
18076+build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
18077+
18078+
18079+echo "$as_me:$LINENO: checking host system type" >&5
18080+echo $ECHO_N "checking host system type... $ECHO_C" >&6
18081+if test "${ac_cv_host+set}" = set; then
18082+ echo $ECHO_N "(cached) $ECHO_C" >&6
18083+else
18084+ ac_cv_host_alias=$host_alias
18085+test -z "$ac_cv_host_alias" &&
18086+ ac_cv_host_alias=$ac_cv_build_alias
18087+ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
18088+ { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
18089+echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
18090+ { (exit 1); exit 1; }; }
18091+
18092+fi
18093+echo "$as_me:$LINENO: result: $ac_cv_host" >&5
18094+echo "${ECHO_T}$ac_cv_host" >&6
18095+host=$ac_cv_host
18096+host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
18097+host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
18098+host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
18099+
18100+
18101+echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
18102+echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
18103+if test "${lt_cv_path_SED+set}" = set; then
18104+ echo $ECHO_N "(cached) $ECHO_C" >&6
18105+else
18106+ # Loop through the user's path and test for sed and gsed.
18107+# Then use that list of sed's as ones to test for truncation.
18108+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18109+for as_dir in $PATH
18110+do
18111+ IFS=$as_save_IFS
18112+ test -z "$as_dir" && as_dir=.
18113+ for lt_ac_prog in sed gsed; do
18114+ for ac_exec_ext in '' $ac_executable_extensions; do
18115+ if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
18116+ lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
18117+ fi
18118+ done
18119+ done
18120+done
18121+lt_ac_max=0
18122+lt_ac_count=0
18123+# Add /usr/xpg4/bin/sed as it is typically found on Solaris
18124+# along with /bin/sed that truncates output.
18125+for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
18126+ test ! -f $lt_ac_sed && break
18127+ cat /dev/null > conftest.in
18128+ lt_ac_count=0
18129+ echo $ECHO_N "0123456789$ECHO_C" >conftest.in
18130+ # Check for GNU sed and select it if it is found.
18131+ if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
18132+ lt_cv_path_SED=$lt_ac_sed
18133+ break
18134+ fi
18135+ while true; do
18136+ cat conftest.in conftest.in >conftest.tmp
18137+ mv conftest.tmp conftest.in
18138+ cp conftest.in conftest.nl
18139+ echo >>conftest.nl
18140+ $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
18141+ cmp -s conftest.out conftest.nl || break
18142+ # 10000 chars as input seems more than enough
18143+ test $lt_ac_count -gt 10 && break
18144+ lt_ac_count=`expr $lt_ac_count + 1`
18145+ if test $lt_ac_count -gt $lt_ac_max; then
18146+ lt_ac_max=$lt_ac_count
18147+ lt_cv_path_SED=$lt_ac_sed
18148+ fi
18149+ done
18150+done
18151+SED=$lt_cv_path_SED
18152+
18153+fi
18154+
18155+echo "$as_me:$LINENO: result: $SED" >&5
18156+echo "${ECHO_T}$SED" >&6
18157+
18158+echo "$as_me:$LINENO: checking for egrep" >&5
18159+echo $ECHO_N "checking for egrep... $ECHO_C" >&6
18160+if test "${ac_cv_prog_egrep+set}" = set; then
18161+ echo $ECHO_N "(cached) $ECHO_C" >&6
18162+else
18163+ if echo a | (grep -E '(a|b)') >/dev/null 2>&1
18164+ then ac_cv_prog_egrep='grep -E'
18165+ else ac_cv_prog_egrep='egrep'
18166+ fi
18167+fi
18168+echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
18169+echo "${ECHO_T}$ac_cv_prog_egrep" >&6
18170+ EGREP=$ac_cv_prog_egrep
18171+
18172+
18173+
18174+# Check whether --with-gnu-ld or --without-gnu-ld was given.
18175+if test "${with_gnu_ld+set}" = set; then
18176+ withval="$with_gnu_ld"
18177+ test "$withval" = no || with_gnu_ld=yes
18178+else
18179+ with_gnu_ld=no
18180+fi;
18181+ac_prog=ld
18182+if test "$GCC" = yes; then
18183+ # Check if gcc -print-prog-name=ld gives a path.
18184+ echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18185+echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
18186+ case $host in
18187+ *-*-mingw*)
18188+ # gcc leaves a trailing carriage return which upsets mingw
18189+ ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18190+ *)
18191+ ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18192+ esac
18193+ case $ac_prog in
18194+ # Accept absolute paths.
18195+ [\\/]* | ?:[\\/]*)
18196+ re_direlt='/[^/][^/]*/\.\./'
18197+ # Canonicalize the pathname of ld
18198+ ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18199+ while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18200+ ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18201+ done
18202+ test -z "$LD" && LD="$ac_prog"
18203+ ;;
18204+ "")
18205+ # If it fails, then pretend we aren't using GCC.
18206+ ac_prog=ld
18207+ ;;
18208+ *)
18209+ # If it is relative, then search for the first ld in PATH.
18210+ with_gnu_ld=unknown
18211+ ;;
18212+ esac
18213+elif test "$with_gnu_ld" = yes; then
18214+ echo "$as_me:$LINENO: checking for GNU ld" >&5
18215+echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
18216+else
18217+ echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18218+echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
18219+fi
18220+if test "${lt_cv_path_LD+set}" = set; then
18221+ echo $ECHO_N "(cached) $ECHO_C" >&6
18222+else
18223+ if test -z "$LD"; then
18224+ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18225+ for ac_dir in $PATH; do
18226+ IFS="$lt_save_ifs"
18227+ test -z "$ac_dir" && ac_dir=.
18228+ if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18229+ lt_cv_path_LD="$ac_dir/$ac_prog"
18230+ # Check to see if the program is GNU ld. I'd rather use --version,
18231+ # but apparently some GNU ld's only accept -v.
18232+ # Break only if it was the GNU/non-GNU ld that we prefer.
18233+ case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18234+ *GNU* | *'with BFD'*)
18235+ test "$with_gnu_ld" != no && break
18236+ ;;
18237+ *)
18238+ test "$with_gnu_ld" != yes && break
18239+ ;;
18240+ esac
18241+ fi
18242+ done
18243+ IFS="$lt_save_ifs"
18244+else
18245+ lt_cv_path_LD="$LD" # Let the user override the test with a path.
18246+fi
18247+fi
18248+
18249+LD="$lt_cv_path_LD"
18250+if test -n "$LD"; then
18251+ echo "$as_me:$LINENO: result: $LD" >&5
18252+echo "${ECHO_T}$LD" >&6
18253+else
18254+ echo "$as_me:$LINENO: result: no" >&5
18255+echo "${ECHO_T}no" >&6
18256+fi
18257+test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18258+echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18259+ { (exit 1); exit 1; }; }
18260+echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18261+echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
18262+if test "${lt_cv_prog_gnu_ld+set}" = set; then
18263+ echo $ECHO_N "(cached) $ECHO_C" >&6
18264+else
18265+ # I'd rather use --version here, but apparently some GNU ld's only accept -v.
18266+case `$LD -v 2>&1 </dev/null` in
18267+*GNU* | *'with BFD'*)
18268+ lt_cv_prog_gnu_ld=yes
18269+ ;;
18270+*)
18271+ lt_cv_prog_gnu_ld=no
18272+ ;;
18273+esac
18274+fi
18275+echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18276+echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
18277+with_gnu_ld=$lt_cv_prog_gnu_ld
18278+
18279+
18280+echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
18281+echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
18282+if test "${lt_cv_ld_reload_flag+set}" = set; then
18283+ echo $ECHO_N "(cached) $ECHO_C" >&6
18284+else
18285+ lt_cv_ld_reload_flag='-r'
18286+fi
18287+echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
18288+echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
18289+reload_flag=$lt_cv_ld_reload_flag
18290+case $reload_flag in
18291+"" | " "*) ;;
18292+*) reload_flag=" $reload_flag" ;;
18293+esac
18294+reload_cmds='$LD$reload_flag -o $output$reload_objs'
18295+
18296+echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
18297+echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
18298+if test "${lt_cv_path_NM+set}" = set; then
18299+ echo $ECHO_N "(cached) $ECHO_C" >&6
18300+else
18301+ if test -n "$NM"; then
18302+ # Let the user override the test.
18303+ lt_cv_path_NM="$NM"
18304+else
18305+ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18306+ for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
18307+ IFS="$lt_save_ifs"
18308+ test -z "$ac_dir" && ac_dir=.
18309+ tmp_nm="$ac_dir/${ac_tool_prefix}nm"
18310+ if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
18311+ # Check to see if the nm accepts a BSD-compat flag.
18312+ # Adding the `sed 1q' prevents false positives on HP-UX, which says:
18313+ # nm: unknown option "B" ignored
18314+ # Tru64's nm complains that /dev/null is an invalid object file
18315+ case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
18316+ */dev/null* | *'Invalid file or object type'*)
18317+ lt_cv_path_NM="$tmp_nm -B"
18318+ break
18319+ ;;
18320+ *)
18321+ case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
18322+ */dev/null*)
18323+ lt_cv_path_NM="$tmp_nm -p"
18324+ break
18325+ ;;
18326+ *)
18327+ lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
18328+ continue # so that we can try to find one that supports BSD flags
18329+ ;;
18330+ esac
18331+ esac
18332+ fi
18333+ done
18334+ IFS="$lt_save_ifs"
18335+ test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
18336+fi
18337+fi
18338+echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
18339+echo "${ECHO_T}$lt_cv_path_NM" >&6
18340+NM="$lt_cv_path_NM"
18341+
18342+echo "$as_me:$LINENO: checking whether ln -s works" >&5
18343+echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
18344+LN_S=$as_ln_s
18345+if test "$LN_S" = "ln -s"; then
18346+ echo "$as_me:$LINENO: result: yes" >&5
18347+echo "${ECHO_T}yes" >&6
18348+else
18349+ echo "$as_me:$LINENO: result: no, using $LN_S" >&5
18350+echo "${ECHO_T}no, using $LN_S" >&6
18351+fi
18352+
18353+echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
18354+echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
18355+if test "${lt_cv_deplibs_check_method+set}" = set; then
18356+ echo $ECHO_N "(cached) $ECHO_C" >&6
18357+else
18358+ lt_cv_file_magic_cmd='$MAGIC_CMD'
18359+lt_cv_file_magic_test_file=
18360+lt_cv_deplibs_check_method='unknown'
18361+# Need to set the preceding variable on all platforms that support
18362+# interlibrary dependencies.
18363+# 'none' -- dependencies not supported.
18364+# `unknown' -- same as none, but documents that we really don't know.
18365+# 'pass_all' -- all dependencies passed with no checks.
18366+# 'test_compile' -- check by making test program.
18367+# 'file_magic [[regex]]' -- check by looking for files in library path
18368+# which responds to the $file_magic_cmd with a given extended regex.
18369+# If you have `file' or equivalent on your system and you're not sure
18370+# whether `pass_all' will *always* work, you probably want this one.
18371+
18372+case $host_os in
18373+aix4* | aix5*)
18374+ lt_cv_deplibs_check_method=pass_all
18375+ ;;
18376+
18377+beos*)
18378+ lt_cv_deplibs_check_method=pass_all
18379+ ;;
18380+
18381+bsdi4*)
18382+ lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
18383+ lt_cv_file_magic_cmd='/usr/bin/file -L'
18384+ lt_cv_file_magic_test_file=/shlib/libc.so
18385+ ;;
18386+
18387+cygwin*)
18388+ # func_win32_libid is a shell function defined in ltmain.sh
18389+ lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
18390+ lt_cv_file_magic_cmd='func_win32_libid'
18391+ ;;
18392+
18393+mingw* | pw32*)
18394+ # Base MSYS/MinGW do not provide the 'file' command needed by
18395+ # func_win32_libid shell function, so use a weaker test based on 'objdump'.
18396+ lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
18397+ lt_cv_file_magic_cmd='$OBJDUMP -f'
18398+ ;;
18399+
18400+darwin* | rhapsody*)
18401+ lt_cv_deplibs_check_method=pass_all
18402+ ;;
18403+
18404+freebsd* | kfreebsd*-gnu)
18405+ if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
18406+ case $host_cpu in
18407+ i*86 )
18408+ # Not sure whether the presence of OpenBSD here was a mistake.
18409+ # Let's accept both of them until this is cleared up.
18410+ lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
18411+ lt_cv_file_magic_cmd=/usr/bin/file
18412+ lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
18413+ ;;
18414+ esac
18415+ else
18416+ lt_cv_deplibs_check_method=pass_all
18417+ fi
18418+ ;;
18419+
18420+gnu*)
18421+ lt_cv_deplibs_check_method=pass_all
18422+ ;;
18423+
18424+hpux10.20* | hpux11*)
18425+ lt_cv_file_magic_cmd=/usr/bin/file
18426+ case "$host_cpu" in
18427+ ia64*)
18428+ lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
18429+ lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
18430+ ;;
18431+ hppa*64*)
18432+ 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]'
18433+ lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
18434+ ;;
18435+ *)
18436+ lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
18437+ lt_cv_file_magic_test_file=/usr/lib/libc.sl
18438+ ;;
18439+ esac
18440+ ;;
18441+
18442+irix5* | irix6* | nonstopux*)
18443+ case $LD in
18444+ *-32|*"-32 ") libmagic=32-bit;;
18445+ *-n32|*"-n32 ") libmagic=N32;;
18446+ *-64|*"-64 ") libmagic=64-bit;;
18447+ *) libmagic=never-match;;
18448+ esac
18449+ lt_cv_deplibs_check_method=pass_all
18450+ ;;
18451+
18452+# This must be Linux ELF.
18453+linux*)
18454+ lt_cv_deplibs_check_method=pass_all
18455+ ;;
18456+
18457+netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
18458+ if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
18459+ lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
18460+ else
18461+ lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
18462+ fi
18463+ ;;
18464+
18465+newos6*)
18466+ lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
18467+ lt_cv_file_magic_cmd=/usr/bin/file
18468+ lt_cv_file_magic_test_file=/usr/lib/libnls.so
18469+ ;;
18470+
18471+nto-qnx*)
18472+ lt_cv_deplibs_check_method=unknown
18473+ ;;
18474+
18475+openbsd*)
18476+ lt_cv_file_magic_cmd=/usr/bin/file
18477+ lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
18478+ if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18479+ lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
18480+ else
18481+ lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
18482+ fi
18483+ ;;
18484+
18485+osf3* | osf4* | osf5*)
18486+ lt_cv_deplibs_check_method=pass_all
18487+ ;;
18488+
18489+sco3.2v5*)
18490+ lt_cv_deplibs_check_method=pass_all
18491+ ;;
18492+
18493+solaris*)
18494+ lt_cv_deplibs_check_method=pass_all
18495+ ;;
18496+
18497+sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18498+ case $host_vendor in
18499+ motorola)
18500+ 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]'
18501+ lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
18502+ ;;
18503+ ncr)
18504+ lt_cv_deplibs_check_method=pass_all
18505+ ;;
18506+ sequent)
18507+ lt_cv_file_magic_cmd='/bin/file'
18508+ lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
18509+ ;;
18510+ sni)
18511+ lt_cv_file_magic_cmd='/bin/file'
18512+ lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
18513+ lt_cv_file_magic_test_file=/lib/libc.so
18514+ ;;
18515+ siemens)
18516+ lt_cv_deplibs_check_method=pass_all
18517+ ;;
18518+ esac
18519+ ;;
18520+
18521+sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
18522+ lt_cv_deplibs_check_method=pass_all
18523+ ;;
18524+esac
18525+
18526+fi
18527+echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
18528+echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
18529+file_magic_cmd=$lt_cv_file_magic_cmd
18530+deplibs_check_method=$lt_cv_deplibs_check_method
18531+test -z "$deplibs_check_method" && deplibs_check_method=unknown
18532+
18533+
18534+
18535+
18536+# If no C compiler was specified, use CC.
18537+LTCC=${LTCC-"$CC"}
18538+
18539+# Allow CC to be a program name with arguments.
18540+compiler=$CC
18541+
18542+
18543+# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
18544+if test "${enable_libtool_lock+set}" = set; then
18545+ enableval="$enable_libtool_lock"
18546+
18547+fi;
18548+test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
18549+
18550+# Some flags need to be propagated to the compiler or linker for good
18551+# libtool support.
18552+case $host in
18553+ia64-*-hpux*)
18554+ # Find out which ABI we are using.
18555+ echo 'int i;' > conftest.$ac_ext
18556+ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18557+ (eval $ac_compile) 2>&5
18558+ ac_status=$?
18559+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
18560+ (exit $ac_status); }; then
18561+ case `/usr/bin/file conftest.$ac_objext` in
18562+ *ELF-32*)
18563+ HPUX_IA64_MODE="32"
18564+ ;;
18565+ *ELF-64*)
18566+ HPUX_IA64_MODE="64"
18567+ ;;
18568+ esac
18569+ fi
18570+ rm -rf conftest*
18571+ ;;
18572+*-*-irix6*)
18573+ # Find out which ABI we are using.
18574+ echo '#line 3608 "configure"' > conftest.$ac_ext
18575+ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18576+ (eval $ac_compile) 2>&5
18577+ ac_status=$?
18578+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
18579+ (exit $ac_status); }; then
18580+ if test "$lt_cv_prog_gnu_ld" = yes; then
18581+ case `/usr/bin/file conftest.$ac_objext` in
18582+ *32-bit*)
18583+ LD="${LD-ld} -melf32bsmip"
18584+ ;;
18585+ *N32*)
18586+ LD="${LD-ld} -melf32bmipn32"
18587+ ;;
18588+ *64-bit*)
18589+ LD="${LD-ld} -melf64bmip"
18590+ ;;
18591+ esac
18592+ else
18593+ case `/usr/bin/file conftest.$ac_objext` in
18594+ *32-bit*)
18595+ LD="${LD-ld} -32"
18596+ ;;
18597+ *N32*)
18598+ LD="${LD-ld} -n32"
18599+ ;;
18600+ *64-bit*)
18601+ LD="${LD-ld} -64"
18602+ ;;
18603+ esac
18604+ fi
18605+ fi
18606+ rm -rf conftest*
18607+ ;;
18608+
18609+x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
18610+ # Find out which ABI we are using.
18611+ echo 'int i;' > conftest.$ac_ext
18612+ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18613+ (eval $ac_compile) 2>&5
18614+ ac_status=$?
18615+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
18616+ (exit $ac_status); }; then
18617+ case "`/usr/bin/file conftest.o`" in
18618+ *32-bit*)
18619+ case $host in
18620+ x86_64-*linux*)
18621+ LD="${LD-ld} -m elf_i386"
18622+ ;;
18623+ ppc64-*linux*|powerpc64-*linux*)
18624+ LD="${LD-ld} -m elf32ppclinux"
18625+ ;;
18626+ s390x-*linux*)
18627+ LD="${LD-ld} -m elf_s390"
18628+ ;;
18629+ sparc64-*linux*)
18630+ LD="${LD-ld} -m elf32_sparc"
18631+ ;;
18632+ esac
18633+ ;;
18634+ *64-bit*)
18635+ case $host in
18636+ x86_64-*linux*)
18637+ LD="${LD-ld} -m elf_x86_64"
18638+ ;;
18639+ ppc*-*linux*|powerpc*-*linux*)
18640+ LD="${LD-ld} -m elf64ppc"
18641+ ;;
18642+ s390*-*linux*)
18643+ LD="${LD-ld} -m elf64_s390"
18644+ ;;
18645+ sparc*-*linux*)
18646+ LD="${LD-ld} -m elf64_sparc"
18647+ ;;
18648+ esac
18649+ ;;
18650+ esac
18651+ fi
18652+ rm -rf conftest*
18653+ ;;
18654+
18655+*-*-sco3.2v5*)
18656+ # On SCO OpenServer 5, we need -belf to get full-featured binaries.
18657+ SAVE_CFLAGS="$CFLAGS"
18658+ CFLAGS="$CFLAGS -belf"
18659+ echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
18660+echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
18661+if test "${lt_cv_cc_needs_belf+set}" = set; then
18662+ echo $ECHO_N "(cached) $ECHO_C" >&6
18663+else
18664+ ac_ext=c
18665+ac_cpp='$CPP $CPPFLAGS'
18666+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18667+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18668+ac_compiler_gnu=$ac_cv_c_compiler_gnu
18669+
18670+ cat >conftest.$ac_ext <<_ACEOF
18671+/* confdefs.h. */
18672+_ACEOF
18673+cat confdefs.h >>conftest.$ac_ext
18674+cat >>conftest.$ac_ext <<_ACEOF
18675+/* end confdefs.h. */
18676+
18677+int
18678+main ()
18679+{
18680+
18681+ ;
18682+ return 0;
18683+}
18684+_ACEOF
18685+rm -f conftest.$ac_objext conftest$ac_exeext
18686+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18687+ (eval $ac_link) 2>conftest.er1
18688+ ac_status=$?
18689+ grep -v '^ *+' conftest.er1 >conftest.err
18690+ rm -f conftest.er1
18691+ cat conftest.err >&5
18692+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
18693+ (exit $ac_status); } &&
18694+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18695+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18696+ (eval $ac_try) 2>&5
18697+ ac_status=$?
18698+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
18699+ (exit $ac_status); }; } &&
18700+ { ac_try='test -s conftest$ac_exeext'
18701+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18702+ (eval $ac_try) 2>&5
18703+ ac_status=$?
18704+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
18705+ (exit $ac_status); }; }; then
18706+ lt_cv_cc_needs_belf=yes
18707+else
18708+ echo "$as_me: failed program was:" >&5
18709+sed 's/^/| /' conftest.$ac_ext >&5
18710+
18711+lt_cv_cc_needs_belf=no
18712+fi
18713+rm -f conftest.err conftest.$ac_objext \
18714+ conftest$ac_exeext conftest.$ac_ext
18715+ ac_ext=c
18716+ac_cpp='$CPP $CPPFLAGS'
18717+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18718+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18719+ac_compiler_gnu=$ac_cv_c_compiler_gnu
18720+
18721+fi
18722+echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
18723+echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
18724+ if test x"$lt_cv_cc_needs_belf" != x"yes"; then
18725+ # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
18726+ CFLAGS="$SAVE_CFLAGS"
18727+ fi
18728+ ;;
18729+
18730+esac
18731+
18732+need_locks="$enable_libtool_lock"
18733+
18734+
18735+ac_ext=c
18736+ac_cpp='$CPP $CPPFLAGS'
18737+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18738+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18739+ac_compiler_gnu=$ac_cv_c_compiler_gnu
18740+echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
18741+echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
18742+# On Suns, sometimes $CPP names a directory.
18743+if test -n "$CPP" && test -d "$CPP"; then
18744+ CPP=
18745+fi
18746+if test -z "$CPP"; then
18747+ if test "${ac_cv_prog_CPP+set}" = set; then
18748+ echo $ECHO_N "(cached) $ECHO_C" >&6
18749+else
18750+ # Double quotes because CPP needs to be expanded
18751+ for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
18752+ do
18753+ ac_preproc_ok=false
18754+for ac_c_preproc_warn_flag in '' yes
18755+do
18756+ # Use a header file that comes with gcc, so configuring glibc
18757+ # with a fresh cross-compiler works.
18758+ # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18759+ # <limits.h> exists even on freestanding compilers.
18760+ # On the NeXT, cc -E runs the code through the compiler's parser,
18761+ # not just through cpp. "Syntax error" is here to catch this case.
18762+ cat >conftest.$ac_ext <<_ACEOF
18763+/* confdefs.h. */
18764+_ACEOF
18765+cat confdefs.h >>conftest.$ac_ext
18766+cat >>conftest.$ac_ext <<_ACEOF
18767+/* end confdefs.h. */
18768+#ifdef __STDC__
18769+# include <limits.h>
18770+#else
18771+# include <assert.h>
18772+#endif
18773+ Syntax error
18774+_ACEOF
18775+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18776+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18777+ ac_status=$?
18778+ grep -v '^ *+' conftest.er1 >conftest.err
18779+ rm -f conftest.er1
18780+ cat conftest.err >&5
18781+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
18782+ (exit $ac_status); } >/dev/null; then
18783+ if test -s conftest.err; then
18784+ ac_cpp_err=$ac_c_preproc_warn_flag
18785+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18786+ else
18787+ ac_cpp_err=
18788+ fi
18789+else
18790+ ac_cpp_err=yes
18791+fi
18792+if test -z "$ac_cpp_err"; then
18793+ :
18794+else
18795+ echo "$as_me: failed program was:" >&5
18796+sed 's/^/| /' conftest.$ac_ext >&5
18797+
18798+ # Broken: fails on valid input.
18799+continue
18800+fi
18801+rm -f conftest.err conftest.$ac_ext
18802+
18803+ # OK, works on sane cases. Now check whether non-existent headers
18804+ # can be detected and how.
18805+ cat >conftest.$ac_ext <<_ACEOF
18806+/* confdefs.h. */
18807+_ACEOF
18808+cat confdefs.h >>conftest.$ac_ext
18809+cat >>conftest.$ac_ext <<_ACEOF
18810+/* end confdefs.h. */
18811+#include <ac_nonexistent.h>
18812+_ACEOF
18813+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18814+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18815+ ac_status=$?
18816+ grep -v '^ *+' conftest.er1 >conftest.err
18817+ rm -f conftest.er1
18818+ cat conftest.err >&5
18819+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
18820+ (exit $ac_status); } >/dev/null; then
18821+ if test -s conftest.err; then
18822+ ac_cpp_err=$ac_c_preproc_warn_flag
18823+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18824+ else
18825+ ac_cpp_err=
18826+ fi
18827+else
18828+ ac_cpp_err=yes
18829+fi
18830+if test -z "$ac_cpp_err"; then
18831+ # Broken: success on invalid input.
18832+continue
18833+else
18834+ echo "$as_me: failed program was:" >&5
18835+sed 's/^/| /' conftest.$ac_ext >&5
18836+
18837+ # Passes both tests.
18838+ac_preproc_ok=:
18839+break
18840+fi
18841+rm -f conftest.err conftest.$ac_ext
18842+
18843+done
18844+# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18845+rm -f conftest.err conftest.$ac_ext
18846+if $ac_preproc_ok; then
18847+ break
18848+fi
18849+
18850+ done
18851+ ac_cv_prog_CPP=$CPP
18852+
18853+fi
18854+ CPP=$ac_cv_prog_CPP
18855+else
18856+ ac_cv_prog_CPP=$CPP
18857+fi
18858+echo "$as_me:$LINENO: result: $CPP" >&5
18859+echo "${ECHO_T}$CPP" >&6
18860+ac_preproc_ok=false
18861+for ac_c_preproc_warn_flag in '' yes
18862+do
18863+ # Use a header file that comes with gcc, so configuring glibc
18864+ # with a fresh cross-compiler works.
18865+ # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18866+ # <limits.h> exists even on freestanding compilers.
18867+ # On the NeXT, cc -E runs the code through the compiler's parser,
18868+ # not just through cpp. "Syntax error" is here to catch this case.
18869+ cat >conftest.$ac_ext <<_ACEOF
18870+/* confdefs.h. */
18871+_ACEOF
18872+cat confdefs.h >>conftest.$ac_ext
18873+cat >>conftest.$ac_ext <<_ACEOF
18874+/* end confdefs.h. */
18875+#ifdef __STDC__
18876+# include <limits.h>
18877+#else
18878+# include <assert.h>
18879+#endif
18880+ Syntax error
18881+_ACEOF
18882+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18883+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18884+ ac_status=$?
18885+ grep -v '^ *+' conftest.er1 >conftest.err
18886+ rm -f conftest.er1
18887+ cat conftest.err >&5
18888+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
18889+ (exit $ac_status); } >/dev/null; then
18890+ if test -s conftest.err; then
18891+ ac_cpp_err=$ac_c_preproc_warn_flag
18892+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18893+ else
18894+ ac_cpp_err=
18895+ fi
18896+else
18897+ ac_cpp_err=yes
18898+fi
18899+if test -z "$ac_cpp_err"; then
18900+ :
18901+else
18902+ echo "$as_me: failed program was:" >&5
18903+sed 's/^/| /' conftest.$ac_ext >&5
18904+
18905+ # Broken: fails on valid input.
18906+continue
18907+fi
18908+rm -f conftest.err conftest.$ac_ext
18909+
18910+ # OK, works on sane cases. Now check whether non-existent headers
18911+ # can be detected and how.
18912+ cat >conftest.$ac_ext <<_ACEOF
18913+/* confdefs.h. */
18914+_ACEOF
18915+cat confdefs.h >>conftest.$ac_ext
18916+cat >>conftest.$ac_ext <<_ACEOF
18917+/* end confdefs.h. */
18918+#include <ac_nonexistent.h>
18919+_ACEOF
18920+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18921+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18922+ ac_status=$?
18923+ grep -v '^ *+' conftest.er1 >conftest.err
18924+ rm -f conftest.er1
18925+ cat conftest.err >&5
18926+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
18927+ (exit $ac_status); } >/dev/null; then
18928+ if test -s conftest.err; then
18929+ ac_cpp_err=$ac_c_preproc_warn_flag
18930+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18931+ else
18932+ ac_cpp_err=
18933+ fi
18934+else
18935+ ac_cpp_err=yes
18936+fi
18937+if test -z "$ac_cpp_err"; then
18938+ # Broken: success on invalid input.
18939+continue
18940+else
18941+ echo "$as_me: failed program was:" >&5
18942+sed 's/^/| /' conftest.$ac_ext >&5
18943+
18944+ # Passes both tests.
18945+ac_preproc_ok=:
18946+break
18947+fi
18948+rm -f conftest.err conftest.$ac_ext
18949+
18950+done
18951+# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18952+rm -f conftest.err conftest.$ac_ext
18953+if $ac_preproc_ok; then
18954+ :
18955+else
18956+ { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
18957+See \`config.log' for more details." >&5
18958+echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
18959+See \`config.log' for more details." >&2;}
18960+ { (exit 1); exit 1; }; }
18961+fi
18962+
18963+ac_ext=c
18964+ac_cpp='$CPP $CPPFLAGS'
18965+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18966+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18967+ac_compiler_gnu=$ac_cv_c_compiler_gnu
18968+
18969+
18970+echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18971+echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18972+if test "${ac_cv_header_stdc+set}" = set; then
18973+ echo $ECHO_N "(cached) $ECHO_C" >&6
18974+else
18975+ cat >conftest.$ac_ext <<_ACEOF
18976+/* confdefs.h. */
18977+_ACEOF
18978+cat confdefs.h >>conftest.$ac_ext
18979+cat >>conftest.$ac_ext <<_ACEOF
18980+/* end confdefs.h. */
18981+#include <stdlib.h>
18982+#include <stdarg.h>
18983+#include <string.h>
18984+#include <float.h>
18985+
18986+int
18987+main ()
18988+{
18989+
18990+ ;
18991+ return 0;
18992+}
18993+_ACEOF
18994+rm -f conftest.$ac_objext
18995+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18996+ (eval $ac_compile) 2>conftest.er1
18997+ ac_status=$?
18998+ grep -v '^ *+' conftest.er1 >conftest.err
18999+ rm -f conftest.er1
19000+ cat conftest.err >&5
19001+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
19002+ (exit $ac_status); } &&
19003+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19004+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19005+ (eval $ac_try) 2>&5
19006+ ac_status=$?
19007+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
19008+ (exit $ac_status); }; } &&
19009+ { ac_try='test -s conftest.$ac_objext'
19010+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19011+ (eval $ac_try) 2>&5
19012+ ac_status=$?
19013+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
19014+ (exit $ac_status); }; }; then
19015+ ac_cv_header_stdc=yes
19016+else
19017+ echo "$as_me: failed program was:" >&5
19018+sed 's/^/| /' conftest.$ac_ext >&5
19019+
19020+ac_cv_header_stdc=no
19021+fi
19022+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19023+
19024+if test $ac_cv_header_stdc = yes; then
19025+ # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19026+ cat >conftest.$ac_ext <<_ACEOF
19027+/* confdefs.h. */
19028+_ACEOF
19029+cat confdefs.h >>conftest.$ac_ext
19030+cat >>conftest.$ac_ext <<_ACEOF
19031+/* end confdefs.h. */
19032+#include <string.h>
19033+
19034+_ACEOF
19035+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19036+ $EGREP "memchr" >/dev/null 2>&1; then
19037+ :
19038+else
19039+ ac_cv_header_stdc=no
19040+fi
19041+rm -f conftest*
19042+
19043+fi
19044+
19045+if test $ac_cv_header_stdc = yes; then
19046+ # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19047+ cat >conftest.$ac_ext <<_ACEOF
19048+/* confdefs.h. */
19049+_ACEOF
19050+cat confdefs.h >>conftest.$ac_ext
19051+cat >>conftest.$ac_ext <<_ACEOF
19052+/* end confdefs.h. */
19053+#include <stdlib.h>
19054+
19055+_ACEOF
19056+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19057+ $EGREP "free" >/dev/null 2>&1; then
19058+ :
19059+else
19060+ ac_cv_header_stdc=no
19061+fi
19062+rm -f conftest*
19063+
19064+fi
19065+
19066+if test $ac_cv_header_stdc = yes; then
19067+ # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19068+ if test "$cross_compiling" = yes; then
19069+ :
19070+else
19071+ cat >conftest.$ac_ext <<_ACEOF
19072+/* confdefs.h. */
19073+_ACEOF
19074+cat confdefs.h >>conftest.$ac_ext
19075+cat >>conftest.$ac_ext <<_ACEOF
19076+/* end confdefs.h. */
19077+#include <ctype.h>
19078+#if ((' ' & 0x0FF) == 0x020)
19079+# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19080+# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19081+#else
19082+# define ISLOWER(c) \
19083+ (('a' <= (c) && (c) <= 'i') \
19084+ || ('j' <= (c) && (c) <= 'r') \
19085+ || ('s' <= (c) && (c) <= 'z'))
19086+# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19087+#endif
19088+
19089+#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19090+int
19091+main ()
19092+{
19093+ int i;
19094+ for (i = 0; i < 256; i++)
19095+ if (XOR (islower (i), ISLOWER (i))
19096+ || toupper (i) != TOUPPER (i))
19097+ exit(2);
19098+ exit (0);
19099+}
19100+_ACEOF
19101+rm -f conftest$ac_exeext
19102+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19103+ (eval $ac_link) 2>&5
19104+ ac_status=$?
19105+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
19106+ (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19107+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19108+ (eval $ac_try) 2>&5
19109+ ac_status=$?
19110+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
19111+ (exit $ac_status); }; }; then
19112+ :
19113+else
19114+ echo "$as_me: program exited with status $ac_status" >&5
19115+echo "$as_me: failed program was:" >&5
19116+sed 's/^/| /' conftest.$ac_ext >&5
19117+
19118+( exit $ac_status )
19119+ac_cv_header_stdc=no
19120+fi
19121+rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19122+fi
19123+fi
19124+fi
19125+echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19126+echo "${ECHO_T}$ac_cv_header_stdc" >&6
19127+if test $ac_cv_header_stdc = yes; then
19128+
19129+cat >>confdefs.h <<\_ACEOF
19130+#define STDC_HEADERS 1
19131+_ACEOF
19132+
19133+fi
19134+
19135+# On IRIX 5.3, sys/types and inttypes.h are conflicting.
19136+
19137+
19138+
19139+
19140+
19141+
19142+
19143+
19144+
19145+for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
19146+ inttypes.h stdint.h unistd.h
19147+do
19148+as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19149+echo "$as_me:$LINENO: checking for $ac_header" >&5
19150+echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19151+if eval "test \"\${$as_ac_Header+set}\" = set"; then
19152+ echo $ECHO_N "(cached) $ECHO_C" >&6
19153+else
19154+ cat >conftest.$ac_ext <<_ACEOF
19155+/* confdefs.h. */
19156+_ACEOF
19157+cat confdefs.h >>conftest.$ac_ext
19158+cat >>conftest.$ac_ext <<_ACEOF
19159+/* end confdefs.h. */
19160+$ac_includes_default
19161+
19162+#include <$ac_header>
19163+_ACEOF
19164+rm -f conftest.$ac_objext
19165+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19166+ (eval $ac_compile) 2>conftest.er1
19167+ ac_status=$?
19168+ grep -v '^ *+' conftest.er1 >conftest.err
19169+ rm -f conftest.er1
19170+ cat conftest.err >&5
19171+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
19172+ (exit $ac_status); } &&
19173+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19174+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19175+ (eval $ac_try) 2>&5
19176+ ac_status=$?
19177+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
19178+ (exit $ac_status); }; } &&
19179+ { ac_try='test -s conftest.$ac_objext'
19180+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19181+ (eval $ac_try) 2>&5
19182+ ac_status=$?
19183+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
19184+ (exit $ac_status); }; }; then
19185+ eval "$as_ac_Header=yes"
19186+else
19187+ echo "$as_me: failed program was:" >&5
19188+sed 's/^/| /' conftest.$ac_ext >&5
19189+
19190+eval "$as_ac_Header=no"
19191+fi
19192+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19193+fi
19194+echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19195+echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19196+if test `eval echo '${'$as_ac_Header'}'` = yes; then
19197+ cat >>confdefs.h <<_ACEOF
19198+#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19199+_ACEOF
19200+
19201+fi
19202+
19203+done
19204+
19205+
19206+
19207+for ac_header in dlfcn.h
19208+do
19209+as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19210+if eval "test \"\${$as_ac_Header+set}\" = set"; then
19211+ echo "$as_me:$LINENO: checking for $ac_header" >&5
19212+echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19213+if eval "test \"\${$as_ac_Header+set}\" = set"; then
19214+ echo $ECHO_N "(cached) $ECHO_C" >&6
19215+fi
19216+echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19217+echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19218+else
19219+ # Is the header compilable?
19220+echo "$as_me:$LINENO: checking $ac_header usability" >&5
19221+echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19222+cat >conftest.$ac_ext <<_ACEOF
19223+/* confdefs.h. */
19224+_ACEOF
19225+cat confdefs.h >>conftest.$ac_ext
19226+cat >>conftest.$ac_ext <<_ACEOF
19227+/* end confdefs.h. */
19228+$ac_includes_default
19229+#include <$ac_header>
19230+_ACEOF
19231+rm -f conftest.$ac_objext
19232+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19233+ (eval $ac_compile) 2>conftest.er1
19234+ ac_status=$?
19235+ grep -v '^ *+' conftest.er1 >conftest.err
19236+ rm -f conftest.er1
19237+ cat conftest.err >&5
19238+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
19239+ (exit $ac_status); } &&
19240+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19241+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19242+ (eval $ac_try) 2>&5
19243+ ac_status=$?
19244+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
19245+ (exit $ac_status); }; } &&
19246+ { ac_try='test -s conftest.$ac_objext'
19247+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19248+ (eval $ac_try) 2>&5
19249+ ac_status=$?
19250+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
19251+ (exit $ac_status); }; }; then
19252+ ac_header_compiler=yes
19253+else
19254+ echo "$as_me: failed program was:" >&5
19255+sed 's/^/| /' conftest.$ac_ext >&5
19256+
19257+ac_header_compiler=no
19258+fi
19259+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19260+echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19261+echo "${ECHO_T}$ac_header_compiler" >&6
19262+
19263+# Is the header present?
19264+echo "$as_me:$LINENO: checking $ac_header presence" >&5
19265+echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19266+cat >conftest.$ac_ext <<_ACEOF
19267+/* confdefs.h. */
19268+_ACEOF
19269+cat confdefs.h >>conftest.$ac_ext
19270+cat >>conftest.$ac_ext <<_ACEOF
19271+/* end confdefs.h. */
19272+#include <$ac_header>
19273+_ACEOF
19274+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19275+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19276+ ac_status=$?
19277+ grep -v '^ *+' conftest.er1 >conftest.err
19278+ rm -f conftest.er1
19279+ cat conftest.err >&5
19280+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
19281+ (exit $ac_status); } >/dev/null; then
19282+ if test -s conftest.err; then
19283+ ac_cpp_err=$ac_c_preproc_warn_flag
19284+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19285+ else
19286+ ac_cpp_err=
19287+ fi
19288+else
19289+ ac_cpp_err=yes
19290+fi
19291+if test -z "$ac_cpp_err"; then
19292+ ac_header_preproc=yes
19293+else
19294+ echo "$as_me: failed program was:" >&5
19295+sed 's/^/| /' conftest.$ac_ext >&5
19296+
19297+ ac_header_preproc=no
19298+fi
19299+rm -f conftest.err conftest.$ac_ext
19300+echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19301+echo "${ECHO_T}$ac_header_preproc" >&6
19302+
19303+# So? What about this header?
19304+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19305+ yes:no: )
19306+ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19307+echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19308+ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19309+echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19310+ ac_header_preproc=yes
19311+ ;;
19312+ no:yes:* )
19313+ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19314+echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19315+ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19316+echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19317+ { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19318+echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19319+ { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19320+echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19321+ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19322+echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19323+ { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19324+echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19325+ (
19326+ cat <<\_ASBOX
19327+## ------------------------------------------ ##
19328+## Report this to the AC_PACKAGE_NAME lists. ##
19329+## ------------------------------------------ ##
19330+_ASBOX
19331+ ) |
19332+ sed "s/^/$as_me: WARNING: /" >&2
19333+ ;;
19334+esac
19335+echo "$as_me:$LINENO: checking for $ac_header" >&5
19336+echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19337+if eval "test \"\${$as_ac_Header+set}\" = set"; then
19338+ echo $ECHO_N "(cached) $ECHO_C" >&6
19339+else
19340+ eval "$as_ac_Header=\$ac_header_preproc"
19341+fi
19342+echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19343+echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19344+
19345+fi
19346+if test `eval echo '${'$as_ac_Header'}'` = yes; then
19347+ cat >>confdefs.h <<_ACEOF
19348+#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19349+_ACEOF
19350+
19351+fi
19352+
19353+done
19354+
19355+ac_ext=cc
19356+ac_cpp='$CXXCPP $CPPFLAGS'
19357+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19358+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19359+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19360+if test -n "$ac_tool_prefix"; then
19361+ for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
19362+ do
19363+ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19364+set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19365+echo "$as_me:$LINENO: checking for $ac_word" >&5
19366+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19367+if test "${ac_cv_prog_CXX+set}" = set; then
19368+ echo $ECHO_N "(cached) $ECHO_C" >&6
19369+else
19370+ if test -n "$CXX"; then
19371+ ac_cv_prog_CXX="$CXX" # Let the user override the test.
19372+else
19373+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19374+for as_dir in $PATH
19375+do
19376+ IFS=$as_save_IFS
19377+ test -z "$as_dir" && as_dir=.
19378+ for ac_exec_ext in '' $ac_executable_extensions; do
19379+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19380+ ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
19381+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19382+ break 2
19383+ fi
19384+done
19385+done
19386+
19387+fi
19388+fi
19389+CXX=$ac_cv_prog_CXX
19390+if test -n "$CXX"; then
19391+ echo "$as_me:$LINENO: result: $CXX" >&5
19392+echo "${ECHO_T}$CXX" >&6
19393+else
19394+ echo "$as_me:$LINENO: result: no" >&5
19395+echo "${ECHO_T}no" >&6
19396+fi
19397+
19398+ test -n "$CXX" && break
19399+ done
19400+fi
19401+if test -z "$CXX"; then
19402+ ac_ct_CXX=$CXX
19403+ for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
19404+do
19405+ # Extract the first word of "$ac_prog", so it can be a program name with args.
19406+set dummy $ac_prog; ac_word=$2
19407+echo "$as_me:$LINENO: checking for $ac_word" >&5
19408+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19409+if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
19410+ echo $ECHO_N "(cached) $ECHO_C" >&6
19411+else
19412+ if test -n "$ac_ct_CXX"; then
19413+ ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
19414+else
19415+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19416+for as_dir in $PATH
19417+do
19418+ IFS=$as_save_IFS
19419+ test -z "$as_dir" && as_dir=.
19420+ for ac_exec_ext in '' $ac_executable_extensions; do
19421+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19422+ ac_cv_prog_ac_ct_CXX="$ac_prog"
19423+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19424+ break 2
19425+ fi
19426+done
19427+done
19428+
19429+fi
19430+fi
19431+ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
19432+if test -n "$ac_ct_CXX"; then
19433+ echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
19434+echo "${ECHO_T}$ac_ct_CXX" >&6
19435+else
19436+ echo "$as_me:$LINENO: result: no" >&5
19437+echo "${ECHO_T}no" >&6
19438+fi
19439+
19440+ test -n "$ac_ct_CXX" && break
19441+done
19442+test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
19443+
19444+ CXX=$ac_ct_CXX
19445+fi
19446+
19447+
19448+# Provide some information about the compiler.
19449+echo "$as_me:$LINENO:" \
19450+ "checking for C++ compiler version" >&5
19451+ac_compiler=`set X $ac_compile; echo $2`
19452+{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
19453+ (eval $ac_compiler --version </dev/null >&5) 2>&5
19454+ ac_status=$?
19455+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
19456+ (exit $ac_status); }
19457+{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
19458+ (eval $ac_compiler -v </dev/null >&5) 2>&5
19459+ ac_status=$?
19460+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
19461+ (exit $ac_status); }
19462+{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
19463+ (eval $ac_compiler -V </dev/null >&5) 2>&5
19464+ ac_status=$?
19465+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
19466+ (exit $ac_status); }
19467+
19468+echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
19469+echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
19470+if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
19471+ echo $ECHO_N "(cached) $ECHO_C" >&6
19472+else
19473+ cat >conftest.$ac_ext <<_ACEOF
19474+/* confdefs.h. */
19475+_ACEOF
19476+cat confdefs.h >>conftest.$ac_ext
19477+cat >>conftest.$ac_ext <<_ACEOF
19478+/* end confdefs.h. */
19479+
19480+int
19481+main ()
19482+{
19483+#ifndef __GNUC__
19484+ choke me
19485+#endif
19486+
19487+ ;
19488+ return 0;
19489+}
19490+_ACEOF
19491+rm -f conftest.$ac_objext
19492+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19493+ (eval $ac_compile) 2>conftest.er1
19494+ ac_status=$?
19495+ grep -v '^ *+' conftest.er1 >conftest.err
19496+ rm -f conftest.er1
19497+ cat conftest.err >&5
19498+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
19499+ (exit $ac_status); } &&
19500+ { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19501+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19502+ (eval $ac_try) 2>&5
19503+ ac_status=$?
19504+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
19505+ (exit $ac_status); }; } &&
19506+ { ac_try='test -s conftest.$ac_objext'
19507+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19508+ (eval $ac_try) 2>&5
19509+ ac_status=$?
19510+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
19511+ (exit $ac_status); }; }; then
19512+ ac_compiler_gnu=yes
19513+else
19514+ echo "$as_me: failed program was:" >&5
19515+sed 's/^/| /' conftest.$ac_ext >&5
19516+
19517+ac_compiler_gnu=no
19518+fi
19519+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19520+ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
19521+
19522+fi
19523+echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
19524+echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
19525+GXX=`test $ac_compiler_gnu = yes && echo yes`
19526+ac_test_CXXFLAGS=${CXXFLAGS+set}
19527+ac_save_CXXFLAGS=$CXXFLAGS
19528+CXXFLAGS="-g"
19529+echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
19530+echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
19531+if test "${ac_cv_prog_cxx_g+set}" = set; then
19532+ echo $ECHO_N "(cached) $ECHO_C" >&6
19533+else
19534+ cat >conftest.$ac_ext <<_ACEOF
19535+/* confdefs.h. */
19536+_ACEOF
19537+cat confdefs.h >>conftest.$ac_ext
19538+cat >>conftest.$ac_ext <<_ACEOF
19539+/* end confdefs.h. */
19540+
19541+int
19542+main ()
19543+{
19544+
19545+ ;
19546+ return 0;
19547+}
19548+_ACEOF
19549+rm -f conftest.$ac_objext
19550+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19551+ (eval $ac_compile) 2>conftest.er1
19552+ ac_status=$?
19553+ grep -v '^ *+' conftest.er1 >conftest.err
19554+ rm -f conftest.er1
19555+ cat conftest.err >&5
19556+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
19557+ (exit $ac_status); } &&
19558+ { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19559+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19560+ (eval $ac_try) 2>&5
19561+ ac_status=$?
19562+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
19563+ (exit $ac_status); }; } &&
19564+ { ac_try='test -s conftest.$ac_objext'
19565+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19566+ (eval $ac_try) 2>&5
19567+ ac_status=$?
19568+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
19569+ (exit $ac_status); }; }; then
19570+ ac_cv_prog_cxx_g=yes
19571+else
19572+ echo "$as_me: failed program was:" >&5
19573+sed 's/^/| /' conftest.$ac_ext >&5
19574+
19575+ac_cv_prog_cxx_g=no
19576+fi
19577+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19578+fi
19579+echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
19580+echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
19581+if test "$ac_test_CXXFLAGS" = set; then
19582+ CXXFLAGS=$ac_save_CXXFLAGS
19583+elif test $ac_cv_prog_cxx_g = yes; then
19584+ if test "$GXX" = yes; then
19585+ CXXFLAGS="-g -O2"
19586+ else
19587+ CXXFLAGS="-g"
19588+ fi
19589+else
19590+ if test "$GXX" = yes; then
19591+ CXXFLAGS="-O2"
19592+ else
19593+ CXXFLAGS=
19594+ fi
19595+fi
19596+for ac_declaration in \
19597+ '' \
19598+ 'extern "C" void std::exit (int) throw (); using std::exit;' \
19599+ 'extern "C" void std::exit (int); using std::exit;' \
19600+ 'extern "C" void exit (int) throw ();' \
19601+ 'extern "C" void exit (int);' \
19602+ 'void exit (int);'
19603+do
19604+ cat >conftest.$ac_ext <<_ACEOF
19605+/* confdefs.h. */
19606+_ACEOF
19607+cat confdefs.h >>conftest.$ac_ext
19608+cat >>conftest.$ac_ext <<_ACEOF
19609+/* end confdefs.h. */
19610+$ac_declaration
19611+#include <stdlib.h>
19612+int
19613+main ()
19614+{
19615+exit (42);
19616+ ;
19617+ return 0;
19618+}
19619+_ACEOF
19620+rm -f conftest.$ac_objext
19621+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19622+ (eval $ac_compile) 2>conftest.er1
19623+ ac_status=$?
19624+ grep -v '^ *+' conftest.er1 >conftest.err
19625+ rm -f conftest.er1
19626+ cat conftest.err >&5
19627+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
19628+ (exit $ac_status); } &&
19629+ { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19630+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19631+ (eval $ac_try) 2>&5
19632+ ac_status=$?
19633+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
19634+ (exit $ac_status); }; } &&
19635+ { ac_try='test -s conftest.$ac_objext'
19636+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19637+ (eval $ac_try) 2>&5
19638+ ac_status=$?
19639+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
19640+ (exit $ac_status); }; }; then
19641+ :
19642+else
19643+ echo "$as_me: failed program was:" >&5
19644+sed 's/^/| /' conftest.$ac_ext >&5
19645+
19646+continue
19647+fi
19648+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19649+ cat >conftest.$ac_ext <<_ACEOF
19650+/* confdefs.h. */
19651+_ACEOF
19652+cat confdefs.h >>conftest.$ac_ext
19653+cat >>conftest.$ac_ext <<_ACEOF
19654+/* end confdefs.h. */
19655+$ac_declaration
19656+int
19657+main ()
19658+{
19659+exit (42);
19660+ ;
19661+ return 0;
19662+}
19663+_ACEOF
19664+rm -f conftest.$ac_objext
19665+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19666+ (eval $ac_compile) 2>conftest.er1
19667+ ac_status=$?
19668+ grep -v '^ *+' conftest.er1 >conftest.err
19669+ rm -f conftest.er1
19670+ cat conftest.err >&5
19671+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
19672+ (exit $ac_status); } &&
19673+ { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19674+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19675+ (eval $ac_try) 2>&5
19676+ ac_status=$?
19677+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
19678+ (exit $ac_status); }; } &&
19679+ { ac_try='test -s conftest.$ac_objext'
19680+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19681+ (eval $ac_try) 2>&5
19682+ ac_status=$?
19683+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
19684+ (exit $ac_status); }; }; then
19685+ break
19686+else
19687+ echo "$as_me: failed program was:" >&5
19688+sed 's/^/| /' conftest.$ac_ext >&5
19689+
19690+fi
19691+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19692+done
19693+rm -f conftest*
19694+if test -n "$ac_declaration"; then
19695+ echo '#ifdef __cplusplus' >>confdefs.h
19696+ echo $ac_declaration >>confdefs.h
19697+ echo '#endif' >>confdefs.h
19698+fi
19699+
19700+ac_ext=cc
19701+ac_cpp='$CXXCPP $CPPFLAGS'
19702+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19703+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19704+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19705+
19706+depcc="$CXX" am_compiler_list=
19707+
19708+echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19709+echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
19710+if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
19711+ echo $ECHO_N "(cached) $ECHO_C" >&6
19712+else
19713+ if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19714+ # We make a subdir and do the tests there. Otherwise we can end up
19715+ # making bogus files that we don't know about and never remove. For
19716+ # instance it was reported that on HP-UX the gcc test will end up
19717+ # making a dummy file named `D' -- because `-MD' means `put the output
19718+ # in D'.
19719+ mkdir conftest.dir
19720+ # Copy depcomp to subdir because otherwise we won't find it if we're
19721+ # using a relative directory.
19722+ cp "$am_depcomp" conftest.dir
19723+ cd conftest.dir
19724+ # We will build objects and dependencies in a subdirectory because
19725+ # it helps to detect inapplicable dependency modes. For instance
19726+ # both Tru64's cc and ICC support -MD to output dependencies as a
19727+ # side effect of compilation, but ICC will put the dependencies in
19728+ # the current directory while Tru64 will put them in the object
19729+ # directory.
19730+ mkdir sub
19731+
19732+ am_cv_CXX_dependencies_compiler_type=none
19733+ if test "$am_compiler_list" = ""; then
19734+ am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19735+ fi
19736+ for depmode in $am_compiler_list; do
19737+ # Setup a source with many dependencies, because some compilers
19738+ # like to wrap large dependency lists on column 80 (with \), and
19739+ # we should not choose a depcomp mode which is confused by this.
19740+ #
19741+ # We need to recreate these files for each test, as the compiler may
19742+ # overwrite some of them when testing with obscure command lines.
19743+ # This happens at least with the AIX C compiler.
19744+ : > sub/conftest.c
19745+ for i in 1 2 3 4 5 6; do
19746+ echo '#include "conftst'$i'.h"' >> sub/conftest.c
19747+ : > sub/conftst$i.h
19748+ done
19749+ echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19750+
19751+ case $depmode in
19752+ nosideeffect)
19753+ # after this tag, mechanisms are not by side-effect, so they'll
19754+ # only be used when explicitly requested
19755+ if test "x$enable_dependency_tracking" = xyes; then
19756+ continue
19757+ else
19758+ break
19759+ fi
19760+ ;;
19761+ none) break ;;
19762+ esac
19763+ # We check with `-c' and `-o' for the sake of the "dashmstdout"
19764+ # mode. It turns out that the SunPro C++ compiler does not properly
19765+ # handle `-M -o', and we need to detect this.
19766+ if depmode=$depmode \
19767+ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19768+ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19769+ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19770+ >/dev/null 2>conftest.err &&
19771+ grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19772+ grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19773+ ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19774+ # icc doesn't choke on unknown options, it will just issue warnings
19775+ # (even with -Werror). So we grep stderr for any message
19776+ # that says an option was ignored.
19777+ if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
19778+ am_cv_CXX_dependencies_compiler_type=$depmode
19779+ break
19780+ fi
19781+ fi
19782+ done
19783+
19784+ cd ..
19785+ rm -rf conftest.dir
19786+else
19787+ am_cv_CXX_dependencies_compiler_type=none
19788+fi
19789+
19790+fi
19791+echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
19792+echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
19793+CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
19794+
19795+
19796+
19797+if
19798+ test "x$enable_dependency_tracking" != xno \
19799+ && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
19800+ am__fastdepCXX_TRUE=
19801+ am__fastdepCXX_FALSE='#'
19802+else
19803+ am__fastdepCXX_TRUE='#'
19804+ am__fastdepCXX_FALSE=
19805+fi
19806+
19807+
19808+ac_ext=cc
19809+ac_cpp='$CXXCPP $CPPFLAGS'
19810+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19811+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19812+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19813+echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
19814+echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
19815+if test -z "$CXXCPP"; then
19816+ if test "${ac_cv_prog_CXXCPP+set}" = set; then
19817+ echo $ECHO_N "(cached) $ECHO_C" >&6
19818+else
19819+ # Double quotes because CXXCPP needs to be expanded
19820+ for CXXCPP in "$CXX -E" "/lib/cpp"
19821+ do
19822+ ac_preproc_ok=false
19823+for ac_cxx_preproc_warn_flag in '' yes
19824+do
19825+ # Use a header file that comes with gcc, so configuring glibc
19826+ # with a fresh cross-compiler works.
19827+ # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19828+ # <limits.h> exists even on freestanding compilers.
19829+ # On the NeXT, cc -E runs the code through the compiler's parser,
19830+ # not just through cpp. "Syntax error" is here to catch this case.
19831+ cat >conftest.$ac_ext <<_ACEOF
19832+/* confdefs.h. */
19833+_ACEOF
19834+cat confdefs.h >>conftest.$ac_ext
19835+cat >>conftest.$ac_ext <<_ACEOF
19836+/* end confdefs.h. */
19837+#ifdef __STDC__
19838+# include <limits.h>
19839+#else
19840+# include <assert.h>
19841+#endif
19842+ Syntax error
19843+_ACEOF
19844+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19845+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19846+ ac_status=$?
19847+ grep -v '^ *+' conftest.er1 >conftest.err
19848+ rm -f conftest.er1
19849+ cat conftest.err >&5
19850+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
19851+ (exit $ac_status); } >/dev/null; then
19852+ if test -s conftest.err; then
19853+ ac_cpp_err=$ac_cxx_preproc_warn_flag
19854+ ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
19855+ else
19856+ ac_cpp_err=
19857+ fi
19858+else
19859+ ac_cpp_err=yes
19860+fi
19861+if test -z "$ac_cpp_err"; then
19862+ :
19863+else
19864+ echo "$as_me: failed program was:" >&5
19865+sed 's/^/| /' conftest.$ac_ext >&5
19866+
19867+ # Broken: fails on valid input.
19868+continue
19869+fi
19870+rm -f conftest.err conftest.$ac_ext
19871+
19872+ # OK, works on sane cases. Now check whether non-existent headers
19873+ # can be detected and how.
19874+ cat >conftest.$ac_ext <<_ACEOF
19875+/* confdefs.h. */
19876+_ACEOF
19877+cat confdefs.h >>conftest.$ac_ext
19878+cat >>conftest.$ac_ext <<_ACEOF
19879+/* end confdefs.h. */
19880+#include <ac_nonexistent.h>
19881+_ACEOF
19882+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19883+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19884+ ac_status=$?
19885+ grep -v '^ *+' conftest.er1 >conftest.err
19886+ rm -f conftest.er1
19887+ cat conftest.err >&5
19888+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
19889+ (exit $ac_status); } >/dev/null; then
19890+ if test -s conftest.err; then
19891+ ac_cpp_err=$ac_cxx_preproc_warn_flag
19892+ ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
19893+ else
19894+ ac_cpp_err=
19895+ fi
19896+else
19897+ ac_cpp_err=yes
19898+fi
19899+if test -z "$ac_cpp_err"; then
19900+ # Broken: success on invalid input.
19901+continue
19902+else
19903+ echo "$as_me: failed program was:" >&5
19904+sed 's/^/| /' conftest.$ac_ext >&5
19905+
19906+ # Passes both tests.
19907+ac_preproc_ok=:
19908+break
19909+fi
19910+rm -f conftest.err conftest.$ac_ext
19911+
19912+done
19913+# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19914+rm -f conftest.err conftest.$ac_ext
19915+if $ac_preproc_ok; then
19916+ break
19917+fi
19918+
19919+ done
19920+ ac_cv_prog_CXXCPP=$CXXCPP
19921+
19922+fi
19923+ CXXCPP=$ac_cv_prog_CXXCPP
19924+else
19925+ ac_cv_prog_CXXCPP=$CXXCPP
19926+fi
19927+echo "$as_me:$LINENO: result: $CXXCPP" >&5
19928+echo "${ECHO_T}$CXXCPP" >&6
19929+ac_preproc_ok=false
19930+for ac_cxx_preproc_warn_flag in '' yes
19931+do
19932+ # Use a header file that comes with gcc, so configuring glibc
19933+ # with a fresh cross-compiler works.
19934+ # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19935+ # <limits.h> exists even on freestanding compilers.
19936+ # On the NeXT, cc -E runs the code through the compiler's parser,
19937+ # not just through cpp. "Syntax error" is here to catch this case.
19938+ cat >conftest.$ac_ext <<_ACEOF
19939+/* confdefs.h. */
19940+_ACEOF
19941+cat confdefs.h >>conftest.$ac_ext
19942+cat >>conftest.$ac_ext <<_ACEOF
19943+/* end confdefs.h. */
19944+#ifdef __STDC__
19945+# include <limits.h>
19946+#else
19947+# include <assert.h>
19948+#endif
19949+ Syntax error
19950+_ACEOF
19951+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19952+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19953+ ac_status=$?
19954+ grep -v '^ *+' conftest.er1 >conftest.err
19955+ rm -f conftest.er1
19956+ cat conftest.err >&5
19957+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
19958+ (exit $ac_status); } >/dev/null; then
19959+ if test -s conftest.err; then
19960+ ac_cpp_err=$ac_cxx_preproc_warn_flag
19961+ ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
19962+ else
19963+ ac_cpp_err=
19964+ fi
19965+else
19966+ ac_cpp_err=yes
19967+fi
19968+if test -z "$ac_cpp_err"; then
19969+ :
19970+else
19971+ echo "$as_me: failed program was:" >&5
19972+sed 's/^/| /' conftest.$ac_ext >&5
19973+
19974+ # Broken: fails on valid input.
19975+continue
19976+fi
19977+rm -f conftest.err conftest.$ac_ext
19978+
19979+ # OK, works on sane cases. Now check whether non-existent headers
19980+ # can be detected and how.
19981+ cat >conftest.$ac_ext <<_ACEOF
19982+/* confdefs.h. */
19983+_ACEOF
19984+cat confdefs.h >>conftest.$ac_ext
19985+cat >>conftest.$ac_ext <<_ACEOF
19986+/* end confdefs.h. */
19987+#include <ac_nonexistent.h>
19988+_ACEOF
19989+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19990+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19991+ ac_status=$?
19992+ grep -v '^ *+' conftest.er1 >conftest.err
19993+ rm -f conftest.er1
19994+ cat conftest.err >&5
19995+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
19996+ (exit $ac_status); } >/dev/null; then
19997+ if test -s conftest.err; then
19998+ ac_cpp_err=$ac_cxx_preproc_warn_flag
19999+ ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
20000+ else
20001+ ac_cpp_err=
20002+ fi
20003+else
20004+ ac_cpp_err=yes
20005+fi
20006+if test -z "$ac_cpp_err"; then
20007+ # Broken: success on invalid input.
20008+continue
20009+else
20010+ echo "$as_me: failed program was:" >&5
20011+sed 's/^/| /' conftest.$ac_ext >&5
20012+
20013+ # Passes both tests.
20014+ac_preproc_ok=:
20015+break
20016+fi
20017+rm -f conftest.err conftest.$ac_ext
20018+
20019+done
20020+# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20021+rm -f conftest.err conftest.$ac_ext
20022+if $ac_preproc_ok; then
20023+ :
20024+else
20025+ { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
20026+See \`config.log' for more details." >&5
20027+echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
20028+See \`config.log' for more details." >&2;}
20029+ { (exit 1); exit 1; }; }
20030+fi
20031+
20032+ac_ext=cc
20033+ac_cpp='$CXXCPP $CPPFLAGS'
20034+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20035+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20036+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20037+
20038+
20039+ac_ext=f
20040+ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
20041+ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20042+ac_compiler_gnu=$ac_cv_f77_compiler_gnu
20043+if test -n "$ac_tool_prefix"; then
20044+ for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
20045+ do
20046+ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20047+set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20048+echo "$as_me:$LINENO: checking for $ac_word" >&5
20049+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20050+if test "${ac_cv_prog_F77+set}" = set; then
20051+ echo $ECHO_N "(cached) $ECHO_C" >&6
20052+else
20053+ if test -n "$F77"; then
20054+ ac_cv_prog_F77="$F77" # Let the user override the test.
20055+else
20056+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20057+for as_dir in $PATH
20058+do
20059+ IFS=$as_save_IFS
20060+ test -z "$as_dir" && as_dir=.
20061+ for ac_exec_ext in '' $ac_executable_extensions; do
20062+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20063+ ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
20064+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20065+ break 2
20066+ fi
20067+done
20068+done
20069+
20070+fi
20071+fi
20072+F77=$ac_cv_prog_F77
20073+if test -n "$F77"; then
20074+ echo "$as_me:$LINENO: result: $F77" >&5
20075+echo "${ECHO_T}$F77" >&6
20076+else
20077+ echo "$as_me:$LINENO: result: no" >&5
20078+echo "${ECHO_T}no" >&6
20079+fi
20080+
20081+ test -n "$F77" && break
20082+ done
20083+fi
20084+if test -z "$F77"; then
20085+ ac_ct_F77=$F77
20086+ for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
20087+do
20088+ # Extract the first word of "$ac_prog", so it can be a program name with args.
20089+set dummy $ac_prog; ac_word=$2
20090+echo "$as_me:$LINENO: checking for $ac_word" >&5
20091+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20092+if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
20093+ echo $ECHO_N "(cached) $ECHO_C" >&6
20094+else
20095+ if test -n "$ac_ct_F77"; then
20096+ ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
20097+else
20098+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20099+for as_dir in $PATH
20100+do
20101+ IFS=$as_save_IFS
20102+ test -z "$as_dir" && as_dir=.
20103+ for ac_exec_ext in '' $ac_executable_extensions; do
20104+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20105+ ac_cv_prog_ac_ct_F77="$ac_prog"
20106+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20107+ break 2
20108+ fi
20109+done
20110+done
20111+
20112+fi
20113+fi
20114+ac_ct_F77=$ac_cv_prog_ac_ct_F77
20115+if test -n "$ac_ct_F77"; then
20116+ echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
20117+echo "${ECHO_T}$ac_ct_F77" >&6
20118+else
20119+ echo "$as_me:$LINENO: result: no" >&5
20120+echo "${ECHO_T}no" >&6
20121+fi
20122+
20123+ test -n "$ac_ct_F77" && break
20124+done
20125+
20126+ F77=$ac_ct_F77
20127+fi
20128+
20129+
20130+# Provide some information about the compiler.
20131+echo "$as_me:5165:" \
20132+ "checking for Fortran 77 compiler version" >&5
20133+ac_compiler=`set X $ac_compile; echo $2`
20134+{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
20135+ (eval $ac_compiler --version </dev/null >&5) 2>&5
20136+ ac_status=$?
20137+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
20138+ (exit $ac_status); }
20139+{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
20140+ (eval $ac_compiler -v </dev/null >&5) 2>&5
20141+ ac_status=$?
20142+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
20143+ (exit $ac_status); }
20144+{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
20145+ (eval $ac_compiler -V </dev/null >&5) 2>&5
20146+ ac_status=$?
20147+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
20148+ (exit $ac_status); }
20149+rm -f a.out
20150+
20151+# If we don't use `.F' as extension, the preprocessor is not run on the
20152+# input file. (Note that this only needs to work for GNU compilers.)
20153+ac_save_ext=$ac_ext
20154+ac_ext=F
20155+echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
20156+echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
20157+if test "${ac_cv_f77_compiler_gnu+set}" = set; then
20158+ echo $ECHO_N "(cached) $ECHO_C" >&6
20159+else
20160+ cat >conftest.$ac_ext <<_ACEOF
20161+ program main
20162+#ifndef __GNUC__
20163+ choke me
20164+#endif
20165+
20166+ end
20167+_ACEOF
20168+rm -f conftest.$ac_objext
20169+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20170+ (eval $ac_compile) 2>conftest.er1
20171+ ac_status=$?
20172+ grep -v '^ *+' conftest.er1 >conftest.err
20173+ rm -f conftest.er1
20174+ cat conftest.err >&5
20175+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
20176+ (exit $ac_status); } &&
20177+ { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
20178+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20179+ (eval $ac_try) 2>&5
20180+ ac_status=$?
20181+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
20182+ (exit $ac_status); }; } &&
20183+ { ac_try='test -s conftest.$ac_objext'
20184+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20185+ (eval $ac_try) 2>&5
20186+ ac_status=$?
20187+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
20188+ (exit $ac_status); }; }; then
20189+ ac_compiler_gnu=yes
20190+else
20191+ echo "$as_me: failed program was:" >&5
20192+sed 's/^/| /' conftest.$ac_ext >&5
20193+
20194+ac_compiler_gnu=no
20195+fi
20196+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20197+ac_cv_f77_compiler_gnu=$ac_compiler_gnu
20198+
20199+fi
20200+echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
20201+echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
20202+ac_ext=$ac_save_ext
20203+ac_test_FFLAGS=${FFLAGS+set}
20204+ac_save_FFLAGS=$FFLAGS
20205+FFLAGS=
20206+echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
20207+echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
20208+if test "${ac_cv_prog_f77_g+set}" = set; then
20209+ echo $ECHO_N "(cached) $ECHO_C" >&6
20210+else
20211+ FFLAGS=-g
20212+cat >conftest.$ac_ext <<_ACEOF
20213+ program main
20214+
20215+ end
20216+_ACEOF
20217+rm -f conftest.$ac_objext
20218+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20219+ (eval $ac_compile) 2>conftest.er1
20220+ ac_status=$?
20221+ grep -v '^ *+' conftest.er1 >conftest.err
20222+ rm -f conftest.er1
20223+ cat conftest.err >&5
20224+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
20225+ (exit $ac_status); } &&
20226+ { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
20227+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20228+ (eval $ac_try) 2>&5
20229+ ac_status=$?
20230+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
20231+ (exit $ac_status); }; } &&
20232+ { ac_try='test -s conftest.$ac_objext'
20233+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20234+ (eval $ac_try) 2>&5
20235+ ac_status=$?
20236+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
20237+ (exit $ac_status); }; }; then
20238+ ac_cv_prog_f77_g=yes
20239+else
20240+ echo "$as_me: failed program was:" >&5
20241+sed 's/^/| /' conftest.$ac_ext >&5
20242+
20243+ac_cv_prog_f77_g=no
20244+fi
20245+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20246+
20247+fi
20248+echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
20249+echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
20250+if test "$ac_test_FFLAGS" = set; then
20251+ FFLAGS=$ac_save_FFLAGS
20252+elif test $ac_cv_prog_f77_g = yes; then
20253+ if test "x$ac_cv_f77_compiler_gnu" = xyes; then
20254+ FFLAGS="-g -O2"
20255+ else
20256+ FFLAGS="-g"
20257+ fi
20258+else
20259+ if test "x$ac_cv_f77_compiler_gnu" = xyes; then
20260+ FFLAGS="-O2"
20261+ else
20262+ FFLAGS=
20263+ fi
20264+fi
20265+
20266+G77=`test $ac_compiler_gnu = yes && echo yes`
20267+ac_ext=c
20268+ac_cpp='$CPP $CPPFLAGS'
20269+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20270+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20271+ac_compiler_gnu=$ac_cv_c_compiler_gnu
20272+
20273+
20274+
20275+# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
20276+
20277+# find the maximum length of command line arguments
20278+echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
20279+echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
20280+if test "${lt_cv_sys_max_cmd_len+set}" = set; then
20281+ echo $ECHO_N "(cached) $ECHO_C" >&6
20282+else
20283+ i=0
20284+ teststring="ABCD"
20285+
20286+ case $build_os in
20287+ msdosdjgpp*)
20288+ # On DJGPP, this test can blow up pretty badly due to problems in libc
20289+ # (any single argument exceeding 2000 bytes causes a buffer overrun
20290+ # during glob expansion). Even if it were fixed, the result of this
20291+ # check would be larger than it should be.
20292+ lt_cv_sys_max_cmd_len=12288; # 12K is about right
20293+ ;;
20294+
20295+ gnu*)
20296+ # Under GNU Hurd, this test is not required because there is
20297+ # no limit to the length of command line arguments.
20298+ # Libtool will interpret -1 as no limit whatsoever
20299+ lt_cv_sys_max_cmd_len=-1;
20300+ ;;
20301+
20302+ cygwin* | mingw*)
20303+ # On Win9x/ME, this test blows up -- it succeeds, but takes
20304+ # about 5 minutes as the teststring grows exponentially.
20305+ # Worse, since 9x/ME are not pre-emptively multitasking,
20306+ # you end up with a "frozen" computer, even though with patience
20307+ # the test eventually succeeds (with a max line length of 256k).
20308+ # Instead, let's just punt: use the minimum linelength reported by
20309+ # all of the supported platforms: 8192 (on NT/2K/XP).
20310+ lt_cv_sys_max_cmd_len=8192;
20311+ ;;
20312+
20313+ amigaos*)
20314+ # On AmigaOS with pdksh, this test takes hours, literally.
20315+ # So we just punt and use a minimum line length of 8192.
20316+ lt_cv_sys_max_cmd_len=8192;
20317+ ;;
20318+
20319+ *)
20320+ # If test is not a shell built-in, we'll probably end up computing a
20321+ # maximum length that is only half of the actual maximum length, but
20322+ # we can't tell.
20323+ while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
20324+ = "XX$teststring") >/dev/null 2>&1 &&
20325+ new_result=`expr "X$teststring" : ".*" 2>&1` &&
20326+ lt_cv_sys_max_cmd_len=$new_result &&
20327+ test $i != 17 # 1/2 MB should be enough
20328+ do
20329+ i=`expr $i + 1`
20330+ teststring=$teststring$teststring
20331+ done
20332+ teststring=
20333+ # Add a significant safety factor because C++ compilers can tack on massive
20334+ # amounts of additional arguments before passing them to the linker.
20335+ # It appears as though 1/2 is a usable value.
20336+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
20337+ ;;
20338+ esac
20339+
20340+fi
20341+
20342+if test -n $lt_cv_sys_max_cmd_len ; then
20343+ echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
20344+echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
20345+else
20346+ echo "$as_me:$LINENO: result: none" >&5
20347+echo "${ECHO_T}none" >&6
20348+fi
20349+
20350+
20351+
20352+
20353+# Check for command to grab the raw symbol name followed by C symbol from nm.
20354+echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
20355+echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
20356+if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
20357+ echo $ECHO_N "(cached) $ECHO_C" >&6
20358+else
20359+
20360+# These are sane defaults that work on at least a few old systems.
20361+# [They come from Ultrix. What could be older than Ultrix?!! ;)]
20362+
20363+# Character class describing NM global symbol codes.
20364+symcode='[BCDEGRST]'
20365+
20366+# Regexp to match symbols that can be accessed directly from C.
20367+sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
20368+
20369+# Transform the above into a raw symbol and a C symbol.
20370+symxfrm='\1 \2\3 \3'
20371+
20372+# Transform an extracted symbol line into a proper C declaration
20373+lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
20374+
20375+# Transform an extracted symbol line into symbol name and symbol address
20376+lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
20377+
20378+# Define system-specific variables.
20379+case $host_os in
20380+aix*)
20381+ symcode='[BCDT]'
20382+ ;;
20383+cygwin* | mingw* | pw32*)
20384+ symcode='[ABCDGISTW]'
20385+ ;;
20386+hpux*) # Its linker distinguishes data from code symbols
20387+ if test "$host_cpu" = ia64; then
20388+ symcode='[ABCDEGRST]'
20389+ fi
20390+ lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
20391+ lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
20392+ ;;
20393+irix* | nonstopux*)
20394+ symcode='[BCDEGRST]'
20395+ ;;
20396+osf*)
20397+ symcode='[BCDEGQRST]'
20398+ ;;
20399+solaris* | sysv5*)
20400+ symcode='[BDRT]'
20401+ ;;
20402+sysv4)
20403+ symcode='[DFNSTU]'
20404+ ;;
20405+esac
20406+
20407+# Handle CRLF in mingw tool chain
20408+opt_cr=
20409+case $build_os in
20410+mingw*)
20411+ opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
20412+ ;;
20413+esac
20414+
20415+# If we're using GNU nm, then use its standard symbol codes.
20416+case `$NM -V 2>&1` in
20417+*GNU* | *'with BFD'*)
20418+ symcode='[ABCDGIRSTW]' ;;
20419+esac
20420+
20421+# Try without a prefix undercore, then with it.
20422+for ac_symprfx in "" "_"; do
20423+
20424+ # Write the raw and C identifiers.
20425+ lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
20426+
20427+ # Check to see that the pipe works correctly.
20428+ pipe_works=no
20429+
20430+ rm -f conftest*
20431+ cat > conftest.$ac_ext <<EOF
20432+#ifdef __cplusplus
20433+extern "C" {
20434+#endif
20435+char nm_test_var;
20436+void nm_test_func(){}
20437+#ifdef __cplusplus
20438+}
20439+#endif
20440+int main(){nm_test_var='a';nm_test_func();return(0);}
20441+EOF
20442+
20443+ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20444+ (eval $ac_compile) 2>&5
20445+ ac_status=$?
20446+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
20447+ (exit $ac_status); }; then
20448+ # Now try to grab the symbols.
20449+ nlist=conftest.nm
20450+ if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
20451+ (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
20452+ ac_status=$?
20453+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
20454+ (exit $ac_status); } && test -s "$nlist"; then
20455+ # Try sorting and uniquifying the output.
20456+ if sort "$nlist" | uniq > "$nlist"T; then
20457+ mv -f "$nlist"T "$nlist"
20458+ else
20459+ rm -f "$nlist"T
20460+ fi
20461+
20462+ # Make sure that we snagged all the symbols we need.
20463+ if grep ' nm_test_var$' "$nlist" >/dev/null; then
20464+ if grep ' nm_test_func$' "$nlist" >/dev/null; then
20465+ cat <<EOF > conftest.$ac_ext
20466+#ifdef __cplusplus
20467+extern "C" {
20468+#endif
20469+
20470+EOF
20471+ # Now generate the symbol file.
20472+ eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
20473+
20474+ cat <<EOF >> conftest.$ac_ext
20475+#if defined (__STDC__) && __STDC__
20476+# define lt_ptr_t void *
20477+#else
20478+# define lt_ptr_t char *
20479+# define const
20480+#endif
20481+
20482+/* The mapping between symbol names and symbols. */
20483+const struct {
20484+ const char *name;
20485+ lt_ptr_t address;
20486+}
20487+lt_preloaded_symbols[] =
20488+{
20489+EOF
20490+ $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
20491+ cat <<\EOF >> conftest.$ac_ext
20492+ {0, (lt_ptr_t) 0}
20493+};
20494+
20495+#ifdef __cplusplus
20496+}
20497+#endif
20498+EOF
20499+ # Now try linking the two files.
20500+ mv conftest.$ac_objext conftstm.$ac_objext
20501+ lt_save_LIBS="$LIBS"
20502+ lt_save_CFLAGS="$CFLAGS"
20503+ LIBS="conftstm.$ac_objext"
20504+ CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
20505+ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20506+ (eval $ac_link) 2>&5
20507+ ac_status=$?
20508+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
20509+ (exit $ac_status); } && test -s conftest${ac_exeext}; then
20510+ pipe_works=yes
20511+ fi
20512+ LIBS="$lt_save_LIBS"
20513+ CFLAGS="$lt_save_CFLAGS"
20514+ else
20515+ echo "cannot find nm_test_func in $nlist" >&5
20516+ fi
20517+ else
20518+ echo "cannot find nm_test_var in $nlist" >&5
20519+ fi
20520+ else
20521+ echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
20522+ fi
20523+ else
20524+ echo "$progname: failed program was:" >&5
20525+ cat conftest.$ac_ext >&5
20526+ fi
20527+ rm -f conftest* conftst*
20528+
20529+ # Do not use the global_symbol_pipe unless it works.
20530+ if test "$pipe_works" = yes; then
20531+ break
20532+ else
20533+ lt_cv_sys_global_symbol_pipe=
20534+ fi
20535+done
20536+
20537+fi
20538+
20539+if test -z "$lt_cv_sys_global_symbol_pipe"; then
20540+ lt_cv_sys_global_symbol_to_cdecl=
20541+fi
20542+if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
20543+ echo "$as_me:$LINENO: result: failed" >&5
20544+echo "${ECHO_T}failed" >&6
20545+else
20546+ echo "$as_me:$LINENO: result: ok" >&5
20547+echo "${ECHO_T}ok" >&6
20548+fi
20549+
20550+echo "$as_me:$LINENO: checking for objdir" >&5
20551+echo $ECHO_N "checking for objdir... $ECHO_C" >&6
20552+if test "${lt_cv_objdir+set}" = set; then
20553+ echo $ECHO_N "(cached) $ECHO_C" >&6
20554+else
20555+ rm -f .libs 2>/dev/null
20556+mkdir .libs 2>/dev/null
20557+if test -d .libs; then
20558+ lt_cv_objdir=.libs
20559+else
20560+ # MS-DOS does not allow filenames that begin with a dot.
20561+ lt_cv_objdir=_libs
20562+fi
20563+rmdir .libs 2>/dev/null
20564+fi
20565+echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
20566+echo "${ECHO_T}$lt_cv_objdir" >&6
20567+objdir=$lt_cv_objdir
20568+
20569+
20570+
20571+
20572+
20573+case $host_os in
20574+aix3*)
20575+ # AIX sometimes has problems with the GCC collect2 program. For some
20576+ # reason, if we set the COLLECT_NAMES environment variable, the problems
20577+ # vanish in a puff of smoke.
20578+ if test "X${COLLECT_NAMES+set}" != Xset; then
20579+ COLLECT_NAMES=
20580+ export COLLECT_NAMES
20581+ fi
20582+ ;;
20583+esac
20584+
20585+# Sed substitution that helps us do robust quoting. It backslashifies
20586+# metacharacters that are still active within double-quoted strings.
20587+Xsed='sed -e s/^X//'
20588+sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
20589+
20590+# Same as above, but do not quote variable references.
20591+double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
20592+
20593+# Sed substitution to delay expansion of an escaped shell variable in a
20594+# double_quote_subst'ed string.
20595+delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
20596+
20597+# Sed substitution to avoid accidental globbing in evaled expressions
20598+no_glob_subst='s/\*/\\\*/g'
20599+
20600+# Constants:
20601+rm="rm -f"
20602+
20603+# Global variables:
20604+default_ofile=libtool
20605+can_build_shared=yes
20606+
20607+# All known linkers require a `.a' archive for static linking (except M$VC,
20608+# which needs '.lib').
20609+libext=a
20610+ltmain="$ac_aux_dir/ltmain.sh"
20611+ofile="$default_ofile"
20612+with_gnu_ld="$lt_cv_prog_gnu_ld"
20613+
20614+if test -n "$ac_tool_prefix"; then
20615+ # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
20616+set dummy ${ac_tool_prefix}ar; ac_word=$2
20617+echo "$as_me:$LINENO: checking for $ac_word" >&5
20618+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20619+if test "${ac_cv_prog_AR+set}" = set; then
20620+ echo $ECHO_N "(cached) $ECHO_C" >&6
20621+else
20622+ if test -n "$AR"; then
20623+ ac_cv_prog_AR="$AR" # Let the user override the test.
20624+else
20625+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20626+for as_dir in $PATH
20627+do
20628+ IFS=$as_save_IFS
20629+ test -z "$as_dir" && as_dir=.
20630+ for ac_exec_ext in '' $ac_executable_extensions; do
20631+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20632+ ac_cv_prog_AR="${ac_tool_prefix}ar"
20633+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20634+ break 2
20635+ fi
20636+done
20637+done
20638+
20639+fi
20640+fi
20641+AR=$ac_cv_prog_AR
20642+if test -n "$AR"; then
20643+ echo "$as_me:$LINENO: result: $AR" >&5
20644+echo "${ECHO_T}$AR" >&6
20645+else
20646+ echo "$as_me:$LINENO: result: no" >&5
20647+echo "${ECHO_T}no" >&6
20648+fi
20649+
20650+fi
20651+if test -z "$ac_cv_prog_AR"; then
20652+ ac_ct_AR=$AR
20653+ # Extract the first word of "ar", so it can be a program name with args.
20654+set dummy ar; ac_word=$2
20655+echo "$as_me:$LINENO: checking for $ac_word" >&5
20656+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20657+if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
20658+ echo $ECHO_N "(cached) $ECHO_C" >&6
20659+else
20660+ if test -n "$ac_ct_AR"; then
20661+ ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
20662+else
20663+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20664+for as_dir in $PATH
20665+do
20666+ IFS=$as_save_IFS
20667+ test -z "$as_dir" && as_dir=.
20668+ for ac_exec_ext in '' $ac_executable_extensions; do
20669+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20670+ ac_cv_prog_ac_ct_AR="ar"
20671+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20672+ break 2
20673+ fi
20674+done
20675+done
20676+
20677+ test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
20678+fi
20679+fi
20680+ac_ct_AR=$ac_cv_prog_ac_ct_AR
20681+if test -n "$ac_ct_AR"; then
20682+ echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
20683+echo "${ECHO_T}$ac_ct_AR" >&6
20684+else
20685+ echo "$as_me:$LINENO: result: no" >&5
20686+echo "${ECHO_T}no" >&6
20687+fi
20688+
20689+ AR=$ac_ct_AR
20690+else
20691+ AR="$ac_cv_prog_AR"
20692+fi
20693+
20694+if test -n "$ac_tool_prefix"; then
20695+ # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
20696+set dummy ${ac_tool_prefix}ranlib; ac_word=$2
20697+echo "$as_me:$LINENO: checking for $ac_word" >&5
20698+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20699+if test "${ac_cv_prog_RANLIB+set}" = set; then
20700+ echo $ECHO_N "(cached) $ECHO_C" >&6
20701+else
20702+ if test -n "$RANLIB"; then
20703+ ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
20704+else
20705+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20706+for as_dir in $PATH
20707+do
20708+ IFS=$as_save_IFS
20709+ test -z "$as_dir" && as_dir=.
20710+ for ac_exec_ext in '' $ac_executable_extensions; do
20711+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20712+ ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
20713+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20714+ break 2
20715+ fi
20716+done
20717+done
20718+
20719+fi
20720+fi
20721+RANLIB=$ac_cv_prog_RANLIB
20722+if test -n "$RANLIB"; then
20723+ echo "$as_me:$LINENO: result: $RANLIB" >&5
20724+echo "${ECHO_T}$RANLIB" >&6
20725+else
20726+ echo "$as_me:$LINENO: result: no" >&5
20727+echo "${ECHO_T}no" >&6
20728+fi
20729+
20730+fi
20731+if test -z "$ac_cv_prog_RANLIB"; then
20732+ ac_ct_RANLIB=$RANLIB
20733+ # Extract the first word of "ranlib", so it can be a program name with args.
20734+set dummy ranlib; ac_word=$2
20735+echo "$as_me:$LINENO: checking for $ac_word" >&5
20736+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20737+if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
20738+ echo $ECHO_N "(cached) $ECHO_C" >&6
20739+else
20740+ if test -n "$ac_ct_RANLIB"; then
20741+ ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
20742+else
20743+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20744+for as_dir in $PATH
20745+do
20746+ IFS=$as_save_IFS
20747+ test -z "$as_dir" && as_dir=.
20748+ for ac_exec_ext in '' $ac_executable_extensions; do
20749+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20750+ ac_cv_prog_ac_ct_RANLIB="ranlib"
20751+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20752+ break 2
20753+ fi
20754+done
20755+done
20756+
20757+ test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
20758+fi
20759+fi
20760+ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
20761+if test -n "$ac_ct_RANLIB"; then
20762+ echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
20763+echo "${ECHO_T}$ac_ct_RANLIB" >&6
20764+else
20765+ echo "$as_me:$LINENO: result: no" >&5
20766+echo "${ECHO_T}no" >&6
20767+fi
20768+
20769+ RANLIB=$ac_ct_RANLIB
20770+else
20771+ RANLIB="$ac_cv_prog_RANLIB"
20772+fi
20773+
20774+if test -n "$ac_tool_prefix"; then
20775+ # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
20776+set dummy ${ac_tool_prefix}strip; ac_word=$2
20777+echo "$as_me:$LINENO: checking for $ac_word" >&5
20778+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20779+if test "${ac_cv_prog_STRIP+set}" = set; then
20780+ echo $ECHO_N "(cached) $ECHO_C" >&6
20781+else
20782+ if test -n "$STRIP"; then
20783+ ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
20784+else
20785+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20786+for as_dir in $PATH
20787+do
20788+ IFS=$as_save_IFS
20789+ test -z "$as_dir" && as_dir=.
20790+ for ac_exec_ext in '' $ac_executable_extensions; do
20791+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20792+ ac_cv_prog_STRIP="${ac_tool_prefix}strip"
20793+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20794+ break 2
20795+ fi
20796+done
20797+done
20798+
20799+fi
20800+fi
20801+STRIP=$ac_cv_prog_STRIP
20802+if test -n "$STRIP"; then
20803+ echo "$as_me:$LINENO: result: $STRIP" >&5
20804+echo "${ECHO_T}$STRIP" >&6
20805+else
20806+ echo "$as_me:$LINENO: result: no" >&5
20807+echo "${ECHO_T}no" >&6
20808+fi
20809+
20810+fi
20811+if test -z "$ac_cv_prog_STRIP"; then
20812+ ac_ct_STRIP=$STRIP
20813+ # Extract the first word of "strip", so it can be a program name with args.
20814+set dummy strip; ac_word=$2
20815+echo "$as_me:$LINENO: checking for $ac_word" >&5
20816+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20817+if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
20818+ echo $ECHO_N "(cached) $ECHO_C" >&6
20819+else
20820+ if test -n "$ac_ct_STRIP"; then
20821+ ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
20822+else
20823+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20824+for as_dir in $PATH
20825+do
20826+ IFS=$as_save_IFS
20827+ test -z "$as_dir" && as_dir=.
20828+ for ac_exec_ext in '' $ac_executable_extensions; do
20829+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20830+ ac_cv_prog_ac_ct_STRIP="strip"
20831+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20832+ break 2
20833+ fi
20834+done
20835+done
20836+
20837+ test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
20838+fi
20839+fi
20840+ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
20841+if test -n "$ac_ct_STRIP"; then
20842+ echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
20843+echo "${ECHO_T}$ac_ct_STRIP" >&6
20844+else
20845+ echo "$as_me:$LINENO: result: no" >&5
20846+echo "${ECHO_T}no" >&6
20847+fi
20848+
20849+ STRIP=$ac_ct_STRIP
20850+else
20851+ STRIP="$ac_cv_prog_STRIP"
20852+fi
20853+
20854+
20855+old_CC="$CC"
20856+old_CFLAGS="$CFLAGS"
20857+
20858+# Set sane defaults for various variables
20859+test -z "$AR" && AR=ar
20860+test -z "$AR_FLAGS" && AR_FLAGS=cru
20861+test -z "$AS" && AS=as
20862+test -z "$CC" && CC=cc
20863+test -z "$LTCC" && LTCC=$CC
20864+test -z "$DLLTOOL" && DLLTOOL=dlltool
20865+test -z "$LD" && LD=ld
20866+test -z "$LN_S" && LN_S="ln -s"
20867+test -z "$MAGIC_CMD" && MAGIC_CMD=file
20868+test -z "$NM" && NM=nm
20869+test -z "$SED" && SED=sed
20870+test -z "$OBJDUMP" && OBJDUMP=objdump
20871+test -z "$RANLIB" && RANLIB=:
20872+test -z "$STRIP" && STRIP=:
20873+test -z "$ac_objext" && ac_objext=o
20874+
20875+# Determine commands to create old-style static archives.
20876+old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
20877+old_postinstall_cmds='chmod 644 $oldlib'
20878+old_postuninstall_cmds=
20879+
20880+if test -n "$RANLIB"; then
20881+ case $host_os in
20882+ openbsd*)
20883+ old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
20884+ ;;
20885+ *)
20886+ old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
20887+ ;;
20888+ esac
20889+ old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
20890+fi
20891+
20892+# Only perform the check for file, if the check method requires it
20893+case $deplibs_check_method in
20894+file_magic*)
20895+ if test "$file_magic_cmd" = '$MAGIC_CMD'; then
20896+ echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
20897+echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
20898+if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
20899+ echo $ECHO_N "(cached) $ECHO_C" >&6
20900+else
20901+ case $MAGIC_CMD in
20902+[\\/*] | ?:[\\/]*)
20903+ lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
20904+ ;;
20905+*)
20906+ lt_save_MAGIC_CMD="$MAGIC_CMD"
20907+ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
20908+ ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
20909+ for ac_dir in $ac_dummy; do
20910+ IFS="$lt_save_ifs"
20911+ test -z "$ac_dir" && ac_dir=.
20912+ if test -f $ac_dir/${ac_tool_prefix}file; then
20913+ lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
20914+ if test -n "$file_magic_test_file"; then
20915+ case $deplibs_check_method in
20916+ "file_magic "*)
20917+ file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
20918+ MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
20919+ if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
20920+ $EGREP "$file_magic_regex" > /dev/null; then
20921+ :
20922+ else
20923+ cat <<EOF 1>&2
20924+
20925+*** Warning: the command libtool uses to detect shared libraries,
20926+*** $file_magic_cmd, produces output that libtool cannot recognize.
20927+*** The result is that libtool may fail to recognize shared libraries
20928+*** as such. This will affect the creation of libtool libraries that
20929+*** depend on shared libraries, but programs linked with such libtool
20930+*** libraries will work regardless of this problem. Nevertheless, you
20931+*** may want to report the problem to your system manager and/or to
20932+*** bug-libtool@gnu.org
20933+
20934+EOF
20935+ fi ;;
20936+ esac
20937+ fi
20938+ break
20939+ fi
20940+ done
20941+ IFS="$lt_save_ifs"
20942+ MAGIC_CMD="$lt_save_MAGIC_CMD"
20943+ ;;
20944+esac
20945+fi
20946+
20947+MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
20948+if test -n "$MAGIC_CMD"; then
20949+ echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
20950+echo "${ECHO_T}$MAGIC_CMD" >&6
20951+else
20952+ echo "$as_me:$LINENO: result: no" >&5
20953+echo "${ECHO_T}no" >&6
20954+fi
20955+
20956+if test -z "$lt_cv_path_MAGIC_CMD"; then
20957+ if test -n "$ac_tool_prefix"; then
20958+ echo "$as_me:$LINENO: checking for file" >&5
20959+echo $ECHO_N "checking for file... $ECHO_C" >&6
20960+if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
20961+ echo $ECHO_N "(cached) $ECHO_C" >&6
20962+else
20963+ case $MAGIC_CMD in
20964+[\\/*] | ?:[\\/]*)
20965+ lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
20966+ ;;
20967+*)
20968+ lt_save_MAGIC_CMD="$MAGIC_CMD"
20969+ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
20970+ ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
20971+ for ac_dir in $ac_dummy; do
20972+ IFS="$lt_save_ifs"
20973+ test -z "$ac_dir" && ac_dir=.
20974+ if test -f $ac_dir/file; then
20975+ lt_cv_path_MAGIC_CMD="$ac_dir/file"
20976+ if test -n "$file_magic_test_file"; then
20977+ case $deplibs_check_method in
20978+ "file_magic "*)
20979+ file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
20980+ MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
20981+ if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
20982+ $EGREP "$file_magic_regex" > /dev/null; then
20983+ :
20984+ else
20985+ cat <<EOF 1>&2
20986+
20987+*** Warning: the command libtool uses to detect shared libraries,
20988+*** $file_magic_cmd, produces output that libtool cannot recognize.
20989+*** The result is that libtool may fail to recognize shared libraries
20990+*** as such. This will affect the creation of libtool libraries that
20991+*** depend on shared libraries, but programs linked with such libtool
20992+*** libraries will work regardless of this problem. Nevertheless, you
20993+*** may want to report the problem to your system manager and/or to
20994+*** bug-libtool@gnu.org
20995+
20996+EOF
20997+ fi ;;
20998+ esac
20999+ fi
21000+ break
21001+ fi
21002+ done
21003+ IFS="$lt_save_ifs"
21004+ MAGIC_CMD="$lt_save_MAGIC_CMD"
21005+ ;;
21006+esac
21007+fi
21008+
21009+MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
21010+if test -n "$MAGIC_CMD"; then
21011+ echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
21012+echo "${ECHO_T}$MAGIC_CMD" >&6
21013+else
21014+ echo "$as_me:$LINENO: result: no" >&5
21015+echo "${ECHO_T}no" >&6
21016+fi
21017+
21018+ else
21019+ MAGIC_CMD=:
21020+ fi
21021+fi
21022+
21023+ fi
21024+ ;;
21025+esac
21026+
21027+enable_dlopen=no
21028+enable_win32_dll=no
21029+
21030+# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
21031+if test "${enable_libtool_lock+set}" = set; then
21032+ enableval="$enable_libtool_lock"
21033+
21034+fi;
21035+test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
21036+
21037+
21038+# Check whether --with-pic or --without-pic was given.
21039+if test "${with_pic+set}" = set; then
21040+ withval="$with_pic"
21041+ pic_mode="$withval"
21042+else
21043+ pic_mode=default
21044+fi;
21045+test -z "$pic_mode" && pic_mode=default
21046+
21047+# Use C for the default configuration in the libtool script
21048+tagname=
21049+lt_save_CC="$CC"
21050+ac_ext=c
21051+ac_cpp='$CPP $CPPFLAGS'
21052+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21053+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21054+ac_compiler_gnu=$ac_cv_c_compiler_gnu
21055+
21056+
21057+# Source file extension for C test sources.
21058+ac_ext=c
21059+
21060+# Object file extension for compiled C test sources.
21061+objext=o
21062+objext=$objext
21063+
21064+# Code to be used in simple compile tests
21065+lt_simple_compile_test_code="int some_variable = 0;\n"
21066+
21067+# Code to be used in simple link tests
21068+lt_simple_link_test_code='int main(){return(0);}\n'
21069+
21070+
21071+# If no C compiler was specified, use CC.
21072+LTCC=${LTCC-"$CC"}
21073+
21074+# Allow CC to be a program name with arguments.
21075+compiler=$CC
21076+
21077+
21078+#
21079+# Check for any special shared library compilation flags.
21080+#
21081+lt_prog_cc_shlib=
21082+if test "$GCC" = no; then
21083+ case $host_os in
21084+ sco3.2v5*)
21085+ lt_prog_cc_shlib='-belf'
21086+ ;;
21087+ esac
21088+fi
21089+if test -n "$lt_prog_cc_shlib"; then
21090+ { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
21091+echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
21092+ if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
21093+ else
21094+ { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
21095+echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
21096+ lt_cv_prog_cc_can_build_shared=no
21097+ fi
21098+fi
21099+
21100+
21101+#
21102+# Check to make sure the static flag actually works.
21103+#
21104+echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
21105+echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
21106+if test "${lt_prog_compiler_static_works+set}" = set; then
21107+ echo $ECHO_N "(cached) $ECHO_C" >&6
21108+else
21109+ lt_prog_compiler_static_works=no
21110+ save_LDFLAGS="$LDFLAGS"
21111+ LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
21112+ printf "$lt_simple_link_test_code" > conftest.$ac_ext
21113+ if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21114+ # The compiler can only warn and ignore the option if not recognized
21115+ # So say no if there are warnings
21116+ if test -s conftest.err; then
21117+ # Append any errors to the config.log.
21118+ cat conftest.err 1>&5
21119+ else
21120+ lt_prog_compiler_static_works=yes
21121+ fi
21122+ fi
21123+ $rm conftest*
21124+ LDFLAGS="$save_LDFLAGS"
21125+
21126+fi
21127+echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
21128+echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
21129+
21130+if test x"$lt_prog_compiler_static_works" = xyes; then
21131+ :
21132+else
21133+ lt_prog_compiler_static=
21134+fi
21135+
21136+
21137+
21138+
21139+lt_prog_compiler_no_builtin_flag=
21140+
21141+if test "$GCC" = yes; then
21142+ lt_prog_compiler_no_builtin_flag=' -fno-builtin'
21143+
21144+
21145+echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
21146+echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
21147+if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
21148+ echo $ECHO_N "(cached) $ECHO_C" >&6
21149+else
21150+ lt_cv_prog_compiler_rtti_exceptions=no
21151+ ac_outfile=conftest.$ac_objext
21152+ printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21153+ lt_compiler_flag="-fno-rtti -fno-exceptions"
21154+ # Insert the option either (1) after the last *FLAGS variable, or
21155+ # (2) before a word containing "conftest.", or (3) at the end.
21156+ # Note that $ac_compile itself does not contain backslashes and begins
21157+ # with a dollar sign (not a hyphen), so the echo should work correctly.
21158+ # The option is referenced via a variable to avoid confusing sed.
21159+ lt_compile=`echo "$ac_compile" | $SED \
21160+ -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21161+ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21162+ -e 's:$: $lt_compiler_flag:'`
21163+ (eval echo "\"\$as_me:6197: $lt_compile\"" >&5)
21164+ (eval "$lt_compile" 2>conftest.err)
21165+ ac_status=$?
21166+ cat conftest.err >&5
21167+ echo "$as_me:6201: \$? = $ac_status" >&5
21168+ if (exit $ac_status) && test -s "$ac_outfile"; then
21169+ # The compiler can only warn and ignore the option if not recognized
21170+ # So say no if there are warnings
21171+ if test ! -s conftest.err; then
21172+ lt_cv_prog_compiler_rtti_exceptions=yes
21173+ fi
21174+ fi
21175+ $rm conftest*
21176+
21177+fi
21178+echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21179+echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21180+
21181+if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21182+ lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
21183+else
21184+ :
21185+fi
21186+
21187+fi
21188+
21189+lt_prog_compiler_wl=
21190+lt_prog_compiler_pic=
21191+lt_prog_compiler_static=
21192+
21193+echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21194+echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21195+
21196+ if test "$GCC" = yes; then
21197+ lt_prog_compiler_wl='-Wl,'
21198+ lt_prog_compiler_static='-static'
21199+
21200+ case $host_os in
21201+ aix*)
21202+ # All AIX code is PIC.
21203+ if test "$host_cpu" = ia64; then
21204+ # AIX 5 now supports IA64 processor
21205+ lt_prog_compiler_static='-Bstatic'
21206+ fi
21207+ ;;
21208+
21209+ amigaos*)
21210+ # FIXME: we need at least 68020 code to build shared libraries, but
21211+ # adding the `-m68020' flag to GCC prevents building anything better,
21212+ # like `-m68040'.
21213+ lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
21214+ ;;
21215+
21216+ beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21217+ # PIC is the default for these OSes.
21218+ ;;
21219+
21220+ mingw* | pw32* | os2*)
21221+ # This hack is so that the source file can tell whether it is being
21222+ # built for inclusion in a dll (and should export symbols for example).
21223+ lt_prog_compiler_pic='-DDLL_EXPORT'
21224+ ;;
21225+
21226+ darwin* | rhapsody*)
21227+ # PIC is the default on this platform
21228+ # Common symbols not allowed in MH_DYLIB files
21229+ lt_prog_compiler_pic='-fno-common'
21230+ ;;
21231+
21232+ msdosdjgpp*)
21233+ # Just because we use GCC doesn't mean we suddenly get shared libraries
21234+ # on systems that don't support them.
21235+ lt_prog_compiler_can_build_shared=no
21236+ enable_shared=no
21237+ ;;
21238+
21239+ sysv4*MP*)
21240+ if test -d /usr/nec; then
21241+ lt_prog_compiler_pic=-Kconform_pic
21242+ fi
21243+ ;;
21244+
21245+ hpux*)
21246+ # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21247+ # not for PA HP-UX.
21248+ case "$host_cpu" in
21249+ hppa*64*|ia64*)
21250+ # +Z the default
21251+ ;;
21252+ *)
21253+ lt_prog_compiler_pic='-fPIC'
21254+ ;;
21255+ esac
21256+ ;;
21257+
21258+ *)
21259+ lt_prog_compiler_pic='-fPIC'
21260+ ;;
21261+ esac
21262+ else
21263+ # PORTME Check for flag to pass linker flags through the system compiler.
21264+ case $host_os in
21265+ aix*)
21266+ lt_prog_compiler_wl='-Wl,'
21267+ if test "$host_cpu" = ia64; then
21268+ # AIX 5 now supports IA64 processor
21269+ lt_prog_compiler_static='-Bstatic'
21270+ else
21271+ lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
21272+ fi
21273+ ;;
21274+
21275+ mingw* | pw32* | os2*)
21276+ # This hack is so that the source file can tell whether it is being
21277+ # built for inclusion in a dll (and should export symbols for example).
21278+ lt_prog_compiler_pic='-DDLL_EXPORT'
21279+ ;;
21280+
21281+ hpux9* | hpux10* | hpux11*)
21282+ lt_prog_compiler_wl='-Wl,'
21283+ # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21284+ # not for PA HP-UX.
21285+ case "$host_cpu" in
21286+ hppa*64*|ia64*)
21287+ # +Z the default
21288+ ;;
21289+ *)
21290+ lt_prog_compiler_pic='+Z'
21291+ ;;
21292+ esac
21293+ # Is there a better lt_prog_compiler_static that works with the bundled CC?
21294+ lt_prog_compiler_static='${wl}-a ${wl}archive'
21295+ ;;
21296+
21297+ irix5* | irix6* | nonstopux*)
21298+ lt_prog_compiler_wl='-Wl,'
21299+ # PIC (with -KPIC) is the default.
21300+ lt_prog_compiler_static='-non_shared'
21301+ ;;
21302+
21303+ newsos6)
21304+ lt_prog_compiler_pic='-KPIC'
21305+ lt_prog_compiler_static='-Bstatic'
21306+ ;;
21307+
21308+ linux*)
21309+ case $CC in
21310+ icc* | ecc*)
21311+ lt_prog_compiler_wl='-Wl,'
21312+ lt_prog_compiler_pic='-KPIC'
21313+ lt_prog_compiler_static='-static'
21314+ ;;
21315+ ccc*)
21316+ lt_prog_compiler_wl='-Wl,'
21317+ # All Alpha code is PIC.
21318+ lt_prog_compiler_static='-non_shared'
21319+ ;;
21320+ esac
21321+ ;;
21322+
21323+ osf3* | osf4* | osf5*)
21324+ lt_prog_compiler_wl='-Wl,'
21325+ # All OSF/1 code is PIC.
21326+ lt_prog_compiler_static='-non_shared'
21327+ ;;
21328+
21329+ sco3.2v5*)
21330+ lt_prog_compiler_pic='-Kpic'
21331+ lt_prog_compiler_static='-dn'
21332+ ;;
21333+
21334+ solaris*)
21335+ lt_prog_compiler_wl='-Wl,'
21336+ lt_prog_compiler_pic='-KPIC'
21337+ lt_prog_compiler_static='-Bstatic'
21338+ ;;
21339+
21340+ sunos4*)
21341+ lt_prog_compiler_wl='-Qoption ld '
21342+ lt_prog_compiler_pic='-PIC'
21343+ lt_prog_compiler_static='-Bstatic'
21344+ ;;
21345+
21346+ sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21347+ lt_prog_compiler_wl='-Wl,'
21348+ lt_prog_compiler_pic='-KPIC'
21349+ lt_prog_compiler_static='-Bstatic'
21350+ ;;
21351+
21352+ sysv4*MP*)
21353+ if test -d /usr/nec ;then
21354+ lt_prog_compiler_pic='-Kconform_pic'
21355+ lt_prog_compiler_static='-Bstatic'
21356+ fi
21357+ ;;
21358+
21359+ uts4*)
21360+ lt_prog_compiler_pic='-pic'
21361+ lt_prog_compiler_static='-Bstatic'
21362+ ;;
21363+
21364+ *)
21365+ lt_prog_compiler_can_build_shared=no
21366+ ;;
21367+ esac
21368+ fi
21369+
21370+echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
21371+echo "${ECHO_T}$lt_prog_compiler_pic" >&6
21372+
21373+#
21374+# Check to make sure the PIC flag actually works.
21375+#
21376+if test -n "$lt_prog_compiler_pic"; then
21377+
21378+echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
21379+echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
21380+if test "${lt_prog_compiler_pic_works+set}" = set; then
21381+ echo $ECHO_N "(cached) $ECHO_C" >&6
21382+else
21383+ lt_prog_compiler_pic_works=no
21384+ ac_outfile=conftest.$ac_objext
21385+ printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21386+ lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
21387+ # Insert the option either (1) after the last *FLAGS variable, or
21388+ # (2) before a word containing "conftest.", or (3) at the end.
21389+ # Note that $ac_compile itself does not contain backslashes and begins
21390+ # with a dollar sign (not a hyphen), so the echo should work correctly.
21391+ # The option is referenced via a variable to avoid confusing sed.
21392+ lt_compile=`echo "$ac_compile" | $SED \
21393+ -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21394+ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21395+ -e 's:$: $lt_compiler_flag:'`
21396+ (eval echo "\"\$as_me:6430: $lt_compile\"" >&5)
21397+ (eval "$lt_compile" 2>conftest.err)
21398+ ac_status=$?
21399+ cat conftest.err >&5
21400+ echo "$as_me:6434: \$? = $ac_status" >&5
21401+ if (exit $ac_status) && test -s "$ac_outfile"; then
21402+ # The compiler can only warn and ignore the option if not recognized
21403+ # So say no if there are warnings
21404+ if test ! -s conftest.err; then
21405+ lt_prog_compiler_pic_works=yes
21406+ fi
21407+ fi
21408+ $rm conftest*
21409+
21410+fi
21411+echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
21412+echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
21413+
21414+if test x"$lt_prog_compiler_pic_works" = xyes; then
21415+ case $lt_prog_compiler_pic in
21416+ "" | " "*) ;;
21417+ *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
21418+ esac
21419+else
21420+ lt_prog_compiler_pic=
21421+ lt_prog_compiler_can_build_shared=no
21422+fi
21423+
21424+fi
21425+case "$host_os" in
21426+ # For platforms which do not support PIC, -DPIC is meaningless:
21427+ *djgpp*)
21428+ lt_prog_compiler_pic=
21429+ ;;
21430+ *)
21431+ lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
21432+ ;;
21433+esac
21434+
21435+echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21436+echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21437+if test "${lt_cv_prog_compiler_c_o+set}" = set; then
21438+ echo $ECHO_N "(cached) $ECHO_C" >&6
21439+else
21440+ lt_cv_prog_compiler_c_o=no
21441+ $rm -r conftest 2>/dev/null
21442+ mkdir conftest
21443+ cd conftest
21444+ mkdir out
21445+ printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21446+
21447+ lt_compiler_flag="-o out/conftest2.$ac_objext"
21448+ # Insert the option either (1) after the last *FLAGS variable, or
21449+ # (2) before a word containing "conftest.", or (3) at the end.
21450+ # Note that $ac_compile itself does not contain backslashes and begins
21451+ # with a dollar sign (not a hyphen), so the echo should work correctly.
21452+ lt_compile=`echo "$ac_compile" | $SED \
21453+ -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21454+ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21455+ -e 's:$: $lt_compiler_flag:'`
21456+ (eval echo "\"\$as_me:6490: $lt_compile\"" >&5)
21457+ (eval "$lt_compile" 2>out/conftest.err)
21458+ ac_status=$?
21459+ cat out/conftest.err >&5
21460+ echo "$as_me:6494: \$? = $ac_status" >&5
21461+ if (exit $ac_status) && test -s out/conftest2.$ac_objext
21462+ then
21463+ # The compiler can only warn and ignore the option if not recognized
21464+ # So say no if there are warnings
21465+ if test ! -s out/conftest.err; then
21466+ lt_cv_prog_compiler_c_o=yes
21467+ fi
21468+ fi
21469+ chmod u+w .
21470+ $rm conftest*
21471+ # SGI C++ compiler will create directory out/ii_files/ for
21472+ # template instantiation
21473+ test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21474+ $rm out/* && rmdir out
21475+ cd ..
21476+ rmdir conftest
21477+ $rm conftest*
21478+
21479+fi
21480+echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
21481+echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
21482+
21483+
21484+hard_links="nottested"
21485+if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
21486+ # do not overwrite the value of need_locks provided by the user
21487+ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21488+echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21489+ hard_links=yes
21490+ $rm conftest*
21491+ ln conftest.a conftest.b 2>/dev/null && hard_links=no
21492+ touch conftest.a
21493+ ln conftest.a conftest.b 2>&5 || hard_links=no
21494+ ln conftest.a conftest.b 2>/dev/null && hard_links=no
21495+ echo "$as_me:$LINENO: result: $hard_links" >&5
21496+echo "${ECHO_T}$hard_links" >&6
21497+ if test "$hard_links" = no; then
21498+ { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21499+echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21500+ need_locks=warn
21501+ fi
21502+else
21503+ need_locks=no
21504+fi
21505+
21506+echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21507+echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21508+
21509+ runpath_var=
21510+ allow_undefined_flag=
21511+ enable_shared_with_static_runtimes=no
21512+ archive_cmds=
21513+ archive_expsym_cmds=
21514+ old_archive_From_new_cmds=
21515+ old_archive_from_expsyms_cmds=
21516+ export_dynamic_flag_spec=
21517+ whole_archive_flag_spec=
21518+ thread_safe_flag_spec=
21519+ hardcode_libdir_flag_spec=
21520+ hardcode_libdir_flag_spec_ld=
21521+ hardcode_libdir_separator=
21522+ hardcode_direct=no
21523+ hardcode_minus_L=no
21524+ hardcode_shlibpath_var=unsupported
21525+ link_all_deplibs=unknown
21526+ hardcode_automatic=no
21527+ module_cmds=
21528+ module_expsym_cmds=
21529+ always_export_symbols=no
21530+ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21531+ # include_expsyms should be a list of space-separated symbols to be *always*
21532+ # included in the symbol list
21533+ include_expsyms=
21534+ # exclude_expsyms can be an extended regexp of symbols to exclude
21535+ # it will be wrapped by ` (' and `)$', so one must not match beginning or
21536+ # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21537+ # as well as any symbol that contains `d'.
21538+ exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
21539+ # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21540+ # platforms (ab)use it in PIC code, but their linkers get confused if
21541+ # the symbol is explicitly referenced. Since portable code cannot
21542+ # rely on this symbol name, it's probably fine to never include it in
21543+ # preloaded symbol tables.
21544+ extract_expsyms_cmds=
21545+
21546+ case $host_os in
21547+ cygwin* | mingw* | pw32*)
21548+ # FIXME: the MSVC++ port hasn't been tested in a loooong time
21549+ # When not using gcc, we currently assume that we are using
21550+ # Microsoft Visual C++.
21551+ if test "$GCC" != yes; then
21552+ with_gnu_ld=no
21553+ fi
21554+ ;;
21555+ openbsd*)
21556+ with_gnu_ld=no
21557+ ;;
21558+ esac
21559+
21560+ ld_shlibs=yes
21561+ if test "$with_gnu_ld" = yes; then
21562+ # If archive_cmds runs LD, not CC, wlarc should be empty
21563+ wlarc='${wl}'
21564+
21565+ # See if GNU ld supports shared libraries.
21566+ case $host_os in
21567+ aix3* | aix4* | aix5*)
21568+ # On AIX/PPC, the GNU linker is very broken
21569+ if test "$host_cpu" != ia64; then
21570+ ld_shlibs=no
21571+ cat <<EOF 1>&2
21572+
21573+*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21574+*** to be unable to reliably create shared libraries on AIX.
21575+*** Therefore, libtool is disabling shared libraries support. If you
21576+*** really care for shared libraries, you may want to modify your PATH
21577+*** so that a non-GNU linker is found, and then restart.
21578+
21579+EOF
21580+ fi
21581+ ;;
21582+
21583+ amigaos*)
21584+ archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
21585+ hardcode_libdir_flag_spec='-L$libdir'
21586+ hardcode_minus_L=yes
21587+
21588+ # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21589+ # that the semantics of dynamic libraries on AmigaOS, at least up
21590+ # to version 4, is to share data among multiple programs linked
21591+ # with the same dynamic library. Since this doesn't match the
21592+ # behavior of shared libraries on other platforms, we can't use
21593+ # them.
21594+ ld_shlibs=no
21595+ ;;
21596+
21597+ beos*)
21598+ if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21599+ allow_undefined_flag=unsupported
21600+ # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21601+ # support --undefined. This deserves some investigation. FIXME
21602+ archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21603+ else
21604+ ld_shlibs=no
21605+ fi
21606+ ;;
21607+
21608+ cygwin* | mingw* | pw32*)
21609+ # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
21610+ # as there is no search path for DLLs.
21611+ hardcode_libdir_flag_spec='-L$libdir'
21612+ allow_undefined_flag=unsupported
21613+ always_export_symbols=no
21614+ enable_shared_with_static_runtimes=yes
21615+ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21616+
21617+ if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21618+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21619+ # If the export-symbols file already is a .def file (1st line
21620+ # is EXPORTS), use it as is; otherwise, prepend...
21621+ archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21622+ cp $export_symbols $output_objdir/$soname.def;
21623+ else
21624+ echo EXPORTS > $output_objdir/$soname.def;
21625+ cat $export_symbols >> $output_objdir/$soname.def;
21626+ fi~
21627+ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21628+ else
21629+ ld_shlibs=no
21630+ fi
21631+ ;;
21632+
21633+ netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
21634+ if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21635+ archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21636+ wlarc=
21637+ else
21638+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21639+ archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21640+ fi
21641+ ;;
21642+
21643+ solaris* | sysv5*)
21644+ if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21645+ ld_shlibs=no
21646+ cat <<EOF 1>&2
21647+
21648+*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21649+*** create shared libraries on Solaris systems. Therefore, libtool
21650+*** is disabling shared libraries support. We urge you to upgrade GNU
21651+*** binutils to release 2.9.1 or newer. Another option is to modify
21652+*** your PATH or compiler configuration so that the native linker is
21653+*** used, and then restart.
21654+
21655+EOF
21656+ elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21657+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21658+ archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21659+ else
21660+ ld_shlibs=no
21661+ fi
21662+ ;;
21663+
21664+ sunos4*)
21665+ archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21666+ wlarc=
21667+ hardcode_direct=yes
21668+ hardcode_shlibpath_var=no
21669+ ;;
21670+
21671+ linux*)
21672+ if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21673+ tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21674+ archive_cmds="$tmp_archive_cmds"
21675+ supports_anon_versioning=no
21676+ case `$LD -v 2>/dev/null` in
21677+ *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21678+ *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21679+ *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21680+ *\ 2.11.*) ;; # other 2.11 versions
21681+ *) supports_anon_versioning=yes ;;
21682+ esac
21683+ if test $supports_anon_versioning = yes; then
21684+ archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
21685+cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21686+$echo "local: *; };" >> $output_objdir/$libname.ver~
21687+ $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21688+ else
21689+ archive_expsym_cmds="$tmp_archive_cmds"
21690+ fi
21691+ link_all_deplibs=no
21692+ else
21693+ ld_shlibs=no
21694+ fi
21695+ ;;
21696+
21697+ *)
21698+ if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21699+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21700+ archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21701+ else
21702+ ld_shlibs=no
21703+ fi
21704+ ;;
21705+ esac
21706+
21707+ if test "$ld_shlibs" = yes; then
21708+ runpath_var=LD_RUN_PATH
21709+ hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
21710+ export_dynamic_flag_spec='${wl}--export-dynamic'
21711+ # ancient GNU ld didn't support --whole-archive et. al.
21712+ if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21713+ whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21714+ else
21715+ whole_archive_flag_spec=
21716+ fi
21717+ fi
21718+ else
21719+ # PORTME fill in a description of your system's linker (not GNU ld)
21720+ case $host_os in
21721+ aix3*)
21722+ allow_undefined_flag=unsupported
21723+ always_export_symbols=yes
21724+ archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
21725+ # Note: this linker hardcodes the directories in LIBPATH if there
21726+ # are no directories specified by -L.
21727+ hardcode_minus_L=yes
21728+ if test "$GCC" = yes && test -z "$link_static_flag"; then
21729+ # Neither direct hardcoding nor static linking is supported with a
21730+ # broken collect2.
21731+ hardcode_direct=unsupported
21732+ fi
21733+ ;;
21734+
21735+ aix4* | aix5*)
21736+ if test "$host_cpu" = ia64; then
21737+ # On IA64, the linker does run time linking by default, so we don't
21738+ # have to do anything special.
21739+ aix_use_runtimelinking=no
21740+ exp_sym_flag='-Bexport'
21741+ no_entry_flag=""
21742+ else
21743+ # If we're using GNU nm, then we don't want the "-C" option.
21744+ # -C means demangle to AIX nm, but means don't demangle with GNU nm
21745+ if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21746+ export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
21747+ else
21748+ export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
21749+ fi
21750+ aix_use_runtimelinking=no
21751+
21752+ # Test if we are trying to use run time linking or normal
21753+ # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21754+ # need to do runtime linking.
21755+ case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21756+ for ld_flag in $LDFLAGS; do
21757+ if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21758+ aix_use_runtimelinking=yes
21759+ break
21760+ fi
21761+ done
21762+ esac
21763+
21764+ exp_sym_flag='-bexport'
21765+ no_entry_flag='-bnoentry'
21766+ fi
21767+
21768+ # When large executables or shared objects are built, AIX ld can
21769+ # have problems creating the table of contents. If linking a library
21770+ # or program results in "error TOC overflow" add -mminimal-toc to
21771+ # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21772+ # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21773+
21774+ archive_cmds=''
21775+ hardcode_direct=yes
21776+ hardcode_libdir_separator=':'
21777+ link_all_deplibs=yes
21778+
21779+ if test "$GCC" = yes; then
21780+ case $host_os in aix4.012|aix4.012.*)
21781+ # We only want to do this on AIX 4.2 and lower, the check
21782+ # below for broken collect2 doesn't work under 4.3+
21783+ collect2name=`${CC} -print-prog-name=collect2`
21784+ if test -f "$collect2name" && \
21785+ strings "$collect2name" | grep resolve_lib_name >/dev/null
21786+ then
21787+ # We have reworked collect2
21788+ hardcode_direct=yes
21789+ else
21790+ # We have old collect2
21791+ hardcode_direct=unsupported
21792+ # It fails to find uninstalled libraries when the uninstalled
21793+ # path is not listed in the libpath. Setting hardcode_minus_L
21794+ # to unsupported forces relinking
21795+ hardcode_minus_L=yes
21796+ hardcode_libdir_flag_spec='-L$libdir'
21797+ hardcode_libdir_separator=
21798+ fi
21799+ esac
21800+ shared_flag='-shared'
21801+ else
21802+ # not using gcc
21803+ if test "$host_cpu" = ia64; then
21804+ # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21805+ # chokes on -Wl,-G. The following line is correct:
21806+ shared_flag='-G'
21807+ else
21808+ if test "$aix_use_runtimelinking" = yes; then
21809+ shared_flag='${wl}-G'
21810+ else
21811+ shared_flag='${wl}-bM:SRE'
21812+ fi
21813+ fi
21814+ fi
21815+
21816+ # It seems that -bexpall does not export symbols beginning with
21817+ # underscore (_), so it is better to generate a list of symbols to export.
21818+ always_export_symbols=yes
21819+ if test "$aix_use_runtimelinking" = yes; then
21820+ # Warning - without using the other runtime loading flags (-brtl),
21821+ # -berok will link without error, but may produce a broken library.
21822+ allow_undefined_flag='-berok'
21823+ # Determine the default libpath from the value encoded in an empty executable.
21824+ cat >conftest.$ac_ext <<_ACEOF
21825+/* confdefs.h. */
21826+_ACEOF
21827+cat confdefs.h >>conftest.$ac_ext
21828+cat >>conftest.$ac_ext <<_ACEOF
21829+/* end confdefs.h. */
21830+
21831+int
21832+main ()
21833+{
21834+
21835+ ;
21836+ return 0;
21837+}
21838+_ACEOF
21839+rm -f conftest.$ac_objext conftest$ac_exeext
21840+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21841+ (eval $ac_link) 2>conftest.er1
21842+ ac_status=$?
21843+ grep -v '^ *+' conftest.er1 >conftest.err
21844+ rm -f conftest.er1
21845+ cat conftest.err >&5
21846+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
21847+ (exit $ac_status); } &&
21848+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21849+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21850+ (eval $ac_try) 2>&5
21851+ ac_status=$?
21852+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
21853+ (exit $ac_status); }; } &&
21854+ { ac_try='test -s conftest$ac_exeext'
21855+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21856+ (eval $ac_try) 2>&5
21857+ ac_status=$?
21858+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
21859+ (exit $ac_status); }; }; then
21860+
21861+aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21862+}'`
21863+# Check for a 64-bit object if we didn't find anything.
21864+if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21865+}'`; fi
21866+else
21867+ echo "$as_me: failed program was:" >&5
21868+sed 's/^/| /' conftest.$ac_ext >&5
21869+
21870+fi
21871+rm -f conftest.err conftest.$ac_objext \
21872+ conftest$ac_exeext conftest.$ac_ext
21873+if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21874+
21875+ hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
21876+ archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
21877+ else
21878+ if test "$host_cpu" = ia64; then
21879+ hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
21880+ allow_undefined_flag="-z nodefs"
21881+ archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
21882+ else
21883+ # Determine the default libpath from the value encoded in an empty executable.
21884+ cat >conftest.$ac_ext <<_ACEOF
21885+/* confdefs.h. */
21886+_ACEOF
21887+cat confdefs.h >>conftest.$ac_ext
21888+cat >>conftest.$ac_ext <<_ACEOF
21889+/* end confdefs.h. */
21890+
21891+int
21892+main ()
21893+{
21894+
21895+ ;
21896+ return 0;
21897+}
21898+_ACEOF
21899+rm -f conftest.$ac_objext conftest$ac_exeext
21900+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21901+ (eval $ac_link) 2>conftest.er1
21902+ ac_status=$?
21903+ grep -v '^ *+' conftest.er1 >conftest.err
21904+ rm -f conftest.er1
21905+ cat conftest.err >&5
21906+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
21907+ (exit $ac_status); } &&
21908+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21909+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21910+ (eval $ac_try) 2>&5
21911+ ac_status=$?
21912+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
21913+ (exit $ac_status); }; } &&
21914+ { ac_try='test -s conftest$ac_exeext'
21915+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21916+ (eval $ac_try) 2>&5
21917+ ac_status=$?
21918+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
21919+ (exit $ac_status); }; }; then
21920+
21921+aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21922+}'`
21923+# Check for a 64-bit object if we didn't find anything.
21924+if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21925+}'`; fi
21926+else
21927+ echo "$as_me: failed program was:" >&5
21928+sed 's/^/| /' conftest.$ac_ext >&5
21929+
21930+fi
21931+rm -f conftest.err conftest.$ac_objext \
21932+ conftest$ac_exeext conftest.$ac_ext
21933+if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21934+
21935+ hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
21936+ # Warning - without using the other run time loading flags,
21937+ # -berok will link without error, but may produce a broken library.
21938+ no_undefined_flag=' ${wl}-bernotok'
21939+ allow_undefined_flag=' ${wl}-berok'
21940+ # -bexpall does not export symbols beginning with underscore (_)
21941+ always_export_symbols=yes
21942+ # Exported symbols can be pulled into shared objects from archives
21943+ whole_archive_flag_spec=' '
21944+ archive_cmds_need_lc=yes
21945+ # This is similar to how AIX traditionally builds it's shared libraries.
21946+ archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
21947+ fi
21948+ fi
21949+ ;;
21950+
21951+ amigaos*)
21952+ archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
21953+ hardcode_libdir_flag_spec='-L$libdir'
21954+ hardcode_minus_L=yes
21955+ # see comment about different semantics on the GNU ld section
21956+ ld_shlibs=no
21957+ ;;
21958+
21959+ bsdi4*)
21960+ export_dynamic_flag_spec=-rdynamic
21961+ ;;
21962+
21963+ cygwin* | mingw* | pw32*)
21964+ # When not using gcc, we currently assume that we are using
21965+ # Microsoft Visual C++.
21966+ # hardcode_libdir_flag_spec is actually meaningless, as there is
21967+ # no search path for DLLs.
21968+ hardcode_libdir_flag_spec=' '
21969+ allow_undefined_flag=unsupported
21970+ # Tell ltmain to make .lib files, not .a files.
21971+ libext=lib
21972+ # Tell ltmain to make .dll files, not .so files.
21973+ shrext_cmds=".dll"
21974+ # FIXME: Setting linknames here is a bad hack.
21975+ archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21976+ # The linker will automatically build a .lib file if we build a DLL.
21977+ old_archive_From_new_cmds='true'
21978+ # FIXME: Should let the user specify the lib program.
21979+ old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
21980+ fix_srcfile_path='`cygpath -w "$srcfile"`'
21981+ enable_shared_with_static_runtimes=yes
21982+ ;;
21983+
21984+ darwin* | rhapsody*)
21985+ if test "$GXX" = yes ; then
21986+ archive_cmds_need_lc=no
21987+ case "$host_os" in
21988+ rhapsody* | darwin1.[012])
21989+ allow_undefined_flag='-undefined suppress'
21990+ ;;
21991+ *) # Darwin 1.3 on
21992+ if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21993+ allow_undefined_flag='-flat_namespace -undefined suppress'
21994+ else
21995+ case ${MACOSX_DEPLOYMENT_TARGET} in
21996+ 10.[012])
21997+ allow_undefined_flag='-flat_namespace -undefined suppress'
21998+ ;;
21999+ 10.*)
22000+ allow_undefined_flag='-undefined dynamic_lookup'
22001+ ;;
22002+ esac
22003+ fi
22004+ ;;
22005+ esac
22006+ lt_int_apple_cc_single_mod=no
22007+ output_verbose_link_cmd='echo'
22008+ if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
22009+ lt_int_apple_cc_single_mod=yes
22010+ fi
22011+ if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
22012+ archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22013+ else
22014+ archive_cmds='$CC -r ${wl}-bind_at_load -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'
22015+ fi
22016+ module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22017+ # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
22018+ if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
22019+ archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
22020+ else
22021+ archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
22022+ fi
22023+ module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
22024+ hardcode_direct=no
22025+ hardcode_automatic=yes
22026+ hardcode_shlibpath_var=unsupported
22027+ whole_archive_flag_spec='-all_load $convenience'
22028+ link_all_deplibs=yes
22029+ else
22030+ ld_shlibs=no
22031+ fi
22032+ ;;
22033+
22034+ dgux*)
22035+ archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22036+ hardcode_libdir_flag_spec='-L$libdir'
22037+ hardcode_shlibpath_var=no
22038+ ;;
22039+
22040+ freebsd1*)
22041+ ld_shlibs=no
22042+ ;;
22043+
22044+ # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22045+ # support. Future versions do this automatically, but an explicit c++rt0.o
22046+ # does not break anything, and helps significantly (at the cost of a little
22047+ # extra space).
22048+ freebsd2.2*)
22049+ archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22050+ hardcode_libdir_flag_spec='-R$libdir'
22051+ hardcode_direct=yes
22052+ hardcode_shlibpath_var=no
22053+ ;;
22054+
22055+ # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22056+ freebsd2*)
22057+ archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22058+ hardcode_direct=yes
22059+ hardcode_minus_L=yes
22060+ hardcode_shlibpath_var=no
22061+ ;;
22062+
22063+ # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22064+ freebsd* | kfreebsd*-gnu)
22065+ archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22066+ hardcode_libdir_flag_spec='-R$libdir'
22067+ hardcode_direct=yes
22068+ hardcode_shlibpath_var=no
22069+ ;;
22070+
22071+ hpux9*)
22072+ if test "$GCC" = yes; then
22073+ archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
22074+ else
22075+ archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
22076+ fi
22077+ hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
22078+ hardcode_libdir_separator=:
22079+ hardcode_direct=yes
22080+
22081+ # hardcode_minus_L: Not really in the search PATH,
22082+ # but as the default location of the library.
22083+ hardcode_minus_L=yes
22084+ export_dynamic_flag_spec='${wl}-E'
22085+ ;;
22086+
22087+ hpux10* | hpux11*)
22088+ if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22089+ case "$host_cpu" in
22090+ hppa*64*|ia64*)
22091+ archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22092+ ;;
22093+ *)
22094+ archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22095+ ;;
22096+ esac
22097+ else
22098+ case "$host_cpu" in
22099+ hppa*64*|ia64*)
22100+ archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
22101+ ;;
22102+ *)
22103+ archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22104+ ;;
22105+ esac
22106+ fi
22107+ if test "$with_gnu_ld" = no; then
22108+ case "$host_cpu" in
22109+ hppa*64*)
22110+ hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
22111+ hardcode_libdir_flag_spec_ld='+b $libdir'
22112+ hardcode_libdir_separator=:
22113+ hardcode_direct=no
22114+ hardcode_shlibpath_var=no
22115+ ;;
22116+ ia64*)
22117+ hardcode_libdir_flag_spec='-L$libdir'
22118+ hardcode_direct=no
22119+ hardcode_shlibpath_var=no
22120+
22121+ # hardcode_minus_L: Not really in the search PATH,
22122+ # but as the default location of the library.
22123+ hardcode_minus_L=yes
22124+ ;;
22125+ *)
22126+ hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
22127+ hardcode_libdir_separator=:
22128+ hardcode_direct=yes
22129+ export_dynamic_flag_spec='${wl}-E'
22130+
22131+ # hardcode_minus_L: Not really in the search PATH,
22132+ # but as the default location of the library.
22133+ hardcode_minus_L=yes
22134+ ;;
22135+ esac
22136+ fi
22137+ ;;
22138+
22139+ irix5* | irix6* | nonstopux*)
22140+ if test "$GCC" = yes; then
22141+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
22142+ else
22143+ archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
22144+ hardcode_libdir_flag_spec_ld='-rpath $libdir'
22145+ fi
22146+ hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
22147+ hardcode_libdir_separator=:
22148+ link_all_deplibs=yes
22149+ ;;
22150+
22151+ netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
22152+ if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22153+ archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22154+ else
22155+ archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22156+ fi
22157+ hardcode_libdir_flag_spec='-R$libdir'
22158+ hardcode_direct=yes
22159+ hardcode_shlibpath_var=no
22160+ ;;
22161+
22162+ newsos6)
22163+ archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22164+ hardcode_direct=yes
22165+ hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
22166+ hardcode_libdir_separator=:
22167+ hardcode_shlibpath_var=no
22168+ ;;
22169+
22170+ openbsd*)
22171+ hardcode_direct=yes
22172+ hardcode_shlibpath_var=no
22173+ if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22174+ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22175+ hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
22176+ export_dynamic_flag_spec='${wl}-E'
22177+ else
22178+ case $host_os in
22179+ openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22180+ archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22181+ hardcode_libdir_flag_spec='-R$libdir'
22182+ ;;
22183+ *)
22184+ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22185+ hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
22186+ ;;
22187+ esac
22188+ fi
22189+ ;;
22190+
22191+ os2*)
22192+ hardcode_libdir_flag_spec='-L$libdir'
22193+ hardcode_minus_L=yes
22194+ allow_undefined_flag=unsupported
22195+ archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
22196+ old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22197+ ;;
22198+
22199+ osf3*)
22200+ if test "$GCC" = yes; then
22201+ allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
22202+ archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
22203+ else
22204+ allow_undefined_flag=' -expect_unresolved \*'
22205+ archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
22206+ fi
22207+ hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
22208+ hardcode_libdir_separator=:
22209+ ;;
22210+
22211+ osf4* | osf5*) # as osf3* with the addition of -msym flag
22212+ if test "$GCC" = yes; then
22213+ allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
22214+ archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
22215+ hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
22216+ else
22217+ allow_undefined_flag=' -expect_unresolved \*'
22218+ archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
22219+ archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
22220+ $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
22221+
22222+ # Both c and cxx compiler support -rpath directly
22223+ hardcode_libdir_flag_spec='-rpath $libdir'
22224+ fi
22225+ hardcode_libdir_separator=:
22226+ ;;
22227+
22228+ sco3.2v5*)
22229+ archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22230+ hardcode_shlibpath_var=no
22231+ export_dynamic_flag_spec='${wl}-Bexport'
22232+ runpath_var=LD_RUN_PATH
22233+ hardcode_runpath_var=yes
22234+ ;;
22235+
22236+ solaris*)
22237+ no_undefined_flag=' -z text'
22238+ if test "$GCC" = yes; then
22239+ archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22240+ archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22241+ $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22242+ else
22243+ archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22244+ archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22245+ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22246+ fi
22247+ hardcode_libdir_flag_spec='-R$libdir'
22248+ hardcode_shlibpath_var=no
22249+ case $host_os in
22250+ solaris2.[0-5] | solaris2.[0-5].*) ;;
22251+ *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22252+ whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
22253+ esac
22254+ link_all_deplibs=yes
22255+ ;;
22256+
22257+ sunos4*)
22258+ if test "x$host_vendor" = xsequent; then
22259+ # Use $CC to link under sequent, because it throws in some extra .o
22260+ # files that make .init and .fini sections work.
22261+ archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22262+ else
22263+ archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22264+ fi
22265+ hardcode_libdir_flag_spec='-L$libdir'
22266+ hardcode_direct=yes
22267+ hardcode_minus_L=yes
22268+ hardcode_shlibpath_var=no
22269+ ;;
22270+
22271+ sysv4)
22272+ case $host_vendor in
22273+ sni)
22274+ archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22275+ hardcode_direct=yes # is this really true???
22276+ ;;
22277+ siemens)
22278+ ## LD is ld it makes a PLAMLIB
22279+ ## CC just makes a GrossModule.
22280+ archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22281+ reload_cmds='$CC -r -o $output$reload_objs'
22282+ hardcode_direct=no
22283+ ;;
22284+ motorola)
22285+ archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22286+ hardcode_direct=no #Motorola manual says yes, but my tests say they lie
22287+ ;;
22288+ esac
22289+ runpath_var='LD_RUN_PATH'
22290+ hardcode_shlibpath_var=no
22291+ ;;
22292+
22293+ sysv4.3*)
22294+ archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22295+ hardcode_shlibpath_var=no
22296+ export_dynamic_flag_spec='-Bexport'
22297+ ;;
22298+
22299+ sysv4*MP*)
22300+ if test -d /usr/nec; then
22301+ archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22302+ hardcode_shlibpath_var=no
22303+ runpath_var=LD_RUN_PATH
22304+ hardcode_runpath_var=yes
22305+ ld_shlibs=yes
22306+ fi
22307+ ;;
22308+
22309+ sysv4.2uw2*)
22310+ archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22311+ hardcode_direct=yes
22312+ hardcode_minus_L=no
22313+ hardcode_shlibpath_var=no
22314+ hardcode_runpath_var=yes
22315+ runpath_var=LD_RUN_PATH
22316+ ;;
22317+
22318+ sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
22319+ no_undefined_flag='${wl}-z ${wl}text'
22320+ if test "$GCC" = yes; then
22321+ archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22322+ else
22323+ archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22324+ fi
22325+ runpath_var='LD_RUN_PATH'
22326+ hardcode_shlibpath_var=no
22327+ ;;
22328+
22329+ sysv5*)
22330+ no_undefined_flag=' -z text'
22331+ # $CC -shared without GNU ld will not create a library from C++
22332+ # object files and a static libstdc++, better avoid it by now
22333+ archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22334+ archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22335+ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22336+ hardcode_libdir_flag_spec=
22337+ hardcode_shlibpath_var=no
22338+ runpath_var='LD_RUN_PATH'
22339+ ;;
22340+
22341+ uts4*)
22342+ archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22343+ hardcode_libdir_flag_spec='-L$libdir'
22344+ hardcode_shlibpath_var=no
22345+ ;;
22346+
22347+ *)
22348+ ld_shlibs=no
22349+ ;;
22350+ esac
22351+ fi
22352+
22353+echo "$as_me:$LINENO: result: $ld_shlibs" >&5
22354+echo "${ECHO_T}$ld_shlibs" >&6
22355+test "$ld_shlibs" = no && can_build_shared=no
22356+
22357+variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22358+if test "$GCC" = yes; then
22359+ variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22360+fi
22361+
22362+#
22363+# Do we need to explicitly link libc?
22364+#
22365+case "x$archive_cmds_need_lc" in
22366+x|xyes)
22367+ # Assume -lc should be added
22368+ archive_cmds_need_lc=yes
22369+
22370+ if test "$enable_shared" = yes && test "$GCC" = yes; then
22371+ case $archive_cmds in
22372+ *'~'*)
22373+ # FIXME: we may have to deal with multi-command sequences.
22374+ ;;
22375+ '$CC '*)
22376+ # Test whether the compiler implicitly links with -lc since on some
22377+ # systems, -lgcc has to come before -lc. If gcc already passes -lc
22378+ # to ld, don't add -lc before -lgcc.
22379+ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22380+echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22381+ $rm conftest*
22382+ printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22383+
22384+ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22385+ (eval $ac_compile) 2>&5
22386+ ac_status=$?
22387+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
22388+ (exit $ac_status); } 2>conftest.err; then
22389+ soname=conftest
22390+ lib=conftest
22391+ libobjs=conftest.$ac_objext
22392+ deplibs=
22393+ wl=$lt_prog_compiler_wl
22394+ compiler_flags=-v
22395+ linker_flags=-v
22396+ verstring=
22397+ output_objdir=.
22398+ libname=conftest
22399+ lt_save_allow_undefined_flag=$allow_undefined_flag
22400+ allow_undefined_flag=
22401+ if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22402+ (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22403+ ac_status=$?
22404+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
22405+ (exit $ac_status); }
22406+ then
22407+ archive_cmds_need_lc=no
22408+ else
22409+ archive_cmds_need_lc=yes
22410+ fi
22411+ allow_undefined_flag=$lt_save_allow_undefined_flag
22412+ else
22413+ cat conftest.err 1>&5
22414+ fi
22415+ $rm conftest*
22416+ echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
22417+echo "${ECHO_T}$archive_cmds_need_lc" >&6
22418+ ;;
22419+ esac
22420+ fi
22421+ ;;
22422+esac
22423+
22424+echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22425+echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22426+library_names_spec=
22427+libname_spec='lib$name'
22428+soname_spec=
22429+shrext_cmds=".so"
22430+postinstall_cmds=
22431+postuninstall_cmds=
22432+finish_cmds=
22433+finish_eval=
22434+shlibpath_var=
22435+shlibpath_overrides_runpath=unknown
22436+version_type=none
22437+dynamic_linker="$host_os ld.so"
22438+sys_lib_dlsearch_path_spec="/lib /usr/lib"
22439+if test "$GCC" = yes; then
22440+ sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22441+ if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22442+ # if the path contains ";" then we assume it to be the separator
22443+ # otherwise default to the standard path separator (i.e. ":") - it is
22444+ # assumed that no part of a normal pathname contains ";" but that should
22445+ # okay in the real world where ";" in dirpaths is itself problematic.
22446+ sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22447+ else
22448+ sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22449+ fi
22450+else
22451+ sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22452+fi
22453+need_lib_prefix=unknown
22454+hardcode_into_libs=no
22455+
22456+# when you set need_version to no, make sure it does not cause -set_version
22457+# flags to be left without arguments
22458+need_version=unknown
22459+
22460+case $host_os in
22461+aix3*)
22462+ version_type=linux
22463+ library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22464+ shlibpath_var=LIBPATH
22465+
22466+ # AIX 3 has no versioning support, so we append a major version to the name.
22467+ soname_spec='${libname}${release}${shared_ext}$major'
22468+ ;;
22469+
22470+aix4* | aix5*)
22471+ version_type=linux
22472+ need_lib_prefix=no
22473+ need_version=no
22474+ hardcode_into_libs=yes
22475+ if test "$host_cpu" = ia64; then
22476+ # AIX 5 supports IA64
22477+ library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22478+ shlibpath_var=LD_LIBRARY_PATH
22479+ else
22480+ # With GCC up to 2.95.x, collect2 would create an import file
22481+ # for dependence libraries. The import file would start with
22482+ # the line `#! .'. This would cause the generated library to
22483+ # depend on `.', always an invalid library. This was fixed in
22484+ # development snapshots of GCC prior to 3.0.
22485+ case $host_os in
22486+ aix4 | aix4.[01] | aix4.[01].*)
22487+ if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22488+ echo ' yes '
22489+ echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22490+ :
22491+ else
22492+ can_build_shared=no
22493+ fi
22494+ ;;
22495+ esac
22496+ # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22497+ # soname into executable. Probably we can add versioning support to
22498+ # collect2, so additional links can be useful in future.
22499+ if test "$aix_use_runtimelinking" = yes; then
22500+ # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22501+ # instead of lib<name>.a to let people know that these are not
22502+ # typical AIX shared libraries.
22503+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22504+ else
22505+ # We preserve .a as extension for shared libraries through AIX4.2
22506+ # and later when we are not doing run time linking.
22507+ library_names_spec='${libname}${release}.a $libname.a'
22508+ soname_spec='${libname}${release}${shared_ext}$major'
22509+ fi
22510+ shlibpath_var=LIBPATH
22511+ fi
22512+ ;;
22513+
22514+amigaos*)
22515+ library_names_spec='$libname.ixlibrary $libname.a'
22516+ # Create ${libname}_ixlibrary.a entries in /sys/libs.
22517+ 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'
22518+ ;;
22519+
22520+beos*)
22521+ library_names_spec='${libname}${shared_ext}'
22522+ dynamic_linker="$host_os ld.so"
22523+ shlibpath_var=LIBRARY_PATH
22524+ ;;
22525+
22526+bsdi4*)
22527+ version_type=linux
22528+ need_version=no
22529+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22530+ soname_spec='${libname}${release}${shared_ext}$major'
22531+ finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22532+ shlibpath_var=LD_LIBRARY_PATH
22533+ sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22534+ sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22535+ # the default ld.so.conf also contains /usr/contrib/lib and
22536+ # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22537+ # libtool to hard-code these into programs
22538+ ;;
22539+
22540+cygwin* | mingw* | pw32*)
22541+ version_type=windows
22542+ shrext_cmds=".dll"
22543+ need_version=no
22544+ need_lib_prefix=no
22545+
22546+ case $GCC,$host_os in
22547+ yes,cygwin* | yes,mingw* | yes,pw32*)
22548+ library_names_spec='$libname.dll.a'
22549+ # DLL is installed to $(libdir)/../bin by postinstall_cmds
22550+ postinstall_cmds='base_file=`basename \${file}`~
22551+ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22552+ dldir=$destdir/`dirname \$dlpath`~
22553+ test -d \$dldir || mkdir -p \$dldir~
22554+ $install_prog $dir/$dlname \$dldir/$dlname'
22555+ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22556+ dlpath=$dir/\$dldll~
22557+ $rm \$dlpath'
22558+ shlibpath_overrides_runpath=yes
22559+
22560+ case $host_os in
22561+ cygwin*)
22562+ # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22563+ soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22564+ sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22565+ ;;
22566+ mingw*)
22567+ # MinGW DLLs use traditional 'lib' prefix
22568+ soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22569+ sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22570+ if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22571+ # It is most probably a Windows format PATH printed by
22572+ # mingw gcc, but we are running on Cygwin. Gcc prints its search
22573+ # path with ; separators, and with drive letters. We can handle the
22574+ # drive letters (cygwin fileutils understands them), so leave them,
22575+ # especially as we might pass files found there to a mingw objdump,
22576+ # which wouldn't understand a cygwinified path. Ahh.
22577+ sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22578+ else
22579+ sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22580+ fi
22581+ ;;
22582+ pw32*)
22583+ # pw32 DLLs use 'pw' prefix rather than 'lib'
22584+ library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22585+ ;;
22586+ esac
22587+ ;;
22588+
22589+ *)
22590+ library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22591+ ;;
22592+ esac
22593+ dynamic_linker='Win32 ld.exe'
22594+ # FIXME: first we should search . and the directory the executable is in
22595+ shlibpath_var=PATH
22596+ ;;
22597+
22598+darwin* | rhapsody*)
22599+ dynamic_linker="$host_os dyld"
22600+ version_type=darwin
22601+ need_lib_prefix=no
22602+ need_version=no
22603+ library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22604+ soname_spec='${libname}${release}${major}$shared_ext'
22605+ shlibpath_overrides_runpath=yes
22606+ shlibpath_var=DYLD_LIBRARY_PATH
22607+ shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
22608+ # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22609+ if test "$GCC" = yes; then
22610+ sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
22611+ else
22612+ sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22613+ fi
22614+ sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22615+ ;;
22616+
22617+dgux*)
22618+ version_type=linux
22619+ need_lib_prefix=no
22620+ need_version=no
22621+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22622+ soname_spec='${libname}${release}${shared_ext}$major'
22623+ shlibpath_var=LD_LIBRARY_PATH
22624+ ;;
22625+
22626+freebsd1*)
22627+ dynamic_linker=no
22628+ ;;
22629+
22630+kfreebsd*-gnu)
22631+ version_type=linux
22632+ need_lib_prefix=no
22633+ need_version=no
22634+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22635+ soname_spec='${libname}${release}${shared_ext}$major'
22636+ shlibpath_var=LD_LIBRARY_PATH
22637+ shlibpath_overrides_runpath=no
22638+ hardcode_into_libs=yes
22639+ dynamic_linker='GNU ld.so'
22640+ ;;
22641+
22642+freebsd*)
22643+ objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22644+ version_type=freebsd-$objformat
22645+ case $version_type in
22646+ freebsd-elf*)
22647+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22648+ need_version=no
22649+ need_lib_prefix=no
22650+ ;;
22651+ freebsd-*)
22652+ library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22653+ need_version=yes
22654+ ;;
22655+ esac
22656+ shlibpath_var=LD_LIBRARY_PATH
22657+ case $host_os in
22658+ freebsd2*)
22659+ shlibpath_overrides_runpath=yes
22660+ ;;
22661+ freebsd3.01* | freebsdelf3.01*)
22662+ shlibpath_overrides_runpath=yes
22663+ hardcode_into_libs=yes
22664+ ;;
22665+ *) # from 3.2 on
22666+ shlibpath_overrides_runpath=no
22667+ hardcode_into_libs=yes
22668+ ;;
22669+ esac
22670+ ;;
22671+
22672+gnu*)
22673+ version_type=linux
22674+ need_lib_prefix=no
22675+ need_version=no
22676+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22677+ soname_spec='${libname}${release}${shared_ext}$major'
22678+ shlibpath_var=LD_LIBRARY_PATH
22679+ hardcode_into_libs=yes
22680+ ;;
22681+
22682+hpux9* | hpux10* | hpux11*)
22683+ # Give a soname corresponding to the major version so that dld.sl refuses to
22684+ # link against other versions.
22685+ version_type=sunos
22686+ need_lib_prefix=no
22687+ need_version=no
22688+ case "$host_cpu" in
22689+ ia64*)
22690+ shrext_cmds='.so'
22691+ hardcode_into_libs=yes
22692+ dynamic_linker="$host_os dld.so"
22693+ shlibpath_var=LD_LIBRARY_PATH
22694+ shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22695+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22696+ soname_spec='${libname}${release}${shared_ext}$major'
22697+ if test "X$HPUX_IA64_MODE" = X32; then
22698+ sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22699+ else
22700+ sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22701+ fi
22702+ sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22703+ ;;
22704+ hppa*64*)
22705+ shrext_cmds='.sl'
22706+ hardcode_into_libs=yes
22707+ dynamic_linker="$host_os dld.sl"
22708+ shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22709+ shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22710+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22711+ soname_spec='${libname}${release}${shared_ext}$major'
22712+ sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22713+ sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22714+ ;;
22715+ *)
22716+ shrext_cmds='.sl'
22717+ dynamic_linker="$host_os dld.sl"
22718+ shlibpath_var=SHLIB_PATH
22719+ shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22720+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22721+ soname_spec='${libname}${release}${shared_ext}$major'
22722+ ;;
22723+ esac
22724+ # HP-UX runs *really* slowly unless shared libraries are mode 555.
22725+ postinstall_cmds='chmod 555 $lib'
22726+ ;;
22727+
22728+irix5* | irix6* | nonstopux*)
22729+ case $host_os in
22730+ nonstopux*) version_type=nonstopux ;;
22731+ *)
22732+ if test "$lt_cv_prog_gnu_ld" = yes; then
22733+ version_type=linux
22734+ else
22735+ version_type=irix
22736+ fi ;;
22737+ esac
22738+ need_lib_prefix=no
22739+ need_version=no
22740+ soname_spec='${libname}${release}${shared_ext}$major'
22741+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22742+ case $host_os in
22743+ irix5* | nonstopux*)
22744+ libsuff= shlibsuff=
22745+ ;;
22746+ *)
22747+ case $LD in # libtool.m4 will add one of these switches to LD
22748+ *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22749+ libsuff= shlibsuff= libmagic=32-bit;;
22750+ *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22751+ libsuff=32 shlibsuff=N32 libmagic=N32;;
22752+ *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22753+ libsuff=64 shlibsuff=64 libmagic=64-bit;;
22754+ *) libsuff= shlibsuff= libmagic=never-match;;
22755+ esac
22756+ ;;
22757+ esac
22758+ shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22759+ shlibpath_overrides_runpath=no
22760+ sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22761+ sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22762+ hardcode_into_libs=yes
22763+ ;;
22764+
22765+# No shared lib support for Linux oldld, aout, or coff.
22766+linux*oldld* | linux*aout* | linux*coff*)
22767+ dynamic_linker=no
22768+ ;;
22769+
22770+# This must be Linux ELF.
22771+linux*)
22772+ version_type=linux
22773+ need_lib_prefix=no
22774+ need_version=no
22775+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22776+ soname_spec='${libname}${release}${shared_ext}$major'
22777+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22778+ shlibpath_var=LD_LIBRARY_PATH
22779+ shlibpath_overrides_runpath=no
22780+ # This implies no fast_install, which is unacceptable.
22781+ # Some rework will be needed to allow for fast_install
22782+ # before this can be enabled.
22783+ hardcode_into_libs=yes
22784+
22785+ # Append ld.so.conf contents to the search path
22786+ if test -f /etc/ld.so.conf; then
22787+ lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22788+ sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22789+ fi
22790+
22791+ # We used to test for /lib/ld.so.1 and disable shared libraries on
22792+ # powerpc, because MkLinux only supported shared libraries with the
22793+ # GNU dynamic linker. Since this was broken with cross compilers,
22794+ # most powerpc-linux boxes support dynamic linking these days and
22795+ # people can always --disable-shared, the test was removed, and we
22796+ # assume the GNU/Linux dynamic linker is in use.
22797+ dynamic_linker='GNU/Linux ld.so'
22798+ ;;
22799+
22800+netbsdelf*-gnu)
22801+ version_type=linux
22802+ need_lib_prefix=no
22803+ need_version=no
22804+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22805+ soname_spec='${libname}${release}${shared_ext}$major'
22806+ shlibpath_var=LD_LIBRARY_PATH
22807+ shlibpath_overrides_runpath=no
22808+ hardcode_into_libs=yes
22809+ dynamic_linker='NetBSD ld.elf_so'
22810+ ;;
22811+
22812+knetbsd*-gnu)
22813+ version_type=linux
22814+ need_lib_prefix=no
22815+ need_version=no
22816+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22817+ soname_spec='${libname}${release}${shared_ext}$major'
22818+ shlibpath_var=LD_LIBRARY_PATH
22819+ shlibpath_overrides_runpath=no
22820+ hardcode_into_libs=yes
22821+ dynamic_linker='GNU ld.so'
22822+ ;;
22823+
22824+netbsd*)
22825+ version_type=sunos
22826+ need_lib_prefix=no
22827+ need_version=no
22828+ if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22829+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22830+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22831+ dynamic_linker='NetBSD (a.out) ld.so'
22832+ else
22833+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22834+ soname_spec='${libname}${release}${shared_ext}$major'
22835+ dynamic_linker='NetBSD ld.elf_so'
22836+ fi
22837+ shlibpath_var=LD_LIBRARY_PATH
22838+ shlibpath_overrides_runpath=yes
22839+ hardcode_into_libs=yes
22840+ ;;
22841+
22842+newsos6)
22843+ version_type=linux
22844+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22845+ shlibpath_var=LD_LIBRARY_PATH
22846+ shlibpath_overrides_runpath=yes
22847+ ;;
22848+
22849+nto-qnx*)
22850+ version_type=linux
22851+ need_lib_prefix=no
22852+ need_version=no
22853+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22854+ soname_spec='${libname}${release}${shared_ext}$major'
22855+ shlibpath_var=LD_LIBRARY_PATH
22856+ shlibpath_overrides_runpath=yes
22857+ ;;
22858+
22859+openbsd*)
22860+ version_type=sunos
22861+ need_lib_prefix=no
22862+ need_version=yes
22863+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22864+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22865+ shlibpath_var=LD_LIBRARY_PATH
22866+ if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22867+ case $host_os in
22868+ openbsd2.[89] | openbsd2.[89].*)
22869+ shlibpath_overrides_runpath=no
22870+ ;;
22871+ *)
22872+ shlibpath_overrides_runpath=yes
22873+ ;;
22874+ esac
22875+ else
22876+ shlibpath_overrides_runpath=yes
22877+ fi
22878+ ;;
22879+
22880+os2*)
22881+ libname_spec='$name'
22882+ shrext_cmds=".dll"
22883+ need_lib_prefix=no
22884+ library_names_spec='$libname${shared_ext} $libname.a'
22885+ dynamic_linker='OS/2 ld.exe'
22886+ shlibpath_var=LIBPATH
22887+ ;;
22888+
22889+osf3* | osf4* | osf5*)
22890+ version_type=osf
22891+ need_lib_prefix=no
22892+ need_version=no
22893+ soname_spec='${libname}${release}${shared_ext}$major'
22894+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22895+ shlibpath_var=LD_LIBRARY_PATH
22896+ sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22897+ sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22898+ ;;
22899+
22900+sco3.2v5*)
22901+ version_type=osf
22902+ soname_spec='${libname}${release}${shared_ext}$major'
22903+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22904+ shlibpath_var=LD_LIBRARY_PATH
22905+ ;;
22906+
22907+solaris*)
22908+ version_type=linux
22909+ need_lib_prefix=no
22910+ need_version=no
22911+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22912+ soname_spec='${libname}${release}${shared_ext}$major'
22913+ shlibpath_var=LD_LIBRARY_PATH
22914+ shlibpath_overrides_runpath=yes
22915+ hardcode_into_libs=yes
22916+ # ldd complains unless libraries are executable
22917+ postinstall_cmds='chmod +x $lib'
22918+ ;;
22919+
22920+sunos4*)
22921+ version_type=sunos
22922+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22923+ finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22924+ shlibpath_var=LD_LIBRARY_PATH
22925+ shlibpath_overrides_runpath=yes
22926+ if test "$with_gnu_ld" = yes; then
22927+ need_lib_prefix=no
22928+ fi
22929+ need_version=yes
22930+ ;;
22931+
22932+sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22933+ version_type=linux
22934+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22935+ soname_spec='${libname}${release}${shared_ext}$major'
22936+ shlibpath_var=LD_LIBRARY_PATH
22937+ case $host_vendor in
22938+ sni)
22939+ shlibpath_overrides_runpath=no
22940+ need_lib_prefix=no
22941+ export_dynamic_flag_spec='${wl}-Blargedynsym'
22942+ runpath_var=LD_RUN_PATH
22943+ ;;
22944+ siemens)
22945+ need_lib_prefix=no
22946+ ;;
22947+ motorola)
22948+ need_lib_prefix=no
22949+ need_version=no
22950+ shlibpath_overrides_runpath=no
22951+ sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22952+ ;;
22953+ esac
22954+ ;;
22955+
22956+sysv4*MP*)
22957+ if test -d /usr/nec ;then
22958+ version_type=linux
22959+ library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22960+ soname_spec='$libname${shared_ext}.$major'
22961+ shlibpath_var=LD_LIBRARY_PATH
22962+ fi
22963+ ;;
22964+
22965+uts4*)
22966+ version_type=linux
22967+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22968+ soname_spec='${libname}${release}${shared_ext}$major'
22969+ shlibpath_var=LD_LIBRARY_PATH
22970+ ;;
22971+
22972+*)
22973+ dynamic_linker=no
22974+ ;;
22975+esac
22976+echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22977+echo "${ECHO_T}$dynamic_linker" >&6
22978+test "$dynamic_linker" = no && can_build_shared=no
22979+
22980+echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22981+echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22982+hardcode_action=
22983+if test -n "$hardcode_libdir_flag_spec" || \
22984+ test -n "$runpath_var " || \
22985+ test "X$hardcode_automatic"="Xyes" ; then
22986+
22987+ # We can hardcode non-existant directories.
22988+ if test "$hardcode_direct" != no &&
22989+ # If the only mechanism to avoid hardcoding is shlibpath_var, we
22990+ # have to relink, otherwise we might link with an installed library
22991+ # when we should be linking with a yet-to-be-installed one
22992+ ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
22993+ test "$hardcode_minus_L" != no; then
22994+ # Linking always hardcodes the temporary library directory.
22995+ hardcode_action=relink
22996+ else
22997+ # We can link without hardcoding, and we can hardcode nonexisting dirs.
22998+ hardcode_action=immediate
22999+ fi
23000+else
23001+ # We cannot hardcode anything, or else we can only hardcode existing
23002+ # directories.
23003+ hardcode_action=unsupported
23004+fi
23005+echo "$as_me:$LINENO: result: $hardcode_action" >&5
23006+echo "${ECHO_T}$hardcode_action" >&6
23007+
23008+if test "$hardcode_action" = relink; then
23009+ # Fast installation is not supported
23010+ enable_fast_install=no
23011+elif test "$shlibpath_overrides_runpath" = yes ||
23012+ test "$enable_shared" = no; then
23013+ # Fast installation is not necessary
23014+ enable_fast_install=needless
23015+fi
23016+
23017+striplib=
23018+old_striplib=
23019+echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
23020+echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
23021+if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
23022+ test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
23023+ test -z "$striplib" && striplib="$STRIP --strip-unneeded"
23024+ echo "$as_me:$LINENO: result: yes" >&5
23025+echo "${ECHO_T}yes" >&6
23026+else
23027+# FIXME - insert some real tests, host_os isn't really good enough
23028+ case $host_os in
23029+ darwin*)
23030+ if test -n "$STRIP" ; then
23031+ striplib="$STRIP -x"
23032+ echo "$as_me:$LINENO: result: yes" >&5
23033+echo "${ECHO_T}yes" >&6
23034+ else
23035+ echo "$as_me:$LINENO: result: no" >&5
23036+echo "${ECHO_T}no" >&6
23037+fi
23038+ ;;
23039+ *)
23040+ echo "$as_me:$LINENO: result: no" >&5
23041+echo "${ECHO_T}no" >&6
23042+ ;;
23043+ esac
23044+fi
23045+
23046+if test "x$enable_dlopen" != xyes; then
23047+ enable_dlopen=unknown
23048+ enable_dlopen_self=unknown
23049+ enable_dlopen_self_static=unknown
23050+else
23051+ lt_cv_dlopen=no
23052+ lt_cv_dlopen_libs=
23053+
23054+ case $host_os in
23055+ beos*)
23056+ lt_cv_dlopen="load_add_on"
23057+ lt_cv_dlopen_libs=
23058+ lt_cv_dlopen_self=yes
23059+ ;;
23060+
23061+ mingw* | pw32*)
23062+ lt_cv_dlopen="LoadLibrary"
23063+ lt_cv_dlopen_libs=
23064+ ;;
23065+
23066+ cygwin*)
23067+ lt_cv_dlopen="dlopen"
23068+ lt_cv_dlopen_libs=
23069+ ;;
23070+
23071+ darwin*)
23072+ # if libdl is installed we need to link against it
23073+ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23074+echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23075+if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23076+ echo $ECHO_N "(cached) $ECHO_C" >&6
23077+else
23078+ ac_check_lib_save_LIBS=$LIBS
23079+LIBS="-ldl $LIBS"
23080+cat >conftest.$ac_ext <<_ACEOF
23081+/* confdefs.h. */
23082+_ACEOF
23083+cat confdefs.h >>conftest.$ac_ext
23084+cat >>conftest.$ac_ext <<_ACEOF
23085+/* end confdefs.h. */
23086+
23087+/* Override any gcc2 internal prototype to avoid an error. */
23088+#ifdef __cplusplus
23089+extern "C"
23090+#endif
23091+/* We use char because int might match the return type of a gcc2
23092+ builtin and then its argument prototype would still apply. */
23093+char dlopen ();
23094+int
23095+main ()
23096+{
23097+dlopen ();
23098+ ;
23099+ return 0;
23100+}
23101+_ACEOF
23102+rm -f conftest.$ac_objext conftest$ac_exeext
23103+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23104+ (eval $ac_link) 2>conftest.er1
23105+ ac_status=$?
23106+ grep -v '^ *+' conftest.er1 >conftest.err
23107+ rm -f conftest.er1
23108+ cat conftest.err >&5
23109+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
23110+ (exit $ac_status); } &&
23111+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23112+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23113+ (eval $ac_try) 2>&5
23114+ ac_status=$?
23115+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
23116+ (exit $ac_status); }; } &&
23117+ { ac_try='test -s conftest$ac_exeext'
23118+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23119+ (eval $ac_try) 2>&5
23120+ ac_status=$?
23121+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
23122+ (exit $ac_status); }; }; then
23123+ ac_cv_lib_dl_dlopen=yes
23124+else
23125+ echo "$as_me: failed program was:" >&5
23126+sed 's/^/| /' conftest.$ac_ext >&5
23127+
23128+ac_cv_lib_dl_dlopen=no
23129+fi
23130+rm -f conftest.err conftest.$ac_objext \
23131+ conftest$ac_exeext conftest.$ac_ext
23132+LIBS=$ac_check_lib_save_LIBS
23133+fi
23134+echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23135+echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23136+if test $ac_cv_lib_dl_dlopen = yes; then
23137+ lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23138+else
23139+
23140+ lt_cv_dlopen="dyld"
23141+ lt_cv_dlopen_libs=
23142+ lt_cv_dlopen_self=yes
23143+
23144+fi
23145+
23146+ ;;
23147+
23148+ *)
23149+ echo "$as_me:$LINENO: checking for shl_load" >&5
23150+echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
23151+if test "${ac_cv_func_shl_load+set}" = set; then
23152+ echo $ECHO_N "(cached) $ECHO_C" >&6
23153+else
23154+ cat >conftest.$ac_ext <<_ACEOF
23155+/* confdefs.h. */
23156+_ACEOF
23157+cat confdefs.h >>conftest.$ac_ext
23158+cat >>conftest.$ac_ext <<_ACEOF
23159+/* end confdefs.h. */
23160+/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
23161+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
23162+#define shl_load innocuous_shl_load
23163+
23164+/* System header to define __stub macros and hopefully few prototypes,
23165+ which can conflict with char shl_load (); below.
23166+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23167+ <limits.h> exists even on freestanding compilers. */
23168+
23169+#ifdef __STDC__
23170+# include <limits.h>
23171+#else
23172+# include <assert.h>
23173+#endif
23174+
23175+#undef shl_load
23176+
23177+/* Override any gcc2 internal prototype to avoid an error. */
23178+#ifdef __cplusplus
23179+extern "C"
23180+{
23181+#endif
23182+/* We use char because int might match the return type of a gcc2
23183+ builtin and then its argument prototype would still apply. */
23184+char shl_load ();
23185+/* The GNU C library defines this for functions which it implements
23186+ to always fail with ENOSYS. Some functions are actually named
23187+ something starting with __ and the normal name is an alias. */
23188+#if defined (__stub_shl_load) || defined (__stub___shl_load)
23189+choke me
23190+#else
23191+char (*f) () = shl_load;
23192+#endif
23193+#ifdef __cplusplus
23194+}
23195+#endif
23196+
23197+int
23198+main ()
23199+{
23200+return f != shl_load;
23201+ ;
23202+ return 0;
23203+}
23204+_ACEOF
23205+rm -f conftest.$ac_objext conftest$ac_exeext
23206+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23207+ (eval $ac_link) 2>conftest.er1
23208+ ac_status=$?
23209+ grep -v '^ *+' conftest.er1 >conftest.err
23210+ rm -f conftest.er1
23211+ cat conftest.err >&5
23212+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
23213+ (exit $ac_status); } &&
23214+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23215+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23216+ (eval $ac_try) 2>&5
23217+ ac_status=$?
23218+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
23219+ (exit $ac_status); }; } &&
23220+ { ac_try='test -s conftest$ac_exeext'
23221+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23222+ (eval $ac_try) 2>&5
23223+ ac_status=$?
23224+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
23225+ (exit $ac_status); }; }; then
23226+ ac_cv_func_shl_load=yes
23227+else
23228+ echo "$as_me: failed program was:" >&5
23229+sed 's/^/| /' conftest.$ac_ext >&5
23230+
23231+ac_cv_func_shl_load=no
23232+fi
23233+rm -f conftest.err conftest.$ac_objext \
23234+ conftest$ac_exeext conftest.$ac_ext
23235+fi
23236+echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23237+echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23238+if test $ac_cv_func_shl_load = yes; then
23239+ lt_cv_dlopen="shl_load"
23240+else
23241+ echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23242+echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23243+if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23244+ echo $ECHO_N "(cached) $ECHO_C" >&6
23245+else
23246+ ac_check_lib_save_LIBS=$LIBS
23247+LIBS="-ldld $LIBS"
23248+cat >conftest.$ac_ext <<_ACEOF
23249+/* confdefs.h. */
23250+_ACEOF
23251+cat confdefs.h >>conftest.$ac_ext
23252+cat >>conftest.$ac_ext <<_ACEOF
23253+/* end confdefs.h. */
23254+
23255+/* Override any gcc2 internal prototype to avoid an error. */
23256+#ifdef __cplusplus
23257+extern "C"
23258+#endif
23259+/* We use char because int might match the return type of a gcc2
23260+ builtin and then its argument prototype would still apply. */
23261+char shl_load ();
23262+int
23263+main ()
23264+{
23265+shl_load ();
23266+ ;
23267+ return 0;
23268+}
23269+_ACEOF
23270+rm -f conftest.$ac_objext conftest$ac_exeext
23271+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23272+ (eval $ac_link) 2>conftest.er1
23273+ ac_status=$?
23274+ grep -v '^ *+' conftest.er1 >conftest.err
23275+ rm -f conftest.er1
23276+ cat conftest.err >&5
23277+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
23278+ (exit $ac_status); } &&
23279+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23280+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23281+ (eval $ac_try) 2>&5
23282+ ac_status=$?
23283+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
23284+ (exit $ac_status); }; } &&
23285+ { ac_try='test -s conftest$ac_exeext'
23286+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23287+ (eval $ac_try) 2>&5
23288+ ac_status=$?
23289+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
23290+ (exit $ac_status); }; }; then
23291+ ac_cv_lib_dld_shl_load=yes
23292+else
23293+ echo "$as_me: failed program was:" >&5
23294+sed 's/^/| /' conftest.$ac_ext >&5
23295+
23296+ac_cv_lib_dld_shl_load=no
23297+fi
23298+rm -f conftest.err conftest.$ac_objext \
23299+ conftest$ac_exeext conftest.$ac_ext
23300+LIBS=$ac_check_lib_save_LIBS
23301+fi
23302+echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23303+echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23304+if test $ac_cv_lib_dld_shl_load = yes; then
23305+ lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23306+else
23307+ echo "$as_me:$LINENO: checking for dlopen" >&5
23308+echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23309+if test "${ac_cv_func_dlopen+set}" = set; then
23310+ echo $ECHO_N "(cached) $ECHO_C" >&6
23311+else
23312+ cat >conftest.$ac_ext <<_ACEOF
23313+/* confdefs.h. */
23314+_ACEOF
23315+cat confdefs.h >>conftest.$ac_ext
23316+cat >>conftest.$ac_ext <<_ACEOF
23317+/* end confdefs.h. */
23318+/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23319+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
23320+#define dlopen innocuous_dlopen
23321+
23322+/* System header to define __stub macros and hopefully few prototypes,
23323+ which can conflict with char dlopen (); below.
23324+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23325+ <limits.h> exists even on freestanding compilers. */
23326+
23327+#ifdef __STDC__
23328+# include <limits.h>
23329+#else
23330+# include <assert.h>
23331+#endif
23332+
23333+#undef dlopen
23334+
23335+/* Override any gcc2 internal prototype to avoid an error. */
23336+#ifdef __cplusplus
23337+extern "C"
23338+{
23339+#endif
23340+/* We use char because int might match the return type of a gcc2
23341+ builtin and then its argument prototype would still apply. */
23342+char dlopen ();
23343+/* The GNU C library defines this for functions which it implements
23344+ to always fail with ENOSYS. Some functions are actually named
23345+ something starting with __ and the normal name is an alias. */
23346+#if defined (__stub_dlopen) || defined (__stub___dlopen)
23347+choke me
23348+#else
23349+char (*f) () = dlopen;
23350+#endif
23351+#ifdef __cplusplus
23352+}
23353+#endif
23354+
23355+int
23356+main ()
23357+{
23358+return f != dlopen;
23359+ ;
23360+ return 0;
23361+}
23362+_ACEOF
23363+rm -f conftest.$ac_objext conftest$ac_exeext
23364+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23365+ (eval $ac_link) 2>conftest.er1
23366+ ac_status=$?
23367+ grep -v '^ *+' conftest.er1 >conftest.err
23368+ rm -f conftest.er1
23369+ cat conftest.err >&5
23370+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
23371+ (exit $ac_status); } &&
23372+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23373+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23374+ (eval $ac_try) 2>&5
23375+ ac_status=$?
23376+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
23377+ (exit $ac_status); }; } &&
23378+ { ac_try='test -s conftest$ac_exeext'
23379+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23380+ (eval $ac_try) 2>&5
23381+ ac_status=$?
23382+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
23383+ (exit $ac_status); }; }; then
23384+ ac_cv_func_dlopen=yes
23385+else
23386+ echo "$as_me: failed program was:" >&5
23387+sed 's/^/| /' conftest.$ac_ext >&5
23388+
23389+ac_cv_func_dlopen=no
23390+fi
23391+rm -f conftest.err conftest.$ac_objext \
23392+ conftest$ac_exeext conftest.$ac_ext
23393+fi
23394+echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23395+echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23396+if test $ac_cv_func_dlopen = yes; then
23397+ lt_cv_dlopen="dlopen"
23398+else
23399+ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23400+echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23401+if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23402+ echo $ECHO_N "(cached) $ECHO_C" >&6
23403+else
23404+ ac_check_lib_save_LIBS=$LIBS
23405+LIBS="-ldl $LIBS"
23406+cat >conftest.$ac_ext <<_ACEOF
23407+/* confdefs.h. */
23408+_ACEOF
23409+cat confdefs.h >>conftest.$ac_ext
23410+cat >>conftest.$ac_ext <<_ACEOF
23411+/* end confdefs.h. */
23412+
23413+/* Override any gcc2 internal prototype to avoid an error. */
23414+#ifdef __cplusplus
23415+extern "C"
23416+#endif
23417+/* We use char because int might match the return type of a gcc2
23418+ builtin and then its argument prototype would still apply. */
23419+char dlopen ();
23420+int
23421+main ()
23422+{
23423+dlopen ();
23424+ ;
23425+ return 0;
23426+}
23427+_ACEOF
23428+rm -f conftest.$ac_objext conftest$ac_exeext
23429+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23430+ (eval $ac_link) 2>conftest.er1
23431+ ac_status=$?
23432+ grep -v '^ *+' conftest.er1 >conftest.err
23433+ rm -f conftest.er1
23434+ cat conftest.err >&5
23435+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
23436+ (exit $ac_status); } &&
23437+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23438+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23439+ (eval $ac_try) 2>&5
23440+ ac_status=$?
23441+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
23442+ (exit $ac_status); }; } &&
23443+ { ac_try='test -s conftest$ac_exeext'
23444+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23445+ (eval $ac_try) 2>&5
23446+ ac_status=$?
23447+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
23448+ (exit $ac_status); }; }; then
23449+ ac_cv_lib_dl_dlopen=yes
23450+else
23451+ echo "$as_me: failed program was:" >&5
23452+sed 's/^/| /' conftest.$ac_ext >&5
23453+
23454+ac_cv_lib_dl_dlopen=no
23455+fi
23456+rm -f conftest.err conftest.$ac_objext \
23457+ conftest$ac_exeext conftest.$ac_ext
23458+LIBS=$ac_check_lib_save_LIBS
23459+fi
23460+echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23461+echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23462+if test $ac_cv_lib_dl_dlopen = yes; then
23463+ lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23464+else
23465+ echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23466+echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23467+if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23468+ echo $ECHO_N "(cached) $ECHO_C" >&6
23469+else
23470+ ac_check_lib_save_LIBS=$LIBS
23471+LIBS="-lsvld $LIBS"
23472+cat >conftest.$ac_ext <<_ACEOF
23473+/* confdefs.h. */
23474+_ACEOF
23475+cat confdefs.h >>conftest.$ac_ext
23476+cat >>conftest.$ac_ext <<_ACEOF
23477+/* end confdefs.h. */
23478+
23479+/* Override any gcc2 internal prototype to avoid an error. */
23480+#ifdef __cplusplus
23481+extern "C"
23482+#endif
23483+/* We use char because int might match the return type of a gcc2
23484+ builtin and then its argument prototype would still apply. */
23485+char dlopen ();
23486+int
23487+main ()
23488+{
23489+dlopen ();
23490+ ;
23491+ return 0;
23492+}
23493+_ACEOF
23494+rm -f conftest.$ac_objext conftest$ac_exeext
23495+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23496+ (eval $ac_link) 2>conftest.er1
23497+ ac_status=$?
23498+ grep -v '^ *+' conftest.er1 >conftest.err
23499+ rm -f conftest.er1
23500+ cat conftest.err >&5
23501+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
23502+ (exit $ac_status); } &&
23503+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23504+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23505+ (eval $ac_try) 2>&5
23506+ ac_status=$?
23507+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
23508+ (exit $ac_status); }; } &&
23509+ { ac_try='test -s conftest$ac_exeext'
23510+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23511+ (eval $ac_try) 2>&5
23512+ ac_status=$?
23513+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
23514+ (exit $ac_status); }; }; then
23515+ ac_cv_lib_svld_dlopen=yes
23516+else
23517+ echo "$as_me: failed program was:" >&5
23518+sed 's/^/| /' conftest.$ac_ext >&5
23519+
23520+ac_cv_lib_svld_dlopen=no
23521+fi
23522+rm -f conftest.err conftest.$ac_objext \
23523+ conftest$ac_exeext conftest.$ac_ext
23524+LIBS=$ac_check_lib_save_LIBS
23525+fi
23526+echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23527+echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23528+if test $ac_cv_lib_svld_dlopen = yes; then
23529+ lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23530+else
23531+ echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23532+echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23533+if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23534+ echo $ECHO_N "(cached) $ECHO_C" >&6
23535+else
23536+ ac_check_lib_save_LIBS=$LIBS
23537+LIBS="-ldld $LIBS"
23538+cat >conftest.$ac_ext <<_ACEOF
23539+/* confdefs.h. */
23540+_ACEOF
23541+cat confdefs.h >>conftest.$ac_ext
23542+cat >>conftest.$ac_ext <<_ACEOF
23543+/* end confdefs.h. */
23544+
23545+/* Override any gcc2 internal prototype to avoid an error. */
23546+#ifdef __cplusplus
23547+extern "C"
23548+#endif
23549+/* We use char because int might match the return type of a gcc2
23550+ builtin and then its argument prototype would still apply. */
23551+char dld_link ();
23552+int
23553+main ()
23554+{
23555+dld_link ();
23556+ ;
23557+ return 0;
23558+}
23559+_ACEOF
23560+rm -f conftest.$ac_objext conftest$ac_exeext
23561+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23562+ (eval $ac_link) 2>conftest.er1
23563+ ac_status=$?
23564+ grep -v '^ *+' conftest.er1 >conftest.err
23565+ rm -f conftest.er1
23566+ cat conftest.err >&5
23567+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
23568+ (exit $ac_status); } &&
23569+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23570+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23571+ (eval $ac_try) 2>&5
23572+ ac_status=$?
23573+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
23574+ (exit $ac_status); }; } &&
23575+ { ac_try='test -s conftest$ac_exeext'
23576+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23577+ (eval $ac_try) 2>&5
23578+ ac_status=$?
23579+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
23580+ (exit $ac_status); }; }; then
23581+ ac_cv_lib_dld_dld_link=yes
23582+else
23583+ echo "$as_me: failed program was:" >&5
23584+sed 's/^/| /' conftest.$ac_ext >&5
23585+
23586+ac_cv_lib_dld_dld_link=no
23587+fi
23588+rm -f conftest.err conftest.$ac_objext \
23589+ conftest$ac_exeext conftest.$ac_ext
23590+LIBS=$ac_check_lib_save_LIBS
23591+fi
23592+echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23593+echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23594+if test $ac_cv_lib_dld_dld_link = yes; then
23595+ lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23596+fi
23597+
23598+
23599+fi
23600+
23601+
23602+fi
23603+
23604+
23605+fi
23606+
23607+
23608+fi
23609+
23610+
23611+fi
23612+
23613+ ;;
23614+ esac
23615+
23616+ if test "x$lt_cv_dlopen" != xno; then
23617+ enable_dlopen=yes
23618+ else
23619+ enable_dlopen=no
23620+ fi
23621+
23622+ case $lt_cv_dlopen in
23623+ dlopen)
23624+ save_CPPFLAGS="$CPPFLAGS"
23625+ test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23626+
23627+ save_LDFLAGS="$LDFLAGS"
23628+ eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23629+
23630+ save_LIBS="$LIBS"
23631+ LIBS="$lt_cv_dlopen_libs $LIBS"
23632+
23633+ echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23634+echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23635+if test "${lt_cv_dlopen_self+set}" = set; then
23636+ echo $ECHO_N "(cached) $ECHO_C" >&6
23637+else
23638+ if test "$cross_compiling" = yes; then :
23639+ lt_cv_dlopen_self=cross
23640+else
23641+ lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23642+ lt_status=$lt_dlunknown
23643+ cat > conftest.$ac_ext <<EOF
23644+#line 8678 "configure"
23645+#include "confdefs.h"
23646+
23647+#if HAVE_DLFCN_H
23648+#include <dlfcn.h>
23649+#endif
23650+
23651+#include <stdio.h>
23652+
23653+#ifdef RTLD_GLOBAL
23654+# define LT_DLGLOBAL RTLD_GLOBAL
23655+#else
23656+# ifdef DL_GLOBAL
23657+# define LT_DLGLOBAL DL_GLOBAL
23658+# else
23659+# define LT_DLGLOBAL 0
23660+# endif
23661+#endif
23662+
23663+/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23664+ find out it does not work in some platform. */
23665+#ifndef LT_DLLAZY_OR_NOW
23666+# ifdef RTLD_LAZY
23667+# define LT_DLLAZY_OR_NOW RTLD_LAZY
23668+# else
23669+# ifdef DL_LAZY
23670+# define LT_DLLAZY_OR_NOW DL_LAZY
23671+# else
23672+# ifdef RTLD_NOW
23673+# define LT_DLLAZY_OR_NOW RTLD_NOW
23674+# else
23675+# ifdef DL_NOW
23676+# define LT_DLLAZY_OR_NOW DL_NOW
23677+# else
23678+# define LT_DLLAZY_OR_NOW 0
23679+# endif
23680+# endif
23681+# endif
23682+# endif
23683+#endif
23684+
23685+#ifdef __cplusplus
23686+extern "C" void exit (int);
23687+#endif
23688+
23689+void fnord() { int i=42;}
23690+int main ()
23691+{
23692+ void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23693+ int status = $lt_dlunknown;
23694+
23695+ if (self)
23696+ {
23697+ if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23698+ else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23699+ /* dlclose (self); */
23700+ }
23701+
23702+ exit (status);
23703+}
23704+EOF
23705+ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23706+ (eval $ac_link) 2>&5
23707+ ac_status=$?
23708+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
23709+ (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23710+ (./conftest; exit; ) 2>/dev/null
23711+ lt_status=$?
23712+ case x$lt_status in
23713+ x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23714+ x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23715+ x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23716+ esac
23717+ else :
23718+ # compilation failed
23719+ lt_cv_dlopen_self=no
23720+ fi
23721+fi
23722+rm -fr conftest*
23723+
23724+
23725+fi
23726+echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23727+echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23728+
23729+ if test "x$lt_cv_dlopen_self" = xyes; then
23730+ LDFLAGS="$LDFLAGS $link_static_flag"
23731+ echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23732+echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23733+if test "${lt_cv_dlopen_self_static+set}" = set; then
23734+ echo $ECHO_N "(cached) $ECHO_C" >&6
23735+else
23736+ if test "$cross_compiling" = yes; then :
23737+ lt_cv_dlopen_self_static=cross
23738+else
23739+ lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23740+ lt_status=$lt_dlunknown
23741+ cat > conftest.$ac_ext <<EOF
23742+#line 8776 "configure"
23743+#include "confdefs.h"
23744+
23745+#if HAVE_DLFCN_H
23746+#include <dlfcn.h>
23747+#endif
23748+
23749+#include <stdio.h>
23750+
23751+#ifdef RTLD_GLOBAL
23752+# define LT_DLGLOBAL RTLD_GLOBAL
23753+#else
23754+# ifdef DL_GLOBAL
23755+# define LT_DLGLOBAL DL_GLOBAL
23756+# else
23757+# define LT_DLGLOBAL 0
23758+# endif
23759+#endif
23760+
23761+/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23762+ find out it does not work in some platform. */
23763+#ifndef LT_DLLAZY_OR_NOW
23764+# ifdef RTLD_LAZY
23765+# define LT_DLLAZY_OR_NOW RTLD_LAZY
23766+# else
23767+# ifdef DL_LAZY
23768+# define LT_DLLAZY_OR_NOW DL_LAZY
23769+# else
23770+# ifdef RTLD_NOW
23771+# define LT_DLLAZY_OR_NOW RTLD_NOW
23772+# else
23773+# ifdef DL_NOW
23774+# define LT_DLLAZY_OR_NOW DL_NOW
23775+# else
23776+# define LT_DLLAZY_OR_NOW 0
23777+# endif
23778+# endif
23779+# endif
23780+# endif
23781+#endif
23782+
23783+#ifdef __cplusplus
23784+extern "C" void exit (int);
23785+#endif
23786+
23787+void fnord() { int i=42;}
23788+int main ()
23789+{
23790+ void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23791+ int status = $lt_dlunknown;
23792+
23793+ if (self)
23794+ {
23795+ if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23796+ else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23797+ /* dlclose (self); */
23798+ }
23799+
23800+ exit (status);
23801+}
23802+EOF
23803+ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23804+ (eval $ac_link) 2>&5
23805+ ac_status=$?
23806+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
23807+ (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23808+ (./conftest; exit; ) 2>/dev/null
23809+ lt_status=$?
23810+ case x$lt_status in
23811+ x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23812+ x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23813+ x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23814+ esac
23815+ else :
23816+ # compilation failed
23817+ lt_cv_dlopen_self_static=no
23818+ fi
23819+fi
23820+rm -fr conftest*
23821+
23822+
23823+fi
23824+echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23825+echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23826+ fi
23827+
23828+ CPPFLAGS="$save_CPPFLAGS"
23829+ LDFLAGS="$save_LDFLAGS"
23830+ LIBS="$save_LIBS"
23831+ ;;
23832+ esac
23833+
23834+ case $lt_cv_dlopen_self in
23835+ yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23836+ *) enable_dlopen_self=unknown ;;
23837+ esac
23838+
23839+ case $lt_cv_dlopen_self_static in
23840+ yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23841+ *) enable_dlopen_self_static=unknown ;;
23842+ esac
23843+fi
23844+
23845+
23846+# Report which librarie types wil actually be built
23847+echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
23848+echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
23849+echo "$as_me:$LINENO: result: $can_build_shared" >&5
23850+echo "${ECHO_T}$can_build_shared" >&6
23851+
23852+echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
23853+echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
23854+test "$can_build_shared" = "no" && enable_shared=no
23855+
23856+# On AIX, shared libraries and static libraries use the same namespace, and
23857+# are all built from PIC.
23858+case "$host_os" in
23859+aix3*)
23860+ test "$enable_shared" = yes && enable_static=no
23861+ if test -n "$RANLIB"; then
23862+ archive_cmds="$archive_cmds~\$RANLIB \$lib"
23863+ postinstall_cmds='$RANLIB $lib'
23864+ fi
23865+ ;;
23866+
23867+aix4* | aix5*)
23868+ if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
23869+ test "$enable_shared" = yes && enable_static=no
23870+ fi
23871+ ;;
23872+ darwin* | rhapsody*)
23873+ if test "$GCC" = yes; then
23874+ archive_cmds_need_lc=no
23875+ case "$host_os" in
23876+ rhapsody* | darwin1.[012])
23877+ allow_undefined_flag='-undefined suppress'
23878+ ;;
23879+ *) # Darwin 1.3 on
23880+ if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
23881+ allow_undefined_flag='-flat_namespace -undefined suppress'
23882+ else
23883+ case ${MACOSX_DEPLOYMENT_TARGET} in
23884+ 10.[012])
23885+ allow_undefined_flag='-flat_namespace -undefined suppress'
23886+ ;;
23887+ 10.*)
23888+ allow_undefined_flag='-undefined dynamic_lookup'
23889+ ;;
23890+ esac
23891+ fi
23892+ ;;
23893+ esac
23894+ output_verbose_link_cmd='echo'
23895+ archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
23896+ module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
23897+ # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
23898+ archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
23899+ module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
23900+ hardcode_direct=no
23901+ hardcode_automatic=yes
23902+ hardcode_shlibpath_var=unsupported
23903+ whole_archive_flag_spec='-all_load $convenience'
23904+ link_all_deplibs=yes
23905+ else
23906+ ld_shlibs=no
23907+ fi
23908+ ;;
23909+esac
23910+echo "$as_me:$LINENO: result: $enable_shared" >&5
23911+echo "${ECHO_T}$enable_shared" >&6
23912+
23913+echo "$as_me:$LINENO: checking whether to build static libraries" >&5
23914+echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
23915+# Make sure either enable_shared or enable_static is yes.
23916+test "$enable_shared" = yes || enable_static=yes
23917+echo "$as_me:$LINENO: result: $enable_static" >&5
23918+echo "${ECHO_T}$enable_static" >&6
23919+
23920+# The else clause should only fire when bootstrapping the
23921+# libtool distribution, otherwise you forgot to ship ltmain.sh
23922+# with your package, and you will get complaints that there are
23923+# no rules to generate ltmain.sh.
23924+if test -f "$ltmain"; then
23925+ # See if we are running on zsh, and set the options which allow our commands through
23926+ # without removal of \ escapes.
23927+ if test -n "${ZSH_VERSION+set}" ; then
23928+ setopt NO_GLOB_SUBST
23929+ fi
23930+ # Now quote all the things that may contain metacharacters while being
23931+ # careful not to overquote the AC_SUBSTed values. We take copies of the
23932+ # variables and quote the copies for generation of the libtool script.
23933+ for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23934+ SED SHELL STRIP \
23935+ libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23936+ old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23937+ deplibs_check_method reload_flag reload_cmds need_locks \
23938+ lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23939+ lt_cv_sys_global_symbol_to_c_name_address \
23940+ sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23941+ old_postinstall_cmds old_postuninstall_cmds \
23942+ compiler \
23943+ CC \
23944+ LD \
23945+ lt_prog_compiler_wl \
23946+ lt_prog_compiler_pic \
23947+ lt_prog_compiler_static \
23948+ lt_prog_compiler_no_builtin_flag \
23949+ export_dynamic_flag_spec \
23950+ thread_safe_flag_spec \
23951+ whole_archive_flag_spec \
23952+ enable_shared_with_static_runtimes \
23953+ old_archive_cmds \
23954+ old_archive_from_new_cmds \
23955+ predep_objects \
23956+ postdep_objects \
23957+ predeps \
23958+ postdeps \
23959+ compiler_lib_search_path \
23960+ archive_cmds \
23961+ archive_expsym_cmds \
23962+ postinstall_cmds \
23963+ postuninstall_cmds \
23964+ old_archive_from_expsyms_cmds \
23965+ allow_undefined_flag \
23966+ no_undefined_flag \
23967+ export_symbols_cmds \
23968+ hardcode_libdir_flag_spec \
23969+ hardcode_libdir_flag_spec_ld \
23970+ hardcode_libdir_separator \
23971+ hardcode_automatic \
23972+ module_cmds \
23973+ module_expsym_cmds \
23974+ lt_cv_prog_compiler_c_o \
23975+ exclude_expsyms \
23976+ include_expsyms; do
23977+
23978+ case $var in
23979+ old_archive_cmds | \
23980+ old_archive_from_new_cmds | \
23981+ archive_cmds | \
23982+ archive_expsym_cmds | \
23983+ module_cmds | \
23984+ module_expsym_cmds | \
23985+ old_archive_from_expsyms_cmds | \
23986+ export_symbols_cmds | \
23987+ extract_expsyms_cmds | reload_cmds | finish_cmds | \
23988+ postinstall_cmds | postuninstall_cmds | \
23989+ old_postinstall_cmds | old_postuninstall_cmds | \
23990+ sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23991+ # Double-quote double-evaled strings.
23992+ eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23993+ ;;
23994+ *)
23995+ eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23996+ ;;
23997+ esac
23998+ done
23999+
24000+ case $lt_echo in
24001+ *'\$0 --fallback-echo"')
24002+ lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24003+ ;;
24004+ esac
24005+
24006+cfgfile="${ofile}T"
24007+ trap "$rm \"$cfgfile\"; exit 1" 1 2 15
24008+ $rm -f "$cfgfile"
24009+ { echo "$as_me:$LINENO: creating $ofile" >&5
24010+echo "$as_me: creating $ofile" >&6;}
24011+
24012+ cat <<__EOF__ >> "$cfgfile"
24013+#! $SHELL
24014+
24015+# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
24016+# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
24017+# NOTE: Changes made to this file will be lost: look at ltmain.sh.
24018+#
24019+# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
24020+# Free Software Foundation, Inc.
24021+#
24022+# This file is part of GNU Libtool:
24023+# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
24024+#
24025+# This program is free software; you can redistribute it and/or modify
24026+# it under the terms of the GNU General Public License as published by
24027+# the Free Software Foundation; either version 2 of the License, or
24028+# (at your option) any later version.
24029+#
24030+# This program is distributed in the hope that it will be useful, but
24031+# WITHOUT ANY WARRANTY; without even the implied warranty of
24032+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
24033+# General Public License for more details.
24034+#
24035+# You should have received a copy of the GNU General Public License
24036+# along with this program; if not, write to the Free Software
24037+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
24038+#
24039+# As a special exception to the GNU General Public License, if you
24040+# distribute this file as part of a program that contains a
24041+# configuration script generated by Autoconf, you may include it under
24042+# the same distribution terms that you use for the rest of that program.
24043+
24044+# A sed program that does not truncate output.
24045+SED=$lt_SED
24046+
24047+# Sed that helps us avoid accidentally triggering echo(1) options like -n.
24048+Xsed="$SED -e s/^X//"
24049+
24050+# The HP-UX ksh and POSIX shell print the target directory to stdout
24051+# if CDPATH is set.
24052+if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
24053+
24054+# The names of the tagged configurations supported by this script.
24055+available_tags=
24056+
24057+# ### BEGIN LIBTOOL CONFIG
24058+
24059+# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24060+
24061+# Shell to use when invoking shell scripts.
24062+SHELL=$lt_SHELL
24063+
24064+# Whether or not to build shared libraries.
24065+build_libtool_libs=$enable_shared
24066+
24067+# Whether or not to build static libraries.
24068+build_old_libs=$enable_static
24069+
24070+# Whether or not to add -lc for building shared libraries.
24071+build_libtool_need_lc=$archive_cmds_need_lc
24072+
24073+# Whether or not to disallow shared libs when runtime libs are static
24074+allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
24075+
24076+# Whether or not to optimize for fast installation.
24077+fast_install=$enable_fast_install
24078+
24079+# The host system.
24080+host_alias=$host_alias
24081+host=$host
24082+
24083+# An echo program that does not interpret backslashes.
24084+echo=$lt_echo
24085+
24086+# The archiver.
24087+AR=$lt_AR
24088+AR_FLAGS=$lt_AR_FLAGS
24089+
24090+# A C compiler.
24091+LTCC=$lt_LTCC
24092+
24093+# A language-specific compiler.
24094+CC=$lt_compiler
24095+
24096+# Is the compiler the GNU C compiler?
24097+with_gcc=$GCC
24098+
24099+# An ERE matcher.
24100+EGREP=$lt_EGREP
24101+
24102+# The linker used to build libraries.
24103+LD=$lt_LD
24104+
24105+# Whether we need hard or soft links.
24106+LN_S=$lt_LN_S
24107+
24108+# A BSD-compatible nm program.
24109+NM=$lt_NM
24110+
24111+# A symbol stripping program
24112+STRIP=$lt_STRIP
24113+
24114+# Used to examine libraries when file_magic_cmd begins "file"
24115+MAGIC_CMD=$MAGIC_CMD
24116+
24117+# Used on cygwin: DLL creation program.
24118+DLLTOOL="$DLLTOOL"
24119+
24120+# Used on cygwin: object dumper.
24121+OBJDUMP="$OBJDUMP"
24122+
24123+# Used on cygwin: assembler.
24124+AS="$AS"
24125+
24126+# The name of the directory that contains temporary libtool files.
24127+objdir=$objdir
24128+
24129+# How to create reloadable object files.
24130+reload_flag=$lt_reload_flag
24131+reload_cmds=$lt_reload_cmds
24132+
24133+# How to pass a linker flag through the compiler.
24134+wl=$lt_lt_prog_compiler_wl
24135+
24136+# Object file suffix (normally "o").
24137+objext="$ac_objext"
24138+
24139+# Old archive suffix (normally "a").
24140+libext="$libext"
24141+
24142+# Shared library suffix (normally ".so").
24143+shrext_cmds='$shrext_cmds'
24144+
24145+# Executable file suffix (normally "").
24146+exeext="$exeext"
24147+
24148+# Additional compiler flags for building library objects.
24149+pic_flag=$lt_lt_prog_compiler_pic
24150+pic_mode=$pic_mode
24151+
24152+# What is the maximum length of a command?
24153+max_cmd_len=$lt_cv_sys_max_cmd_len
24154+
24155+# Does compiler simultaneously support -c and -o options?
24156+compiler_c_o=$lt_lt_cv_prog_compiler_c_o
24157+
24158+# Must we lock files when doing compilation ?
24159+need_locks=$lt_need_locks
24160+
24161+# Do we need the lib prefix for modules?
24162+need_lib_prefix=$need_lib_prefix
24163+
24164+# Do we need a version for libraries?
24165+need_version=$need_version
24166+
24167+# Whether dlopen is supported.
24168+dlopen_support=$enable_dlopen
24169+
24170+# Whether dlopen of programs is supported.
24171+dlopen_self=$enable_dlopen_self
24172+
24173+# Whether dlopen of statically linked programs is supported.
24174+dlopen_self_static=$enable_dlopen_self_static
24175+
24176+# Compiler flag to prevent dynamic linking.
24177+link_static_flag=$lt_lt_prog_compiler_static
24178+
24179+# Compiler flag to turn off builtin functions.
24180+no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
24181+
24182+# Compiler flag to allow reflexive dlopens.
24183+export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
24184+
24185+# Compiler flag to generate shared objects directly from archives.
24186+whole_archive_flag_spec=$lt_whole_archive_flag_spec
24187+
24188+# Compiler flag to generate thread-safe objects.
24189+thread_safe_flag_spec=$lt_thread_safe_flag_spec
24190+
24191+# Library versioning type.
24192+version_type=$version_type
24193+
24194+# Format of library name prefix.
24195+libname_spec=$lt_libname_spec
24196+
24197+# List of archive names. First name is the real one, the rest are links.
24198+# The last name is the one that the linker finds with -lNAME.
24199+library_names_spec=$lt_library_names_spec
24200+
24201+# The coded name of the library, if different from the real name.
24202+soname_spec=$lt_soname_spec
24203+
24204+# Commands used to build and install an old-style archive.
24205+RANLIB=$lt_RANLIB
24206+old_archive_cmds=$lt_old_archive_cmds
24207+old_postinstall_cmds=$lt_old_postinstall_cmds
24208+old_postuninstall_cmds=$lt_old_postuninstall_cmds
24209+
24210+# Create an old-style archive from a shared archive.
24211+old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
24212+
24213+# Create a temporary old-style archive to link instead of a shared archive.
24214+old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
24215+
24216+# Commands used to build and install a shared archive.
24217+archive_cmds=$lt_archive_cmds
24218+archive_expsym_cmds=$lt_archive_expsym_cmds
24219+postinstall_cmds=$lt_postinstall_cmds
24220+postuninstall_cmds=$lt_postuninstall_cmds
24221+
24222+# Commands used to build a loadable module (assumed same as above if empty)
24223+module_cmds=$lt_module_cmds
24224+module_expsym_cmds=$lt_module_expsym_cmds
24225+
24226+# Commands to strip libraries.
24227+old_striplib=$lt_old_striplib
24228+striplib=$lt_striplib
24229+
24230+# Dependencies to place before the objects being linked to create a
24231+# shared library.
24232+predep_objects=$lt_predep_objects
24233+
24234+# Dependencies to place after the objects being linked to create a
24235+# shared library.
24236+postdep_objects=$lt_postdep_objects
24237+
24238+# Dependencies to place before the objects being linked to create a
24239+# shared library.
24240+predeps=$lt_predeps
24241+
24242+# Dependencies to place after the objects being linked to create a
24243+# shared library.
24244+postdeps=$lt_postdeps
24245+
24246+# The library search path used internally by the compiler when linking
24247+# a shared library.
24248+compiler_lib_search_path=$lt_compiler_lib_search_path
24249+
24250+# Method to check whether dependent libraries are shared objects.
24251+deplibs_check_method=$lt_deplibs_check_method
24252+
24253+# Command to use when deplibs_check_method == file_magic.
24254+file_magic_cmd=$lt_file_magic_cmd
24255+
24256+# Flag that allows shared libraries with undefined symbols to be built.
24257+allow_undefined_flag=$lt_allow_undefined_flag
24258+
24259+# Flag that forces no undefined symbols.
24260+no_undefined_flag=$lt_no_undefined_flag
24261+
24262+# Commands used to finish a libtool library installation in a directory.
24263+finish_cmds=$lt_finish_cmds
24264+
24265+# Same as above, but a single script fragment to be evaled but not shown.
24266+finish_eval=$lt_finish_eval
24267+
24268+# Take the output of nm and produce a listing of raw symbols and C names.
24269+global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24270+
24271+# Transform the output of nm in a proper C declaration
24272+global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24273+
24274+# Transform the output of nm in a C name address pair
24275+global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24276+
24277+# This is the shared library runtime path variable.
24278+runpath_var=$runpath_var
24279+
24280+# This is the shared library path variable.
24281+shlibpath_var=$shlibpath_var
24282+
24283+# Is shlibpath searched before the hard-coded library search path?
24284+shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24285+
24286+# How to hardcode a shared library path into an executable.
24287+hardcode_action=$hardcode_action
24288+
24289+# Whether we should hardcode library paths into libraries.
24290+hardcode_into_libs=$hardcode_into_libs
24291+
24292+# Flag to hardcode \$libdir into a binary during linking.
24293+# This must work even if \$libdir does not exist.
24294+hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
24295+
24296+# If ld is used when linking, flag to hardcode \$libdir into
24297+# a binary during linking. This must work even if \$libdir does
24298+# not exist.
24299+hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
24300+
24301+# Whether we need a single -rpath flag with a separated argument.
24302+hardcode_libdir_separator=$lt_hardcode_libdir_separator
24303+
24304+# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24305+# resulting binary.
24306+hardcode_direct=$hardcode_direct
24307+
24308+# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24309+# resulting binary.
24310+hardcode_minus_L=$hardcode_minus_L
24311+
24312+# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24313+# the resulting binary.
24314+hardcode_shlibpath_var=$hardcode_shlibpath_var
24315+
24316+# Set to yes if building a shared library automatically hardcodes DIR into the library
24317+# and all subsequent libraries and executables linked against it.
24318+hardcode_automatic=$hardcode_automatic
24319+
24320+# Variables whose values should be saved in libtool wrapper scripts and
24321+# restored at relink time.
24322+variables_saved_for_relink="$variables_saved_for_relink"
24323+
24324+# Whether libtool must link a program against all its dependency libraries.
24325+link_all_deplibs=$link_all_deplibs
24326+
24327+# Compile-time system search path for libraries
24328+sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24329+
24330+# Run-time system search path for libraries
24331+sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24332+
24333+# Fix the shell variable \$srcfile for the compiler.
24334+fix_srcfile_path="$fix_srcfile_path"
24335+
24336+# Set to yes if exported symbols are required.
24337+always_export_symbols=$always_export_symbols
24338+
24339+# The commands to list exported symbols.
24340+export_symbols_cmds=$lt_export_symbols_cmds
24341+
24342+# The commands to extract the exported symbol list from a shared archive.
24343+extract_expsyms_cmds=$lt_extract_expsyms_cmds
24344+
24345+# Symbols that should not be listed in the preloaded symbols.
24346+exclude_expsyms=$lt_exclude_expsyms
24347+
24348+# Symbols that must always be exported.
24349+include_expsyms=$lt_include_expsyms
24350+
24351+# ### END LIBTOOL CONFIG
24352+
24353+__EOF__
24354+
24355+
24356+ case $host_os in
24357+ aix3*)
24358+ cat <<\EOF >> "$cfgfile"
24359+
24360+# AIX sometimes has problems with the GCC collect2 program. For some
24361+# reason, if we set the COLLECT_NAMES environment variable, the problems
24362+# vanish in a puff of smoke.
24363+if test "X${COLLECT_NAMES+set}" != Xset; then
24364+ COLLECT_NAMES=
24365+ export COLLECT_NAMES
24366+fi
24367+EOF
24368+ ;;
24369+ esac
24370+
24371+ # We use sed instead of cat because bash on DJGPP gets confused if
24372+ # if finds mixed CR/LF and LF-only lines. Since sed operates in
24373+ # text mode, it properly converts lines to CR/LF. This bash problem
24374+ # is reportedly fixed, but why not run on old versions too?
24375+ sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
24376+
24377+ mv -f "$cfgfile" "$ofile" || \
24378+ (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24379+ chmod +x "$ofile"
24380+
24381+else
24382+ # If there is no Makefile yet, we rely on a make rule to execute
24383+ # `config.status --recheck' to rerun these tests and create the
24384+ # libtool script then.
24385+ ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24386+ if test -f "$ltmain_in"; then
24387+ test -f Makefile && make "$ltmain"
24388+ fi
24389+fi
24390+
24391+
24392+ac_ext=c
24393+ac_cpp='$CPP $CPPFLAGS'
24394+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24395+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24396+ac_compiler_gnu=$ac_cv_c_compiler_gnu
24397+
24398+CC="$lt_save_CC"
24399+
24400+
24401+# Check whether --with-tags or --without-tags was given.
24402+if test "${with_tags+set}" = set; then
24403+ withval="$with_tags"
24404+ tagnames="$withval"
24405+fi;
24406+
24407+if test -f "$ltmain" && test -n "$tagnames"; then
24408+ if test ! -f "${ofile}"; then
24409+ { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
24410+echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
24411+ fi
24412+
24413+ if test -z "$LTCC"; then
24414+ eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
24415+ if test -z "$LTCC"; then
24416+ { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
24417+echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
24418+ else
24419+ { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
24420+echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
24421+ fi
24422+ fi
24423+
24424+ # Extract list of available tagged configurations in $ofile.
24425+ # Note that this assumes the entire list is on one line.
24426+ available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
24427+
24428+ lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
24429+ for tagname in $tagnames; do
24430+ IFS="$lt_save_ifs"
24431+ # Check whether tagname contains only valid characters
24432+ case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
24433+ "") ;;
24434+ *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
24435+echo "$as_me: error: invalid tag name: $tagname" >&2;}
24436+ { (exit 1); exit 1; }; }
24437+ ;;
24438+ esac
24439+
24440+ if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
24441+ then
24442+ { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
24443+echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
24444+ { (exit 1); exit 1; }; }
24445+ fi
24446+
24447+ # Update the list of available tags.
24448+ if test -n "$tagname"; then
24449+ echo appending configuration tag \"$tagname\" to $ofile
24450+
24451+ case $tagname in
24452+ CXX)
24453+ if test -n "$CXX" && test "X$CXX" != "Xno"; then
24454+ ac_ext=cc
24455+ac_cpp='$CXXCPP $CPPFLAGS'
24456+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24457+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24458+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24459+
24460+
24461+
24462+
24463+archive_cmds_need_lc_CXX=no
24464+allow_undefined_flag_CXX=
24465+always_export_symbols_CXX=no
24466+archive_expsym_cmds_CXX=
24467+export_dynamic_flag_spec_CXX=
24468+hardcode_direct_CXX=no
24469+hardcode_libdir_flag_spec_CXX=
24470+hardcode_libdir_flag_spec_ld_CXX=
24471+hardcode_libdir_separator_CXX=
24472+hardcode_minus_L_CXX=no
24473+hardcode_automatic_CXX=no
24474+module_cmds_CXX=
24475+module_expsym_cmds_CXX=
24476+link_all_deplibs_CXX=unknown
24477+old_archive_cmds_CXX=$old_archive_cmds
24478+no_undefined_flag_CXX=
24479+whole_archive_flag_spec_CXX=
24480+enable_shared_with_static_runtimes_CXX=no
24481+
24482+# Dependencies to place before and after the object being linked:
24483+predep_objects_CXX=
24484+postdep_objects_CXX=
24485+predeps_CXX=
24486+postdeps_CXX=
24487+compiler_lib_search_path_CXX=
24488+
24489+# Source file extension for C++ test sources.
24490+ac_ext=cc
24491+
24492+# Object file extension for compiled C++ test sources.
24493+objext=o
24494+objext_CXX=$objext
24495+
24496+# Code to be used in simple compile tests
24497+lt_simple_compile_test_code="int some_variable = 0;\n"
24498+
24499+# Code to be used in simple link tests
24500+lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
24501+
24502+# ltmain only uses $CC for tagged configurations so make sure $CC is set.
24503+
24504+# If no C compiler was specified, use CC.
24505+LTCC=${LTCC-"$CC"}
24506+
24507+# Allow CC to be a program name with arguments.
24508+compiler=$CC
24509+
24510+
24511+# Allow CC to be a program name with arguments.
24512+lt_save_CC=$CC
24513+lt_save_LD=$LD
24514+lt_save_GCC=$GCC
24515+GCC=$GXX
24516+lt_save_with_gnu_ld=$with_gnu_ld
24517+lt_save_path_LD=$lt_cv_path_LD
24518+if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
24519+ lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
24520+else
24521+ unset lt_cv_prog_gnu_ld
24522+fi
24523+if test -n "${lt_cv_path_LDCXX+set}"; then
24524+ lt_cv_path_LD=$lt_cv_path_LDCXX
24525+else
24526+ unset lt_cv_path_LD
24527+fi
24528+test -z "${LDCXX+set}" || LD=$LDCXX
24529+CC=${CXX-"c++"}
24530+compiler=$CC
24531+compiler_CXX=$CC
24532+cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
24533+
24534+# We don't want -fno-exception wen compiling C++ code, so set the
24535+# no_builtin_flag separately
24536+if test "$GXX" = yes; then
24537+ lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
24538+else
24539+ lt_prog_compiler_no_builtin_flag_CXX=
24540+fi
24541+
24542+if test "$GXX" = yes; then
24543+ # Set up default GNU C++ configuration
24544+
24545+
24546+# Check whether --with-gnu-ld or --without-gnu-ld was given.
24547+if test "${with_gnu_ld+set}" = set; then
24548+ withval="$with_gnu_ld"
24549+ test "$withval" = no || with_gnu_ld=yes
24550+else
24551+ with_gnu_ld=no
24552+fi;
24553+ac_prog=ld
24554+if test "$GCC" = yes; then
24555+ # Check if gcc -print-prog-name=ld gives a path.
24556+ echo "$as_me:$LINENO: checking for ld used by $CC" >&5
24557+echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
24558+ case $host in
24559+ *-*-mingw*)
24560+ # gcc leaves a trailing carriage return which upsets mingw
24561+ ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
24562+ *)
24563+ ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
24564+ esac
24565+ case $ac_prog in
24566+ # Accept absolute paths.
24567+ [\\/]* | ?:[\\/]*)
24568+ re_direlt='/[^/][^/]*/\.\./'
24569+ # Canonicalize the pathname of ld
24570+ ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
24571+ while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
24572+ ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
24573+ done
24574+ test -z "$LD" && LD="$ac_prog"
24575+ ;;
24576+ "")
24577+ # If it fails, then pretend we aren't using GCC.
24578+ ac_prog=ld
24579+ ;;
24580+ *)
24581+ # If it is relative, then search for the first ld in PATH.
24582+ with_gnu_ld=unknown
24583+ ;;
24584+ esac
24585+elif test "$with_gnu_ld" = yes; then
24586+ echo "$as_me:$LINENO: checking for GNU ld" >&5
24587+echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
24588+else
24589+ echo "$as_me:$LINENO: checking for non-GNU ld" >&5
24590+echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
24591+fi
24592+if test "${lt_cv_path_LD+set}" = set; then
24593+ echo $ECHO_N "(cached) $ECHO_C" >&6
24594+else
24595+ if test -z "$LD"; then
24596+ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
24597+ for ac_dir in $PATH; do
24598+ IFS="$lt_save_ifs"
24599+ test -z "$ac_dir" && ac_dir=.
24600+ if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
24601+ lt_cv_path_LD="$ac_dir/$ac_prog"
24602+ # Check to see if the program is GNU ld. I'd rather use --version,
24603+ # but apparently some GNU ld's only accept -v.
24604+ # Break only if it was the GNU/non-GNU ld that we prefer.
24605+ case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
24606+ *GNU* | *'with BFD'*)
24607+ test "$with_gnu_ld" != no && break
24608+ ;;
24609+ *)
24610+ test "$with_gnu_ld" != yes && break
24611+ ;;
24612+ esac
24613+ fi
24614+ done
24615+ IFS="$lt_save_ifs"
24616+else
24617+ lt_cv_path_LD="$LD" # Let the user override the test with a path.
24618+fi
24619+fi
24620+
24621+LD="$lt_cv_path_LD"
24622+if test -n "$LD"; then
24623+ echo "$as_me:$LINENO: result: $LD" >&5
24624+echo "${ECHO_T}$LD" >&6
24625+else
24626+ echo "$as_me:$LINENO: result: no" >&5
24627+echo "${ECHO_T}no" >&6
24628+fi
24629+test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
24630+echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
24631+ { (exit 1); exit 1; }; }
24632+echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
24633+echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
24634+if test "${lt_cv_prog_gnu_ld+set}" = set; then
24635+ echo $ECHO_N "(cached) $ECHO_C" >&6
24636+else
24637+ # I'd rather use --version here, but apparently some GNU ld's only accept -v.
24638+case `$LD -v 2>&1 </dev/null` in
24639+*GNU* | *'with BFD'*)
24640+ lt_cv_prog_gnu_ld=yes
24641+ ;;
24642+*)
24643+ lt_cv_prog_gnu_ld=no
24644+ ;;
24645+esac
24646+fi
24647+echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
24648+echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
24649+with_gnu_ld=$lt_cv_prog_gnu_ld
24650+
24651+
24652+
24653+ # Check if GNU C++ uses GNU ld as the underlying linker, since the
24654+ # archiving commands below assume that GNU ld is being used.
24655+ if test "$with_gnu_ld" = yes; then
24656+ archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
24657+ archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24658+
24659+ hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
24660+ export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
24661+
24662+ # If archive_cmds runs LD, not CC, wlarc should be empty
24663+ # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
24664+ # investigate it a little bit more. (MM)
24665+ wlarc='${wl}'
24666+
24667+ # ancient GNU ld didn't support --whole-archive et. al.
24668+ if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
24669+ grep 'no-whole-archive' > /dev/null; then
24670+ whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24671+ else
24672+ whole_archive_flag_spec_CXX=
24673+ fi
24674+ else
24675+ with_gnu_ld=no
24676+ wlarc=
24677+
24678+ # A generic and very simple default shared library creation
24679+ # command for GNU C++ for the case where it uses the native
24680+ # linker, instead of GNU ld. If possible, this setting should
24681+ # overridden to take advantage of the native linker features on
24682+ # the platform it is being used on.
24683+ archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
24684+ fi
24685+
24686+ # Commands to make compiler produce verbose output that lists
24687+ # what "hidden" libraries, object files and flags are used when
24688+ # linking a shared library.
24689+ output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
24690+
24691+else
24692+ GXX=no
24693+ with_gnu_ld=no
24694+ wlarc=
24695+fi
24696+
24697+# PORTME: fill in a description of your system's C++ link characteristics
24698+echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24699+echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
24700+ld_shlibs_CXX=yes
24701+case $host_os in
24702+ aix3*)
24703+ # FIXME: insert proper C++ library support
24704+ ld_shlibs_CXX=no
24705+ ;;
24706+ aix4* | aix5*)
24707+ if test "$host_cpu" = ia64; then
24708+ # On IA64, the linker does run time linking by default, so we don't
24709+ # have to do anything special.
24710+ aix_use_runtimelinking=no
24711+ exp_sym_flag='-Bexport'
24712+ no_entry_flag=""
24713+ else
24714+ aix_use_runtimelinking=no
24715+
24716+ # Test if we are trying to use run time linking or normal
24717+ # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24718+ # need to do runtime linking.
24719+ case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24720+ for ld_flag in $LDFLAGS; do
24721+ case $ld_flag in
24722+ *-brtl*)
24723+ aix_use_runtimelinking=yes
24724+ break
24725+ ;;
24726+ esac
24727+ done
24728+ esac
24729+
24730+ exp_sym_flag='-bexport'
24731+ no_entry_flag='-bnoentry'
24732+ fi
24733+
24734+ # When large executables or shared objects are built, AIX ld can
24735+ # have problems creating the table of contents. If linking a library
24736+ # or program results in "error TOC overflow" add -mminimal-toc to
24737+ # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24738+ # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24739+
24740+ archive_cmds_CXX=''
24741+ hardcode_direct_CXX=yes
24742+ hardcode_libdir_separator_CXX=':'
24743+ link_all_deplibs_CXX=yes
24744+
24745+ if test "$GXX" = yes; then
24746+ case $host_os in aix4.012|aix4.012.*)
24747+ # We only want to do this on AIX 4.2 and lower, the check
24748+ # below for broken collect2 doesn't work under 4.3+
24749+ collect2name=`${CC} -print-prog-name=collect2`
24750+ if test -f "$collect2name" && \
24751+ strings "$collect2name" | grep resolve_lib_name >/dev/null
24752+ then
24753+ # We have reworked collect2
24754+ hardcode_direct_CXX=yes
24755+ else
24756+ # We have old collect2
24757+ hardcode_direct_CXX=unsupported
24758+ # It fails to find uninstalled libraries when the uninstalled
24759+ # path is not listed in the libpath. Setting hardcode_minus_L
24760+ # to unsupported forces relinking
24761+ hardcode_minus_L_CXX=yes
24762+ hardcode_libdir_flag_spec_CXX='-L$libdir'
24763+ hardcode_libdir_separator_CXX=
24764+ fi
24765+ esac
24766+ shared_flag='-shared'
24767+ else
24768+ # not using gcc
24769+ if test "$host_cpu" = ia64; then
24770+ # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24771+ # chokes on -Wl,-G. The following line is correct:
24772+ shared_flag='-G'
24773+ else
24774+ if test "$aix_use_runtimelinking" = yes; then
24775+ shared_flag='${wl}-G'
24776+ else
24777+ shared_flag='${wl}-bM:SRE'
24778+ fi
24779+ fi
24780+ fi
24781+
24782+ # It seems that -bexpall does not export symbols beginning with
24783+ # underscore (_), so it is better to generate a list of symbols to export.
24784+ always_export_symbols_CXX=yes
24785+ if test "$aix_use_runtimelinking" = yes; then
24786+ # Warning - without using the other runtime loading flags (-brtl),
24787+ # -berok will link without error, but may produce a broken library.
24788+ allow_undefined_flag_CXX='-berok'
24789+ # Determine the default libpath from the value encoded in an empty executable.
24790+ cat >conftest.$ac_ext <<_ACEOF
24791+/* confdefs.h. */
24792+_ACEOF
24793+cat confdefs.h >>conftest.$ac_ext
24794+cat >>conftest.$ac_ext <<_ACEOF
24795+/* end confdefs.h. */
24796+
24797+int
24798+main ()
24799+{
24800+
24801+ ;
24802+ return 0;
24803+}
24804+_ACEOF
24805+rm -f conftest.$ac_objext conftest$ac_exeext
24806+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24807+ (eval $ac_link) 2>conftest.er1
24808+ ac_status=$?
24809+ grep -v '^ *+' conftest.er1 >conftest.err
24810+ rm -f conftest.er1
24811+ cat conftest.err >&5
24812+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
24813+ (exit $ac_status); } &&
24814+ { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
24815+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24816+ (eval $ac_try) 2>&5
24817+ ac_status=$?
24818+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
24819+ (exit $ac_status); }; } &&
24820+ { ac_try='test -s conftest$ac_exeext'
24821+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24822+ (eval $ac_try) 2>&5
24823+ ac_status=$?
24824+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
24825+ (exit $ac_status); }; }; then
24826+
24827+aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24828+}'`
24829+# Check for a 64-bit object if we didn't find anything.
24830+if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24831+}'`; fi
24832+else
24833+ echo "$as_me: failed program was:" >&5
24834+sed 's/^/| /' conftest.$ac_ext >&5
24835+
24836+fi
24837+rm -f conftest.err conftest.$ac_objext \
24838+ conftest$ac_exeext conftest.$ac_ext
24839+if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24840+
24841+ hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
24842+
24843+ archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
24844+ else
24845+ if test "$host_cpu" = ia64; then
24846+ hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
24847+ allow_undefined_flag_CXX="-z nodefs"
24848+ archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
24849+ else
24850+ # Determine the default libpath from the value encoded in an empty executable.
24851+ cat >conftest.$ac_ext <<_ACEOF
24852+/* confdefs.h. */
24853+_ACEOF
24854+cat confdefs.h >>conftest.$ac_ext
24855+cat >>conftest.$ac_ext <<_ACEOF
24856+/* end confdefs.h. */
24857+
24858+int
24859+main ()
24860+{
24861+
24862+ ;
24863+ return 0;
24864+}
24865+_ACEOF
24866+rm -f conftest.$ac_objext conftest$ac_exeext
24867+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24868+ (eval $ac_link) 2>conftest.er1
24869+ ac_status=$?
24870+ grep -v '^ *+' conftest.er1 >conftest.err
24871+ rm -f conftest.er1
24872+ cat conftest.err >&5
24873+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
24874+ (exit $ac_status); } &&
24875+ { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
24876+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24877+ (eval $ac_try) 2>&5
24878+ ac_status=$?
24879+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
24880+ (exit $ac_status); }; } &&
24881+ { ac_try='test -s conftest$ac_exeext'
24882+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24883+ (eval $ac_try) 2>&5
24884+ ac_status=$?
24885+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
24886+ (exit $ac_status); }; }; then
24887+
24888+aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24889+}'`
24890+# Check for a 64-bit object if we didn't find anything.
24891+if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24892+}'`; fi
24893+else
24894+ echo "$as_me: failed program was:" >&5
24895+sed 's/^/| /' conftest.$ac_ext >&5
24896+
24897+fi
24898+rm -f conftest.err conftest.$ac_objext \
24899+ conftest$ac_exeext conftest.$ac_ext
24900+if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24901+
24902+ hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
24903+ # Warning - without using the other run time loading flags,
24904+ # -berok will link without error, but may produce a broken library.
24905+ no_undefined_flag_CXX=' ${wl}-bernotok'
24906+ allow_undefined_flag_CXX=' ${wl}-berok'
24907+ # -bexpall does not export symbols beginning with underscore (_)
24908+ always_export_symbols_CXX=yes
24909+ # Exported symbols can be pulled into shared objects from archives
24910+ whole_archive_flag_spec_CXX=' '
24911+ archive_cmds_need_lc_CXX=yes
24912+ # This is similar to how AIX traditionally builds it's shared libraries.
24913+ archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
24914+ fi
24915+ fi
24916+ ;;
24917+ chorus*)
24918+ case $cc_basename in
24919+ *)
24920+ # FIXME: insert proper C++ library support
24921+ ld_shlibs_CXX=no
24922+ ;;
24923+ esac
24924+ ;;
24925+
24926+ cygwin* | mingw* | pw32*)
24927+ # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
24928+ # as there is no search path for DLLs.
24929+ hardcode_libdir_flag_spec_CXX='-L$libdir'
24930+ allow_undefined_flag_CXX=unsupported
24931+ always_export_symbols_CXX=no
24932+ enable_shared_with_static_runtimes_CXX=yes
24933+
24934+ if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24935+ archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
24936+ # If the export-symbols file already is a .def file (1st line
24937+ # is EXPORTS), use it as is; otherwise, prepend...
24938+ archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24939+ cp $export_symbols $output_objdir/$soname.def;
24940+ else
24941+ echo EXPORTS > $output_objdir/$soname.def;
24942+ cat $export_symbols >> $output_objdir/$soname.def;
24943+ fi~
24944+ $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
24945+ else
24946+ ld_shlibs_CXX=no
24947+ fi
24948+ ;;
24949+
24950+ darwin* | rhapsody*)
24951+ if test "$GXX" = yes; then
24952+ archive_cmds_need_lc_CXX=no
24953+ case "$host_os" in
24954+ rhapsody* | darwin1.[012])
24955+ allow_undefined_flag_CXX='-undefined suppress'
24956+ ;;
24957+ *) # Darwin 1.3 on
24958+ if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24959+ allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
24960+ else
24961+ case ${MACOSX_DEPLOYMENT_TARGET} in
24962+ 10.[012])
24963+ allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
24964+ ;;
24965+ 10.*)
24966+ allow_undefined_flag_CXX='-undefined dynamic_lookup'
24967+ ;;
24968+ esac
24969+ fi
24970+ ;;
24971+ esac
24972+ lt_int_apple_cc_single_mod=no
24973+ output_verbose_link_cmd='echo'
24974+ if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
24975+ lt_int_apple_cc_single_mod=yes
24976+ fi
24977+ if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
24978+ archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24979+ else
24980+ archive_cmds_CXX='$CC -r ${wl}-bind_at_load -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'
24981+ fi
24982+ module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24983+
24984+ # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
24985+ if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
24986+ archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
24987+ else
24988+ archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
24989+ fi
24990+ module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
24991+ hardcode_direct_CXX=no
24992+ hardcode_automatic_CXX=yes
24993+ hardcode_shlibpath_var_CXX=unsupported
24994+ whole_archive_flag_spec_CXX='-all_load $convenience'
24995+ link_all_deplibs_CXX=yes
24996+ else
24997+ ld_shlibs_CXX=no
24998+ fi
24999+ ;;
25000+
25001+ dgux*)
25002+ case $cc_basename in
25003+ ec++)
25004+ # FIXME: insert proper C++ library support
25005+ ld_shlibs_CXX=no
25006+ ;;
25007+ ghcx)
25008+ # Green Hills C++ Compiler
25009+ # FIXME: insert proper C++ library support
25010+ ld_shlibs_CXX=no
25011+ ;;
25012+ *)
25013+ # FIXME: insert proper C++ library support
25014+ ld_shlibs_CXX=no
25015+ ;;
25016+ esac
25017+ ;;
25018+ freebsd12*)
25019+ # C++ shared libraries reported to be fairly broken before switch to ELF
25020+ ld_shlibs_CXX=no
25021+ ;;
25022+ freebsd-elf*)
25023+ archive_cmds_need_lc_CXX=no
25024+ ;;
25025+ freebsd* | kfreebsd*-gnu)
25026+ # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
25027+ # conventions
25028+ ld_shlibs_CXX=yes
25029+ ;;
25030+ gnu*)
25031+ ;;
25032+ hpux9*)
25033+ hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
25034+ hardcode_libdir_separator_CXX=:
25035+ export_dynamic_flag_spec_CXX='${wl}-E'
25036+ hardcode_direct_CXX=yes
25037+ hardcode_minus_L_CXX=yes # Not in the search PATH,
25038+ # but as the default
25039+ # location of the library.
25040+
25041+ case $cc_basename in
25042+ CC)
25043+ # FIXME: insert proper C++ library support
25044+ ld_shlibs_CXX=no
25045+ ;;
25046+ aCC)
25047+ archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
25048+ # Commands to make compiler produce verbose output that lists
25049+ # what "hidden" libraries, object files and flags are used when
25050+ # linking a shared library.
25051+ #
25052+ # There doesn't appear to be a way to prevent this compiler from
25053+ # explicitly linking system object files so we need to strip them
25054+ # from the output so that they don't get included in the library
25055+ # dependencies.
25056+ output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
25057+ ;;
25058+ *)
25059+ if test "$GXX" = yes; then
25060+ archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
25061+ else
25062+ # FIXME: insert proper C++ library support
25063+ ld_shlibs_CXX=no
25064+ fi
25065+ ;;
25066+ esac
25067+ ;;
25068+ hpux10*|hpux11*)
25069+ if test $with_gnu_ld = no; then
25070+ case "$host_cpu" in
25071+ hppa*64*)
25072+ hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
25073+ hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
25074+ hardcode_libdir_separator_CXX=:
25075+ ;;
25076+ ia64*)
25077+ hardcode_libdir_flag_spec_CXX='-L$libdir'
25078+ ;;
25079+ *)
25080+ hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
25081+ hardcode_libdir_separator_CXX=:
25082+ export_dynamic_flag_spec_CXX='${wl}-E'
25083+ ;;
25084+ esac
25085+ fi
25086+ case "$host_cpu" in
25087+ hppa*64*)
25088+ hardcode_direct_CXX=no
25089+ hardcode_shlibpath_var_CXX=no
25090+ ;;
25091+ ia64*)
25092+ hardcode_direct_CXX=no
25093+ hardcode_shlibpath_var_CXX=no
25094+ hardcode_minus_L_CXX=yes # Not in the search PATH,
25095+ # but as the default
25096+ # location of the library.
25097+ ;;
25098+ *)
25099+ hardcode_direct_CXX=yes
25100+ hardcode_minus_L_CXX=yes # Not in the search PATH,
25101+ # but as the default
25102+ # location of the library.
25103+ ;;
25104+ esac
25105+
25106+ case $cc_basename in
25107+ CC)
25108+ # FIXME: insert proper C++ library support
25109+ ld_shlibs_CXX=no
25110+ ;;
25111+ aCC)
25112+ case "$host_cpu" in
25113+ hppa*64*|ia64*)
25114+ archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
25115+ ;;
25116+ *)
25117+ archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
25118+ ;;
25119+ esac
25120+ # Commands to make compiler produce verbose output that lists
25121+ # what "hidden" libraries, object files and flags are used when
25122+ # linking a shared library.
25123+ #
25124+ # There doesn't appear to be a way to prevent this compiler from
25125+ # explicitly linking system object files so we need to strip them
25126+ # from the output so that they don't get included in the library
25127+ # dependencies.
25128+ output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
25129+ ;;
25130+ *)
25131+ if test "$GXX" = yes; then
25132+ if test $with_gnu_ld = no; then
25133+ case "$host_cpu" in
25134+ ia64*|hppa*64*)
25135+ archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
25136+ ;;
25137+ *)
25138+ archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
25139+ ;;
25140+ esac
25141+ fi
25142+ else
25143+ # FIXME: insert proper C++ library support
25144+ ld_shlibs_CXX=no
25145+ fi
25146+ ;;
25147+ esac
25148+ ;;
25149+ irix5* | irix6*)
25150+ case $cc_basename in
25151+ CC)
25152+ # SGI C++
25153+ archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
25154+
25155+ # Archives containing C++ object files must be created using
25156+ # "CC -ar", where "CC" is the IRIX C++ compiler. This is
25157+ # necessary to make sure instantiated templates are included
25158+ # in the archive.
25159+ old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
25160+ ;;
25161+ *)
25162+ if test "$GXX" = yes; then
25163+ if test "$with_gnu_ld" = no; then
25164+ archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
25165+ else
25166+ archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
25167+ fi
25168+ fi
25169+ link_all_deplibs_CXX=yes
25170+ ;;
25171+ esac
25172+ hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
25173+ hardcode_libdir_separator_CXX=:
25174+ ;;
25175+ linux*)
25176+ case $cc_basename in
25177+ KCC)
25178+ # Kuck and Associates, Inc. (KAI) C++ Compiler
25179+
25180+ # KCC will only create a shared library if the output file
25181+ # ends with ".so" (or ".sl" for HP-UX), so rename the library
25182+ # to its proper name (with version) after linking.
25183+ archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
25184+ archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
25185+ # Commands to make compiler produce verbose output that lists
25186+ # what "hidden" libraries, object files and flags are used when
25187+ # linking a shared library.
25188+ #
25189+ # There doesn't appear to be a way to prevent this compiler from
25190+ # explicitly linking system object files so we need to strip them
25191+ # from the output so that they don't get included in the library
25192+ # dependencies.
25193+ output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
25194+
25195+ hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
25196+ export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
25197+
25198+ # Archives containing C++ object files must be created using
25199+ # "CC -Bstatic", where "CC" is the KAI C++ compiler.
25200+ old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
25201+ ;;
25202+ icpc)
25203+ # Intel C++
25204+ with_gnu_ld=yes
25205+ archive_cmds_need_lc_CXX=no
25206+ archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
25207+ archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
25208+ hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
25209+ export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
25210+ whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
25211+ ;;
25212+ cxx)
25213+ # Compaq C++
25214+ archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
25215+ archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
25216+
25217+ runpath_var=LD_RUN_PATH
25218+ hardcode_libdir_flag_spec_CXX='-rpath $libdir'
25219+ hardcode_libdir_separator_CXX=:
25220+
25221+ # Commands to make compiler produce verbose output that lists
25222+ # what "hidden" libraries, object files and flags are used when
25223+ # linking a shared library.
25224+ #
25225+ # There doesn't appear to be a way to prevent this compiler from
25226+ # explicitly linking system object files so we need to strip them
25227+ # from the output so that they don't get included in the library
25228+ # dependencies.
25229+ output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
25230+ ;;
25231+ esac
25232+ ;;
25233+ lynxos*)
25234+ # FIXME: insert proper C++ library support
25235+ ld_shlibs_CXX=no
25236+ ;;
25237+ m88k*)
25238+ # FIXME: insert proper C++ library support
25239+ ld_shlibs_CXX=no
25240+ ;;
25241+ mvs*)
25242+ case $cc_basename in
25243+ cxx)
25244+ # FIXME: insert proper C++ library support
25245+ ld_shlibs_CXX=no
25246+ ;;
25247+ *)
25248+ # FIXME: insert proper C++ library support
25249+ ld_shlibs_CXX=no
25250+ ;;
25251+ esac
25252+ ;;
25253+ netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
25254+ if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25255+ archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
25256+ wlarc=
25257+ hardcode_libdir_flag_spec_CXX='-R$libdir'
25258+ hardcode_direct_CXX=yes
25259+ hardcode_shlibpath_var_CXX=no
25260+ fi
25261+ # Workaround some broken pre-1.5 toolchains
25262+ output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
25263+ ;;
25264+ osf3*)
25265+ case $cc_basename in
25266+ KCC)
25267+ # Kuck and Associates, Inc. (KAI) C++ Compiler
25268+
25269+ # KCC will only create a shared library if the output file
25270+ # ends with ".so" (or ".sl" for HP-UX), so rename the library
25271+ # to its proper name (with version) after linking.
25272+ archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
25273+
25274+ hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
25275+ hardcode_libdir_separator_CXX=:
25276+
25277+ # Archives containing C++ object files must be created using
25278+ # "CC -Bstatic", where "CC" is the KAI C++ compiler.
25279+ old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
25280+
25281+ ;;
25282+ RCC)
25283+ # Rational C++ 2.4.1
25284+ # FIXME: insert proper C++ library support
25285+ ld_shlibs_CXX=no
25286+ ;;
25287+ cxx)
25288+ allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
25289+ archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
25290+
25291+ hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
25292+ hardcode_libdir_separator_CXX=:
25293+
25294+ # Commands to make compiler produce verbose output that lists
25295+ # what "hidden" libraries, object files and flags are used when
25296+ # linking a shared library.
25297+ #
25298+ # There doesn't appear to be a way to prevent this compiler from
25299+ # explicitly linking system object files so we need to strip them
25300+ # from the output so that they don't get included in the library
25301+ # dependencies.
25302+ output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
25303+ ;;
25304+ *)
25305+ if test "$GXX" = yes && test "$with_gnu_ld" = no; then
25306+ allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
25307+ archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
25308+
25309+ hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
25310+ hardcode_libdir_separator_CXX=:
25311+
25312+ # Commands to make compiler produce verbose output that lists
25313+ # what "hidden" libraries, object files and flags are used when
25314+ # linking a shared library.
25315+ output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
25316+
25317+ else
25318+ # FIXME: insert proper C++ library support
25319+ ld_shlibs_CXX=no
25320+ fi
25321+ ;;
25322+ esac
25323+ ;;
25324+ osf4* | osf5*)
25325+ case $cc_basename in
25326+ KCC)
25327+ # Kuck and Associates, Inc. (KAI) C++ Compiler
25328+
25329+ # KCC will only create a shared library if the output file
25330+ # ends with ".so" (or ".sl" for HP-UX), so rename the library
25331+ # to its proper name (with version) after linking.
25332+ archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
25333+
25334+ hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
25335+ hardcode_libdir_separator_CXX=:
25336+
25337+ # Archives containing C++ object files must be created using
25338+ # the KAI C++ compiler.
25339+ old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
25340+ ;;
25341+ RCC)
25342+ # Rational C++ 2.4.1
25343+ # FIXME: insert proper C++ library support
25344+ ld_shlibs_CXX=no
25345+ ;;
25346+ cxx)
25347+ allow_undefined_flag_CXX=' -expect_unresolved \*'
25348+ archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
25349+ archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
25350+ echo "-hidden">> $lib.exp~
25351+ $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
25352+ $rm $lib.exp'
25353+
25354+ hardcode_libdir_flag_spec_CXX='-rpath $libdir'
25355+ hardcode_libdir_separator_CXX=:
25356+
25357+ # Commands to make compiler produce verbose output that lists
25358+ # what "hidden" libraries, object files and flags are used when
25359+ # linking a shared library.
25360+ #
25361+ # There doesn't appear to be a way to prevent this compiler from
25362+ # explicitly linking system object files so we need to strip them
25363+ # from the output so that they don't get included in the library
25364+ # dependencies.
25365+ output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
25366+ ;;
25367+ *)
25368+ if test "$GXX" = yes && test "$with_gnu_ld" = no; then
25369+ allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
25370+ archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
25371+
25372+ hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
25373+ hardcode_libdir_separator_CXX=:
25374+
25375+ # Commands to make compiler produce verbose output that lists
25376+ # what "hidden" libraries, object files and flags are used when
25377+ # linking a shared library.
25378+ output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
25379+
25380+ else
25381+ # FIXME: insert proper C++ library support
25382+ ld_shlibs_CXX=no
25383+ fi
25384+ ;;
25385+ esac
25386+ ;;
25387+ psos*)
25388+ # FIXME: insert proper C++ library support
25389+ ld_shlibs_CXX=no
25390+ ;;
25391+ sco*)
25392+ archive_cmds_need_lc_CXX=no
25393+ case $cc_basename in
25394+ CC)
25395+ # FIXME: insert proper C++ library support
25396+ ld_shlibs_CXX=no
25397+ ;;
25398+ *)
25399+ # FIXME: insert proper C++ library support
25400+ ld_shlibs_CXX=no
25401+ ;;
25402+ esac
25403+ ;;
25404+ sunos4*)
25405+ case $cc_basename in
25406+ CC)
25407+ # Sun C++ 4.x
25408+ # FIXME: insert proper C++ library support
25409+ ld_shlibs_CXX=no
25410+ ;;
25411+ lcc)
25412+ # Lucid
25413+ # FIXME: insert proper C++ library support
25414+ ld_shlibs_CXX=no
25415+ ;;
25416+ *)
25417+ # FIXME: insert proper C++ library support
25418+ ld_shlibs_CXX=no
25419+ ;;
25420+ esac
25421+ ;;
25422+ solaris*)
25423+ case $cc_basename in
25424+ CC)
25425+ # Sun C++ 4.2, 5.x and Centerline C++
25426+ no_undefined_flag_CXX=' -zdefs'
25427+ archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
25428+ archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25429+ $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
25430+
25431+ hardcode_libdir_flag_spec_CXX='-R$libdir'
25432+ hardcode_shlibpath_var_CXX=no
25433+ case $host_os in
25434+ solaris2.0-5 | solaris2.0-5.*) ;;
25435+ *)
25436+ # The C++ compiler is used as linker so we must use $wl
25437+ # flag to pass the commands to the underlying system
25438+ # linker.
25439+ # Supported since Solaris 2.6 (maybe 2.5.1?)
25440+ whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
25441+ ;;
25442+ esac
25443+ link_all_deplibs_CXX=yes
25444+
25445+ # Commands to make compiler produce verbose output that lists
25446+ # what "hidden" libraries, object files and flags are used when
25447+ # linking a shared library.
25448+ #
25449+ # There doesn't appear to be a way to prevent this compiler from
25450+ # explicitly linking system object files so we need to strip them
25451+ # from the output so that they don't get included in the library
25452+ # dependencies.
25453+ output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
25454+
25455+ # Archives containing C++ object files must be created using
25456+ # "CC -xar", where "CC" is the Sun C++ compiler. This is
25457+ # necessary to make sure instantiated templates are included
25458+ # in the archive.
25459+ old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
25460+ ;;
25461+ gcx)
25462+ # Green Hills C++ Compiler
25463+ archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
25464+
25465+ # The C++ compiler must be used to create the archive.
25466+ old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
25467+ ;;
25468+ *)
25469+ # GNU C++ compiler with Solaris linker
25470+ if test "$GXX" = yes && test "$with_gnu_ld" = no; then
25471+ no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
25472+ if $CC --version | grep -v '^2\.7' > /dev/null; then
25473+ archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
25474+ archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25475+ $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
25476+
25477+ # Commands to make compiler produce verbose output that lists
25478+ # what "hidden" libraries, object files and flags are used when
25479+ # linking a shared library.
25480+ output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
25481+ else
25482+ # g++ 2.7 appears to require `-G' NOT `-shared' on this
25483+ # platform.
25484+ archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
25485+ archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25486+ $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
25487+
25488+ # Commands to make compiler produce verbose output that lists
25489+ # what "hidden" libraries, object files and flags are used when
25490+ # linking a shared library.
25491+ output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
25492+ fi
25493+
25494+ hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
25495+ fi
25496+ ;;
25497+ esac
25498+ ;;
25499+ sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
25500+ archive_cmds_need_lc_CXX=no
25501+ ;;
25502+ tandem*)
25503+ case $cc_basename in
25504+ NCC)
25505+ # NonStop-UX NCC 3.20
25506+ # FIXME: insert proper C++ library support
25507+ ld_shlibs_CXX=no
25508+ ;;
25509+ *)
25510+ # FIXME: insert proper C++ library support
25511+ ld_shlibs_CXX=no
25512+ ;;
25513+ esac
25514+ ;;
25515+ vxworks*)
25516+ # FIXME: insert proper C++ library support
25517+ ld_shlibs_CXX=no
25518+ ;;
25519+ *)
25520+ # FIXME: insert proper C++ library support
25521+ ld_shlibs_CXX=no
25522+ ;;
25523+esac
25524+echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
25525+echo "${ECHO_T}$ld_shlibs_CXX" >&6
25526+test "$ld_shlibs_CXX" = no && can_build_shared=no
25527+
25528+GCC_CXX="$GXX"
25529+LD_CXX="$LD"
25530+
25531+
25532+cat > conftest.$ac_ext <<EOF
25533+class Foo
25534+{
25535+public:
25536+ Foo (void) { a = 0; }
25537+private:
25538+ int a;
25539+};
25540+EOF
25541+
25542+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25543+ (eval $ac_compile) 2>&5
25544+ ac_status=$?
25545+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
25546+ (exit $ac_status); }; then
25547+ # Parse the compiler output and extract the necessary
25548+ # objects, libraries and library flags.
25549+
25550+ # Sentinel used to keep track of whether or not we are before
25551+ # the conftest object file.
25552+ pre_test_object_deps_done=no
25553+
25554+ # The `*' in the case matches for architectures that use `case' in
25555+ # $output_verbose_cmd can trigger glob expansion during the loop
25556+ # eval without this substitution.
25557+ output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
25558+
25559+ for p in `eval $output_verbose_link_cmd`; do
25560+ case $p in
25561+
25562+ -L* | -R* | -l*)
25563+ # Some compilers place space between "-{L,R}" and the path.
25564+ # Remove the space.
25565+ if test $p = "-L" \
25566+ || test $p = "-R"; then
25567+ prev=$p
25568+ continue
25569+ else
25570+ prev=
25571+ fi
25572+
25573+ if test "$pre_test_object_deps_done" = no; then
25574+ case $p in
25575+ -L* | -R*)
25576+ # Internal compiler library paths should come after those
25577+ # provided the user. The postdeps already come after the
25578+ # user supplied libs so there is no need to process them.
25579+ if test -z "$compiler_lib_search_path_CXX"; then
25580+ compiler_lib_search_path_CXX="${prev}${p}"
25581+ else
25582+ compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
25583+ fi
25584+ ;;
25585+ # The "-l" case would never come before the object being
25586+ # linked, so don't bother handling this case.
25587+ esac
25588+ else
25589+ if test -z "$postdeps_CXX"; then
25590+ postdeps_CXX="${prev}${p}"
25591+ else
25592+ postdeps_CXX="${postdeps_CXX} ${prev}${p}"
25593+ fi
25594+ fi
25595+ ;;
25596+
25597+ *.$objext)
25598+ # This assumes that the test object file only shows up
25599+ # once in the compiler output.
25600+ if test "$p" = "conftest.$objext"; then
25601+ pre_test_object_deps_done=yes
25602+ continue
25603+ fi
25604+
25605+ if test "$pre_test_object_deps_done" = no; then
25606+ if test -z "$predep_objects_CXX"; then
25607+ predep_objects_CXX="$p"
25608+ else
25609+ predep_objects_CXX="$predep_objects_CXX $p"
25610+ fi
25611+ else
25612+ if test -z "$postdep_objects_CXX"; then
25613+ postdep_objects_CXX="$p"
25614+ else
25615+ postdep_objects_CXX="$postdep_objects_CXX $p"
25616+ fi
25617+ fi
25618+ ;;
25619+
25620+ *) ;; # Ignore the rest.
25621+
25622+ esac
25623+ done
25624+
25625+ # Clean up.
25626+ rm -f a.out a.exe
25627+else
25628+ echo "libtool.m4: error: problem compiling CXX test program"
25629+fi
25630+
25631+$rm -f confest.$objext
25632+
25633+case " $postdeps_CXX " in
25634+*" -lc "*) archive_cmds_need_lc_CXX=no ;;
25635+esac
25636+
25637+lt_prog_compiler_wl_CXX=
25638+lt_prog_compiler_pic_CXX=
25639+lt_prog_compiler_static_CXX=
25640+
25641+echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
25642+echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
25643+
25644+ # C++ specific cases for pic, static, wl, etc.
25645+ if test "$GXX" = yes; then
25646+ lt_prog_compiler_wl_CXX='-Wl,'
25647+ lt_prog_compiler_static_CXX='-static'
25648+
25649+ case $host_os in
25650+ aix*)
25651+ # All AIX code is PIC.
25652+ if test "$host_cpu" = ia64; then
25653+ # AIX 5 now supports IA64 processor
25654+ lt_prog_compiler_static_CXX='-Bstatic'
25655+ fi
25656+ ;;
25657+ amigaos*)
25658+ # FIXME: we need at least 68020 code to build shared libraries, but
25659+ # adding the `-m68020' flag to GCC prevents building anything better,
25660+ # like `-m68040'.
25661+ lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
25662+ ;;
25663+ beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
25664+ # PIC is the default for these OSes.
25665+ ;;
25666+ mingw* | os2* | pw32*)
25667+ # This hack is so that the source file can tell whether it is being
25668+ # built for inclusion in a dll (and should export symbols for example).
25669+ lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
25670+ ;;
25671+ darwin* | rhapsody*)
25672+ # PIC is the default on this platform
25673+ # Common symbols not allowed in MH_DYLIB files
25674+ lt_prog_compiler_pic_CXX='-fno-common'
25675+ ;;
25676+ *djgpp*)
25677+ # DJGPP does not support shared libraries at all
25678+ lt_prog_compiler_pic_CXX=
25679+ ;;
25680+ sysv4*MP*)
25681+ if test -d /usr/nec; then
25682+ lt_prog_compiler_pic_CXX=-Kconform_pic
25683+ fi
25684+ ;;
25685+ hpux*)
25686+ # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
25687+ # not for PA HP-UX.
25688+ case "$host_cpu" in
25689+ hppa*64*|ia64*)
25690+ ;;
25691+ *)
25692+ lt_prog_compiler_pic_CXX='-fPIC'
25693+ ;;
25694+ esac
25695+ ;;
25696+ *)
25697+ lt_prog_compiler_pic_CXX='-fPIC'
25698+ ;;
25699+ esac
25700+ else
25701+ case $host_os in
25702+ aix4* | aix5*)
25703+ # All AIX code is PIC.
25704+ if test "$host_cpu" = ia64; then
25705+ # AIX 5 now supports IA64 processor
25706+ lt_prog_compiler_static_CXX='-Bstatic'
25707+ else
25708+ lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
25709+ fi
25710+ ;;
25711+ chorus*)
25712+ case $cc_basename in
25713+ cxch68)
25714+ # Green Hills C++ Compiler
25715+ # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--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"
25716+ ;;
25717+ esac
25718+ ;;
25719+ dgux*)
25720+ case $cc_basename in
25721+ ec++)
25722+ lt_prog_compiler_pic_CXX='-KPIC'
25723+ ;;
25724+ ghcx)
25725+ # Green Hills C++ Compiler
25726+ lt_prog_compiler_pic_CXX='-pic'
25727+ ;;
25728+ *)
25729+ ;;
25730+ esac
25731+ ;;
25732+ freebsd* | kfreebsd*-gnu)
25733+ # FreeBSD uses GNU C++
25734+ ;;
25735+ hpux9* | hpux10* | hpux11*)
25736+ case $cc_basename in
25737+ CC)
25738+ lt_prog_compiler_wl_CXX='-Wl,'
25739+ lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
25740+ if test "$host_cpu" != ia64; then
25741+ lt_prog_compiler_pic_CXX='+Z'
25742+ fi
25743+ ;;
25744+ aCC)
25745+ lt_prog_compiler_wl_CXX='-Wl,'
25746+ lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
25747+ case "$host_cpu" in
25748+ hppa*64*|ia64*)
25749+ # +Z the default
25750+ ;;
25751+ *)
25752+ lt_prog_compiler_pic_CXX='+Z'
25753+ ;;
25754+ esac
25755+ ;;
25756+ *)
25757+ ;;
25758+ esac
25759+ ;;
25760+ irix5* | irix6* | nonstopux*)
25761+ case $cc_basename in
25762+ CC)
25763+ lt_prog_compiler_wl_CXX='-Wl,'
25764+ lt_prog_compiler_static_CXX='-non_shared'
25765+ # CC pic flag -KPIC is the default.
25766+ ;;
25767+ *)
25768+ ;;
25769+ esac
25770+ ;;
25771+ linux*)
25772+ case $cc_basename in
25773+ KCC)
25774+ # KAI C++ Compiler
25775+ lt_prog_compiler_wl_CXX='--backend -Wl,'
25776+ lt_prog_compiler_pic_CXX='-fPIC'
25777+ ;;
25778+ icpc)
25779+ # Intel C++
25780+ lt_prog_compiler_wl_CXX='-Wl,'
25781+ lt_prog_compiler_pic_CXX='-KPIC'
25782+ lt_prog_compiler_static_CXX='-static'
25783+ ;;
25784+ cxx)
25785+ # Compaq C++
25786+ # Make sure the PIC flag is empty. It appears that all Alpha
25787+ # Linux and Compaq Tru64 Unix objects are PIC.
25788+ lt_prog_compiler_pic_CXX=
25789+ lt_prog_compiler_static_CXX='-non_shared'
25790+ ;;
25791+ *)
25792+ ;;
25793+ esac
25794+ ;;
25795+ lynxos*)
25796+ ;;
25797+ m88k*)
25798+ ;;
25799+ mvs*)
25800+ case $cc_basename in
25801+ cxx)
25802+ lt_prog_compiler_pic_CXX='-W c,exportall'
25803+ ;;
25804+ *)
25805+ ;;
25806+ esac
25807+ ;;
25808+ netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
25809+ ;;
25810+ osf3* | osf4* | osf5*)
25811+ case $cc_basename in
25812+ KCC)
25813+ lt_prog_compiler_wl_CXX='--backend -Wl,'
25814+ ;;
25815+ RCC)
25816+ # Rational C++ 2.4.1
25817+ lt_prog_compiler_pic_CXX='-pic'
25818+ ;;
25819+ cxx)
25820+ # Digital/Compaq C++
25821+ lt_prog_compiler_wl_CXX='-Wl,'
25822+ # Make sure the PIC flag is empty. It appears that all Alpha
25823+ # Linux and Compaq Tru64 Unix objects are PIC.
25824+ lt_prog_compiler_pic_CXX=
25825+ lt_prog_compiler_static_CXX='-non_shared'
25826+ ;;
25827+ *)
25828+ ;;
25829+ esac
25830+ ;;
25831+ psos*)
25832+ ;;
25833+ sco*)
25834+ case $cc_basename in
25835+ CC)
25836+ lt_prog_compiler_pic_CXX='-fPIC'
25837+ ;;
25838+ *)
25839+ ;;
25840+ esac
25841+ ;;
25842+ solaris*)
25843+ case $cc_basename in
25844+ CC)
25845+ # Sun C++ 4.2, 5.x and Centerline C++
25846+ lt_prog_compiler_pic_CXX='-KPIC'
25847+ lt_prog_compiler_static_CXX='-Bstatic'
25848+ lt_prog_compiler_wl_CXX='-Qoption ld '
25849+ ;;
25850+ gcx)
25851+ # Green Hills C++ Compiler
25852+ lt_prog_compiler_pic_CXX='-PIC'
25853+ ;;
25854+ *)
25855+ ;;
25856+ esac
25857+ ;;
25858+ sunos4*)
25859+ case $cc_basename in
25860+ CC)
25861+ # Sun C++ 4.x
25862+ lt_prog_compiler_pic_CXX='-pic'
25863+ lt_prog_compiler_static_CXX='-Bstatic'
25864+ ;;
25865+ lcc)
25866+ # Lucid
25867+ lt_prog_compiler_pic_CXX='-pic'
25868+ ;;
25869+ *)
25870+ ;;
25871+ esac
25872+ ;;
25873+ tandem*)
25874+ case $cc_basename in
25875+ NCC)
25876+ # NonStop-UX NCC 3.20
25877+ lt_prog_compiler_pic_CXX='-KPIC'
25878+ ;;
25879+ *)
25880+ ;;
25881+ esac
25882+ ;;
25883+ unixware*)
25884+ ;;
25885+ vxworks*)
25886+ ;;
25887+ *)
25888+ lt_prog_compiler_can_build_shared_CXX=no
25889+ ;;
25890+ esac
25891+ fi
25892+
25893+echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
25894+echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
25895+
25896+#
25897+# Check to make sure the PIC flag actually works.
25898+#
25899+if test -n "$lt_prog_compiler_pic_CXX"; then
25900+
25901+echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
25902+echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
25903+if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
25904+ echo $ECHO_N "(cached) $ECHO_C" >&6
25905+else
25906+ lt_prog_compiler_pic_works_CXX=no
25907+ ac_outfile=conftest.$ac_objext
25908+ printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25909+ lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
25910+ # Insert the option either (1) after the last *FLAGS variable, or
25911+ # (2) before a word containing "conftest.", or (3) at the end.
25912+ # Note that $ac_compile itself does not contain backslashes and begins
25913+ # with a dollar sign (not a hyphen), so the echo should work correctly.
25914+ # The option is referenced via a variable to avoid confusing sed.
25915+ lt_compile=`echo "$ac_compile" | $SED \
25916+ -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
25917+ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
25918+ -e 's:$: $lt_compiler_flag:'`
25919+ (eval echo "\"\$as_me:10953: $lt_compile\"" >&5)
25920+ (eval "$lt_compile" 2>conftest.err)
25921+ ac_status=$?
25922+ cat conftest.err >&5
25923+ echo "$as_me:10957: \$? = $ac_status" >&5
25924+ if (exit $ac_status) && test -s "$ac_outfile"; then
25925+ # The compiler can only warn and ignore the option if not recognized
25926+ # So say no if there are warnings
25927+ if test ! -s conftest.err; then
25928+ lt_prog_compiler_pic_works_CXX=yes
25929+ fi
25930+ fi
25931+ $rm conftest*
25932+
25933+fi
25934+echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
25935+echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
25936+
25937+if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
25938+ case $lt_prog_compiler_pic_CXX in
25939+ "" | " "*) ;;
25940+ *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
25941+ esac
25942+else
25943+ lt_prog_compiler_pic_CXX=
25944+ lt_prog_compiler_can_build_shared_CXX=no
25945+fi
25946+
25947+fi
25948+case "$host_os" in
25949+ # For platforms which do not support PIC, -DPIC is meaningless:
25950+ *djgpp*)
25951+ lt_prog_compiler_pic_CXX=
25952+ ;;
25953+ *)
25954+ lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
25955+ ;;
25956+esac
25957+
25958+echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
25959+echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
25960+if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
25961+ echo $ECHO_N "(cached) $ECHO_C" >&6
25962+else
25963+ lt_cv_prog_compiler_c_o_CXX=no
25964+ $rm -r conftest 2>/dev/null
25965+ mkdir conftest
25966+ cd conftest
25967+ mkdir out
25968+ printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25969+
25970+ lt_compiler_flag="-o out/conftest2.$ac_objext"
25971+ # Insert the option either (1) after the last *FLAGS variable, or
25972+ # (2) before a word containing "conftest.", or (3) at the end.
25973+ # Note that $ac_compile itself does not contain backslashes and begins
25974+ # with a dollar sign (not a hyphen), so the echo should work correctly.
25975+ lt_compile=`echo "$ac_compile" | $SED \
25976+ -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
25977+ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
25978+ -e 's:$: $lt_compiler_flag:'`
25979+ (eval echo "\"\$as_me:11013: $lt_compile\"" >&5)
25980+ (eval "$lt_compile" 2>out/conftest.err)
25981+ ac_status=$?
25982+ cat out/conftest.err >&5
25983+ echo "$as_me:11017: \$? = $ac_status" >&5
25984+ if (exit $ac_status) && test -s out/conftest2.$ac_objext
25985+ then
25986+ # The compiler can only warn and ignore the option if not recognized
25987+ # So say no if there are warnings
25988+ if test ! -s out/conftest.err; then
25989+ lt_cv_prog_compiler_c_o_CXX=yes
25990+ fi
25991+ fi
25992+ chmod u+w .
25993+ $rm conftest*
25994+ # SGI C++ compiler will create directory out/ii_files/ for
25995+ # template instantiation
25996+ test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
25997+ $rm out/* && rmdir out
25998+ cd ..
25999+ rmdir conftest
26000+ $rm conftest*
26001+
26002+fi
26003+echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
26004+echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
26005+
26006+
26007+hard_links="nottested"
26008+if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
26009+ # do not overwrite the value of need_locks provided by the user
26010+ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
26011+echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
26012+ hard_links=yes
26013+ $rm conftest*
26014+ ln conftest.a conftest.b 2>/dev/null && hard_links=no
26015+ touch conftest.a
26016+ ln conftest.a conftest.b 2>&5 || hard_links=no
26017+ ln conftest.a conftest.b 2>/dev/null && hard_links=no
26018+ echo "$as_me:$LINENO: result: $hard_links" >&5
26019+echo "${ECHO_T}$hard_links" >&6
26020+ if test "$hard_links" = no; then
26021+ { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
26022+echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
26023+ need_locks=warn
26024+ fi
26025+else
26026+ need_locks=no
26027+fi
26028+
26029+echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
26030+echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
26031+
26032+ export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
26033+ case $host_os in
26034+ aix4* | aix5*)
26035+ # If we're using GNU nm, then we don't want the "-C" option.
26036+ # -C means demangle to AIX nm, but means don't demangle with GNU nm
26037+ if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
26038+ export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
26039+ else
26040+ export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
26041+ fi
26042+ ;;
26043+ pw32*)
26044+ export_symbols_cmds_CXX="$ltdll_cmds"
26045+ ;;
26046+ cygwin* | mingw*)
26047+ export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
26048+ ;;
26049+ linux*)
26050+ link_all_deplibs_CXX=no
26051+ ;;
26052+ *)
26053+ export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
26054+ ;;
26055+ esac
26056+
26057+echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
26058+echo "${ECHO_T}$ld_shlibs_CXX" >&6
26059+test "$ld_shlibs_CXX" = no && can_build_shared=no
26060+
26061+variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26062+if test "$GCC" = yes; then
26063+ variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26064+fi
26065+
26066+#
26067+# Do we need to explicitly link libc?
26068+#
26069+case "x$archive_cmds_need_lc_CXX" in
26070+x|xyes)
26071+ # Assume -lc should be added
26072+ archive_cmds_need_lc_CXX=yes
26073+
26074+ if test "$enable_shared" = yes && test "$GCC" = yes; then
26075+ case $archive_cmds_CXX in
26076+ *'~'*)
26077+ # FIXME: we may have to deal with multi-command sequences.
26078+ ;;
26079+ '$CC '*)
26080+ # Test whether the compiler implicitly links with -lc since on some
26081+ # systems, -lgcc has to come before -lc. If gcc already passes -lc
26082+ # to ld, don't add -lc before -lgcc.
26083+ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
26084+echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
26085+ $rm conftest*
26086+ printf "$lt_simple_compile_test_code" > conftest.$ac_ext
26087+
26088+ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26089+ (eval $ac_compile) 2>&5
26090+ ac_status=$?
26091+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
26092+ (exit $ac_status); } 2>conftest.err; then
26093+ soname=conftest
26094+ lib=conftest
26095+ libobjs=conftest.$ac_objext
26096+ deplibs=
26097+ wl=$lt_prog_compiler_wl_CXX
26098+ compiler_flags=-v
26099+ linker_flags=-v
26100+ verstring=
26101+ output_objdir=.
26102+ libname=conftest
26103+ lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
26104+ allow_undefined_flag_CXX=
26105+ if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
26106+ (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
26107+ ac_status=$?
26108+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
26109+ (exit $ac_status); }
26110+ then
26111+ archive_cmds_need_lc_CXX=no
26112+ else
26113+ archive_cmds_need_lc_CXX=yes
26114+ fi
26115+ allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
26116+ else
26117+ cat conftest.err 1>&5
26118+ fi
26119+ $rm conftest*
26120+ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
26121+echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
26122+ ;;
26123+ esac
26124+ fi
26125+ ;;
26126+esac
26127+
26128+echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
26129+echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
26130+library_names_spec=
26131+libname_spec='lib$name'
26132+soname_spec=
26133+shrext_cmds=".so"
26134+postinstall_cmds=
26135+postuninstall_cmds=
26136+finish_cmds=
26137+finish_eval=
26138+shlibpath_var=
26139+shlibpath_overrides_runpath=unknown
26140+version_type=none
26141+dynamic_linker="$host_os ld.so"
26142+sys_lib_dlsearch_path_spec="/lib /usr/lib"
26143+if test "$GCC" = yes; then
26144+ sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
26145+ if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
26146+ # if the path contains ";" then we assume it to be the separator
26147+ # otherwise default to the standard path separator (i.e. ":") - it is
26148+ # assumed that no part of a normal pathname contains ";" but that should
26149+ # okay in the real world where ";" in dirpaths is itself problematic.
26150+ sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
26151+ else
26152+ sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
26153+ fi
26154+else
26155+ sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
26156+fi
26157+need_lib_prefix=unknown
26158+hardcode_into_libs=no
26159+
26160+# when you set need_version to no, make sure it does not cause -set_version
26161+# flags to be left without arguments
26162+need_version=unknown
26163+
26164+case $host_os in
26165+aix3*)
26166+ version_type=linux
26167+ library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
26168+ shlibpath_var=LIBPATH
26169+
26170+ # AIX 3 has no versioning support, so we append a major version to the name.
26171+ soname_spec='${libname}${release}${shared_ext}$major'
26172+ ;;
26173+
26174+aix4* | aix5*)
26175+ version_type=linux
26176+ need_lib_prefix=no
26177+ need_version=no
26178+ hardcode_into_libs=yes
26179+ if test "$host_cpu" = ia64; then
26180+ # AIX 5 supports IA64
26181+ library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
26182+ shlibpath_var=LD_LIBRARY_PATH
26183+ else
26184+ # With GCC up to 2.95.x, collect2 would create an import file
26185+ # for dependence libraries. The import file would start with
26186+ # the line `#! .'. This would cause the generated library to
26187+ # depend on `.', always an invalid library. This was fixed in
26188+ # development snapshots of GCC prior to 3.0.
26189+ case $host_os in
26190+ aix4 | aix4.[01] | aix4.[01].*)
26191+ if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
26192+ echo ' yes '
26193+ echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
26194+ :
26195+ else
26196+ can_build_shared=no
26197+ fi
26198+ ;;
26199+ esac
26200+ # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
26201+ # soname into executable. Probably we can add versioning support to
26202+ # collect2, so additional links can be useful in future.
26203+ if test "$aix_use_runtimelinking" = yes; then
26204+ # If using run time linking (on AIX 4.2 or later) use lib<name>.so
26205+ # instead of lib<name>.a to let people know that these are not
26206+ # typical AIX shared libraries.
26207+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26208+ else
26209+ # We preserve .a as extension for shared libraries through AIX4.2
26210+ # and later when we are not doing run time linking.
26211+ library_names_spec='${libname}${release}.a $libname.a'
26212+ soname_spec='${libname}${release}${shared_ext}$major'
26213+ fi
26214+ shlibpath_var=LIBPATH
26215+ fi
26216+ ;;
26217+
26218+amigaos*)
26219+ library_names_spec='$libname.ixlibrary $libname.a'
26220+ # Create ${libname}_ixlibrary.a entries in /sys/libs.
26221+ 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'
26222+ ;;
26223+
26224+beos*)
26225+ library_names_spec='${libname}${shared_ext}'
26226+ dynamic_linker="$host_os ld.so"
26227+ shlibpath_var=LIBRARY_PATH
26228+ ;;
26229+
26230+bsdi4*)
26231+ version_type=linux
26232+ need_version=no
26233+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26234+ soname_spec='${libname}${release}${shared_ext}$major'
26235+ finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
26236+ shlibpath_var=LD_LIBRARY_PATH
26237+ sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
26238+ sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
26239+ # the default ld.so.conf also contains /usr/contrib/lib and
26240+ # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
26241+ # libtool to hard-code these into programs
26242+ ;;
26243+
26244+cygwin* | mingw* | pw32*)
26245+ version_type=windows
26246+ shrext_cmds=".dll"
26247+ need_version=no
26248+ need_lib_prefix=no
26249+
26250+ case $GCC,$host_os in
26251+ yes,cygwin* | yes,mingw* | yes,pw32*)
26252+ library_names_spec='$libname.dll.a'
26253+ # DLL is installed to $(libdir)/../bin by postinstall_cmds
26254+ postinstall_cmds='base_file=`basename \${file}`~
26255+ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
26256+ dldir=$destdir/`dirname \$dlpath`~
26257+ test -d \$dldir || mkdir -p \$dldir~
26258+ $install_prog $dir/$dlname \$dldir/$dlname'
26259+ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
26260+ dlpath=$dir/\$dldll~
26261+ $rm \$dlpath'
26262+ shlibpath_overrides_runpath=yes
26263+
26264+ case $host_os in
26265+ cygwin*)
26266+ # Cygwin DLLs use 'cyg' prefix rather than 'lib'
26267+ soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
26268+ sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
26269+ ;;
26270+ mingw*)
26271+ # MinGW DLLs use traditional 'lib' prefix
26272+ soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
26273+ sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
26274+ if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
26275+ # It is most probably a Windows format PATH printed by
26276+ # mingw gcc, but we are running on Cygwin. Gcc prints its search
26277+ # path with ; separators, and with drive letters. We can handle the
26278+ # drive letters (cygwin fileutils understands them), so leave them,
26279+ # especially as we might pass files found there to a mingw objdump,
26280+ # which wouldn't understand a cygwinified path. Ahh.
26281+ sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
26282+ else
26283+ sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
26284+ fi
26285+ ;;
26286+ pw32*)
26287+ # pw32 DLLs use 'pw' prefix rather than 'lib'
26288+ library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
26289+ ;;
26290+ esac
26291+ ;;
26292+
26293+ *)
26294+ library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
26295+ ;;
26296+ esac
26297+ dynamic_linker='Win32 ld.exe'
26298+ # FIXME: first we should search . and the directory the executable is in
26299+ shlibpath_var=PATH
26300+ ;;
26301+
26302+darwin* | rhapsody*)
26303+ dynamic_linker="$host_os dyld"
26304+ version_type=darwin
26305+ need_lib_prefix=no
26306+ need_version=no
26307+ library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
26308+ soname_spec='${libname}${release}${major}$shared_ext'
26309+ shlibpath_overrides_runpath=yes
26310+ shlibpath_var=DYLD_LIBRARY_PATH
26311+ shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
26312+ # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
26313+ if test "$GCC" = yes; then
26314+ sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
26315+ else
26316+ sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
26317+ fi
26318+ sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
26319+ ;;
26320+
26321+dgux*)
26322+ version_type=linux
26323+ need_lib_prefix=no
26324+ need_version=no
26325+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
26326+ soname_spec='${libname}${release}${shared_ext}$major'
26327+ shlibpath_var=LD_LIBRARY_PATH
26328+ ;;
26329+
26330+freebsd1*)
26331+ dynamic_linker=no
26332+ ;;
26333+
26334+kfreebsd*-gnu)
26335+ version_type=linux
26336+ need_lib_prefix=no
26337+ need_version=no
26338+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26339+ soname_spec='${libname}${release}${shared_ext}$major'
26340+ shlibpath_var=LD_LIBRARY_PATH
26341+ shlibpath_overrides_runpath=no
26342+ hardcode_into_libs=yes
26343+ dynamic_linker='GNU ld.so'
26344+ ;;
26345+
26346+freebsd*)
26347+ objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
26348+ version_type=freebsd-$objformat
26349+ case $version_type in
26350+ freebsd-elf*)
26351+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26352+ need_version=no
26353+ need_lib_prefix=no
26354+ ;;
26355+ freebsd-*)
26356+ library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
26357+ need_version=yes
26358+ ;;
26359+ esac
26360+ shlibpath_var=LD_LIBRARY_PATH
26361+ case $host_os in
26362+ freebsd2*)
26363+ shlibpath_overrides_runpath=yes
26364+ ;;
26365+ freebsd3.01* | freebsdelf3.01*)
26366+ shlibpath_overrides_runpath=yes
26367+ hardcode_into_libs=yes
26368+ ;;
26369+ *) # from 3.2 on
26370+ shlibpath_overrides_runpath=no
26371+ hardcode_into_libs=yes
26372+ ;;
26373+ esac
26374+ ;;
26375+
26376+gnu*)
26377+ version_type=linux
26378+ need_lib_prefix=no
26379+ need_version=no
26380+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
26381+ soname_spec='${libname}${release}${shared_ext}$major'
26382+ shlibpath_var=LD_LIBRARY_PATH
26383+ hardcode_into_libs=yes
26384+ ;;
26385+
26386+hpux9* | hpux10* | hpux11*)
26387+ # Give a soname corresponding to the major version so that dld.sl refuses to
26388+ # link against other versions.
26389+ version_type=sunos
26390+ need_lib_prefix=no
26391+ need_version=no
26392+ case "$host_cpu" in
26393+ ia64*)
26394+ shrext_cmds='.so'
26395+ hardcode_into_libs=yes
26396+ dynamic_linker="$host_os dld.so"
26397+ shlibpath_var=LD_LIBRARY_PATH
26398+ shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
26399+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26400+ soname_spec='${libname}${release}${shared_ext}$major'
26401+ if test "X$HPUX_IA64_MODE" = X32; then
26402+ sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
26403+ else
26404+ sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
26405+ fi
26406+ sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
26407+ ;;
26408+ hppa*64*)
26409+ shrext_cmds='.sl'
26410+ hardcode_into_libs=yes
26411+ dynamic_linker="$host_os dld.sl"
26412+ shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
26413+ shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
26414+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26415+ soname_spec='${libname}${release}${shared_ext}$major'
26416+ sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
26417+ sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
26418+ ;;
26419+ *)
26420+ shrext_cmds='.sl'
26421+ dynamic_linker="$host_os dld.sl"
26422+ shlibpath_var=SHLIB_PATH
26423+ shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
26424+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26425+ soname_spec='${libname}${release}${shared_ext}$major'
26426+ ;;
26427+ esac
26428+ # HP-UX runs *really* slowly unless shared libraries are mode 555.
26429+ postinstall_cmds='chmod 555 $lib'
26430+ ;;
26431+
26432+irix5* | irix6* | nonstopux*)
26433+ case $host_os in
26434+ nonstopux*) version_type=nonstopux ;;
26435+ *)
26436+ if test "$lt_cv_prog_gnu_ld" = yes; then
26437+ version_type=linux
26438+ else
26439+ version_type=irix
26440+ fi ;;
26441+ esac
26442+ need_lib_prefix=no
26443+ need_version=no
26444+ soname_spec='${libname}${release}${shared_ext}$major'
26445+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
26446+ case $host_os in
26447+ irix5* | nonstopux*)
26448+ libsuff= shlibsuff=
26449+ ;;
26450+ *)
26451+ case $LD in # libtool.m4 will add one of these switches to LD
26452+ *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
26453+ libsuff= shlibsuff= libmagic=32-bit;;
26454+ *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
26455+ libsuff=32 shlibsuff=N32 libmagic=N32;;
26456+ *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
26457+ libsuff=64 shlibsuff=64 libmagic=64-bit;;
26458+ *) libsuff= shlibsuff= libmagic=never-match;;
26459+ esac
26460+ ;;
26461+ esac
26462+ shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
26463+ shlibpath_overrides_runpath=no
26464+ sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
26465+ sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
26466+ hardcode_into_libs=yes
26467+ ;;
26468+
26469+# No shared lib support for Linux oldld, aout, or coff.
26470+linux*oldld* | linux*aout* | linux*coff*)
26471+ dynamic_linker=no
26472+ ;;
26473+
26474+# This must be Linux ELF.
26475+linux*)
26476+ version_type=linux
26477+ need_lib_prefix=no
26478+ need_version=no
26479+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26480+ soname_spec='${libname}${release}${shared_ext}$major'
26481+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
26482+ shlibpath_var=LD_LIBRARY_PATH
26483+ shlibpath_overrides_runpath=no
26484+ # This implies no fast_install, which is unacceptable.
26485+ # Some rework will be needed to allow for fast_install
26486+ # before this can be enabled.
26487+ hardcode_into_libs=yes
26488+
26489+ # Append ld.so.conf contents to the search path
26490+ if test -f /etc/ld.so.conf; then
26491+ lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
26492+ sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
26493+ fi
26494+
26495+ # We used to test for /lib/ld.so.1 and disable shared libraries on
26496+ # powerpc, because MkLinux only supported shared libraries with the
26497+ # GNU dynamic linker. Since this was broken with cross compilers,
26498+ # most powerpc-linux boxes support dynamic linking these days and
26499+ # people can always --disable-shared, the test was removed, and we
26500+ # assume the GNU/Linux dynamic linker is in use.
26501+ dynamic_linker='GNU/Linux ld.so'
26502+ ;;
26503+
26504+netbsdelf*-gnu)
26505+ version_type=linux
26506+ need_lib_prefix=no
26507+ need_version=no
26508+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26509+ soname_spec='${libname}${release}${shared_ext}$major'
26510+ shlibpath_var=LD_LIBRARY_PATH
26511+ shlibpath_overrides_runpath=no
26512+ hardcode_into_libs=yes
26513+ dynamic_linker='NetBSD ld.elf_so'
26514+ ;;
26515+
26516+knetbsd*-gnu)
26517+ version_type=linux
26518+ need_lib_prefix=no
26519+ need_version=no
26520+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26521+ soname_spec='${libname}${release}${shared_ext}$major'
26522+ shlibpath_var=LD_LIBRARY_PATH
26523+ shlibpath_overrides_runpath=no
26524+ hardcode_into_libs=yes
26525+ dynamic_linker='GNU ld.so'
26526+ ;;
26527+
26528+netbsd*)
26529+ version_type=sunos
26530+ need_lib_prefix=no
26531+ need_version=no
26532+ if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
26533+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26534+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26535+ dynamic_linker='NetBSD (a.out) ld.so'
26536+ else
26537+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26538+ soname_spec='${libname}${release}${shared_ext}$major'
26539+ dynamic_linker='NetBSD ld.elf_so'
26540+ fi
26541+ shlibpath_var=LD_LIBRARY_PATH
26542+ shlibpath_overrides_runpath=yes
26543+ hardcode_into_libs=yes
26544+ ;;
26545+
26546+newsos6)
26547+ version_type=linux
26548+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26549+ shlibpath_var=LD_LIBRARY_PATH
26550+ shlibpath_overrides_runpath=yes
26551+ ;;
26552+
26553+nto-qnx*)
26554+ version_type=linux
26555+ need_lib_prefix=no
26556+ need_version=no
26557+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26558+ soname_spec='${libname}${release}${shared_ext}$major'
26559+ shlibpath_var=LD_LIBRARY_PATH
26560+ shlibpath_overrides_runpath=yes
26561+ ;;
26562+
26563+openbsd*)
26564+ version_type=sunos
26565+ need_lib_prefix=no
26566+ need_version=yes
26567+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26568+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26569+ shlibpath_var=LD_LIBRARY_PATH
26570+ if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
26571+ case $host_os in
26572+ openbsd2.[89] | openbsd2.[89].*)
26573+ shlibpath_overrides_runpath=no
26574+ ;;
26575+ *)
26576+ shlibpath_overrides_runpath=yes
26577+ ;;
26578+ esac
26579+ else
26580+ shlibpath_overrides_runpath=yes
26581+ fi
26582+ ;;
26583+
26584+os2*)
26585+ libname_spec='$name'
26586+ shrext_cmds=".dll"
26587+ need_lib_prefix=no
26588+ library_names_spec='$libname${shared_ext} $libname.a'
26589+ dynamic_linker='OS/2 ld.exe'
26590+ shlibpath_var=LIBPATH
26591+ ;;
26592+
26593+osf3* | osf4* | osf5*)
26594+ version_type=osf
26595+ need_lib_prefix=no
26596+ need_version=no
26597+ soname_spec='${libname}${release}${shared_ext}$major'
26598+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26599+ shlibpath_var=LD_LIBRARY_PATH
26600+ sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
26601+ sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
26602+ ;;
26603+
26604+sco3.2v5*)
26605+ version_type=osf
26606+ soname_spec='${libname}${release}${shared_ext}$major'
26607+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26608+ shlibpath_var=LD_LIBRARY_PATH
26609+ ;;
26610+
26611+solaris*)
26612+ version_type=linux
26613+ need_lib_prefix=no
26614+ need_version=no
26615+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26616+ soname_spec='${libname}${release}${shared_ext}$major'
26617+ shlibpath_var=LD_LIBRARY_PATH
26618+ shlibpath_overrides_runpath=yes
26619+ hardcode_into_libs=yes
26620+ # ldd complains unless libraries are executable
26621+ postinstall_cmds='chmod +x $lib'
26622+ ;;
26623+
26624+sunos4*)
26625+ version_type=sunos
26626+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26627+ finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
26628+ shlibpath_var=LD_LIBRARY_PATH
26629+ shlibpath_overrides_runpath=yes
26630+ if test "$with_gnu_ld" = yes; then
26631+ need_lib_prefix=no
26632+ fi
26633+ need_version=yes
26634+ ;;
26635+
26636+sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
26637+ version_type=linux
26638+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26639+ soname_spec='${libname}${release}${shared_ext}$major'
26640+ shlibpath_var=LD_LIBRARY_PATH
26641+ case $host_vendor in
26642+ sni)
26643+ shlibpath_overrides_runpath=no
26644+ need_lib_prefix=no
26645+ export_dynamic_flag_spec='${wl}-Blargedynsym'
26646+ runpath_var=LD_RUN_PATH
26647+ ;;
26648+ siemens)
26649+ need_lib_prefix=no
26650+ ;;
26651+ motorola)
26652+ need_lib_prefix=no
26653+ need_version=no
26654+ shlibpath_overrides_runpath=no
26655+ sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
26656+ ;;
26657+ esac
26658+ ;;
26659+
26660+sysv4*MP*)
26661+ if test -d /usr/nec ;then
26662+ version_type=linux
26663+ library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26664+ soname_spec='$libname${shared_ext}.$major'
26665+ shlibpath_var=LD_LIBRARY_PATH
26666+ fi
26667+ ;;
26668+
26669+uts4*)
26670+ version_type=linux
26671+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26672+ soname_spec='${libname}${release}${shared_ext}$major'
26673+ shlibpath_var=LD_LIBRARY_PATH
26674+ ;;
26675+
26676+*)
26677+ dynamic_linker=no
26678+ ;;
26679+esac
26680+echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26681+echo "${ECHO_T}$dynamic_linker" >&6
26682+test "$dynamic_linker" = no && can_build_shared=no
26683+
26684+echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26685+echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
26686+hardcode_action_CXX=
26687+if test -n "$hardcode_libdir_flag_spec_CXX" || \
26688+ test -n "$runpath_var CXX" || \
26689+ test "X$hardcode_automatic_CXX"="Xyes" ; then
26690+
26691+ # We can hardcode non-existant directories.
26692+ if test "$hardcode_direct_CXX" != no &&
26693+ # If the only mechanism to avoid hardcoding is shlibpath_var, we
26694+ # have to relink, otherwise we might link with an installed library
26695+ # when we should be linking with a yet-to-be-installed one
26696+ ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
26697+ test "$hardcode_minus_L_CXX" != no; then
26698+ # Linking always hardcodes the temporary library directory.
26699+ hardcode_action_CXX=relink
26700+ else
26701+ # We can link without hardcoding, and we can hardcode nonexisting dirs.
26702+ hardcode_action_CXX=immediate
26703+ fi
26704+else
26705+ # We cannot hardcode anything, or else we can only hardcode existing
26706+ # directories.
26707+ hardcode_action_CXX=unsupported
26708+fi
26709+echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
26710+echo "${ECHO_T}$hardcode_action_CXX" >&6
26711+
26712+if test "$hardcode_action_CXX" = relink; then
26713+ # Fast installation is not supported
26714+ enable_fast_install=no
26715+elif test "$shlibpath_overrides_runpath" = yes ||
26716+ test "$enable_shared" = no; then
26717+ # Fast installation is not necessary
26718+ enable_fast_install=needless
26719+fi
26720+
26721+striplib=
26722+old_striplib=
26723+echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
26724+echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
26725+if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
26726+ test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
26727+ test -z "$striplib" && striplib="$STRIP --strip-unneeded"
26728+ echo "$as_me:$LINENO: result: yes" >&5
26729+echo "${ECHO_T}yes" >&6
26730+else
26731+# FIXME - insert some real tests, host_os isn't really good enough
26732+ case $host_os in
26733+ darwin*)
26734+ if test -n "$STRIP" ; then
26735+ striplib="$STRIP -x"
26736+ echo "$as_me:$LINENO: result: yes" >&5
26737+echo "${ECHO_T}yes" >&6
26738+ else
26739+ echo "$as_me:$LINENO: result: no" >&5
26740+echo "${ECHO_T}no" >&6
26741+fi
26742+ ;;
26743+ *)
26744+ echo "$as_me:$LINENO: result: no" >&5
26745+echo "${ECHO_T}no" >&6
26746+ ;;
26747+ esac
26748+fi
26749+
26750+if test "x$enable_dlopen" != xyes; then
26751+ enable_dlopen=unknown
26752+ enable_dlopen_self=unknown
26753+ enable_dlopen_self_static=unknown
26754+else
26755+ lt_cv_dlopen=no
26756+ lt_cv_dlopen_libs=
26757+
26758+ case $host_os in
26759+ beos*)
26760+ lt_cv_dlopen="load_add_on"
26761+ lt_cv_dlopen_libs=
26762+ lt_cv_dlopen_self=yes
26763+ ;;
26764+
26765+ mingw* | pw32*)
26766+ lt_cv_dlopen="LoadLibrary"
26767+ lt_cv_dlopen_libs=
26768+ ;;
26769+
26770+ cygwin*)
26771+ lt_cv_dlopen="dlopen"
26772+ lt_cv_dlopen_libs=
26773+ ;;
26774+
26775+ darwin*)
26776+ # if libdl is installed we need to link against it
26777+ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
26778+echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
26779+if test "${ac_cv_lib_dl_dlopen+set}" = set; then
26780+ echo $ECHO_N "(cached) $ECHO_C" >&6
26781+else
26782+ ac_check_lib_save_LIBS=$LIBS
26783+LIBS="-ldl $LIBS"
26784+cat >conftest.$ac_ext <<_ACEOF
26785+/* confdefs.h. */
26786+_ACEOF
26787+cat confdefs.h >>conftest.$ac_ext
26788+cat >>conftest.$ac_ext <<_ACEOF
26789+/* end confdefs.h. */
26790+
26791+/* Override any gcc2 internal prototype to avoid an error. */
26792+#ifdef __cplusplus
26793+extern "C"
26794+#endif
26795+/* We use char because int might match the return type of a gcc2
26796+ builtin and then its argument prototype would still apply. */
26797+char dlopen ();
26798+int
26799+main ()
26800+{
26801+dlopen ();
26802+ ;
26803+ return 0;
26804+}
26805+_ACEOF
26806+rm -f conftest.$ac_objext conftest$ac_exeext
26807+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26808+ (eval $ac_link) 2>conftest.er1
26809+ ac_status=$?
26810+ grep -v '^ *+' conftest.er1 >conftest.err
26811+ rm -f conftest.er1
26812+ cat conftest.err >&5
26813+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
26814+ (exit $ac_status); } &&
26815+ { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
26816+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26817+ (eval $ac_try) 2>&5
26818+ ac_status=$?
26819+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
26820+ (exit $ac_status); }; } &&
26821+ { ac_try='test -s conftest$ac_exeext'
26822+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26823+ (eval $ac_try) 2>&5
26824+ ac_status=$?
26825+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
26826+ (exit $ac_status); }; }; then
26827+ ac_cv_lib_dl_dlopen=yes
26828+else
26829+ echo "$as_me: failed program was:" >&5
26830+sed 's/^/| /' conftest.$ac_ext >&5
26831+
26832+ac_cv_lib_dl_dlopen=no
26833+fi
26834+rm -f conftest.err conftest.$ac_objext \
26835+ conftest$ac_exeext conftest.$ac_ext
26836+LIBS=$ac_check_lib_save_LIBS
26837+fi
26838+echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
26839+echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
26840+if test $ac_cv_lib_dl_dlopen = yes; then
26841+ lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
26842+else
26843+
26844+ lt_cv_dlopen="dyld"
26845+ lt_cv_dlopen_libs=
26846+ lt_cv_dlopen_self=yes
26847+
26848+fi
26849+
26850+ ;;
26851+
26852+ *)
26853+ echo "$as_me:$LINENO: checking for shl_load" >&5
26854+echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
26855+if test "${ac_cv_func_shl_load+set}" = set; then
26856+ echo $ECHO_N "(cached) $ECHO_C" >&6
26857+else
26858+ cat >conftest.$ac_ext <<_ACEOF
26859+/* confdefs.h. */
26860+_ACEOF
26861+cat confdefs.h >>conftest.$ac_ext
26862+cat >>conftest.$ac_ext <<_ACEOF
26863+/* end confdefs.h. */
26864+/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
26865+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
26866+#define shl_load innocuous_shl_load
26867+
26868+/* System header to define __stub macros and hopefully few prototypes,
26869+ which can conflict with char shl_load (); below.
26870+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26871+ <limits.h> exists even on freestanding compilers. */
26872+
26873+#ifdef __STDC__
26874+# include <limits.h>
26875+#else
26876+# include <assert.h>
26877+#endif
26878+
26879+#undef shl_load
26880+
26881+/* Override any gcc2 internal prototype to avoid an error. */
26882+#ifdef __cplusplus
26883+extern "C"
26884+{
26885+#endif
26886+/* We use char because int might match the return type of a gcc2
26887+ builtin and then its argument prototype would still apply. */
26888+char shl_load ();
26889+/* The GNU C library defines this for functions which it implements
26890+ to always fail with ENOSYS. Some functions are actually named
26891+ something starting with __ and the normal name is an alias. */
26892+#if defined (__stub_shl_load) || defined (__stub___shl_load)
26893+choke me
26894+#else
26895+char (*f) () = shl_load;
26896+#endif
26897+#ifdef __cplusplus
26898+}
26899+#endif
26900+
26901+int
26902+main ()
26903+{
26904+return f != shl_load;
26905+ ;
26906+ return 0;
26907+}
26908+_ACEOF
26909+rm -f conftest.$ac_objext conftest$ac_exeext
26910+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26911+ (eval $ac_link) 2>conftest.er1
26912+ ac_status=$?
26913+ grep -v '^ *+' conftest.er1 >conftest.err
26914+ rm -f conftest.er1
26915+ cat conftest.err >&5
26916+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
26917+ (exit $ac_status); } &&
26918+ { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
26919+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26920+ (eval $ac_try) 2>&5
26921+ ac_status=$?
26922+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
26923+ (exit $ac_status); }; } &&
26924+ { ac_try='test -s conftest$ac_exeext'
26925+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26926+ (eval $ac_try) 2>&5
26927+ ac_status=$?
26928+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
26929+ (exit $ac_status); }; }; then
26930+ ac_cv_func_shl_load=yes
26931+else
26932+ echo "$as_me: failed program was:" >&5
26933+sed 's/^/| /' conftest.$ac_ext >&5
26934+
26935+ac_cv_func_shl_load=no
26936+fi
26937+rm -f conftest.err conftest.$ac_objext \
26938+ conftest$ac_exeext conftest.$ac_ext
26939+fi
26940+echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
26941+echo "${ECHO_T}$ac_cv_func_shl_load" >&6
26942+if test $ac_cv_func_shl_load = yes; then
26943+ lt_cv_dlopen="shl_load"
26944+else
26945+ echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
26946+echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
26947+if test "${ac_cv_lib_dld_shl_load+set}" = set; then
26948+ echo $ECHO_N "(cached) $ECHO_C" >&6
26949+else
26950+ ac_check_lib_save_LIBS=$LIBS
26951+LIBS="-ldld $LIBS"
26952+cat >conftest.$ac_ext <<_ACEOF
26953+/* confdefs.h. */
26954+_ACEOF
26955+cat confdefs.h >>conftest.$ac_ext
26956+cat >>conftest.$ac_ext <<_ACEOF
26957+/* end confdefs.h. */
26958+
26959+/* Override any gcc2 internal prototype to avoid an error. */
26960+#ifdef __cplusplus
26961+extern "C"
26962+#endif
26963+/* We use char because int might match the return type of a gcc2
26964+ builtin and then its argument prototype would still apply. */
26965+char shl_load ();
26966+int
26967+main ()
26968+{
26969+shl_load ();
26970+ ;
26971+ return 0;
26972+}
26973+_ACEOF
26974+rm -f conftest.$ac_objext conftest$ac_exeext
26975+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26976+ (eval $ac_link) 2>conftest.er1
26977+ ac_status=$?
26978+ grep -v '^ *+' conftest.er1 >conftest.err
26979+ rm -f conftest.er1
26980+ cat conftest.err >&5
26981+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
26982+ (exit $ac_status); } &&
26983+ { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
26984+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26985+ (eval $ac_try) 2>&5
26986+ ac_status=$?
26987+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
26988+ (exit $ac_status); }; } &&
26989+ { ac_try='test -s conftest$ac_exeext'
26990+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26991+ (eval $ac_try) 2>&5
26992+ ac_status=$?
26993+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
26994+ (exit $ac_status); }; }; then
26995+ ac_cv_lib_dld_shl_load=yes
26996+else
26997+ echo "$as_me: failed program was:" >&5
26998+sed 's/^/| /' conftest.$ac_ext >&5
26999+
27000+ac_cv_lib_dld_shl_load=no
27001+fi
27002+rm -f conftest.err conftest.$ac_objext \
27003+ conftest$ac_exeext conftest.$ac_ext
27004+LIBS=$ac_check_lib_save_LIBS
27005+fi
27006+echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
27007+echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
27008+if test $ac_cv_lib_dld_shl_load = yes; then
27009+ lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
27010+else
27011+ echo "$as_me:$LINENO: checking for dlopen" >&5
27012+echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
27013+if test "${ac_cv_func_dlopen+set}" = set; then
27014+ echo $ECHO_N "(cached) $ECHO_C" >&6
27015+else
27016+ cat >conftest.$ac_ext <<_ACEOF
27017+/* confdefs.h. */
27018+_ACEOF
27019+cat confdefs.h >>conftest.$ac_ext
27020+cat >>conftest.$ac_ext <<_ACEOF
27021+/* end confdefs.h. */
27022+/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
27023+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
27024+#define dlopen innocuous_dlopen
27025+
27026+/* System header to define __stub macros and hopefully few prototypes,
27027+ which can conflict with char dlopen (); below.
27028+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27029+ <limits.h> exists even on freestanding compilers. */
27030+
27031+#ifdef __STDC__
27032+# include <limits.h>
27033+#else
27034+# include <assert.h>
27035+#endif
27036+
27037+#undef dlopen
27038+
27039+/* Override any gcc2 internal prototype to avoid an error. */
27040+#ifdef __cplusplus
27041+extern "C"
27042+{
27043+#endif
27044+/* We use char because int might match the return type of a gcc2
27045+ builtin and then its argument prototype would still apply. */
27046+char dlopen ();
27047+/* The GNU C library defines this for functions which it implements
27048+ to always fail with ENOSYS. Some functions are actually named
27049+ something starting with __ and the normal name is an alias. */
27050+#if defined (__stub_dlopen) || defined (__stub___dlopen)
27051+choke me
27052+#else
27053+char (*f) () = dlopen;
27054+#endif
27055+#ifdef __cplusplus
27056+}
27057+#endif
27058+
27059+int
27060+main ()
27061+{
27062+return f != dlopen;
27063+ ;
27064+ return 0;
27065+}
27066+_ACEOF
27067+rm -f conftest.$ac_objext conftest$ac_exeext
27068+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27069+ (eval $ac_link) 2>conftest.er1
27070+ ac_status=$?
27071+ grep -v '^ *+' conftest.er1 >conftest.err
27072+ rm -f conftest.er1
27073+ cat conftest.err >&5
27074+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
27075+ (exit $ac_status); } &&
27076+ { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
27077+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27078+ (eval $ac_try) 2>&5
27079+ ac_status=$?
27080+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
27081+ (exit $ac_status); }; } &&
27082+ { ac_try='test -s conftest$ac_exeext'
27083+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27084+ (eval $ac_try) 2>&5
27085+ ac_status=$?
27086+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
27087+ (exit $ac_status); }; }; then
27088+ ac_cv_func_dlopen=yes
27089+else
27090+ echo "$as_me: failed program was:" >&5
27091+sed 's/^/| /' conftest.$ac_ext >&5
27092+
27093+ac_cv_func_dlopen=no
27094+fi
27095+rm -f conftest.err conftest.$ac_objext \
27096+ conftest$ac_exeext conftest.$ac_ext
27097+fi
27098+echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
27099+echo "${ECHO_T}$ac_cv_func_dlopen" >&6
27100+if test $ac_cv_func_dlopen = yes; then
27101+ lt_cv_dlopen="dlopen"
27102+else
27103+ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
27104+echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
27105+if test "${ac_cv_lib_dl_dlopen+set}" = set; then
27106+ echo $ECHO_N "(cached) $ECHO_C" >&6
27107+else
27108+ ac_check_lib_save_LIBS=$LIBS
27109+LIBS="-ldl $LIBS"
27110+cat >conftest.$ac_ext <<_ACEOF
27111+/* confdefs.h. */
27112+_ACEOF
27113+cat confdefs.h >>conftest.$ac_ext
27114+cat >>conftest.$ac_ext <<_ACEOF
27115+/* end confdefs.h. */
27116+
27117+/* Override any gcc2 internal prototype to avoid an error. */
27118+#ifdef __cplusplus
27119+extern "C"
27120+#endif
27121+/* We use char because int might match the return type of a gcc2
27122+ builtin and then its argument prototype would still apply. */
27123+char dlopen ();
27124+int
27125+main ()
27126+{
27127+dlopen ();
27128+ ;
27129+ return 0;
27130+}
27131+_ACEOF
27132+rm -f conftest.$ac_objext conftest$ac_exeext
27133+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27134+ (eval $ac_link) 2>conftest.er1
27135+ ac_status=$?
27136+ grep -v '^ *+' conftest.er1 >conftest.err
27137+ rm -f conftest.er1
27138+ cat conftest.err >&5
27139+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
27140+ (exit $ac_status); } &&
27141+ { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
27142+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27143+ (eval $ac_try) 2>&5
27144+ ac_status=$?
27145+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
27146+ (exit $ac_status); }; } &&
27147+ { ac_try='test -s conftest$ac_exeext'
27148+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27149+ (eval $ac_try) 2>&5
27150+ ac_status=$?
27151+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
27152+ (exit $ac_status); }; }; then
27153+ ac_cv_lib_dl_dlopen=yes
27154+else
27155+ echo "$as_me: failed program was:" >&5
27156+sed 's/^/| /' conftest.$ac_ext >&5
27157+
27158+ac_cv_lib_dl_dlopen=no
27159+fi
27160+rm -f conftest.err conftest.$ac_objext \
27161+ conftest$ac_exeext conftest.$ac_ext
27162+LIBS=$ac_check_lib_save_LIBS
27163+fi
27164+echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
27165+echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
27166+if test $ac_cv_lib_dl_dlopen = yes; then
27167+ lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
27168+else
27169+ echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
27170+echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
27171+if test "${ac_cv_lib_svld_dlopen+set}" = set; then
27172+ echo $ECHO_N "(cached) $ECHO_C" >&6
27173+else
27174+ ac_check_lib_save_LIBS=$LIBS
27175+LIBS="-lsvld $LIBS"
27176+cat >conftest.$ac_ext <<_ACEOF
27177+/* confdefs.h. */
27178+_ACEOF
27179+cat confdefs.h >>conftest.$ac_ext
27180+cat >>conftest.$ac_ext <<_ACEOF
27181+/* end confdefs.h. */
27182+
27183+/* Override any gcc2 internal prototype to avoid an error. */
27184+#ifdef __cplusplus
27185+extern "C"
27186+#endif
27187+/* We use char because int might match the return type of a gcc2
27188+ builtin and then its argument prototype would still apply. */
27189+char dlopen ();
27190+int
27191+main ()
27192+{
27193+dlopen ();
27194+ ;
27195+ return 0;
27196+}
27197+_ACEOF
27198+rm -f conftest.$ac_objext conftest$ac_exeext
27199+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27200+ (eval $ac_link) 2>conftest.er1
27201+ ac_status=$?
27202+ grep -v '^ *+' conftest.er1 >conftest.err
27203+ rm -f conftest.er1
27204+ cat conftest.err >&5
27205+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
27206+ (exit $ac_status); } &&
27207+ { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
27208+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27209+ (eval $ac_try) 2>&5
27210+ ac_status=$?
27211+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
27212+ (exit $ac_status); }; } &&
27213+ { ac_try='test -s conftest$ac_exeext'
27214+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27215+ (eval $ac_try) 2>&5
27216+ ac_status=$?
27217+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
27218+ (exit $ac_status); }; }; then
27219+ ac_cv_lib_svld_dlopen=yes
27220+else
27221+ echo "$as_me: failed program was:" >&5
27222+sed 's/^/| /' conftest.$ac_ext >&5
27223+
27224+ac_cv_lib_svld_dlopen=no
27225+fi
27226+rm -f conftest.err conftest.$ac_objext \
27227+ conftest$ac_exeext conftest.$ac_ext
27228+LIBS=$ac_check_lib_save_LIBS
27229+fi
27230+echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
27231+echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
27232+if test $ac_cv_lib_svld_dlopen = yes; then
27233+ lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
27234+else
27235+ echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
27236+echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
27237+if test "${ac_cv_lib_dld_dld_link+set}" = set; then
27238+ echo $ECHO_N "(cached) $ECHO_C" >&6
27239+else
27240+ ac_check_lib_save_LIBS=$LIBS
27241+LIBS="-ldld $LIBS"
27242+cat >conftest.$ac_ext <<_ACEOF
27243+/* confdefs.h. */
27244+_ACEOF
27245+cat confdefs.h >>conftest.$ac_ext
27246+cat >>conftest.$ac_ext <<_ACEOF
27247+/* end confdefs.h. */
27248+
27249+/* Override any gcc2 internal prototype to avoid an error. */
27250+#ifdef __cplusplus
27251+extern "C"
27252+#endif
27253+/* We use char because int might match the return type of a gcc2
27254+ builtin and then its argument prototype would still apply. */
27255+char dld_link ();
27256+int
27257+main ()
27258+{
27259+dld_link ();
27260+ ;
27261+ return 0;
27262+}
27263+_ACEOF
27264+rm -f conftest.$ac_objext conftest$ac_exeext
27265+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27266+ (eval $ac_link) 2>conftest.er1
27267+ ac_status=$?
27268+ grep -v '^ *+' conftest.er1 >conftest.err
27269+ rm -f conftest.er1
27270+ cat conftest.err >&5
27271+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
27272+ (exit $ac_status); } &&
27273+ { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
27274+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27275+ (eval $ac_try) 2>&5
27276+ ac_status=$?
27277+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
27278+ (exit $ac_status); }; } &&
27279+ { ac_try='test -s conftest$ac_exeext'
27280+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27281+ (eval $ac_try) 2>&5
27282+ ac_status=$?
27283+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
27284+ (exit $ac_status); }; }; then
27285+ ac_cv_lib_dld_dld_link=yes
27286+else
27287+ echo "$as_me: failed program was:" >&5
27288+sed 's/^/| /' conftest.$ac_ext >&5
27289+
27290+ac_cv_lib_dld_dld_link=no
27291+fi
27292+rm -f conftest.err conftest.$ac_objext \
27293+ conftest$ac_exeext conftest.$ac_ext
27294+LIBS=$ac_check_lib_save_LIBS
27295+fi
27296+echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
27297+echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
27298+if test $ac_cv_lib_dld_dld_link = yes; then
27299+ lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
27300+fi
27301+
27302+
27303+fi
27304+
27305+
27306+fi
27307+
27308+
27309+fi
27310+
27311+
27312+fi
27313+
27314+
27315+fi
27316+
27317+ ;;
27318+ esac
27319+
27320+ if test "x$lt_cv_dlopen" != xno; then
27321+ enable_dlopen=yes
27322+ else
27323+ enable_dlopen=no
27324+ fi
27325+
27326+ case $lt_cv_dlopen in
27327+ dlopen)
27328+ save_CPPFLAGS="$CPPFLAGS"
27329+ test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
27330+
27331+ save_LDFLAGS="$LDFLAGS"
27332+ eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
27333+
27334+ save_LIBS="$LIBS"
27335+ LIBS="$lt_cv_dlopen_libs $LIBS"
27336+
27337+ echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
27338+echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
27339+if test "${lt_cv_dlopen_self+set}" = set; then
27340+ echo $ECHO_N "(cached) $ECHO_C" >&6
27341+else
27342+ if test "$cross_compiling" = yes; then :
27343+ lt_cv_dlopen_self=cross
27344+else
27345+ lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
27346+ lt_status=$lt_dlunknown
27347+ cat > conftest.$ac_ext <<EOF
27348+#line 12382 "configure"
27349+#include "confdefs.h"
27350+
27351+#if HAVE_DLFCN_H
27352+#include <dlfcn.h>
27353+#endif
27354+
27355+#include <stdio.h>
27356+
27357+#ifdef RTLD_GLOBAL
27358+# define LT_DLGLOBAL RTLD_GLOBAL
27359+#else
27360+# ifdef DL_GLOBAL
27361+# define LT_DLGLOBAL DL_GLOBAL
27362+# else
27363+# define LT_DLGLOBAL 0
27364+# endif
27365+#endif
27366+
27367+/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
27368+ find out it does not work in some platform. */
27369+#ifndef LT_DLLAZY_OR_NOW
27370+# ifdef RTLD_LAZY
27371+# define LT_DLLAZY_OR_NOW RTLD_LAZY
27372+# else
27373+# ifdef DL_LAZY
27374+# define LT_DLLAZY_OR_NOW DL_LAZY
27375+# else
27376+# ifdef RTLD_NOW
27377+# define LT_DLLAZY_OR_NOW RTLD_NOW
27378+# else
27379+# ifdef DL_NOW
27380+# define LT_DLLAZY_OR_NOW DL_NOW
27381+# else
27382+# define LT_DLLAZY_OR_NOW 0
27383+# endif
27384+# endif
27385+# endif
27386+# endif
27387+#endif
27388+
27389+#ifdef __cplusplus
27390+extern "C" void exit (int);
27391+#endif
27392+
27393+void fnord() { int i=42;}
27394+int main ()
27395+{
27396+ void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
27397+ int status = $lt_dlunknown;
27398+
27399+ if (self)
27400+ {
27401+ if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
27402+ else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
27403+ /* dlclose (self); */
27404+ }
27405+
27406+ exit (status);
27407+}
27408+EOF
27409+ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27410+ (eval $ac_link) 2>&5
27411+ ac_status=$?
27412+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
27413+ (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
27414+ (./conftest; exit; ) 2>/dev/null
27415+ lt_status=$?
27416+ case x$lt_status in
27417+ x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
27418+ x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
27419+ x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
27420+ esac
27421+ else :
27422+ # compilation failed
27423+ lt_cv_dlopen_self=no
27424+ fi
27425+fi
27426+rm -fr conftest*
27427+
27428+
27429+fi
27430+echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
27431+echo "${ECHO_T}$lt_cv_dlopen_self" >&6
27432+
27433+ if test "x$lt_cv_dlopen_self" = xyes; then
27434+ LDFLAGS="$LDFLAGS $link_static_flag"
27435+ echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
27436+echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
27437+if test "${lt_cv_dlopen_self_static+set}" = set; then
27438+ echo $ECHO_N "(cached) $ECHO_C" >&6
27439+else
27440+ if test "$cross_compiling" = yes; then :
27441+ lt_cv_dlopen_self_static=cross
27442+else
27443+ lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
27444+ lt_status=$lt_dlunknown
27445+ cat > conftest.$ac_ext <<EOF
27446+#line 12480 "configure"
27447+#include "confdefs.h"
27448+
27449+#if HAVE_DLFCN_H
27450+#include <dlfcn.h>
27451+#endif
27452+
27453+#include <stdio.h>
27454+
27455+#ifdef RTLD_GLOBAL
27456+# define LT_DLGLOBAL RTLD_GLOBAL
27457+#else
27458+# ifdef DL_GLOBAL
27459+# define LT_DLGLOBAL DL_GLOBAL
27460+# else
27461+# define LT_DLGLOBAL 0
27462+# endif
27463+#endif
27464+
27465+/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
27466+ find out it does not work in some platform. */
27467+#ifndef LT_DLLAZY_OR_NOW
27468+# ifdef RTLD_LAZY
27469+# define LT_DLLAZY_OR_NOW RTLD_LAZY
27470+# else
27471+# ifdef DL_LAZY
27472+# define LT_DLLAZY_OR_NOW DL_LAZY
27473+# else
27474+# ifdef RTLD_NOW
27475+# define LT_DLLAZY_OR_NOW RTLD_NOW
27476+# else
27477+# ifdef DL_NOW
27478+# define LT_DLLAZY_OR_NOW DL_NOW
27479+# else
27480+# define LT_DLLAZY_OR_NOW 0
27481+# endif
27482+# endif
27483+# endif
27484+# endif
27485+#endif
27486+
27487+#ifdef __cplusplus
27488+extern "C" void exit (int);
27489+#endif
27490+
27491+void fnord() { int i=42;}
27492+int main ()
27493+{
27494+ void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
27495+ int status = $lt_dlunknown;
27496+
27497+ if (self)
27498+ {
27499+ if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
27500+ else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
27501+ /* dlclose (self); */
27502+ }
27503+
27504+ exit (status);
27505+}
27506+EOF
27507+ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27508+ (eval $ac_link) 2>&5
27509+ ac_status=$?
27510+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
27511+ (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
27512+ (./conftest; exit; ) 2>/dev/null
27513+ lt_status=$?
27514+ case x$lt_status in
27515+ x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
27516+ x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
27517+ x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
27518+ esac
27519+ else :
27520+ # compilation failed
27521+ lt_cv_dlopen_self_static=no
27522+ fi
27523+fi
27524+rm -fr conftest*
27525+
27526+
27527+fi
27528+echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
27529+echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
27530+ fi
27531+
27532+ CPPFLAGS="$save_CPPFLAGS"
27533+ LDFLAGS="$save_LDFLAGS"
27534+ LIBS="$save_LIBS"
27535+ ;;
27536+ esac
27537+
27538+ case $lt_cv_dlopen_self in
27539+ yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
27540+ *) enable_dlopen_self=unknown ;;
27541+ esac
27542+
27543+ case $lt_cv_dlopen_self_static in
27544+ yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
27545+ *) enable_dlopen_self_static=unknown ;;
27546+ esac
27547+fi
27548+
27549+
27550+# The else clause should only fire when bootstrapping the
27551+# libtool distribution, otherwise you forgot to ship ltmain.sh
27552+# with your package, and you will get complaints that there are
27553+# no rules to generate ltmain.sh.
27554+if test -f "$ltmain"; then
27555+ # See if we are running on zsh, and set the options which allow our commands through
27556+ # without removal of \ escapes.
27557+ if test -n "${ZSH_VERSION+set}" ; then
27558+ setopt NO_GLOB_SUBST
27559+ fi
27560+ # Now quote all the things that may contain metacharacters while being
27561+ # careful not to overquote the AC_SUBSTed values. We take copies of the
27562+ # variables and quote the copies for generation of the libtool script.
27563+ for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
27564+ SED SHELL STRIP \
27565+ libname_spec library_names_spec soname_spec extract_expsyms_cmds \
27566+ old_striplib striplib file_magic_cmd finish_cmds finish_eval \
27567+ deplibs_check_method reload_flag reload_cmds need_locks \
27568+ lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
27569+ lt_cv_sys_global_symbol_to_c_name_address \
27570+ sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
27571+ old_postinstall_cmds old_postuninstall_cmds \
27572+ compiler_CXX \
27573+ CC_CXX \
27574+ LD_CXX \
27575+ lt_prog_compiler_wl_CXX \
27576+ lt_prog_compiler_pic_CXX \
27577+ lt_prog_compiler_static_CXX \
27578+ lt_prog_compiler_no_builtin_flag_CXX \
27579+ export_dynamic_flag_spec_CXX \
27580+ thread_safe_flag_spec_CXX \
27581+ whole_archive_flag_spec_CXX \
27582+ enable_shared_with_static_runtimes_CXX \
27583+ old_archive_cmds_CXX \
27584+ old_archive_from_new_cmds_CXX \
27585+ predep_objects_CXX \
27586+ postdep_objects_CXX \
27587+ predeps_CXX \
27588+ postdeps_CXX \
27589+ compiler_lib_search_path_CXX \
27590+ archive_cmds_CXX \
27591+ archive_expsym_cmds_CXX \
27592+ postinstall_cmds_CXX \
27593+ postuninstall_cmds_CXX \
27594+ old_archive_from_expsyms_cmds_CXX \
27595+ allow_undefined_flag_CXX \
27596+ no_undefined_flag_CXX \
27597+ export_symbols_cmds_CXX \
27598+ hardcode_libdir_flag_spec_CXX \
27599+ hardcode_libdir_flag_spec_ld_CXX \
27600+ hardcode_libdir_separator_CXX \
27601+ hardcode_automatic_CXX \
27602+ module_cmds_CXX \
27603+ module_expsym_cmds_CXX \
27604+ lt_cv_prog_compiler_c_o_CXX \
27605+ exclude_expsyms_CXX \
27606+ include_expsyms_CXX; do
27607+
27608+ case $var in
27609+ old_archive_cmds_CXX | \
27610+ old_archive_from_new_cmds_CXX | \
27611+ archive_cmds_CXX | \
27612+ archive_expsym_cmds_CXX | \
27613+ module_cmds_CXX | \
27614+ module_expsym_cmds_CXX | \
27615+ old_archive_from_expsyms_cmds_CXX | \
27616+ export_symbols_cmds_CXX | \
27617+ extract_expsyms_cmds | reload_cmds | finish_cmds | \
27618+ postinstall_cmds | postuninstall_cmds | \
27619+ old_postinstall_cmds | old_postuninstall_cmds | \
27620+ sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
27621+ # Double-quote double-evaled strings.
27622+ eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
27623+ ;;
27624+ *)
27625+ eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
27626+ ;;
27627+ esac
27628+ done
27629+
27630+ case $lt_echo in
27631+ *'\$0 --fallback-echo"')
27632+ lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
27633+ ;;
27634+ esac
27635+
27636+cfgfile="$ofile"
27637+
27638+ cat <<__EOF__ >> "$cfgfile"
27639+# ### BEGIN LIBTOOL TAG CONFIG: $tagname
27640+
27641+# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
27642+
27643+# Shell to use when invoking shell scripts.
27644+SHELL=$lt_SHELL
27645+
27646+# Whether or not to build shared libraries.
27647+build_libtool_libs=$enable_shared
27648+
27649+# Whether or not to build static libraries.
27650+build_old_libs=$enable_static
27651+
27652+# Whether or not to add -lc for building shared libraries.
27653+build_libtool_need_lc=$archive_cmds_need_lc_CXX
27654+
27655+# Whether or not to disallow shared libs when runtime libs are static
27656+allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
27657+
27658+# Whether or not to optimize for fast installation.
27659+fast_install=$enable_fast_install
27660+
27661+# The host system.
27662+host_alias=$host_alias
27663+host=$host
27664+
27665+# An echo program that does not interpret backslashes.
27666+echo=$lt_echo
27667+
27668+# The archiver.
27669+AR=$lt_AR
27670+AR_FLAGS=$lt_AR_FLAGS
27671+
27672+# A C compiler.
27673+LTCC=$lt_LTCC
27674+
27675+# A language-specific compiler.
27676+CC=$lt_compiler_CXX
27677+
27678+# Is the compiler the GNU C compiler?
27679+with_gcc=$GCC_CXX
27680+
27681+# An ERE matcher.
27682+EGREP=$lt_EGREP
27683+
27684+# The linker used to build libraries.
27685+LD=$lt_LD_CXX
27686+
27687+# Whether we need hard or soft links.
27688+LN_S=$lt_LN_S
27689+
27690+# A BSD-compatible nm program.
27691+NM=$lt_NM
27692+
27693+# A symbol stripping program
27694+STRIP=$lt_STRIP
27695+
27696+# Used to examine libraries when file_magic_cmd begins "file"
27697+MAGIC_CMD=$MAGIC_CMD
27698+
27699+# Used on cygwin: DLL creation program.
27700+DLLTOOL="$DLLTOOL"
27701+
27702+# Used on cygwin: object dumper.
27703+OBJDUMP="$OBJDUMP"
27704+
27705+# Used on cygwin: assembler.
27706+AS="$AS"
27707+
27708+# The name of the directory that contains temporary libtool files.
27709+objdir=$objdir
27710+
27711+# How to create reloadable object files.
27712+reload_flag=$lt_reload_flag
27713+reload_cmds=$lt_reload_cmds
27714+
27715+# How to pass a linker flag through the compiler.
27716+wl=$lt_lt_prog_compiler_wl_CXX
27717+
27718+# Object file suffix (normally "o").
27719+objext="$ac_objext"
27720+
27721+# Old archive suffix (normally "a").
27722+libext="$libext"
27723+
27724+# Shared library suffix (normally ".so").
27725+shrext_cmds='$shrext_cmds'
27726+
27727+# Executable file suffix (normally "").
27728+exeext="$exeext"
27729+
27730+# Additional compiler flags for building library objects.
27731+pic_flag=$lt_lt_prog_compiler_pic_CXX
27732+pic_mode=$pic_mode
27733+
27734+# What is the maximum length of a command?
27735+max_cmd_len=$lt_cv_sys_max_cmd_len
27736+
27737+# Does compiler simultaneously support -c and -o options?
27738+compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
27739+
27740+# Must we lock files when doing compilation ?
27741+need_locks=$lt_need_locks
27742+
27743+# Do we need the lib prefix for modules?
27744+need_lib_prefix=$need_lib_prefix
27745+
27746+# Do we need a version for libraries?
27747+need_version=$need_version
27748+
27749+# Whether dlopen is supported.
27750+dlopen_support=$enable_dlopen
27751+
27752+# Whether dlopen of programs is supported.
27753+dlopen_self=$enable_dlopen_self
27754+
27755+# Whether dlopen of statically linked programs is supported.
27756+dlopen_self_static=$enable_dlopen_self_static
27757+
27758+# Compiler flag to prevent dynamic linking.
27759+link_static_flag=$lt_lt_prog_compiler_static_CXX
27760+
27761+# Compiler flag to turn off builtin functions.
27762+no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
27763+
27764+# Compiler flag to allow reflexive dlopens.
27765+export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
27766+
27767+# Compiler flag to generate shared objects directly from archives.
27768+whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
27769+
27770+# Compiler flag to generate thread-safe objects.
27771+thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
27772+
27773+# Library versioning type.
27774+version_type=$version_type
27775+
27776+# Format of library name prefix.
27777+libname_spec=$lt_libname_spec
27778+
27779+# List of archive names. First name is the real one, the rest are links.
27780+# The last name is the one that the linker finds with -lNAME.
27781+library_names_spec=$lt_library_names_spec
27782+
27783+# The coded name of the library, if different from the real name.
27784+soname_spec=$lt_soname_spec
27785+
27786+# Commands used to build and install an old-style archive.
27787+RANLIB=$lt_RANLIB
27788+old_archive_cmds=$lt_old_archive_cmds_CXX
27789+old_postinstall_cmds=$lt_old_postinstall_cmds
27790+old_postuninstall_cmds=$lt_old_postuninstall_cmds
27791+
27792+# Create an old-style archive from a shared archive.
27793+old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
27794+
27795+# Create a temporary old-style archive to link instead of a shared archive.
27796+old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
27797+
27798+# Commands used to build and install a shared archive.
27799+archive_cmds=$lt_archive_cmds_CXX
27800+archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
27801+postinstall_cmds=$lt_postinstall_cmds
27802+postuninstall_cmds=$lt_postuninstall_cmds
27803+
27804+# Commands used to build a loadable module (assumed same as above if empty)
27805+module_cmds=$lt_module_cmds_CXX
27806+module_expsym_cmds=$lt_module_expsym_cmds_CXX
27807+
27808+# Commands to strip libraries.
27809+old_striplib=$lt_old_striplib
27810+striplib=$lt_striplib
27811+
27812+# Dependencies to place before the objects being linked to create a
27813+# shared library.
27814+predep_objects=$lt_predep_objects_CXX
27815+
27816+# Dependencies to place after the objects being linked to create a
27817+# shared library.
27818+postdep_objects=$lt_postdep_objects_CXX
27819+
27820+# Dependencies to place before the objects being linked to create a
27821+# shared library.
27822+predeps=$lt_predeps_CXX
27823+
27824+# Dependencies to place after the objects being linked to create a
27825+# shared library.
27826+postdeps=$lt_postdeps_CXX
27827+
27828+# The library search path used internally by the compiler when linking
27829+# a shared library.
27830+compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
27831+
27832+# Method to check whether dependent libraries are shared objects.
27833+deplibs_check_method=$lt_deplibs_check_method
27834+
27835+# Command to use when deplibs_check_method == file_magic.
27836+file_magic_cmd=$lt_file_magic_cmd
27837+
27838+# Flag that allows shared libraries with undefined symbols to be built.
27839+allow_undefined_flag=$lt_allow_undefined_flag_CXX
27840+
27841+# Flag that forces no undefined symbols.
27842+no_undefined_flag=$lt_no_undefined_flag_CXX
27843+
27844+# Commands used to finish a libtool library installation in a directory.
27845+finish_cmds=$lt_finish_cmds
27846+
27847+# Same as above, but a single script fragment to be evaled but not shown.
27848+finish_eval=$lt_finish_eval
27849+
27850+# Take the output of nm and produce a listing of raw symbols and C names.
27851+global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27852+
27853+# Transform the output of nm in a proper C declaration
27854+global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27855+
27856+# Transform the output of nm in a C name address pair
27857+global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27858+
27859+# This is the shared library runtime path variable.
27860+runpath_var=$runpath_var
27861+
27862+# This is the shared library path variable.
27863+shlibpath_var=$shlibpath_var
27864+
27865+# Is shlibpath searched before the hard-coded library search path?
27866+shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27867+
27868+# How to hardcode a shared library path into an executable.
27869+hardcode_action=$hardcode_action_CXX
27870+
27871+# Whether we should hardcode library paths into libraries.
27872+hardcode_into_libs=$hardcode_into_libs
27873+
27874+# Flag to hardcode \$libdir into a binary during linking.
27875+# This must work even if \$libdir does not exist.
27876+hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
27877+
27878+# If ld is used when linking, flag to hardcode \$libdir into
27879+# a binary during linking. This must work even if \$libdir does
27880+# not exist.
27881+hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
27882+
27883+# Whether we need a single -rpath flag with a separated argument.
27884+hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
27885+
27886+# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
27887+# resulting binary.
27888+hardcode_direct=$hardcode_direct_CXX
27889+
27890+# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
27891+# resulting binary.
27892+hardcode_minus_L=$hardcode_minus_L_CXX
27893+
27894+# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
27895+# the resulting binary.
27896+hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
27897+
27898+# Set to yes if building a shared library automatically hardcodes DIR into the library
27899+# and all subsequent libraries and executables linked against it.
27900+hardcode_automatic=$hardcode_automatic_CXX
27901+
27902+# Variables whose values should be saved in libtool wrapper scripts and
27903+# restored at relink time.
27904+variables_saved_for_relink="$variables_saved_for_relink"
27905+
27906+# Whether libtool must link a program against all its dependency libraries.
27907+link_all_deplibs=$link_all_deplibs_CXX
27908+
27909+# Compile-time system search path for libraries
27910+sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27911+
27912+# Run-time system search path for libraries
27913+sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27914+
27915+# Fix the shell variable \$srcfile for the compiler.
27916+fix_srcfile_path="$fix_srcfile_path_CXX"
27917+
27918+# Set to yes if exported symbols are required.
27919+always_export_symbols=$always_export_symbols_CXX
27920+
27921+# The commands to list exported symbols.
27922+export_symbols_cmds=$lt_export_symbols_cmds_CXX
27923+
27924+# The commands to extract the exported symbol list from a shared archive.
27925+extract_expsyms_cmds=$lt_extract_expsyms_cmds
27926+
27927+# Symbols that should not be listed in the preloaded symbols.
27928+exclude_expsyms=$lt_exclude_expsyms_CXX
27929+
27930+# Symbols that must always be exported.
27931+include_expsyms=$lt_include_expsyms_CXX
27932+
27933+# ### END LIBTOOL TAG CONFIG: $tagname
27934+
27935+__EOF__
27936+
27937+
27938+else
27939+ # If there is no Makefile yet, we rely on a make rule to execute
27940+ # `config.status --recheck' to rerun these tests and create the
27941+ # libtool script then.
27942+ ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
27943+ if test -f "$ltmain_in"; then
27944+ test -f Makefile && make "$ltmain"
27945+ fi
27946+fi
27947+
27948+
27949+ac_ext=c
27950+ac_cpp='$CPP $CPPFLAGS'
27951+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27952+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27953+ac_compiler_gnu=$ac_cv_c_compiler_gnu
27954+
27955+CC=$lt_save_CC
27956+LDCXX=$LD
27957+LD=$lt_save_LD
27958+GCC=$lt_save_GCC
27959+with_gnu_ldcxx=$with_gnu_ld
27960+with_gnu_ld=$lt_save_with_gnu_ld
27961+lt_cv_path_LDCXX=$lt_cv_path_LD
27962+lt_cv_path_LD=$lt_save_path_LD
27963+lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
27964+lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
27965+
27966+ else
27967+ tagname=""
27968+ fi
27969+ ;;
27970+
27971+ F77)
27972+ if test -n "$F77" && test "X$F77" != "Xno"; then
27973+
27974+ac_ext=f
27975+ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
27976+ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27977+ac_compiler_gnu=$ac_cv_f77_compiler_gnu
27978+
27979+
27980+archive_cmds_need_lc_F77=no
27981+allow_undefined_flag_F77=
27982+always_export_symbols_F77=no
27983+archive_expsym_cmds_F77=
27984+export_dynamic_flag_spec_F77=
27985+hardcode_direct_F77=no
27986+hardcode_libdir_flag_spec_F77=
27987+hardcode_libdir_flag_spec_ld_F77=
27988+hardcode_libdir_separator_F77=
27989+hardcode_minus_L_F77=no
27990+hardcode_automatic_F77=no
27991+module_cmds_F77=
27992+module_expsym_cmds_F77=
27993+link_all_deplibs_F77=unknown
27994+old_archive_cmds_F77=$old_archive_cmds
27995+no_undefined_flag_F77=
27996+whole_archive_flag_spec_F77=
27997+enable_shared_with_static_runtimes_F77=no
27998+
27999+# Source file extension for f77 test sources.
28000+ac_ext=f
28001+
28002+# Object file extension for compiled f77 test sources.
28003+objext=o
28004+objext_F77=$objext
28005+
28006+# Code to be used in simple compile tests
28007+lt_simple_compile_test_code=" subroutine t\n return\n end\n"
28008+
28009+# Code to be used in simple link tests
28010+lt_simple_link_test_code=" program t\n end\n"
28011+
28012+# ltmain only uses $CC for tagged configurations so make sure $CC is set.
28013+
28014+# If no C compiler was specified, use CC.
28015+LTCC=${LTCC-"$CC"}
28016+
28017+# Allow CC to be a program name with arguments.
28018+compiler=$CC
28019+
28020+
28021+# Allow CC to be a program name with arguments.
28022+lt_save_CC="$CC"
28023+CC=${F77-"f77"}
28024+compiler=$CC
28025+compiler_F77=$CC
28026+cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
28027+
28028+echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
28029+echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
28030+echo "$as_me:$LINENO: result: $can_build_shared" >&5
28031+echo "${ECHO_T}$can_build_shared" >&6
28032+
28033+echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
28034+echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
28035+test "$can_build_shared" = "no" && enable_shared=no
28036+
28037+# On AIX, shared libraries and static libraries use the same namespace, and
28038+# are all built from PIC.
28039+case "$host_os" in
28040+aix3*)
28041+ test "$enable_shared" = yes && enable_static=no
28042+ if test -n "$RANLIB"; then
28043+ archive_cmds="$archive_cmds~\$RANLIB \$lib"
28044+ postinstall_cmds='$RANLIB $lib'
28045+ fi
28046+ ;;
28047+aix4* | aix5*)
28048+ test "$enable_shared" = yes && enable_static=no
28049+ ;;
28050+esac
28051+echo "$as_me:$LINENO: result: $enable_shared" >&5
28052+echo "${ECHO_T}$enable_shared" >&6
28053+
28054+echo "$as_me:$LINENO: checking whether to build static libraries" >&5
28055+echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
28056+# Make sure either enable_shared or enable_static is yes.
28057+test "$enable_shared" = yes || enable_static=yes
28058+echo "$as_me:$LINENO: result: $enable_static" >&5
28059+echo "${ECHO_T}$enable_static" >&6
28060+
28061+test "$ld_shlibs_F77" = no && can_build_shared=no
28062+
28063+GCC_F77="$G77"
28064+LD_F77="$LD"
28065+
28066+lt_prog_compiler_wl_F77=
28067+lt_prog_compiler_pic_F77=
28068+lt_prog_compiler_static_F77=
28069+
28070+echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
28071+echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
28072+
28073+ if test "$GCC" = yes; then
28074+ lt_prog_compiler_wl_F77='-Wl,'
28075+ lt_prog_compiler_static_F77='-static'
28076+
28077+ case $host_os in
28078+ aix*)
28079+ # All AIX code is PIC.
28080+ if test "$host_cpu" = ia64; then
28081+ # AIX 5 now supports IA64 processor
28082+ lt_prog_compiler_static_F77='-Bstatic'
28083+ fi
28084+ ;;
28085+
28086+ amigaos*)
28087+ # FIXME: we need at least 68020 code to build shared libraries, but
28088+ # adding the `-m68020' flag to GCC prevents building anything better,
28089+ # like `-m68040'.
28090+ lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
28091+ ;;
28092+
28093+ beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
28094+ # PIC is the default for these OSes.
28095+ ;;
28096+
28097+ mingw* | pw32* | os2*)
28098+ # This hack is so that the source file can tell whether it is being
28099+ # built for inclusion in a dll (and should export symbols for example).
28100+ lt_prog_compiler_pic_F77='-DDLL_EXPORT'
28101+ ;;
28102+
28103+ darwin* | rhapsody*)
28104+ # PIC is the default on this platform
28105+ # Common symbols not allowed in MH_DYLIB files
28106+ lt_prog_compiler_pic_F77='-fno-common'
28107+ ;;
28108+
28109+ msdosdjgpp*)
28110+ # Just because we use GCC doesn't mean we suddenly get shared libraries
28111+ # on systems that don't support them.
28112+ lt_prog_compiler_can_build_shared_F77=no
28113+ enable_shared=no
28114+ ;;
28115+
28116+ sysv4*MP*)
28117+ if test -d /usr/nec; then
28118+ lt_prog_compiler_pic_F77=-Kconform_pic
28119+ fi
28120+ ;;
28121+
28122+ hpux*)
28123+ # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
28124+ # not for PA HP-UX.
28125+ case "$host_cpu" in
28126+ hppa*64*|ia64*)
28127+ # +Z the default
28128+ ;;
28129+ *)
28130+ lt_prog_compiler_pic_F77='-fPIC'
28131+ ;;
28132+ esac
28133+ ;;
28134+
28135+ *)
28136+ lt_prog_compiler_pic_F77='-fPIC'
28137+ ;;
28138+ esac
28139+ else
28140+ # PORTME Check for flag to pass linker flags through the system compiler.
28141+ case $host_os in
28142+ aix*)
28143+ lt_prog_compiler_wl_F77='-Wl,'
28144+ if test "$host_cpu" = ia64; then
28145+ # AIX 5 now supports IA64 processor
28146+ lt_prog_compiler_static_F77='-Bstatic'
28147+ else
28148+ lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
28149+ fi
28150+ ;;
28151+
28152+ mingw* | pw32* | os2*)
28153+ # This hack is so that the source file can tell whether it is being
28154+ # built for inclusion in a dll (and should export symbols for example).
28155+ lt_prog_compiler_pic_F77='-DDLL_EXPORT'
28156+ ;;
28157+
28158+ hpux9* | hpux10* | hpux11*)
28159+ lt_prog_compiler_wl_F77='-Wl,'
28160+ # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
28161+ # not for PA HP-UX.
28162+ case "$host_cpu" in
28163+ hppa*64*|ia64*)
28164+ # +Z the default
28165+ ;;
28166+ *)
28167+ lt_prog_compiler_pic_F77='+Z'
28168+ ;;
28169+ esac
28170+ # Is there a better lt_prog_compiler_static that works with the bundled CC?
28171+ lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
28172+ ;;
28173+
28174+ irix5* | irix6* | nonstopux*)
28175+ lt_prog_compiler_wl_F77='-Wl,'
28176+ # PIC (with -KPIC) is the default.
28177+ lt_prog_compiler_static_F77='-non_shared'
28178+ ;;
28179+
28180+ newsos6)
28181+ lt_prog_compiler_pic_F77='-KPIC'
28182+ lt_prog_compiler_static_F77='-Bstatic'
28183+ ;;
28184+
28185+ linux*)
28186+ case $CC in
28187+ icc* | ecc*)
28188+ lt_prog_compiler_wl_F77='-Wl,'
28189+ lt_prog_compiler_pic_F77='-KPIC'
28190+ lt_prog_compiler_static_F77='-static'
28191+ ;;
28192+ ccc*)
28193+ lt_prog_compiler_wl_F77='-Wl,'
28194+ # All Alpha code is PIC.
28195+ lt_prog_compiler_static_F77='-non_shared'
28196+ ;;
28197+ esac
28198+ ;;
28199+
28200+ osf3* | osf4* | osf5*)
28201+ lt_prog_compiler_wl_F77='-Wl,'
28202+ # All OSF/1 code is PIC.
28203+ lt_prog_compiler_static_F77='-non_shared'
28204+ ;;
28205+
28206+ sco3.2v5*)
28207+ lt_prog_compiler_pic_F77='-Kpic'
28208+ lt_prog_compiler_static_F77='-dn'
28209+ ;;
28210+
28211+ solaris*)
28212+ lt_prog_compiler_wl_F77='-Wl,'
28213+ lt_prog_compiler_pic_F77='-KPIC'
28214+ lt_prog_compiler_static_F77='-Bstatic'
28215+ ;;
28216+
28217+ sunos4*)
28218+ lt_prog_compiler_wl_F77='-Qoption ld '
28219+ lt_prog_compiler_pic_F77='-PIC'
28220+ lt_prog_compiler_static_F77='-Bstatic'
28221+ ;;
28222+
28223+ sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
28224+ lt_prog_compiler_wl_F77='-Wl,'
28225+ lt_prog_compiler_pic_F77='-KPIC'
28226+ lt_prog_compiler_static_F77='-Bstatic'
28227+ ;;
28228+
28229+ sysv4*MP*)
28230+ if test -d /usr/nec ;then
28231+ lt_prog_compiler_pic_F77='-Kconform_pic'
28232+ lt_prog_compiler_static_F77='-Bstatic'
28233+ fi
28234+ ;;
28235+
28236+ uts4*)
28237+ lt_prog_compiler_pic_F77='-pic'
28238+ lt_prog_compiler_static_F77='-Bstatic'
28239+ ;;
28240+
28241+ *)
28242+ lt_prog_compiler_can_build_shared_F77=no
28243+ ;;
28244+ esac
28245+ fi
28246+
28247+echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
28248+echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
28249+
28250+#
28251+# Check to make sure the PIC flag actually works.
28252+#
28253+if test -n "$lt_prog_compiler_pic_F77"; then
28254+
28255+echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
28256+echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
28257+if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
28258+ echo $ECHO_N "(cached) $ECHO_C" >&6
28259+else
28260+ lt_prog_compiler_pic_works_F77=no
28261+ ac_outfile=conftest.$ac_objext
28262+ printf "$lt_simple_compile_test_code" > conftest.$ac_ext
28263+ lt_compiler_flag="$lt_prog_compiler_pic_F77"
28264+ # Insert the option either (1) after the last *FLAGS variable, or
28265+ # (2) before a word containing "conftest.", or (3) at the end.
28266+ # Note that $ac_compile itself does not contain backslashes and begins
28267+ # with a dollar sign (not a hyphen), so the echo should work correctly.
28268+ # The option is referenced via a variable to avoid confusing sed.
28269+ lt_compile=`echo "$ac_compile" | $SED \
28270+ -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
28271+ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
28272+ -e 's:$: $lt_compiler_flag:'`
28273+ (eval echo "\"\$as_me:13307: $lt_compile\"" >&5)
28274+ (eval "$lt_compile" 2>conftest.err)
28275+ ac_status=$?
28276+ cat conftest.err >&5
28277+ echo "$as_me:13311: \$? = $ac_status" >&5
28278+ if (exit $ac_status) && test -s "$ac_outfile"; then
28279+ # The compiler can only warn and ignore the option if not recognized
28280+ # So say no if there are warnings
28281+ if test ! -s conftest.err; then
28282+ lt_prog_compiler_pic_works_F77=yes
28283+ fi
28284+ fi
28285+ $rm conftest*
28286+
28287+fi
28288+echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
28289+echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
28290+
28291+if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
28292+ case $lt_prog_compiler_pic_F77 in
28293+ "" | " "*) ;;
28294+ *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
28295+ esac
28296+else
28297+ lt_prog_compiler_pic_F77=
28298+ lt_prog_compiler_can_build_shared_F77=no
28299+fi
28300+
28301+fi
28302+case "$host_os" in
28303+ # For platforms which do not support PIC, -DPIC is meaningless:
28304+ *djgpp*)
28305+ lt_prog_compiler_pic_F77=
28306+ ;;
28307+ *)
28308+ lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
28309+ ;;
28310+esac
28311+
28312+echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
28313+echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
28314+if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
28315+ echo $ECHO_N "(cached) $ECHO_C" >&6
28316+else
28317+ lt_cv_prog_compiler_c_o_F77=no
28318+ $rm -r conftest 2>/dev/null
28319+ mkdir conftest
28320+ cd conftest
28321+ mkdir out
28322+ printf "$lt_simple_compile_test_code" > conftest.$ac_ext
28323+
28324+ lt_compiler_flag="-o out/conftest2.$ac_objext"
28325+ # Insert the option either (1) after the last *FLAGS variable, or
28326+ # (2) before a word containing "conftest.", or (3) at the end.
28327+ # Note that $ac_compile itself does not contain backslashes and begins
28328+ # with a dollar sign (not a hyphen), so the echo should work correctly.
28329+ lt_compile=`echo "$ac_compile" | $SED \
28330+ -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
28331+ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
28332+ -e 's:$: $lt_compiler_flag:'`
28333+ (eval echo "\"\$as_me:13367: $lt_compile\"" >&5)
28334+ (eval "$lt_compile" 2>out/conftest.err)
28335+ ac_status=$?
28336+ cat out/conftest.err >&5
28337+ echo "$as_me:13371: \$? = $ac_status" >&5
28338+ if (exit $ac_status) && test -s out/conftest2.$ac_objext
28339+ then
28340+ # The compiler can only warn and ignore the option if not recognized
28341+ # So say no if there are warnings
28342+ if test ! -s out/conftest.err; then
28343+ lt_cv_prog_compiler_c_o_F77=yes
28344+ fi
28345+ fi
28346+ chmod u+w .
28347+ $rm conftest*
28348+ # SGI C++ compiler will create directory out/ii_files/ for
28349+ # template instantiation
28350+ test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
28351+ $rm out/* && rmdir out
28352+ cd ..
28353+ rmdir conftest
28354+ $rm conftest*
28355+
28356+fi
28357+echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
28358+echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
28359+
28360+
28361+hard_links="nottested"
28362+if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
28363+ # do not overwrite the value of need_locks provided by the user
28364+ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
28365+echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
28366+ hard_links=yes
28367+ $rm conftest*
28368+ ln conftest.a conftest.b 2>/dev/null && hard_links=no
28369+ touch conftest.a
28370+ ln conftest.a conftest.b 2>&5 || hard_links=no
28371+ ln conftest.a conftest.b 2>/dev/null && hard_links=no
28372+ echo "$as_me:$LINENO: result: $hard_links" >&5
28373+echo "${ECHO_T}$hard_links" >&6
28374+ if test "$hard_links" = no; then
28375+ { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
28376+echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
28377+ need_locks=warn
28378+ fi
28379+else
28380+ need_locks=no
28381+fi
28382+
28383+echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
28384+echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
28385+
28386+ runpath_var=
28387+ allow_undefined_flag_F77=
28388+ enable_shared_with_static_runtimes_F77=no
28389+ archive_cmds_F77=
28390+ archive_expsym_cmds_F77=
28391+ old_archive_From_new_cmds_F77=
28392+ old_archive_from_expsyms_cmds_F77=
28393+ export_dynamic_flag_spec_F77=
28394+ whole_archive_flag_spec_F77=
28395+ thread_safe_flag_spec_F77=
28396+ hardcode_libdir_flag_spec_F77=
28397+ hardcode_libdir_flag_spec_ld_F77=
28398+ hardcode_libdir_separator_F77=
28399+ hardcode_direct_F77=no
28400+ hardcode_minus_L_F77=no
28401+ hardcode_shlibpath_var_F77=unsupported
28402+ link_all_deplibs_F77=unknown
28403+ hardcode_automatic_F77=no
28404+ module_cmds_F77=
28405+ module_expsym_cmds_F77=
28406+ always_export_symbols_F77=no
28407+ export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
28408+ # include_expsyms should be a list of space-separated symbols to be *always*
28409+ # included in the symbol list
28410+ include_expsyms_F77=
28411+ # exclude_expsyms can be an extended regexp of symbols to exclude
28412+ # it will be wrapped by ` (' and `)$', so one must not match beginning or
28413+ # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
28414+ # as well as any symbol that contains `d'.
28415+ exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
28416+ # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
28417+ # platforms (ab)use it in PIC code, but their linkers get confused if
28418+ # the symbol is explicitly referenced. Since portable code cannot
28419+ # rely on this symbol name, it's probably fine to never include it in
28420+ # preloaded symbol tables.
28421+ extract_expsyms_cmds=
28422+
28423+ case $host_os in
28424+ cygwin* | mingw* | pw32*)
28425+ # FIXME: the MSVC++ port hasn't been tested in a loooong time
28426+ # When not using gcc, we currently assume that we are using
28427+ # Microsoft Visual C++.
28428+ if test "$GCC" != yes; then
28429+ with_gnu_ld=no
28430+ fi
28431+ ;;
28432+ openbsd*)
28433+ with_gnu_ld=no
28434+ ;;
28435+ esac
28436+
28437+ ld_shlibs_F77=yes
28438+ if test "$with_gnu_ld" = yes; then
28439+ # If archive_cmds runs LD, not CC, wlarc should be empty
28440+ wlarc='${wl}'
28441+
28442+ # See if GNU ld supports shared libraries.
28443+ case $host_os in
28444+ aix3* | aix4* | aix5*)
28445+ # On AIX/PPC, the GNU linker is very broken
28446+ if test "$host_cpu" != ia64; then
28447+ ld_shlibs_F77=no
28448+ cat <<EOF 1>&2
28449+
28450+*** Warning: the GNU linker, at least up to release 2.9.1, is reported
28451+*** to be unable to reliably create shared libraries on AIX.
28452+*** Therefore, libtool is disabling shared libraries support. If you
28453+*** really care for shared libraries, you may want to modify your PATH
28454+*** so that a non-GNU linker is found, and then restart.
28455+
28456+EOF
28457+ fi
28458+ ;;
28459+
28460+ amigaos*)
28461+ archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
28462+ hardcode_libdir_flag_spec_F77='-L$libdir'
28463+ hardcode_minus_L_F77=yes
28464+
28465+ # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
28466+ # that the semantics of dynamic libraries on AmigaOS, at least up
28467+ # to version 4, is to share data among multiple programs linked
28468+ # with the same dynamic library. Since this doesn't match the
28469+ # behavior of shared libraries on other platforms, we can't use
28470+ # them.
28471+ ld_shlibs_F77=no
28472+ ;;
28473+
28474+ beos*)
28475+ if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
28476+ allow_undefined_flag_F77=unsupported
28477+ # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
28478+ # support --undefined. This deserves some investigation. FIXME
28479+ archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
28480+ else
28481+ ld_shlibs_F77=no
28482+ fi
28483+ ;;
28484+
28485+ cygwin* | mingw* | pw32*)
28486+ # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
28487+ # as there is no search path for DLLs.
28488+ hardcode_libdir_flag_spec_F77='-L$libdir'
28489+ allow_undefined_flag_F77=unsupported
28490+ always_export_symbols_F77=no
28491+ enable_shared_with_static_runtimes_F77=yes
28492+ export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
28493+
28494+ if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
28495+ archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
28496+ # If the export-symbols file already is a .def file (1st line
28497+ # is EXPORTS), use it as is; otherwise, prepend...
28498+ archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
28499+ cp $export_symbols $output_objdir/$soname.def;
28500+ else
28501+ echo EXPORTS > $output_objdir/$soname.def;
28502+ cat $export_symbols >> $output_objdir/$soname.def;
28503+ fi~
28504+ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
28505+ else
28506+ ld_shlibs=no
28507+ fi
28508+ ;;
28509+
28510+ netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
28511+ if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
28512+ archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
28513+ wlarc=
28514+ else
28515+ archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
28516+ archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
28517+ fi
28518+ ;;
28519+
28520+ solaris* | sysv5*)
28521+ if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
28522+ ld_shlibs_F77=no
28523+ cat <<EOF 1>&2
28524+
28525+*** Warning: The releases 2.8.* of the GNU linker cannot reliably
28526+*** create shared libraries on Solaris systems. Therefore, libtool
28527+*** is disabling shared libraries support. We urge you to upgrade GNU
28528+*** binutils to release 2.9.1 or newer. Another option is to modify
28529+*** your PATH or compiler configuration so that the native linker is
28530+*** used, and then restart.
28531+
28532+EOF
28533+ elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
28534+ archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
28535+ archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
28536+ else
28537+ ld_shlibs_F77=no
28538+ fi
28539+ ;;
28540+
28541+ sunos4*)
28542+ archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
28543+ wlarc=
28544+ hardcode_direct_F77=yes
28545+ hardcode_shlibpath_var_F77=no
28546+ ;;
28547+
28548+ linux*)
28549+ if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
28550+ tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
28551+ archive_cmds_F77="$tmp_archive_cmds"
28552+ supports_anon_versioning=no
28553+ case `$LD -v 2>/dev/null` in
28554+ *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
28555+ *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
28556+ *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
28557+ *\ 2.11.*) ;; # other 2.11 versions
28558+ *) supports_anon_versioning=yes ;;
28559+ esac
28560+ if test $supports_anon_versioning = yes; then
28561+ archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
28562+cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
28563+$echo "local: *; };" >> $output_objdir/$libname.ver~
28564+ $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
28565+ else
28566+ archive_expsym_cmds_F77="$tmp_archive_cmds"
28567+ fi
28568+ link_all_deplibs_F77=no
28569+ else
28570+ ld_shlibs_F77=no
28571+ fi
28572+ ;;
28573+
28574+ *)
28575+ if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
28576+ archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
28577+ archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
28578+ else
28579+ ld_shlibs_F77=no
28580+ fi
28581+ ;;
28582+ esac
28583+
28584+ if test "$ld_shlibs_F77" = yes; then
28585+ runpath_var=LD_RUN_PATH
28586+ hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
28587+ export_dynamic_flag_spec_F77='${wl}--export-dynamic'
28588+ # ancient GNU ld didn't support --whole-archive et. al.
28589+ if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
28590+ whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
28591+ else
28592+ whole_archive_flag_spec_F77=
28593+ fi
28594+ fi
28595+ else
28596+ # PORTME fill in a description of your system's linker (not GNU ld)
28597+ case $host_os in
28598+ aix3*)
28599+ allow_undefined_flag_F77=unsupported
28600+ always_export_symbols_F77=yes
28601+ archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
28602+ # Note: this linker hardcodes the directories in LIBPATH if there
28603+ # are no directories specified by -L.
28604+ hardcode_minus_L_F77=yes
28605+ if test "$GCC" = yes && test -z "$link_static_flag"; then
28606+ # Neither direct hardcoding nor static linking is supported with a
28607+ # broken collect2.
28608+ hardcode_direct_F77=unsupported
28609+ fi
28610+ ;;
28611+
28612+ aix4* | aix5*)
28613+ if test "$host_cpu" = ia64; then
28614+ # On IA64, the linker does run time linking by default, so we don't
28615+ # have to do anything special.
28616+ aix_use_runtimelinking=no
28617+ exp_sym_flag='-Bexport'
28618+ no_entry_flag=""
28619+ else
28620+ # If we're using GNU nm, then we don't want the "-C" option.
28621+ # -C means demangle to AIX nm, but means don't demangle with GNU nm
28622+ if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
28623+ export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
28624+ else
28625+ export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
28626+ fi
28627+ aix_use_runtimelinking=no
28628+
28629+ # Test if we are trying to use run time linking or normal
28630+ # AIX style linking. If -brtl is somewhere in LDFLAGS, we
28631+ # need to do runtime linking.
28632+ case $host_os in aix4.[23]|aix4.[23].*|aix5*)
28633+ for ld_flag in $LDFLAGS; do
28634+ if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
28635+ aix_use_runtimelinking=yes
28636+ break
28637+ fi
28638+ done
28639+ esac
28640+
28641+ exp_sym_flag='-bexport'
28642+ no_entry_flag='-bnoentry'
28643+ fi
28644+
28645+ # When large executables or shared objects are built, AIX ld can
28646+ # have problems creating the table of contents. If linking a library
28647+ # or program results in "error TOC overflow" add -mminimal-toc to
28648+ # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
28649+ # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
28650+
28651+ archive_cmds_F77=''
28652+ hardcode_direct_F77=yes
28653+ hardcode_libdir_separator_F77=':'
28654+ link_all_deplibs_F77=yes
28655+
28656+ if test "$GCC" = yes; then
28657+ case $host_os in aix4.012|aix4.012.*)
28658+ # We only want to do this on AIX 4.2 and lower, the check
28659+ # below for broken collect2 doesn't work under 4.3+
28660+ collect2name=`${CC} -print-prog-name=collect2`
28661+ if test -f "$collect2name" && \
28662+ strings "$collect2name" | grep resolve_lib_name >/dev/null
28663+ then
28664+ # We have reworked collect2
28665+ hardcode_direct_F77=yes
28666+ else
28667+ # We have old collect2
28668+ hardcode_direct_F77=unsupported
28669+ # It fails to find uninstalled libraries when the uninstalled
28670+ # path is not listed in the libpath. Setting hardcode_minus_L
28671+ # to unsupported forces relinking
28672+ hardcode_minus_L_F77=yes
28673+ hardcode_libdir_flag_spec_F77='-L$libdir'
28674+ hardcode_libdir_separator_F77=
28675+ fi
28676+ esac
28677+ shared_flag='-shared'
28678+ else
28679+ # not using gcc
28680+ if test "$host_cpu" = ia64; then
28681+ # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
28682+ # chokes on -Wl,-G. The following line is correct:
28683+ shared_flag='-G'
28684+ else
28685+ if test "$aix_use_runtimelinking" = yes; then
28686+ shared_flag='${wl}-G'
28687+ else
28688+ shared_flag='${wl}-bM:SRE'
28689+ fi
28690+ fi
28691+ fi
28692+
28693+ # It seems that -bexpall does not export symbols beginning with
28694+ # underscore (_), so it is better to generate a list of symbols to export.
28695+ always_export_symbols_F77=yes
28696+ if test "$aix_use_runtimelinking" = yes; then
28697+ # Warning - without using the other runtime loading flags (-brtl),
28698+ # -berok will link without error, but may produce a broken library.
28699+ allow_undefined_flag_F77='-berok'
28700+ # Determine the default libpath from the value encoded in an empty executable.
28701+ cat >conftest.$ac_ext <<_ACEOF
28702+ program main
28703+
28704+ end
28705+_ACEOF
28706+rm -f conftest.$ac_objext conftest$ac_exeext
28707+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28708+ (eval $ac_link) 2>conftest.er1
28709+ ac_status=$?
28710+ grep -v '^ *+' conftest.er1 >conftest.err
28711+ rm -f conftest.er1
28712+ cat conftest.err >&5
28713+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
28714+ (exit $ac_status); } &&
28715+ { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
28716+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28717+ (eval $ac_try) 2>&5
28718+ ac_status=$?
28719+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
28720+ (exit $ac_status); }; } &&
28721+ { ac_try='test -s conftest$ac_exeext'
28722+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28723+ (eval $ac_try) 2>&5
28724+ ac_status=$?
28725+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
28726+ (exit $ac_status); }; }; then
28727+
28728+aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
28729+}'`
28730+# Check for a 64-bit object if we didn't find anything.
28731+if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
28732+}'`; fi
28733+else
28734+ echo "$as_me: failed program was:" >&5
28735+sed 's/^/| /' conftest.$ac_ext >&5
28736+
28737+fi
28738+rm -f conftest.err conftest.$ac_objext \
28739+ conftest$ac_exeext conftest.$ac_ext
28740+if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
28741+
28742+ hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
28743+ archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
28744+ else
28745+ if test "$host_cpu" = ia64; then
28746+ hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
28747+ allow_undefined_flag_F77="-z nodefs"
28748+ archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
28749+ else
28750+ # Determine the default libpath from the value encoded in an empty executable.
28751+ cat >conftest.$ac_ext <<_ACEOF
28752+ program main
28753+
28754+ end
28755+_ACEOF
28756+rm -f conftest.$ac_objext conftest$ac_exeext
28757+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28758+ (eval $ac_link) 2>conftest.er1
28759+ ac_status=$?
28760+ grep -v '^ *+' conftest.er1 >conftest.err
28761+ rm -f conftest.er1
28762+ cat conftest.err >&5
28763+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
28764+ (exit $ac_status); } &&
28765+ { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
28766+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28767+ (eval $ac_try) 2>&5
28768+ ac_status=$?
28769+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
28770+ (exit $ac_status); }; } &&
28771+ { ac_try='test -s conftest$ac_exeext'
28772+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28773+ (eval $ac_try) 2>&5
28774+ ac_status=$?
28775+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
28776+ (exit $ac_status); }; }; then
28777+
28778+aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
28779+}'`
28780+# Check for a 64-bit object if we didn't find anything.
28781+if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
28782+}'`; fi
28783+else
28784+ echo "$as_me: failed program was:" >&5
28785+sed 's/^/| /' conftest.$ac_ext >&5
28786+
28787+fi
28788+rm -f conftest.err conftest.$ac_objext \
28789+ conftest$ac_exeext conftest.$ac_ext
28790+if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
28791+
28792+ hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
28793+ # Warning - without using the other run time loading flags,
28794+ # -berok will link without error, but may produce a broken library.
28795+ no_undefined_flag_F77=' ${wl}-bernotok'
28796+ allow_undefined_flag_F77=' ${wl}-berok'
28797+ # -bexpall does not export symbols beginning with underscore (_)
28798+ always_export_symbols_F77=yes
28799+ # Exported symbols can be pulled into shared objects from archives
28800+ whole_archive_flag_spec_F77=' '
28801+ archive_cmds_need_lc_F77=yes
28802+ # This is similar to how AIX traditionally builds it's shared libraries.
28803+ archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
28804+ fi
28805+ fi
28806+ ;;
28807+
28808+ amigaos*)
28809+ archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
28810+ hardcode_libdir_flag_spec_F77='-L$libdir'
28811+ hardcode_minus_L_F77=yes
28812+ # see comment about different semantics on the GNU ld section
28813+ ld_shlibs_F77=no
28814+ ;;
28815+
28816+ bsdi4*)
28817+ export_dynamic_flag_spec_F77=-rdynamic
28818+ ;;
28819+
28820+ cygwin* | mingw* | pw32*)
28821+ # When not using gcc, we currently assume that we are using
28822+ # Microsoft Visual C++.
28823+ # hardcode_libdir_flag_spec is actually meaningless, as there is
28824+ # no search path for DLLs.
28825+ hardcode_libdir_flag_spec_F77=' '
28826+ allow_undefined_flag_F77=unsupported
28827+ # Tell ltmain to make .lib files, not .a files.
28828+ libext=lib
28829+ # Tell ltmain to make .dll files, not .so files.
28830+ shrext_cmds=".dll"
28831+ # FIXME: Setting linknames here is a bad hack.
28832+ archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
28833+ # The linker will automatically build a .lib file if we build a DLL.
28834+ old_archive_From_new_cmds_F77='true'
28835+ # FIXME: Should let the user specify the lib program.
28836+ old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
28837+ fix_srcfile_path='`cygpath -w "$srcfile"`'
28838+ enable_shared_with_static_runtimes_F77=yes
28839+ ;;
28840+
28841+ darwin* | rhapsody*)
28842+ if test "$GXX" = yes ; then
28843+ archive_cmds_need_lc_F77=no
28844+ case "$host_os" in
28845+ rhapsody* | darwin1.[012])
28846+ allow_undefined_flag_F77='-undefined suppress'
28847+ ;;
28848+ *) # Darwin 1.3 on
28849+ if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
28850+ allow_undefined_flag_F77='-flat_namespace -undefined suppress'
28851+ else
28852+ case ${MACOSX_DEPLOYMENT_TARGET} in
28853+ 10.[012])
28854+ allow_undefined_flag_F77='-flat_namespace -undefined suppress'
28855+ ;;
28856+ 10.*)
28857+ allow_undefined_flag_F77='-undefined dynamic_lookup'
28858+ ;;
28859+ esac
28860+ fi
28861+ ;;
28862+ esac
28863+ lt_int_apple_cc_single_mod=no
28864+ output_verbose_link_cmd='echo'
28865+ if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
28866+ lt_int_apple_cc_single_mod=yes
28867+ fi
28868+ if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
28869+ archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
28870+ else
28871+ archive_cmds_F77='$CC -r ${wl}-bind_at_load -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'
28872+ fi
28873+ module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
28874+ # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
28875+ if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
28876+ archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
28877+ else
28878+ archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
28879+ fi
28880+ module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
28881+ hardcode_direct_F77=no
28882+ hardcode_automatic_F77=yes
28883+ hardcode_shlibpath_var_F77=unsupported
28884+ whole_archive_flag_spec_F77='-all_load $convenience'
28885+ link_all_deplibs_F77=yes
28886+ else
28887+ ld_shlibs_F77=no
28888+ fi
28889+ ;;
28890+
28891+ dgux*)
28892+ archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
28893+ hardcode_libdir_flag_spec_F77='-L$libdir'
28894+ hardcode_shlibpath_var_F77=no
28895+ ;;
28896+
28897+ freebsd1*)
28898+ ld_shlibs_F77=no
28899+ ;;
28900+
28901+ # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
28902+ # support. Future versions do this automatically, but an explicit c++rt0.o
28903+ # does not break anything, and helps significantly (at the cost of a little
28904+ # extra space).
28905+ freebsd2.2*)
28906+ archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
28907+ hardcode_libdir_flag_spec_F77='-R$libdir'
28908+ hardcode_direct_F77=yes
28909+ hardcode_shlibpath_var_F77=no
28910+ ;;
28911+
28912+ # Unfortunately, older versions of FreeBSD 2 do not have this feature.
28913+ freebsd2*)
28914+ archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
28915+ hardcode_direct_F77=yes
28916+ hardcode_minus_L_F77=yes
28917+ hardcode_shlibpath_var_F77=no
28918+ ;;
28919+
28920+ # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
28921+ freebsd* | kfreebsd*-gnu)
28922+ archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
28923+ hardcode_libdir_flag_spec_F77='-R$libdir'
28924+ hardcode_direct_F77=yes
28925+ hardcode_shlibpath_var_F77=no
28926+ ;;
28927+
28928+ hpux9*)
28929+ if test "$GCC" = yes; then
28930+ archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
28931+ else
28932+ archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
28933+ fi
28934+ hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
28935+ hardcode_libdir_separator_F77=:
28936+ hardcode_direct_F77=yes
28937+
28938+ # hardcode_minus_L: Not really in the search PATH,
28939+ # but as the default location of the library.
28940+ hardcode_minus_L_F77=yes
28941+ export_dynamic_flag_spec_F77='${wl}-E'
28942+ ;;
28943+
28944+ hpux10* | hpux11*)
28945+ if test "$GCC" = yes -a "$with_gnu_ld" = no; then
28946+ case "$host_cpu" in
28947+ hppa*64*|ia64*)
28948+ archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
28949+ ;;
28950+ *)
28951+ archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
28952+ ;;
28953+ esac
28954+ else
28955+ case "$host_cpu" in
28956+ hppa*64*|ia64*)
28957+ archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
28958+ ;;
28959+ *)
28960+ archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
28961+ ;;
28962+ esac
28963+ fi
28964+ if test "$with_gnu_ld" = no; then
28965+ case "$host_cpu" in
28966+ hppa*64*)
28967+ hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
28968+ hardcode_libdir_flag_spec_ld_F77='+b $libdir'
28969+ hardcode_libdir_separator_F77=:
28970+ hardcode_direct_F77=no
28971+ hardcode_shlibpath_var_F77=no
28972+ ;;
28973+ ia64*)
28974+ hardcode_libdir_flag_spec_F77='-L$libdir'
28975+ hardcode_direct_F77=no
28976+ hardcode_shlibpath_var_F77=no
28977+
28978+ # hardcode_minus_L: Not really in the search PATH,
28979+ # but as the default location of the library.
28980+ hardcode_minus_L_F77=yes
28981+ ;;
28982+ *)
28983+ hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
28984+ hardcode_libdir_separator_F77=:
28985+ hardcode_direct_F77=yes
28986+ export_dynamic_flag_spec_F77='${wl}-E'
28987+
28988+ # hardcode_minus_L: Not really in the search PATH,
28989+ # but as the default location of the library.
28990+ hardcode_minus_L_F77=yes
28991+ ;;
28992+ esac
28993+ fi
28994+ ;;
28995+
28996+ irix5* | irix6* | nonstopux*)
28997+ if test "$GCC" = yes; then
28998+ archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
28999+ else
29000+ archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
29001+ hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
29002+ fi
29003+ hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
29004+ hardcode_libdir_separator_F77=:
29005+ link_all_deplibs_F77=yes
29006+ ;;
29007+
29008+ netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
29009+ if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
29010+ archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
29011+ else
29012+ archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
29013+ fi
29014+ hardcode_libdir_flag_spec_F77='-R$libdir'
29015+ hardcode_direct_F77=yes
29016+ hardcode_shlibpath_var_F77=no
29017+ ;;
29018+
29019+ newsos6)
29020+ archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
29021+ hardcode_direct_F77=yes
29022+ hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
29023+ hardcode_libdir_separator_F77=:
29024+ hardcode_shlibpath_var_F77=no
29025+ ;;
29026+
29027+ openbsd*)
29028+ hardcode_direct_F77=yes
29029+ hardcode_shlibpath_var_F77=no
29030+ if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
29031+ archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
29032+ hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
29033+ export_dynamic_flag_spec_F77='${wl}-E'
29034+ else
29035+ case $host_os in
29036+ openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
29037+ archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
29038+ hardcode_libdir_flag_spec_F77='-R$libdir'
29039+ ;;
29040+ *)
29041+ archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
29042+ hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
29043+ ;;
29044+ esac
29045+ fi
29046+ ;;
29047+
29048+ os2*)
29049+ hardcode_libdir_flag_spec_F77='-L$libdir'
29050+ hardcode_minus_L_F77=yes
29051+ allow_undefined_flag_F77=unsupported
29052+ archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
29053+ old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
29054+ ;;
29055+
29056+ osf3*)
29057+ if test "$GCC" = yes; then
29058+ allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
29059+ archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
29060+ else
29061+ allow_undefined_flag_F77=' -expect_unresolved \*'
29062+ archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
29063+ fi
29064+ hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
29065+ hardcode_libdir_separator_F77=:
29066+ ;;
29067+
29068+ osf4* | osf5*) # as osf3* with the addition of -msym flag
29069+ if test "$GCC" = yes; then
29070+ allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
29071+ archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
29072+ hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
29073+ else
29074+ allow_undefined_flag_F77=' -expect_unresolved \*'
29075+ archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
29076+ archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
29077+ $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
29078+
29079+ # Both c and cxx compiler support -rpath directly
29080+ hardcode_libdir_flag_spec_F77='-rpath $libdir'
29081+ fi
29082+ hardcode_libdir_separator_F77=:
29083+ ;;
29084+
29085+ sco3.2v5*)
29086+ archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
29087+ hardcode_shlibpath_var_F77=no
29088+ export_dynamic_flag_spec_F77='${wl}-Bexport'
29089+ runpath_var=LD_RUN_PATH
29090+ hardcode_runpath_var=yes
29091+ ;;
29092+
29093+ solaris*)
29094+ no_undefined_flag_F77=' -z text'
29095+ if test "$GCC" = yes; then
29096+ archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
29097+ archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
29098+ $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
29099+ else
29100+ archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
29101+ archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
29102+ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
29103+ fi
29104+ hardcode_libdir_flag_spec_F77='-R$libdir'
29105+ hardcode_shlibpath_var_F77=no
29106+ case $host_os in
29107+ solaris2.[0-5] | solaris2.[0-5].*) ;;
29108+ *) # Supported since Solaris 2.6 (maybe 2.5.1?)
29109+ whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
29110+ esac
29111+ link_all_deplibs_F77=yes
29112+ ;;
29113+
29114+ sunos4*)
29115+ if test "x$host_vendor" = xsequent; then
29116+ # Use $CC to link under sequent, because it throws in some extra .o
29117+ # files that make .init and .fini sections work.
29118+ archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
29119+ else
29120+ archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
29121+ fi
29122+ hardcode_libdir_flag_spec_F77='-L$libdir'
29123+ hardcode_direct_F77=yes
29124+ hardcode_minus_L_F77=yes
29125+ hardcode_shlibpath_var_F77=no
29126+ ;;
29127+
29128+ sysv4)
29129+ case $host_vendor in
29130+ sni)
29131+ archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
29132+ hardcode_direct_F77=yes # is this really true???
29133+ ;;
29134+ siemens)
29135+ ## LD is ld it makes a PLAMLIB
29136+ ## CC just makes a GrossModule.
29137+ archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
29138+ reload_cmds_F77='$CC -r -o $output$reload_objs'
29139+ hardcode_direct_F77=no
29140+ ;;
29141+ motorola)
29142+ archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
29143+ hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
29144+ ;;
29145+ esac
29146+ runpath_var='LD_RUN_PATH'
29147+ hardcode_shlibpath_var_F77=no
29148+ ;;
29149+
29150+ sysv4.3*)
29151+ archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
29152+ hardcode_shlibpath_var_F77=no
29153+ export_dynamic_flag_spec_F77='-Bexport'
29154+ ;;
29155+
29156+ sysv4*MP*)
29157+ if test -d /usr/nec; then
29158+ archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
29159+ hardcode_shlibpath_var_F77=no
29160+ runpath_var=LD_RUN_PATH
29161+ hardcode_runpath_var=yes
29162+ ld_shlibs_F77=yes
29163+ fi
29164+ ;;
29165+
29166+ sysv4.2uw2*)
29167+ archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
29168+ hardcode_direct_F77=yes
29169+ hardcode_minus_L_F77=no
29170+ hardcode_shlibpath_var_F77=no
29171+ hardcode_runpath_var=yes
29172+ runpath_var=LD_RUN_PATH
29173+ ;;
29174+
29175+ sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
29176+ no_undefined_flag_F77='${wl}-z ${wl}text'
29177+ if test "$GCC" = yes; then
29178+ archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
29179+ else
29180+ archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
29181+ fi
29182+ runpath_var='LD_RUN_PATH'
29183+ hardcode_shlibpath_var_F77=no
29184+ ;;
29185+
29186+ sysv5*)
29187+ no_undefined_flag_F77=' -z text'
29188+ # $CC -shared without GNU ld will not create a library from C++
29189+ # object files and a static libstdc++, better avoid it by now
29190+ archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
29191+ archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
29192+ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
29193+ hardcode_libdir_flag_spec_F77=
29194+ hardcode_shlibpath_var_F77=no
29195+ runpath_var='LD_RUN_PATH'
29196+ ;;
29197+
29198+ uts4*)
29199+ archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
29200+ hardcode_libdir_flag_spec_F77='-L$libdir'
29201+ hardcode_shlibpath_var_F77=no
29202+ ;;
29203+
29204+ *)
29205+ ld_shlibs_F77=no
29206+ ;;
29207+ esac
29208+ fi
29209+
29210+echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
29211+echo "${ECHO_T}$ld_shlibs_F77" >&6
29212+test "$ld_shlibs_F77" = no && can_build_shared=no
29213+
29214+variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
29215+if test "$GCC" = yes; then
29216+ variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
29217+fi
29218+
29219+#
29220+# Do we need to explicitly link libc?
29221+#
29222+case "x$archive_cmds_need_lc_F77" in
29223+x|xyes)
29224+ # Assume -lc should be added
29225+ archive_cmds_need_lc_F77=yes
29226+
29227+ if test "$enable_shared" = yes && test "$GCC" = yes; then
29228+ case $archive_cmds_F77 in
29229+ *'~'*)
29230+ # FIXME: we may have to deal with multi-command sequences.
29231+ ;;
29232+ '$CC '*)
29233+ # Test whether the compiler implicitly links with -lc since on some
29234+ # systems, -lgcc has to come before -lc. If gcc already passes -lc
29235+ # to ld, don't add -lc before -lgcc.
29236+ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
29237+echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
29238+ $rm conftest*
29239+ printf "$lt_simple_compile_test_code" > conftest.$ac_ext
29240+
29241+ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29242+ (eval $ac_compile) 2>&5
29243+ ac_status=$?
29244+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
29245+ (exit $ac_status); } 2>conftest.err; then
29246+ soname=conftest
29247+ lib=conftest
29248+ libobjs=conftest.$ac_objext
29249+ deplibs=
29250+ wl=$lt_prog_compiler_wl_F77
29251+ compiler_flags=-v
29252+ linker_flags=-v
29253+ verstring=
29254+ output_objdir=.
29255+ libname=conftest
29256+ lt_save_allow_undefined_flag=$allow_undefined_flag_F77
29257+ allow_undefined_flag_F77=
29258+ if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
29259+ (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
29260+ ac_status=$?
29261+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
29262+ (exit $ac_status); }
29263+ then
29264+ archive_cmds_need_lc_F77=no
29265+ else
29266+ archive_cmds_need_lc_F77=yes
29267+ fi
29268+ allow_undefined_flag_F77=$lt_save_allow_undefined_flag
29269+ else
29270+ cat conftest.err 1>&5
29271+ fi
29272+ $rm conftest*
29273+ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
29274+echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
29275+ ;;
29276+ esac
29277+ fi
29278+ ;;
29279+esac
29280+
29281+echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
29282+echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
29283+library_names_spec=
29284+libname_spec='lib$name'
29285+soname_spec=
29286+shrext_cmds=".so"
29287+postinstall_cmds=
29288+postuninstall_cmds=
29289+finish_cmds=
29290+finish_eval=
29291+shlibpath_var=
29292+shlibpath_overrides_runpath=unknown
29293+version_type=none
29294+dynamic_linker="$host_os ld.so"
29295+sys_lib_dlsearch_path_spec="/lib /usr/lib"
29296+if test "$GCC" = yes; then
29297+ sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
29298+ if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
29299+ # if the path contains ";" then we assume it to be the separator
29300+ # otherwise default to the standard path separator (i.e. ":") - it is
29301+ # assumed that no part of a normal pathname contains ";" but that should
29302+ # okay in the real world where ";" in dirpaths is itself problematic.
29303+ sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
29304+ else
29305+ sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
29306+ fi
29307+else
29308+ sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
29309+fi
29310+need_lib_prefix=unknown
29311+hardcode_into_libs=no
29312+
29313+# when you set need_version to no, make sure it does not cause -set_version
29314+# flags to be left without arguments
29315+need_version=unknown
29316+
29317+case $host_os in
29318+aix3*)
29319+ version_type=linux
29320+ library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
29321+ shlibpath_var=LIBPATH
29322+
29323+ # AIX 3 has no versioning support, so we append a major version to the name.
29324+ soname_spec='${libname}${release}${shared_ext}$major'
29325+ ;;
29326+
29327+aix4* | aix5*)
29328+ version_type=linux
29329+ need_lib_prefix=no
29330+ need_version=no
29331+ hardcode_into_libs=yes
29332+ if test "$host_cpu" = ia64; then
29333+ # AIX 5 supports IA64
29334+ library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
29335+ shlibpath_var=LD_LIBRARY_PATH
29336+ else
29337+ # With GCC up to 2.95.x, collect2 would create an import file
29338+ # for dependence libraries. The import file would start with
29339+ # the line `#! .'. This would cause the generated library to
29340+ # depend on `.', always an invalid library. This was fixed in
29341+ # development snapshots of GCC prior to 3.0.
29342+ case $host_os in
29343+ aix4 | aix4.[01] | aix4.[01].*)
29344+ if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
29345+ echo ' yes '
29346+ echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
29347+ :
29348+ else
29349+ can_build_shared=no
29350+ fi
29351+ ;;
29352+ esac
29353+ # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
29354+ # soname into executable. Probably we can add versioning support to
29355+ # collect2, so additional links can be useful in future.
29356+ if test "$aix_use_runtimelinking" = yes; then
29357+ # If using run time linking (on AIX 4.2 or later) use lib<name>.so
29358+ # instead of lib<name>.a to let people know that these are not
29359+ # typical AIX shared libraries.
29360+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
29361+ else
29362+ # We preserve .a as extension for shared libraries through AIX4.2
29363+ # and later when we are not doing run time linking.
29364+ library_names_spec='${libname}${release}.a $libname.a'
29365+ soname_spec='${libname}${release}${shared_ext}$major'
29366+ fi
29367+ shlibpath_var=LIBPATH
29368+ fi
29369+ ;;
29370+
29371+amigaos*)
29372+ library_names_spec='$libname.ixlibrary $libname.a'
29373+ # Create ${libname}_ixlibrary.a entries in /sys/libs.
29374+ 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'
29375+ ;;
29376+
29377+beos*)
29378+ library_names_spec='${libname}${shared_ext}'
29379+ dynamic_linker="$host_os ld.so"
29380+ shlibpath_var=LIBRARY_PATH
29381+ ;;
29382+
29383+bsdi4*)
29384+ version_type=linux
29385+ need_version=no
29386+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
29387+ soname_spec='${libname}${release}${shared_ext}$major'
29388+ finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
29389+ shlibpath_var=LD_LIBRARY_PATH
29390+ sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
29391+ sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
29392+ # the default ld.so.conf also contains /usr/contrib/lib and
29393+ # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
29394+ # libtool to hard-code these into programs
29395+ ;;
29396+
29397+cygwin* | mingw* | pw32*)
29398+ version_type=windows
29399+ shrext_cmds=".dll"
29400+ need_version=no
29401+ need_lib_prefix=no
29402+
29403+ case $GCC,$host_os in
29404+ yes,cygwin* | yes,mingw* | yes,pw32*)
29405+ library_names_spec='$libname.dll.a'
29406+ # DLL is installed to $(libdir)/../bin by postinstall_cmds
29407+ postinstall_cmds='base_file=`basename \${file}`~
29408+ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
29409+ dldir=$destdir/`dirname \$dlpath`~
29410+ test -d \$dldir || mkdir -p \$dldir~
29411+ $install_prog $dir/$dlname \$dldir/$dlname'
29412+ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
29413+ dlpath=$dir/\$dldll~
29414+ $rm \$dlpath'
29415+ shlibpath_overrides_runpath=yes
29416+
29417+ case $host_os in
29418+ cygwin*)
29419+ # Cygwin DLLs use 'cyg' prefix rather than 'lib'
29420+ soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
29421+ sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
29422+ ;;
29423+ mingw*)
29424+ # MinGW DLLs use traditional 'lib' prefix
29425+ soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
29426+ sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
29427+ if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
29428+ # It is most probably a Windows format PATH printed by
29429+ # mingw gcc, but we are running on Cygwin. Gcc prints its search
29430+ # path with ; separators, and with drive letters. We can handle the
29431+ # drive letters (cygwin fileutils understands them), so leave them,
29432+ # especially as we might pass files found there to a mingw objdump,
29433+ # which wouldn't understand a cygwinified path. Ahh.
29434+ sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
29435+ else
29436+ sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
29437+ fi
29438+ ;;
29439+ pw32*)
29440+ # pw32 DLLs use 'pw' prefix rather than 'lib'
29441+ library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
29442+ ;;
29443+ esac
29444+ ;;
29445+
29446+ *)
29447+ library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
29448+ ;;
29449+ esac
29450+ dynamic_linker='Win32 ld.exe'
29451+ # FIXME: first we should search . and the directory the executable is in
29452+ shlibpath_var=PATH
29453+ ;;
29454+
29455+darwin* | rhapsody*)
29456+ dynamic_linker="$host_os dyld"
29457+ version_type=darwin
29458+ need_lib_prefix=no
29459+ need_version=no
29460+ library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
29461+ soname_spec='${libname}${release}${major}$shared_ext'
29462+ shlibpath_overrides_runpath=yes
29463+ shlibpath_var=DYLD_LIBRARY_PATH
29464+ shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
29465+ # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
29466+ if test "$GCC" = yes; then
29467+ sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
29468+ else
29469+ sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
29470+ fi
29471+ sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
29472+ ;;
29473+
29474+dgux*)
29475+ version_type=linux
29476+ need_lib_prefix=no
29477+ need_version=no
29478+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
29479+ soname_spec='${libname}${release}${shared_ext}$major'
29480+ shlibpath_var=LD_LIBRARY_PATH
29481+ ;;
29482+
29483+freebsd1*)
29484+ dynamic_linker=no
29485+ ;;
29486+
29487+kfreebsd*-gnu)
29488+ version_type=linux
29489+ need_lib_prefix=no
29490+ need_version=no
29491+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
29492+ soname_spec='${libname}${release}${shared_ext}$major'
29493+ shlibpath_var=LD_LIBRARY_PATH
29494+ shlibpath_overrides_runpath=no
29495+ hardcode_into_libs=yes
29496+ dynamic_linker='GNU ld.so'
29497+ ;;
29498+
29499+freebsd*)
29500+ objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
29501+ version_type=freebsd-$objformat
29502+ case $version_type in
29503+ freebsd-elf*)
29504+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
29505+ need_version=no
29506+ need_lib_prefix=no
29507+ ;;
29508+ freebsd-*)
29509+ library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
29510+ need_version=yes
29511+ ;;
29512+ esac
29513+ shlibpath_var=LD_LIBRARY_PATH
29514+ case $host_os in
29515+ freebsd2*)
29516+ shlibpath_overrides_runpath=yes
29517+ ;;
29518+ freebsd3.01* | freebsdelf3.01*)
29519+ shlibpath_overrides_runpath=yes
29520+ hardcode_into_libs=yes
29521+ ;;
29522+ *) # from 3.2 on
29523+ shlibpath_overrides_runpath=no
29524+ hardcode_into_libs=yes
29525+ ;;
29526+ esac
29527+ ;;
29528+
29529+gnu*)
29530+ version_type=linux
29531+ need_lib_prefix=no
29532+ need_version=no
29533+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
29534+ soname_spec='${libname}${release}${shared_ext}$major'
29535+ shlibpath_var=LD_LIBRARY_PATH
29536+ hardcode_into_libs=yes
29537+ ;;
29538+
29539+hpux9* | hpux10* | hpux11*)
29540+ # Give a soname corresponding to the major version so that dld.sl refuses to
29541+ # link against other versions.
29542+ version_type=sunos
29543+ need_lib_prefix=no
29544+ need_version=no
29545+ case "$host_cpu" in
29546+ ia64*)
29547+ shrext_cmds='.so'
29548+ hardcode_into_libs=yes
29549+ dynamic_linker="$host_os dld.so"
29550+ shlibpath_var=LD_LIBRARY_PATH
29551+ shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
29552+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
29553+ soname_spec='${libname}${release}${shared_ext}$major'
29554+ if test "X$HPUX_IA64_MODE" = X32; then
29555+ sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
29556+ else
29557+ sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
29558+ fi
29559+ sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
29560+ ;;
29561+ hppa*64*)
29562+ shrext_cmds='.sl'
29563+ hardcode_into_libs=yes
29564+ dynamic_linker="$host_os dld.sl"
29565+ shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
29566+ shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
29567+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
29568+ soname_spec='${libname}${release}${shared_ext}$major'
29569+ sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
29570+ sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
29571+ ;;
29572+ *)
29573+ shrext_cmds='.sl'
29574+ dynamic_linker="$host_os dld.sl"
29575+ shlibpath_var=SHLIB_PATH
29576+ shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
29577+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
29578+ soname_spec='${libname}${release}${shared_ext}$major'
29579+ ;;
29580+ esac
29581+ # HP-UX runs *really* slowly unless shared libraries are mode 555.
29582+ postinstall_cmds='chmod 555 $lib'
29583+ ;;
29584+
29585+irix5* | irix6* | nonstopux*)
29586+ case $host_os in
29587+ nonstopux*) version_type=nonstopux ;;
29588+ *)
29589+ if test "$lt_cv_prog_gnu_ld" = yes; then
29590+ version_type=linux
29591+ else
29592+ version_type=irix
29593+ fi ;;
29594+ esac
29595+ need_lib_prefix=no
29596+ need_version=no
29597+ soname_spec='${libname}${release}${shared_ext}$major'
29598+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
29599+ case $host_os in
29600+ irix5* | nonstopux*)
29601+ libsuff= shlibsuff=
29602+ ;;
29603+ *)
29604+ case $LD in # libtool.m4 will add one of these switches to LD
29605+ *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
29606+ libsuff= shlibsuff= libmagic=32-bit;;
29607+ *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
29608+ libsuff=32 shlibsuff=N32 libmagic=N32;;
29609+ *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
29610+ libsuff=64 shlibsuff=64 libmagic=64-bit;;
29611+ *) libsuff= shlibsuff= libmagic=never-match;;
29612+ esac
29613+ ;;
29614+ esac
29615+ shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
29616+ shlibpath_overrides_runpath=no
29617+ sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
29618+ sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
29619+ hardcode_into_libs=yes
29620+ ;;
29621+
29622+# No shared lib support for Linux oldld, aout, or coff.
29623+linux*oldld* | linux*aout* | linux*coff*)
29624+ dynamic_linker=no
29625+ ;;
29626+
29627+# This must be Linux ELF.
29628+linux*)
29629+ version_type=linux
29630+ need_lib_prefix=no
29631+ need_version=no
29632+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
29633+ soname_spec='${libname}${release}${shared_ext}$major'
29634+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
29635+ shlibpath_var=LD_LIBRARY_PATH
29636+ shlibpath_overrides_runpath=no
29637+ # This implies no fast_install, which is unacceptable.
29638+ # Some rework will be needed to allow for fast_install
29639+ # before this can be enabled.
29640+ hardcode_into_libs=yes
29641+
29642+ # Append ld.so.conf contents to the search path
29643+ if test -f /etc/ld.so.conf; then
29644+ lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
29645+ sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
29646+ fi
29647+
29648+ # We used to test for /lib/ld.so.1 and disable shared libraries on
29649+ # powerpc, because MkLinux only supported shared libraries with the
29650+ # GNU dynamic linker. Since this was broken with cross compilers,
29651+ # most powerpc-linux boxes support dynamic linking these days and
29652+ # people can always --disable-shared, the test was removed, and we
29653+ # assume the GNU/Linux dynamic linker is in use.
29654+ dynamic_linker='GNU/Linux ld.so'
29655+ ;;
29656+
29657+netbsdelf*-gnu)
29658+ version_type=linux
29659+ need_lib_prefix=no
29660+ need_version=no
29661+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
29662+ soname_spec='${libname}${release}${shared_ext}$major'
29663+ shlibpath_var=LD_LIBRARY_PATH
29664+ shlibpath_overrides_runpath=no
29665+ hardcode_into_libs=yes
29666+ dynamic_linker='NetBSD ld.elf_so'
29667+ ;;
29668+
29669+knetbsd*-gnu)
29670+ version_type=linux
29671+ need_lib_prefix=no
29672+ need_version=no
29673+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
29674+ soname_spec='${libname}${release}${shared_ext}$major'
29675+ shlibpath_var=LD_LIBRARY_PATH
29676+ shlibpath_overrides_runpath=no
29677+ hardcode_into_libs=yes
29678+ dynamic_linker='GNU ld.so'
29679+ ;;
29680+
29681+netbsd*)
29682+ version_type=sunos
29683+ need_lib_prefix=no
29684+ need_version=no
29685+ if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
29686+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
29687+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
29688+ dynamic_linker='NetBSD (a.out) ld.so'
29689+ else
29690+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
29691+ soname_spec='${libname}${release}${shared_ext}$major'
29692+ dynamic_linker='NetBSD ld.elf_so'
29693+ fi
29694+ shlibpath_var=LD_LIBRARY_PATH
29695+ shlibpath_overrides_runpath=yes
29696+ hardcode_into_libs=yes
29697+ ;;
29698+
29699+newsos6)
29700+ version_type=linux
29701+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
29702+ shlibpath_var=LD_LIBRARY_PATH
29703+ shlibpath_overrides_runpath=yes
29704+ ;;
29705+
29706+nto-qnx*)
29707+ version_type=linux
29708+ need_lib_prefix=no
29709+ need_version=no
29710+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
29711+ soname_spec='${libname}${release}${shared_ext}$major'
29712+ shlibpath_var=LD_LIBRARY_PATH
29713+ shlibpath_overrides_runpath=yes
29714+ ;;
29715+
29716+openbsd*)
29717+ version_type=sunos
29718+ need_lib_prefix=no
29719+ need_version=yes
29720+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
29721+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
29722+ shlibpath_var=LD_LIBRARY_PATH
29723+ if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
29724+ case $host_os in
29725+ openbsd2.[89] | openbsd2.[89].*)
29726+ shlibpath_overrides_runpath=no
29727+ ;;
29728+ *)
29729+ shlibpath_overrides_runpath=yes
29730+ ;;
29731+ esac
29732+ else
29733+ shlibpath_overrides_runpath=yes
29734+ fi
29735+ ;;
29736+
29737+os2*)
29738+ libname_spec='$name'
29739+ shrext_cmds=".dll"
29740+ need_lib_prefix=no
29741+ library_names_spec='$libname${shared_ext} $libname.a'
29742+ dynamic_linker='OS/2 ld.exe'
29743+ shlibpath_var=LIBPATH
29744+ ;;
29745+
29746+osf3* | osf4* | osf5*)
29747+ version_type=osf
29748+ need_lib_prefix=no
29749+ need_version=no
29750+ soname_spec='${libname}${release}${shared_ext}$major'
29751+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
29752+ shlibpath_var=LD_LIBRARY_PATH
29753+ sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
29754+ sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
29755+ ;;
29756+
29757+sco3.2v5*)
29758+ version_type=osf
29759+ soname_spec='${libname}${release}${shared_ext}$major'
29760+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
29761+ shlibpath_var=LD_LIBRARY_PATH
29762+ ;;
29763+
29764+solaris*)
29765+ version_type=linux
29766+ need_lib_prefix=no
29767+ need_version=no
29768+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
29769+ soname_spec='${libname}${release}${shared_ext}$major'
29770+ shlibpath_var=LD_LIBRARY_PATH
29771+ shlibpath_overrides_runpath=yes
29772+ hardcode_into_libs=yes
29773+ # ldd complains unless libraries are executable
29774+ postinstall_cmds='chmod +x $lib'
29775+ ;;
29776+
29777+sunos4*)
29778+ version_type=sunos
29779+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
29780+ finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
29781+ shlibpath_var=LD_LIBRARY_PATH
29782+ shlibpath_overrides_runpath=yes
29783+ if test "$with_gnu_ld" = yes; then
29784+ need_lib_prefix=no
29785+ fi
29786+ need_version=yes
29787+ ;;
29788+
29789+sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
29790+ version_type=linux
29791+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
29792+ soname_spec='${libname}${release}${shared_ext}$major'
29793+ shlibpath_var=LD_LIBRARY_PATH
29794+ case $host_vendor in
29795+ sni)
29796+ shlibpath_overrides_runpath=no
29797+ need_lib_prefix=no
29798+ export_dynamic_flag_spec='${wl}-Blargedynsym'
29799+ runpath_var=LD_RUN_PATH
29800+ ;;
29801+ siemens)
29802+ need_lib_prefix=no
29803+ ;;
29804+ motorola)
29805+ need_lib_prefix=no
29806+ need_version=no
29807+ shlibpath_overrides_runpath=no
29808+ sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
29809+ ;;
29810+ esac
29811+ ;;
29812+
29813+sysv4*MP*)
29814+ if test -d /usr/nec ;then
29815+ version_type=linux
29816+ library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
29817+ soname_spec='$libname${shared_ext}.$major'
29818+ shlibpath_var=LD_LIBRARY_PATH
29819+ fi
29820+ ;;
29821+
29822+uts4*)
29823+ version_type=linux
29824+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
29825+ soname_spec='${libname}${release}${shared_ext}$major'
29826+ shlibpath_var=LD_LIBRARY_PATH
29827+ ;;
29828+
29829+*)
29830+ dynamic_linker=no
29831+ ;;
29832+esac
29833+echo "$as_me:$LINENO: result: $dynamic_linker" >&5
29834+echo "${ECHO_T}$dynamic_linker" >&6
29835+test "$dynamic_linker" = no && can_build_shared=no
29836+
29837+echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
29838+echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
29839+hardcode_action_F77=
29840+if test -n "$hardcode_libdir_flag_spec_F77" || \
29841+ test -n "$runpath_var F77" || \
29842+ test "X$hardcode_automatic_F77"="Xyes" ; then
29843+
29844+ # We can hardcode non-existant directories.
29845+ if test "$hardcode_direct_F77" != no &&
29846+ # If the only mechanism to avoid hardcoding is shlibpath_var, we
29847+ # have to relink, otherwise we might link with an installed library
29848+ # when we should be linking with a yet-to-be-installed one
29849+ ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
29850+ test "$hardcode_minus_L_F77" != no; then
29851+ # Linking always hardcodes the temporary library directory.
29852+ hardcode_action_F77=relink
29853+ else
29854+ # We can link without hardcoding, and we can hardcode nonexisting dirs.
29855+ hardcode_action_F77=immediate
29856+ fi
29857+else
29858+ # We cannot hardcode anything, or else we can only hardcode existing
29859+ # directories.
29860+ hardcode_action_F77=unsupported
29861+fi
29862+echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
29863+echo "${ECHO_T}$hardcode_action_F77" >&6
29864+
29865+if test "$hardcode_action_F77" = relink; then
29866+ # Fast installation is not supported
29867+ enable_fast_install=no
29868+elif test "$shlibpath_overrides_runpath" = yes ||
29869+ test "$enable_shared" = no; then
29870+ # Fast installation is not necessary
29871+ enable_fast_install=needless
29872+fi
29873+
29874+striplib=
29875+old_striplib=
29876+echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
29877+echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
29878+if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
29879+ test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
29880+ test -z "$striplib" && striplib="$STRIP --strip-unneeded"
29881+ echo "$as_me:$LINENO: result: yes" >&5
29882+echo "${ECHO_T}yes" >&6
29883+else
29884+# FIXME - insert some real tests, host_os isn't really good enough
29885+ case $host_os in
29886+ darwin*)
29887+ if test -n "$STRIP" ; then
29888+ striplib="$STRIP -x"
29889+ echo "$as_me:$LINENO: result: yes" >&5
29890+echo "${ECHO_T}yes" >&6
29891+ else
29892+ echo "$as_me:$LINENO: result: no" >&5
29893+echo "${ECHO_T}no" >&6
29894+fi
29895+ ;;
29896+ *)
29897+ echo "$as_me:$LINENO: result: no" >&5
29898+echo "${ECHO_T}no" >&6
29899+ ;;
29900+ esac
29901+fi
29902+
29903+
29904+
29905+# The else clause should only fire when bootstrapping the
29906+# libtool distribution, otherwise you forgot to ship ltmain.sh
29907+# with your package, and you will get complaints that there are
29908+# no rules to generate ltmain.sh.
29909+if test -f "$ltmain"; then
29910+ # See if we are running on zsh, and set the options which allow our commands through
29911+ # without removal of \ escapes.
29912+ if test -n "${ZSH_VERSION+set}" ; then
29913+ setopt NO_GLOB_SUBST
29914+ fi
29915+ # Now quote all the things that may contain metacharacters while being
29916+ # careful not to overquote the AC_SUBSTed values. We take copies of the
29917+ # variables and quote the copies for generation of the libtool script.
29918+ for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
29919+ SED SHELL STRIP \
29920+ libname_spec library_names_spec soname_spec extract_expsyms_cmds \
29921+ old_striplib striplib file_magic_cmd finish_cmds finish_eval \
29922+ deplibs_check_method reload_flag reload_cmds need_locks \
29923+ lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
29924+ lt_cv_sys_global_symbol_to_c_name_address \
29925+ sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
29926+ old_postinstall_cmds old_postuninstall_cmds \
29927+ compiler_F77 \
29928+ CC_F77 \
29929+ LD_F77 \
29930+ lt_prog_compiler_wl_F77 \
29931+ lt_prog_compiler_pic_F77 \
29932+ lt_prog_compiler_static_F77 \
29933+ lt_prog_compiler_no_builtin_flag_F77 \
29934+ export_dynamic_flag_spec_F77 \
29935+ thread_safe_flag_spec_F77 \
29936+ whole_archive_flag_spec_F77 \
29937+ enable_shared_with_static_runtimes_F77 \
29938+ old_archive_cmds_F77 \
29939+ old_archive_from_new_cmds_F77 \
29940+ predep_objects_F77 \
29941+ postdep_objects_F77 \
29942+ predeps_F77 \
29943+ postdeps_F77 \
29944+ compiler_lib_search_path_F77 \
29945+ archive_cmds_F77 \
29946+ archive_expsym_cmds_F77 \
29947+ postinstall_cmds_F77 \
29948+ postuninstall_cmds_F77 \
29949+ old_archive_from_expsyms_cmds_F77 \
29950+ allow_undefined_flag_F77 \
29951+ no_undefined_flag_F77 \
29952+ export_symbols_cmds_F77 \
29953+ hardcode_libdir_flag_spec_F77 \
29954+ hardcode_libdir_flag_spec_ld_F77 \
29955+ hardcode_libdir_separator_F77 \
29956+ hardcode_automatic_F77 \
29957+ module_cmds_F77 \
29958+ module_expsym_cmds_F77 \
29959+ lt_cv_prog_compiler_c_o_F77 \
29960+ exclude_expsyms_F77 \
29961+ include_expsyms_F77; do
29962+
29963+ case $var in
29964+ old_archive_cmds_F77 | \
29965+ old_archive_from_new_cmds_F77 | \
29966+ archive_cmds_F77 | \
29967+ archive_expsym_cmds_F77 | \
29968+ module_cmds_F77 | \
29969+ module_expsym_cmds_F77 | \
29970+ old_archive_from_expsyms_cmds_F77 | \
29971+ export_symbols_cmds_F77 | \
29972+ extract_expsyms_cmds | reload_cmds | finish_cmds | \
29973+ postinstall_cmds | postuninstall_cmds | \
29974+ old_postinstall_cmds | old_postuninstall_cmds | \
29975+ sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
29976+ # Double-quote double-evaled strings.
29977+ eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
29978+ ;;
29979+ *)
29980+ eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
29981+ ;;
29982+ esac
29983+ done
29984+
29985+ case $lt_echo in
29986+ *'\$0 --fallback-echo"')
29987+ lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
29988+ ;;
29989+ esac
29990+
29991+cfgfile="$ofile"
29992+
29993+ cat <<__EOF__ >> "$cfgfile"
29994+# ### BEGIN LIBTOOL TAG CONFIG: $tagname
29995+
29996+# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
29997+
29998+# Shell to use when invoking shell scripts.
29999+SHELL=$lt_SHELL
30000+
30001+# Whether or not to build shared libraries.
30002+build_libtool_libs=$enable_shared
30003+
30004+# Whether or not to build static libraries.
30005+build_old_libs=$enable_static
30006+
30007+# Whether or not to add -lc for building shared libraries.
30008+build_libtool_need_lc=$archive_cmds_need_lc_F77
30009+
30010+# Whether or not to disallow shared libs when runtime libs are static
30011+allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
30012+
30013+# Whether or not to optimize for fast installation.
30014+fast_install=$enable_fast_install
30015+
30016+# The host system.
30017+host_alias=$host_alias
30018+host=$host
30019+
30020+# An echo program that does not interpret backslashes.
30021+echo=$lt_echo
30022+
30023+# The archiver.
30024+AR=$lt_AR
30025+AR_FLAGS=$lt_AR_FLAGS
30026+
30027+# A C compiler.
30028+LTCC=$lt_LTCC
30029+
30030+# A language-specific compiler.
30031+CC=$lt_compiler_F77
30032+
30033+# Is the compiler the GNU C compiler?
30034+with_gcc=$GCC_F77
30035+
30036+# An ERE matcher.
30037+EGREP=$lt_EGREP
30038+
30039+# The linker used to build libraries.
30040+LD=$lt_LD_F77
30041+
30042+# Whether we need hard or soft links.
30043+LN_S=$lt_LN_S
30044+
30045+# A BSD-compatible nm program.
30046+NM=$lt_NM
30047+
30048+# A symbol stripping program
30049+STRIP=$lt_STRIP
30050+
30051+# Used to examine libraries when file_magic_cmd begins "file"
30052+MAGIC_CMD=$MAGIC_CMD
30053+
30054+# Used on cygwin: DLL creation program.
30055+DLLTOOL="$DLLTOOL"
30056+
30057+# Used on cygwin: object dumper.
30058+OBJDUMP="$OBJDUMP"
30059+
30060+# Used on cygwin: assembler.
30061+AS="$AS"
30062+
30063+# The name of the directory that contains temporary libtool files.
30064+objdir=$objdir
30065+
30066+# How to create reloadable object files.
30067+reload_flag=$lt_reload_flag
30068+reload_cmds=$lt_reload_cmds
30069+
30070+# How to pass a linker flag through the compiler.
30071+wl=$lt_lt_prog_compiler_wl_F77
30072+
30073+# Object file suffix (normally "o").
30074+objext="$ac_objext"
30075+
30076+# Old archive suffix (normally "a").
30077+libext="$libext"
30078+
30079+# Shared library suffix (normally ".so").
30080+shrext_cmds='$shrext_cmds'
30081+
30082+# Executable file suffix (normally "").
30083+exeext="$exeext"
30084+
30085+# Additional compiler flags for building library objects.
30086+pic_flag=$lt_lt_prog_compiler_pic_F77
30087+pic_mode=$pic_mode
30088+
30089+# What is the maximum length of a command?
30090+max_cmd_len=$lt_cv_sys_max_cmd_len
30091+
30092+# Does compiler simultaneously support -c and -o options?
30093+compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
30094+
30095+# Must we lock files when doing compilation ?
30096+need_locks=$lt_need_locks
30097+
30098+# Do we need the lib prefix for modules?
30099+need_lib_prefix=$need_lib_prefix
30100+
30101+# Do we need a version for libraries?
30102+need_version=$need_version
30103+
30104+# Whether dlopen is supported.
30105+dlopen_support=$enable_dlopen
30106+
30107+# Whether dlopen of programs is supported.
30108+dlopen_self=$enable_dlopen_self
30109+
30110+# Whether dlopen of statically linked programs is supported.
30111+dlopen_self_static=$enable_dlopen_self_static
30112+
30113+# Compiler flag to prevent dynamic linking.
30114+link_static_flag=$lt_lt_prog_compiler_static_F77
30115+
30116+# Compiler flag to turn off builtin functions.
30117+no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
30118+
30119+# Compiler flag to allow reflexive dlopens.
30120+export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
30121+
30122+# Compiler flag to generate shared objects directly from archives.
30123+whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
30124+
30125+# Compiler flag to generate thread-safe objects.
30126+thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
30127+
30128+# Library versioning type.
30129+version_type=$version_type
30130+
30131+# Format of library name prefix.
30132+libname_spec=$lt_libname_spec
30133+
30134+# List of archive names. First name is the real one, the rest are links.
30135+# The last name is the one that the linker finds with -lNAME.
30136+library_names_spec=$lt_library_names_spec
30137+
30138+# The coded name of the library, if different from the real name.
30139+soname_spec=$lt_soname_spec
30140+
30141+# Commands used to build and install an old-style archive.
30142+RANLIB=$lt_RANLIB
30143+old_archive_cmds=$lt_old_archive_cmds_F77
30144+old_postinstall_cmds=$lt_old_postinstall_cmds
30145+old_postuninstall_cmds=$lt_old_postuninstall_cmds
30146+
30147+# Create an old-style archive from a shared archive.
30148+old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
30149+
30150+# Create a temporary old-style archive to link instead of a shared archive.
30151+old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
30152+
30153+# Commands used to build and install a shared archive.
30154+archive_cmds=$lt_archive_cmds_F77
30155+archive_expsym_cmds=$lt_archive_expsym_cmds_F77
30156+postinstall_cmds=$lt_postinstall_cmds
30157+postuninstall_cmds=$lt_postuninstall_cmds
30158+
30159+# Commands used to build a loadable module (assumed same as above if empty)
30160+module_cmds=$lt_module_cmds_F77
30161+module_expsym_cmds=$lt_module_expsym_cmds_F77
30162+
30163+# Commands to strip libraries.
30164+old_striplib=$lt_old_striplib
30165+striplib=$lt_striplib
30166+
30167+# Dependencies to place before the objects being linked to create a
30168+# shared library.
30169+predep_objects=$lt_predep_objects_F77
30170+
30171+# Dependencies to place after the objects being linked to create a
30172+# shared library.
30173+postdep_objects=$lt_postdep_objects_F77
30174+
30175+# Dependencies to place before the objects being linked to create a
30176+# shared library.
30177+predeps=$lt_predeps_F77
30178+
30179+# Dependencies to place after the objects being linked to create a
30180+# shared library.
30181+postdeps=$lt_postdeps_F77
30182+
30183+# The library search path used internally by the compiler when linking
30184+# a shared library.
30185+compiler_lib_search_path=$lt_compiler_lib_search_path_F77
30186+
30187+# Method to check whether dependent libraries are shared objects.
30188+deplibs_check_method=$lt_deplibs_check_method
30189+
30190+# Command to use when deplibs_check_method == file_magic.
30191+file_magic_cmd=$lt_file_magic_cmd
30192+
30193+# Flag that allows shared libraries with undefined symbols to be built.
30194+allow_undefined_flag=$lt_allow_undefined_flag_F77
30195+
30196+# Flag that forces no undefined symbols.
30197+no_undefined_flag=$lt_no_undefined_flag_F77
30198+
30199+# Commands used to finish a libtool library installation in a directory.
30200+finish_cmds=$lt_finish_cmds
30201+
30202+# Same as above, but a single script fragment to be evaled but not shown.
30203+finish_eval=$lt_finish_eval
30204+
30205+# Take the output of nm and produce a listing of raw symbols and C names.
30206+global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
30207+
30208+# Transform the output of nm in a proper C declaration
30209+global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
30210+
30211+# Transform the output of nm in a C name address pair
30212+global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
30213+
30214+# This is the shared library runtime path variable.
30215+runpath_var=$runpath_var
30216+
30217+# This is the shared library path variable.
30218+shlibpath_var=$shlibpath_var
30219+
30220+# Is shlibpath searched before the hard-coded library search path?
30221+shlibpath_overrides_runpath=$shlibpath_overrides_runpath
30222+
30223+# How to hardcode a shared library path into an executable.
30224+hardcode_action=$hardcode_action_F77
30225+
30226+# Whether we should hardcode library paths into libraries.
30227+hardcode_into_libs=$hardcode_into_libs
30228+
30229+# Flag to hardcode \$libdir into a binary during linking.
30230+# This must work even if \$libdir does not exist.
30231+hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
30232+
30233+# If ld is used when linking, flag to hardcode \$libdir into
30234+# a binary during linking. This must work even if \$libdir does
30235+# not exist.
30236+hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
30237+
30238+# Whether we need a single -rpath flag with a separated argument.
30239+hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
30240+
30241+# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
30242+# resulting binary.
30243+hardcode_direct=$hardcode_direct_F77
30244+
30245+# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
30246+# resulting binary.
30247+hardcode_minus_L=$hardcode_minus_L_F77
30248+
30249+# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
30250+# the resulting binary.
30251+hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
30252+
30253+# Set to yes if building a shared library automatically hardcodes DIR into the library
30254+# and all subsequent libraries and executables linked against it.
30255+hardcode_automatic=$hardcode_automatic_F77
30256+
30257+# Variables whose values should be saved in libtool wrapper scripts and
30258+# restored at relink time.
30259+variables_saved_for_relink="$variables_saved_for_relink"
30260+
30261+# Whether libtool must link a program against all its dependency libraries.
30262+link_all_deplibs=$link_all_deplibs_F77
30263+
30264+# Compile-time system search path for libraries
30265+sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
30266+
30267+# Run-time system search path for libraries
30268+sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
30269+
30270+# Fix the shell variable \$srcfile for the compiler.
30271+fix_srcfile_path="$fix_srcfile_path_F77"
30272+
30273+# Set to yes if exported symbols are required.
30274+always_export_symbols=$always_export_symbols_F77
30275+
30276+# The commands to list exported symbols.
30277+export_symbols_cmds=$lt_export_symbols_cmds_F77
30278+
30279+# The commands to extract the exported symbol list from a shared archive.
30280+extract_expsyms_cmds=$lt_extract_expsyms_cmds
30281+
30282+# Symbols that should not be listed in the preloaded symbols.
30283+exclude_expsyms=$lt_exclude_expsyms_F77
30284+
30285+# Symbols that must always be exported.
30286+include_expsyms=$lt_include_expsyms_F77
30287+
30288+# ### END LIBTOOL TAG CONFIG: $tagname
30289+
30290+__EOF__
30291+
30292+
30293+else
30294+ # If there is no Makefile yet, we rely on a make rule to execute
30295+ # `config.status --recheck' to rerun these tests and create the
30296+ # libtool script then.
30297+ ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
30298+ if test -f "$ltmain_in"; then
30299+ test -f Makefile && make "$ltmain"
30300+ fi
30301+fi
30302+
30303+
30304+ac_ext=c
30305+ac_cpp='$CPP $CPPFLAGS'
30306+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30307+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30308+ac_compiler_gnu=$ac_cv_c_compiler_gnu
30309+
30310+CC="$lt_save_CC"
30311+
30312+ else
30313+ tagname=""
30314+ fi
30315+ ;;
30316+
30317+ GCJ)
30318+ if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
30319+
30320+
30321+
30322+# Source file extension for Java test sources.
30323+ac_ext=java
30324+
30325+# Object file extension for compiled Java test sources.
30326+objext=o
30327+objext_GCJ=$objext
30328+
30329+# Code to be used in simple compile tests
30330+lt_simple_compile_test_code="class foo {}\n"
30331+
30332+# Code to be used in simple link tests
30333+lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
30334+
30335+# ltmain only uses $CC for tagged configurations so make sure $CC is set.
30336+
30337+# If no C compiler was specified, use CC.
30338+LTCC=${LTCC-"$CC"}
30339+
30340+# Allow CC to be a program name with arguments.
30341+compiler=$CC
30342+
30343+
30344+# Allow CC to be a program name with arguments.
30345+lt_save_CC="$CC"
30346+CC=${GCJ-"gcj"}
30347+compiler=$CC
30348+compiler_GCJ=$CC
30349+
30350+# GCJ did not exist at the time GCC didn't implicitly link libc in.
30351+archive_cmds_need_lc_GCJ=no
30352+
30353+
30354+lt_prog_compiler_no_builtin_flag_GCJ=
30355+
30356+if test "$GCC" = yes; then
30357+ lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
30358+
30359+
30360+echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
30361+echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
30362+if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
30363+ echo $ECHO_N "(cached) $ECHO_C" >&6
30364+else
30365+ lt_cv_prog_compiler_rtti_exceptions=no
30366+ ac_outfile=conftest.$ac_objext
30367+ printf "$lt_simple_compile_test_code" > conftest.$ac_ext
30368+ lt_compiler_flag="-fno-rtti -fno-exceptions"
30369+ # Insert the option either (1) after the last *FLAGS variable, or
30370+ # (2) before a word containing "conftest.", or (3) at the end.
30371+ # Note that $ac_compile itself does not contain backslashes and begins
30372+ # with a dollar sign (not a hyphen), so the echo should work correctly.
30373+ # The option is referenced via a variable to avoid confusing sed.
30374+ lt_compile=`echo "$ac_compile" | $SED \
30375+ -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
30376+ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
30377+ -e 's:$: $lt_compiler_flag:'`
30378+ (eval echo "\"\$as_me:15412: $lt_compile\"" >&5)
30379+ (eval "$lt_compile" 2>conftest.err)
30380+ ac_status=$?
30381+ cat conftest.err >&5
30382+ echo "$as_me:15416: \$? = $ac_status" >&5
30383+ if (exit $ac_status) && test -s "$ac_outfile"; then
30384+ # The compiler can only warn and ignore the option if not recognized
30385+ # So say no if there are warnings
30386+ if test ! -s conftest.err; then
30387+ lt_cv_prog_compiler_rtti_exceptions=yes
30388+ fi
30389+ fi
30390+ $rm conftest*
30391+
30392+fi
30393+echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
30394+echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
30395+
30396+if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
30397+ lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
30398+else
30399+ :
30400+fi
30401+
30402+fi
30403+
30404+lt_prog_compiler_wl_GCJ=
30405+lt_prog_compiler_pic_GCJ=
30406+lt_prog_compiler_static_GCJ=
30407+
30408+echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
30409+echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
30410+
30411+ if test "$GCC" = yes; then
30412+ lt_prog_compiler_wl_GCJ='-Wl,'
30413+ lt_prog_compiler_static_GCJ='-static'
30414+
30415+ case $host_os in
30416+ aix*)
30417+ # All AIX code is PIC.
30418+ if test "$host_cpu" = ia64; then
30419+ # AIX 5 now supports IA64 processor
30420+ lt_prog_compiler_static_GCJ='-Bstatic'
30421+ fi
30422+ ;;
30423+
30424+ amigaos*)
30425+ # FIXME: we need at least 68020 code to build shared libraries, but
30426+ # adding the `-m68020' flag to GCC prevents building anything better,
30427+ # like `-m68040'.
30428+ lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
30429+ ;;
30430+
30431+ beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
30432+ # PIC is the default for these OSes.
30433+ ;;
30434+
30435+ mingw* | pw32* | os2*)
30436+ # This hack is so that the source file can tell whether it is being
30437+ # built for inclusion in a dll (and should export symbols for example).
30438+ lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
30439+ ;;
30440+
30441+ darwin* | rhapsody*)
30442+ # PIC is the default on this platform
30443+ # Common symbols not allowed in MH_DYLIB files
30444+ lt_prog_compiler_pic_GCJ='-fno-common'
30445+ ;;
30446+
30447+ msdosdjgpp*)
30448+ # Just because we use GCC doesn't mean we suddenly get shared libraries
30449+ # on systems that don't support them.
30450+ lt_prog_compiler_can_build_shared_GCJ=no
30451+ enable_shared=no
30452+ ;;
30453+
30454+ sysv4*MP*)
30455+ if test -d /usr/nec; then
30456+ lt_prog_compiler_pic_GCJ=-Kconform_pic
30457+ fi
30458+ ;;
30459+
30460+ hpux*)
30461+ # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
30462+ # not for PA HP-UX.
30463+ case "$host_cpu" in
30464+ hppa*64*|ia64*)
30465+ # +Z the default
30466+ ;;
30467+ *)
30468+ lt_prog_compiler_pic_GCJ='-fPIC'
30469+ ;;
30470+ esac
30471+ ;;
30472+
30473+ *)
30474+ lt_prog_compiler_pic_GCJ='-fPIC'
30475+ ;;
30476+ esac
30477+ else
30478+ # PORTME Check for flag to pass linker flags through the system compiler.
30479+ case $host_os in
30480+ aix*)
30481+ lt_prog_compiler_wl_GCJ='-Wl,'
30482+ if test "$host_cpu" = ia64; then
30483+ # AIX 5 now supports IA64 processor
30484+ lt_prog_compiler_static_GCJ='-Bstatic'
30485+ else
30486+ lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
30487+ fi
30488+ ;;
30489+
30490+ mingw* | pw32* | os2*)
30491+ # This hack is so that the source file can tell whether it is being
30492+ # built for inclusion in a dll (and should export symbols for example).
30493+ lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
30494+ ;;
30495+
30496+ hpux9* | hpux10* | hpux11*)
30497+ lt_prog_compiler_wl_GCJ='-Wl,'
30498+ # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
30499+ # not for PA HP-UX.
30500+ case "$host_cpu" in
30501+ hppa*64*|ia64*)
30502+ # +Z the default
30503+ ;;
30504+ *)
30505+ lt_prog_compiler_pic_GCJ='+Z'
30506+ ;;
30507+ esac
30508+ # Is there a better lt_prog_compiler_static that works with the bundled CC?
30509+ lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
30510+ ;;
30511+
30512+ irix5* | irix6* | nonstopux*)
30513+ lt_prog_compiler_wl_GCJ='-Wl,'
30514+ # PIC (with -KPIC) is the default.
30515+ lt_prog_compiler_static_GCJ='-non_shared'
30516+ ;;
30517+
30518+ newsos6)
30519+ lt_prog_compiler_pic_GCJ='-KPIC'
30520+ lt_prog_compiler_static_GCJ='-Bstatic'
30521+ ;;
30522+
30523+ linux*)
30524+ case $CC in
30525+ icc* | ecc*)
30526+ lt_prog_compiler_wl_GCJ='-Wl,'
30527+ lt_prog_compiler_pic_GCJ='-KPIC'
30528+ lt_prog_compiler_static_GCJ='-static'
30529+ ;;
30530+ ccc*)
30531+ lt_prog_compiler_wl_GCJ='-Wl,'
30532+ # All Alpha code is PIC.
30533+ lt_prog_compiler_static_GCJ='-non_shared'
30534+ ;;
30535+ esac
30536+ ;;
30537+
30538+ osf3* | osf4* | osf5*)
30539+ lt_prog_compiler_wl_GCJ='-Wl,'
30540+ # All OSF/1 code is PIC.
30541+ lt_prog_compiler_static_GCJ='-non_shared'
30542+ ;;
30543+
30544+ sco3.2v5*)
30545+ lt_prog_compiler_pic_GCJ='-Kpic'
30546+ lt_prog_compiler_static_GCJ='-dn'
30547+ ;;
30548+
30549+ solaris*)
30550+ lt_prog_compiler_wl_GCJ='-Wl,'
30551+ lt_prog_compiler_pic_GCJ='-KPIC'
30552+ lt_prog_compiler_static_GCJ='-Bstatic'
30553+ ;;
30554+
30555+ sunos4*)
30556+ lt_prog_compiler_wl_GCJ='-Qoption ld '
30557+ lt_prog_compiler_pic_GCJ='-PIC'
30558+ lt_prog_compiler_static_GCJ='-Bstatic'
30559+ ;;
30560+
30561+ sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
30562+ lt_prog_compiler_wl_GCJ='-Wl,'
30563+ lt_prog_compiler_pic_GCJ='-KPIC'
30564+ lt_prog_compiler_static_GCJ='-Bstatic'
30565+ ;;
30566+
30567+ sysv4*MP*)
30568+ if test -d /usr/nec ;then
30569+ lt_prog_compiler_pic_GCJ='-Kconform_pic'
30570+ lt_prog_compiler_static_GCJ='-Bstatic'
30571+ fi
30572+ ;;
30573+
30574+ uts4*)
30575+ lt_prog_compiler_pic_GCJ='-pic'
30576+ lt_prog_compiler_static_GCJ='-Bstatic'
30577+ ;;
30578+
30579+ *)
30580+ lt_prog_compiler_can_build_shared_GCJ=no
30581+ ;;
30582+ esac
30583+ fi
30584+
30585+echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
30586+echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
30587+
30588+#
30589+# Check to make sure the PIC flag actually works.
30590+#
30591+if test -n "$lt_prog_compiler_pic_GCJ"; then
30592+
30593+echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
30594+echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
30595+if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
30596+ echo $ECHO_N "(cached) $ECHO_C" >&6
30597+else
30598+ lt_prog_compiler_pic_works_GCJ=no
30599+ ac_outfile=conftest.$ac_objext
30600+ printf "$lt_simple_compile_test_code" > conftest.$ac_ext
30601+ lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
30602+ # Insert the option either (1) after the last *FLAGS variable, or
30603+ # (2) before a word containing "conftest.", or (3) at the end.
30604+ # Note that $ac_compile itself does not contain backslashes and begins
30605+ # with a dollar sign (not a hyphen), so the echo should work correctly.
30606+ # The option is referenced via a variable to avoid confusing sed.
30607+ lt_compile=`echo "$ac_compile" | $SED \
30608+ -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
30609+ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
30610+ -e 's:$: $lt_compiler_flag:'`
30611+ (eval echo "\"\$as_me:15645: $lt_compile\"" >&5)
30612+ (eval "$lt_compile" 2>conftest.err)
30613+ ac_status=$?
30614+ cat conftest.err >&5
30615+ echo "$as_me:15649: \$? = $ac_status" >&5
30616+ if (exit $ac_status) && test -s "$ac_outfile"; then
30617+ # The compiler can only warn and ignore the option if not recognized
30618+ # So say no if there are warnings
30619+ if test ! -s conftest.err; then
30620+ lt_prog_compiler_pic_works_GCJ=yes
30621+ fi
30622+ fi
30623+ $rm conftest*
30624+
30625+fi
30626+echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
30627+echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
30628+
30629+if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
30630+ case $lt_prog_compiler_pic_GCJ in
30631+ "" | " "*) ;;
30632+ *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
30633+ esac
30634+else
30635+ lt_prog_compiler_pic_GCJ=
30636+ lt_prog_compiler_can_build_shared_GCJ=no
30637+fi
30638+
30639+fi
30640+case "$host_os" in
30641+ # For platforms which do not support PIC, -DPIC is meaningless:
30642+ *djgpp*)
30643+ lt_prog_compiler_pic_GCJ=
30644+ ;;
30645+ *)
30646+ lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
30647+ ;;
30648+esac
30649+
30650+echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
30651+echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
30652+if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
30653+ echo $ECHO_N "(cached) $ECHO_C" >&6
30654+else
30655+ lt_cv_prog_compiler_c_o_GCJ=no
30656+ $rm -r conftest 2>/dev/null
30657+ mkdir conftest
30658+ cd conftest
30659+ mkdir out
30660+ printf "$lt_simple_compile_test_code" > conftest.$ac_ext
30661+
30662+ lt_compiler_flag="-o out/conftest2.$ac_objext"
30663+ # Insert the option either (1) after the last *FLAGS variable, or
30664+ # (2) before a word containing "conftest.", or (3) at the end.
30665+ # Note that $ac_compile itself does not contain backslashes and begins
30666+ # with a dollar sign (not a hyphen), so the echo should work correctly.
30667+ lt_compile=`echo "$ac_compile" | $SED \
30668+ -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
30669+ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
30670+ -e 's:$: $lt_compiler_flag:'`
30671+ (eval echo "\"\$as_me:15705: $lt_compile\"" >&5)
30672+ (eval "$lt_compile" 2>out/conftest.err)
30673+ ac_status=$?
30674+ cat out/conftest.err >&5
30675+ echo "$as_me:15709: \$? = $ac_status" >&5
30676+ if (exit $ac_status) && test -s out/conftest2.$ac_objext
30677+ then
30678+ # The compiler can only warn and ignore the option if not recognized
30679+ # So say no if there are warnings
30680+ if test ! -s out/conftest.err; then
30681+ lt_cv_prog_compiler_c_o_GCJ=yes
30682+ fi
30683+ fi
30684+ chmod u+w .
30685+ $rm conftest*
30686+ # SGI C++ compiler will create directory out/ii_files/ for
30687+ # template instantiation
30688+ test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
30689+ $rm out/* && rmdir out
30690+ cd ..
30691+ rmdir conftest
30692+ $rm conftest*
30693+
30694+fi
30695+echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
30696+echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
30697+
30698+
30699+hard_links="nottested"
30700+if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
30701+ # do not overwrite the value of need_locks provided by the user
30702+ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
30703+echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
30704+ hard_links=yes
30705+ $rm conftest*
30706+ ln conftest.a conftest.b 2>/dev/null && hard_links=no
30707+ touch conftest.a
30708+ ln conftest.a conftest.b 2>&5 || hard_links=no
30709+ ln conftest.a conftest.b 2>/dev/null && hard_links=no
30710+ echo "$as_me:$LINENO: result: $hard_links" >&5
30711+echo "${ECHO_T}$hard_links" >&6
30712+ if test "$hard_links" = no; then
30713+ { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
30714+echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
30715+ need_locks=warn
30716+ fi
30717+else
30718+ need_locks=no
30719+fi
30720+
30721+echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
30722+echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
30723+
30724+ runpath_var=
30725+ allow_undefined_flag_GCJ=
30726+ enable_shared_with_static_runtimes_GCJ=no
30727+ archive_cmds_GCJ=
30728+ archive_expsym_cmds_GCJ=
30729+ old_archive_From_new_cmds_GCJ=
30730+ old_archive_from_expsyms_cmds_GCJ=
30731+ export_dynamic_flag_spec_GCJ=
30732+ whole_archive_flag_spec_GCJ=
30733+ thread_safe_flag_spec_GCJ=
30734+ hardcode_libdir_flag_spec_GCJ=
30735+ hardcode_libdir_flag_spec_ld_GCJ=
30736+ hardcode_libdir_separator_GCJ=
30737+ hardcode_direct_GCJ=no
30738+ hardcode_minus_L_GCJ=no
30739+ hardcode_shlibpath_var_GCJ=unsupported
30740+ link_all_deplibs_GCJ=unknown
30741+ hardcode_automatic_GCJ=no
30742+ module_cmds_GCJ=
30743+ module_expsym_cmds_GCJ=
30744+ always_export_symbols_GCJ=no
30745+ export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
30746+ # include_expsyms should be a list of space-separated symbols to be *always*
30747+ # included in the symbol list
30748+ include_expsyms_GCJ=
30749+ # exclude_expsyms can be an extended regexp of symbols to exclude
30750+ # it will be wrapped by ` (' and `)$', so one must not match beginning or
30751+ # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
30752+ # as well as any symbol that contains `d'.
30753+ exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
30754+ # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
30755+ # platforms (ab)use it in PIC code, but their linkers get confused if
30756+ # the symbol is explicitly referenced. Since portable code cannot
30757+ # rely on this symbol name, it's probably fine to never include it in
30758+ # preloaded symbol tables.
30759+ extract_expsyms_cmds=
30760+
30761+ case $host_os in
30762+ cygwin* | mingw* | pw32*)
30763+ # FIXME: the MSVC++ port hasn't been tested in a loooong time
30764+ # When not using gcc, we currently assume that we are using
30765+ # Microsoft Visual C++.
30766+ if test "$GCC" != yes; then
30767+ with_gnu_ld=no
30768+ fi
30769+ ;;
30770+ openbsd*)
30771+ with_gnu_ld=no
30772+ ;;
30773+ esac
30774+
30775+ ld_shlibs_GCJ=yes
30776+ if test "$with_gnu_ld" = yes; then
30777+ # If archive_cmds runs LD, not CC, wlarc should be empty
30778+ wlarc='${wl}'
30779+
30780+ # See if GNU ld supports shared libraries.
30781+ case $host_os in
30782+ aix3* | aix4* | aix5*)
30783+ # On AIX/PPC, the GNU linker is very broken
30784+ if test "$host_cpu" != ia64; then
30785+ ld_shlibs_GCJ=no
30786+ cat <<EOF 1>&2
30787+
30788+*** Warning: the GNU linker, at least up to release 2.9.1, is reported
30789+*** to be unable to reliably create shared libraries on AIX.
30790+*** Therefore, libtool is disabling shared libraries support. If you
30791+*** really care for shared libraries, you may want to modify your PATH
30792+*** so that a non-GNU linker is found, and then restart.
30793+
30794+EOF
30795+ fi
30796+ ;;
30797+
30798+ amigaos*)
30799+ archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
30800+ hardcode_libdir_flag_spec_GCJ='-L$libdir'
30801+ hardcode_minus_L_GCJ=yes
30802+
30803+ # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
30804+ # that the semantics of dynamic libraries on AmigaOS, at least up
30805+ # to version 4, is to share data among multiple programs linked
30806+ # with the same dynamic library. Since this doesn't match the
30807+ # behavior of shared libraries on other platforms, we can't use
30808+ # them.
30809+ ld_shlibs_GCJ=no
30810+ ;;
30811+
30812+ beos*)
30813+ if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
30814+ allow_undefined_flag_GCJ=unsupported
30815+ # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
30816+ # support --undefined. This deserves some investigation. FIXME
30817+ archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
30818+ else
30819+ ld_shlibs_GCJ=no
30820+ fi
30821+ ;;
30822+
30823+ cygwin* | mingw* | pw32*)
30824+ # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
30825+ # as there is no search path for DLLs.
30826+ hardcode_libdir_flag_spec_GCJ='-L$libdir'
30827+ allow_undefined_flag_GCJ=unsupported
30828+ always_export_symbols_GCJ=no
30829+ enable_shared_with_static_runtimes_GCJ=yes
30830+ export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
30831+
30832+ if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
30833+ archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
30834+ # If the export-symbols file already is a .def file (1st line
30835+ # is EXPORTS), use it as is; otherwise, prepend...
30836+ archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
30837+ cp $export_symbols $output_objdir/$soname.def;
30838+ else
30839+ echo EXPORTS > $output_objdir/$soname.def;
30840+ cat $export_symbols >> $output_objdir/$soname.def;
30841+ fi~
30842+ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
30843+ else
30844+ ld_shlibs=no
30845+ fi
30846+ ;;
30847+
30848+ netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
30849+ if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
30850+ archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
30851+ wlarc=
30852+ else
30853+ archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
30854+ archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
30855+ fi
30856+ ;;
30857+
30858+ solaris* | sysv5*)
30859+ if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
30860+ ld_shlibs_GCJ=no
30861+ cat <<EOF 1>&2
30862+
30863+*** Warning: The releases 2.8.* of the GNU linker cannot reliably
30864+*** create shared libraries on Solaris systems. Therefore, libtool
30865+*** is disabling shared libraries support. We urge you to upgrade GNU
30866+*** binutils to release 2.9.1 or newer. Another option is to modify
30867+*** your PATH or compiler configuration so that the native linker is
30868+*** used, and then restart.
30869+
30870+EOF
30871+ elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
30872+ archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
30873+ archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
30874+ else
30875+ ld_shlibs_GCJ=no
30876+ fi
30877+ ;;
30878+
30879+ sunos4*)
30880+ archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
30881+ wlarc=
30882+ hardcode_direct_GCJ=yes
30883+ hardcode_shlibpath_var_GCJ=no
30884+ ;;
30885+
30886+ linux*)
30887+ if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
30888+ tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
30889+ archive_cmds_GCJ="$tmp_archive_cmds"
30890+ supports_anon_versioning=no
30891+ case `$LD -v 2>/dev/null` in
30892+ *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
30893+ *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
30894+ *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
30895+ *\ 2.11.*) ;; # other 2.11 versions
30896+ *) supports_anon_versioning=yes ;;
30897+ esac
30898+ if test $supports_anon_versioning = yes; then
30899+ archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
30900+cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
30901+$echo "local: *; };" >> $output_objdir/$libname.ver~
30902+ $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
30903+ else
30904+ archive_expsym_cmds_GCJ="$tmp_archive_cmds"
30905+ fi
30906+ link_all_deplibs_GCJ=no
30907+ else
30908+ ld_shlibs_GCJ=no
30909+ fi
30910+ ;;
30911+
30912+ *)
30913+ if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
30914+ archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
30915+ archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
30916+ else
30917+ ld_shlibs_GCJ=no
30918+ fi
30919+ ;;
30920+ esac
30921+
30922+ if test "$ld_shlibs_GCJ" = yes; then
30923+ runpath_var=LD_RUN_PATH
30924+ hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
30925+ export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
30926+ # ancient GNU ld didn't support --whole-archive et. al.
30927+ if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
30928+ whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
30929+ else
30930+ whole_archive_flag_spec_GCJ=
30931+ fi
30932+ fi
30933+ else
30934+ # PORTME fill in a description of your system's linker (not GNU ld)
30935+ case $host_os in
30936+ aix3*)
30937+ allow_undefined_flag_GCJ=unsupported
30938+ always_export_symbols_GCJ=yes
30939+ archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
30940+ # Note: this linker hardcodes the directories in LIBPATH if there
30941+ # are no directories specified by -L.
30942+ hardcode_minus_L_GCJ=yes
30943+ if test "$GCC" = yes && test -z "$link_static_flag"; then
30944+ # Neither direct hardcoding nor static linking is supported with a
30945+ # broken collect2.
30946+ hardcode_direct_GCJ=unsupported
30947+ fi
30948+ ;;
30949+
30950+ aix4* | aix5*)
30951+ if test "$host_cpu" = ia64; then
30952+ # On IA64, the linker does run time linking by default, so we don't
30953+ # have to do anything special.
30954+ aix_use_runtimelinking=no
30955+ exp_sym_flag='-Bexport'
30956+ no_entry_flag=""
30957+ else
30958+ # If we're using GNU nm, then we don't want the "-C" option.
30959+ # -C means demangle to AIX nm, but means don't demangle with GNU nm
30960+ if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
30961+ export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
30962+ else
30963+ export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
30964+ fi
30965+ aix_use_runtimelinking=no
30966+
30967+ # Test if we are trying to use run time linking or normal
30968+ # AIX style linking. If -brtl is somewhere in LDFLAGS, we
30969+ # need to do runtime linking.
30970+ case $host_os in aix4.[23]|aix4.[23].*|aix5*)
30971+ for ld_flag in $LDFLAGS; do
30972+ if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
30973+ aix_use_runtimelinking=yes
30974+ break
30975+ fi
30976+ done
30977+ esac
30978+
30979+ exp_sym_flag='-bexport'
30980+ no_entry_flag='-bnoentry'
30981+ fi
30982+
30983+ # When large executables or shared objects are built, AIX ld can
30984+ # have problems creating the table of contents. If linking a library
30985+ # or program results in "error TOC overflow" add -mminimal-toc to
30986+ # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
30987+ # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
30988+
30989+ archive_cmds_GCJ=''
30990+ hardcode_direct_GCJ=yes
30991+ hardcode_libdir_separator_GCJ=':'
30992+ link_all_deplibs_GCJ=yes
30993+
30994+ if test "$GCC" = yes; then
30995+ case $host_os in aix4.012|aix4.012.*)
30996+ # We only want to do this on AIX 4.2 and lower, the check
30997+ # below for broken collect2 doesn't work under 4.3+
30998+ collect2name=`${CC} -print-prog-name=collect2`
30999+ if test -f "$collect2name" && \
31000+ strings "$collect2name" | grep resolve_lib_name >/dev/null
31001+ then
31002+ # We have reworked collect2
31003+ hardcode_direct_GCJ=yes
31004+ else
31005+ # We have old collect2
31006+ hardcode_direct_GCJ=unsupported
31007+ # It fails to find uninstalled libraries when the uninstalled
31008+ # path is not listed in the libpath. Setting hardcode_minus_L
31009+ # to unsupported forces relinking
31010+ hardcode_minus_L_GCJ=yes
31011+ hardcode_libdir_flag_spec_GCJ='-L$libdir'
31012+ hardcode_libdir_separator_GCJ=
31013+ fi
31014+ esac
31015+ shared_flag='-shared'
31016+ else
31017+ # not using gcc
31018+ if test "$host_cpu" = ia64; then
31019+ # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
31020+ # chokes on -Wl,-G. The following line is correct:
31021+ shared_flag='-G'
31022+ else
31023+ if test "$aix_use_runtimelinking" = yes; then
31024+ shared_flag='${wl}-G'
31025+ else
31026+ shared_flag='${wl}-bM:SRE'
31027+ fi
31028+ fi
31029+ fi
31030+
31031+ # It seems that -bexpall does not export symbols beginning with
31032+ # underscore (_), so it is better to generate a list of symbols to export.
31033+ always_export_symbols_GCJ=yes
31034+ if test "$aix_use_runtimelinking" = yes; then
31035+ # Warning - without using the other runtime loading flags (-brtl),
31036+ # -berok will link without error, but may produce a broken library.
31037+ allow_undefined_flag_GCJ='-berok'
31038+ # Determine the default libpath from the value encoded in an empty executable.
31039+ cat >conftest.$ac_ext <<_ACEOF
31040+/* confdefs.h. */
31041+_ACEOF
31042+cat confdefs.h >>conftest.$ac_ext
31043+cat >>conftest.$ac_ext <<_ACEOF
31044+/* end confdefs.h. */
31045+
31046+int
31047+main ()
31048+{
31049+
31050+ ;
31051+ return 0;
31052+}
31053+_ACEOF
31054+rm -f conftest.$ac_objext conftest$ac_exeext
31055+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31056+ (eval $ac_link) 2>conftest.er1
31057+ ac_status=$?
31058+ grep -v '^ *+' conftest.er1 >conftest.err
31059+ rm -f conftest.er1
31060+ cat conftest.err >&5
31061+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
31062+ (exit $ac_status); } &&
31063+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31064+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31065+ (eval $ac_try) 2>&5
31066+ ac_status=$?
31067+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
31068+ (exit $ac_status); }; } &&
31069+ { ac_try='test -s conftest$ac_exeext'
31070+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31071+ (eval $ac_try) 2>&5
31072+ ac_status=$?
31073+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
31074+ (exit $ac_status); }; }; then
31075+
31076+aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
31077+}'`
31078+# Check for a 64-bit object if we didn't find anything.
31079+if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
31080+}'`; fi
31081+else
31082+ echo "$as_me: failed program was:" >&5
31083+sed 's/^/| /' conftest.$ac_ext >&5
31084+
31085+fi
31086+rm -f conftest.err conftest.$ac_objext \
31087+ conftest$ac_exeext conftest.$ac_ext
31088+if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
31089+
31090+ hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
31091+ archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
31092+ else
31093+ if test "$host_cpu" = ia64; then
31094+ hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
31095+ allow_undefined_flag_GCJ="-z nodefs"
31096+ archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
31097+ else
31098+ # Determine the default libpath from the value encoded in an empty executable.
31099+ cat >conftest.$ac_ext <<_ACEOF
31100+/* confdefs.h. */
31101+_ACEOF
31102+cat confdefs.h >>conftest.$ac_ext
31103+cat >>conftest.$ac_ext <<_ACEOF
31104+/* end confdefs.h. */
31105+
31106+int
31107+main ()
31108+{
31109+
31110+ ;
31111+ return 0;
31112+}
31113+_ACEOF
31114+rm -f conftest.$ac_objext conftest$ac_exeext
31115+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31116+ (eval $ac_link) 2>conftest.er1
31117+ ac_status=$?
31118+ grep -v '^ *+' conftest.er1 >conftest.err
31119+ rm -f conftest.er1
31120+ cat conftest.err >&5
31121+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
31122+ (exit $ac_status); } &&
31123+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31124+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31125+ (eval $ac_try) 2>&5
31126+ ac_status=$?
31127+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
31128+ (exit $ac_status); }; } &&
31129+ { ac_try='test -s conftest$ac_exeext'
31130+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31131+ (eval $ac_try) 2>&5
31132+ ac_status=$?
31133+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
31134+ (exit $ac_status); }; }; then
31135+
31136+aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
31137+}'`
31138+# Check for a 64-bit object if we didn't find anything.
31139+if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
31140+}'`; fi
31141+else
31142+ echo "$as_me: failed program was:" >&5
31143+sed 's/^/| /' conftest.$ac_ext >&5
31144+
31145+fi
31146+rm -f conftest.err conftest.$ac_objext \
31147+ conftest$ac_exeext conftest.$ac_ext
31148+if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
31149+
31150+ hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
31151+ # Warning - without using the other run time loading flags,
31152+ # -berok will link without error, but may produce a broken library.
31153+ no_undefined_flag_GCJ=' ${wl}-bernotok'
31154+ allow_undefined_flag_GCJ=' ${wl}-berok'
31155+ # -bexpall does not export symbols beginning with underscore (_)
31156+ always_export_symbols_GCJ=yes
31157+ # Exported symbols can be pulled into shared objects from archives
31158+ whole_archive_flag_spec_GCJ=' '
31159+ archive_cmds_need_lc_GCJ=yes
31160+ # This is similar to how AIX traditionally builds it's shared libraries.
31161+ archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
31162+ fi
31163+ fi
31164+ ;;
31165+
31166+ amigaos*)
31167+ archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
31168+ hardcode_libdir_flag_spec_GCJ='-L$libdir'
31169+ hardcode_minus_L_GCJ=yes
31170+ # see comment about different semantics on the GNU ld section
31171+ ld_shlibs_GCJ=no
31172+ ;;
31173+
31174+ bsdi4*)
31175+ export_dynamic_flag_spec_GCJ=-rdynamic
31176+ ;;
31177+
31178+ cygwin* | mingw* | pw32*)
31179+ # When not using gcc, we currently assume that we are using
31180+ # Microsoft Visual C++.
31181+ # hardcode_libdir_flag_spec is actually meaningless, as there is
31182+ # no search path for DLLs.
31183+ hardcode_libdir_flag_spec_GCJ=' '
31184+ allow_undefined_flag_GCJ=unsupported
31185+ # Tell ltmain to make .lib files, not .a files.
31186+ libext=lib
31187+ # Tell ltmain to make .dll files, not .so files.
31188+ shrext_cmds=".dll"
31189+ # FIXME: Setting linknames here is a bad hack.
31190+ archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
31191+ # The linker will automatically build a .lib file if we build a DLL.
31192+ old_archive_From_new_cmds_GCJ='true'
31193+ # FIXME: Should let the user specify the lib program.
31194+ old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
31195+ fix_srcfile_path='`cygpath -w "$srcfile"`'
31196+ enable_shared_with_static_runtimes_GCJ=yes
31197+ ;;
31198+
31199+ darwin* | rhapsody*)
31200+ if test "$GXX" = yes ; then
31201+ archive_cmds_need_lc_GCJ=no
31202+ case "$host_os" in
31203+ rhapsody* | darwin1.[012])
31204+ allow_undefined_flag_GCJ='-undefined suppress'
31205+ ;;
31206+ *) # Darwin 1.3 on
31207+ if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
31208+ allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
31209+ else
31210+ case ${MACOSX_DEPLOYMENT_TARGET} in
31211+ 10.[012])
31212+ allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
31213+ ;;
31214+ 10.*)
31215+ allow_undefined_flag_GCJ='-undefined dynamic_lookup'
31216+ ;;
31217+ esac
31218+ fi
31219+ ;;
31220+ esac
31221+ lt_int_apple_cc_single_mod=no
31222+ output_verbose_link_cmd='echo'
31223+ if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
31224+ lt_int_apple_cc_single_mod=yes
31225+ fi
31226+ if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
31227+ archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
31228+ else
31229+ archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -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'
31230+ fi
31231+ module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
31232+ # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
31233+ if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
31234+ archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
31235+ else
31236+ archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
31237+ fi
31238+ module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
31239+ hardcode_direct_GCJ=no
31240+ hardcode_automatic_GCJ=yes
31241+ hardcode_shlibpath_var_GCJ=unsupported
31242+ whole_archive_flag_spec_GCJ='-all_load $convenience'
31243+ link_all_deplibs_GCJ=yes
31244+ else
31245+ ld_shlibs_GCJ=no
31246+ fi
31247+ ;;
31248+
31249+ dgux*)
31250+ archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
31251+ hardcode_libdir_flag_spec_GCJ='-L$libdir'
31252+ hardcode_shlibpath_var_GCJ=no
31253+ ;;
31254+
31255+ freebsd1*)
31256+ ld_shlibs_GCJ=no
31257+ ;;
31258+
31259+ # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
31260+ # support. Future versions do this automatically, but an explicit c++rt0.o
31261+ # does not break anything, and helps significantly (at the cost of a little
31262+ # extra space).
31263+ freebsd2.2*)
31264+ archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
31265+ hardcode_libdir_flag_spec_GCJ='-R$libdir'
31266+ hardcode_direct_GCJ=yes
31267+ hardcode_shlibpath_var_GCJ=no
31268+ ;;
31269+
31270+ # Unfortunately, older versions of FreeBSD 2 do not have this feature.
31271+ freebsd2*)
31272+ archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
31273+ hardcode_direct_GCJ=yes
31274+ hardcode_minus_L_GCJ=yes
31275+ hardcode_shlibpath_var_GCJ=no
31276+ ;;
31277+
31278+ # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
31279+ freebsd* | kfreebsd*-gnu)
31280+ archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
31281+ hardcode_libdir_flag_spec_GCJ='-R$libdir'
31282+ hardcode_direct_GCJ=yes
31283+ hardcode_shlibpath_var_GCJ=no
31284+ ;;
31285+
31286+ hpux9*)
31287+ if test "$GCC" = yes; then
31288+ archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
31289+ else
31290+ archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
31291+ fi
31292+ hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
31293+ hardcode_libdir_separator_GCJ=:
31294+ hardcode_direct_GCJ=yes
31295+
31296+ # hardcode_minus_L: Not really in the search PATH,
31297+ # but as the default location of the library.
31298+ hardcode_minus_L_GCJ=yes
31299+ export_dynamic_flag_spec_GCJ='${wl}-E'
31300+ ;;
31301+
31302+ hpux10* | hpux11*)
31303+ if test "$GCC" = yes -a "$with_gnu_ld" = no; then
31304+ case "$host_cpu" in
31305+ hppa*64*|ia64*)
31306+ archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
31307+ ;;
31308+ *)
31309+ archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
31310+ ;;
31311+ esac
31312+ else
31313+ case "$host_cpu" in
31314+ hppa*64*|ia64*)
31315+ archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
31316+ ;;
31317+ *)
31318+ archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
31319+ ;;
31320+ esac
31321+ fi
31322+ if test "$with_gnu_ld" = no; then
31323+ case "$host_cpu" in
31324+ hppa*64*)
31325+ hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
31326+ hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
31327+ hardcode_libdir_separator_GCJ=:
31328+ hardcode_direct_GCJ=no
31329+ hardcode_shlibpath_var_GCJ=no
31330+ ;;
31331+ ia64*)
31332+ hardcode_libdir_flag_spec_GCJ='-L$libdir'
31333+ hardcode_direct_GCJ=no
31334+ hardcode_shlibpath_var_GCJ=no
31335+
31336+ # hardcode_minus_L: Not really in the search PATH,
31337+ # but as the default location of the library.
31338+ hardcode_minus_L_GCJ=yes
31339+ ;;
31340+ *)
31341+ hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
31342+ hardcode_libdir_separator_GCJ=:
31343+ hardcode_direct_GCJ=yes
31344+ export_dynamic_flag_spec_GCJ='${wl}-E'
31345+
31346+ # hardcode_minus_L: Not really in the search PATH,
31347+ # but as the default location of the library.
31348+ hardcode_minus_L_GCJ=yes
31349+ ;;
31350+ esac
31351+ fi
31352+ ;;
31353+
31354+ irix5* | irix6* | nonstopux*)
31355+ if test "$GCC" = yes; then
31356+ archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
31357+ else
31358+ archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
31359+ hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
31360+ fi
31361+ hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
31362+ hardcode_libdir_separator_GCJ=:
31363+ link_all_deplibs_GCJ=yes
31364+ ;;
31365+
31366+ netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
31367+ if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
31368+ archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
31369+ else
31370+ archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
31371+ fi
31372+ hardcode_libdir_flag_spec_GCJ='-R$libdir'
31373+ hardcode_direct_GCJ=yes
31374+ hardcode_shlibpath_var_GCJ=no
31375+ ;;
31376+
31377+ newsos6)
31378+ archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
31379+ hardcode_direct_GCJ=yes
31380+ hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
31381+ hardcode_libdir_separator_GCJ=:
31382+ hardcode_shlibpath_var_GCJ=no
31383+ ;;
31384+
31385+ openbsd*)
31386+ hardcode_direct_GCJ=yes
31387+ hardcode_shlibpath_var_GCJ=no
31388+ if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
31389+ archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
31390+ hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
31391+ export_dynamic_flag_spec_GCJ='${wl}-E'
31392+ else
31393+ case $host_os in
31394+ openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
31395+ archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
31396+ hardcode_libdir_flag_spec_GCJ='-R$libdir'
31397+ ;;
31398+ *)
31399+ archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
31400+ hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
31401+ ;;
31402+ esac
31403+ fi
31404+ ;;
31405+
31406+ os2*)
31407+ hardcode_libdir_flag_spec_GCJ='-L$libdir'
31408+ hardcode_minus_L_GCJ=yes
31409+ allow_undefined_flag_GCJ=unsupported
31410+ archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
31411+ old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
31412+ ;;
31413+
31414+ osf3*)
31415+ if test "$GCC" = yes; then
31416+ allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
31417+ archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
31418+ else
31419+ allow_undefined_flag_GCJ=' -expect_unresolved \*'
31420+ archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
31421+ fi
31422+ hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
31423+ hardcode_libdir_separator_GCJ=:
31424+ ;;
31425+
31426+ osf4* | osf5*) # as osf3* with the addition of -msym flag
31427+ if test "$GCC" = yes; then
31428+ allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
31429+ archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
31430+ hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
31431+ else
31432+ allow_undefined_flag_GCJ=' -expect_unresolved \*'
31433+ archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
31434+ archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
31435+ $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
31436+
31437+ # Both c and cxx compiler support -rpath directly
31438+ hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
31439+ fi
31440+ hardcode_libdir_separator_GCJ=:
31441+ ;;
31442+
31443+ sco3.2v5*)
31444+ archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
31445+ hardcode_shlibpath_var_GCJ=no
31446+ export_dynamic_flag_spec_GCJ='${wl}-Bexport'
31447+ runpath_var=LD_RUN_PATH
31448+ hardcode_runpath_var=yes
31449+ ;;
31450+
31451+ solaris*)
31452+ no_undefined_flag_GCJ=' -z text'
31453+ if test "$GCC" = yes; then
31454+ archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
31455+ archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
31456+ $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
31457+ else
31458+ archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
31459+ archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
31460+ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
31461+ fi
31462+ hardcode_libdir_flag_spec_GCJ='-R$libdir'
31463+ hardcode_shlibpath_var_GCJ=no
31464+ case $host_os in
31465+ solaris2.[0-5] | solaris2.[0-5].*) ;;
31466+ *) # Supported since Solaris 2.6 (maybe 2.5.1?)
31467+ whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
31468+ esac
31469+ link_all_deplibs_GCJ=yes
31470+ ;;
31471+
31472+ sunos4*)
31473+ if test "x$host_vendor" = xsequent; then
31474+ # Use $CC to link under sequent, because it throws in some extra .o
31475+ # files that make .init and .fini sections work.
31476+ archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
31477+ else
31478+ archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
31479+ fi
31480+ hardcode_libdir_flag_spec_GCJ='-L$libdir'
31481+ hardcode_direct_GCJ=yes
31482+ hardcode_minus_L_GCJ=yes
31483+ hardcode_shlibpath_var_GCJ=no
31484+ ;;
31485+
31486+ sysv4)
31487+ case $host_vendor in
31488+ sni)
31489+ archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
31490+ hardcode_direct_GCJ=yes # is this really true???
31491+ ;;
31492+ siemens)
31493+ ## LD is ld it makes a PLAMLIB
31494+ ## CC just makes a GrossModule.
31495+ archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
31496+ reload_cmds_GCJ='$CC -r -o $output$reload_objs'
31497+ hardcode_direct_GCJ=no
31498+ ;;
31499+ motorola)
31500+ archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
31501+ hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
31502+ ;;
31503+ esac
31504+ runpath_var='LD_RUN_PATH'
31505+ hardcode_shlibpath_var_GCJ=no
31506+ ;;
31507+
31508+ sysv4.3*)
31509+ archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
31510+ hardcode_shlibpath_var_GCJ=no
31511+ export_dynamic_flag_spec_GCJ='-Bexport'
31512+ ;;
31513+
31514+ sysv4*MP*)
31515+ if test -d /usr/nec; then
31516+ archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
31517+ hardcode_shlibpath_var_GCJ=no
31518+ runpath_var=LD_RUN_PATH
31519+ hardcode_runpath_var=yes
31520+ ld_shlibs_GCJ=yes
31521+ fi
31522+ ;;
31523+
31524+ sysv4.2uw2*)
31525+ archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
31526+ hardcode_direct_GCJ=yes
31527+ hardcode_minus_L_GCJ=no
31528+ hardcode_shlibpath_var_GCJ=no
31529+ hardcode_runpath_var=yes
31530+ runpath_var=LD_RUN_PATH
31531+ ;;
31532+
31533+ sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
31534+ no_undefined_flag_GCJ='${wl}-z ${wl}text'
31535+ if test "$GCC" = yes; then
31536+ archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
31537+ else
31538+ archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
31539+ fi
31540+ runpath_var='LD_RUN_PATH'
31541+ hardcode_shlibpath_var_GCJ=no
31542+ ;;
31543+
31544+ sysv5*)
31545+ no_undefined_flag_GCJ=' -z text'
31546+ # $CC -shared without GNU ld will not create a library from C++
31547+ # object files and a static libstdc++, better avoid it by now
31548+ archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
31549+ archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
31550+ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
31551+ hardcode_libdir_flag_spec_GCJ=
31552+ hardcode_shlibpath_var_GCJ=no
31553+ runpath_var='LD_RUN_PATH'
31554+ ;;
31555+
31556+ uts4*)
31557+ archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
31558+ hardcode_libdir_flag_spec_GCJ='-L$libdir'
31559+ hardcode_shlibpath_var_GCJ=no
31560+ ;;
31561+
31562+ *)
31563+ ld_shlibs_GCJ=no
31564+ ;;
31565+ esac
31566+ fi
31567+
31568+echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
31569+echo "${ECHO_T}$ld_shlibs_GCJ" >&6
31570+test "$ld_shlibs_GCJ" = no && can_build_shared=no
31571+
31572+variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
31573+if test "$GCC" = yes; then
31574+ variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
31575+fi
31576+
31577+#
31578+# Do we need to explicitly link libc?
31579+#
31580+case "x$archive_cmds_need_lc_GCJ" in
31581+x|xyes)
31582+ # Assume -lc should be added
31583+ archive_cmds_need_lc_GCJ=yes
31584+
31585+ if test "$enable_shared" = yes && test "$GCC" = yes; then
31586+ case $archive_cmds_GCJ in
31587+ *'~'*)
31588+ # FIXME: we may have to deal with multi-command sequences.
31589+ ;;
31590+ '$CC '*)
31591+ # Test whether the compiler implicitly links with -lc since on some
31592+ # systems, -lgcc has to come before -lc. If gcc already passes -lc
31593+ # to ld, don't add -lc before -lgcc.
31594+ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
31595+echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
31596+ $rm conftest*
31597+ printf "$lt_simple_compile_test_code" > conftest.$ac_ext
31598+
31599+ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31600+ (eval $ac_compile) 2>&5
31601+ ac_status=$?
31602+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
31603+ (exit $ac_status); } 2>conftest.err; then
31604+ soname=conftest
31605+ lib=conftest
31606+ libobjs=conftest.$ac_objext
31607+ deplibs=
31608+ wl=$lt_prog_compiler_wl_GCJ
31609+ compiler_flags=-v
31610+ linker_flags=-v
31611+ verstring=
31612+ output_objdir=.
31613+ libname=conftest
31614+ lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
31615+ allow_undefined_flag_GCJ=
31616+ if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
31617+ (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
31618+ ac_status=$?
31619+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
31620+ (exit $ac_status); }
31621+ then
31622+ archive_cmds_need_lc_GCJ=no
31623+ else
31624+ archive_cmds_need_lc_GCJ=yes
31625+ fi
31626+ allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
31627+ else
31628+ cat conftest.err 1>&5
31629+ fi
31630+ $rm conftest*
31631+ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
31632+echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
31633+ ;;
31634+ esac
31635+ fi
31636+ ;;
31637+esac
31638+
31639+echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
31640+echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
31641+library_names_spec=
31642+libname_spec='lib$name'
31643+soname_spec=
31644+shrext_cmds=".so"
31645+postinstall_cmds=
31646+postuninstall_cmds=
31647+finish_cmds=
31648+finish_eval=
31649+shlibpath_var=
31650+shlibpath_overrides_runpath=unknown
31651+version_type=none
31652+dynamic_linker="$host_os ld.so"
31653+sys_lib_dlsearch_path_spec="/lib /usr/lib"
31654+if test "$GCC" = yes; then
31655+ sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
31656+ if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
31657+ # if the path contains ";" then we assume it to be the separator
31658+ # otherwise default to the standard path separator (i.e. ":") - it is
31659+ # assumed that no part of a normal pathname contains ";" but that should
31660+ # okay in the real world where ";" in dirpaths is itself problematic.
31661+ sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
31662+ else
31663+ sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
31664+ fi
31665+else
31666+ sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
31667+fi
31668+need_lib_prefix=unknown
31669+hardcode_into_libs=no
31670+
31671+# when you set need_version to no, make sure it does not cause -set_version
31672+# flags to be left without arguments
31673+need_version=unknown
31674+
31675+case $host_os in
31676+aix3*)
31677+ version_type=linux
31678+ library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
31679+ shlibpath_var=LIBPATH
31680+
31681+ # AIX 3 has no versioning support, so we append a major version to the name.
31682+ soname_spec='${libname}${release}${shared_ext}$major'
31683+ ;;
31684+
31685+aix4* | aix5*)
31686+ version_type=linux
31687+ need_lib_prefix=no
31688+ need_version=no
31689+ hardcode_into_libs=yes
31690+ if test "$host_cpu" = ia64; then
31691+ # AIX 5 supports IA64
31692+ library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
31693+ shlibpath_var=LD_LIBRARY_PATH
31694+ else
31695+ # With GCC up to 2.95.x, collect2 would create an import file
31696+ # for dependence libraries. The import file would start with
31697+ # the line `#! .'. This would cause the generated library to
31698+ # depend on `.', always an invalid library. This was fixed in
31699+ # development snapshots of GCC prior to 3.0.
31700+ case $host_os in
31701+ aix4 | aix4.[01] | aix4.[01].*)
31702+ if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
31703+ echo ' yes '
31704+ echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
31705+ :
31706+ else
31707+ can_build_shared=no
31708+ fi
31709+ ;;
31710+ esac
31711+ # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
31712+ # soname into executable. Probably we can add versioning support to
31713+ # collect2, so additional links can be useful in future.
31714+ if test "$aix_use_runtimelinking" = yes; then
31715+ # If using run time linking (on AIX 4.2 or later) use lib<name>.so
31716+ # instead of lib<name>.a to let people know that these are not
31717+ # typical AIX shared libraries.
31718+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
31719+ else
31720+ # We preserve .a as extension for shared libraries through AIX4.2
31721+ # and later when we are not doing run time linking.
31722+ library_names_spec='${libname}${release}.a $libname.a'
31723+ soname_spec='${libname}${release}${shared_ext}$major'
31724+ fi
31725+ shlibpath_var=LIBPATH
31726+ fi
31727+ ;;
31728+
31729+amigaos*)
31730+ library_names_spec='$libname.ixlibrary $libname.a'
31731+ # Create ${libname}_ixlibrary.a entries in /sys/libs.
31732+ 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'
31733+ ;;
31734+
31735+beos*)
31736+ library_names_spec='${libname}${shared_ext}'
31737+ dynamic_linker="$host_os ld.so"
31738+ shlibpath_var=LIBRARY_PATH
31739+ ;;
31740+
31741+bsdi4*)
31742+ version_type=linux
31743+ need_version=no
31744+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
31745+ soname_spec='${libname}${release}${shared_ext}$major'
31746+ finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
31747+ shlibpath_var=LD_LIBRARY_PATH
31748+ sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
31749+ sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
31750+ # the default ld.so.conf also contains /usr/contrib/lib and
31751+ # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
31752+ # libtool to hard-code these into programs
31753+ ;;
31754+
31755+cygwin* | mingw* | pw32*)
31756+ version_type=windows
31757+ shrext_cmds=".dll"
31758+ need_version=no
31759+ need_lib_prefix=no
31760+
31761+ case $GCC,$host_os in
31762+ yes,cygwin* | yes,mingw* | yes,pw32*)
31763+ library_names_spec='$libname.dll.a'
31764+ # DLL is installed to $(libdir)/../bin by postinstall_cmds
31765+ postinstall_cmds='base_file=`basename \${file}`~
31766+ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
31767+ dldir=$destdir/`dirname \$dlpath`~
31768+ test -d \$dldir || mkdir -p \$dldir~
31769+ $install_prog $dir/$dlname \$dldir/$dlname'
31770+ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
31771+ dlpath=$dir/\$dldll~
31772+ $rm \$dlpath'
31773+ shlibpath_overrides_runpath=yes
31774+
31775+ case $host_os in
31776+ cygwin*)
31777+ # Cygwin DLLs use 'cyg' prefix rather than 'lib'
31778+ soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
31779+ sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
31780+ ;;
31781+ mingw*)
31782+ # MinGW DLLs use traditional 'lib' prefix
31783+ soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
31784+ sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
31785+ if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
31786+ # It is most probably a Windows format PATH printed by
31787+ # mingw gcc, but we are running on Cygwin. Gcc prints its search
31788+ # path with ; separators, and with drive letters. We can handle the
31789+ # drive letters (cygwin fileutils understands them), so leave them,
31790+ # especially as we might pass files found there to a mingw objdump,
31791+ # which wouldn't understand a cygwinified path. Ahh.
31792+ sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
31793+ else
31794+ sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
31795+ fi
31796+ ;;
31797+ pw32*)
31798+ # pw32 DLLs use 'pw' prefix rather than 'lib'
31799+ library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
31800+ ;;
31801+ esac
31802+ ;;
31803+
31804+ *)
31805+ library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
31806+ ;;
31807+ esac
31808+ dynamic_linker='Win32 ld.exe'
31809+ # FIXME: first we should search . and the directory the executable is in
31810+ shlibpath_var=PATH
31811+ ;;
31812+
31813+darwin* | rhapsody*)
31814+ dynamic_linker="$host_os dyld"
31815+ version_type=darwin
31816+ need_lib_prefix=no
31817+ need_version=no
31818+ library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
31819+ soname_spec='${libname}${release}${major}$shared_ext'
31820+ shlibpath_overrides_runpath=yes
31821+ shlibpath_var=DYLD_LIBRARY_PATH
31822+ shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
31823+ # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
31824+ if test "$GCC" = yes; then
31825+ sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
31826+ else
31827+ sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
31828+ fi
31829+ sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
31830+ ;;
31831+
31832+dgux*)
31833+ version_type=linux
31834+ need_lib_prefix=no
31835+ need_version=no
31836+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
31837+ soname_spec='${libname}${release}${shared_ext}$major'
31838+ shlibpath_var=LD_LIBRARY_PATH
31839+ ;;
31840+
31841+freebsd1*)
31842+ dynamic_linker=no
31843+ ;;
31844+
31845+kfreebsd*-gnu)
31846+ version_type=linux
31847+ need_lib_prefix=no
31848+ need_version=no
31849+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
31850+ soname_spec='${libname}${release}${shared_ext}$major'
31851+ shlibpath_var=LD_LIBRARY_PATH
31852+ shlibpath_overrides_runpath=no
31853+ hardcode_into_libs=yes
31854+ dynamic_linker='GNU ld.so'
31855+ ;;
31856+
31857+freebsd*)
31858+ objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
31859+ version_type=freebsd-$objformat
31860+ case $version_type in
31861+ freebsd-elf*)
31862+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
31863+ need_version=no
31864+ need_lib_prefix=no
31865+ ;;
31866+ freebsd-*)
31867+ library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
31868+ need_version=yes
31869+ ;;
31870+ esac
31871+ shlibpath_var=LD_LIBRARY_PATH
31872+ case $host_os in
31873+ freebsd2*)
31874+ shlibpath_overrides_runpath=yes
31875+ ;;
31876+ freebsd3.01* | freebsdelf3.01*)
31877+ shlibpath_overrides_runpath=yes
31878+ hardcode_into_libs=yes
31879+ ;;
31880+ *) # from 3.2 on
31881+ shlibpath_overrides_runpath=no
31882+ hardcode_into_libs=yes
31883+ ;;
31884+ esac
31885+ ;;
31886+
31887+gnu*)
31888+ version_type=linux
31889+ need_lib_prefix=no
31890+ need_version=no
31891+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
31892+ soname_spec='${libname}${release}${shared_ext}$major'
31893+ shlibpath_var=LD_LIBRARY_PATH
31894+ hardcode_into_libs=yes
31895+ ;;
31896+
31897+hpux9* | hpux10* | hpux11*)
31898+ # Give a soname corresponding to the major version so that dld.sl refuses to
31899+ # link against other versions.
31900+ version_type=sunos
31901+ need_lib_prefix=no
31902+ need_version=no
31903+ case "$host_cpu" in
31904+ ia64*)
31905+ shrext_cmds='.so'
31906+ hardcode_into_libs=yes
31907+ dynamic_linker="$host_os dld.so"
31908+ shlibpath_var=LD_LIBRARY_PATH
31909+ shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
31910+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
31911+ soname_spec='${libname}${release}${shared_ext}$major'
31912+ if test "X$HPUX_IA64_MODE" = X32; then
31913+ sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
31914+ else
31915+ sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
31916+ fi
31917+ sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
31918+ ;;
31919+ hppa*64*)
31920+ shrext_cmds='.sl'
31921+ hardcode_into_libs=yes
31922+ dynamic_linker="$host_os dld.sl"
31923+ shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
31924+ shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
31925+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
31926+ soname_spec='${libname}${release}${shared_ext}$major'
31927+ sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
31928+ sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
31929+ ;;
31930+ *)
31931+ shrext_cmds='.sl'
31932+ dynamic_linker="$host_os dld.sl"
31933+ shlibpath_var=SHLIB_PATH
31934+ shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
31935+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
31936+ soname_spec='${libname}${release}${shared_ext}$major'
31937+ ;;
31938+ esac
31939+ # HP-UX runs *really* slowly unless shared libraries are mode 555.
31940+ postinstall_cmds='chmod 555 $lib'
31941+ ;;
31942+
31943+irix5* | irix6* | nonstopux*)
31944+ case $host_os in
31945+ nonstopux*) version_type=nonstopux ;;
31946+ *)
31947+ if test "$lt_cv_prog_gnu_ld" = yes; then
31948+ version_type=linux
31949+ else
31950+ version_type=irix
31951+ fi ;;
31952+ esac
31953+ need_lib_prefix=no
31954+ need_version=no
31955+ soname_spec='${libname}${release}${shared_ext}$major'
31956+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
31957+ case $host_os in
31958+ irix5* | nonstopux*)
31959+ libsuff= shlibsuff=
31960+ ;;
31961+ *)
31962+ case $LD in # libtool.m4 will add one of these switches to LD
31963+ *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
31964+ libsuff= shlibsuff= libmagic=32-bit;;
31965+ *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
31966+ libsuff=32 shlibsuff=N32 libmagic=N32;;
31967+ *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
31968+ libsuff=64 shlibsuff=64 libmagic=64-bit;;
31969+ *) libsuff= shlibsuff= libmagic=never-match;;
31970+ esac
31971+ ;;
31972+ esac
31973+ shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
31974+ shlibpath_overrides_runpath=no
31975+ sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
31976+ sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
31977+ hardcode_into_libs=yes
31978+ ;;
31979+
31980+# No shared lib support for Linux oldld, aout, or coff.
31981+linux*oldld* | linux*aout* | linux*coff*)
31982+ dynamic_linker=no
31983+ ;;
31984+
31985+# This must be Linux ELF.
31986+linux*)
31987+ version_type=linux
31988+ need_lib_prefix=no
31989+ need_version=no
31990+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
31991+ soname_spec='${libname}${release}${shared_ext}$major'
31992+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
31993+ shlibpath_var=LD_LIBRARY_PATH
31994+ shlibpath_overrides_runpath=no
31995+ # This implies no fast_install, which is unacceptable.
31996+ # Some rework will be needed to allow for fast_install
31997+ # before this can be enabled.
31998+ hardcode_into_libs=yes
31999+
32000+ # Append ld.so.conf contents to the search path
32001+ if test -f /etc/ld.so.conf; then
32002+ lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
32003+ sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
32004+ fi
32005+
32006+ # We used to test for /lib/ld.so.1 and disable shared libraries on
32007+ # powerpc, because MkLinux only supported shared libraries with the
32008+ # GNU dynamic linker. Since this was broken with cross compilers,
32009+ # most powerpc-linux boxes support dynamic linking these days and
32010+ # people can always --disable-shared, the test was removed, and we
32011+ # assume the GNU/Linux dynamic linker is in use.
32012+ dynamic_linker='GNU/Linux ld.so'
32013+ ;;
32014+
32015+netbsdelf*-gnu)
32016+ version_type=linux
32017+ need_lib_prefix=no
32018+ need_version=no
32019+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
32020+ soname_spec='${libname}${release}${shared_ext}$major'
32021+ shlibpath_var=LD_LIBRARY_PATH
32022+ shlibpath_overrides_runpath=no
32023+ hardcode_into_libs=yes
32024+ dynamic_linker='NetBSD ld.elf_so'
32025+ ;;
32026+
32027+knetbsd*-gnu)
32028+ version_type=linux
32029+ need_lib_prefix=no
32030+ need_version=no
32031+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
32032+ soname_spec='${libname}${release}${shared_ext}$major'
32033+ shlibpath_var=LD_LIBRARY_PATH
32034+ shlibpath_overrides_runpath=no
32035+ hardcode_into_libs=yes
32036+ dynamic_linker='GNU ld.so'
32037+ ;;
32038+
32039+netbsd*)
32040+ version_type=sunos
32041+ need_lib_prefix=no
32042+ need_version=no
32043+ if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
32044+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
32045+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
32046+ dynamic_linker='NetBSD (a.out) ld.so'
32047+ else
32048+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
32049+ soname_spec='${libname}${release}${shared_ext}$major'
32050+ dynamic_linker='NetBSD ld.elf_so'
32051+ fi
32052+ shlibpath_var=LD_LIBRARY_PATH
32053+ shlibpath_overrides_runpath=yes
32054+ hardcode_into_libs=yes
32055+ ;;
32056+
32057+newsos6)
32058+ version_type=linux
32059+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
32060+ shlibpath_var=LD_LIBRARY_PATH
32061+ shlibpath_overrides_runpath=yes
32062+ ;;
32063+
32064+nto-qnx*)
32065+ version_type=linux
32066+ need_lib_prefix=no
32067+ need_version=no
32068+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
32069+ soname_spec='${libname}${release}${shared_ext}$major'
32070+ shlibpath_var=LD_LIBRARY_PATH
32071+ shlibpath_overrides_runpath=yes
32072+ ;;
32073+
32074+openbsd*)
32075+ version_type=sunos
32076+ need_lib_prefix=no
32077+ need_version=yes
32078+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
32079+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
32080+ shlibpath_var=LD_LIBRARY_PATH
32081+ if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
32082+ case $host_os in
32083+ openbsd2.[89] | openbsd2.[89].*)
32084+ shlibpath_overrides_runpath=no
32085+ ;;
32086+ *)
32087+ shlibpath_overrides_runpath=yes
32088+ ;;
32089+ esac
32090+ else
32091+ shlibpath_overrides_runpath=yes
32092+ fi
32093+ ;;
32094+
32095+os2*)
32096+ libname_spec='$name'
32097+ shrext_cmds=".dll"
32098+ need_lib_prefix=no
32099+ library_names_spec='$libname${shared_ext} $libname.a'
32100+ dynamic_linker='OS/2 ld.exe'
32101+ shlibpath_var=LIBPATH
32102+ ;;
32103+
32104+osf3* | osf4* | osf5*)
32105+ version_type=osf
32106+ need_lib_prefix=no
32107+ need_version=no
32108+ soname_spec='${libname}${release}${shared_ext}$major'
32109+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
32110+ shlibpath_var=LD_LIBRARY_PATH
32111+ sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
32112+ sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
32113+ ;;
32114+
32115+sco3.2v5*)
32116+ version_type=osf
32117+ soname_spec='${libname}${release}${shared_ext}$major'
32118+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
32119+ shlibpath_var=LD_LIBRARY_PATH
32120+ ;;
32121+
32122+solaris*)
32123+ version_type=linux
32124+ need_lib_prefix=no
32125+ need_version=no
32126+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
32127+ soname_spec='${libname}${release}${shared_ext}$major'
32128+ shlibpath_var=LD_LIBRARY_PATH
32129+ shlibpath_overrides_runpath=yes
32130+ hardcode_into_libs=yes
32131+ # ldd complains unless libraries are executable
32132+ postinstall_cmds='chmod +x $lib'
32133+ ;;
32134+
32135+sunos4*)
32136+ version_type=sunos
32137+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
32138+ finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
32139+ shlibpath_var=LD_LIBRARY_PATH
32140+ shlibpath_overrides_runpath=yes
32141+ if test "$with_gnu_ld" = yes; then
32142+ need_lib_prefix=no
32143+ fi
32144+ need_version=yes
32145+ ;;
32146+
32147+sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
32148+ version_type=linux
32149+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
32150+ soname_spec='${libname}${release}${shared_ext}$major'
32151+ shlibpath_var=LD_LIBRARY_PATH
32152+ case $host_vendor in
32153+ sni)
32154+ shlibpath_overrides_runpath=no
32155+ need_lib_prefix=no
32156+ export_dynamic_flag_spec='${wl}-Blargedynsym'
32157+ runpath_var=LD_RUN_PATH
32158+ ;;
32159+ siemens)
32160+ need_lib_prefix=no
32161+ ;;
32162+ motorola)
32163+ need_lib_prefix=no
32164+ need_version=no
32165+ shlibpath_overrides_runpath=no
32166+ sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
32167+ ;;
32168+ esac
32169+ ;;
32170+
32171+sysv4*MP*)
32172+ if test -d /usr/nec ;then
32173+ version_type=linux
32174+ library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
32175+ soname_spec='$libname${shared_ext}.$major'
32176+ shlibpath_var=LD_LIBRARY_PATH
32177+ fi
32178+ ;;
32179+
32180+uts4*)
32181+ version_type=linux
32182+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
32183+ soname_spec='${libname}${release}${shared_ext}$major'
32184+ shlibpath_var=LD_LIBRARY_PATH
32185+ ;;
32186+
32187+*)
32188+ dynamic_linker=no
32189+ ;;
32190+esac
32191+echo "$as_me:$LINENO: result: $dynamic_linker" >&5
32192+echo "${ECHO_T}$dynamic_linker" >&6
32193+test "$dynamic_linker" = no && can_build_shared=no
32194+
32195+echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
32196+echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
32197+hardcode_action_GCJ=
32198+if test -n "$hardcode_libdir_flag_spec_GCJ" || \
32199+ test -n "$runpath_var GCJ" || \
32200+ test "X$hardcode_automatic_GCJ"="Xyes" ; then
32201+
32202+ # We can hardcode non-existant directories.
32203+ if test "$hardcode_direct_GCJ" != no &&
32204+ # If the only mechanism to avoid hardcoding is shlibpath_var, we
32205+ # have to relink, otherwise we might link with an installed library
32206+ # when we should be linking with a yet-to-be-installed one
32207+ ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
32208+ test "$hardcode_minus_L_GCJ" != no; then
32209+ # Linking always hardcodes the temporary library directory.
32210+ hardcode_action_GCJ=relink
32211+ else
32212+ # We can link without hardcoding, and we can hardcode nonexisting dirs.
32213+ hardcode_action_GCJ=immediate
32214+ fi
32215+else
32216+ # We cannot hardcode anything, or else we can only hardcode existing
32217+ # directories.
32218+ hardcode_action_GCJ=unsupported
32219+fi
32220+echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
32221+echo "${ECHO_T}$hardcode_action_GCJ" >&6
32222+
32223+if test "$hardcode_action_GCJ" = relink; then
32224+ # Fast installation is not supported
32225+ enable_fast_install=no
32226+elif test "$shlibpath_overrides_runpath" = yes ||
32227+ test "$enable_shared" = no; then
32228+ # Fast installation is not necessary
32229+ enable_fast_install=needless
32230+fi
32231+
32232+striplib=
32233+old_striplib=
32234+echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
32235+echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
32236+if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
32237+ test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
32238+ test -z "$striplib" && striplib="$STRIP --strip-unneeded"
32239+ echo "$as_me:$LINENO: result: yes" >&5
32240+echo "${ECHO_T}yes" >&6
32241+else
32242+# FIXME - insert some real tests, host_os isn't really good enough
32243+ case $host_os in
32244+ darwin*)
32245+ if test -n "$STRIP" ; then
32246+ striplib="$STRIP -x"
32247+ echo "$as_me:$LINENO: result: yes" >&5
32248+echo "${ECHO_T}yes" >&6
32249+ else
32250+ echo "$as_me:$LINENO: result: no" >&5
32251+echo "${ECHO_T}no" >&6
32252+fi
32253+ ;;
32254+ *)
32255+ echo "$as_me:$LINENO: result: no" >&5
32256+echo "${ECHO_T}no" >&6
32257+ ;;
32258+ esac
32259+fi
32260+
32261+if test "x$enable_dlopen" != xyes; then
32262+ enable_dlopen=unknown
32263+ enable_dlopen_self=unknown
32264+ enable_dlopen_self_static=unknown
32265+else
32266+ lt_cv_dlopen=no
32267+ lt_cv_dlopen_libs=
32268+
32269+ case $host_os in
32270+ beos*)
32271+ lt_cv_dlopen="load_add_on"
32272+ lt_cv_dlopen_libs=
32273+ lt_cv_dlopen_self=yes
32274+ ;;
32275+
32276+ mingw* | pw32*)
32277+ lt_cv_dlopen="LoadLibrary"
32278+ lt_cv_dlopen_libs=
32279+ ;;
32280+
32281+ cygwin*)
32282+ lt_cv_dlopen="dlopen"
32283+ lt_cv_dlopen_libs=
32284+ ;;
32285+
32286+ darwin*)
32287+ # if libdl is installed we need to link against it
32288+ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
32289+echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
32290+if test "${ac_cv_lib_dl_dlopen+set}" = set; then
32291+ echo $ECHO_N "(cached) $ECHO_C" >&6
32292+else
32293+ ac_check_lib_save_LIBS=$LIBS
32294+LIBS="-ldl $LIBS"
32295+cat >conftest.$ac_ext <<_ACEOF
32296+/* confdefs.h. */
32297+_ACEOF
32298+cat confdefs.h >>conftest.$ac_ext
32299+cat >>conftest.$ac_ext <<_ACEOF
32300+/* end confdefs.h. */
32301+
32302+/* Override any gcc2 internal prototype to avoid an error. */
32303+#ifdef __cplusplus
32304+extern "C"
32305+#endif
32306+/* We use char because int might match the return type of a gcc2
32307+ builtin and then its argument prototype would still apply. */
32308+char dlopen ();
32309+int
32310+main ()
32311+{
32312+dlopen ();
32313+ ;
32314+ return 0;
32315+}
32316+_ACEOF
32317+rm -f conftest.$ac_objext conftest$ac_exeext
32318+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32319+ (eval $ac_link) 2>conftest.er1
32320+ ac_status=$?
32321+ grep -v '^ *+' conftest.er1 >conftest.err
32322+ rm -f conftest.er1
32323+ cat conftest.err >&5
32324+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
32325+ (exit $ac_status); } &&
32326+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32327+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32328+ (eval $ac_try) 2>&5
32329+ ac_status=$?
32330+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
32331+ (exit $ac_status); }; } &&
32332+ { ac_try='test -s conftest$ac_exeext'
32333+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32334+ (eval $ac_try) 2>&5
32335+ ac_status=$?
32336+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
32337+ (exit $ac_status); }; }; then
32338+ ac_cv_lib_dl_dlopen=yes
32339+else
32340+ echo "$as_me: failed program was:" >&5
32341+sed 's/^/| /' conftest.$ac_ext >&5
32342+
32343+ac_cv_lib_dl_dlopen=no
32344+fi
32345+rm -f conftest.err conftest.$ac_objext \
32346+ conftest$ac_exeext conftest.$ac_ext
32347+LIBS=$ac_check_lib_save_LIBS
32348+fi
32349+echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
32350+echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
32351+if test $ac_cv_lib_dl_dlopen = yes; then
32352+ lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
32353+else
32354+
32355+ lt_cv_dlopen="dyld"
32356+ lt_cv_dlopen_libs=
32357+ lt_cv_dlopen_self=yes
32358+
32359+fi
32360+
32361+ ;;
32362+
32363+ *)
32364+ echo "$as_me:$LINENO: checking for shl_load" >&5
32365+echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
32366+if test "${ac_cv_func_shl_load+set}" = set; then
32367+ echo $ECHO_N "(cached) $ECHO_C" >&6
32368+else
32369+ cat >conftest.$ac_ext <<_ACEOF
32370+/* confdefs.h. */
32371+_ACEOF
32372+cat confdefs.h >>conftest.$ac_ext
32373+cat >>conftest.$ac_ext <<_ACEOF
32374+/* end confdefs.h. */
32375+/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
32376+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
32377+#define shl_load innocuous_shl_load
32378+
32379+/* System header to define __stub macros and hopefully few prototypes,
32380+ which can conflict with char shl_load (); below.
32381+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32382+ <limits.h> exists even on freestanding compilers. */
32383+
32384+#ifdef __STDC__
32385+# include <limits.h>
32386+#else
32387+# include <assert.h>
32388+#endif
32389+
32390+#undef shl_load
32391+
32392+/* Override any gcc2 internal prototype to avoid an error. */
32393+#ifdef __cplusplus
32394+extern "C"
32395+{
32396+#endif
32397+/* We use char because int might match the return type of a gcc2
32398+ builtin and then its argument prototype would still apply. */
32399+char shl_load ();
32400+/* The GNU C library defines this for functions which it implements
32401+ to always fail with ENOSYS. Some functions are actually named
32402+ something starting with __ and the normal name is an alias. */
32403+#if defined (__stub_shl_load) || defined (__stub___shl_load)
32404+choke me
32405+#else
32406+char (*f) () = shl_load;
32407+#endif
32408+#ifdef __cplusplus
32409+}
32410+#endif
32411+
32412+int
32413+main ()
32414+{
32415+return f != shl_load;
32416+ ;
32417+ return 0;
32418+}
32419+_ACEOF
32420+rm -f conftest.$ac_objext conftest$ac_exeext
32421+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32422+ (eval $ac_link) 2>conftest.er1
32423+ ac_status=$?
32424+ grep -v '^ *+' conftest.er1 >conftest.err
32425+ rm -f conftest.er1
32426+ cat conftest.err >&5
32427+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
32428+ (exit $ac_status); } &&
32429+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32430+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32431+ (eval $ac_try) 2>&5
32432+ ac_status=$?
32433+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
32434+ (exit $ac_status); }; } &&
32435+ { ac_try='test -s conftest$ac_exeext'
32436+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32437+ (eval $ac_try) 2>&5
32438+ ac_status=$?
32439+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
32440+ (exit $ac_status); }; }; then
32441+ ac_cv_func_shl_load=yes
32442+else
32443+ echo "$as_me: failed program was:" >&5
32444+sed 's/^/| /' conftest.$ac_ext >&5
32445+
32446+ac_cv_func_shl_load=no
32447+fi
32448+rm -f conftest.err conftest.$ac_objext \
32449+ conftest$ac_exeext conftest.$ac_ext
32450+fi
32451+echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
32452+echo "${ECHO_T}$ac_cv_func_shl_load" >&6
32453+if test $ac_cv_func_shl_load = yes; then
32454+ lt_cv_dlopen="shl_load"
32455+else
32456+ echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
32457+echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
32458+if test "${ac_cv_lib_dld_shl_load+set}" = set; then
32459+ echo $ECHO_N "(cached) $ECHO_C" >&6
32460+else
32461+ ac_check_lib_save_LIBS=$LIBS
32462+LIBS="-ldld $LIBS"
32463+cat >conftest.$ac_ext <<_ACEOF
32464+/* confdefs.h. */
32465+_ACEOF
32466+cat confdefs.h >>conftest.$ac_ext
32467+cat >>conftest.$ac_ext <<_ACEOF
32468+/* end confdefs.h. */
32469+
32470+/* Override any gcc2 internal prototype to avoid an error. */
32471+#ifdef __cplusplus
32472+extern "C"
32473+#endif
32474+/* We use char because int might match the return type of a gcc2
32475+ builtin and then its argument prototype would still apply. */
32476+char shl_load ();
32477+int
32478+main ()
32479+{
32480+shl_load ();
32481+ ;
32482+ return 0;
32483+}
32484+_ACEOF
32485+rm -f conftest.$ac_objext conftest$ac_exeext
32486+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32487+ (eval $ac_link) 2>conftest.er1
32488+ ac_status=$?
32489+ grep -v '^ *+' conftest.er1 >conftest.err
32490+ rm -f conftest.er1
32491+ cat conftest.err >&5
32492+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
32493+ (exit $ac_status); } &&
32494+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32495+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32496+ (eval $ac_try) 2>&5
32497+ ac_status=$?
32498+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
32499+ (exit $ac_status); }; } &&
32500+ { ac_try='test -s conftest$ac_exeext'
32501+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32502+ (eval $ac_try) 2>&5
32503+ ac_status=$?
32504+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
32505+ (exit $ac_status); }; }; then
32506+ ac_cv_lib_dld_shl_load=yes
32507+else
32508+ echo "$as_me: failed program was:" >&5
32509+sed 's/^/| /' conftest.$ac_ext >&5
32510+
32511+ac_cv_lib_dld_shl_load=no
32512+fi
32513+rm -f conftest.err conftest.$ac_objext \
32514+ conftest$ac_exeext conftest.$ac_ext
32515+LIBS=$ac_check_lib_save_LIBS
32516+fi
32517+echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
32518+echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
32519+if test $ac_cv_lib_dld_shl_load = yes; then
32520+ lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
32521+else
32522+ echo "$as_me:$LINENO: checking for dlopen" >&5
32523+echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
32524+if test "${ac_cv_func_dlopen+set}" = set; then
32525+ echo $ECHO_N "(cached) $ECHO_C" >&6
32526+else
32527+ cat >conftest.$ac_ext <<_ACEOF
32528+/* confdefs.h. */
32529+_ACEOF
32530+cat confdefs.h >>conftest.$ac_ext
32531+cat >>conftest.$ac_ext <<_ACEOF
32532+/* end confdefs.h. */
32533+/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
32534+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
32535+#define dlopen innocuous_dlopen
32536+
32537+/* System header to define __stub macros and hopefully few prototypes,
32538+ which can conflict with char dlopen (); below.
32539+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32540+ <limits.h> exists even on freestanding compilers. */
32541+
32542+#ifdef __STDC__
32543+# include <limits.h>
32544+#else
32545+# include <assert.h>
32546+#endif
32547+
32548+#undef dlopen
32549+
32550+/* Override any gcc2 internal prototype to avoid an error. */
32551+#ifdef __cplusplus
32552+extern "C"
32553+{
32554+#endif
32555+/* We use char because int might match the return type of a gcc2
32556+ builtin and then its argument prototype would still apply. */
32557+char dlopen ();
32558+/* The GNU C library defines this for functions which it implements
32559+ to always fail with ENOSYS. Some functions are actually named
32560+ something starting with __ and the normal name is an alias. */
32561+#if defined (__stub_dlopen) || defined (__stub___dlopen)
32562+choke me
32563+#else
32564+char (*f) () = dlopen;
32565+#endif
32566+#ifdef __cplusplus
32567+}
32568+#endif
32569+
32570+int
32571+main ()
32572+{
32573+return f != dlopen;
32574+ ;
32575+ return 0;
32576+}
32577+_ACEOF
32578+rm -f conftest.$ac_objext conftest$ac_exeext
32579+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32580+ (eval $ac_link) 2>conftest.er1
32581+ ac_status=$?
32582+ grep -v '^ *+' conftest.er1 >conftest.err
32583+ rm -f conftest.er1
32584+ cat conftest.err >&5
32585+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
32586+ (exit $ac_status); } &&
32587+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32588+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32589+ (eval $ac_try) 2>&5
32590+ ac_status=$?
32591+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
32592+ (exit $ac_status); }; } &&
32593+ { ac_try='test -s conftest$ac_exeext'
32594+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32595+ (eval $ac_try) 2>&5
32596+ ac_status=$?
32597+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
32598+ (exit $ac_status); }; }; then
32599+ ac_cv_func_dlopen=yes
32600+else
32601+ echo "$as_me: failed program was:" >&5
32602+sed 's/^/| /' conftest.$ac_ext >&5
32603+
32604+ac_cv_func_dlopen=no
32605+fi
32606+rm -f conftest.err conftest.$ac_objext \
32607+ conftest$ac_exeext conftest.$ac_ext
32608+fi
32609+echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
32610+echo "${ECHO_T}$ac_cv_func_dlopen" >&6
32611+if test $ac_cv_func_dlopen = yes; then
32612+ lt_cv_dlopen="dlopen"
32613+else
32614+ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
32615+echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
32616+if test "${ac_cv_lib_dl_dlopen+set}" = set; then
32617+ echo $ECHO_N "(cached) $ECHO_C" >&6
32618+else
32619+ ac_check_lib_save_LIBS=$LIBS
32620+LIBS="-ldl $LIBS"
32621+cat >conftest.$ac_ext <<_ACEOF
32622+/* confdefs.h. */
32623+_ACEOF
32624+cat confdefs.h >>conftest.$ac_ext
32625+cat >>conftest.$ac_ext <<_ACEOF
32626+/* end confdefs.h. */
32627+
32628+/* Override any gcc2 internal prototype to avoid an error. */
32629+#ifdef __cplusplus
32630+extern "C"
32631+#endif
32632+/* We use char because int might match the return type of a gcc2
32633+ builtin and then its argument prototype would still apply. */
32634+char dlopen ();
32635+int
32636+main ()
32637+{
32638+dlopen ();
32639+ ;
32640+ return 0;
32641+}
32642+_ACEOF
32643+rm -f conftest.$ac_objext conftest$ac_exeext
32644+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32645+ (eval $ac_link) 2>conftest.er1
32646+ ac_status=$?
32647+ grep -v '^ *+' conftest.er1 >conftest.err
32648+ rm -f conftest.er1
32649+ cat conftest.err >&5
32650+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
32651+ (exit $ac_status); } &&
32652+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32653+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32654+ (eval $ac_try) 2>&5
32655+ ac_status=$?
32656+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
32657+ (exit $ac_status); }; } &&
32658+ { ac_try='test -s conftest$ac_exeext'
32659+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32660+ (eval $ac_try) 2>&5
32661+ ac_status=$?
32662+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
32663+ (exit $ac_status); }; }; then
32664+ ac_cv_lib_dl_dlopen=yes
32665+else
32666+ echo "$as_me: failed program was:" >&5
32667+sed 's/^/| /' conftest.$ac_ext >&5
32668+
32669+ac_cv_lib_dl_dlopen=no
32670+fi
32671+rm -f conftest.err conftest.$ac_objext \
32672+ conftest$ac_exeext conftest.$ac_ext
32673+LIBS=$ac_check_lib_save_LIBS
32674+fi
32675+echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
32676+echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
32677+if test $ac_cv_lib_dl_dlopen = yes; then
32678+ lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
32679+else
32680+ echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
32681+echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
32682+if test "${ac_cv_lib_svld_dlopen+set}" = set; then
32683+ echo $ECHO_N "(cached) $ECHO_C" >&6
32684+else
32685+ ac_check_lib_save_LIBS=$LIBS
32686+LIBS="-lsvld $LIBS"
32687+cat >conftest.$ac_ext <<_ACEOF
32688+/* confdefs.h. */
32689+_ACEOF
32690+cat confdefs.h >>conftest.$ac_ext
32691+cat >>conftest.$ac_ext <<_ACEOF
32692+/* end confdefs.h. */
32693+
32694+/* Override any gcc2 internal prototype to avoid an error. */
32695+#ifdef __cplusplus
32696+extern "C"
32697+#endif
32698+/* We use char because int might match the return type of a gcc2
32699+ builtin and then its argument prototype would still apply. */
32700+char dlopen ();
32701+int
32702+main ()
32703+{
32704+dlopen ();
32705+ ;
32706+ return 0;
32707+}
32708+_ACEOF
32709+rm -f conftest.$ac_objext conftest$ac_exeext
32710+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32711+ (eval $ac_link) 2>conftest.er1
32712+ ac_status=$?
32713+ grep -v '^ *+' conftest.er1 >conftest.err
32714+ rm -f conftest.er1
32715+ cat conftest.err >&5
32716+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
32717+ (exit $ac_status); } &&
32718+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32719+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32720+ (eval $ac_try) 2>&5
32721+ ac_status=$?
32722+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
32723+ (exit $ac_status); }; } &&
32724+ { ac_try='test -s conftest$ac_exeext'
32725+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32726+ (eval $ac_try) 2>&5
32727+ ac_status=$?
32728+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
32729+ (exit $ac_status); }; }; then
32730+ ac_cv_lib_svld_dlopen=yes
32731+else
32732+ echo "$as_me: failed program was:" >&5
32733+sed 's/^/| /' conftest.$ac_ext >&5
32734+
32735+ac_cv_lib_svld_dlopen=no
32736+fi
32737+rm -f conftest.err conftest.$ac_objext \
32738+ conftest$ac_exeext conftest.$ac_ext
32739+LIBS=$ac_check_lib_save_LIBS
32740+fi
32741+echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
32742+echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
32743+if test $ac_cv_lib_svld_dlopen = yes; then
32744+ lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
32745+else
32746+ echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
32747+echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
32748+if test "${ac_cv_lib_dld_dld_link+set}" = set; then
32749+ echo $ECHO_N "(cached) $ECHO_C" >&6
32750+else
32751+ ac_check_lib_save_LIBS=$LIBS
32752+LIBS="-ldld $LIBS"
32753+cat >conftest.$ac_ext <<_ACEOF
32754+/* confdefs.h. */
32755+_ACEOF
32756+cat confdefs.h >>conftest.$ac_ext
32757+cat >>conftest.$ac_ext <<_ACEOF
32758+/* end confdefs.h. */
32759+
32760+/* Override any gcc2 internal prototype to avoid an error. */
32761+#ifdef __cplusplus
32762+extern "C"
32763+#endif
32764+/* We use char because int might match the return type of a gcc2
32765+ builtin and then its argument prototype would still apply. */
32766+char dld_link ();
32767+int
32768+main ()
32769+{
32770+dld_link ();
32771+ ;
32772+ return 0;
32773+}
32774+_ACEOF
32775+rm -f conftest.$ac_objext conftest$ac_exeext
32776+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32777+ (eval $ac_link) 2>conftest.er1
32778+ ac_status=$?
32779+ grep -v '^ *+' conftest.er1 >conftest.err
32780+ rm -f conftest.er1
32781+ cat conftest.err >&5
32782+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
32783+ (exit $ac_status); } &&
32784+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32785+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32786+ (eval $ac_try) 2>&5
32787+ ac_status=$?
32788+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
32789+ (exit $ac_status); }; } &&
32790+ { ac_try='test -s conftest$ac_exeext'
32791+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32792+ (eval $ac_try) 2>&5
32793+ ac_status=$?
32794+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
32795+ (exit $ac_status); }; }; then
32796+ ac_cv_lib_dld_dld_link=yes
32797+else
32798+ echo "$as_me: failed program was:" >&5
32799+sed 's/^/| /' conftest.$ac_ext >&5
32800+
32801+ac_cv_lib_dld_dld_link=no
32802+fi
32803+rm -f conftest.err conftest.$ac_objext \
32804+ conftest$ac_exeext conftest.$ac_ext
32805+LIBS=$ac_check_lib_save_LIBS
32806+fi
32807+echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
32808+echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
32809+if test $ac_cv_lib_dld_dld_link = yes; then
32810+ lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
32811+fi
32812+
32813+
32814+fi
32815+
32816+
32817+fi
32818+
32819+
32820+fi
32821+
32822+
32823+fi
32824+
32825+
32826+fi
32827+
32828+ ;;
32829+ esac
32830+
32831+ if test "x$lt_cv_dlopen" != xno; then
32832+ enable_dlopen=yes
32833+ else
32834+ enable_dlopen=no
32835+ fi
32836+
32837+ case $lt_cv_dlopen in
32838+ dlopen)
32839+ save_CPPFLAGS="$CPPFLAGS"
32840+ test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
32841+
32842+ save_LDFLAGS="$LDFLAGS"
32843+ eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
32844+
32845+ save_LIBS="$LIBS"
32846+ LIBS="$lt_cv_dlopen_libs $LIBS"
32847+
32848+ echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
32849+echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
32850+if test "${lt_cv_dlopen_self+set}" = set; then
32851+ echo $ECHO_N "(cached) $ECHO_C" >&6
32852+else
32853+ if test "$cross_compiling" = yes; then :
32854+ lt_cv_dlopen_self=cross
32855+else
32856+ lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
32857+ lt_status=$lt_dlunknown
32858+ cat > conftest.$ac_ext <<EOF
32859+#line 17893 "configure"
32860+#include "confdefs.h"
32861+
32862+#if HAVE_DLFCN_H
32863+#include <dlfcn.h>
32864+#endif
32865+
32866+#include <stdio.h>
32867+
32868+#ifdef RTLD_GLOBAL
32869+# define LT_DLGLOBAL RTLD_GLOBAL
32870+#else
32871+# ifdef DL_GLOBAL
32872+# define LT_DLGLOBAL DL_GLOBAL
32873+# else
32874+# define LT_DLGLOBAL 0
32875+# endif
32876+#endif
32877+
32878+/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
32879+ find out it does not work in some platform. */
32880+#ifndef LT_DLLAZY_OR_NOW
32881+# ifdef RTLD_LAZY
32882+# define LT_DLLAZY_OR_NOW RTLD_LAZY
32883+# else
32884+# ifdef DL_LAZY
32885+# define LT_DLLAZY_OR_NOW DL_LAZY
32886+# else
32887+# ifdef RTLD_NOW
32888+# define LT_DLLAZY_OR_NOW RTLD_NOW
32889+# else
32890+# ifdef DL_NOW
32891+# define LT_DLLAZY_OR_NOW DL_NOW
32892+# else
32893+# define LT_DLLAZY_OR_NOW 0
32894+# endif
32895+# endif
32896+# endif
32897+# endif
32898+#endif
32899+
32900+#ifdef __cplusplus
32901+extern "C" void exit (int);
32902+#endif
32903+
32904+void fnord() { int i=42;}
32905+int main ()
32906+{
32907+ void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
32908+ int status = $lt_dlunknown;
32909+
32910+ if (self)
32911+ {
32912+ if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
32913+ else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
32914+ /* dlclose (self); */
32915+ }
32916+
32917+ exit (status);
32918+}
32919+EOF
32920+ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32921+ (eval $ac_link) 2>&5
32922+ ac_status=$?
32923+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
32924+ (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
32925+ (./conftest; exit; ) 2>/dev/null
32926+ lt_status=$?
32927+ case x$lt_status in
32928+ x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
32929+ x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
32930+ x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
32931+ esac
32932+ else :
32933+ # compilation failed
32934+ lt_cv_dlopen_self=no
32935+ fi
32936+fi
32937+rm -fr conftest*
32938+
32939+
32940+fi
32941+echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
32942+echo "${ECHO_T}$lt_cv_dlopen_self" >&6
32943+
32944+ if test "x$lt_cv_dlopen_self" = xyes; then
32945+ LDFLAGS="$LDFLAGS $link_static_flag"
32946+ echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
32947+echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
32948+if test "${lt_cv_dlopen_self_static+set}" = set; then
32949+ echo $ECHO_N "(cached) $ECHO_C" >&6
32950+else
32951+ if test "$cross_compiling" = yes; then :
32952+ lt_cv_dlopen_self_static=cross
32953+else
32954+ lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
32955+ lt_status=$lt_dlunknown
32956+ cat > conftest.$ac_ext <<EOF
32957+#line 17991 "configure"
32958+#include "confdefs.h"
32959+
32960+#if HAVE_DLFCN_H
32961+#include <dlfcn.h>
32962+#endif
32963+
32964+#include <stdio.h>
32965+
32966+#ifdef RTLD_GLOBAL
32967+# define LT_DLGLOBAL RTLD_GLOBAL
32968+#else
32969+# ifdef DL_GLOBAL
32970+# define LT_DLGLOBAL DL_GLOBAL
32971+# else
32972+# define LT_DLGLOBAL 0
32973+# endif
32974+#endif
32975+
32976+/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
32977+ find out it does not work in some platform. */
32978+#ifndef LT_DLLAZY_OR_NOW
32979+# ifdef RTLD_LAZY
32980+# define LT_DLLAZY_OR_NOW RTLD_LAZY
32981+# else
32982+# ifdef DL_LAZY
32983+# define LT_DLLAZY_OR_NOW DL_LAZY
32984+# else
32985+# ifdef RTLD_NOW
32986+# define LT_DLLAZY_OR_NOW RTLD_NOW
32987+# else
32988+# ifdef DL_NOW
32989+# define LT_DLLAZY_OR_NOW DL_NOW
32990+# else
32991+# define LT_DLLAZY_OR_NOW 0
32992+# endif
32993+# endif
32994+# endif
32995+# endif
32996+#endif
32997+
32998+#ifdef __cplusplus
32999+extern "C" void exit (int);
33000+#endif
33001+
33002+void fnord() { int i=42;}
33003+int main ()
33004+{
33005+ void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
33006+ int status = $lt_dlunknown;
33007+
33008+ if (self)
33009+ {
33010+ if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
33011+ else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
33012+ /* dlclose (self); */
33013+ }
33014+
33015+ exit (status);
33016+}
33017+EOF
33018+ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33019+ (eval $ac_link) 2>&5
33020+ ac_status=$?
33021+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
33022+ (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
33023+ (./conftest; exit; ) 2>/dev/null
33024+ lt_status=$?
33025+ case x$lt_status in
33026+ x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
33027+ x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
33028+ x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
33029+ esac
33030+ else :
33031+ # compilation failed
33032+ lt_cv_dlopen_self_static=no
33033+ fi
33034+fi
33035+rm -fr conftest*
33036+
33037+
33038+fi
33039+echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
33040+echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
33041+ fi
33042+
33043+ CPPFLAGS="$save_CPPFLAGS"
33044+ LDFLAGS="$save_LDFLAGS"
33045+ LIBS="$save_LIBS"
33046+ ;;
33047+ esac
33048+
33049+ case $lt_cv_dlopen_self in
33050+ yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
33051+ *) enable_dlopen_self=unknown ;;
33052+ esac
33053+
33054+ case $lt_cv_dlopen_self_static in
33055+ yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
33056+ *) enable_dlopen_self_static=unknown ;;
33057+ esac
33058+fi
33059+
33060+
33061+# The else clause should only fire when bootstrapping the
33062+# libtool distribution, otherwise you forgot to ship ltmain.sh
33063+# with your package, and you will get complaints that there are
33064+# no rules to generate ltmain.sh.
33065+if test -f "$ltmain"; then
33066+ # See if we are running on zsh, and set the options which allow our commands through
33067+ # without removal of \ escapes.
33068+ if test -n "${ZSH_VERSION+set}" ; then
33069+ setopt NO_GLOB_SUBST
33070+ fi
33071+ # Now quote all the things that may contain metacharacters while being
33072+ # careful not to overquote the AC_SUBSTed values. We take copies of the
33073+ # variables and quote the copies for generation of the libtool script.
33074+ for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
33075+ SED SHELL STRIP \
33076+ libname_spec library_names_spec soname_spec extract_expsyms_cmds \
33077+ old_striplib striplib file_magic_cmd finish_cmds finish_eval \
33078+ deplibs_check_method reload_flag reload_cmds need_locks \
33079+ lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
33080+ lt_cv_sys_global_symbol_to_c_name_address \
33081+ sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
33082+ old_postinstall_cmds old_postuninstall_cmds \
33083+ compiler_GCJ \
33084+ CC_GCJ \
33085+ LD_GCJ \
33086+ lt_prog_compiler_wl_GCJ \
33087+ lt_prog_compiler_pic_GCJ \
33088+ lt_prog_compiler_static_GCJ \
33089+ lt_prog_compiler_no_builtin_flag_GCJ \
33090+ export_dynamic_flag_spec_GCJ \
33091+ thread_safe_flag_spec_GCJ \
33092+ whole_archive_flag_spec_GCJ \
33093+ enable_shared_with_static_runtimes_GCJ \
33094+ old_archive_cmds_GCJ \
33095+ old_archive_from_new_cmds_GCJ \
33096+ predep_objects_GCJ \
33097+ postdep_objects_GCJ \
33098+ predeps_GCJ \
33099+ postdeps_GCJ \
33100+ compiler_lib_search_path_GCJ \
33101+ archive_cmds_GCJ \
33102+ archive_expsym_cmds_GCJ \
33103+ postinstall_cmds_GCJ \
33104+ postuninstall_cmds_GCJ \
33105+ old_archive_from_expsyms_cmds_GCJ \
33106+ allow_undefined_flag_GCJ \
33107+ no_undefined_flag_GCJ \
33108+ export_symbols_cmds_GCJ \
33109+ hardcode_libdir_flag_spec_GCJ \
33110+ hardcode_libdir_flag_spec_ld_GCJ \
33111+ hardcode_libdir_separator_GCJ \
33112+ hardcode_automatic_GCJ \
33113+ module_cmds_GCJ \
33114+ module_expsym_cmds_GCJ \
33115+ lt_cv_prog_compiler_c_o_GCJ \
33116+ exclude_expsyms_GCJ \
33117+ include_expsyms_GCJ; do
33118+
33119+ case $var in
33120+ old_archive_cmds_GCJ | \
33121+ old_archive_from_new_cmds_GCJ | \
33122+ archive_cmds_GCJ | \
33123+ archive_expsym_cmds_GCJ | \
33124+ module_cmds_GCJ | \
33125+ module_expsym_cmds_GCJ | \
33126+ old_archive_from_expsyms_cmds_GCJ | \
33127+ export_symbols_cmds_GCJ | \
33128+ extract_expsyms_cmds | reload_cmds | finish_cmds | \
33129+ postinstall_cmds | postuninstall_cmds | \
33130+ old_postinstall_cmds | old_postuninstall_cmds | \
33131+ sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
33132+ # Double-quote double-evaled strings.
33133+ eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
33134+ ;;
33135+ *)
33136+ eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
33137+ ;;
33138+ esac
33139+ done
33140+
33141+ case $lt_echo in
33142+ *'\$0 --fallback-echo"')
33143+ lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
33144+ ;;
33145+ esac
33146+
33147+cfgfile="$ofile"
33148+
33149+ cat <<__EOF__ >> "$cfgfile"
33150+# ### BEGIN LIBTOOL TAG CONFIG: $tagname
33151+
33152+# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
33153+
33154+# Shell to use when invoking shell scripts.
33155+SHELL=$lt_SHELL
33156+
33157+# Whether or not to build shared libraries.
33158+build_libtool_libs=$enable_shared
33159+
33160+# Whether or not to build static libraries.
33161+build_old_libs=$enable_static
33162+
33163+# Whether or not to add -lc for building shared libraries.
33164+build_libtool_need_lc=$archive_cmds_need_lc_GCJ
33165+
33166+# Whether or not to disallow shared libs when runtime libs are static
33167+allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
33168+
33169+# Whether or not to optimize for fast installation.
33170+fast_install=$enable_fast_install
33171+
33172+# The host system.
33173+host_alias=$host_alias
33174+host=$host
33175+
33176+# An echo program that does not interpret backslashes.
33177+echo=$lt_echo
33178+
33179+# The archiver.
33180+AR=$lt_AR
33181+AR_FLAGS=$lt_AR_FLAGS
33182+
33183+# A C compiler.
33184+LTCC=$lt_LTCC
33185+
33186+# A language-specific compiler.
33187+CC=$lt_compiler_GCJ
33188+
33189+# Is the compiler the GNU C compiler?
33190+with_gcc=$GCC_GCJ
33191+
33192+# An ERE matcher.
33193+EGREP=$lt_EGREP
33194+
33195+# The linker used to build libraries.
33196+LD=$lt_LD_GCJ
33197+
33198+# Whether we need hard or soft links.
33199+LN_S=$lt_LN_S
33200+
33201+# A BSD-compatible nm program.
33202+NM=$lt_NM
33203+
33204+# A symbol stripping program
33205+STRIP=$lt_STRIP
33206+
33207+# Used to examine libraries when file_magic_cmd begins "file"
33208+MAGIC_CMD=$MAGIC_CMD
33209+
33210+# Used on cygwin: DLL creation program.
33211+DLLTOOL="$DLLTOOL"
33212+
33213+# Used on cygwin: object dumper.
33214+OBJDUMP="$OBJDUMP"
33215+
33216+# Used on cygwin: assembler.
33217+AS="$AS"
33218+
33219+# The name of the directory that contains temporary libtool files.
33220+objdir=$objdir
33221+
33222+# How to create reloadable object files.
33223+reload_flag=$lt_reload_flag
33224+reload_cmds=$lt_reload_cmds
33225+
33226+# How to pass a linker flag through the compiler.
33227+wl=$lt_lt_prog_compiler_wl_GCJ
33228+
33229+# Object file suffix (normally "o").
33230+objext="$ac_objext"
33231+
33232+# Old archive suffix (normally "a").
33233+libext="$libext"
33234+
33235+# Shared library suffix (normally ".so").
33236+shrext_cmds='$shrext_cmds'
33237+
33238+# Executable file suffix (normally "").
33239+exeext="$exeext"
33240+
33241+# Additional compiler flags for building library objects.
33242+pic_flag=$lt_lt_prog_compiler_pic_GCJ
33243+pic_mode=$pic_mode
33244+
33245+# What is the maximum length of a command?
33246+max_cmd_len=$lt_cv_sys_max_cmd_len
33247+
33248+# Does compiler simultaneously support -c and -o options?
33249+compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
33250+
33251+# Must we lock files when doing compilation ?
33252+need_locks=$lt_need_locks
33253+
33254+# Do we need the lib prefix for modules?
33255+need_lib_prefix=$need_lib_prefix
33256+
33257+# Do we need a version for libraries?
33258+need_version=$need_version
33259+
33260+# Whether dlopen is supported.
33261+dlopen_support=$enable_dlopen
33262+
33263+# Whether dlopen of programs is supported.
33264+dlopen_self=$enable_dlopen_self
33265+
33266+# Whether dlopen of statically linked programs is supported.
33267+dlopen_self_static=$enable_dlopen_self_static
33268+
33269+# Compiler flag to prevent dynamic linking.
33270+link_static_flag=$lt_lt_prog_compiler_static_GCJ
33271+
33272+# Compiler flag to turn off builtin functions.
33273+no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
33274+
33275+# Compiler flag to allow reflexive dlopens.
33276+export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
33277+
33278+# Compiler flag to generate shared objects directly from archives.
33279+whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
33280+
33281+# Compiler flag to generate thread-safe objects.
33282+thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
33283+
33284+# Library versioning type.
33285+version_type=$version_type
33286+
33287+# Format of library name prefix.
33288+libname_spec=$lt_libname_spec
33289+
33290+# List of archive names. First name is the real one, the rest are links.
33291+# The last name is the one that the linker finds with -lNAME.
33292+library_names_spec=$lt_library_names_spec
33293+
33294+# The coded name of the library, if different from the real name.
33295+soname_spec=$lt_soname_spec
33296+
33297+# Commands used to build and install an old-style archive.
33298+RANLIB=$lt_RANLIB
33299+old_archive_cmds=$lt_old_archive_cmds_GCJ
33300+old_postinstall_cmds=$lt_old_postinstall_cmds
33301+old_postuninstall_cmds=$lt_old_postuninstall_cmds
33302+
33303+# Create an old-style archive from a shared archive.
33304+old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
33305+
33306+# Create a temporary old-style archive to link instead of a shared archive.
33307+old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
33308+
33309+# Commands used to build and install a shared archive.
33310+archive_cmds=$lt_archive_cmds_GCJ
33311+archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
33312+postinstall_cmds=$lt_postinstall_cmds
33313+postuninstall_cmds=$lt_postuninstall_cmds
33314+
33315+# Commands used to build a loadable module (assumed same as above if empty)
33316+module_cmds=$lt_module_cmds_GCJ
33317+module_expsym_cmds=$lt_module_expsym_cmds_GCJ
33318+
33319+# Commands to strip libraries.
33320+old_striplib=$lt_old_striplib
33321+striplib=$lt_striplib
33322+
33323+# Dependencies to place before the objects being linked to create a
33324+# shared library.
33325+predep_objects=$lt_predep_objects_GCJ
33326+
33327+# Dependencies to place after the objects being linked to create a
33328+# shared library.
33329+postdep_objects=$lt_postdep_objects_GCJ
33330+
33331+# Dependencies to place before the objects being linked to create a
33332+# shared library.
33333+predeps=$lt_predeps_GCJ
33334+
33335+# Dependencies to place after the objects being linked to create a
33336+# shared library.
33337+postdeps=$lt_postdeps_GCJ
33338+
33339+# The library search path used internally by the compiler when linking
33340+# a shared library.
33341+compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
33342+
33343+# Method to check whether dependent libraries are shared objects.
33344+deplibs_check_method=$lt_deplibs_check_method
33345+
33346+# Command to use when deplibs_check_method == file_magic.
33347+file_magic_cmd=$lt_file_magic_cmd
33348+
33349+# Flag that allows shared libraries with undefined symbols to be built.
33350+allow_undefined_flag=$lt_allow_undefined_flag_GCJ
33351+
33352+# Flag that forces no undefined symbols.
33353+no_undefined_flag=$lt_no_undefined_flag_GCJ
33354+
33355+# Commands used to finish a libtool library installation in a directory.
33356+finish_cmds=$lt_finish_cmds
33357+
33358+# Same as above, but a single script fragment to be evaled but not shown.
33359+finish_eval=$lt_finish_eval
33360+
33361+# Take the output of nm and produce a listing of raw symbols and C names.
33362+global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
33363+
33364+# Transform the output of nm in a proper C declaration
33365+global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
33366+
33367+# Transform the output of nm in a C name address pair
33368+global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
33369+
33370+# This is the shared library runtime path variable.
33371+runpath_var=$runpath_var
33372+
33373+# This is the shared library path variable.
33374+shlibpath_var=$shlibpath_var
33375+
33376+# Is shlibpath searched before the hard-coded library search path?
33377+shlibpath_overrides_runpath=$shlibpath_overrides_runpath
33378+
33379+# How to hardcode a shared library path into an executable.
33380+hardcode_action=$hardcode_action_GCJ
33381+
33382+# Whether we should hardcode library paths into libraries.
33383+hardcode_into_libs=$hardcode_into_libs
33384+
33385+# Flag to hardcode \$libdir into a binary during linking.
33386+# This must work even if \$libdir does not exist.
33387+hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
33388+
33389+# If ld is used when linking, flag to hardcode \$libdir into
33390+# a binary during linking. This must work even if \$libdir does
33391+# not exist.
33392+hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
33393+
33394+# Whether we need a single -rpath flag with a separated argument.
33395+hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
33396+
33397+# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
33398+# resulting binary.
33399+hardcode_direct=$hardcode_direct_GCJ
33400+
33401+# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
33402+# resulting binary.
33403+hardcode_minus_L=$hardcode_minus_L_GCJ
33404+
33405+# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
33406+# the resulting binary.
33407+hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
33408+
33409+# Set to yes if building a shared library automatically hardcodes DIR into the library
33410+# and all subsequent libraries and executables linked against it.
33411+hardcode_automatic=$hardcode_automatic_GCJ
33412+
33413+# Variables whose values should be saved in libtool wrapper scripts and
33414+# restored at relink time.
33415+variables_saved_for_relink="$variables_saved_for_relink"
33416+
33417+# Whether libtool must link a program against all its dependency libraries.
33418+link_all_deplibs=$link_all_deplibs_GCJ
33419+
33420+# Compile-time system search path for libraries
33421+sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
33422+
33423+# Run-time system search path for libraries
33424+sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
33425+
33426+# Fix the shell variable \$srcfile for the compiler.
33427+fix_srcfile_path="$fix_srcfile_path_GCJ"
33428+
33429+# Set to yes if exported symbols are required.
33430+always_export_symbols=$always_export_symbols_GCJ
33431+
33432+# The commands to list exported symbols.
33433+export_symbols_cmds=$lt_export_symbols_cmds_GCJ
33434+
33435+# The commands to extract the exported symbol list from a shared archive.
33436+extract_expsyms_cmds=$lt_extract_expsyms_cmds
33437+
33438+# Symbols that should not be listed in the preloaded symbols.
33439+exclude_expsyms=$lt_exclude_expsyms_GCJ
33440+
33441+# Symbols that must always be exported.
33442+include_expsyms=$lt_include_expsyms_GCJ
33443+
33444+# ### END LIBTOOL TAG CONFIG: $tagname
33445+
33446+__EOF__
33447+
33448+
33449+else
33450+ # If there is no Makefile yet, we rely on a make rule to execute
33451+ # `config.status --recheck' to rerun these tests and create the
33452+ # libtool script then.
33453+ ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
33454+ if test -f "$ltmain_in"; then
33455+ test -f Makefile && make "$ltmain"
33456+ fi
33457+fi
33458+
33459+
33460+ac_ext=c
33461+ac_cpp='$CPP $CPPFLAGS'
33462+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33463+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33464+ac_compiler_gnu=$ac_cv_c_compiler_gnu
33465+
33466+CC="$lt_save_CC"
33467+
33468+ else
33469+ tagname=""
33470+ fi
33471+ ;;
33472+
33473+ RC)
33474+
33475+
33476+
33477+# Source file extension for RC test sources.
33478+ac_ext=rc
33479+
33480+# Object file extension for compiled RC test sources.
33481+objext=o
33482+objext_RC=$objext
33483+
33484+# Code to be used in simple compile tests
33485+lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
33486+
33487+# Code to be used in simple link tests
33488+lt_simple_link_test_code="$lt_simple_compile_test_code"
33489+
33490+# ltmain only uses $CC for tagged configurations so make sure $CC is set.
33491+
33492+# If no C compiler was specified, use CC.
33493+LTCC=${LTCC-"$CC"}
33494+
33495+# Allow CC to be a program name with arguments.
33496+compiler=$CC
33497+
33498+
33499+# Allow CC to be a program name with arguments.
33500+lt_save_CC="$CC"
33501+CC=${RC-"windres"}
33502+compiler=$CC
33503+compiler_RC=$CC
33504+lt_cv_prog_compiler_c_o_RC=yes
33505+
33506+# The else clause should only fire when bootstrapping the
33507+# libtool distribution, otherwise you forgot to ship ltmain.sh
33508+# with your package, and you will get complaints that there are
33509+# no rules to generate ltmain.sh.
33510+if test -f "$ltmain"; then
33511+ # See if we are running on zsh, and set the options which allow our commands through
33512+ # without removal of \ escapes.
33513+ if test -n "${ZSH_VERSION+set}" ; then
33514+ setopt NO_GLOB_SUBST
33515+ fi
33516+ # Now quote all the things that may contain metacharacters while being
33517+ # careful not to overquote the AC_SUBSTed values. We take copies of the
33518+ # variables and quote the copies for generation of the libtool script.
33519+ for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
33520+ SED SHELL STRIP \
33521+ libname_spec library_names_spec soname_spec extract_expsyms_cmds \
33522+ old_striplib striplib file_magic_cmd finish_cmds finish_eval \
33523+ deplibs_check_method reload_flag reload_cmds need_locks \
33524+ lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
33525+ lt_cv_sys_global_symbol_to_c_name_address \
33526+ sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
33527+ old_postinstall_cmds old_postuninstall_cmds \
33528+ compiler_RC \
33529+ CC_RC \
33530+ LD_RC \
33531+ lt_prog_compiler_wl_RC \
33532+ lt_prog_compiler_pic_RC \
33533+ lt_prog_compiler_static_RC \
33534+ lt_prog_compiler_no_builtin_flag_RC \
33535+ export_dynamic_flag_spec_RC \
33536+ thread_safe_flag_spec_RC \
33537+ whole_archive_flag_spec_RC \
33538+ enable_shared_with_static_runtimes_RC \
33539+ old_archive_cmds_RC \
33540+ old_archive_from_new_cmds_RC \
33541+ predep_objects_RC \
33542+ postdep_objects_RC \
33543+ predeps_RC \
33544+ postdeps_RC \
33545+ compiler_lib_search_path_RC \
33546+ archive_cmds_RC \
33547+ archive_expsym_cmds_RC \
33548+ postinstall_cmds_RC \
33549+ postuninstall_cmds_RC \
33550+ old_archive_from_expsyms_cmds_RC \
33551+ allow_undefined_flag_RC \
33552+ no_undefined_flag_RC \
33553+ export_symbols_cmds_RC \
33554+ hardcode_libdir_flag_spec_RC \
33555+ hardcode_libdir_flag_spec_ld_RC \
33556+ hardcode_libdir_separator_RC \
33557+ hardcode_automatic_RC \
33558+ module_cmds_RC \
33559+ module_expsym_cmds_RC \
33560+ lt_cv_prog_compiler_c_o_RC \
33561+ exclude_expsyms_RC \
33562+ include_expsyms_RC; do
33563+
33564+ case $var in
33565+ old_archive_cmds_RC | \
33566+ old_archive_from_new_cmds_RC | \
33567+ archive_cmds_RC | \
33568+ archive_expsym_cmds_RC | \
33569+ module_cmds_RC | \
33570+ module_expsym_cmds_RC | \
33571+ old_archive_from_expsyms_cmds_RC | \
33572+ export_symbols_cmds_RC | \
33573+ extract_expsyms_cmds | reload_cmds | finish_cmds | \
33574+ postinstall_cmds | postuninstall_cmds | \
33575+ old_postinstall_cmds | old_postuninstall_cmds | \
33576+ sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
33577+ # Double-quote double-evaled strings.
33578+ eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
33579+ ;;
33580+ *)
33581+ eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
33582+ ;;
33583+ esac
33584+ done
33585+
33586+ case $lt_echo in
33587+ *'\$0 --fallback-echo"')
33588+ lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
33589+ ;;
33590+ esac
33591+
33592+cfgfile="$ofile"
33593+
33594+ cat <<__EOF__ >> "$cfgfile"
33595+# ### BEGIN LIBTOOL TAG CONFIG: $tagname
33596+
33597+# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
33598+
33599+# Shell to use when invoking shell scripts.
33600+SHELL=$lt_SHELL
33601+
33602+# Whether or not to build shared libraries.
33603+build_libtool_libs=$enable_shared
33604+
33605+# Whether or not to build static libraries.
33606+build_old_libs=$enable_static
33607+
33608+# Whether or not to add -lc for building shared libraries.
33609+build_libtool_need_lc=$archive_cmds_need_lc_RC
33610+
33611+# Whether or not to disallow shared libs when runtime libs are static
33612+allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
33613+
33614+# Whether or not to optimize for fast installation.
33615+fast_install=$enable_fast_install
33616+
33617+# The host system.
33618+host_alias=$host_alias
33619+host=$host
33620+
33621+# An echo program that does not interpret backslashes.
33622+echo=$lt_echo
33623+
33624+# The archiver.
33625+AR=$lt_AR
33626+AR_FLAGS=$lt_AR_FLAGS
33627+
33628+# A C compiler.
33629+LTCC=$lt_LTCC
33630+
33631+# A language-specific compiler.
33632+CC=$lt_compiler_RC
33633+
33634+# Is the compiler the GNU C compiler?
33635+with_gcc=$GCC_RC
33636+
33637+# An ERE matcher.
33638+EGREP=$lt_EGREP
33639+
33640+# The linker used to build libraries.
33641+LD=$lt_LD_RC
33642+
33643+# Whether we need hard or soft links.
33644+LN_S=$lt_LN_S
33645+
33646+# A BSD-compatible nm program.
33647+NM=$lt_NM
33648+
33649+# A symbol stripping program
33650+STRIP=$lt_STRIP
33651+
33652+# Used to examine libraries when file_magic_cmd begins "file"
33653+MAGIC_CMD=$MAGIC_CMD
33654+
33655+# Used on cygwin: DLL creation program.
33656+DLLTOOL="$DLLTOOL"
33657+
33658+# Used on cygwin: object dumper.
33659+OBJDUMP="$OBJDUMP"
33660+
33661+# Used on cygwin: assembler.
33662+AS="$AS"
33663+
33664+# The name of the directory that contains temporary libtool files.
33665+objdir=$objdir
33666+
33667+# How to create reloadable object files.
33668+reload_flag=$lt_reload_flag
33669+reload_cmds=$lt_reload_cmds
33670+
33671+# How to pass a linker flag through the compiler.
33672+wl=$lt_lt_prog_compiler_wl_RC
33673+
33674+# Object file suffix (normally "o").
33675+objext="$ac_objext"
33676+
33677+# Old archive suffix (normally "a").
33678+libext="$libext"
33679+
33680+# Shared library suffix (normally ".so").
33681+shrext_cmds='$shrext_cmds'
33682+
33683+# Executable file suffix (normally "").
33684+exeext="$exeext"
33685+
33686+# Additional compiler flags for building library objects.
33687+pic_flag=$lt_lt_prog_compiler_pic_RC
33688+pic_mode=$pic_mode
33689+
33690+# What is the maximum length of a command?
33691+max_cmd_len=$lt_cv_sys_max_cmd_len
33692+
33693+# Does compiler simultaneously support -c and -o options?
33694+compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
33695+
33696+# Must we lock files when doing compilation ?
33697+need_locks=$lt_need_locks
33698+
33699+# Do we need the lib prefix for modules?
33700+need_lib_prefix=$need_lib_prefix
33701+
33702+# Do we need a version for libraries?
33703+need_version=$need_version
33704+
33705+# Whether dlopen is supported.
33706+dlopen_support=$enable_dlopen
33707+
33708+# Whether dlopen of programs is supported.
33709+dlopen_self=$enable_dlopen_self
33710+
33711+# Whether dlopen of statically linked programs is supported.
33712+dlopen_self_static=$enable_dlopen_self_static
33713+
33714+# Compiler flag to prevent dynamic linking.
33715+link_static_flag=$lt_lt_prog_compiler_static_RC
33716+
33717+# Compiler flag to turn off builtin functions.
33718+no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
33719+
33720+# Compiler flag to allow reflexive dlopens.
33721+export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
33722+
33723+# Compiler flag to generate shared objects directly from archives.
33724+whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
33725+
33726+# Compiler flag to generate thread-safe objects.
33727+thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
33728+
33729+# Library versioning type.
33730+version_type=$version_type
33731+
33732+# Format of library name prefix.
33733+libname_spec=$lt_libname_spec
33734+
33735+# List of archive names. First name is the real one, the rest are links.
33736+# The last name is the one that the linker finds with -lNAME.
33737+library_names_spec=$lt_library_names_spec
33738+
33739+# The coded name of the library, if different from the real name.
33740+soname_spec=$lt_soname_spec
33741+
33742+# Commands used to build and install an old-style archive.
33743+RANLIB=$lt_RANLIB
33744+old_archive_cmds=$lt_old_archive_cmds_RC
33745+old_postinstall_cmds=$lt_old_postinstall_cmds
33746+old_postuninstall_cmds=$lt_old_postuninstall_cmds
33747+
33748+# Create an old-style archive from a shared archive.
33749+old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
33750+
33751+# Create a temporary old-style archive to link instead of a shared archive.
33752+old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
33753+
33754+# Commands used to build and install a shared archive.
33755+archive_cmds=$lt_archive_cmds_RC
33756+archive_expsym_cmds=$lt_archive_expsym_cmds_RC
33757+postinstall_cmds=$lt_postinstall_cmds
33758+postuninstall_cmds=$lt_postuninstall_cmds
33759+
33760+# Commands used to build a loadable module (assumed same as above if empty)
33761+module_cmds=$lt_module_cmds_RC
33762+module_expsym_cmds=$lt_module_expsym_cmds_RC
33763+
33764+# Commands to strip libraries.
33765+old_striplib=$lt_old_striplib
33766+striplib=$lt_striplib
33767+
33768+# Dependencies to place before the objects being linked to create a
33769+# shared library.
33770+predep_objects=$lt_predep_objects_RC
33771+
33772+# Dependencies to place after the objects being linked to create a
33773+# shared library.
33774+postdep_objects=$lt_postdep_objects_RC
33775+
33776+# Dependencies to place before the objects being linked to create a
33777+# shared library.
33778+predeps=$lt_predeps_RC
33779+
33780+# Dependencies to place after the objects being linked to create a
33781+# shared library.
33782+postdeps=$lt_postdeps_RC
33783+
33784+# The library search path used internally by the compiler when linking
33785+# a shared library.
33786+compiler_lib_search_path=$lt_compiler_lib_search_path_RC
33787+
33788+# Method to check whether dependent libraries are shared objects.
33789+deplibs_check_method=$lt_deplibs_check_method
33790+
33791+# Command to use when deplibs_check_method == file_magic.
33792+file_magic_cmd=$lt_file_magic_cmd
33793+
33794+# Flag that allows shared libraries with undefined symbols to be built.
33795+allow_undefined_flag=$lt_allow_undefined_flag_RC
33796+
33797+# Flag that forces no undefined symbols.
33798+no_undefined_flag=$lt_no_undefined_flag_RC
33799+
33800+# Commands used to finish a libtool library installation in a directory.
33801+finish_cmds=$lt_finish_cmds
33802+
33803+# Same as above, but a single script fragment to be evaled but not shown.
33804+finish_eval=$lt_finish_eval
33805+
33806+# Take the output of nm and produce a listing of raw symbols and C names.
33807+global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
33808+
33809+# Transform the output of nm in a proper C declaration
33810+global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
33811+
33812+# Transform the output of nm in a C name address pair
33813+global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
33814+
33815+# This is the shared library runtime path variable.
33816+runpath_var=$runpath_var
33817+
33818+# This is the shared library path variable.
33819+shlibpath_var=$shlibpath_var
33820+
33821+# Is shlibpath searched before the hard-coded library search path?
33822+shlibpath_overrides_runpath=$shlibpath_overrides_runpath
33823+
33824+# How to hardcode a shared library path into an executable.
33825+hardcode_action=$hardcode_action_RC
33826+
33827+# Whether we should hardcode library paths into libraries.
33828+hardcode_into_libs=$hardcode_into_libs
33829+
33830+# Flag to hardcode \$libdir into a binary during linking.
33831+# This must work even if \$libdir does not exist.
33832+hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
33833+
33834+# If ld is used when linking, flag to hardcode \$libdir into
33835+# a binary during linking. This must work even if \$libdir does
33836+# not exist.
33837+hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
33838+
33839+# Whether we need a single -rpath flag with a separated argument.
33840+hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
33841+
33842+# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
33843+# resulting binary.
33844+hardcode_direct=$hardcode_direct_RC
33845+
33846+# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
33847+# resulting binary.
33848+hardcode_minus_L=$hardcode_minus_L_RC
33849+
33850+# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
33851+# the resulting binary.
33852+hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
33853+
33854+# Set to yes if building a shared library automatically hardcodes DIR into the library
33855+# and all subsequent libraries and executables linked against it.
33856+hardcode_automatic=$hardcode_automatic_RC
33857+
33858+# Variables whose values should be saved in libtool wrapper scripts and
33859+# restored at relink time.
33860+variables_saved_for_relink="$variables_saved_for_relink"
33861+
33862+# Whether libtool must link a program against all its dependency libraries.
33863+link_all_deplibs=$link_all_deplibs_RC
33864+
33865+# Compile-time system search path for libraries
33866+sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
33867+
33868+# Run-time system search path for libraries
33869+sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
33870+
33871+# Fix the shell variable \$srcfile for the compiler.
33872+fix_srcfile_path="$fix_srcfile_path_RC"
33873+
33874+# Set to yes if exported symbols are required.
33875+always_export_symbols=$always_export_symbols_RC
33876+
33877+# The commands to list exported symbols.
33878+export_symbols_cmds=$lt_export_symbols_cmds_RC
33879+
33880+# The commands to extract the exported symbol list from a shared archive.
33881+extract_expsyms_cmds=$lt_extract_expsyms_cmds
33882+
33883+# Symbols that should not be listed in the preloaded symbols.
33884+exclude_expsyms=$lt_exclude_expsyms_RC
33885+
33886+# Symbols that must always be exported.
33887+include_expsyms=$lt_include_expsyms_RC
33888+
33889+# ### END LIBTOOL TAG CONFIG: $tagname
33890+
33891+__EOF__
33892+
33893+
33894+else
33895+ # If there is no Makefile yet, we rely on a make rule to execute
33896+ # `config.status --recheck' to rerun these tests and create the
33897+ # libtool script then.
33898+ ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
33899+ if test -f "$ltmain_in"; then
33900+ test -f Makefile && make "$ltmain"
33901+ fi
33902+fi
33903+
33904+
33905+ac_ext=c
33906+ac_cpp='$CPP $CPPFLAGS'
33907+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33908+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33909+ac_compiler_gnu=$ac_cv_c_compiler_gnu
33910+
33911+CC="$lt_save_CC"
33912+
33913+ ;;
33914+
33915+ *)
33916+ { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
33917+echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
33918+ { (exit 1); exit 1; }; }
33919+ ;;
33920+ esac
33921+
33922+ # Append the new tag name to the list of available tags.
33923+ if test -n "$tagname" ; then
33924+ available_tags="$available_tags $tagname"
33925+ fi
33926+ fi
33927+ done
33928+ IFS="$lt_save_ifs"
33929+
33930+ # Now substitute the updated list of available tags.
33931+ if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
33932+ mv "${ofile}T" "$ofile"
33933+ chmod +x "$ofile"
33934+ else
33935+ rm -f "${ofile}T"
33936+ { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
33937+echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
33938+ { (exit 1); exit 1; }; }
33939+ fi
33940+fi
33941+
33942+
33943+
33944+# This can be used to rebuild libtool when needed
33945+LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
33946+
33947+# Always use our own libtool.
33948+LIBTOOL='$(SHELL) $(top_builddir)/libtool'
33949+
33950+# Prevent multiple expansion
33951+
33952+
33953+
33954+
33955+
33956+
33957+
33958+
33959+
33960+
33961+
33962+
33963+
33964+
33965+
33966+
33967+
33968+
33969+
33970+
33971+echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
33972+echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
33973+ # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
33974+if test "${enable_maintainer_mode+set}" = set; then
33975+ enableval="$enable_maintainer_mode"
33976+ USE_MAINTAINER_MODE=$enableval
33977+else
33978+ USE_MAINTAINER_MODE=no
33979+fi;
33980+ echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
33981+echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
33982+
33983+
33984+if test $USE_MAINTAINER_MODE = yes; then
33985+ MAINTAINER_MODE_TRUE=
33986+ MAINTAINER_MODE_FALSE='#'
33987+else
33988+ MAINTAINER_MODE_TRUE='#'
33989+ MAINTAINER_MODE_FALSE=
33990+fi
33991+
33992+ MAINT=$MAINTAINER_MODE_TRUE
33993+
33994+
33995+
33996+
33997+# Check whether --with-libsynce or --without-libsynce was given.
33998+if test "${with_libsynce+set}" = set; then
33999+ withval="$with_libsynce"
34000+
34001+ CPPFLAGS="$CPPFLAGS -I${withval}/include"
34002+ LDFLAGS="$LDFLAGS -L${withval}/lib"
34003+
34004+
34005+fi;
34006+
34007+
34008+# Check whether --with-libsynce-include or --without-libsynce-include was given.
34009+if test "${with_libsynce_include+set}" = set; then
34010+ withval="$with_libsynce_include"
34011+
34012+ CPPFLAGS="$CPPFLAGS -I${withval}"
34013+
34014+
34015+fi;
34016+
34017+
34018+# Check whether --with-libsynce-lib or --without-libsynce-lib was given.
34019+if test "${with_libsynce_lib+set}" = set; then
34020+ withval="$with_libsynce_lib"
34021+
34022+ LDFLAGS="$LDFLAGS -L${withval}"
34023+
34024+
34025+fi;
34026+
34027+
34028+echo "$as_me:$LINENO: checking for main in -lsynce" >&5
34029+echo $ECHO_N "checking for main in -lsynce... $ECHO_C" >&6
34030+if test "${ac_cv_lib_synce_main+set}" = set; then
34031+ echo $ECHO_N "(cached) $ECHO_C" >&6
34032+else
34033+ ac_check_lib_save_LIBS=$LIBS
34034+LIBS="-lsynce $LIBS"
34035+cat >conftest.$ac_ext <<_ACEOF
34036+/* confdefs.h. */
34037+_ACEOF
34038+cat confdefs.h >>conftest.$ac_ext
34039+cat >>conftest.$ac_ext <<_ACEOF
34040+/* end confdefs.h. */
34041+
34042+
34043+int
34044+main ()
34045+{
34046+main ();
34047+ ;
34048+ return 0;
34049+}
34050+_ACEOF
34051+rm -f conftest.$ac_objext conftest$ac_exeext
34052+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34053+ (eval $ac_link) 2>conftest.er1
34054+ ac_status=$?
34055+ grep -v '^ *+' conftest.er1 >conftest.err
34056+ rm -f conftest.er1
34057+ cat conftest.err >&5
34058+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
34059+ (exit $ac_status); } &&
34060+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34061+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34062+ (eval $ac_try) 2>&5
34063+ ac_status=$?
34064+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
34065+ (exit $ac_status); }; } &&
34066+ { ac_try='test -s conftest$ac_exeext'
34067+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34068+ (eval $ac_try) 2>&5
34069+ ac_status=$?
34070+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
34071+ (exit $ac_status); }; }; then
34072+ ac_cv_lib_synce_main=yes
34073+else
34074+ echo "$as_me: failed program was:" >&5
34075+sed 's/^/| /' conftest.$ac_ext >&5
34076+
34077+ac_cv_lib_synce_main=no
34078+fi
34079+rm -f conftest.err conftest.$ac_objext \
34080+ conftest$ac_exeext conftest.$ac_ext
34081+LIBS=$ac_check_lib_save_LIBS
34082+fi
34083+echo "$as_me:$LINENO: result: $ac_cv_lib_synce_main" >&5
34084+echo "${ECHO_T}$ac_cv_lib_synce_main" >&6
34085+if test $ac_cv_lib_synce_main = yes; then
34086+ cat >>confdefs.h <<_ACEOF
34087+#define HAVE_LIBSYNCE 1
34088+_ACEOF
34089+
34090+ LIBS="-lsynce $LIBS"
34091+
34092+else
34093+
34094+ { { echo "$as_me:$LINENO: error: Can't find synce library" >&5
34095+echo "$as_me: error: Can't find synce library" >&2;}
34096+ { (exit 1); exit 1; }; }
34097+
34098+
34099+fi
34100+
34101+
34102+
34103+for ac_header in synce.h
34104+do
34105+as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34106+if eval "test \"\${$as_ac_Header+set}\" = set"; then
34107+ echo "$as_me:$LINENO: checking for $ac_header" >&5
34108+echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34109+if eval "test \"\${$as_ac_Header+set}\" = set"; then
34110+ echo $ECHO_N "(cached) $ECHO_C" >&6
34111+fi
34112+echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34113+echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34114+else
34115+ # Is the header compilable?
34116+echo "$as_me:$LINENO: checking $ac_header usability" >&5
34117+echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34118+cat >conftest.$ac_ext <<_ACEOF
34119+/* confdefs.h. */
34120+_ACEOF
34121+cat confdefs.h >>conftest.$ac_ext
34122+cat >>conftest.$ac_ext <<_ACEOF
34123+/* end confdefs.h. */
34124+$ac_includes_default
34125+#include <$ac_header>
34126+_ACEOF
34127+rm -f conftest.$ac_objext
34128+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34129+ (eval $ac_compile) 2>conftest.er1
34130+ ac_status=$?
34131+ grep -v '^ *+' conftest.er1 >conftest.err
34132+ rm -f conftest.er1
34133+ cat conftest.err >&5
34134+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
34135+ (exit $ac_status); } &&
34136+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34137+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34138+ (eval $ac_try) 2>&5
34139+ ac_status=$?
34140+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
34141+ (exit $ac_status); }; } &&
34142+ { ac_try='test -s conftest.$ac_objext'
34143+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34144+ (eval $ac_try) 2>&5
34145+ ac_status=$?
34146+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
34147+ (exit $ac_status); }; }; then
34148+ ac_header_compiler=yes
34149+else
34150+ echo "$as_me: failed program was:" >&5
34151+sed 's/^/| /' conftest.$ac_ext >&5
34152+
34153+ac_header_compiler=no
34154+fi
34155+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34156+echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34157+echo "${ECHO_T}$ac_header_compiler" >&6
34158+
34159+# Is the header present?
34160+echo "$as_me:$LINENO: checking $ac_header presence" >&5
34161+echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34162+cat >conftest.$ac_ext <<_ACEOF
34163+/* confdefs.h. */
34164+_ACEOF
34165+cat confdefs.h >>conftest.$ac_ext
34166+cat >>conftest.$ac_ext <<_ACEOF
34167+/* end confdefs.h. */
34168+#include <$ac_header>
34169+_ACEOF
34170+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34171+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34172+ ac_status=$?
34173+ grep -v '^ *+' conftest.er1 >conftest.err
34174+ rm -f conftest.er1
34175+ cat conftest.err >&5
34176+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
34177+ (exit $ac_status); } >/dev/null; then
34178+ if test -s conftest.err; then
34179+ ac_cpp_err=$ac_c_preproc_warn_flag
34180+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34181+ else
34182+ ac_cpp_err=
34183+ fi
34184+else
34185+ ac_cpp_err=yes
34186+fi
34187+if test -z "$ac_cpp_err"; then
34188+ ac_header_preproc=yes
34189+else
34190+ echo "$as_me: failed program was:" >&5
34191+sed 's/^/| /' conftest.$ac_ext >&5
34192+
34193+ ac_header_preproc=no
34194+fi
34195+rm -f conftest.err conftest.$ac_ext
34196+echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34197+echo "${ECHO_T}$ac_header_preproc" >&6
34198+
34199+# So? What about this header?
34200+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34201+ yes:no: )
34202+ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34203+echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34204+ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34205+echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34206+ ac_header_preproc=yes
34207+ ;;
34208+ no:yes:* )
34209+ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34210+echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34211+ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34212+echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34213+ { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34214+echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34215+ { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34216+echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
34217+ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34218+echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34219+ { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34220+echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34221+ (
34222+ cat <<\_ASBOX
34223+## ------------------------------------------ ##
34224+## Report this to the AC_PACKAGE_NAME lists. ##
34225+## ------------------------------------------ ##
34226+_ASBOX
34227+ ) |
34228+ sed "s/^/$as_me: WARNING: /" >&2
34229+ ;;
34230+esac
34231+echo "$as_me:$LINENO: checking for $ac_header" >&5
34232+echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34233+if eval "test \"\${$as_ac_Header+set}\" = set"; then
34234+ echo $ECHO_N "(cached) $ECHO_C" >&6
34235+else
34236+ eval "$as_ac_Header=\$ac_header_preproc"
34237+fi
34238+echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34239+echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34240+
34241+fi
34242+if test `eval echo '${'$as_ac_Header'}'` = yes; then
34243+ cat >>confdefs.h <<_ACEOF
34244+#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34245+_ACEOF
34246+
34247+else
34248+
34249+ { { echo "$as_me:$LINENO: error: Can't find synce.h" >&5
34250+echo "$as_me: error: Can't find synce.h" >&2;}
34251+ { (exit 1); exit 1; }; }
34252+
34253+
34254+fi
34255+
34256+done
34257+
34258+
34259+
34260+# Check whether --with-librapi2 or --without-librapi2 was given.
34261+if test "${with_librapi2+set}" = set; then
34262+ withval="$with_librapi2"
34263+
34264+ CPPFLAGS="$CPPFLAGS -I${withval}/include"
34265+ LDFLAGS="$LDFLAGS -L${withval}/lib"
34266+
34267+
34268+fi;
34269+
34270+
34271+# Check whether --with-librapi2-include or --without-librapi2-include was given.
34272+if test "${with_librapi2_include+set}" = set; then
34273+ withval="$with_librapi2_include"
34274+
34275+ CPPFLAGS="$CPPFLAGS -I${withval}"
34276+
34277+
34278+fi;
34279+
34280+
34281+# Check whether --with-librapi2-lib or --without-librapi2-lib was given.
34282+if test "${with_librapi2_lib+set}" = set; then
34283+ withval="$with_librapi2_lib"
34284+
34285+ LDFLAGS="$LDFLAGS -L${withval}"
34286+
34287+
34288+fi;
34289+
34290+
34291+echo "$as_me:$LINENO: checking for CeRapiInit in -lrapi" >&5
34292+echo $ECHO_N "checking for CeRapiInit in -lrapi... $ECHO_C" >&6
34293+if test "${ac_cv_lib_rapi_CeRapiInit+set}" = set; then
34294+ echo $ECHO_N "(cached) $ECHO_C" >&6
34295+else
34296+ ac_check_lib_save_LIBS=$LIBS
34297+LIBS="-lrapi $LIBS"
34298+cat >conftest.$ac_ext <<_ACEOF
34299+/* confdefs.h. */
34300+_ACEOF
34301+cat confdefs.h >>conftest.$ac_ext
34302+cat >>conftest.$ac_ext <<_ACEOF
34303+/* end confdefs.h. */
34304+
34305+/* Override any gcc2 internal prototype to avoid an error. */
34306+#ifdef __cplusplus
34307+extern "C"
34308+#endif
34309+/* We use char because int might match the return type of a gcc2
34310+ builtin and then its argument prototype would still apply. */
34311+char CeRapiInit ();
34312+int
34313+main ()
34314+{
34315+CeRapiInit ();
34316+ ;
34317+ return 0;
34318+}
34319+_ACEOF
34320+rm -f conftest.$ac_objext conftest$ac_exeext
34321+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34322+ (eval $ac_link) 2>conftest.er1
34323+ ac_status=$?
34324+ grep -v '^ *+' conftest.er1 >conftest.err
34325+ rm -f conftest.er1
34326+ cat conftest.err >&5
34327+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
34328+ (exit $ac_status); } &&
34329+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34330+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34331+ (eval $ac_try) 2>&5
34332+ ac_status=$?
34333+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
34334+ (exit $ac_status); }; } &&
34335+ { ac_try='test -s conftest$ac_exeext'
34336+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34337+ (eval $ac_try) 2>&5
34338+ ac_status=$?
34339+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
34340+ (exit $ac_status); }; }; then
34341+ ac_cv_lib_rapi_CeRapiInit=yes
34342+else
34343+ echo "$as_me: failed program was:" >&5
34344+sed 's/^/| /' conftest.$ac_ext >&5
34345+
34346+ac_cv_lib_rapi_CeRapiInit=no
34347+fi
34348+rm -f conftest.err conftest.$ac_objext \
34349+ conftest$ac_exeext conftest.$ac_ext
34350+LIBS=$ac_check_lib_save_LIBS
34351+fi
34352+echo "$as_me:$LINENO: result: $ac_cv_lib_rapi_CeRapiInit" >&5
34353+echo "${ECHO_T}$ac_cv_lib_rapi_CeRapiInit" >&6
34354+if test $ac_cv_lib_rapi_CeRapiInit = yes; then
34355+ cat >>confdefs.h <<_ACEOF
34356+#define HAVE_LIBRAPI 1
34357+_ACEOF
34358+
34359+ LIBS="-lrapi $LIBS"
34360+
34361+else
34362+
34363+ { { echo "$as_me:$LINENO: error: Can't find RAPI library" >&5
34364+echo "$as_me: error: Can't find RAPI library" >&2;}
34365+ { (exit 1); exit 1; }; }
34366+
34367+
34368+fi
34369+
34370+
34371+
34372+for ac_header in rapi.h
34373+do
34374+as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34375+if eval "test \"\${$as_ac_Header+set}\" = set"; then
34376+ echo "$as_me:$LINENO: checking for $ac_header" >&5
34377+echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34378+if eval "test \"\${$as_ac_Header+set}\" = set"; then
34379+ echo $ECHO_N "(cached) $ECHO_C" >&6
34380+fi
34381+echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34382+echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34383+else
34384+ # Is the header compilable?
34385+echo "$as_me:$LINENO: checking $ac_header usability" >&5
34386+echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34387+cat >conftest.$ac_ext <<_ACEOF
34388+/* confdefs.h. */
34389+_ACEOF
34390+cat confdefs.h >>conftest.$ac_ext
34391+cat >>conftest.$ac_ext <<_ACEOF
34392+/* end confdefs.h. */
34393+$ac_includes_default
34394+#include <$ac_header>
34395+_ACEOF
34396+rm -f conftest.$ac_objext
34397+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34398+ (eval $ac_compile) 2>conftest.er1
34399+ ac_status=$?
34400+ grep -v '^ *+' conftest.er1 >conftest.err
34401+ rm -f conftest.er1
34402+ cat conftest.err >&5
34403+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
34404+ (exit $ac_status); } &&
34405+ { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34406+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34407+ (eval $ac_try) 2>&5
34408+ ac_status=$?
34409+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
34410+ (exit $ac_status); }; } &&
34411+ { ac_try='test -s conftest.$ac_objext'
34412+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34413+ (eval $ac_try) 2>&5
34414+ ac_status=$?
34415+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
34416+ (exit $ac_status); }; }; then
34417+ ac_header_compiler=yes
34418+else
34419+ echo "$as_me: failed program was:" >&5
34420+sed 's/^/| /' conftest.$ac_ext >&5
34421+
34422+ac_header_compiler=no
34423+fi
34424+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34425+echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34426+echo "${ECHO_T}$ac_header_compiler" >&6
34427+
34428+# Is the header present?
34429+echo "$as_me:$LINENO: checking $ac_header presence" >&5
34430+echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34431+cat >conftest.$ac_ext <<_ACEOF
34432+/* confdefs.h. */
34433+_ACEOF
34434+cat confdefs.h >>conftest.$ac_ext
34435+cat >>conftest.$ac_ext <<_ACEOF
34436+/* end confdefs.h. */
34437+#include <$ac_header>
34438+_ACEOF
34439+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34440+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34441+ ac_status=$?
34442+ grep -v '^ *+' conftest.er1 >conftest.err
34443+ rm -f conftest.er1
34444+ cat conftest.err >&5
34445+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
34446+ (exit $ac_status); } >/dev/null; then
34447+ if test -s conftest.err; then
34448+ ac_cpp_err=$ac_c_preproc_warn_flag
34449+ ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34450+ else
34451+ ac_cpp_err=
34452+ fi
34453+else
34454+ ac_cpp_err=yes
34455+fi
34456+if test -z "$ac_cpp_err"; then
34457+ ac_header_preproc=yes
34458+else
34459+ echo "$as_me: failed program was:" >&5
34460+sed 's/^/| /' conftest.$ac_ext >&5
34461+
34462+ ac_header_preproc=no
34463+fi
34464+rm -f conftest.err conftest.$ac_ext
34465+echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34466+echo "${ECHO_T}$ac_header_preproc" >&6
34467+
34468+# So? What about this header?
34469+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34470+ yes:no: )
34471+ { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34472+echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34473+ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34474+echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34475+ ac_header_preproc=yes
34476+ ;;
34477+ no:yes:* )
34478+ { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34479+echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34480+ { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34481+echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34482+ { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34483+echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34484+ { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34485+echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
34486+ { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34487+echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34488+ { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34489+echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34490+ (
34491+ cat <<\_ASBOX
34492+## ------------------------------------------ ##
34493+## Report this to the AC_PACKAGE_NAME lists. ##
34494+## ------------------------------------------ ##
34495+_ASBOX
34496+ ) |
34497+ sed "s/^/$as_me: WARNING: /" >&2
34498+ ;;
34499+esac
34500+echo "$as_me:$LINENO: checking for $ac_header" >&5
34501+echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34502+if eval "test \"\${$as_ac_Header+set}\" = set"; then
34503+ echo $ECHO_N "(cached) $ECHO_C" >&6
34504+else
34505+ eval "$as_ac_Header=\$ac_header_preproc"
34506+fi
34507+echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34508+echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34509+
34510+fi
34511+if test `eval echo '${'$as_ac_Header'}'` = yes; then
34512+ cat >>confdefs.h <<_ACEOF
34513+#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34514+_ACEOF
34515+
34516+else
34517+
34518+ { { echo "$as_me:$LINENO: error: Can't find rapi.h" >&5
34519+echo "$as_me: error: Can't find rapi.h" >&2;}
34520+ { (exit 1); exit 1; }; }
34521+
34522+
34523+fi
34524+
34525+done
34526+
34527+
34528+ ac_config_files="$ac_config_files Makefile mal-files/Makefile mal-files/client/Makefile"
34529+cat >confcache <<\_ACEOF
34530+# This file is a shell script that caches the results of configure
34531+# tests run on this system so they can be shared between configure
34532+# scripts and configure runs, see configure's option --config-cache.
34533+# It is not useful on other systems. If it contains results you don't
34534+# want to keep, you may remove or edit it.
34535+#
34536+# config.status only pays attention to the cache file if you give it
34537+# the --recheck option to rerun configure.
34538+#
34539+# `ac_cv_env_foo' variables (set or unset) will be overridden when
34540+# loading this file, other *unset* `ac_cv_foo' will be assigned the
34541+# following values.
34542+
34543+_ACEOF
34544+
34545+# The following way of writing the cache mishandles newlines in values,
34546+# but we know of no workaround that is simple, portable, and efficient.
34547+# So, don't put newlines in cache variables' values.
34548+# Ultrix sh set writes to stderr and can't be redirected directly,
34549+# and sets the high bit in the cache file unless we assign to the vars.
34550+{
34551+ (set) 2>&1 |
34552+ case `(ac_space=' '; set | grep ac_space) 2>&1` in
34553+ *ac_space=\ *)
34554+ # `set' does not quote correctly, so add quotes (double-quote
34555+ # substitution turns \\\\ into \\, and sed turns \\ into \).
34556+ sed -n \
34557+ "s/'/'\\\\''/g;
34558+ s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34559+ ;;
34560+ *)
34561+ # `set' quotes correctly as required by POSIX, so do not add quotes.
34562+ sed -n \
34563+ "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
34564+ ;;
34565+ esac;
34566+} |
34567+ sed '
34568+ t clear
34569+ : clear
34570+ s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34571+ t end
34572+ /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34573+ : end' >>confcache
34574+if diff $cache_file confcache >/dev/null 2>&1; then :; else
34575+ if test -w $cache_file; then
34576+ test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
34577+ cat confcache >$cache_file
34578+ else
34579+ echo "not updating unwritable cache $cache_file"
34580+ fi
34581+fi
34582+rm -f confcache
34583+
34584+test "x$prefix" = xNONE && prefix=$ac_default_prefix
34585+# Let make expand exec_prefix.
34586+test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34587+
34588+# VPATH may cause trouble with some makes, so we remove $(srcdir),
34589+# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34590+# trailing colons and then remove the whole line if VPATH becomes empty
34591+# (actually we leave an empty line to preserve line numbers).
34592+if test "x$srcdir" = x.; then
34593+ ac_vpsub='/^[ ]*VPATH[ ]*=/{
34594+s/:*\$(srcdir):*/:/;
34595+s/:*\${srcdir}:*/:/;
34596+s/:*@srcdir@:*/:/;
34597+s/^\([^=]*=[ ]*\):*/\1/;
34598+s/:*$//;
34599+s/^[^=]*=[ ]*$//;
34600+}'
34601+fi
34602+
34603+DEFS=-DHAVE_CONFIG_H
34604+
34605+ac_libobjs=
34606+ac_ltlibobjs=
34607+for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34608+ # 1. Remove the extension, and $U if already installed.
34609+ ac_i=`echo "$ac_i" |
34610+ sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
34611+ # 2. Add them.
34612+ ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
34613+ ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
34614+done
34615+LIBOBJS=$ac_libobjs
34616+
34617+LTLIBOBJS=$ac_ltlibobjs
34618+
34619+
34620+if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
34621+ { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
34622+Usually this means the macro was only invoked conditionally." >&5
34623+echo "$as_me: error: conditional \"AMDEP\" was never defined.
34624+Usually this means the macro was only invoked conditionally." >&2;}
34625+ { (exit 1); exit 1; }; }
34626+fi
34627+if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
34628+ { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
34629+Usually this means the macro was only invoked conditionally." >&5
34630+echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
34631+Usually this means the macro was only invoked conditionally." >&2;}
34632+ { (exit 1); exit 1; }; }
34633+fi
34634+if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
34635+ { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
34636+Usually this means the macro was only invoked conditionally." >&5
34637+echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
34638+Usually this means the macro was only invoked conditionally." >&2;}
34639+ { (exit 1); exit 1; }; }
34640+fi
34641+if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
34642+ { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
34643+Usually this means the macro was only invoked conditionally." >&5
34644+echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
34645+Usually this means the macro was only invoked conditionally." >&2;}
34646+ { (exit 1); exit 1; }; }
34647+fi
34648+
34649+: ${CONFIG_STATUS=./config.status}
34650+ac_clean_files_save=$ac_clean_files
34651+ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34652+{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34653+echo "$as_me: creating $CONFIG_STATUS" >&6;}
34654+cat >$CONFIG_STATUS <<_ACEOF
34655+#! $SHELL
34656+# Generated by $as_me.
34657+# Run this file to recreate the current configuration.
34658+# Compiler output produced by configure, useful for debugging
34659+# configure, is in config.log if it exists.
34660+
34661+debug=false
34662+ac_cs_recheck=false
34663+ac_cs_silent=false
34664+SHELL=\${CONFIG_SHELL-$SHELL}
34665+_ACEOF
34666+
34667+cat >>$CONFIG_STATUS <<\_ACEOF
34668+## --------------------- ##
34669+## M4sh Initialization. ##
34670+## --------------------- ##
34671+
34672+# Be Bourne compatible
34673+if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34674+ emulate sh
34675+ NULLCMD=:
34676+ # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34677+ # is contrary to our usage. Disable this feature.
34678+ alias -g '${1+"$@"}'='"$@"'
34679+elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
34680+ set -o posix
34681+fi
34682+DUALCASE=1; export DUALCASE # for MKS sh
34683+
34684+# Support unset when possible.
34685+if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34686+ as_unset=unset
34687+else
34688+ as_unset=false
34689+fi
34690+
34691+
34692+# Work around bugs in pre-3.0 UWIN ksh.
34693+$as_unset ENV MAIL MAILPATH
34694+PS1='$ '
34695+PS2='> '
34696+PS4='+ '
34697+
34698+# NLS nuisances.
34699+for as_var in \
34700+ LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34701+ LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34702+ LC_TELEPHONE LC_TIME
34703+do
34704+ if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34705+ eval $as_var=C; export $as_var
34706+ else
34707+ $as_unset $as_var
34708+ fi
34709+done
34710+
34711+# Required to use basename.
34712+if expr a : '\(a\)' >/dev/null 2>&1; then
34713+ as_expr=expr
34714+else
34715+ as_expr=false
34716+fi
34717+
34718+if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
34719+ as_basename=basename
34720+else
34721+ as_basename=false
34722+fi
34723+
34724+
34725+# Name of the executable.
34726+as_me=`$as_basename "$0" ||
34727+$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34728+ X"$0" : 'X\(//\)$' \| \
34729+ X"$0" : 'X\(/\)$' \| \
34730+ . : '\(.\)' 2>/dev/null ||
34731+echo X/"$0" |
34732+ sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
34733+ /^X\/\(\/\/\)$/{ s//\1/; q; }
34734+ /^X\/\(\/\).*/{ s//\1/; q; }
34735+ s/.*/./; q'`
34736+
34737+
34738+# PATH needs CR, and LINENO needs CR and PATH.
34739+# Avoid depending upon Character Ranges.
34740+as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34741+as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34742+as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34743+as_cr_digits='0123456789'
34744+as_cr_alnum=$as_cr_Letters$as_cr_digits
34745+
34746+# The user is always right.
34747+if test "${PATH_SEPARATOR+set}" != set; then
34748+ echo "#! /bin/sh" >conf$$.sh
34749+ echo "exit 0" >>conf$$.sh
34750+ chmod +x conf$$.sh
34751+ if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34752+ PATH_SEPARATOR=';'
34753+ else
34754+ PATH_SEPARATOR=:
34755+ fi
34756+ rm -f conf$$.sh
34757+fi
34758+
34759+
34760+ as_lineno_1=$LINENO
34761+ as_lineno_2=$LINENO
34762+ as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
34763+ test "x$as_lineno_1" != "x$as_lineno_2" &&
34764+ test "x$as_lineno_3" = "x$as_lineno_2" || {
34765+ # Find who we are. Look in the path if we contain no path at all
34766+ # relative or not.
34767+ case $0 in
34768+ *[\\/]* ) as_myself=$0 ;;
34769+ *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34770+for as_dir in $PATH
34771+do
34772+ IFS=$as_save_IFS
34773+ test -z "$as_dir" && as_dir=.
34774+ test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34775+done
34776+
34777+ ;;
34778+ esac
34779+ # We did not find ourselves, most probably we were run as `sh COMMAND'
34780+ # in which case we are not to be found in the path.
34781+ if test "x$as_myself" = x; then
34782+ as_myself=$0
34783+ fi
34784+ if test ! -f "$as_myself"; then
34785+ { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
34786+echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
34787+ { (exit 1); exit 1; }; }
34788+ fi
34789+ case $CONFIG_SHELL in
34790+ '')
34791+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34792+for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
34793+do
34794+ IFS=$as_save_IFS
34795+ test -z "$as_dir" && as_dir=.
34796+ for as_base in sh bash ksh sh5; do
34797+ case $as_dir in
34798+ /*)
34799+ if ("$as_dir/$as_base" -c '
34800+ as_lineno_1=$LINENO
34801+ as_lineno_2=$LINENO
34802+ as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
34803+ test "x$as_lineno_1" != "x$as_lineno_2" &&
34804+ test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
34805+ $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
34806+ $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
34807+ CONFIG_SHELL=$as_dir/$as_base
34808+ export CONFIG_SHELL
34809+ exec "$CONFIG_SHELL" "$0" ${1+"$@"}
34810+ fi;;
34811+ esac
34812+ done
34813+done
34814+;;
34815+ esac
34816+
34817+ # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34818+ # uniformly replaced by the line number. The first 'sed' inserts a
34819+ # line-number line before each line; the second 'sed' does the real
34820+ # work. The second script uses 'N' to pair each line-number line
34821+ # with the numbered line, and appends trailing '-' during
34822+ # substitution so that $LINENO is not a special case at line end.
34823+ # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34824+ # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
34825+ sed '=' <$as_myself |
34826+ sed '
34827+ N
34828+ s,$,-,
34829+ : loop
34830+ s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
34831+ t loop
34832+ s,-$,,
34833+ s,^['$as_cr_digits']*\n,,
34834+ ' >$as_me.lineno &&
34835+ chmod +x $as_me.lineno ||
34836+ { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
34837+echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
34838+ { (exit 1); exit 1; }; }
34839+
34840+ # Don't try to exec as it changes $[0], causing all sort of problems
34841+ # (the dirname of $[0] is not the place where we might find the
34842+ # original and so on. Autoconf is especially sensible to this).
34843+ . ./$as_me.lineno
34844+ # Exit status is that of the last command.
34845+ exit
34846+}
34847+
34848+
34849+case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
34850+ *c*,-n*) ECHO_N= ECHO_C='
34851+' ECHO_T=' ' ;;
34852+ *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
34853+ *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
34854+esac
34855+
34856+if expr a : '\(a\)' >/dev/null 2>&1; then
34857+ as_expr=expr
34858+else
34859+ as_expr=false
34860+fi
34861+
34862+rm -f conf$$ conf$$.exe conf$$.file
34863+echo >conf$$.file
34864+if ln -s conf$$.file conf$$ 2>/dev/null; then
34865+ # We could just check for DJGPP; but this test a) works b) is more generic
34866+ # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
34867+ if test -f conf$$.exe; then
34868+ # Don't use ln at all; we don't have any links
34869+ as_ln_s='cp -p'
34870+ else
34871+ as_ln_s='ln -s'
34872+ fi
34873+elif ln conf$$.file conf$$ 2>/dev/null; then
34874+ as_ln_s=ln
34875+else
34876+ as_ln_s='cp -p'
34877+fi
34878+rm -f conf$$ conf$$.exe conf$$.file
34879+
34880+if mkdir -p . 2>/dev/null; then
34881+ as_mkdir_p=:
34882+else
34883+ test -d ./-p && rmdir ./-p
34884+ as_mkdir_p=false
34885+fi
34886+
34887+as_executable_p="test -f"
34888+
34889+# Sed expression to map a string onto a valid CPP name.
34890+as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34891+
34892+# Sed expression to map a string onto a valid variable name.
34893+as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34894+
34895+
34896+# IFS
34897+# We need space, tab and new line, in precisely that order.
34898+as_nl='
34899+'
34900+IFS=" $as_nl"
34901+
34902+# CDPATH.
34903+$as_unset CDPATH
34904+
34905+exec 6>&1
34906+
34907+# Open the log real soon, to keep \$[0] and so on meaningful, and to
34908+# report actual input values of CONFIG_FILES etc. instead of their
34909+# values after options handling. Logging --version etc. is OK.
34910+exec 5>>config.log
34911+{
34912+ echo
34913+ sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34914+## Running $as_me. ##
34915+_ASBOX
34916+} >&5
34917+cat >&5 <<_CSEOF
34918+
34919+This file was extended by $as_me, which was
34920+generated by GNU Autoconf 2.59. Invocation command line was
34921+
34922+ CONFIG_FILES = $CONFIG_FILES
34923+ CONFIG_HEADERS = $CONFIG_HEADERS
34924+ CONFIG_LINKS = $CONFIG_LINKS
34925+ CONFIG_COMMANDS = $CONFIG_COMMANDS
34926+ $ $0 $@
34927+
34928+_CSEOF
34929+echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
34930+echo >&5
34931+_ACEOF
34932+
34933+# Files that config.status was made for.
34934+if test -n "$ac_config_files"; then
34935+ echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
34936+fi
34937+
34938+if test -n "$ac_config_headers"; then
34939+ echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
34940+fi
34941+
34942+if test -n "$ac_config_links"; then
34943+ echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
34944+fi
34945+
34946+if test -n "$ac_config_commands"; then
34947+ echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
34948+fi
34949+
34950+cat >>$CONFIG_STATUS <<\_ACEOF
34951+
34952+ac_cs_usage="\
34953+\`$as_me' instantiates files from templates according to the
34954+current configuration.
34955+
34956+Usage: $0 [OPTIONS] [FILE]...
34957+
34958+ -h, --help print this help, then exit
34959+ -V, --version print version number, then exit
34960+ -q, --quiet do not print progress messages
34961+ -d, --debug don't remove temporary files
34962+ --recheck update $as_me by reconfiguring in the same conditions
34963+ --file=FILE[:TEMPLATE]
34964+ instantiate the configuration file FILE
34965+ --header=FILE[:TEMPLATE]
34966+ instantiate the configuration header FILE
34967+
34968+Configuration files:
34969+$config_files
34970+
34971+Configuration headers:
34972+$config_headers
34973+
34974+Configuration commands:
34975+$config_commands
34976+
34977+Report bugs to <bug-autoconf@gnu.org>."
34978+_ACEOF
34979+
34980+cat >>$CONFIG_STATUS <<_ACEOF
34981+ac_cs_version="\\
34982+config.status
34983+configured by $0, generated by GNU Autoconf 2.59,
34984+ with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
34985+
34986+Copyright (C) 2003 Free Software Foundation, Inc.
34987+This config.status script is free software; the Free Software Foundation
34988+gives unlimited permission to copy, distribute and modify it."
34989+srcdir=$srcdir
34990+INSTALL="$INSTALL"
34991+_ACEOF
34992+
34993+cat >>$CONFIG_STATUS <<\_ACEOF
34994+# If no file are specified by the user, then we need to provide default
34995+# value. By we need to know if files were specified by the user.
34996+ac_need_defaults=:
34997+while test $# != 0
34998+do
34999+ case $1 in
35000+ --*=*)
35001+ ac_option=`expr "x$1" : 'x\([^=]*\)='`
35002+ ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
35003+ ac_shift=:
35004+ ;;
35005+ -*)
35006+ ac_option=$1
35007+ ac_optarg=$2
35008+ ac_shift=shift
35009+ ;;
35010+ *) # This is not an option, so the user has probably given explicit
35011+ # arguments.
35012+ ac_option=$1
35013+ ac_need_defaults=false;;
35014+ esac
35015+
35016+ case $ac_option in
35017+ # Handling of the options.
35018+_ACEOF
35019+cat >>$CONFIG_STATUS <<\_ACEOF
35020+ -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35021+ ac_cs_recheck=: ;;
35022+ --version | --vers* | -V )
35023+ echo "$ac_cs_version"; exit 0 ;;
35024+ --he | --h)
35025+ # Conflict between --help and --header
35026+ { { echo "$as_me:$LINENO: error: ambiguous option: $1
35027+Try \`$0 --help' for more information." >&5
35028+echo "$as_me: error: ambiguous option: $1
35029+Try \`$0 --help' for more information." >&2;}
35030+ { (exit 1); exit 1; }; };;
35031+ --help | --hel | -h )
35032+ echo "$ac_cs_usage"; exit 0 ;;
35033+ --debug | --d* | -d )
35034+ debug=: ;;
35035+ --file | --fil | --fi | --f )
35036+ $ac_shift
35037+ CONFIG_FILES="$CONFIG_FILES $ac_optarg"
35038+ ac_need_defaults=false;;
35039+ --header | --heade | --head | --hea )
35040+ $ac_shift
35041+ CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
35042+ ac_need_defaults=false;;
35043+ -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35044+ | -silent | --silent | --silen | --sile | --sil | --si | --s)
35045+ ac_cs_silent=: ;;
35046+
35047+ # This is an error.
35048+ -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
35049+Try \`$0 --help' for more information." >&5
35050+echo "$as_me: error: unrecognized option: $1
35051+Try \`$0 --help' for more information." >&2;}
35052+ { (exit 1); exit 1; }; } ;;
35053+
35054+ *) ac_config_targets="$ac_config_targets $1" ;;
35055+
35056+ esac
35057+ shift
35058+done
35059+
35060+ac_configure_extra_args=
35061+
35062+if $ac_cs_silent; then
35063+ exec 6>/dev/null
35064+ ac_configure_extra_args="$ac_configure_extra_args --silent"
35065+fi
35066+
35067+_ACEOF
35068+cat >>$CONFIG_STATUS <<_ACEOF
35069+if \$ac_cs_recheck; then
35070+ echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35071+ exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35072+fi
35073+
35074+_ACEOF
35075+
35076+cat >>$CONFIG_STATUS <<_ACEOF
35077+#
35078+# INIT-COMMANDS section.
35079+#
35080+
35081+AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
35082+
35083+_ACEOF
35084+
35085+
35086+
35087+cat >>$CONFIG_STATUS <<\_ACEOF
35088+for ac_config_target in $ac_config_targets
35089+do
35090+ case "$ac_config_target" in
35091+ # Handling of arguments.
35092+ "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
35093+ "mal-files/Makefile" ) CONFIG_FILES="$CONFIG_FILES mal-files/Makefile" ;;
35094+ "mal-files/client/Makefile" ) CONFIG_FILES="$CONFIG_FILES mal-files/client/Makefile" ;;
35095+ "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
35096+ "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
35097+ *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35098+echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35099+ { (exit 1); exit 1; }; };;
35100+ esac
35101+done
35102+
35103+# If the user did not use the arguments to specify the items to instantiate,
35104+# then the envvar interface is used. Set only those that are not.
35105+# We use the long form for the default assignment because of an extremely
35106+# bizarre bug on SunOS 4.1.3.
35107+if $ac_need_defaults; then
35108+ test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35109+ test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35110+ test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35111+fi
35112+
35113+# Have a temporary directory for convenience. Make it in the build tree
35114+# simply because there is no reason to put it here, and in addition,
35115+# creating and moving files from /tmp can sometimes cause problems.
35116+# Create a temporary directory, and hook for its removal unless debugging.
35117+$debug ||
35118+{
35119+ trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
35120+ trap '{ (exit 1); exit 1; }' 1 2 13 15
35121+}
35122+
35123+# Create a (secure) tmp directory for tmp files.
35124+
35125+{
35126+ tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
35127+ test -n "$tmp" && test -d "$tmp"
35128+} ||
35129+{
35130+ tmp=./confstat$$-$RANDOM
35131+ (umask 077 && mkdir $tmp)
35132+} ||
35133+{
35134+ echo "$me: cannot create a temporary directory in ." >&2
35135+ { (exit 1); exit 1; }
35136+}
35137+
35138+_ACEOF
35139+
35140+cat >>$CONFIG_STATUS <<_ACEOF
35141+
35142+#
35143+# CONFIG_FILES section.
35144+#
35145+
35146+# No need to generate the scripts if there are no CONFIG_FILES.
35147+# This happens for instance when ./config.status config.h
35148+if test -n "\$CONFIG_FILES"; then
35149+ # Protect against being on the right side of a sed subst in config.status.
35150+ sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
35151+ s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
35152+s,@SHELL@,$SHELL,;t t
35153+s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
35154+s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
35155+s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
35156+s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
35157+s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
35158+s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
35159+s,@exec_prefix@,$exec_prefix,;t t
35160+s,@prefix@,$prefix,;t t
35161+s,@program_transform_name@,$program_transform_name,;t t
35162+s,@bindir@,$bindir,;t t
35163+s,@sbindir@,$sbindir,;t t
35164+s,@libexecdir@,$libexecdir,;t t
35165+s,@datadir@,$datadir,;t t
35166+s,@sysconfdir@,$sysconfdir,;t t
35167+s,@sharedstatedir@,$sharedstatedir,;t t
35168+s,@localstatedir@,$localstatedir,;t t
35169+s,@libdir@,$libdir,;t t
35170+s,@includedir@,$includedir,;t t
35171+s,@oldincludedir@,$oldincludedir,;t t
35172+s,@infodir@,$infodir,;t t
35173+s,@mandir@,$mandir,;t t
35174+s,@build_alias@,$build_alias,;t t
35175+s,@host_alias@,$host_alias,;t t
35176+s,@target_alias@,$target_alias,;t t
35177+s,@DEFS@,$DEFS,;t t
35178+s,@ECHO_C@,$ECHO_C,;t t
35179+s,@ECHO_N@,$ECHO_N,;t t
35180+s,@ECHO_T@,$ECHO_T,;t t
35181+s,@LIBS@,$LIBS,;t t
35182+s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
35183+s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
35184+s,@INSTALL_DATA@,$INSTALL_DATA,;t t
35185+s,@CYGPATH_W@,$CYGPATH_W,;t t
35186+s,@PACKAGE@,$PACKAGE,;t t
35187+s,@VERSION@,$VERSION,;t t
35188+s,@ACLOCAL@,$ACLOCAL,;t t
35189+s,@AUTOCONF@,$AUTOCONF,;t t
35190+s,@AUTOMAKE@,$AUTOMAKE,;t t
35191+s,@AUTOHEADER@,$AUTOHEADER,;t t
35192+s,@MAKEINFO@,$MAKEINFO,;t t
35193+s,@AMTAR@,$AMTAR,;t t
35194+s,@install_sh@,$install_sh,;t t
35195+s,@STRIP@,$STRIP,;t t
35196+s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
35197+s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
35198+s,@AWK@,$AWK,;t t
35199+s,@SET_MAKE@,$SET_MAKE,;t t
35200+s,@am__leading_dot@,$am__leading_dot,;t t
35201+s,@CC@,$CC,;t t
35202+s,@CFLAGS@,$CFLAGS,;t t
35203+s,@LDFLAGS@,$LDFLAGS,;t t
35204+s,@CPPFLAGS@,$CPPFLAGS,;t t
35205+s,@ac_ct_CC@,$ac_ct_CC,;t t
35206+s,@EXEEXT@,$EXEEXT,;t t
35207+s,@OBJEXT@,$OBJEXT,;t t
35208+s,@DEPDIR@,$DEPDIR,;t t
35209+s,@am__include@,$am__include,;t t
35210+s,@am__quote@,$am__quote,;t t
35211+s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
35212+s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
35213+s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
35214+s,@CCDEPMODE@,$CCDEPMODE,;t t
35215+s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
35216+s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
35217+s,@build@,$build,;t t
35218+s,@build_cpu@,$build_cpu,;t t
35219+s,@build_vendor@,$build_vendor,;t t
35220+s,@build_os@,$build_os,;t t
35221+s,@host@,$host,;t t
35222+s,@host_cpu@,$host_cpu,;t t
35223+s,@host_vendor@,$host_vendor,;t t
35224+s,@host_os@,$host_os,;t t
35225+s,@EGREP@,$EGREP,;t t
35226+s,@LN_S@,$LN_S,;t t
35227+s,@ECHO@,$ECHO,;t t
35228+s,@AR@,$AR,;t t
35229+s,@ac_ct_AR@,$ac_ct_AR,;t t
35230+s,@RANLIB@,$RANLIB,;t t
35231+s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
35232+s,@CPP@,$CPP,;t t
35233+s,@CXX@,$CXX,;t t
35234+s,@CXXFLAGS@,$CXXFLAGS,;t t
35235+s,@ac_ct_CXX@,$ac_ct_CXX,;t t
35236+s,@CXXDEPMODE@,$CXXDEPMODE,;t t
35237+s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
35238+s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
35239+s,@CXXCPP@,$CXXCPP,;t t
35240+s,@F77@,$F77,;t t
35241+s,@FFLAGS@,$FFLAGS,;t t
35242+s,@ac_ct_F77@,$ac_ct_F77,;t t
35243+s,@LIBTOOL@,$LIBTOOL,;t t
35244+s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
35245+s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
35246+s,@MAINT@,$MAINT,;t t
35247+s,@LIBOBJS@,$LIBOBJS,;t t
35248+s,@LTLIBOBJS@,$LTLIBOBJS,;t t
35249+CEOF
35250+
35251+_ACEOF
35252+
35253+ cat >>$CONFIG_STATUS <<\_ACEOF
35254+ # Split the substitutions into bite-sized pieces for seds with
35255+ # small command number limits, like on Digital OSF/1 and HP-UX.
35256+ ac_max_sed_lines=48
35257+ ac_sed_frag=1 # Number of current file.
35258+ ac_beg=1 # First line for current file.
35259+ ac_end=$ac_max_sed_lines # Line after last line for current file.
35260+ ac_more_lines=:
35261+ ac_sed_cmds=
35262+ while $ac_more_lines; do
35263+ if test $ac_beg -gt 1; then
35264+ sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
35265+ else
35266+ sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
35267+ fi
35268+ if test ! -s $tmp/subs.frag; then
35269+ ac_more_lines=false
35270+ else
35271+ # The purpose of the label and of the branching condition is to
35272+ # speed up the sed processing (if there are no `@' at all, there
35273+ # is no need to browse any of the substitutions).
35274+ # These are the two extra sed commands mentioned above.
35275+ (echo ':t
35276+ /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
35277+ if test -z "$ac_sed_cmds"; then
35278+ ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
35279+ else
35280+ ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
35281+ fi
35282+ ac_sed_frag=`expr $ac_sed_frag + 1`
35283+ ac_beg=$ac_end
35284+ ac_end=`expr $ac_end + $ac_max_sed_lines`
35285+ fi
35286+ done
35287+ if test -z "$ac_sed_cmds"; then
35288+ ac_sed_cmds=cat
35289+ fi
35290+fi # test -n "$CONFIG_FILES"
35291+
35292+_ACEOF
35293+cat >>$CONFIG_STATUS <<\_ACEOF
35294+for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
35295+ # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
35296+ case $ac_file in
35297+ - | *:- | *:-:* ) # input from stdin
35298+ cat >$tmp/stdin
35299+ ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
35300+ ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
35301+ *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
35302+ ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
35303+ * ) ac_file_in=$ac_file.in ;;
35304+ esac
35305+
35306+ # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
35307+ ac_dir=`(dirname "$ac_file") 2>/dev/null ||
35308+$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35309+ X"$ac_file" : 'X\(//\)[^/]' \| \
35310+ X"$ac_file" : 'X\(//\)$' \| \
35311+ X"$ac_file" : 'X\(/\)' \| \
35312+ . : '\(.\)' 2>/dev/null ||
35313+echo X"$ac_file" |
35314+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
35315+ /^X\(\/\/\)[^/].*/{ s//\1/; q; }
35316+ /^X\(\/\/\)$/{ s//\1/; q; }
35317+ /^X\(\/\).*/{ s//\1/; q; }
35318+ s/.*/./; q'`
35319+ { if $as_mkdir_p; then
35320+ mkdir -p "$ac_dir"
35321+ else
35322+ as_dir="$ac_dir"
35323+ as_dirs=
35324+ while test ! -d "$as_dir"; do
35325+ as_dirs="$as_dir $as_dirs"
35326+ as_dir=`(dirname "$as_dir") 2>/dev/null ||
35327+$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35328+ X"$as_dir" : 'X\(//\)[^/]' \| \
35329+ X"$as_dir" : 'X\(//\)$' \| \
35330+ X"$as_dir" : 'X\(/\)' \| \
35331+ . : '\(.\)' 2>/dev/null ||
35332+echo X"$as_dir" |
35333+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
35334+ /^X\(\/\/\)[^/].*/{ s//\1/; q; }
35335+ /^X\(\/\/\)$/{ s//\1/; q; }
35336+ /^X\(\/\).*/{ s//\1/; q; }
35337+ s/.*/./; q'`
35338+ done
35339+ test ! -n "$as_dirs" || mkdir $as_dirs
35340+ fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
35341+echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
35342+ { (exit 1); exit 1; }; }; }
35343+
35344+ ac_builddir=.
35345+
35346+if test "$ac_dir" != .; then
35347+ ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35348+ # A "../" for each directory in $ac_dir_suffix.
35349+ ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
35350+else
35351+ ac_dir_suffix= ac_top_builddir=
35352+fi
35353+
35354+case $srcdir in
35355+ .) # No --srcdir option. We are building in place.
35356+ ac_srcdir=.
35357+ if test -z "$ac_top_builddir"; then
35358+ ac_top_srcdir=.
35359+ else
35360+ ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
35361+ fi ;;
35362+ [\\/]* | ?:[\\/]* ) # Absolute path.
35363+ ac_srcdir=$srcdir$ac_dir_suffix;
35364+ ac_top_srcdir=$srcdir ;;
35365+ *) # Relative path.
35366+ ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
35367+ ac_top_srcdir=$ac_top_builddir$srcdir ;;
35368+esac
35369+
35370+# Do not use `cd foo && pwd` to compute absolute paths, because
35371+# the directories may not exist.
35372+case `pwd` in
35373+.) ac_abs_builddir="$ac_dir";;
35374+*)
35375+ case "$ac_dir" in
35376+ .) ac_abs_builddir=`pwd`;;
35377+ [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
35378+ *) ac_abs_builddir=`pwd`/"$ac_dir";;
35379+ esac;;
35380+esac
35381+case $ac_abs_builddir in
35382+.) ac_abs_top_builddir=${ac_top_builddir}.;;
35383+*)
35384+ case ${ac_top_builddir}. in
35385+ .) ac_abs_top_builddir=$ac_abs_builddir;;
35386+ [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
35387+ *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
35388+ esac;;
35389+esac
35390+case $ac_abs_builddir in
35391+.) ac_abs_srcdir=$ac_srcdir;;
35392+*)
35393+ case $ac_srcdir in
35394+ .) ac_abs_srcdir=$ac_abs_builddir;;
35395+ [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
35396+ *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
35397+ esac;;
35398+esac
35399+case $ac_abs_builddir in
35400+.) ac_abs_top_srcdir=$ac_top_srcdir;;
35401+*)
35402+ case $ac_top_srcdir in
35403+ .) ac_abs_top_srcdir=$ac_abs_builddir;;
35404+ [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
35405+ *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
35406+ esac;;
35407+esac
35408+
35409+
35410+ case $INSTALL in
35411+ [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35412+ *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
35413+ esac
35414+
35415+ # Let's still pretend it is `configure' which instantiates (i.e., don't
35416+ # use $as_me), people would be surprised to read:
35417+ # /* config.h. Generated by config.status. */
35418+ if test x"$ac_file" = x-; then
35419+ configure_input=
35420+ else
35421+ configure_input="$ac_file. "
35422+ fi
35423+ configure_input=$configure_input"Generated from `echo $ac_file_in |
35424+ sed 's,.*/,,'` by configure."
35425+
35426+ # First look for the input files in the build tree, otherwise in the
35427+ # src tree.
35428+ ac_file_inputs=`IFS=:
35429+ for f in $ac_file_in; do
35430+ case $f in
35431+ -) echo $tmp/stdin ;;
35432+ [\\/$]*)
35433+ # Absolute (can't be DOS-style, as IFS=:)
35434+ test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
35435+echo "$as_me: error: cannot find input file: $f" >&2;}
35436+ { (exit 1); exit 1; }; }
35437+ echo "$f";;
35438+ *) # Relative
35439+ if test -f "$f"; then
35440+ # Build tree
35441+ echo "$f"
35442+ elif test -f "$srcdir/$f"; then
35443+ # Source tree
35444+ echo "$srcdir/$f"
35445+ else
35446+ # /dev/null tree
35447+ { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
35448+echo "$as_me: error: cannot find input file: $f" >&2;}
35449+ { (exit 1); exit 1; }; }
35450+ fi;;
35451+ esac
35452+ done` || { (exit 1); exit 1; }
35453+
35454+ if test x"$ac_file" != x-; then
35455+ { echo "$as_me:$LINENO: creating $ac_file" >&5
35456+echo "$as_me: creating $ac_file" >&6;}
35457+ rm -f "$ac_file"
35458+ fi
35459+_ACEOF
35460+cat >>$CONFIG_STATUS <<_ACEOF
35461+ sed "$ac_vpsub
35462+$extrasub
35463+_ACEOF
35464+cat >>$CONFIG_STATUS <<\_ACEOF
35465+:t
35466+/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35467+s,@configure_input@,$configure_input,;t t
35468+s,@srcdir@,$ac_srcdir,;t t
35469+s,@abs_srcdir@,$ac_abs_srcdir,;t t
35470+s,@top_srcdir@,$ac_top_srcdir,;t t
35471+s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
35472+s,@builddir@,$ac_builddir,;t t
35473+s,@abs_builddir@,$ac_abs_builddir,;t t
35474+s,@top_builddir@,$ac_top_builddir,;t t
35475+s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
35476+s,@INSTALL@,$ac_INSTALL,;t t
35477+" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
35478+ rm -f $tmp/stdin
35479+ if test x"$ac_file" != x-; then
35480+ mv $tmp/out $ac_file
35481+ else
35482+ cat $tmp/out
35483+ rm -f $tmp/out
35484+ fi
35485+
35486+done
35487+_ACEOF
35488+cat >>$CONFIG_STATUS <<\_ACEOF
35489+
35490+#
35491+# CONFIG_HEADER section.
35492+#
35493+
35494+# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
35495+# NAME is the cpp macro being defined and VALUE is the value it is being given.
35496+#
35497+# ac_d sets the value in "#define NAME VALUE" lines.
35498+ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
35499+ac_dB='[ ].*$,\1#\2'
35500+ac_dC=' '
35501+ac_dD=',;t'
35502+# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
35503+ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
35504+ac_uB='$,\1#\2define\3'
35505+ac_uC=' '
35506+ac_uD=',;t'
35507+
35508+for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
35509+ # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
35510+ case $ac_file in
35511+ - | *:- | *:-:* ) # input from stdin
35512+ cat >$tmp/stdin
35513+ ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
35514+ ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
35515+ *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
35516+ ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
35517+ * ) ac_file_in=$ac_file.in ;;
35518+ esac
35519+
35520+ test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
35521+echo "$as_me: creating $ac_file" >&6;}
35522+
35523+ # First look for the input files in the build tree, otherwise in the
35524+ # src tree.
35525+ ac_file_inputs=`IFS=:
35526+ for f in $ac_file_in; do
35527+ case $f in
35528+ -) echo $tmp/stdin ;;
35529+ [\\/$]*)
35530+ # Absolute (can't be DOS-style, as IFS=:)
35531+ test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
35532+echo "$as_me: error: cannot find input file: $f" >&2;}
35533+ { (exit 1); exit 1; }; }
35534+ # Do quote $f, to prevent DOS paths from being IFS'd.
35535+ echo "$f";;
35536+ *) # Relative
35537+ if test -f "$f"; then
35538+ # Build tree
35539+ echo "$f"
35540+ elif test -f "$srcdir/$f"; then
35541+ # Source tree
35542+ echo "$srcdir/$f"
35543+ else
35544+ # /dev/null tree
35545+ { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
35546+echo "$as_me: error: cannot find input file: $f" >&2;}
35547+ { (exit 1); exit 1; }; }
35548+ fi;;
35549+ esac
35550+ done` || { (exit 1); exit 1; }
35551+ # Remove the trailing spaces.
35552+ sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
35553+
35554+_ACEOF
35555+
35556+# Transform confdefs.h into two sed scripts, `conftest.defines' and
35557+# `conftest.undefs', that substitutes the proper values into
35558+# config.h.in to produce config.h. The first handles `#define'
35559+# templates, and the second `#undef' templates.
35560+# And first: Protect against being on the right side of a sed subst in
35561+# config.status. Protect against being in an unquoted here document
35562+# in config.status.
35563+rm -f conftest.defines conftest.undefs
35564+# Using a here document instead of a string reduces the quoting nightmare.
35565+# Putting comments in sed scripts is not portable.
35566+#
35567+# `end' is used to avoid that the second main sed command (meant for
35568+# 0-ary CPP macros) applies to n-ary macro definitions.
35569+# See the Autoconf documentation for `clear'.
35570+cat >confdef2sed.sed <<\_ACEOF
35571+s/[\\&,]/\\&/g
35572+s,[\\$`],\\&,g
35573+t clear
35574+: clear
35575+s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
35576+t end
35577+s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
35578+: end
35579+_ACEOF
35580+# If some macros were called several times there might be several times
35581+# the same #defines, which is useless. Nevertheless, we may not want to
35582+# sort them, since we want the *last* AC-DEFINE to be honored.
35583+uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
35584+sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
35585+rm -f confdef2sed.sed
35586+
35587+# This sed command replaces #undef with comments. This is necessary, for
35588+# example, in the case of _POSIX_SOURCE, which is predefined and required
35589+# on some systems where configure will not decide to define it.
35590+cat >>conftest.undefs <<\_ACEOF
35591+s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
35592+_ACEOF
35593+
35594+# Break up conftest.defines because some shells have a limit on the size
35595+# of here documents, and old seds have small limits too (100 cmds).
35596+echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
35597+echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
35598+echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
35599+echo ' :' >>$CONFIG_STATUS
35600+rm -f conftest.tail
35601+while grep . conftest.defines >/dev/null
35602+do
35603+ # Write a limited-size here document to $tmp/defines.sed.
35604+ echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
35605+ # Speed up: don't consider the non `#define' lines.
35606+ echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
35607+ # Work around the forget-to-reset-the-flag bug.
35608+ echo 't clr' >>$CONFIG_STATUS
35609+ echo ': clr' >>$CONFIG_STATUS
35610+ sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
35611+ echo 'CEOF
35612+ sed -f $tmp/defines.sed $tmp/in >$tmp/out
35613+ rm -f $tmp/in
35614+ mv $tmp/out $tmp/in
35615+' >>$CONFIG_STATUS
35616+ sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
35617+ rm -f conftest.defines
35618+ mv conftest.tail conftest.defines
35619+done
35620+rm -f conftest.defines
35621+echo ' fi # grep' >>$CONFIG_STATUS
35622+echo >>$CONFIG_STATUS
35623+
35624+# Break up conftest.undefs because some shells have a limit on the size
35625+# of here documents, and old seds have small limits too (100 cmds).
35626+echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
35627+rm -f conftest.tail
35628+while grep . conftest.undefs >/dev/null
35629+do
35630+ # Write a limited-size here document to $tmp/undefs.sed.
35631+ echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
35632+ # Speed up: don't consider the non `#undef'
35633+ echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
35634+ # Work around the forget-to-reset-the-flag bug.
35635+ echo 't clr' >>$CONFIG_STATUS
35636+ echo ': clr' >>$CONFIG_STATUS
35637+ sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
35638+ echo 'CEOF
35639+ sed -f $tmp/undefs.sed $tmp/in >$tmp/out
35640+ rm -f $tmp/in
35641+ mv $tmp/out $tmp/in
35642+' >>$CONFIG_STATUS
35643+ sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
35644+ rm -f conftest.undefs
35645+ mv conftest.tail conftest.undefs
35646+done
35647+rm -f conftest.undefs
35648+
35649+cat >>$CONFIG_STATUS <<\_ACEOF
35650+ # Let's still pretend it is `configure' which instantiates (i.e., don't
35651+ # use $as_me), people would be surprised to read:
35652+ # /* config.h. Generated by config.status. */
35653+ if test x"$ac_file" = x-; then
35654+ echo "/* Generated by configure. */" >$tmp/config.h
35655+ else
35656+ echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
35657+ fi
35658+ cat $tmp/in >>$tmp/config.h
35659+ rm -f $tmp/in
35660+ if test x"$ac_file" != x-; then
35661+ if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
35662+ { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35663+echo "$as_me: $ac_file is unchanged" >&6;}
35664+ else
35665+ ac_dir=`(dirname "$ac_file") 2>/dev/null ||
35666+$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35667+ X"$ac_file" : 'X\(//\)[^/]' \| \
35668+ X"$ac_file" : 'X\(//\)$' \| \
35669+ X"$ac_file" : 'X\(/\)' \| \
35670+ . : '\(.\)' 2>/dev/null ||
35671+echo X"$ac_file" |
35672+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
35673+ /^X\(\/\/\)[^/].*/{ s//\1/; q; }
35674+ /^X\(\/\/\)$/{ s//\1/; q; }
35675+ /^X\(\/\).*/{ s//\1/; q; }
35676+ s/.*/./; q'`
35677+ { if $as_mkdir_p; then
35678+ mkdir -p "$ac_dir"
35679+ else
35680+ as_dir="$ac_dir"
35681+ as_dirs=
35682+ while test ! -d "$as_dir"; do
35683+ as_dirs="$as_dir $as_dirs"
35684+ as_dir=`(dirname "$as_dir") 2>/dev/null ||
35685+$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35686+ X"$as_dir" : 'X\(//\)[^/]' \| \
35687+ X"$as_dir" : 'X\(//\)$' \| \
35688+ X"$as_dir" : 'X\(/\)' \| \
35689+ . : '\(.\)' 2>/dev/null ||
35690+echo X"$as_dir" |
35691+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
35692+ /^X\(\/\/\)[^/].*/{ s//\1/; q; }
35693+ /^X\(\/\/\)$/{ s//\1/; q; }
35694+ /^X\(\/\).*/{ s//\1/; q; }
35695+ s/.*/./; q'`
35696+ done
35697+ test ! -n "$as_dirs" || mkdir $as_dirs
35698+ fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
35699+echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
35700+ { (exit 1); exit 1; }; }; }
35701+
35702+ rm -f $ac_file
35703+ mv $tmp/config.h $ac_file
35704+ fi
35705+ else
35706+ cat $tmp/config.h
35707+ rm -f $tmp/config.h
35708+ fi
35709+# Compute $ac_file's index in $config_headers.
35710+_am_stamp_count=1
35711+for _am_header in $config_headers :; do
35712+ case $_am_header in
35713+ $ac_file | $ac_file:* )
35714+ break ;;
35715+ * )
35716+ _am_stamp_count=`expr $_am_stamp_count + 1` ;;
35717+ esac
35718+done
35719+echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
35720+$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35721+ X$ac_file : 'X\(//\)[^/]' \| \
35722+ X$ac_file : 'X\(//\)$' \| \
35723+ X$ac_file : 'X\(/\)' \| \
35724+ . : '\(.\)' 2>/dev/null ||
35725+echo X$ac_file |
35726+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
35727+ /^X\(\/\/\)[^/].*/{ s//\1/; q; }
35728+ /^X\(\/\/\)$/{ s//\1/; q; }
35729+ /^X\(\/\).*/{ s//\1/; q; }
35730+ s/.*/./; q'`/stamp-h$_am_stamp_count
35731+done
35732+_ACEOF
35733+cat >>$CONFIG_STATUS <<\_ACEOF
35734+
35735+#
35736+# CONFIG_COMMANDS section.
35737+#
35738+for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
35739+ ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
35740+ ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
35741+ ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
35742+$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35743+ X"$ac_dest" : 'X\(//\)[^/]' \| \
35744+ X"$ac_dest" : 'X\(//\)$' \| \
35745+ X"$ac_dest" : 'X\(/\)' \| \
35746+ . : '\(.\)' 2>/dev/null ||
35747+echo X"$ac_dest" |
35748+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
35749+ /^X\(\/\/\)[^/].*/{ s//\1/; q; }
35750+ /^X\(\/\/\)$/{ s//\1/; q; }
35751+ /^X\(\/\).*/{ s//\1/; q; }
35752+ s/.*/./; q'`
35753+ { if $as_mkdir_p; then
35754+ mkdir -p "$ac_dir"
35755+ else
35756+ as_dir="$ac_dir"
35757+ as_dirs=
35758+ while test ! -d "$as_dir"; do
35759+ as_dirs="$as_dir $as_dirs"
35760+ as_dir=`(dirname "$as_dir") 2>/dev/null ||
35761+$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35762+ X"$as_dir" : 'X\(//\)[^/]' \| \
35763+ X"$as_dir" : 'X\(//\)$' \| \
35764+ X"$as_dir" : 'X\(/\)' \| \
35765+ . : '\(.\)' 2>/dev/null ||
35766+echo X"$as_dir" |
35767+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
35768+ /^X\(\/\/\)[^/].*/{ s//\1/; q; }
35769+ /^X\(\/\/\)$/{ s//\1/; q; }
35770+ /^X\(\/\).*/{ s//\1/; q; }
35771+ s/.*/./; q'`
35772+ done
35773+ test ! -n "$as_dirs" || mkdir $as_dirs
35774+ fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
35775+echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
35776+ { (exit 1); exit 1; }; }; }
35777+
35778+ ac_builddir=.
35779+
35780+if test "$ac_dir" != .; then
35781+ ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35782+ # A "../" for each directory in $ac_dir_suffix.
35783+ ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
35784+else
35785+ ac_dir_suffix= ac_top_builddir=
35786+fi
35787+
35788+case $srcdir in
35789+ .) # No --srcdir option. We are building in place.
35790+ ac_srcdir=.
35791+ if test -z "$ac_top_builddir"; then
35792+ ac_top_srcdir=.
35793+ else
35794+ ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
35795+ fi ;;
35796+ [\\/]* | ?:[\\/]* ) # Absolute path.
35797+ ac_srcdir=$srcdir$ac_dir_suffix;
35798+ ac_top_srcdir=$srcdir ;;
35799+ *) # Relative path.
35800+ ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
35801+ ac_top_srcdir=$ac_top_builddir$srcdir ;;
35802+esac
35803+
35804+# Do not use `cd foo && pwd` to compute absolute paths, because
35805+# the directories may not exist.
35806+case `pwd` in
35807+.) ac_abs_builddir="$ac_dir";;
35808+*)
35809+ case "$ac_dir" in
35810+ .) ac_abs_builddir=`pwd`;;
35811+ [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
35812+ *) ac_abs_builddir=`pwd`/"$ac_dir";;
35813+ esac;;
35814+esac
35815+case $ac_abs_builddir in
35816+.) ac_abs_top_builddir=${ac_top_builddir}.;;
35817+*)
35818+ case ${ac_top_builddir}. in
35819+ .) ac_abs_top_builddir=$ac_abs_builddir;;
35820+ [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
35821+ *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
35822+ esac;;
35823+esac
35824+case $ac_abs_builddir in
35825+.) ac_abs_srcdir=$ac_srcdir;;
35826+*)
35827+ case $ac_srcdir in
35828+ .) ac_abs_srcdir=$ac_abs_builddir;;
35829+ [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
35830+ *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
35831+ esac;;
35832+esac
35833+case $ac_abs_builddir in
35834+.) ac_abs_top_srcdir=$ac_top_srcdir;;
35835+*)
35836+ case $ac_top_srcdir in
35837+ .) ac_abs_top_srcdir=$ac_abs_builddir;;
35838+ [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
35839+ *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
35840+ esac;;
35841+esac
35842+
35843+
35844+ { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
35845+echo "$as_me: executing $ac_dest commands" >&6;}
35846+ case $ac_dest in
35847+ depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
35848+ # Strip MF so we end up with the name of the file.
35849+ mf=`echo "$mf" | sed -e 's/:.*$//'`
35850+ # Check whether this is an Automake generated Makefile or not.
35851+ # We used to match only the files named `Makefile.in', but
35852+ # some people rename them; so instead we look at the file content.
35853+ # Grep'ing the first line is not enough: some people post-process
35854+ # each Makefile.in and add a new line on top of each file to say so.
35855+ # So let's grep whole file.
35856+ if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
35857+ dirpart=`(dirname "$mf") 2>/dev/null ||
35858+$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35859+ X"$mf" : 'X\(//\)[^/]' \| \
35860+ X"$mf" : 'X\(//\)$' \| \
35861+ X"$mf" : 'X\(/\)' \| \
35862+ . : '\(.\)' 2>/dev/null ||
35863+echo X"$mf" |
35864+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
35865+ /^X\(\/\/\)[^/].*/{ s//\1/; q; }
35866+ /^X\(\/\/\)$/{ s//\1/; q; }
35867+ /^X\(\/\).*/{ s//\1/; q; }
35868+ s/.*/./; q'`
35869+ else
35870+ continue
35871+ fi
35872+ grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
35873+ # Extract the definition of DEP_FILES from the Makefile without
35874+ # running `make'.
35875+ DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
35876+ test -z "$DEPDIR" && continue
35877+ # When using ansi2knr, U may be empty or an underscore; expand it
35878+ U=`sed -n -e '/^U = / s///p' < "$mf"`
35879+ test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
35880+ # We invoke sed twice because it is the simplest approach to
35881+ # changing $(DEPDIR) to its actual value in the expansion.
35882+ for file in `sed -n -e '
35883+ /^DEP_FILES = .*\\\\$/ {
35884+ s/^DEP_FILES = //
35885+ :loop
35886+ s/\\\\$//
35887+ p
35888+ n
35889+ /\\\\$/ b loop
35890+ p
35891+ }
35892+ /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
35893+ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
35894+ # Make sure the directory exists.
35895+ test -f "$dirpart/$file" && continue
35896+ fdir=`(dirname "$file") 2>/dev/null ||
35897+$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35898+ X"$file" : 'X\(//\)[^/]' \| \
35899+ X"$file" : 'X\(//\)$' \| \
35900+ X"$file" : 'X\(/\)' \| \
35901+ . : '\(.\)' 2>/dev/null ||
35902+echo X"$file" |
35903+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
35904+ /^X\(\/\/\)[^/].*/{ s//\1/; q; }
35905+ /^X\(\/\/\)$/{ s//\1/; q; }
35906+ /^X\(\/\).*/{ s//\1/; q; }
35907+ s/.*/./; q'`
35908+ { if $as_mkdir_p; then
35909+ mkdir -p $dirpart/$fdir
35910+ else
35911+ as_dir=$dirpart/$fdir
35912+ as_dirs=
35913+ while test ! -d "$as_dir"; do
35914+ as_dirs="$as_dir $as_dirs"
35915+ as_dir=`(dirname "$as_dir") 2>/dev/null ||
35916+$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35917+ X"$as_dir" : 'X\(//\)[^/]' \| \
35918+ X"$as_dir" : 'X\(//\)$' \| \
35919+ X"$as_dir" : 'X\(/\)' \| \
35920+ . : '\(.\)' 2>/dev/null ||
35921+echo X"$as_dir" |
35922+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
35923+ /^X\(\/\/\)[^/].*/{ s//\1/; q; }
35924+ /^X\(\/\/\)$/{ s//\1/; q; }
35925+ /^X\(\/\).*/{ s//\1/; q; }
35926+ s/.*/./; q'`
35927+ done
35928+ test ! -n "$as_dirs" || mkdir $as_dirs
35929+ fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
35930+echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
35931+ { (exit 1); exit 1; }; }; }
35932+
35933+ # echo "creating $dirpart/$file"
35934+ echo '# dummy' > "$dirpart/$file"
35935+ done
35936+done
35937+ ;;
35938+ esac
35939+done
35940+_ACEOF
35941+
35942+cat >>$CONFIG_STATUS <<\_ACEOF
35943+
35944+{ (exit 0); exit 0; }
35945+_ACEOF
35946+chmod +x $CONFIG_STATUS
35947+ac_clean_files=$ac_clean_files_save
35948+
35949+
35950+# configure is writing to config.log, and then calls config.status.
35951+# config.status does its own redirection, appending to config.log.
35952+# Unfortunately, on DOS this fails, as config.log is still kept open
35953+# by configure, so config.status won't be able to write to it; its
35954+# output is simply discarded. So we exec the FD to /dev/null,
35955+# effectively closing config.log, so it can be properly (re)opened and
35956+# appended to by config.status. When coming back to configure, we
35957+# need to make the FD available again.
35958+if test "$no_create" != yes; then
35959+ ac_cs_success=:
35960+ ac_config_status_args=
35961+ test "$silent" = yes &&
35962+ ac_config_status_args="$ac_config_status_args --quiet"
35963+ exec 5>/dev/null
35964+ $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35965+ exec 5>>config.log
35966+ # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35967+ # would make configure fail if this is the last instruction.
35968+ $ac_cs_success || { (exit 1); exit 1; }
35969+fi
35970+
35971--- agsync-0.2-pre.orig/configure.in
35972+++ agsync-0.2-pre/configure.in
35973@@ -0,0 +1,91 @@
35974+AC_INIT(configure.in)
35975+
35976+AM_CONFIG_HEADER(config.h)
35977+AM_INIT_AUTOMAKE(agsync, 0.2-pre)
35978+
35979+AC_LANG_C
35980+AC_PROG_CC
35981+AM_PROG_LIBTOOL
35982+AM_MAINTAINER_MODE
35983+
35984+AC_ARG_WITH(libsynce,
35985+ AC_HELP_STRING(
35986+ [--with-libsynce[=DIR]],
35987+ [Search for libsynce in DIR/include and DIR/lib]),
35988+ [
35989+ CPPFLAGS="$CPPFLAGS -I${withval}/include"
35990+ LDFLAGS="$LDFLAGS -L${withval}/lib"
35991+ ]
35992+)
35993+
35994+AC_ARG_WITH(libsynce-include,
35995+ AC_HELP_STRING(
35996+ [--with-libsynce-include[=DIR]],
35997+ [Search for libsynce header files in DIR]),
35998+ [
35999+ CPPFLAGS="$CPPFLAGS -I${withval}"
36000+ ]
36001+)
36002+
36003+AC_ARG_WITH(libsynce-lib,
36004+ AC_HELP_STRING(
36005+ [--with-libsynce-lib[=DIR]],
36006+ [Search for libsynce library files in DIR]),
36007+ [
36008+ LDFLAGS="$LDFLAGS -L${withval}"
36009+ ]
36010+)
36011+
36012+AC_CHECK_LIB(synce,main,,
36013+ [
36014+ AC_MSG_ERROR([Can't find synce library])
36015+ ]
36016+)
36017+
36018+AC_CHECK_HEADERS(synce.h,,
36019+ [
36020+ AC_MSG_ERROR([Can't find synce.h])
36021+ ]
36022+)
36023+
36024+AC_ARG_WITH(librapi2,
36025+ AC_HELP_STRING(
36026+ [--with-librapi2[=DIR]],
36027+ [Search for librapi2 in DIR/include and DIR/lib]),
36028+ [
36029+ CPPFLAGS="$CPPFLAGS -I${withval}/include"
36030+ LDFLAGS="$LDFLAGS -L${withval}/lib"
36031+ ]
36032+)
36033+
36034+AC_ARG_WITH(librapi2-include,
36035+ AC_HELP_STRING(
36036+ [--with-librapi2-include[=DIR]],
36037+ [Search for librapi2 header files in DIR]),
36038+ [
36039+ CPPFLAGS="$CPPFLAGS -I${withval}"
36040+ ]
36041+)
36042+
36043+AC_ARG_WITH(librapi2-lib,
36044+ AC_HELP_STRING(
36045+ [--with-librapi2-lib[=DIR]],
36046+ [Search for librapi2 library files in DIR]),
36047+ [
36048+ LDFLAGS="$LDFLAGS -L${withval}"
36049+ ]
36050+)
36051+
36052+AC_CHECK_LIB(rapi,CeRapiInit,,
36053+ [
36054+ AC_MSG_ERROR([Can't find RAPI library])
36055+ ]
36056+)
36057+
36058+AC_CHECK_HEADERS(rapi.h,,
36059+ [
36060+ AC_MSG_ERROR([Can't find rapi.h])
36061+ ]
36062+)
36063+
36064+AC_OUTPUT(Makefile mal-files/Makefile mal-files/client/Makefile)
36065--- agsync-0.2-pre.orig/config.guess
36066+++ agsync-0.2-pre/config.guess
36067@@ -0,0 +1,1466 @@
36068+#! /bin/sh
36069+# Attempt to guess a canonical system name.
36070+# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
36071+# 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
36072+
36073+timestamp='2005-08-03'
36074+
36075+# This file is free software; you can redistribute it and/or modify it
36076+# under the terms of the GNU General Public License as published by
36077+# the Free Software Foundation; either version 2 of the License, or
36078+# (at your option) any later version.
36079+#
36080+# This program is distributed in the hope that it will be useful, but
36081+# WITHOUT ANY WARRANTY; without even the implied warranty of
36082+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
36083+# General Public License for more details.
36084+#
36085+# You should have received a copy of the GNU General Public License
36086+# along with this program; if not, write to the Free Software
36087+# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
36088+# 02110-1301, USA.
36089+#
36090+# As a special exception to the GNU General Public License, if you
36091+# distribute this file as part of a program that contains a
36092+# configuration script generated by Autoconf, you may include it under
36093+# the same distribution terms that you use for the rest of that program.
36094+
36095+
36096+# Originally written by Per Bothner <per@bothner.com>.
36097+# Please send patches to <config-patches@gnu.org>. Submit a context
36098+# diff and a properly formatted ChangeLog entry.
36099+#
36100+# This script attempts to guess a canonical system name similar to
36101+# config.sub. If it succeeds, it prints the system name on stdout, and
36102+# exits with 0. Otherwise, it exits with 1.
36103+#
36104+# The plan is that this can be called by configure scripts if you
36105+# don't specify an explicit build system type.
36106+
36107+me=`echo "$0" | sed -e 's,.*/,,'`
36108+
36109+usage="\
36110+Usage: $0 [OPTION]
36111+
36112+Output the configuration name of the system \`$me' is run on.
36113+
36114+Operation modes:
36115+ -h, --help print this help, then exit
36116+ -t, --time-stamp print date of last modification, then exit
36117+ -v, --version print version number, then exit
36118+
36119+Report bugs and patches to <config-patches@gnu.org>."
36120+
36121+version="\
36122+GNU config.guess ($timestamp)
36123+
36124+Originally written by Per Bothner.
36125+Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
36126+Free Software Foundation, Inc.
36127+
36128+This is free software; see the source for copying conditions. There is NO
36129+warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
36130+
36131+help="
36132+Try \`$me --help' for more information."
36133+
36134+# Parse command line
36135+while test $# -gt 0 ; do
36136+ case $1 in
36137+ --time-stamp | --time* | -t )
36138+ echo "$timestamp" ; exit ;;
36139+ --version | -v )
36140+ echo "$version" ; exit ;;
36141+ --help | --h* | -h )
36142+ echo "$usage"; exit ;;
36143+ -- ) # Stop option processing
36144+ shift; break ;;
36145+ - ) # Use stdin as input.
36146+ break ;;
36147+ -* )
36148+ echo "$me: invalid option $1$help" >&2
36149+ exit 1 ;;
36150+ * )
36151+ break ;;
36152+ esac
36153+done
36154+
36155+if test $# != 0; then
36156+ echo "$me: too many arguments$help" >&2
36157+ exit 1
36158+fi
36159+
36160+trap 'exit 1' 1 2 15
36161+
36162+# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
36163+# compiler to aid in system detection is discouraged as it requires
36164+# temporary files to be created and, as you can see below, it is a
36165+# headache to deal with in a portable fashion.
36166+
36167+# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
36168+# use `HOST_CC' if defined, but it is deprecated.
36169+
36170+# Portable tmp directory creation inspired by the Autoconf team.
36171+
36172+set_cc_for_build='
36173+trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
36174+trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
36175+: ${TMPDIR=/tmp} ;
36176+ { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
36177+ { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
36178+ { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
36179+ { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
36180+dummy=$tmp/dummy ;
36181+tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
36182+case $CC_FOR_BUILD,$HOST_CC,$CC in
36183+ ,,) echo "int x;" > $dummy.c ;
36184+ for c in cc gcc c89 c99 ; do
36185+ if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
36186+ CC_FOR_BUILD="$c"; break ;
36187+ fi ;
36188+ done ;
36189+ if test x"$CC_FOR_BUILD" = x ; then
36190+ CC_FOR_BUILD=no_compiler_found ;
36191+ fi
36192+ ;;
36193+ ,,*) CC_FOR_BUILD=$CC ;;
36194+ ,*,*) CC_FOR_BUILD=$HOST_CC ;;
36195+esac ; set_cc_for_build= ;'
36196+
36197+# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
36198+# (ghazi@noc.rutgers.edu 1994-08-24)
36199+if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
36200+ PATH=$PATH:/.attbin ; export PATH
36201+fi
36202+
36203+UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
36204+UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
36205+UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
36206+UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
36207+
36208+# Note: order is significant - the case branches are not exclusive.
36209+
36210+case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
36211+ *:NetBSD:*:*)
36212+ # NetBSD (nbsd) targets should (where applicable) match one or
36213+ # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
36214+ # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
36215+ # switched to ELF, *-*-netbsd* would select the old
36216+ # object file format. This provides both forward
36217+ # compatibility and a consistent mechanism for selecting the
36218+ # object file format.
36219+ #
36220+ # Note: NetBSD doesn't particularly care about the vendor
36221+ # portion of the name. We always set it to "unknown".
36222+ sysctl="sysctl -n hw.machine_arch"
36223+ UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
36224+ /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
36225+ case "${UNAME_MACHINE_ARCH}" in
36226+ armeb) machine=armeb-unknown ;;
36227+ arm*) machine=arm-unknown ;;
36228+ sh3el) machine=shl-unknown ;;
36229+ sh3eb) machine=sh-unknown ;;
36230+ *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
36231+ esac
36232+ # The Operating System including object format, if it has switched
36233+ # to ELF recently, or will in the future.
36234+ case "${UNAME_MACHINE_ARCH}" in
36235+ arm*|i386|m68k|ns32k|sh3*|sparc|vax)
36236+ eval $set_cc_for_build
36237+ if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
36238+ | grep __ELF__ >/dev/null
36239+ then
36240+ # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
36241+ # Return netbsd for either. FIX?
36242+ os=netbsd
36243+ else
36244+ os=netbsdelf
36245+ fi
36246+ ;;
36247+ *)
36248+ os=netbsd
36249+ ;;
36250+ esac
36251+ # The OS release
36252+ # Debian GNU/NetBSD machines have a different userland, and
36253+ # thus, need a distinct triplet. However, they do not need
36254+ # kernel version information, so it can be replaced with a
36255+ # suitable tag, in the style of linux-gnu.
36256+ case "${UNAME_VERSION}" in
36257+ Debian*)
36258+ release='-gnu'
36259+ ;;
36260+ *)
36261+ release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
36262+ ;;
36263+ esac
36264+ # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
36265+ # contains redundant information, the shorter form:
36266+ # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
36267+ echo "${machine}-${os}${release}"
36268+ exit ;;
36269+ *:OpenBSD:*:*)
36270+ UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
36271+ echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
36272+ exit ;;
36273+ *:ekkoBSD:*:*)
36274+ echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
36275+ exit ;;
36276+ macppc:MirBSD:*:*)
36277+ echo powerppc-unknown-mirbsd${UNAME_RELEASE}
36278+ exit ;;
36279+ *:MirBSD:*:*)
36280+ echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
36281+ exit ;;
36282+ alpha:OSF1:*:*)
36283+ case $UNAME_RELEASE in
36284+ *4.0)
36285+ UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
36286+ ;;
36287+ *5.*)
36288+ UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
36289+ ;;
36290+ esac
36291+ # According to Compaq, /usr/sbin/psrinfo has been available on
36292+ # OSF/1 and Tru64 systems produced since 1995. I hope that
36293+ # covers most systems running today. This code pipes the CPU
36294+ # types through head -n 1, so we only detect the type of CPU 0.
36295+ ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
36296+ case "$ALPHA_CPU_TYPE" in
36297+ "EV4 (21064)")
36298+ UNAME_MACHINE="alpha" ;;
36299+ "EV4.5 (21064)")
36300+ UNAME_MACHINE="alpha" ;;
36301+ "LCA4 (21066/21068)")
36302+ UNAME_MACHINE="alpha" ;;
36303+ "EV5 (21164)")
36304+ UNAME_MACHINE="alphaev5" ;;
36305+ "EV5.6 (21164A)")
36306+ UNAME_MACHINE="alphaev56" ;;
36307+ "EV5.6 (21164PC)")
36308+ UNAME_MACHINE="alphapca56" ;;
36309+ "EV5.7 (21164PC)")
36310+ UNAME_MACHINE="alphapca57" ;;
36311+ "EV6 (21264)")
36312+ UNAME_MACHINE="alphaev6" ;;
36313+ "EV6.7 (21264A)")
36314+ UNAME_MACHINE="alphaev67" ;;
36315+ "EV6.8CB (21264C)")
36316+ UNAME_MACHINE="alphaev68" ;;
36317+ "EV6.8AL (21264B)")
36318+ UNAME_MACHINE="alphaev68" ;;
36319+ "EV6.8CX (21264D)")
36320+ UNAME_MACHINE="alphaev68" ;;
36321+ "EV6.9A (21264/EV69A)")
36322+ UNAME_MACHINE="alphaev69" ;;
36323+ "EV7 (21364)")
36324+ UNAME_MACHINE="alphaev7" ;;
36325+ "EV7.9 (21364A)")
36326+ UNAME_MACHINE="alphaev79" ;;
36327+ esac
36328+ # A Pn.n version is a patched version.
36329+ # A Vn.n version is a released version.
36330+ # A Tn.n version is a released field test version.
36331+ # A Xn.n version is an unreleased experimental baselevel.
36332+ # 1.2 uses "1.2" for uname -r.
36333+ echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
36334+ exit ;;
36335+ Alpha\ *:Windows_NT*:*)
36336+ # How do we know it's Interix rather than the generic POSIX subsystem?
36337+ # Should we change UNAME_MACHINE based on the output of uname instead
36338+ # of the specific Alpha model?
36339+ echo alpha-pc-interix
36340+ exit ;;
36341+ 21064:Windows_NT:50:3)
36342+ echo alpha-dec-winnt3.5
36343+ exit ;;
36344+ Amiga*:UNIX_System_V:4.0:*)
36345+ echo m68k-unknown-sysv4
36346+ exit ;;
36347+ *:[Aa]miga[Oo][Ss]:*:*)
36348+ echo ${UNAME_MACHINE}-unknown-amigaos
36349+ exit ;;
36350+ *:[Mm]orph[Oo][Ss]:*:*)
36351+ echo ${UNAME_MACHINE}-unknown-morphos
36352+ exit ;;
36353+ *:OS/390:*:*)
36354+ echo i370-ibm-openedition
36355+ exit ;;
36356+ *:z/VM:*:*)
36357+ echo s390-ibm-zvmoe
36358+ exit ;;
36359+ *:OS400:*:*)
36360+ echo powerpc-ibm-os400
36361+ exit ;;
36362+ arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
36363+ echo arm-acorn-riscix${UNAME_RELEASE}
36364+ exit ;;
36365+ arm:riscos:*:*|arm:RISCOS:*:*)
36366+ echo arm-unknown-riscos
36367+ exit ;;
36368+ SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
36369+ echo hppa1.1-hitachi-hiuxmpp
36370+ exit ;;
36371+ Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
36372+ # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
36373+ if test "`(/bin/universe) 2>/dev/null`" = att ; then
36374+ echo pyramid-pyramid-sysv3
36375+ else
36376+ echo pyramid-pyramid-bsd
36377+ fi
36378+ exit ;;
36379+ NILE*:*:*:dcosx)
36380+ echo pyramid-pyramid-svr4
36381+ exit ;;
36382+ DRS?6000:unix:4.0:6*)
36383+ echo sparc-icl-nx6
36384+ exit ;;
36385+ DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
36386+ case `/usr/bin/uname -p` in
36387+ sparc) echo sparc-icl-nx7; exit ;;
36388+ esac ;;
36389+ sun4H:SunOS:5.*:*)
36390+ echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
36391+ exit ;;
36392+ sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
36393+ echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
36394+ exit ;;
36395+ i86pc:SunOS:5.*:*)
36396+ echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
36397+ exit ;;
36398+ sun4*:SunOS:6*:*)
36399+ # According to config.sub, this is the proper way to canonicalize
36400+ # SunOS6. Hard to guess exactly what SunOS6 will be like, but
36401+ # it's likely to be more like Solaris than SunOS4.
36402+ echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
36403+ exit ;;
36404+ sun4*:SunOS:*:*)
36405+ case "`/usr/bin/arch -k`" in
36406+ Series*|S4*)
36407+ UNAME_RELEASE=`uname -v`
36408+ ;;
36409+ esac
36410+ # Japanese Language versions have a version number like `4.1.3-JL'.
36411+ echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
36412+ exit ;;
36413+ sun3*:SunOS:*:*)
36414+ echo m68k-sun-sunos${UNAME_RELEASE}
36415+ exit ;;
36416+ sun*:*:4.2BSD:*)
36417+ UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
36418+ test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
36419+ case "`/bin/arch`" in
36420+ sun3)
36421+ echo m68k-sun-sunos${UNAME_RELEASE}
36422+ ;;
36423+ sun4)
36424+ echo sparc-sun-sunos${UNAME_RELEASE}
36425+ ;;
36426+ esac
36427+ exit ;;
36428+ aushp:SunOS:*:*)
36429+ echo sparc-auspex-sunos${UNAME_RELEASE}
36430+ exit ;;
36431+ # The situation for MiNT is a little confusing. The machine name
36432+ # can be virtually everything (everything which is not
36433+ # "atarist" or "atariste" at least should have a processor
36434+ # > m68000). The system name ranges from "MiNT" over "FreeMiNT"
36435+ # to the lowercase version "mint" (or "freemint"). Finally
36436+ # the system name "TOS" denotes a system which is actually not
36437+ # MiNT. But MiNT is downward compatible to TOS, so this should
36438+ # be no problem.
36439+ atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
36440+ echo m68k-atari-mint${UNAME_RELEASE}
36441+ exit ;;
36442+ atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
36443+ echo m68k-atari-mint${UNAME_RELEASE}
36444+ exit ;;
36445+ *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
36446+ echo m68k-atari-mint${UNAME_RELEASE}
36447+ exit ;;
36448+ milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
36449+ echo m68k-milan-mint${UNAME_RELEASE}
36450+ exit ;;
36451+ hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
36452+ echo m68k-hades-mint${UNAME_RELEASE}
36453+ exit ;;
36454+ *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
36455+ echo m68k-unknown-mint${UNAME_RELEASE}
36456+ exit ;;
36457+ m68k:machten:*:*)
36458+ echo m68k-apple-machten${UNAME_RELEASE}
36459+ exit ;;
36460+ powerpc:machten:*:*)
36461+ echo powerpc-apple-machten${UNAME_RELEASE}
36462+ exit ;;
36463+ RISC*:Mach:*:*)
36464+ echo mips-dec-mach_bsd4.3
36465+ exit ;;
36466+ RISC*:ULTRIX:*:*)
36467+ echo mips-dec-ultrix${UNAME_RELEASE}
36468+ exit ;;
36469+ VAX*:ULTRIX*:*:*)
36470+ echo vax-dec-ultrix${UNAME_RELEASE}
36471+ exit ;;
36472+ 2020:CLIX:*:* | 2430:CLIX:*:*)
36473+ echo clipper-intergraph-clix${UNAME_RELEASE}
36474+ exit ;;
36475+ mips:*:*:UMIPS | mips:*:*:RISCos)
36476+ eval $set_cc_for_build
36477+ sed 's/^ //' << EOF >$dummy.c
36478+#ifdef __cplusplus
36479+#include <stdio.h> /* for printf() prototype */
36480+ int main (int argc, char *argv[]) {
36481+#else
36482+ int main (argc, argv) int argc; char *argv[]; {
36483+#endif
36484+ #if defined (host_mips) && defined (MIPSEB)
36485+ #if defined (SYSTYPE_SYSV)
36486+ printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
36487+ #endif
36488+ #if defined (SYSTYPE_SVR4)
36489+ printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
36490+ #endif
36491+ #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
36492+ printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
36493+ #endif
36494+ #endif
36495+ exit (-1);
36496+ }
36497+EOF
36498+ $CC_FOR_BUILD -o $dummy $dummy.c &&
36499+ dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
36500+ SYSTEM_NAME=`$dummy $dummyarg` &&
36501+ { echo "$SYSTEM_NAME"; exit; }
36502+ echo mips-mips-riscos${UNAME_RELEASE}
36503+ exit ;;
36504+ Motorola:PowerMAX_OS:*:*)
36505+ echo powerpc-motorola-powermax
36506+ exit ;;
36507+ Motorola:*:4.3:PL8-*)
36508+ echo powerpc-harris-powermax
36509+ exit ;;
36510+ Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
36511+ echo powerpc-harris-powermax
36512+ exit ;;
36513+ Night_Hawk:Power_UNIX:*:*)
36514+ echo powerpc-harris-powerunix
36515+ exit ;;
36516+ m88k:CX/UX:7*:*)
36517+ echo m88k-harris-cxux7
36518+ exit ;;
36519+ m88k:*:4*:R4*)
36520+ echo m88k-motorola-sysv4
36521+ exit ;;
36522+ m88k:*:3*:R3*)
36523+ echo m88k-motorola-sysv3
36524+ exit ;;
36525+ AViiON:dgux:*:*)
36526+ # DG/UX returns AViiON for all architectures
36527+ UNAME_PROCESSOR=`/usr/bin/uname -p`
36528+ if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
36529+ then
36530+ if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
36531+ [ ${TARGET_BINARY_INTERFACE}x = x ]
36532+ then
36533+ echo m88k-dg-dgux${UNAME_RELEASE}
36534+ else
36535+ echo m88k-dg-dguxbcs${UNAME_RELEASE}
36536+ fi
36537+ else
36538+ echo i586-dg-dgux${UNAME_RELEASE}
36539+ fi
36540+ exit ;;
36541+ M88*:DolphinOS:*:*) # DolphinOS (SVR3)
36542+ echo m88k-dolphin-sysv3
36543+ exit ;;
36544+ M88*:*:R3*:*)
36545+ # Delta 88k system running SVR3
36546+ echo m88k-motorola-sysv3
36547+ exit ;;
36548+ XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
36549+ echo m88k-tektronix-sysv3
36550+ exit ;;
36551+ Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
36552+ echo m68k-tektronix-bsd
36553+ exit ;;
36554+ *:IRIX*:*:*)
36555+ echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
36556+ exit ;;
36557+ ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
36558+ echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
36559+ exit ;; # Note that: echo "'`uname -s`'" gives 'AIX '
36560+ i*86:AIX:*:*)
36561+ echo i386-ibm-aix
36562+ exit ;;
36563+ ia64:AIX:*:*)
36564+ if [ -x /usr/bin/oslevel ] ; then
36565+ IBM_REV=`/usr/bin/oslevel`
36566+ else
36567+ IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
36568+ fi
36569+ echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
36570+ exit ;;
36571+ *:AIX:2:3)
36572+ if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
36573+ eval $set_cc_for_build
36574+ sed 's/^ //' << EOF >$dummy.c
36575+ #include <sys/systemcfg.h>
36576+
36577+ main()
36578+ {
36579+ if (!__power_pc())
36580+ exit(1);
36581+ puts("powerpc-ibm-aix3.2.5");
36582+ exit(0);
36583+ }
36584+EOF
36585+ if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
36586+ then
36587+ echo "$SYSTEM_NAME"
36588+ else
36589+ echo rs6000-ibm-aix3.2.5
36590+ fi
36591+ elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
36592+ echo rs6000-ibm-aix3.2.4
36593+ else
36594+ echo rs6000-ibm-aix3.2
36595+ fi
36596+ exit ;;
36597+ *:AIX:*:[45])
36598+ IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
36599+ if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
36600+ IBM_ARCH=rs6000
36601+ else
36602+ IBM_ARCH=powerpc
36603+ fi
36604+ if [ -x /usr/bin/oslevel ] ; then
36605+ IBM_REV=`/usr/bin/oslevel`
36606+ else
36607+ IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
36608+ fi
36609+ echo ${IBM_ARCH}-ibm-aix${IBM_REV}
36610+ exit ;;
36611+ *:AIX:*:*)
36612+ echo rs6000-ibm-aix
36613+ exit ;;
36614+ ibmrt:4.4BSD:*|romp-ibm:BSD:*)
36615+ echo romp-ibm-bsd4.4
36616+ exit ;;
36617+ ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
36618+ echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
36619+ exit ;; # report: romp-ibm BSD 4.3
36620+ *:BOSX:*:*)
36621+ echo rs6000-bull-bosx
36622+ exit ;;
36623+ DPX/2?00:B.O.S.:*:*)
36624+ echo m68k-bull-sysv3
36625+ exit ;;
36626+ 9000/[34]??:4.3bsd:1.*:*)
36627+ echo m68k-hp-bsd
36628+ exit ;;
36629+ hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
36630+ echo m68k-hp-bsd4.4
36631+ exit ;;
36632+ 9000/[34678]??:HP-UX:*:*)
36633+ HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
36634+ case "${UNAME_MACHINE}" in
36635+ 9000/31? ) HP_ARCH=m68000 ;;
36636+ 9000/[34]?? ) HP_ARCH=m68k ;;
36637+ 9000/[678][0-9][0-9])
36638+ if [ -x /usr/bin/getconf ]; then
36639+ sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
36640+ sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
36641+ case "${sc_cpu_version}" in
36642+ 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
36643+ 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
36644+ 532) # CPU_PA_RISC2_0
36645+ case "${sc_kernel_bits}" in
36646+ 32) HP_ARCH="hppa2.0n" ;;
36647+ 64) HP_ARCH="hppa2.0w" ;;
36648+ '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
36649+ esac ;;
36650+ esac
36651+ fi
36652+ if [ "${HP_ARCH}" = "" ]; then
36653+ eval $set_cc_for_build
36654+ sed 's/^ //' << EOF >$dummy.c
36655+
36656+ #define _HPUX_SOURCE
36657+ #include <stdlib.h>
36658+ #include <unistd.h>
36659+
36660+ int main ()
36661+ {
36662+ #if defined(_SC_KERNEL_BITS)
36663+ long bits = sysconf(_SC_KERNEL_BITS);
36664+ #endif
36665+ long cpu = sysconf (_SC_CPU_VERSION);
36666+
36667+ switch (cpu)
36668+ {
36669+ case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
36670+ case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
36671+ case CPU_PA_RISC2_0:
36672+ #if defined(_SC_KERNEL_BITS)
36673+ switch (bits)
36674+ {
36675+ case 64: puts ("hppa2.0w"); break;
36676+ case 32: puts ("hppa2.0n"); break;
36677+ default: puts ("hppa2.0"); break;
36678+ } break;
36679+ #else /* !defined(_SC_KERNEL_BITS) */
36680+ puts ("hppa2.0"); break;
36681+ #endif
36682+ default: puts ("hppa1.0"); break;
36683+ }
36684+ exit (0);
36685+ }
36686+EOF
36687+ (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
36688+ test -z "$HP_ARCH" && HP_ARCH=hppa
36689+ fi ;;
36690+ esac
36691+ if [ ${HP_ARCH} = "hppa2.0w" ]
36692+ then
36693+ eval $set_cc_for_build
36694+
36695+ # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
36696+ # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
36697+ # generating 64-bit code. GNU and HP use different nomenclature:
36698+ #
36699+ # $ CC_FOR_BUILD=cc ./config.guess
36700+ # => hppa2.0w-hp-hpux11.23
36701+ # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
36702+ # => hppa64-hp-hpux11.23
36703+
36704+ if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
36705+ grep __LP64__ >/dev/null
36706+ then
36707+ HP_ARCH="hppa2.0w"
36708+ else
36709+ HP_ARCH="hppa64"
36710+ fi
36711+ fi
36712+ echo ${HP_ARCH}-hp-hpux${HPUX_REV}
36713+ exit ;;
36714+ ia64:HP-UX:*:*)
36715+ HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
36716+ echo ia64-hp-hpux${HPUX_REV}
36717+ exit ;;
36718+ 3050*:HI-UX:*:*)
36719+ eval $set_cc_for_build
36720+ sed 's/^ //' << EOF >$dummy.c
36721+ #include <unistd.h>
36722+ int
36723+ main ()
36724+ {
36725+ long cpu = sysconf (_SC_CPU_VERSION);
36726+ /* The order matters, because CPU_IS_HP_MC68K erroneously returns
36727+ true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct
36728+ results, however. */
36729+ if (CPU_IS_PA_RISC (cpu))
36730+ {
36731+ switch (cpu)
36732+ {
36733+ case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
36734+ case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
36735+ case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
36736+ default: puts ("hppa-hitachi-hiuxwe2"); break;
36737+ }
36738+ }
36739+ else if (CPU_IS_HP_MC68K (cpu))
36740+ puts ("m68k-hitachi-hiuxwe2");
36741+ else puts ("unknown-hitachi-hiuxwe2");
36742+ exit (0);
36743+ }
36744+EOF
36745+ $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
36746+ { echo "$SYSTEM_NAME"; exit; }
36747+ echo unknown-hitachi-hiuxwe2
36748+ exit ;;
36749+ 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
36750+ echo hppa1.1-hp-bsd
36751+ exit ;;
36752+ 9000/8??:4.3bsd:*:*)
36753+ echo hppa1.0-hp-bsd
36754+ exit ;;
36755+ *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
36756+ echo hppa1.0-hp-mpeix
36757+ exit ;;
36758+ hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
36759+ echo hppa1.1-hp-osf
36760+ exit ;;
36761+ hp8??:OSF1:*:*)
36762+ echo hppa1.0-hp-osf
36763+ exit ;;
36764+ i*86:OSF1:*:*)
36765+ if [ -x /usr/sbin/sysversion ] ; then
36766+ echo ${UNAME_MACHINE}-unknown-osf1mk
36767+ else
36768+ echo ${UNAME_MACHINE}-unknown-osf1
36769+ fi
36770+ exit ;;
36771+ parisc*:Lites*:*:*)
36772+ echo hppa1.1-hp-lites
36773+ exit ;;
36774+ C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
36775+ echo c1-convex-bsd
36776+ exit ;;
36777+ C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
36778+ if getsysinfo -f scalar_acc
36779+ then echo c32-convex-bsd
36780+ else echo c2-convex-bsd
36781+ fi
36782+ exit ;;
36783+ C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
36784+ echo c34-convex-bsd
36785+ exit ;;
36786+ C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
36787+ echo c38-convex-bsd
36788+ exit ;;
36789+ C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
36790+ echo c4-convex-bsd
36791+ exit ;;
36792+ CRAY*Y-MP:*:*:*)
36793+ echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
36794+ exit ;;
36795+ CRAY*[A-Z]90:*:*:*)
36796+ echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
36797+ | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
36798+ -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
36799+ -e 's/\.[^.]*$/.X/'
36800+ exit ;;
36801+ CRAY*TS:*:*:*)
36802+ echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
36803+ exit ;;
36804+ CRAY*T3E:*:*:*)
36805+ echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
36806+ exit ;;
36807+ CRAY*SV1:*:*:*)
36808+ echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
36809+ exit ;;
36810+ *:UNICOS/mp:*:*)
36811+ echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
36812+ exit ;;
36813+ F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
36814+ FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
36815+ FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
36816+ FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
36817+ echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
36818+ exit ;;
36819+ 5000:UNIX_System_V:4.*:*)
36820+ FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
36821+ FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
36822+ echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
36823+ exit ;;
36824+ i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
36825+ echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
36826+ exit ;;
36827+ sparc*:BSD/OS:*:*)
36828+ echo sparc-unknown-bsdi${UNAME_RELEASE}
36829+ exit ;;
36830+ *:BSD/OS:*:*)
36831+ echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
36832+ exit ;;
36833+ *:FreeBSD:*:*)
36834+ echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
36835+ exit ;;
36836+ i*:CYGWIN*:*)
36837+ echo ${UNAME_MACHINE}-pc-cygwin
36838+ exit ;;
36839+ i*:MINGW*:*)
36840+ echo ${UNAME_MACHINE}-pc-mingw32
36841+ exit ;;
36842+ i*:windows32*:*)
36843+ # uname -m includes "-pc" on this system.
36844+ echo ${UNAME_MACHINE}-mingw32
36845+ exit ;;
36846+ i*:PW*:*)
36847+ echo ${UNAME_MACHINE}-pc-pw32
36848+ exit ;;
36849+ x86:Interix*:[34]*)
36850+ echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
36851+ exit ;;
36852+ [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
36853+ echo i${UNAME_MACHINE}-pc-mks
36854+ exit ;;
36855+ i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
36856+ # How do we know it's Interix rather than the generic POSIX subsystem?
36857+ # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
36858+ # UNAME_MACHINE based on the output of uname instead of i386?
36859+ echo i586-pc-interix
36860+ exit ;;
36861+ i*:UWIN*:*)
36862+ echo ${UNAME_MACHINE}-pc-uwin
36863+ exit ;;
36864+ amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
36865+ echo x86_64-unknown-cygwin
36866+ exit ;;
36867+ p*:CYGWIN*:*)
36868+ echo powerpcle-unknown-cygwin
36869+ exit ;;
36870+ prep*:SunOS:5.*:*)
36871+ echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
36872+ exit ;;
36873+ *:GNU:*:*)
36874+ # the GNU system
36875+ echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
36876+ exit ;;
36877+ *:GNU/*:*:*)
36878+ # other systems with GNU libc and userland
36879+ echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
36880+ exit ;;
36881+ i*86:Minix:*:*)
36882+ echo ${UNAME_MACHINE}-pc-minix
36883+ exit ;;
36884+ arm*:Linux:*:*)
36885+ echo ${UNAME_MACHINE}-unknown-linux-gnu
36886+ exit ;;
36887+ cris:Linux:*:*)
36888+ echo cris-axis-linux-gnu
36889+ exit ;;
36890+ crisv32:Linux:*:*)
36891+ echo crisv32-axis-linux-gnu
36892+ exit ;;
36893+ frv:Linux:*:*)
36894+ echo frv-unknown-linux-gnu
36895+ exit ;;
36896+ ia64:Linux:*:*)
36897+ echo ${UNAME_MACHINE}-unknown-linux-gnu
36898+ exit ;;
36899+ m32r*:Linux:*:*)
36900+ echo ${UNAME_MACHINE}-unknown-linux-gnu
36901+ exit ;;
36902+ m68*:Linux:*:*)
36903+ echo ${UNAME_MACHINE}-unknown-linux-gnu
36904+ exit ;;
36905+ mips:Linux:*:*)
36906+ eval $set_cc_for_build
36907+ sed 's/^ //' << EOF >$dummy.c
36908+ #undef CPU
36909+ #undef mips
36910+ #undef mipsel
36911+ #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
36912+ CPU=mipsel
36913+ #else
36914+ #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
36915+ CPU=mips
36916+ #else
36917+ CPU=
36918+ #endif
36919+ #endif
36920+EOF
36921+ eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
36922+ test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
36923+ ;;
36924+ mips64:Linux:*:*)
36925+ eval $set_cc_for_build
36926+ sed 's/^ //' << EOF >$dummy.c
36927+ #undef CPU
36928+ #undef mips64
36929+ #undef mips64el
36930+ #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
36931+ CPU=mips64el
36932+ #else
36933+ #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
36934+ CPU=mips64
36935+ #else
36936+ CPU=
36937+ #endif
36938+ #endif
36939+EOF
36940+ eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
36941+ test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
36942+ ;;
36943+ or32:Linux:*:*)
36944+ echo or32-unknown-linux-gnu
36945+ exit ;;
36946+ ppc:Linux:*:*)
36947+ echo powerpc-unknown-linux-gnu
36948+ exit ;;
36949+ ppc64:Linux:*:*)
36950+ echo powerpc64-unknown-linux-gnu
36951+ exit ;;
36952+ alpha:Linux:*:*)
36953+ case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
36954+ EV5) UNAME_MACHINE=alphaev5 ;;
36955+ EV56) UNAME_MACHINE=alphaev56 ;;
36956+ PCA56) UNAME_MACHINE=alphapca56 ;;
36957+ PCA57) UNAME_MACHINE=alphapca56 ;;
36958+ EV6) UNAME_MACHINE=alphaev6 ;;
36959+ EV67) UNAME_MACHINE=alphaev67 ;;
36960+ EV68*) UNAME_MACHINE=alphaev68 ;;
36961+ esac
36962+ objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
36963+ if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
36964+ echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
36965+ exit ;;
36966+ parisc:Linux:*:* | hppa:Linux:*:*)
36967+ # Look for CPU level
36968+ case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
36969+ PA7*) echo hppa1.1-unknown-linux-gnu ;;
36970+ PA8*) echo hppa2.0-unknown-linux-gnu ;;
36971+ *) echo hppa-unknown-linux-gnu ;;
36972+ esac
36973+ exit ;;
36974+ parisc64:Linux:*:* | hppa64:Linux:*:*)
36975+ echo hppa64-unknown-linux-gnu
36976+ exit ;;
36977+ s390:Linux:*:* | s390x:Linux:*:*)
36978+ echo ${UNAME_MACHINE}-ibm-linux
36979+ exit ;;
36980+ sh64*:Linux:*:*)
36981+ echo ${UNAME_MACHINE}-unknown-linux-gnu
36982+ exit ;;
36983+ sh*:Linux:*:*)
36984+ echo ${UNAME_MACHINE}-unknown-linux-gnu
36985+ exit ;;
36986+ sparc:Linux:*:* | sparc64:Linux:*:*)
36987+ echo ${UNAME_MACHINE}-unknown-linux-gnu
36988+ exit ;;
36989+ x86_64:Linux:*:*)
36990+ echo x86_64-unknown-linux-gnu
36991+ exit ;;
36992+ i*86:Linux:*:*)
36993+ # The BFD linker knows what the default object file format is, so
36994+ # first see if it will tell us. cd to the root directory to prevent
36995+ # problems with other programs or directories called `ld' in the path.
36996+ # Set LC_ALL=C to ensure ld outputs messages in English.
36997+ ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
36998+ | sed -ne '/supported targets:/!d
36999+ s/[ ][ ]*/ /g
37000+ s/.*supported targets: *//
37001+ s/ .*//
37002+ p'`
37003+ case "$ld_supported_targets" in
37004+ elf32-i386)
37005+ TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
37006+ ;;
37007+ a.out-i386-linux)
37008+ echo "${UNAME_MACHINE}-pc-linux-gnuaout"
37009+ exit ;;
37010+ coff-i386)
37011+ echo "${UNAME_MACHINE}-pc-linux-gnucoff"
37012+ exit ;;
37013+ "")
37014+ # Either a pre-BFD a.out linker (linux-gnuoldld) or
37015+ # one that does not give us useful --help.
37016+ echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
37017+ exit ;;
37018+ esac
37019+ # Determine whether the default compiler is a.out or elf
37020+ eval $set_cc_for_build
37021+ sed 's/^ //' << EOF >$dummy.c
37022+ #include <features.h>
37023+ #ifdef __ELF__
37024+ # ifdef __GLIBC__
37025+ # if __GLIBC__ >= 2
37026+ LIBC=gnu
37027+ # else
37028+ LIBC=gnulibc1
37029+ # endif
37030+ # else
37031+ LIBC=gnulibc1
37032+ # endif
37033+ #else
37034+ #ifdef __INTEL_COMPILER
37035+ LIBC=gnu
37036+ #else
37037+ LIBC=gnuaout
37038+ #endif
37039+ #endif
37040+ #ifdef __dietlibc__
37041+ LIBC=dietlibc
37042+ #endif
37043+EOF
37044+ eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
37045+ test x"${LIBC}" != x && {
37046+ echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
37047+ exit
37048+ }
37049+ test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
37050+ ;;
37051+ i*86:DYNIX/ptx:4*:*)
37052+ # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
37053+ # earlier versions are messed up and put the nodename in both
37054+ # sysname and nodename.
37055+ echo i386-sequent-sysv4
37056+ exit ;;
37057+ i*86:UNIX_SV:4.2MP:2.*)
37058+ # Unixware is an offshoot of SVR4, but it has its own version
37059+ # number series starting with 2...
37060+ # I am not positive that other SVR4 systems won't match this,
37061+ # I just have to hope. -- rms.
37062+ # Use sysv4.2uw... so that sysv4* matches it.
37063+ echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
37064+ exit ;;
37065+ i*86:OS/2:*:*)
37066+ # If we were able to find `uname', then EMX Unix compatibility
37067+ # is probably installed.
37068+ echo ${UNAME_MACHINE}-pc-os2-emx
37069+ exit ;;
37070+ i*86:XTS-300:*:STOP)
37071+ echo ${UNAME_MACHINE}-unknown-stop
37072+ exit ;;
37073+ i*86:atheos:*:*)
37074+ echo ${UNAME_MACHINE}-unknown-atheos
37075+ exit ;;
37076+ i*86:syllable:*:*)
37077+ echo ${UNAME_MACHINE}-pc-syllable
37078+ exit ;;
37079+ i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
37080+ echo i386-unknown-lynxos${UNAME_RELEASE}
37081+ exit ;;
37082+ i*86:*DOS:*:*)
37083+ echo ${UNAME_MACHINE}-pc-msdosdjgpp
37084+ exit ;;
37085+ i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
37086+ UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
37087+ if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
37088+ echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
37089+ else
37090+ echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
37091+ fi
37092+ exit ;;
37093+ i*86:*:5:[678]*)
37094+ # UnixWare 7.x, OpenUNIX and OpenServer 6.
37095+ case `/bin/uname -X | grep "^Machine"` in
37096+ *486*) UNAME_MACHINE=i486 ;;
37097+ *Pentium) UNAME_MACHINE=i586 ;;
37098+ *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
37099+ esac
37100+ echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
37101+ exit ;;
37102+ i*86:*:3.2:*)
37103+ if test -f /usr/options/cb.name; then
37104+ UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
37105+ echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
37106+ elif /bin/uname -X 2>/dev/null >/dev/null ; then
37107+ UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
37108+ (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
37109+ (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
37110+ && UNAME_MACHINE=i586
37111+ (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
37112+ && UNAME_MACHINE=i686
37113+ (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
37114+ && UNAME_MACHINE=i686
37115+ echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
37116+ else
37117+ echo ${UNAME_MACHINE}-pc-sysv32
37118+ fi
37119+ exit ;;
37120+ pc:*:*:*)
37121+ # Left here for compatibility:
37122+ # uname -m prints for DJGPP always 'pc', but it prints nothing about
37123+ # the processor, so we play safe by assuming i386.
37124+ echo i386-pc-msdosdjgpp
37125+ exit ;;
37126+ Intel:Mach:3*:*)
37127+ echo i386-pc-mach3
37128+ exit ;;
37129+ paragon:*:*:*)
37130+ echo i860-intel-osf1
37131+ exit ;;
37132+ i860:*:4.*:*) # i860-SVR4
37133+ if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
37134+ echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
37135+ else # Add other i860-SVR4 vendors below as they are discovered.
37136+ echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
37137+ fi
37138+ exit ;;
37139+ mini*:CTIX:SYS*5:*)
37140+ # "miniframe"
37141+ echo m68010-convergent-sysv
37142+ exit ;;
37143+ mc68k:UNIX:SYSTEM5:3.51m)
37144+ echo m68k-convergent-sysv
37145+ exit ;;
37146+ M680?0:D-NIX:5.3:*)
37147+ echo m68k-diab-dnix
37148+ exit ;;
37149+ M68*:*:R3V[5678]*:*)
37150+ test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
37151+ 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0)
37152+ OS_REL=''
37153+ test -r /etc/.relid \
37154+ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
37155+ /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
37156+ && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
37157+ /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
37158+ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
37159+ 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
37160+ /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
37161+ && { echo i486-ncr-sysv4; exit; } ;;
37162+ m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
37163+ echo m68k-unknown-lynxos${UNAME_RELEASE}
37164+ exit ;;
37165+ mc68030:UNIX_System_V:4.*:*)
37166+ echo m68k-atari-sysv4
37167+ exit ;;
37168+ TSUNAMI:LynxOS:2.*:*)
37169+ echo sparc-unknown-lynxos${UNAME_RELEASE}
37170+ exit ;;
37171+ rs6000:LynxOS:2.*:*)
37172+ echo rs6000-unknown-lynxos${UNAME_RELEASE}
37173+ exit ;;
37174+ PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
37175+ echo powerpc-unknown-lynxos${UNAME_RELEASE}
37176+ exit ;;
37177+ SM[BE]S:UNIX_SV:*:*)
37178+ echo mips-dde-sysv${UNAME_RELEASE}
37179+ exit ;;
37180+ RM*:ReliantUNIX-*:*:*)
37181+ echo mips-sni-sysv4
37182+ exit ;;
37183+ RM*:SINIX-*:*:*)
37184+ echo mips-sni-sysv4
37185+ exit ;;
37186+ *:SINIX-*:*:*)
37187+ if uname -p 2>/dev/null >/dev/null ; then
37188+ UNAME_MACHINE=`(uname -p) 2>/dev/null`
37189+ echo ${UNAME_MACHINE}-sni-sysv4
37190+ else
37191+ echo ns32k-sni-sysv
37192+ fi
37193+ exit ;;
37194+ PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
37195+ # says <Richard.M.Bartel@ccMail.Census.GOV>
37196+ echo i586-unisys-sysv4
37197+ exit ;;
37198+ *:UNIX_System_V:4*:FTX*)
37199+ # From Gerald Hewes <hewes@openmarket.com>.
37200+ # How about differentiating between stratus architectures? -djm
37201+ echo hppa1.1-stratus-sysv4
37202+ exit ;;
37203+ *:*:*:FTX*)
37204+ # From seanf@swdc.stratus.com.
37205+ echo i860-stratus-sysv4
37206+ exit ;;
37207+ i*86:VOS:*:*)
37208+ # From Paul.Green@stratus.com.
37209+ echo ${UNAME_MACHINE}-stratus-vos
37210+ exit ;;
37211+ *:VOS:*:*)
37212+ # From Paul.Green@stratus.com.
37213+ echo hppa1.1-stratus-vos
37214+ exit ;;
37215+ mc68*:A/UX:*:*)
37216+ echo m68k-apple-aux${UNAME_RELEASE}
37217+ exit ;;
37218+ news*:NEWS-OS:6*:*)
37219+ echo mips-sony-newsos6
37220+ exit ;;
37221+ R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
37222+ if [ -d /usr/nec ]; then
37223+ echo mips-nec-sysv${UNAME_RELEASE}
37224+ else
37225+ echo mips-unknown-sysv${UNAME_RELEASE}
37226+ fi
37227+ exit ;;
37228+ BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
37229+ echo powerpc-be-beos
37230+ exit ;;
37231+ BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
37232+ echo powerpc-apple-beos
37233+ exit ;;
37234+ BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
37235+ echo i586-pc-beos
37236+ exit ;;
37237+ SX-4:SUPER-UX:*:*)
37238+ echo sx4-nec-superux${UNAME_RELEASE}
37239+ exit ;;
37240+ SX-5:SUPER-UX:*:*)
37241+ echo sx5-nec-superux${UNAME_RELEASE}
37242+ exit ;;
37243+ SX-6:SUPER-UX:*:*)
37244+ echo sx6-nec-superux${UNAME_RELEASE}
37245+ exit ;;
37246+ Power*:Rhapsody:*:*)
37247+ echo powerpc-apple-rhapsody${UNAME_RELEASE}
37248+ exit ;;
37249+ *:Rhapsody:*:*)
37250+ echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
37251+ exit ;;
37252+ *:Darwin:*:*)
37253+ UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
37254+ case $UNAME_PROCESSOR in
37255+ *86) UNAME_PROCESSOR=i686 ;;
37256+ unknown) UNAME_PROCESSOR=powerpc ;;
37257+ esac
37258+ echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
37259+ exit ;;
37260+ *:procnto*:*:* | *:QNX:[0123456789]*:*)
37261+ UNAME_PROCESSOR=`uname -p`
37262+ if test "$UNAME_PROCESSOR" = "x86"; then
37263+ UNAME_PROCESSOR=i386
37264+ UNAME_MACHINE=pc
37265+ fi
37266+ echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
37267+ exit ;;
37268+ *:QNX:*:4*)
37269+ echo i386-pc-qnx
37270+ exit ;;
37271+ NSE-?:NONSTOP_KERNEL:*:*)
37272+ echo nse-tandem-nsk${UNAME_RELEASE}
37273+ exit ;;
37274+ NSR-?:NONSTOP_KERNEL:*:*)
37275+ echo nsr-tandem-nsk${UNAME_RELEASE}
37276+ exit ;;
37277+ *:NonStop-UX:*:*)
37278+ echo mips-compaq-nonstopux
37279+ exit ;;
37280+ BS2000:POSIX*:*:*)
37281+ echo bs2000-siemens-sysv
37282+ exit ;;
37283+ DS/*:UNIX_System_V:*:*)
37284+ echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
37285+ exit ;;
37286+ *:Plan9:*:*)
37287+ # "uname -m" is not consistent, so use $cputype instead. 386
37288+ # is converted to i386 for consistency with other x86
37289+ # operating systems.
37290+ if test "$cputype" = "386"; then
37291+ UNAME_MACHINE=i386
37292+ else
37293+ UNAME_MACHINE="$cputype"
37294+ fi
37295+ echo ${UNAME_MACHINE}-unknown-plan9
37296+ exit ;;
37297+ *:TOPS-10:*:*)
37298+ echo pdp10-unknown-tops10
37299+ exit ;;
37300+ *:TENEX:*:*)
37301+ echo pdp10-unknown-tenex
37302+ exit ;;
37303+ KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
37304+ echo pdp10-dec-tops20
37305+ exit ;;
37306+ XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
37307+ echo pdp10-xkl-tops20
37308+ exit ;;
37309+ *:TOPS-20:*:*)
37310+ echo pdp10-unknown-tops20
37311+ exit ;;
37312+ *:ITS:*:*)
37313+ echo pdp10-unknown-its
37314+ exit ;;
37315+ SEI:*:*:SEIUX)
37316+ echo mips-sei-seiux${UNAME_RELEASE}
37317+ exit ;;
37318+ *:DragonFly:*:*)
37319+ echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
37320+ exit ;;
37321+ *:*VMS:*:*)
37322+ UNAME_MACHINE=`(uname -p) 2>/dev/null`
37323+ case "${UNAME_MACHINE}" in
37324+ A*) echo alpha-dec-vms ; exit ;;
37325+ I*) echo ia64-dec-vms ; exit ;;
37326+ V*) echo vax-dec-vms ; exit ;;
37327+ esac ;;
37328+ *:XENIX:*:SysV)
37329+ echo i386-pc-xenix
37330+ exit ;;
37331+ i*86:skyos:*:*)
37332+ echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
37333+ exit ;;
37334+esac
37335+
37336+#echo '(No uname command or uname output not recognized.)' 1>&2
37337+#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
37338+
37339+eval $set_cc_for_build
37340+cat >$dummy.c <<EOF
37341+#ifdef _SEQUENT_
37342+# include <sys/types.h>
37343+# include <sys/utsname.h>
37344+#endif
37345+main ()
37346+{
37347+#if defined (sony)
37348+#if defined (MIPSEB)
37349+ /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
37350+ I don't know.... */
37351+ printf ("mips-sony-bsd\n"); exit (0);
37352+#else
37353+#include <sys/param.h>
37354+ printf ("m68k-sony-newsos%s\n",
37355+#ifdef NEWSOS4
37356+ "4"
37357+#else
37358+ ""
37359+#endif
37360+ ); exit (0);
37361+#endif
37362+#endif
37363+
37364+#if defined (__arm) && defined (__acorn) && defined (__unix)
37365+ printf ("arm-acorn-riscix\n"); exit (0);
37366+#endif
37367+
37368+#if defined (hp300) && !defined (hpux)
37369+ printf ("m68k-hp-bsd\n"); exit (0);
37370+#endif
37371+
37372+#if defined (NeXT)
37373+#if !defined (__ARCHITECTURE__)
37374+#define __ARCHITECTURE__ "m68k"
37375+#endif
37376+ int version;
37377+ version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
37378+ if (version < 4)
37379+ printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
37380+ else
37381+ printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
37382+ exit (0);
37383+#endif
37384+
37385+#if defined (MULTIMAX) || defined (n16)
37386+#if defined (UMAXV)
37387+ printf ("ns32k-encore-sysv\n"); exit (0);
37388+#else
37389+#if defined (CMU)
37390+ printf ("ns32k-encore-mach\n"); exit (0);
37391+#else
37392+ printf ("ns32k-encore-bsd\n"); exit (0);
37393+#endif
37394+#endif
37395+#endif
37396+
37397+#if defined (__386BSD__)
37398+ printf ("i386-pc-bsd\n"); exit (0);
37399+#endif
37400+
37401+#if defined (sequent)
37402+#if defined (i386)
37403+ printf ("i386-sequent-dynix\n"); exit (0);
37404+#endif
37405+#if defined (ns32000)
37406+ printf ("ns32k-sequent-dynix\n"); exit (0);
37407+#endif
37408+#endif
37409+
37410+#if defined (_SEQUENT_)
37411+ struct utsname un;
37412+
37413+ uname(&un);
37414+
37415+ if (strncmp(un.version, "V2", 2) == 0) {
37416+ printf ("i386-sequent-ptx2\n"); exit (0);
37417+ }
37418+ if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
37419+ printf ("i386-sequent-ptx1\n"); exit (0);
37420+ }
37421+ printf ("i386-sequent-ptx\n"); exit (0);
37422+
37423+#endif
37424+
37425+#if defined (vax)
37426+# if !defined (ultrix)
37427+# include <sys/param.h>
37428+# if defined (BSD)
37429+# if BSD == 43
37430+ printf ("vax-dec-bsd4.3\n"); exit (0);
37431+# else
37432+# if BSD == 199006
37433+ printf ("vax-dec-bsd4.3reno\n"); exit (0);
37434+# else
37435+ printf ("vax-dec-bsd\n"); exit (0);
37436+# endif
37437+# endif
37438+# else
37439+ printf ("vax-dec-bsd\n"); exit (0);
37440+# endif
37441+# else
37442+ printf ("vax-dec-ultrix\n"); exit (0);
37443+# endif
37444+#endif
37445+
37446+#if defined (alliant) && defined (i860)
37447+ printf ("i860-alliant-bsd\n"); exit (0);
37448+#endif
37449+
37450+ exit (1);
37451+}
37452+EOF
37453+
37454+$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
37455+ { echo "$SYSTEM_NAME"; exit; }
37456+
37457+# Apollos put the system type in the environment.
37458+
37459+test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
37460+
37461+# Convex versions that predate uname can use getsysinfo(1)
37462+
37463+if [ -x /usr/convex/getsysinfo ]
37464+then
37465+ case `getsysinfo -f cpu_type` in
37466+ c1*)
37467+ echo c1-convex-bsd
37468+ exit ;;
37469+ c2*)
37470+ if getsysinfo -f scalar_acc
37471+ then echo c32-convex-bsd
37472+ else echo c2-convex-bsd
37473+ fi
37474+ exit ;;
37475+ c34*)
37476+ echo c34-convex-bsd
37477+ exit ;;
37478+ c38*)
37479+ echo c38-convex-bsd
37480+ exit ;;
37481+ c4*)
37482+ echo c4-convex-bsd
37483+ exit ;;
37484+ esac
37485+fi
37486+
37487+cat >&2 <<EOF
37488+$0: unable to guess system type
37489+
37490+This script, last modified $timestamp, has failed to recognize
37491+the operating system you are using. It is advised that you
37492+download the most up to date version of the config scripts from
37493+
37494+ http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
37495+and
37496+ http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
37497+
37498+If the version you run ($0) is already up to date, please
37499+send the following data and any information you think might be
37500+pertinent to <config-patches@gnu.org> in order to provide the needed
37501+information to handle your system.
37502+
37503+config.guess timestamp = $timestamp
37504+
37505+uname -m = `(uname -m) 2>/dev/null || echo unknown`
37506+uname -r = `(uname -r) 2>/dev/null || echo unknown`
37507+uname -s = `(uname -s) 2>/dev/null || echo unknown`
37508+uname -v = `(uname -v) 2>/dev/null || echo unknown`
37509+
37510+/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
37511+/bin/uname -X = `(/bin/uname -X) 2>/dev/null`
37512+
37513+hostinfo = `(hostinfo) 2>/dev/null`
37514+/bin/universe = `(/bin/universe) 2>/dev/null`
37515+/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null`
37516+/bin/arch = `(/bin/arch) 2>/dev/null`
37517+/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
37518+/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
37519+
37520+UNAME_MACHINE = ${UNAME_MACHINE}
37521+UNAME_RELEASE = ${UNAME_RELEASE}
37522+UNAME_SYSTEM = ${UNAME_SYSTEM}
37523+UNAME_VERSION = ${UNAME_VERSION}
37524+EOF
37525+
37526+exit 1
37527+
37528+# Local variables:
37529+# eval: (add-hook 'write-file-hooks 'time-stamp)
37530+# time-stamp-start: "timestamp='"
37531+# time-stamp-format: "%:y-%02m-%02d"
37532+# time-stamp-end: "'"
37533+# End:
37534--- agsync-0.2-pre.orig/install-sh
37535+++ agsync-0.2-pre/install-sh
37536@@ -0,0 +1,294 @@
37537+#!/bin/sh
37538+#
37539+# install - install a program, script, or datafile
37540+#
37541+# This originates from X11R5 (mit/util/scripts/install.sh), which was
37542+# later released in X11R6 (xc/config/util/install.sh) with the
37543+# following copyright and license.
37544+#
37545+# Copyright (C) 1994 X Consortium
37546+#
37547+# Permission is hereby granted, free of charge, to any person obtaining a copy
37548+# of this software and associated documentation files (the "Software"), to
37549+# deal in the Software without restriction, including without limitation the
37550+# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
37551+# sell copies of the Software, and to permit persons to whom the Software is
37552+# furnished to do so, subject to the following conditions:
37553+#
37554+# The above copyright notice and this permission notice shall be included in
37555+# all copies or substantial portions of the Software.
37556+#
37557+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
37558+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
37559+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
37560+# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
37561+# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
37562+# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
37563+#
37564+# Except as contained in this notice, the name of the X Consortium shall not
37565+# be used in advertising or otherwise to promote the sale, use or other deal-
37566+# ings in this Software without prior written authorization from the X Consor-
37567+# tium.
37568+#
37569+#
37570+# FSF changes to this file are in the public domain.
37571+#
37572+# Calling this script install-sh is preferred over install.sh, to prevent
37573+# `make' implicit rules from creating a file called install from it
37574+# when there is no Makefile.
37575+#
37576+# This script is compatible with the BSD install script, but was written
37577+# from scratch. It can only install one file at a time, a restriction
37578+# shared with many OS's install programs.
37579+
37580+
37581+# set DOITPROG to echo to test this script
37582+
37583+# Don't use :- since 4.3BSD and earlier shells don't like it.
37584+doit="${DOITPROG-}"
37585+
37586+
37587+# put in absolute paths if you don't have them in your path; or use env. vars.
37588+
37589+mvprog="${MVPROG-mv}"
37590+cpprog="${CPPROG-cp}"
37591+chmodprog="${CHMODPROG-chmod}"
37592+chownprog="${CHOWNPROG-chown}"
37593+chgrpprog="${CHGRPPROG-chgrp}"
37594+stripprog="${STRIPPROG-strip}"
37595+rmprog="${RMPROG-rm}"
37596+mkdirprog="${MKDIRPROG-mkdir}"
37597+
37598+transformbasename=""
37599+transform_arg=""
37600+instcmd="$mvprog"
37601+chmodcmd="$chmodprog 0755"
37602+chowncmd=""
37603+chgrpcmd=""
37604+stripcmd=""
37605+rmcmd="$rmprog -f"
37606+mvcmd="$mvprog"
37607+src=""
37608+dst=""
37609+dir_arg=""
37610+
37611+while [ x"$1" != x ]; do
37612+ case $1 in
37613+ -c) instcmd=$cpprog
37614+ shift
37615+ continue;;
37616+
37617+ -d) dir_arg=true
37618+ shift
37619+ continue;;
37620+
37621+ -m) chmodcmd="$chmodprog $2"
37622+ shift
37623+ shift
37624+ continue;;
37625+
37626+ -o) chowncmd="$chownprog $2"
37627+ shift
37628+ shift
37629+ continue;;
37630+
37631+ -g) chgrpcmd="$chgrpprog $2"
37632+ shift
37633+ shift
37634+ continue;;
37635+
37636+ -s) stripcmd=$stripprog
37637+ shift
37638+ continue;;
37639+
37640+ -t=*) transformarg=`echo $1 | sed 's/-t=//'`
37641+ shift
37642+ continue;;
37643+
37644+ -b=*) transformbasename=`echo $1 | sed 's/-b=//'`
37645+ shift
37646+ continue;;
37647+
37648+ *) if [ x"$src" = x ]
37649+ then
37650+ src=$1
37651+ else
37652+ # this colon is to work around a 386BSD /bin/sh bug
37653+ :
37654+ dst=$1
37655+ fi
37656+ shift
37657+ continue;;
37658+ esac
37659+done
37660+
37661+if [ x"$src" = x ]
37662+then
37663+ echo "$0: no input file specified" >&2
37664+ exit 1
37665+else
37666+ :
37667+fi
37668+
37669+if [ x"$dir_arg" != x ]; then
37670+ dst=$src
37671+ src=""
37672+
37673+ if [ -d "$dst" ]; then
37674+ instcmd=:
37675+ chmodcmd=""
37676+ else
37677+ instcmd=$mkdirprog
37678+ fi
37679+else
37680+
37681+# Waiting for this to be detected by the "$instcmd $src $dsttmp" command
37682+# might cause directories to be created, which would be especially bad
37683+# if $src (and thus $dsttmp) contains '*'.
37684+
37685+ if [ -f "$src" ] || [ -d "$src" ]
37686+ then
37687+ :
37688+ else
37689+ echo "$0: $src does not exist" >&2
37690+ exit 1
37691+ fi
37692+
37693+ if [ x"$dst" = x ]
37694+ then
37695+ echo "$0: no destination specified" >&2
37696+ exit 1
37697+ else
37698+ :
37699+ fi
37700+
37701+# If destination is a directory, append the input filename; if your system
37702+# does not like double slashes in filenames, you may need to add some logic
37703+
37704+ if [ -d "$dst" ]
37705+ then
37706+ dst=$dst/`basename "$src"`
37707+ else
37708+ :
37709+ fi
37710+fi
37711+
37712+## this sed command emulates the dirname command
37713+dstdir=`echo "$dst" | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'`
37714+
37715+# Make sure that the destination directory exists.
37716+# this part is taken from Noah Friedman's mkinstalldirs script
37717+
37718+# Skip lots of stat calls in the usual case.
37719+if [ ! -d "$dstdir" ]; then
37720+defaultIFS='
37721+ '
37722+IFS="${IFS-$defaultIFS}"
37723+
37724+oIFS=$IFS
37725+# Some sh's can't handle IFS=/ for some reason.
37726+IFS='%'
37727+set - `echo "$dstdir" | sed -e 's@/@%@g' -e 's@^%@/@'`
37728+IFS=$oIFS
37729+
37730+pathcomp=''
37731+
37732+while [ $# -ne 0 ] ; do
37733+ pathcomp=$pathcomp$1
37734+ shift
37735+
37736+ if [ ! -d "$pathcomp" ] ;
37737+ then
37738+ $mkdirprog "$pathcomp"
37739+ else
37740+ :
37741+ fi
37742+
37743+ pathcomp=$pathcomp/
37744+done
37745+fi
37746+
37747+if [ x"$dir_arg" != x ]
37748+then
37749+ $doit $instcmd "$dst" &&
37750+
37751+ if [ x"$chowncmd" != x ]; then $doit $chowncmd "$dst"; else : ; fi &&
37752+ if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd "$dst"; else : ; fi &&
37753+ if [ x"$stripcmd" != x ]; then $doit $stripcmd "$dst"; else : ; fi &&
37754+ if [ x"$chmodcmd" != x ]; then $doit $chmodcmd "$dst"; else : ; fi
37755+else
37756+
37757+# If we're going to rename the final executable, determine the name now.
37758+
37759+ if [ x"$transformarg" = x ]
37760+ then
37761+ dstfile=`basename "$dst"`
37762+ else
37763+ dstfile=`basename "$dst" $transformbasename |
37764+ sed $transformarg`$transformbasename
37765+ fi
37766+
37767+# don't allow the sed command to completely eliminate the filename
37768+
37769+ if [ x"$dstfile" = x ]
37770+ then
37771+ dstfile=`basename "$dst"`
37772+ else
37773+ :
37774+ fi
37775+
37776+# Make a couple of temp file names in the proper directory.
37777+
37778+ dsttmp=$dstdir/_inst.$$_
37779+ rmtmp=$dstdir/_rm.$$_
37780+
37781+# Trap to clean up temp files at exit.
37782+
37783+ trap 'status=$?; rm -f "$dsttmp" "$rmtmp" && exit $status' 0
37784+ trap '(exit $?); exit' 1 2 13 15
37785+
37786+# Move or copy the file name to the temp name
37787+
37788+ $doit $instcmd "$src" "$dsttmp" &&
37789+
37790+# and set any options; do chmod last to preserve setuid bits
37791+
37792+# If any of these fail, we abort the whole thing. If we want to
37793+# ignore errors from any of these, just make sure not to ignore
37794+# errors from the above "$doit $instcmd $src $dsttmp" command.
37795+
37796+ if [ x"$chowncmd" != x ]; then $doit $chowncmd "$dsttmp"; else :;fi &&
37797+ if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd "$dsttmp"; else :;fi &&
37798+ if [ x"$stripcmd" != x ]; then $doit $stripcmd "$dsttmp"; else :;fi &&
37799+ if [ x"$chmodcmd" != x ]; then $doit $chmodcmd "$dsttmp"; else :;fi &&
37800+
37801+# Now remove or move aside any old file at destination location. We try this
37802+# two ways since rm can't unlink itself on some systems and the destination
37803+# file might be busy for other reasons. In this case, the final cleanup
37804+# might fail but the new file should still install successfully.
37805+
37806+{
37807+ if [ -f "$dstdir/$dstfile" ]
37808+ then
37809+ $doit $rmcmd -f "$dstdir/$dstfile" 2>/dev/null ||
37810+ $doit $mvcmd -f "$dstdir/$dstfile" "$rmtmp" 2>/dev/null ||
37811+ {
37812+ echo "$0: cannot unlink or rename $dstdir/$dstfile" >&2
37813+ (exit 1); exit
37814+ }
37815+ else
37816+ :
37817+ fi
37818+} &&
37819+
37820+# Now rename the file to the real destination.
37821+
37822+ $doit $mvcmd "$dsttmp" "$dstdir/$dstfile"
37823+
37824+fi &&
37825+
37826+# The final little trick to "correctly" pass the exit status to the exit trap.
37827+
37828+{
37829+ (exit 0); exit
37830+}
37831--- agsync-0.2-pre.orig/config.sub
37832+++ agsync-0.2-pre/config.sub
37833@@ -0,0 +1,1579 @@
37834+#! /bin/sh
37835+# Configuration validation subroutine script.
37836+# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
37837+# 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
37838+
37839+timestamp='2005-07-08'
37840+
37841+# This file is (in principle) common to ALL GNU software.
37842+# The presence of a machine in this file suggests that SOME GNU software
37843+# can handle that machine. It does not imply ALL GNU software can.
37844+#
37845+# This file is free software; you can redistribute it and/or modify
37846+# it under the terms of the GNU General Public License as published by
37847+# the Free Software Foundation; either version 2 of the License, or
37848+# (at your option) any later version.
37849+#
37850+# This program is distributed in the hope that it will be useful,
37851+# but WITHOUT ANY WARRANTY; without even the implied warranty of
37852+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
37853+# GNU General Public License for more details.
37854+#
37855+# You should have received a copy of the GNU General Public License
37856+# along with this program; if not, write to the Free Software
37857+# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
37858+# 02110-1301, USA.
37859+#
37860+# As a special exception to the GNU General Public License, if you
37861+# distribute this file as part of a program that contains a
37862+# configuration script generated by Autoconf, you may include it under
37863+# the same distribution terms that you use for the rest of that program.
37864+
37865+
37866+# Please send patches to <config-patches@gnu.org>. Submit a context
37867+# diff and a properly formatted ChangeLog entry.
37868+#
37869+# Configuration subroutine to validate and canonicalize a configuration type.
37870+# Supply the specified configuration type as an argument.
37871+# If it is invalid, we print an error message on stderr and exit with code 1.
37872+# Otherwise, we print the canonical config type on stdout and succeed.
37873+
37874+# This file is supposed to be the same for all GNU packages
37875+# and recognize all the CPU types, system types and aliases
37876+# that are meaningful with *any* GNU software.
37877+# Each package is responsible for reporting which valid configurations
37878+# it does not support. The user should be able to distinguish
37879+# a failure to support a valid configuration from a meaningless
37880+# configuration.
37881+
37882+# The goal of this file is to map all the various variations of a given
37883+# machine specification into a single specification in the form:
37884+# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
37885+# or in some cases, the newer four-part form:
37886+# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
37887+# It is wrong to echo any other type of specification.
37888+
37889+me=`echo "$0" | sed -e 's,.*/,,'`
37890+
37891+usage="\
37892+Usage: $0 [OPTION] CPU-MFR-OPSYS
37893+ $0 [OPTION] ALIAS
37894+
37895+Canonicalize a configuration name.
37896+
37897+Operation modes:
37898+ -h, --help print this help, then exit
37899+ -t, --time-stamp print date of last modification, then exit
37900+ -v, --version print version number, then exit
37901+
37902+Report bugs and patches to <config-patches@gnu.org>."
37903+
37904+version="\
37905+GNU config.sub ($timestamp)
37906+
37907+Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
37908+Free Software Foundation, Inc.
37909+
37910+This is free software; see the source for copying conditions. There is NO
37911+warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
37912+
37913+help="
37914+Try \`$me --help' for more information."
37915+
37916+# Parse command line
37917+while test $# -gt 0 ; do
37918+ case $1 in
37919+ --time-stamp | --time* | -t )
37920+ echo "$timestamp" ; exit ;;
37921+ --version | -v )
37922+ echo "$version" ; exit ;;
37923+ --help | --h* | -h )
37924+ echo "$usage"; exit ;;
37925+ -- ) # Stop option processing
37926+ shift; break ;;
37927+ - ) # Use stdin as input.
37928+ break ;;
37929+ -* )
37930+ echo "$me: invalid option $1$help"
37931+ exit 1 ;;
37932+
37933+ *local*)
37934+ # First pass through any local machine types.
37935+ echo $1
37936+ exit ;;
37937+
37938+ * )
37939+ break ;;
37940+ esac
37941+done
37942+
37943+case $# in
37944+ 0) echo "$me: missing argument$help" >&2
37945+ exit 1;;
37946+ 1) ;;
37947+ *) echo "$me: too many arguments$help" >&2
37948+ exit 1;;
37949+esac
37950+
37951+# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
37952+# Here we must recognize all the valid KERNEL-OS combinations.
37953+maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
37954+case $maybe_os in
37955+ nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \
37956+ kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
37957+ os=-$maybe_os
37958+ basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
37959+ ;;
37960+ *)
37961+ basic_machine=`echo $1 | sed 's/-[^-]*$//'`
37962+ if [ $basic_machine != $1 ]
37963+ then os=`echo $1 | sed 's/.*-/-/'`
37964+ else os=; fi
37965+ ;;
37966+esac
37967+
37968+### Let's recognize common machines as not being operating systems so
37969+### that things like config.sub decstation-3100 work. We also
37970+### recognize some manufacturers as not being operating systems, so we
37971+### can provide default operating systems below.
37972+case $os in
37973+ -sun*os*)
37974+ # Prevent following clause from handling this invalid input.
37975+ ;;
37976+ -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
37977+ -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
37978+ -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
37979+ -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
37980+ -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
37981+ -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
37982+ -apple | -axis | -knuth | -cray)
37983+ os=
37984+ basic_machine=$1
37985+ ;;
37986+ -sim | -cisco | -oki | -wec | -winbond)
37987+ os=
37988+ basic_machine=$1
37989+ ;;
37990+ -scout)
37991+ ;;
37992+ -wrs)
37993+ os=-vxworks
37994+ basic_machine=$1
37995+ ;;
37996+ -chorusos*)
37997+ os=-chorusos
37998+ basic_machine=$1
37999+ ;;
38000+ -chorusrdb)
38001+ os=-chorusrdb
38002+ basic_machine=$1
38003+ ;;
38004+ -hiux*)
38005+ os=-hiuxwe2
38006+ ;;
38007+ -sco5)
38008+ os=-sco3.2v5
38009+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
38010+ ;;
38011+ -sco4)
38012+ os=-sco3.2v4
38013+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
38014+ ;;
38015+ -sco3.2.[4-9]*)
38016+ os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
38017+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
38018+ ;;
38019+ -sco3.2v[4-9]*)
38020+ # Don't forget version if it is 3.2v4 or newer.
38021+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
38022+ ;;
38023+ -sco*)
38024+ os=-sco3.2v2
38025+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
38026+ ;;
38027+ -udk*)
38028+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
38029+ ;;
38030+ -isc)
38031+ os=-isc2.2
38032+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
38033+ ;;
38034+ -clix*)
38035+ basic_machine=clipper-intergraph
38036+ ;;
38037+ -isc*)
38038+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
38039+ ;;
38040+ -lynx*)
38041+ os=-lynxos
38042+ ;;
38043+ -ptx*)
38044+ basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
38045+ ;;
38046+ -windowsnt*)
38047+ os=`echo $os | sed -e 's/windowsnt/winnt/'`
38048+ ;;
38049+ -psos*)
38050+ os=-psos
38051+ ;;
38052+ -mint | -mint[0-9]*)
38053+ basic_machine=m68k-atari
38054+ os=-mint
38055+ ;;
38056+esac
38057+
38058+# Decode aliases for certain CPU-COMPANY combinations.
38059+case $basic_machine in
38060+ # Recognize the basic CPU types without company name.
38061+ # Some are omitted here because they have special meanings below.
38062+ 1750a | 580 \
38063+ | a29k \
38064+ | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
38065+ | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
38066+ | am33_2.0 \
38067+ | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
38068+ | bfin \
38069+ | c4x | clipper \
38070+ | d10v | d30v | dlx | dsp16xx \
38071+ | fr30 | frv \
38072+ | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
38073+ | i370 | i860 | i960 | ia64 \
38074+ | ip2k | iq2000 \
38075+ | m32r | m32rle | m68000 | m68k | m88k | maxq | mcore \
38076+ | mips | mipsbe | mipseb | mipsel | mipsle \
38077+ | mips16 \
38078+ | mips64 | mips64el \
38079+ | mips64vr | mips64vrel \
38080+ | mips64orion | mips64orionel \
38081+ | mips64vr4100 | mips64vr4100el \
38082+ | mips64vr4300 | mips64vr4300el \
38083+ | mips64vr5000 | mips64vr5000el \
38084+ | mips64vr5900 | mips64vr5900el \
38085+ | mipsisa32 | mipsisa32el \
38086+ | mipsisa32r2 | mipsisa32r2el \
38087+ | mipsisa64 | mipsisa64el \
38088+ | mipsisa64r2 | mipsisa64r2el \
38089+ | mipsisa64sb1 | mipsisa64sb1el \
38090+ | mipsisa64sr71k | mipsisa64sr71kel \
38091+ | mipstx39 | mipstx39el \
38092+ | mn10200 | mn10300 \
38093+ | ms1 \
38094+ | msp430 \
38095+ | ns16k | ns32k \
38096+ | or32 \
38097+ | pdp10 | pdp11 | pj | pjl \
38098+ | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
38099+ | pyramid \
38100+ | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
38101+ | sh64 | sh64le \
38102+ | sparc | sparc64 | sparc64b | sparc86x | sparclet | sparclite \
38103+ | sparcv8 | sparcv9 | sparcv9b \
38104+ | strongarm \
38105+ | tahoe | thumb | tic4x | tic80 | tron \
38106+ | v850 | v850e \
38107+ | we32k \
38108+ | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \
38109+ | z8k)
38110+ basic_machine=$basic_machine-unknown
38111+ ;;
38112+ m32c)
38113+ basic_machine=$basic_machine-unknown
38114+ ;;
38115+ m6811 | m68hc11 | m6812 | m68hc12)
38116+ # Motorola 68HC11/12.
38117+ basic_machine=$basic_machine-unknown
38118+ os=-none
38119+ ;;
38120+ m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
38121+ ;;
38122+
38123+ # We use `pc' rather than `unknown'
38124+ # because (1) that's what they normally are, and
38125+ # (2) the word "unknown" tends to confuse beginning users.
38126+ i*86 | x86_64)
38127+ basic_machine=$basic_machine-pc
38128+ ;;
38129+ # Object if more than one company name word.
38130+ *-*-*)
38131+ echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
38132+ exit 1
38133+ ;;
38134+ # Recognize the basic CPU types with company name.
38135+ 580-* \
38136+ | a29k-* \
38137+ | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
38138+ | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
38139+ | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
38140+ | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
38141+ | avr-* \
38142+ | bfin-* | bs2000-* \
38143+ | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
38144+ | clipper-* | craynv-* | cydra-* \
38145+ | d10v-* | d30v-* | dlx-* \
38146+ | elxsi-* \
38147+ | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
38148+ | h8300-* | h8500-* \
38149+ | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
38150+ | i*86-* | i860-* | i960-* | ia64-* \
38151+ | ip2k-* | iq2000-* \
38152+ | m32r-* | m32rle-* \
38153+ | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
38154+ | m88110-* | m88k-* | maxq-* | mcore-* \
38155+ | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
38156+ | mips16-* \
38157+ | mips64-* | mips64el-* \
38158+ | mips64vr-* | mips64vrel-* \
38159+ | mips64orion-* | mips64orionel-* \
38160+ | mips64vr4100-* | mips64vr4100el-* \
38161+ | mips64vr4300-* | mips64vr4300el-* \
38162+ | mips64vr5000-* | mips64vr5000el-* \
38163+ | mips64vr5900-* | mips64vr5900el-* \
38164+ | mipsisa32-* | mipsisa32el-* \
38165+ | mipsisa32r2-* | mipsisa32r2el-* \
38166+ | mipsisa64-* | mipsisa64el-* \
38167+ | mipsisa64r2-* | mipsisa64r2el-* \
38168+ | mipsisa64sb1-* | mipsisa64sb1el-* \
38169+ | mipsisa64sr71k-* | mipsisa64sr71kel-* \
38170+ | mipstx39-* | mipstx39el-* \
38171+ | mmix-* \
38172+ | ms1-* \
38173+ | msp430-* \
38174+ | none-* | np1-* | ns16k-* | ns32k-* \
38175+ | orion-* \
38176+ | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
38177+ | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
38178+ | pyramid-* \
38179+ | romp-* | rs6000-* \
38180+ | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | shbe-* \
38181+ | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
38182+ | sparc-* | sparc64-* | sparc64b-* | sparc86x-* | sparclet-* \
38183+ | sparclite-* \
38184+ | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
38185+ | tahoe-* | thumb-* \
38186+ | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
38187+ | tron-* \
38188+ | v850-* | v850e-* | vax-* \
38189+ | we32k-* \
38190+ | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \
38191+ | xstormy16-* | xtensa-* \
38192+ | ymp-* \
38193+ | z8k-*)
38194+ ;;
38195+ m32c-*)
38196+ ;;
38197+ # Recognize the various machine names and aliases which stand
38198+ # for a CPU type and a company and sometimes even an OS.
38199+ 386bsd)
38200+ basic_machine=i386-unknown
38201+ os=-bsd
38202+ ;;
38203+ 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
38204+ basic_machine=m68000-att
38205+ ;;
38206+ 3b*)
38207+ basic_machine=we32k-att
38208+ ;;
38209+ a29khif)
38210+ basic_machine=a29k-amd
38211+ os=-udi
38212+ ;;
38213+ abacus)
38214+ basic_machine=abacus-unknown
38215+ ;;
38216+ adobe68k)
38217+ basic_machine=m68010-adobe
38218+ os=-scout
38219+ ;;
38220+ alliant | fx80)
38221+ basic_machine=fx80-alliant
38222+ ;;
38223+ altos | altos3068)
38224+ basic_machine=m68k-altos
38225+ ;;
38226+ am29k)
38227+ basic_machine=a29k-none
38228+ os=-bsd
38229+ ;;
38230+ amd64)
38231+ basic_machine=x86_64-pc
38232+ ;;
38233+ amd64-*)
38234+ basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
38235+ ;;
38236+ amdahl)
38237+ basic_machine=580-amdahl
38238+ os=-sysv
38239+ ;;
38240+ amiga | amiga-*)
38241+ basic_machine=m68k-unknown
38242+ ;;
38243+ amigaos | amigados)
38244+ basic_machine=m68k-unknown
38245+ os=-amigaos
38246+ ;;
38247+ amigaunix | amix)
38248+ basic_machine=m68k-unknown
38249+ os=-sysv4
38250+ ;;
38251+ apollo68)
38252+ basic_machine=m68k-apollo
38253+ os=-sysv
38254+ ;;
38255+ apollo68bsd)
38256+ basic_machine=m68k-apollo
38257+ os=-bsd
38258+ ;;
38259+ aux)
38260+ basic_machine=m68k-apple
38261+ os=-aux
38262+ ;;
38263+ balance)
38264+ basic_machine=ns32k-sequent
38265+ os=-dynix
38266+ ;;
38267+ c90)
38268+ basic_machine=c90-cray
38269+ os=-unicos
38270+ ;;
38271+ convex-c1)
38272+ basic_machine=c1-convex
38273+ os=-bsd
38274+ ;;
38275+ convex-c2)
38276+ basic_machine=c2-convex
38277+ os=-bsd
38278+ ;;
38279+ convex-c32)
38280+ basic_machine=c32-convex
38281+ os=-bsd
38282+ ;;
38283+ convex-c34)
38284+ basic_machine=c34-convex
38285+ os=-bsd
38286+ ;;
38287+ convex-c38)
38288+ basic_machine=c38-convex
38289+ os=-bsd
38290+ ;;
38291+ cray | j90)
38292+ basic_machine=j90-cray
38293+ os=-unicos
38294+ ;;
38295+ craynv)
38296+ basic_machine=craynv-cray
38297+ os=-unicosmp
38298+ ;;
38299+ cr16c)
38300+ basic_machine=cr16c-unknown
38301+ os=-elf
38302+ ;;
38303+ crds | unos)
38304+ basic_machine=m68k-crds
38305+ ;;
38306+ crisv32 | crisv32-* | etraxfs*)
38307+ basic_machine=crisv32-axis
38308+ ;;
38309+ cris | cris-* | etrax*)
38310+ basic_machine=cris-axis
38311+ ;;
38312+ crx)
38313+ basic_machine=crx-unknown
38314+ os=-elf
38315+ ;;
38316+ da30 | da30-*)
38317+ basic_machine=m68k-da30
38318+ ;;
38319+ decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
38320+ basic_machine=mips-dec
38321+ ;;
38322+ decsystem10* | dec10*)
38323+ basic_machine=pdp10-dec
38324+ os=-tops10
38325+ ;;
38326+ decsystem20* | dec20*)
38327+ basic_machine=pdp10-dec
38328+ os=-tops20
38329+ ;;
38330+ delta | 3300 | motorola-3300 | motorola-delta \
38331+ | 3300-motorola | delta-motorola)
38332+ basic_machine=m68k-motorola
38333+ ;;
38334+ delta88)
38335+ basic_machine=m88k-motorola
38336+ os=-sysv3
38337+ ;;
38338+ djgpp)
38339+ basic_machine=i586-pc
38340+ os=-msdosdjgpp
38341+ ;;
38342+ dpx20 | dpx20-*)
38343+ basic_machine=rs6000-bull
38344+ os=-bosx
38345+ ;;
38346+ dpx2* | dpx2*-bull)
38347+ basic_machine=m68k-bull
38348+ os=-sysv3
38349+ ;;
38350+ ebmon29k)
38351+ basic_machine=a29k-amd
38352+ os=-ebmon
38353+ ;;
38354+ elxsi)
38355+ basic_machine=elxsi-elxsi
38356+ os=-bsd
38357+ ;;
38358+ encore | umax | mmax)
38359+ basic_machine=ns32k-encore
38360+ ;;
38361+ es1800 | OSE68k | ose68k | ose | OSE)
38362+ basic_machine=m68k-ericsson
38363+ os=-ose
38364+ ;;
38365+ fx2800)
38366+ basic_machine=i860-alliant
38367+ ;;
38368+ genix)
38369+ basic_machine=ns32k-ns
38370+ ;;
38371+ gmicro)
38372+ basic_machine=tron-gmicro
38373+ os=-sysv
38374+ ;;
38375+ go32)
38376+ basic_machine=i386-pc
38377+ os=-go32
38378+ ;;
38379+ h3050r* | hiux*)
38380+ basic_machine=hppa1.1-hitachi
38381+ os=-hiuxwe2
38382+ ;;
38383+ h8300hms)
38384+ basic_machine=h8300-hitachi
38385+ os=-hms
38386+ ;;
38387+ h8300xray)
38388+ basic_machine=h8300-hitachi
38389+ os=-xray
38390+ ;;
38391+ h8500hms)
38392+ basic_machine=h8500-hitachi
38393+ os=-hms
38394+ ;;
38395+ harris)
38396+ basic_machine=m88k-harris
38397+ os=-sysv3
38398+ ;;
38399+ hp300-*)
38400+ basic_machine=m68k-hp
38401+ ;;
38402+ hp300bsd)
38403+ basic_machine=m68k-hp
38404+ os=-bsd
38405+ ;;
38406+ hp300hpux)
38407+ basic_machine=m68k-hp
38408+ os=-hpux
38409+ ;;
38410+ hp3k9[0-9][0-9] | hp9[0-9][0-9])
38411+ basic_machine=hppa1.0-hp
38412+ ;;
38413+ hp9k2[0-9][0-9] | hp9k31[0-9])
38414+ basic_machine=m68000-hp
38415+ ;;
38416+ hp9k3[2-9][0-9])
38417+ basic_machine=m68k-hp
38418+ ;;
38419+ hp9k6[0-9][0-9] | hp6[0-9][0-9])
38420+ basic_machine=hppa1.0-hp
38421+ ;;
38422+ hp9k7[0-79][0-9] | hp7[0-79][0-9])
38423+ basic_machine=hppa1.1-hp
38424+ ;;
38425+ hp9k78[0-9] | hp78[0-9])
38426+ # FIXME: really hppa2.0-hp
38427+ basic_machine=hppa1.1-hp
38428+ ;;
38429+ hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
38430+ # FIXME: really hppa2.0-hp
38431+ basic_machine=hppa1.1-hp
38432+ ;;
38433+ hp9k8[0-9][13679] | hp8[0-9][13679])
38434+ basic_machine=hppa1.1-hp
38435+ ;;
38436+ hp9k8[0-9][0-9] | hp8[0-9][0-9])
38437+ basic_machine=hppa1.0-hp
38438+ ;;
38439+ hppa-next)
38440+ os=-nextstep3
38441+ ;;
38442+ hppaosf)
38443+ basic_machine=hppa1.1-hp
38444+ os=-osf
38445+ ;;
38446+ hppro)
38447+ basic_machine=hppa1.1-hp
38448+ os=-proelf
38449+ ;;
38450+ i370-ibm* | ibm*)
38451+ basic_machine=i370-ibm
38452+ ;;
38453+# I'm not sure what "Sysv32" means. Should this be sysv3.2?
38454+ i*86v32)
38455+ basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
38456+ os=-sysv32
38457+ ;;
38458+ i*86v4*)
38459+ basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
38460+ os=-sysv4
38461+ ;;
38462+ i*86v)
38463+ basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
38464+ os=-sysv
38465+ ;;
38466+ i*86sol2)
38467+ basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
38468+ os=-solaris2
38469+ ;;
38470+ i386mach)
38471+ basic_machine=i386-mach
38472+ os=-mach
38473+ ;;
38474+ i386-vsta | vsta)
38475+ basic_machine=i386-unknown
38476+ os=-vsta
38477+ ;;
38478+ iris | iris4d)
38479+ basic_machine=mips-sgi
38480+ case $os in
38481+ -irix*)
38482+ ;;
38483+ *)
38484+ os=-irix4
38485+ ;;
38486+ esac
38487+ ;;
38488+ isi68 | isi)
38489+ basic_machine=m68k-isi
38490+ os=-sysv
38491+ ;;
38492+ m88k-omron*)
38493+ basic_machine=m88k-omron
38494+ ;;
38495+ magnum | m3230)
38496+ basic_machine=mips-mips
38497+ os=-sysv
38498+ ;;
38499+ merlin)
38500+ basic_machine=ns32k-utek
38501+ os=-sysv
38502+ ;;
38503+ mingw32)
38504+ basic_machine=i386-pc
38505+ os=-mingw32
38506+ ;;
38507+ miniframe)
38508+ basic_machine=m68000-convergent
38509+ ;;
38510+ *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
38511+ basic_machine=m68k-atari
38512+ os=-mint
38513+ ;;
38514+ mips3*-*)
38515+ basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
38516+ ;;
38517+ mips3*)
38518+ basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
38519+ ;;
38520+ monitor)
38521+ basic_machine=m68k-rom68k
38522+ os=-coff
38523+ ;;
38524+ morphos)
38525+ basic_machine=powerpc-unknown
38526+ os=-morphos
38527+ ;;
38528+ msdos)
38529+ basic_machine=i386-pc
38530+ os=-msdos
38531+ ;;
38532+ mvs)
38533+ basic_machine=i370-ibm
38534+ os=-mvs
38535+ ;;
38536+ ncr3000)
38537+ basic_machine=i486-ncr
38538+ os=-sysv4
38539+ ;;
38540+ netbsd386)
38541+ basic_machine=i386-unknown
38542+ os=-netbsd
38543+ ;;
38544+ netwinder)
38545+ basic_machine=armv4l-rebel
38546+ os=-linux
38547+ ;;
38548+ news | news700 | news800 | news900)
38549+ basic_machine=m68k-sony
38550+ os=-newsos
38551+ ;;
38552+ news1000)
38553+ basic_machine=m68030-sony
38554+ os=-newsos
38555+ ;;
38556+ news-3600 | risc-news)
38557+ basic_machine=mips-sony
38558+ os=-newsos
38559+ ;;
38560+ necv70)
38561+ basic_machine=v70-nec
38562+ os=-sysv
38563+ ;;
38564+ next | m*-next )
38565+ basic_machine=m68k-next
38566+ case $os in
38567+ -nextstep* )
38568+ ;;
38569+ -ns2*)
38570+ os=-nextstep2
38571+ ;;
38572+ *)
38573+ os=-nextstep3
38574+ ;;
38575+ esac
38576+ ;;
38577+ nh3000)
38578+ basic_machine=m68k-harris
38579+ os=-cxux
38580+ ;;
38581+ nh[45]000)
38582+ basic_machine=m88k-harris
38583+ os=-cxux
38584+ ;;
38585+ nindy960)
38586+ basic_machine=i960-intel
38587+ os=-nindy
38588+ ;;
38589+ mon960)
38590+ basic_machine=i960-intel
38591+ os=-mon960
38592+ ;;
38593+ nonstopux)
38594+ basic_machine=mips-compaq
38595+ os=-nonstopux
38596+ ;;
38597+ np1)
38598+ basic_machine=np1-gould
38599+ ;;
38600+ nsr-tandem)
38601+ basic_machine=nsr-tandem
38602+ ;;
38603+ op50n-* | op60c-*)
38604+ basic_machine=hppa1.1-oki
38605+ os=-proelf
38606+ ;;
38607+ openrisc | openrisc-*)
38608+ basic_machine=or32-unknown
38609+ ;;
38610+ os400)
38611+ basic_machine=powerpc-ibm
38612+ os=-os400
38613+ ;;
38614+ OSE68000 | ose68000)
38615+ basic_machine=m68000-ericsson
38616+ os=-ose
38617+ ;;
38618+ os68k)
38619+ basic_machine=m68k-none
38620+ os=-os68k
38621+ ;;
38622+ pa-hitachi)
38623+ basic_machine=hppa1.1-hitachi
38624+ os=-hiuxwe2
38625+ ;;
38626+ paragon)
38627+ basic_machine=i860-intel
38628+ os=-osf
38629+ ;;
38630+ pbd)
38631+ basic_machine=sparc-tti
38632+ ;;
38633+ pbb)
38634+ basic_machine=m68k-tti
38635+ ;;
38636+ pc532 | pc532-*)
38637+ basic_machine=ns32k-pc532
38638+ ;;
38639+ pentium | p5 | k5 | k6 | nexgen | viac3)
38640+ basic_machine=i586-pc
38641+ ;;
38642+ pentiumpro | p6 | 6x86 | athlon | athlon_*)
38643+ basic_machine=i686-pc
38644+ ;;
38645+ pentiumii | pentium2 | pentiumiii | pentium3)
38646+ basic_machine=i686-pc
38647+ ;;
38648+ pentium4)
38649+ basic_machine=i786-pc
38650+ ;;
38651+ pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
38652+ basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
38653+ ;;
38654+ pentiumpro-* | p6-* | 6x86-* | athlon-*)
38655+ basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
38656+ ;;
38657+ pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
38658+ basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
38659+ ;;
38660+ pentium4-*)
38661+ basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
38662+ ;;
38663+ pn)
38664+ basic_machine=pn-gould
38665+ ;;
38666+ power) basic_machine=power-ibm
38667+ ;;
38668+ ppc) basic_machine=powerpc-unknown
38669+ ;;
38670+ ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
38671+ ;;
38672+ ppcle | powerpclittle | ppc-le | powerpc-little)
38673+ basic_machine=powerpcle-unknown
38674+ ;;
38675+ ppcle-* | powerpclittle-*)
38676+ basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
38677+ ;;
38678+ ppc64) basic_machine=powerpc64-unknown
38679+ ;;
38680+ ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
38681+ ;;
38682+ ppc64le | powerpc64little | ppc64-le | powerpc64-little)
38683+ basic_machine=powerpc64le-unknown
38684+ ;;
38685+ ppc64le-* | powerpc64little-*)
38686+ basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
38687+ ;;
38688+ ps2)
38689+ basic_machine=i386-ibm
38690+ ;;
38691+ pw32)
38692+ basic_machine=i586-unknown
38693+ os=-pw32
38694+ ;;
38695+ rom68k)
38696+ basic_machine=m68k-rom68k
38697+ os=-coff
38698+ ;;
38699+ rm[46]00)
38700+ basic_machine=mips-siemens
38701+ ;;
38702+ rtpc | rtpc-*)
38703+ basic_machine=romp-ibm
38704+ ;;
38705+ s390 | s390-*)
38706+ basic_machine=s390-ibm
38707+ ;;
38708+ s390x | s390x-*)
38709+ basic_machine=s390x-ibm
38710+ ;;
38711+ sa29200)
38712+ basic_machine=a29k-amd
38713+ os=-udi
38714+ ;;
38715+ sb1)
38716+ basic_machine=mipsisa64sb1-unknown
38717+ ;;
38718+ sb1el)
38719+ basic_machine=mipsisa64sb1el-unknown
38720+ ;;
38721+ sei)
38722+ basic_machine=mips-sei
38723+ os=-seiux
38724+ ;;
38725+ sequent)
38726+ basic_machine=i386-sequent
38727+ ;;
38728+ sh)
38729+ basic_machine=sh-hitachi
38730+ os=-hms
38731+ ;;
38732+ sh64)
38733+ basic_machine=sh64-unknown
38734+ ;;
38735+ sparclite-wrs | simso-wrs)
38736+ basic_machine=sparclite-wrs
38737+ os=-vxworks
38738+ ;;
38739+ sps7)
38740+ basic_machine=m68k-bull
38741+ os=-sysv2
38742+ ;;
38743+ spur)
38744+ basic_machine=spur-unknown
38745+ ;;
38746+ st2000)
38747+ basic_machine=m68k-tandem
38748+ ;;
38749+ stratus)
38750+ basic_machine=i860-stratus
38751+ os=-sysv4
38752+ ;;
38753+ sun2)
38754+ basic_machine=m68000-sun
38755+ ;;
38756+ sun2os3)
38757+ basic_machine=m68000-sun
38758+ os=-sunos3
38759+ ;;
38760+ sun2os4)
38761+ basic_machine=m68000-sun
38762+ os=-sunos4
38763+ ;;
38764+ sun3os3)
38765+ basic_machine=m68k-sun
38766+ os=-sunos3
38767+ ;;
38768+ sun3os4)
38769+ basic_machine=m68k-sun
38770+ os=-sunos4
38771+ ;;
38772+ sun4os3)
38773+ basic_machine=sparc-sun
38774+ os=-sunos3
38775+ ;;
38776+ sun4os4)
38777+ basic_machine=sparc-sun
38778+ os=-sunos4
38779+ ;;
38780+ sun4sol2)
38781+ basic_machine=sparc-sun
38782+ os=-solaris2
38783+ ;;
38784+ sun3 | sun3-*)
38785+ basic_machine=m68k-sun
38786+ ;;
38787+ sun4)
38788+ basic_machine=sparc-sun
38789+ ;;
38790+ sun386 | sun386i | roadrunner)
38791+ basic_machine=i386-sun
38792+ ;;
38793+ sv1)
38794+ basic_machine=sv1-cray
38795+ os=-unicos
38796+ ;;
38797+ symmetry)
38798+ basic_machine=i386-sequent
38799+ os=-dynix
38800+ ;;
38801+ t3e)
38802+ basic_machine=alphaev5-cray
38803+ os=-unicos
38804+ ;;
38805+ t90)
38806+ basic_machine=t90-cray
38807+ os=-unicos
38808+ ;;
38809+ tic54x | c54x*)
38810+ basic_machine=tic54x-unknown
38811+ os=-coff
38812+ ;;
38813+ tic55x | c55x*)
38814+ basic_machine=tic55x-unknown
38815+ os=-coff
38816+ ;;
38817+ tic6x | c6x*)
38818+ basic_machine=tic6x-unknown
38819+ os=-coff
38820+ ;;
38821+ tx39)
38822+ basic_machine=mipstx39-unknown
38823+ ;;
38824+ tx39el)
38825+ basic_machine=mipstx39el-unknown
38826+ ;;
38827+ toad1)
38828+ basic_machine=pdp10-xkl
38829+ os=-tops20
38830+ ;;
38831+ tower | tower-32)
38832+ basic_machine=m68k-ncr
38833+ ;;
38834+ tpf)
38835+ basic_machine=s390x-ibm
38836+ os=-tpf
38837+ ;;
38838+ udi29k)
38839+ basic_machine=a29k-amd
38840+ os=-udi
38841+ ;;
38842+ ultra3)
38843+ basic_machine=a29k-nyu
38844+ os=-sym1
38845+ ;;
38846+ v810 | necv810)
38847+ basic_machine=v810-nec
38848+ os=-none
38849+ ;;
38850+ vaxv)
38851+ basic_machine=vax-dec
38852+ os=-sysv
38853+ ;;
38854+ vms)
38855+ basic_machine=vax-dec
38856+ os=-vms
38857+ ;;
38858+ vpp*|vx|vx-*)
38859+ basic_machine=f301-fujitsu
38860+ ;;
38861+ vxworks960)
38862+ basic_machine=i960-wrs
38863+ os=-vxworks
38864+ ;;
38865+ vxworks68)
38866+ basic_machine=m68k-wrs
38867+ os=-vxworks
38868+ ;;
38869+ vxworks29k)
38870+ basic_machine=a29k-wrs
38871+ os=-vxworks
38872+ ;;
38873+ w65*)
38874+ basic_machine=w65-wdc
38875+ os=-none
38876+ ;;
38877+ w89k-*)
38878+ basic_machine=hppa1.1-winbond
38879+ os=-proelf
38880+ ;;
38881+ xbox)
38882+ basic_machine=i686-pc
38883+ os=-mingw32
38884+ ;;
38885+ xps | xps100)
38886+ basic_machine=xps100-honeywell
38887+ ;;
38888+ ymp)
38889+ basic_machine=ymp-cray
38890+ os=-unicos
38891+ ;;
38892+ z8k-*-coff)
38893+ basic_machine=z8k-unknown
38894+ os=-sim
38895+ ;;
38896+ none)
38897+ basic_machine=none-none
38898+ os=-none
38899+ ;;
38900+
38901+# Here we handle the default manufacturer of certain CPU types. It is in
38902+# some cases the only manufacturer, in others, it is the most popular.
38903+ w89k)
38904+ basic_machine=hppa1.1-winbond
38905+ ;;
38906+ op50n)
38907+ basic_machine=hppa1.1-oki
38908+ ;;
38909+ op60c)
38910+ basic_machine=hppa1.1-oki
38911+ ;;
38912+ romp)
38913+ basic_machine=romp-ibm
38914+ ;;
38915+ mmix)
38916+ basic_machine=mmix-knuth
38917+ ;;
38918+ rs6000)
38919+ basic_machine=rs6000-ibm
38920+ ;;
38921+ vax)
38922+ basic_machine=vax-dec
38923+ ;;
38924+ pdp10)
38925+ # there are many clones, so DEC is not a safe bet
38926+ basic_machine=pdp10-unknown
38927+ ;;
38928+ pdp11)
38929+ basic_machine=pdp11-dec
38930+ ;;
38931+ we32k)
38932+ basic_machine=we32k-att
38933+ ;;
38934+ sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
38935+ basic_machine=sh-unknown
38936+ ;;
38937+ sparc | sparcv8 | sparcv9 | sparcv9b)
38938+ basic_machine=sparc-sun
38939+ ;;
38940+ cydra)
38941+ basic_machine=cydra-cydrome
38942+ ;;
38943+ orion)
38944+ basic_machine=orion-highlevel
38945+ ;;
38946+ orion105)
38947+ basic_machine=clipper-highlevel
38948+ ;;
38949+ mac | mpw | mac-mpw)
38950+ basic_machine=m68k-apple
38951+ ;;
38952+ pmac | pmac-mpw)
38953+ basic_machine=powerpc-apple
38954+ ;;
38955+ *-unknown)
38956+ # Make sure to match an already-canonicalized machine name.
38957+ ;;
38958+ *)
38959+ echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
38960+ exit 1
38961+ ;;
38962+esac
38963+
38964+# Here we canonicalize certain aliases for manufacturers.
38965+case $basic_machine in
38966+ *-digital*)
38967+ basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
38968+ ;;
38969+ *-commodore*)
38970+ basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
38971+ ;;
38972+ *)
38973+ ;;
38974+esac
38975+
38976+# Decode manufacturer-specific aliases for certain operating systems.
38977+
38978+if [ x"$os" != x"" ]
38979+then
38980+case $os in
38981+ # First match some system type aliases
38982+ # that might get confused with valid system types.
38983+ # -solaris* is a basic system type, with this one exception.
38984+ -solaris1 | -solaris1.*)
38985+ os=`echo $os | sed -e 's|solaris1|sunos4|'`
38986+ ;;
38987+ -solaris)
38988+ os=-solaris2
38989+ ;;
38990+ -svr4*)
38991+ os=-sysv4
38992+ ;;
38993+ -unixware*)
38994+ os=-sysv4.2uw
38995+ ;;
38996+ -gnu/linux*)
38997+ os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
38998+ ;;
38999+ # First accept the basic system types.
39000+ # The portable systems comes first.
39001+ # Each alternative MUST END IN A *, to match a version number.
39002+ # -sysv* is not here because it comes later, after sysvr4.
39003+ -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
39004+ | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
39005+ | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
39006+ | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
39007+ | -aos* \
39008+ | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
39009+ | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
39010+ | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \
39011+ | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
39012+ | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
39013+ | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
39014+ | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
39015+ | -chorusos* | -chorusrdb* \
39016+ | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
39017+ | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \
39018+ | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
39019+ | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
39020+ | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
39021+ | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
39022+ | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
39023+ | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
39024+ | -skyos* | -haiku*)
39025+ # Remember, each alternative MUST END IN *, to match a version number.
39026+ ;;
39027+ -qnx*)
39028+ case $basic_machine in
39029+ x86-* | i*86-*)
39030+ ;;
39031+ *)
39032+ os=-nto$os
39033+ ;;
39034+ esac
39035+ ;;
39036+ -nto-qnx*)
39037+ ;;
39038+ -nto*)
39039+ os=`echo $os | sed -e 's|nto|nto-qnx|'`
39040+ ;;
39041+ -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
39042+ | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
39043+ | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
39044+ ;;
39045+ -mac*)
39046+ os=`echo $os | sed -e 's|mac|macos|'`
39047+ ;;
39048+ -linux-dietlibc)
39049+ os=-linux-dietlibc
39050+ ;;
39051+ -linux*)
39052+ os=`echo $os | sed -e 's|linux|linux-gnu|'`
39053+ ;;
39054+ -sunos5*)
39055+ os=`echo $os | sed -e 's|sunos5|solaris2|'`
39056+ ;;
39057+ -sunos6*)
39058+ os=`echo $os | sed -e 's|sunos6|solaris3|'`
39059+ ;;
39060+ -opened*)
39061+ os=-openedition
39062+ ;;
39063+ -os400*)
39064+ os=-os400
39065+ ;;
39066+ -wince*)
39067+ os=-wince
39068+ ;;
39069+ -osfrose*)
39070+ os=-osfrose
39071+ ;;
39072+ -osf*)
39073+ os=-osf
39074+ ;;
39075+ -utek*)
39076+ os=-bsd
39077+ ;;
39078+ -dynix*)
39079+ os=-bsd
39080+ ;;
39081+ -acis*)
39082+ os=-aos
39083+ ;;
39084+ -atheos*)
39085+ os=-atheos
39086+ ;;
39087+ -syllable*)
39088+ os=-syllable
39089+ ;;
39090+ -386bsd)
39091+ os=-bsd
39092+ ;;
39093+ -ctix* | -uts*)
39094+ os=-sysv
39095+ ;;
39096+ -nova*)
39097+ os=-rtmk-nova
39098+ ;;
39099+ -ns2 )
39100+ os=-nextstep2
39101+ ;;
39102+ -nsk*)
39103+ os=-nsk
39104+ ;;
39105+ # Preserve the version number of sinix5.
39106+ -sinix5.*)
39107+ os=`echo $os | sed -e 's|sinix|sysv|'`
39108+ ;;
39109+ -sinix*)
39110+ os=-sysv4
39111+ ;;
39112+ -tpf*)
39113+ os=-tpf
39114+ ;;
39115+ -triton*)
39116+ os=-sysv3
39117+ ;;
39118+ -oss*)
39119+ os=-sysv3
39120+ ;;
39121+ -svr4)
39122+ os=-sysv4
39123+ ;;
39124+ -svr3)
39125+ os=-sysv3
39126+ ;;
39127+ -sysvr4)
39128+ os=-sysv4
39129+ ;;
39130+ # This must come after -sysvr4.
39131+ -sysv*)
39132+ ;;
39133+ -ose*)
39134+ os=-ose
39135+ ;;
39136+ -es1800*)
39137+ os=-ose
39138+ ;;
39139+ -xenix)
39140+ os=-xenix
39141+ ;;
39142+ -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
39143+ os=-mint
39144+ ;;
39145+ -aros*)
39146+ os=-aros
39147+ ;;
39148+ -kaos*)
39149+ os=-kaos
39150+ ;;
39151+ -zvmoe)
39152+ os=-zvmoe
39153+ ;;
39154+ -none)
39155+ ;;
39156+ *)
39157+ # Get rid of the `-' at the beginning of $os.
39158+ os=`echo $os | sed 's/[^-]*-//'`
39159+ echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
39160+ exit 1
39161+ ;;
39162+esac
39163+else
39164+
39165+# Here we handle the default operating systems that come with various machines.
39166+# The value should be what the vendor currently ships out the door with their
39167+# machine or put another way, the most popular os provided with the machine.
39168+
39169+# Note that if you're going to try to match "-MANUFACTURER" here (say,
39170+# "-sun"), then you have to tell the case statement up towards the top
39171+# that MANUFACTURER isn't an operating system. Otherwise, code above
39172+# will signal an error saying that MANUFACTURER isn't an operating
39173+# system, and we'll never get to this point.
39174+
39175+case $basic_machine in
39176+ *-acorn)
39177+ os=-riscix1.2
39178+ ;;
39179+ arm*-rebel)
39180+ os=-linux
39181+ ;;
39182+ arm*-semi)
39183+ os=-aout
39184+ ;;
39185+ c4x-* | tic4x-*)
39186+ os=-coff
39187+ ;;
39188+ # This must come before the *-dec entry.
39189+ pdp10-*)
39190+ os=-tops20
39191+ ;;
39192+ pdp11-*)
39193+ os=-none
39194+ ;;
39195+ *-dec | vax-*)
39196+ os=-ultrix4.2
39197+ ;;
39198+ m68*-apollo)
39199+ os=-domain
39200+ ;;
39201+ i386-sun)
39202+ os=-sunos4.0.2
39203+ ;;
39204+ m68000-sun)
39205+ os=-sunos3
39206+ # This also exists in the configure program, but was not the
39207+ # default.
39208+ # os=-sunos4
39209+ ;;
39210+ m68*-cisco)
39211+ os=-aout
39212+ ;;
39213+ mips*-cisco)
39214+ os=-elf
39215+ ;;
39216+ mips*-*)
39217+ os=-elf
39218+ ;;
39219+ or32-*)
39220+ os=-coff
39221+ ;;
39222+ *-tti) # must be before sparc entry or we get the wrong os.
39223+ os=-sysv3
39224+ ;;
39225+ sparc-* | *-sun)
39226+ os=-sunos4.1.1
39227+ ;;
39228+ *-be)
39229+ os=-beos
39230+ ;;
39231+ *-haiku)
39232+ os=-haiku
39233+ ;;
39234+ *-ibm)
39235+ os=-aix
39236+ ;;
39237+ *-knuth)
39238+ os=-mmixware
39239+ ;;
39240+ *-wec)
39241+ os=-proelf
39242+ ;;
39243+ *-winbond)
39244+ os=-proelf
39245+ ;;
39246+ *-oki)
39247+ os=-proelf
39248+ ;;
39249+ *-hp)
39250+ os=-hpux
39251+ ;;
39252+ *-hitachi)
39253+ os=-hiux
39254+ ;;
39255+ i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
39256+ os=-sysv
39257+ ;;
39258+ *-cbm)
39259+ os=-amigaos
39260+ ;;
39261+ *-dg)
39262+ os=-dgux
39263+ ;;
39264+ *-dolphin)
39265+ os=-sysv3
39266+ ;;
39267+ m68k-ccur)
39268+ os=-rtu
39269+ ;;
39270+ m88k-omron*)
39271+ os=-luna
39272+ ;;
39273+ *-next )
39274+ os=-nextstep
39275+ ;;
39276+ *-sequent)
39277+ os=-ptx
39278+ ;;
39279+ *-crds)
39280+ os=-unos
39281+ ;;
39282+ *-ns)
39283+ os=-genix
39284+ ;;
39285+ i370-*)
39286+ os=-mvs
39287+ ;;
39288+ *-next)
39289+ os=-nextstep3
39290+ ;;
39291+ *-gould)
39292+ os=-sysv
39293+ ;;
39294+ *-highlevel)
39295+ os=-bsd
39296+ ;;
39297+ *-encore)
39298+ os=-bsd
39299+ ;;
39300+ *-sgi)
39301+ os=-irix
39302+ ;;
39303+ *-siemens)
39304+ os=-sysv4
39305+ ;;
39306+ *-masscomp)
39307+ os=-rtu
39308+ ;;
39309+ f30[01]-fujitsu | f700-fujitsu)
39310+ os=-uxpv
39311+ ;;
39312+ *-rom68k)
39313+ os=-coff
39314+ ;;
39315+ *-*bug)
39316+ os=-coff
39317+ ;;
39318+ *-apple)
39319+ os=-macos
39320+ ;;
39321+ *-atari*)
39322+ os=-mint
39323+ ;;
39324+ *)
39325+ os=-none
39326+ ;;
39327+esac
39328+fi
39329+
39330+# Here we handle the case where we know the os, and the CPU type, but not the
39331+# manufacturer. We pick the logical manufacturer.
39332+vendor=unknown
39333+case $basic_machine in
39334+ *-unknown)
39335+ case $os in
39336+ -riscix*)
39337+ vendor=acorn
39338+ ;;
39339+ -sunos*)
39340+ vendor=sun
39341+ ;;
39342+ -aix*)
39343+ vendor=ibm
39344+ ;;
39345+ -beos*)
39346+ vendor=be
39347+ ;;
39348+ -hpux*)
39349+ vendor=hp
39350+ ;;
39351+ -mpeix*)
39352+ vendor=hp
39353+ ;;
39354+ -hiux*)
39355+ vendor=hitachi
39356+ ;;
39357+ -unos*)
39358+ vendor=crds
39359+ ;;
39360+ -dgux*)
39361+ vendor=dg
39362+ ;;
39363+ -luna*)
39364+ vendor=omron
39365+ ;;
39366+ -genix*)
39367+ vendor=ns
39368+ ;;
39369+ -mvs* | -opened*)
39370+ vendor=ibm
39371+ ;;
39372+ -os400*)
39373+ vendor=ibm
39374+ ;;
39375+ -ptx*)
39376+ vendor=sequent
39377+ ;;
39378+ -tpf*)
39379+ vendor=ibm
39380+ ;;
39381+ -vxsim* | -vxworks* | -windiss*)
39382+ vendor=wrs
39383+ ;;
39384+ -aux*)
39385+ vendor=apple
39386+ ;;
39387+ -hms*)
39388+ vendor=hitachi
39389+ ;;
39390+ -mpw* | -macos*)
39391+ vendor=apple
39392+ ;;
39393+ -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
39394+ vendor=atari
39395+ ;;
39396+ -vos*)
39397+ vendor=stratus
39398+ ;;
39399+ esac
39400+ basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
39401+ ;;
39402+esac
39403+
39404+echo $basic_machine$os
39405+exit
39406+
39407+# Local variables:
39408+# eval: (add-hook 'write-file-hooks 'time-stamp)
39409+# time-stamp-start: "timestamp='"
39410+# time-stamp-format: "%:y-%02m-%02d"
39411+# time-stamp-end: "'"
39412+# End:
39413--- agsync-0.2-pre.orig/missing
39414+++ agsync-0.2-pre/missing
39415@@ -0,0 +1,336 @@
39416+#! /bin/sh
39417+# Common stub for a few missing GNU programs while installing.
39418+# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003 Free Software Foundation, Inc.
39419+# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
39420+
39421+# This program is free software; you can redistribute it and/or modify
39422+# it under the terms of the GNU General Public License as published by
39423+# the Free Software Foundation; either version 2, or (at your option)
39424+# any later version.
39425+
39426+# This program is distributed in the hope that it will be useful,
39427+# but WITHOUT ANY WARRANTY; without even the implied warranty of
39428+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
39429+# GNU General Public License for more details.
39430+
39431+# You should have received a copy of the GNU General Public License
39432+# along with this program; if not, write to the Free Software
39433+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
39434+# 02111-1307, USA.
39435+
39436+# As a special exception to the GNU General Public License, if you
39437+# distribute this file as part of a program that contains a
39438+# configuration script generated by Autoconf, you may include it under
39439+# the same distribution terms that you use for the rest of that program.
39440+
39441+if test $# -eq 0; then
39442+ echo 1>&2 "Try \`$0 --help' for more information"
39443+ exit 1
39444+fi
39445+
39446+run=:
39447+
39448+# In the cases where this matters, `missing' is being run in the
39449+# srcdir already.
39450+if test -f configure.ac; then
39451+ configure_ac=configure.ac
39452+else
39453+ configure_ac=configure.in
39454+fi
39455+
39456+case "$1" in
39457+--run)
39458+ # Try to run requested program, and just exit if it succeeds.
39459+ run=
39460+ shift
39461+ "$@" && exit 0
39462+ ;;
39463+esac
39464+
39465+# If it does not exist, or fails to run (possibly an outdated version),
39466+# try to emulate it.
39467+case "$1" in
39468+
39469+ -h|--h|--he|--hel|--help)
39470+ echo "\
39471+$0 [OPTION]... PROGRAM [ARGUMENT]...
39472+
39473+Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
39474+error status if there is no known handling for PROGRAM.
39475+
39476+Options:
39477+ -h, --help display this help and exit
39478+ -v, --version output version information and exit
39479+ --run try to run the given command, and emulate it if it fails
39480+
39481+Supported PROGRAM values:
39482+ aclocal touch file \`aclocal.m4'
39483+ autoconf touch file \`configure'
39484+ autoheader touch file \`config.h.in'
39485+ automake touch all \`Makefile.in' files
39486+ bison create \`y.tab.[ch]', if possible, from existing .[ch]
39487+ flex create \`lex.yy.c', if possible, from existing .c
39488+ help2man touch the output file
39489+ lex create \`lex.yy.c', if possible, from existing .c
39490+ makeinfo touch the output file
39491+ tar try tar, gnutar, gtar, then tar without non-portable flags
39492+ yacc create \`y.tab.[ch]', if possible, from existing .[ch]"
39493+ ;;
39494+
39495+ -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
39496+ echo "missing 0.4 - GNU automake"
39497+ ;;
39498+
39499+ -*)
39500+ echo 1>&2 "$0: Unknown \`$1' option"
39501+ echo 1>&2 "Try \`$0 --help' for more information"
39502+ exit 1
39503+ ;;
39504+
39505+ aclocal*)
39506+ if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
39507+ # We have it, but it failed.
39508+ exit 1
39509+ fi
39510+
39511+ echo 1>&2 "\
39512+WARNING: \`$1' is missing on your system. You should only need it if
39513+ you modified \`acinclude.m4' or \`${configure_ac}'. You might want
39514+ to install the \`Automake' and \`Perl' packages. Grab them from
39515+ any GNU archive site."
39516+ touch aclocal.m4
39517+ ;;
39518+
39519+ autoconf)
39520+ if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
39521+ # We have it, but it failed.
39522+ exit 1
39523+ fi
39524+
39525+ echo 1>&2 "\
39526+WARNING: \`$1' is missing on your system. You should only need it if
39527+ you modified \`${configure_ac}'. You might want to install the
39528+ \`Autoconf' and \`GNU m4' packages. Grab them from any GNU
39529+ archive site."
39530+ touch configure
39531+ ;;
39532+
39533+ autoheader)
39534+ if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
39535+ # We have it, but it failed.
39536+ exit 1
39537+ fi
39538+
39539+ echo 1>&2 "\
39540+WARNING: \`$1' is missing on your system. You should only need it if
39541+ you modified \`acconfig.h' or \`${configure_ac}'. You might want
39542+ to install the \`Autoconf' and \`GNU m4' packages. Grab them
39543+ from any GNU archive site."
39544+ files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`
39545+ test -z "$files" && files="config.h"
39546+ touch_files=
39547+ for f in $files; do
39548+ case "$f" in
39549+ *:*) touch_files="$touch_files "`echo "$f" |
39550+ sed -e 's/^[^:]*://' -e 's/:.*//'`;;
39551+ *) touch_files="$touch_files $f.in";;
39552+ esac
39553+ done
39554+ touch $touch_files
39555+ ;;
39556+
39557+ automake*)
39558+ if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
39559+ # We have it, but it failed.
39560+ exit 1
39561+ fi
39562+
39563+ echo 1>&2 "\
39564+WARNING: \`$1' is missing on your system. You should only need it if
39565+ you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
39566+ You might want to install the \`Automake' and \`Perl' packages.
39567+ Grab them from any GNU archive site."
39568+ find . -type f -name Makefile.am -print |
39569+ sed 's/\.am$/.in/' |
39570+ while read f; do touch "$f"; done
39571+ ;;
39572+
39573+ autom4te)
39574+ if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
39575+ # We have it, but it failed.
39576+ exit 1
39577+ fi
39578+
39579+ echo 1>&2 "\
39580+WARNING: \`$1' is needed, and you do not seem to have it handy on your
39581+ system. You might have modified some files without having the
39582+ proper tools for further handling them.
39583+ You can get \`$1' as part of \`Autoconf' from any GNU
39584+ archive site."
39585+
39586+ file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'`
39587+ test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'`
39588+ if test -f "$file"; then
39589+ touch $file
39590+ else
39591+ test -z "$file" || exec >$file
39592+ echo "#! /bin/sh"
39593+ echo "# Created by GNU Automake missing as a replacement of"
39594+ echo "# $ $@"
39595+ echo "exit 0"
39596+ chmod +x $file
39597+ exit 1
39598+ fi
39599+ ;;
39600+
39601+ bison|yacc)
39602+ echo 1>&2 "\
39603+WARNING: \`$1' is missing on your system. You should only need it if
39604+ you modified a \`.y' file. You may need the \`Bison' package
39605+ in order for those modifications to take effect. You can get
39606+ \`Bison' from any GNU archive site."
39607+ rm -f y.tab.c y.tab.h
39608+ if [ $# -ne 1 ]; then
39609+ eval LASTARG="\${$#}"
39610+ case "$LASTARG" in
39611+ *.y)
39612+ SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
39613+ if [ -f "$SRCFILE" ]; then
39614+ cp "$SRCFILE" y.tab.c
39615+ fi
39616+ SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
39617+ if [ -f "$SRCFILE" ]; then
39618+ cp "$SRCFILE" y.tab.h
39619+ fi
39620+ ;;
39621+ esac
39622+ fi
39623+ if [ ! -f y.tab.h ]; then
39624+ echo >y.tab.h
39625+ fi
39626+ if [ ! -f y.tab.c ]; then
39627+ echo 'main() { return 0; }' >y.tab.c
39628+ fi
39629+ ;;
39630+
39631+ lex|flex)
39632+ echo 1>&2 "\
39633+WARNING: \`$1' is missing on your system. You should only need it if
39634+ you modified a \`.l' file. You may need the \`Flex' package
39635+ in order for those modifications to take effect. You can get
39636+ \`Flex' from any GNU archive site."
39637+ rm -f lex.yy.c
39638+ if [ $# -ne 1 ]; then
39639+ eval LASTARG="\${$#}"
39640+ case "$LASTARG" in
39641+ *.l)
39642+ SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
39643+ if [ -f "$SRCFILE" ]; then
39644+ cp "$SRCFILE" lex.yy.c
39645+ fi
39646+ ;;
39647+ esac
39648+ fi
39649+ if [ ! -f lex.yy.c ]; then
39650+ echo 'main() { return 0; }' >lex.yy.c
39651+ fi
39652+ ;;
39653+
39654+ help2man)
39655+ if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
39656+ # We have it, but it failed.
39657+ exit 1
39658+ fi
39659+
39660+ echo 1>&2 "\
39661+WARNING: \`$1' is missing on your system. You should only need it if
39662+ you modified a dependency of a manual page. You may need the
39663+ \`Help2man' package in order for those modifications to take
39664+ effect. You can get \`Help2man' from any GNU archive site."
39665+
39666+ file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
39667+ if test -z "$file"; then
39668+ file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'`
39669+ fi
39670+ if [ -f "$file" ]; then
39671+ touch $file
39672+ else
39673+ test -z "$file" || exec >$file
39674+ echo ".ab help2man is required to generate this page"
39675+ exit 1
39676+ fi
39677+ ;;
39678+
39679+ makeinfo)
39680+ if test -z "$run" && (makeinfo --version) > /dev/null 2>&1; then
39681+ # We have makeinfo, but it failed.
39682+ exit 1
39683+ fi
39684+
39685+ echo 1>&2 "\
39686+WARNING: \`$1' is missing on your system. You should only need it if
39687+ you modified a \`.texi' or \`.texinfo' file, or any other file
39688+ indirectly affecting the aspect of the manual. The spurious
39689+ call might also be the consequence of using a buggy \`make' (AIX,
39690+ DU, IRIX). You might want to install the \`Texinfo' package or
39691+ the \`GNU make' package. Grab either from any GNU archive site."
39692+ file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
39693+ if test -z "$file"; then
39694+ file=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
39695+ file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $file`
39696+ fi
39697+ touch $file
39698+ ;;
39699+
39700+ tar)
39701+ shift
39702+ if test -n "$run"; then
39703+ echo 1>&2 "ERROR: \`tar' requires --run"
39704+ exit 1
39705+ fi
39706+
39707+ # We have already tried tar in the generic part.
39708+ # Look for gnutar/gtar before invocation to avoid ugly error
39709+ # messages.
39710+ if (gnutar --version > /dev/null 2>&1); then
39711+ gnutar "$@" && exit 0
39712+ fi
39713+ if (gtar --version > /dev/null 2>&1); then
39714+ gtar "$@" && exit 0
39715+ fi
39716+ firstarg="$1"
39717+ if shift; then
39718+ case "$firstarg" in
39719+ *o*)
39720+ firstarg=`echo "$firstarg" | sed s/o//`
39721+ tar "$firstarg" "$@" && exit 0
39722+ ;;
39723+ esac
39724+ case "$firstarg" in
39725+ *h*)
39726+ firstarg=`echo "$firstarg" | sed s/h//`
39727+ tar "$firstarg" "$@" && exit 0
39728+ ;;
39729+ esac
39730+ fi
39731+
39732+ echo 1>&2 "\
39733+WARNING: I can't seem to be able to run \`tar' with the given arguments.
39734+ You may want to install GNU tar or Free paxutils, or check the
39735+ command line arguments."
39736+ exit 1
39737+ ;;
39738+
39739+ *)
39740+ echo 1>&2 "\
39741+WARNING: \`$1' is needed, and you do not seem to have it handy on your
39742+ system. You might have modified some files without having the
39743+ proper tools for further handling them. Check the \`README' file,
39744+ it often tells you about the needed prerequisites for installing
39745+ this package. You may also peek at any GNU archive site, in case
39746+ some other package would contain this missing \`$1' program."
39747+ exit 1
39748+ ;;
39749+esac
39750+
39751+exit 0
39752--- agsync-0.2-pre.orig/debian/control
39753+++ agsync-0.2-pre/debian/control
39754@@ -0,0 +1,23 @@
39755+Source: agsync
39756+Section: libs
39757+Priority: optional
39758+Maintainer: Volker Christian <voc@debian.org>
39759+Build-Depends: debhelper (>> 4.0.0), libsynce0-dev, librapi2-dev, docbook-to-man, autotools-dev, autoconf, automake1.7, libtool
39760+Standards-Version: 3.6.2
39761+
39762+Package: agsync-dev
39763+Section: libdevel
39764+Architecture: any
39765+Depends: agsync (= ${Source-Version})
39766+Description: Development files for AvantGo and Pocket PC synchronization
39767+ This package contains the library to develop applications which
39768+ provides AvantGo synchronization fro Pocket PC to be mediated by the
39769+ connected PC
39770+
39771+Package: agsync
39772+Section: libs
39773+Architecture: any
39774+Depends: ${shlibs:Depends}
39775+Description: Synchronization mediator for AvantGo and Pocket PC
39776+ This package contains the AvantGo - Pocket PC synchronization mediator
39777+ command line application.
39778--- agsync-0.2-pre.orig/debian/agsync.manpages
39779+++ agsync-0.2-pre/debian/agsync.manpages
39780@@ -0,0 +1 @@
39781+agsync.1
39782--- agsync-0.2-pre.orig/debian/rules
39783+++ agsync-0.2-pre/debian/rules
39784@@ -0,0 +1,98 @@
39785+#!/usr/bin/make -f
39786+# Sample debian/rules that uses debhelper.
39787+# GNU copyright 1997 to 1999 by Joey Hess.
39788+
39789+# Uncomment this to turn on verbose mode.
39790+#export DH_VERBOSE=1
39791+
39792+CFLAGS = -Wall -g
39793+
39794+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
39795+ CFLAGS += -O0
39796+else
39797+ CFLAGS += -O2
39798+endif
39799+
39800+configure: configure-stamp
39801+configure-stamp:
39802+ dh_testdir
39803+
39804+ # Add here commands to configure the package.
39805+ touch ./mal-files/client/Makefile.in
39806+ touch ./mal-files/Makefile.in
39807+ touch ./Makefile.in
39808+ touch ./configure
39809+ chmod 755 ./configure
39810+ ./configure --prefix=/usr
39811+
39812+ touch configure-stamp
39813+
39814+
39815+build: build-stamp
39816+build-stamp: configure-stamp
39817+ dh_testdir
39818+
39819+ # Add here commands to compile the package.
39820+ $(MAKE)
39821+ /usr/bin/docbook-to-man debian/agsync.sgml > agsync.1
39822+
39823+ touch build-stamp
39824+
39825+clean:
39826+ dh_testdir
39827+ dh_testroot
39828+ rm -f build-stamp configure-stamp
39829+
39830+ # Add here commands to clean up after the build process.
39831+ -$(MAKE) distclean
39832+
39833+ dh_clean
39834+
39835+install: build
39836+ dh_testdir
39837+ dh_testroot
39838+ dh_clean -k
39839+ dh_installdirs
39840+
39841+ # Add here commands to install the package into debian/tmp
39842+ $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
39843+
39844+
39845+# Build architecture-independent files here.
39846+binary-indep: build install
39847+# We have nothing to do by default.
39848+
39849+# Build architecture-dependent files here.
39850+binary-arch: build install
39851+ dh_testdir
39852+ dh_testroot
39853+ dh_install --list-missing
39854+ dh_installchangelogs CHANGELOG
39855+ dh_installdocs
39856+# dh_installexamples
39857+# dh_install
39858+# dh_installmenu
39859+ dh_installdebconf
39860+# dh_installlogrotate
39861+# dh_installemacsen
39862+# dh_installpam
39863+# dh_installmime
39864+# dh_installinit
39865+# dh_installcron
39866+# dh_installinfo
39867+ dh_installman
39868+ dh_link
39869+ dh_strip
39870+ dh_compress
39871+ dh_fixperms
39872+# dh_perl
39873+# d_python
39874+ dh_makeshlibs
39875+ dh_installdeb
39876+ dh_shlibdeps -l debian/agsync/usr/lib
39877+ dh_gencontrol
39878+ dh_md5sums
39879+ dh_builddeb
39880+
39881+binary: binary-indep binary-arch
39882+.PHONY: build clean binary-indep binary-arch binary install configure
39883--- agsync-0.2-pre.orig/debian/watch
39884+++ agsync-0.2-pre/debian/watch
39885@@ -0,0 +1,7 @@
39886+# Example watch control file for uscan
39887+# Rename this file to "watch" and then you can run the "uscan" command
39888+# to check for upstream updates and more.
39889+# Format version number
39890+version=3
39891+# Full-site-with-pattern [Version [Action]]
39892+http://duskwood.lownewulf.com/agsync-(.*)-pre\.tgz debian uupdate
39893--- agsync-0.2-pre.orig/debian/agsync.dirs
39894+++ agsync-0.2-pre/debian/agsync.dirs
39895@@ -0,0 +1,2 @@
39896+usr/bin
39897+usr/lib
39898--- agsync-0.2-pre.orig/debian/agsync.docs
39899+++ agsync-0.2-pre/debian/agsync.docs
39900@@ -0,0 +1,2 @@
39901+MPL-1.1.txt
39902+README
39903--- agsync-0.2-pre.orig/debian/agsync.sgml
39904+++ agsync-0.2-pre/debian/agsync.sgml
39905@@ -0,0 +1,168 @@
39906+<!doctype refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [
39907+
39908+<!-- Process this file with docbook-to-man to generate an nroff manual
39909+ page: `docbook-to-man manpage.sgml > manpage.1'. You may view
39910+ the manual page with: `docbook-to-man manpage.sgml | nroff -man |
39911+ less'. A typical entry in a Makefile or Makefile.am is:
39912+
39913+manpage.1: manpage.sgml
39914+ docbook-to-man $< > $@
39915+
39916+
39917+ The docbook-to-man binary is found in the docbook-to-man package.
39918+ Please remember that if you create the nroff version in one of the
39919+ debian/rules file targets (such as build), you will need to include
39920+ docbook-to-man in your Build-Depends control field.
39921+
39922+ -->
39923+
39924+ <!-- Fill in your name for FIRSTNAME and SURNAME. -->
39925+ <!ENTITY dhfirstname "<firstname>Volker</firstname>">
39926+ <!ENTITY dhsurname "<surname>Christian</surname>">
39927+ <!-- Please adjust the date whenever revising the manpage. -->
39928+ <!ENTITY dhdate "<date>September 23, 2003</date>">
39929+ <!-- SECTION should be 1-8, maybe w/ subsection other parameters are
39930+ allowed: see man(7), man(1). -->
39931+ <!ENTITY dhsection "<manvolnum>1</manvolnum>">
39932+ <!ENTITY dhemail "<email>voc@users.sourceforge.net</email>">
39933+ <!ENTITY dhusername "Volker Christian">
39934+ <!ENTITY dhucpackage "<refentrytitle>AGSYNC</refentrytitle>">
39935+ <!ENTITY dhpackage "agsync">
39936+
39937+ <!ENTITY debian "<productname>Debian</productname>">
39938+ <!ENTITY gnu "<acronym>GNU</acronym>">
39939+ <!ENTITY gpl "&gnu; <acronym>GPL</acronym>">
39940+]>
39941+
39942+<refentry>
39943+ <refentryinfo>
39944+ <address>
39945+ &dhemail;
39946+ </address>
39947+ <author>
39948+ &dhfirstname;
39949+ &dhsurname;
39950+ </author>
39951+ <copyright>
39952+ <year>2003</year>
39953+ <holder>&dhusername;</holder>
39954+ </copyright>
39955+ &dhdate;
39956+ </refentryinfo>
39957+ <refmeta>
39958+ &dhucpackage;
39959+
39960+ &dhsection;
39961+ </refmeta>
39962+ <refnamediv>
39963+ <refname>&dhpackage;</refname>
39964+
39965+ <refpurpose>mediates a AvantGo session between an AvantGo server and an
39966+ Pocket PC connected via SynCE.</refpurpose>
39967+ </refnamediv>
39968+ <refsynopsisdiv>
39969+ <cmdsynopsis>
39970+ <command>&dhpackage;</command>
39971+
39972+ <arg><option>-v</option></arg>
39973+ <arg><option>-q</option></arg>
39974+ <arg><option>-p <replaceable>host:port</replaceable></option></arg>
39975+ <arg><option>-u <replaceable>username:pass</replaceable></option></arg>
39976+ <arg><option>-s <replaceable>host:port</replaceable></option></arg>
39977+
39978+ </cmdsynopsis>
39979+ </refsynopsisdiv>
39980+ <refsect1>
39981+ <title>DESCRIPTION</title>
39982+
39983+ <para>This manual page documents briefly the
39984+ The <command>&dhpackage;</command> command is used to start
39985+ and control a AvantGo synchronizing session between an AvantGo server
39986+ and and Pocket PC. The Pocket PC has to be connected to the desktop via
39987+ SynCE.</para>
39988+
39989+ <para>This manual page was written for the &debian; distribution
39990+ because the original program does not have a manual page.
39991+ Instead, it has documentation in the &gnu;
39992+ <application>Info</application> format; see below.</para>
39993+
39994+ <para><command>&dhpackage;</command> is a program that...</para>
39995+
39996+ </refsect1>
39997+ <refsect1>
39998+ <title>OPTIONS</title>
39999+
40000+ <para>A summary of
40001+ options is included below.</para>
40002+
40003+ <variablelist>
40004+ <varlistentry>
40005+ <term><option>-v</option>
40006+ </term>
40007+ <listitem>
40008+ <para>Be verbose. Print even more information as default.</para>
40009+ </listitem>
40010+ </varlistentry>
40011+ <varlistentry>
40012+ <term><option>-q</option>
40013+ </term>
40014+ <listitem>
40015+ <para>Be quiet. Don't print anything.</para>
40016+ </listitem>
40017+ </varlistentry>
40018+
40019+ <varlistentry>
40020+ <term><option>-p host:port</option>
40021+ </term>
40022+ <listitem>
40023+ <para>Hostname or IP-adderess and portnumber of the HTTP-proxy.</para>
40024+ </listitem>
40025+ </varlistentry>
40026+ <varlistentry>
40027+ <term><option>-u username:pass</option>
40028+ </term>
40029+ <listitem>
40030+ <para>Username and password to login into the AvantGo server.</para>
40031+ </listitem>
40032+ </varlistentry>
40033+ <varlistentry>
40034+ <term><option>-s host:port</option>
40035+ </term>
40036+ <listitem>
40037+ <para>Hostname or IP-adress and portnumber of a Socks proxy.</para>
40038+ </listitem>
40039+ </varlistentry>
40040+ </variablelist>
40041+ </refsect1>
40042+ <refsect1>
40043+ <title>AUTHOR</title>
40044+
40045+ <para>This manual page was written by &dhusername; &dhemail; for
40046+ the &debian; system (but may be used by others). Permission is
40047+ granted to copy, distribute and/or modify this document under
40048+ the terms of the &gnu; Free Documentation
40049+ License, Version 1.1 or any later version published by the Free
40050+ Software Foundation; with no Invariant Sections, no Front-Cover
40051+ Texts and no Back-Cover Texts.</para>
40052+
40053+ </refsect1>
40054+</refentry>
40055+
40056+<!-- Keep this comment at the end of the file
40057+Local variables:
40058+mode: sgml
40059+sgml-omittag:t
40060+sgml-shorttag:t
40061+sgml-minimize-attributes:nil
40062+sgml-always-quote-attributes:t
40063+sgml-indent-step:2
40064+sgml-indent-data:t
40065+sgml-parent-document:nil
40066+sgml-default-dtd-file:nil
40067+sgml-exposed-tags:nil
40068+sgml-local-catalogs:nil
40069+sgml-local-ecat-files:nil
40070+End:
40071+-->
40072+
40073+
40074--- agsync-0.2-pre.orig/debian/changelog
40075+++ agsync-0.2-pre/debian/changelog
40076@@ -0,0 +1,62 @@
40077+agsync (0.2-pre-9) unstable; urgency=low
40078+
40079+ * Fixed a potential segfault
40080+
40081+ -- Volker Christian <voc@debian.org> Sun, 26 Feb 2006 19:40:30 +0100
40082+
40083+agsync (0.2-pre-8) unstable; urgency=low
40084+
40085+ * FTBFS on GNU/kFreeBSD (Closes: #329441)
40086+
40087+ -- Volker Christian <voc@debian.org> Thu, 22 Sep 2005 20:32:27 +0200
40088+
40089+agsync (0.2-pre-7) unstable; urgency=low
40090+
40091+ * Maintainer email changed to voc@debian.org
40092+ * Update standard to 3.6.2
40093+ * Update watch file
40094+
40095+ -- Volker Christian <voc@debian.org> Sun, 11 Sep 2005 20:43:31 +0200
40096+
40097+agsync (0.2-pre-6) unstable; urgency=low
40098+
40099+ * changed prefix=$\(CURDIR\)/debian/tmp/usr to
40100+ DESTDIR=$\(CURDIR\)/debian/tmp
40101+ * now following standard 3.6.1
40102+
40103+ -- Volker Christian <voc@users.sourceforge.net> Thu, 2 Sep 2004 21:26:05 +0200
40104+
40105+agsync (0.2-pre-5) unstable; urgency=low
40106+
40107+ * Moved development files to section libdevel
40108+ * Bug fix in control
40109+
40110+ -- Volker Christian <voc@users.sourceforge.net> Thu, 10 Jun 2004 23:08:10 +0200
40111+
40112+agsync (0.2-pre-4) unstable; urgency=low
40113+
40114+ * Added AM_MAINTAINER_MODE to configure.in
40115+
40116+ -- Volker Christian <voc@users.sourceforge.net> Sun, 05 Apr 2004 12:06:02 +0200
40117+
40118+agsync (0.2-pre-3) unstable; urgency=low
40119+
40120+ * touch(int) Makefile.in and configure to prevent a call to "missing"
40121+
40122+ -- Volker Christian <voc@users.sourceforge.net> Sun, 22 Feb 2004 16:55:00 +0200
40123+
40124+agsync (0.2-pre-2) unstable; urgency=low
40125+
40126+ * Debug INSTALL_PROGRAMM setting.
40127+ * Substvars is not shipped anymore
40128+ * Switched from dh_movefile to dh_install
40129+ * Better cleanup before the package gets generated
40130+
40131+ -- Volker Christian <voc@users.sourceforge.net> Tue, 23 Sep 2003 18:48:10 +0200
40132+
40133+agsync (0.2-pre-1) unstable; urgency=low
40134+
40135+ * Initial Release.
40136+
40137+ -- Volker Christian <voc@users.sourceforge.net> Tue, 23 Sep 2003 18:48:10 +0200
40138+
40139--- agsync-0.2-pre.orig/debian/agsync-dev.install
40140+++ agsync-0.2-pre/debian/agsync-dev.install
40141@@ -0,0 +1,5 @@
40142+debian/tmp/usr/include/*
40143+debian/tmp/usr/lib/lib*.a
40144+debian/tmp/usr/lib/lib*.so
40145+debian/tmp/usr/lib/pkgconfig/*
40146+debian/tmp/usr/lib/lib*.la
40147--- agsync-0.2-pre.orig/debian/agsync.install
40148+++ agsync-0.2-pre/debian/agsync.install
40149@@ -0,0 +1,2 @@
40150+debian/tmp/usr/bin/*
40151+debian/tmp/usr/lib/lib*.so.*
40152--- agsync-0.2-pre.orig/debian/compat
40153+++ agsync-0.2-pre/debian/compat
40154@@ -0,0 +1 @@
40155+4
40156--- agsync-0.2-pre.orig/debian/copyright
40157+++ agsync-0.2-pre/debian/copyright
40158@@ -0,0 +1,478 @@
40159+This package was debianized by Volker Christian <voc@users.sourceforge.net> on
40160+Tue, 23 Sep 2003 02:23:59 +0200.
40161+
40162+It was downloaded from http://www.mechlord.ca/~lownewulf/agsync-0.2-pre.tgz
40163+
40164+Upstream Author: Michael Jarrett, JudgeBeavis@hotmail.com
40165+
40166+Copyright:
40167+ MOZILLA PUBLIC LICENSE
40168+ Version 1.1
40169+
40170+ ---------------
40171+
40172+1. Definitions.
40173+
40174+ 1.0.1. "Commercial Use" means distribution or otherwise making the
40175+ Covered Code available to a third party.
40176+
40177+ 1.1. "Contributor" means each entity that creates or contributes to
40178+ the creation of Modifications.
40179+
40180+ 1.2. "Contributor Version" means the combination of the Original
40181+ Code, prior Modifications used by a Contributor, and the Modifications
40182+ made by that particular Contributor.
40183+
40184+ 1.3. "Covered Code" means the Original Code or Modifications or the
40185+ combination of the Original Code and Modifications, in each case
40186+ including portions thereof.
40187+
40188+ 1.4. "Electronic Distribution Mechanism" means a mechanism generally
40189+ accepted in the software development community for the electronic
40190+ transfer of data.
40191+
40192+ 1.5. "Executable" means Covered Code in any form other than Source
40193+ Code.
40194+
40195+ 1.6. "Initial Developer" means the individual or entity identified
40196+ as the Initial Developer in the Source Code notice required by Exhibit
40197+ A.
40198+
40199+ 1.7. "Larger Work" means a work which combines Covered Code or
40200+ portions thereof with code not governed by the terms of this License.
40201+
40202+ 1.8. "License" means this document.
40203+
40204+ 1.8.1. "Licensable" means having the right to grant, to the maximum
40205+ extent possible, whether at the time of the initial grant or
40206+ subsequently acquired, any and all of the rights conveyed herein.
40207+
40208+ 1.9. "Modifications" means any addition to or deletion from the
40209+ substance or structure of either the Original Code or any previous
40210+ Modifications. When Covered Code is released as a series of files, a
40211+ Modification is:
40212+ A. Any addition to or deletion from the contents of a file
40213+ containing Original Code or previous Modifications.
40214+
40215+ B. Any new file that contains any part of the Original Code or
40216+ previous Modifications.
40217+
40218+ 1.10. "Original Code" means Source Code of computer software code
40219+ which is described in the Source Code notice required by Exhibit A as
40220+ Original Code, and which, at the time of its release under this
40221+ License is not already Covered Code governed by this License.
40222+
40223+ 1.10.1. "Patent Claims" means any patent claim(s), now owned or
40224+ hereafter acquired, including without limitation, method, process,
40225+ and apparatus claims, in any patent Licensable by grantor.
40226+
40227+ 1.11. "Source Code" means the preferred form of the Covered Code for
40228+ making modifications to it, including all modules it contains, plus
40229+ any associated interface definition files, scripts used to control
40230+ compilation and installation of an Executable, or source code
40231+ differential comparisons against either the Original Code or another
40232+ well known, available Covered Code of the Contributor's choice. The
40233+ Source Code can be in a compressed or archival form, provided the
40234+ appropriate decompression or de-archiving software is widely available
40235+ for no charge.
40236+
40237+ 1.12. "You" (or "Your") means an individual or a legal entity
40238+ exercising rights under, and complying with all of the terms of, this
40239+ License or a future version of this License issued under Section 6.1.
40240+ For legal entities, "You" includes any entity which controls, is
40241+ controlled by, or is under common control with You. For purposes of
40242+ this definition, "control" means (a) the power, direct or indirect,
40243+ to cause the direction or management of such entity, whether by
40244+ contract or otherwise, or (b) ownership of more than fifty percent
40245+ (50%) of the outstanding shares or beneficial ownership of such
40246+ entity.
40247+
40248+2. Source Code License.
40249+
40250+ 2.1. The Initial Developer Grant.
40251+ The Initial Developer hereby grants You a world-wide, royalty-free,
40252+ non-exclusive license, subject to third party intellectual property
40253+ claims:
40254+ (a) under intellectual property rights (other than patent or
40255+ trademark) Licensable by Initial Developer to use, reproduce,
40256+ modify, display, perform, sublicense and distribute the Original
40257+ Code (or portions thereof) with or without Modifications, and/or
40258+ as part of a Larger Work; and
40259+
40260+ (b) under Patents Claims infringed by the making, using or
40261+ selling of Original Code, to make, have made, use, practice,
40262+ sell, and offer for sale, and/or otherwise dispose of the
40263+ Original Code (or portions thereof).
40264+
40265+ (c) the licenses granted in this Section 2.1(a) and (b) are
40266+ effective on the date Initial Developer first distributes
40267+ Original Code under the terms of this License.
40268+
40269+ (d) Notwithstanding Section 2.1(b) above, no patent license is
40270+ granted: 1) for code that You delete from the Original Code; 2)
40271+ separate from the Original Code; or 3) for infringements caused
40272+ by: i) the modification of the Original Code or ii) the
40273+ combination of the Original Code with other software or devices.
40274+
40275+ 2.2. Contributor Grant.
40276+ Subject to third party intellectual property claims, each Contributor
40277+ hereby grants You a world-wide, royalty-free, non-exclusive license
40278+
40279+ (a) under intellectual property rights (other than patent or
40280+ trademark) Licensable by Contributor, to use, reproduce, modify,
40281+ display, perform, sublicense and distribute the Modifications
40282+ created by such Contributor (or portions thereof) either on an
40283+ unmodified basis, with other Modifications, as Covered Code
40284+ and/or as part of a Larger Work; and
40285+
40286+ (b) under Patent Claims infringed by the making, using, or
40287+ selling of Modifications made by that Contributor either alone
40288+ and/or in combination with its Contributor Version (or portions
40289+ of such combination), to make, use, sell, offer for sale, have
40290+ made, and/or otherwise dispose of: 1) Modifications made by that
40291+ Contributor (or portions thereof); and 2) the combination of
40292+ Modifications made by that Contributor with its Contributor
40293+ Version (or portions of such combination).
40294+
40295+ (c) the licenses granted in Sections 2.2(a) and 2.2(b) are
40296+ effective on the date Contributor first makes Commercial Use of
40297+ the Covered Code.
40298+
40299+ (d) Notwithstanding Section 2.2(b) above, no patent license is
40300+ granted: 1) for any code that Contributor has deleted from the
40301+ Contributor Version; 2) separate from the Contributor Version;
40302+ 3) for infringements caused by: i) third party modifications of
40303+ Contributor Version or ii) the combination of Modifications made
40304+ by that Contributor with other software (except as part of the
40305+ Contributor Version) or other devices; or 4) under Patent Claims
40306+ infringed by Covered Code in the absence of Modifications made by
40307+ that Contributor.
40308+
40309+3. Distribution Obligations.
40310+
40311+ 3.1. Application of License.
40312+ The Modifications which You create or to which You contribute are
40313+ governed by the terms of this License, including without limitation
40314+ Section 2.2. The Source Code version of Covered Code may be
40315+ distributed only under the terms of this License or a future version
40316+ of this License released under Section 6.1, and You must include a
40317+ copy of this License with every copy of the Source Code You
40318+ distribute. You may not offer or impose any terms on any Source Code
40319+ version that alters or restricts the applicable version of this
40320+ License or the recipients' rights hereunder. However, You may include
40321+ an additional document offering the additional rights described in
40322+ Section 3.5.
40323+
40324+ 3.2. Availability of Source Code.
40325+ Any Modification which You create or to which You contribute must be
40326+ made available in Source Code form under the terms of this License
40327+ either on the same media as an Executable version or via an accepted
40328+ Electronic Distribution Mechanism to anyone to whom you made an
40329+ Executable version available; and if made available via Electronic
40330+ Distribution Mechanism, must remain available for at least twelve (12)
40331+ months after the date it initially became available, or at least six
40332+ (6) months after a subsequent version of that particular Modification
40333+ has been made available to such recipients. You are responsible for
40334+ ensuring that the Source Code version remains available even if the
40335+ Electronic Distribution Mechanism is maintained by a third party.
40336+
40337+ 3.3. Description of Modifications.
40338+ You must cause all Covered Code to which You contribute to contain a
40339+ file documenting the changes You made to create that Covered Code and
40340+ the date of any change. You must include a prominent statement that
40341+ the Modification is derived, directly or indirectly, from Original
40342+ Code provided by the Initial Developer and including the name of the
40343+ Initial Developer in (a) the Source Code, and (b) in any notice in an
40344+ Executable version or related documentation in which You describe the
40345+ origin or ownership of the Covered Code.
40346+
40347+ 3.4. Intellectual Property Matters
40348+ (a) Third Party Claims.
40349+ If Contributor has knowledge that a license under a third party's
40350+ intellectual property rights is required to exercise the rights
40351+ granted by such Contributor under Sections 2.1 or 2.2,
40352+ Contributor must include a text file with the Source Code
40353+ distribution titled "LEGAL" which describes the claim and the
40354+ party making the claim in sufficient detail that a recipient will
40355+ know whom to contact. If Contributor obtains such knowledge after
40356+ the Modification is made available as described in Section 3.2,
40357+ Contributor shall promptly modify the LEGAL file in all copies
40358+ Contributor makes available thereafter and shall take other steps
40359+ (such as notifying appropriate mailing lists or newsgroups)
40360+ reasonably calculated to inform those who received the Covered
40361+ Code that new knowledge has been obtained.
40362+
40363+ (b) Contributor APIs.
40364+ If Contributor's Modifications include an application programming
40365+ interface and Contributor has knowledge of patent licenses which
40366+ are reasonably necessary to implement that API, Contributor must
40367+ also include this information in the LEGAL file.
40368+
40369+ (c) Representations.
40370+ Contributor represents that, except as disclosed pursuant to
40371+ Section 3.4(a) above, Contributor believes that Contributor's
40372+ Modifications are Contributor's original creation(s) and/or
40373+ Contributor has sufficient rights to grant the rights conveyed by
40374+ this License.
40375+
40376+ 3.5. Required Notices.
40377+ You must duplicate the notice in Exhibit A in each file of the Source
40378+ Code. If it is not possible to put such notice in a particular Source
40379+ Code file due to its structure, then You must include such notice in a
40380+ location (such as a relevant directory) where a user would be likely
40381+ to look for such a notice. If You created one or more Modification(s)
40382+ You may add your name as a Contributor to the notice described in
40383+ Exhibit A. You must also duplicate this License in any documentation
40384+ for the Source Code where You describe recipients' rights or ownership
40385+ rights relating to Covered Code. You may choose to offer, and to
40386+ charge a fee for, warranty, support, indemnity or liability
40387+ obligations to one or more recipients of Covered Code. However, You
40388+ may do so only on Your own behalf, and not on behalf of the Initial
40389+ Developer or any Contributor. You must make it absolutely clear than
40390+ any such warranty, support, indemnity or liability obligation is
40391+ offered by You alone, and You hereby agree to indemnify the Initial
40392+ Developer and every Contributor for any liability incurred by the
40393+ Initial Developer or such Contributor as a result of warranty,
40394+ support, indemnity or liability terms You offer.
40395+
40396+ 3.6. Distribution of Executable Versions.
40397+ You may distribute Covered Code in Executable form only if the
40398+ requirements of Section 3.1-3.5 have been met for that Covered Code,
40399+ and if You include a notice stating that the Source Code version of
40400+ the Covered Code is available under the terms of this License,
40401+ including a description of how and where You have fulfilled the
40402+ obligations of Section 3.2. The notice must be conspicuously included
40403+ in any notice in an Executable version, related documentation or
40404+ collateral in which You describe recipients' rights relating to the
40405+ Covered Code. You may distribute the Executable version of Covered
40406+ Code or ownership rights under a license of Your choice, which may
40407+ contain terms different from this License, provided that You are in
40408+ compliance with the terms of this License and that the license for the
40409+ Executable version does not attempt to limit or alter the recipient's
40410+ rights in the Source Code version from the rights set forth in this
40411+ License. If You distribute the Executable version under a different
40412+ license You must make it absolutely clear that any terms which differ
40413+ from this License are offered by You alone, not by the Initial
40414+ Developer or any Contributor. You hereby agree to indemnify the
40415+ Initial Developer and every Contributor for any liability incurred by
40416+ the Initial Developer or such Contributor as a result of any such
40417+ terms You offer.
40418+
40419+ 3.7. Larger Works.
40420+ You may create a Larger Work by combining Covered Code with other code
40421+ not governed by the terms of this License and distribute the Larger
40422+ Work as a single product. In such a case, You must make sure the
40423+ requirements of this License are fulfilled for the Covered Code.
40424+
40425+4. Inability to Comply Due to Statute or Regulation.
40426+
40427+ If it is impossible for You to comply with any of the terms of this
40428+ License with respect to some or all of the Covered Code due to
40429+ statute, judicial order, or regulation then You must: (a) comply with
40430+ the terms of this License to the maximum extent possible; and (b)
40431+ describe the limitations and the code they affect. Such description
40432+ must be included in the LEGAL file described in Section 3.4 and must
40433+ be included with all distributions of the Source Code. Except to the
40434+ extent prohibited by statute or regulation, such description must be
40435+ sufficiently detailed for a recipient of ordinary skill to be able to
40436+ understand it.
40437+
40438+5. Application of this License.
40439+
40440+ This License applies to code to which the Initial Developer has
40441+ attached the notice in Exhibit A and to related Covered Code.
40442+
40443+6. Versions of the License.
40444+
40445+ 6.1. New Versions.
40446+ Netscape Communications Corporation ("Netscape") may publish revised
40447+ and/or new versions of the License from time to time. Each version
40448+ will be given a distinguishing version number.
40449+
40450+ 6.2. Effect of New Versions.
40451+ Once Covered Code has been published under a particular version of the
40452+ License, You may always continue to use it under the terms of that
40453+ version. You may also choose to use such Covered Code under the terms
40454+ of any subsequent version of the License published by Netscape. No one
40455+ other than Netscape has the right to modify the terms applicable to
40456+ Covered Code created under this License.
40457+
40458+ 6.3. Derivative Works.
40459+ If You create or use a modified version of this License (which you may
40460+ only do in order to apply it to code which is not already Covered Code
40461+ governed by this License), You must (a) rename Your license so that
40462+ the phrases "Mozilla", "MOZILLAPL", "MOZPL", "Netscape",
40463+ "MPL", "NPL" or any confusingly similar phrase do not appear in your
40464+ license (except to note that your license differs from this License)
40465+ and (b) otherwise make it clear that Your version of the license
40466+ contains terms which differ from the Mozilla Public License and
40467+ Netscape Public License. (Filling in the name of the Initial
40468+ Developer, Original Code or Contributor in the notice described in
40469+ Exhibit A shall not of themselves be deemed to be modifications of
40470+ this License.)
40471+
40472+7. DISCLAIMER OF WARRANTY.
40473+
40474+ COVERED CODE IS PROVIDED UNDER THIS LICENSE ON AN "AS IS" BASIS,
40475+ WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
40476+ WITHOUT LIMITATION, WARRANTIES THAT THE COVERED CODE IS FREE OF
40477+ DEFECTS, MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE OR NON-INFRINGING.
40478+ THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE COVERED CODE
40479+ IS WITH YOU. SHOULD ANY COVERED CODE PROVE DEFECTIVE IN ANY RESPECT,
40480+ YOU (NOT THE INITIAL DEVELOPER OR ANY OTHER CONTRIBUTOR) ASSUME THE
40481+ COST OF ANY NECESSARY SERVICING, REPAIR OR CORRECTION. THIS DISCLAIMER
40482+ OF WARRANTY CONSTITUTES AN ESSENTIAL PART OF THIS LICENSE. NO USE OF
40483+ ANY COVERED CODE IS AUTHORIZED HEREUNDER EXCEPT UNDER THIS DISCLAIMER.
40484+
40485+8. TERMINATION.
40486+
40487+ 8.1. This License and the rights granted hereunder will terminate
40488+ automatically if You fail to comply with terms herein and fail to cure
40489+ such breach within 30 days of becoming aware of the breach. All
40490+ sublicenses to the Covered Code which are properly granted shall
40491+ survive any termination of this License. Provisions which, by their
40492+ nature, must remain in effect beyond the termination of this License
40493+ shall survive.
40494+
40495+ 8.2. If You initiate litigation by asserting a patent infringement
40496+ claim (excluding declatory judgment actions) against Initial Developer
40497+ or a Contributor (the Initial Developer or Contributor against whom
40498+ You file such action is referred to as "Participant") alleging that:
40499+
40500+ (a) such Participant's Contributor Version directly or indirectly
40501+ infringes any patent, then any and all rights granted by such
40502+ Participant to You under Sections 2.1 and/or 2.2 of this License
40503+ shall, upon 60 days notice from Participant terminate prospectively,
40504+ unless if within 60 days after receipt of notice You either: (i)
40505+ agree in writing to pay Participant a mutually agreeable reasonable
40506+ royalty for Your past and future use of Modifications made by such
40507+ Participant, or (ii) withdraw Your litigation claim with respect to
40508+ the Contributor Version against such Participant. If within 60 days
40509+ of notice, a reasonable royalty and payment arrangement are not
40510+ mutually agreed upon in writing by the parties or the litigation claim
40511+ is not withdrawn, the rights granted by Participant to You under
40512+ Sections 2.1 and/or 2.2 automatically terminate at the expiration of
40513+ the 60 day notice period specified above.
40514+
40515+ (b) any software, hardware, or device, other than such Participant's
40516+ Contributor Version, directly or indirectly infringes any patent, then
40517+ any rights granted to You by such Participant under Sections 2.1(b)
40518+ and 2.2(b) are revoked effective as of the date You first made, used,
40519+ sold, distributed, or had made, Modifications made by that
40520+ Participant.
40521+
40522+ 8.3. If You assert a patent infringement claim against Participant
40523+ alleging that such Participant's Contributor Version directly or
40524+ indirectly infringes any patent where such claim is resolved (such as
40525+ by license or settlement) prior to the initiation of patent
40526+ infringement litigation, then the reasonable value of the licenses
40527+ granted by such Participant under Sections 2.1 or 2.2 shall be taken
40528+ into account in determining the amount or value of any payment or
40529+ license.
40530+
40531+ 8.4. In the event of termination under Sections 8.1 or 8.2 above,
40532+ all end user license agreements (excluding distributors and resellers)
40533+ which have been validly granted by You or any distributor hereunder
40534+ prior to termination shall survive termination.
40535+
40536+9. LIMITATION OF LIABILITY.
40537+
40538+ UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY, WHETHER TORT
40539+ (INCLUDING NEGLIGENCE), CONTRACT, OR OTHERWISE, SHALL YOU, THE INITIAL
40540+ DEVELOPER, ANY OTHER CONTRIBUTOR, OR ANY DISTRIBUTOR OF COVERED CODE,
40541+ OR ANY SUPPLIER OF ANY OF SUCH PARTIES, BE LIABLE TO ANY PERSON FOR
40542+ ANY INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY
40543+ CHARACTER INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF GOODWILL,
40544+ WORK STOPPAGE, COMPUTER FAILURE OR MALFUNCTION, OR ANY AND ALL OTHER
40545+ COMMERCIAL DAMAGES OR LOSSES, EVEN IF SUCH PARTY SHALL HAVE BEEN
40546+ INFORMED OF THE POSSIBILITY OF SUCH DAMAGES. THIS LIMITATION OF
40547+ LIABILITY SHALL NOT APPLY TO LIABILITY FOR DEATH OR PERSONAL INJURY
40548+ RESULTING FROM SUCH PARTY'S NEGLIGENCE TO THE EXTENT APPLICABLE LAW
40549+ PROHIBITS SUCH LIMITATION. SOME JURISDICTIONS DO NOT ALLOW THE
40550+ EXCLUSION OR LIMITATION OF INCIDENTAL OR CONSEQUENTIAL DAMAGES, SO
40551+ THIS EXCLUSION AND LIMITATION MAY NOT APPLY TO YOU.
40552+
40553+10. U.S. GOVERNMENT END USERS.
40554+
40555+ The Covered Code is a "commercial item," as that term is defined in
40556+ 48 C.F.R. 2.101 (Oct. 1995), consisting of "commercial computer
40557+ software" and "commercial computer software documentation," as such
40558+ terms are used in 48 C.F.R. 12.212 (Sept. 1995). Consistent with 48
40559+ C.F.R. 12.212 and 48 C.F.R. 227.7202-1 through 227.7202-4 (June 1995),
40560+ all U.S. Government End Users acquire Covered Code with only those
40561+ rights set forth herein.
40562+
40563+11. MISCELLANEOUS.
40564+
40565+ This License represents the complete agreement concerning subject
40566+ matter hereof. If any provision of this License is held to be
40567+ unenforceable, such provision shall be reformed only to the extent
40568+ necessary to make it enforceable. This License shall be governed by
40569+ California law provisions (except to the extent applicable law, if
40570+ any, provides otherwise), excluding its conflict-of-law provisions.
40571+ With respect to disputes in which at least one party is a citizen of,
40572+ or an entity chartered or registered to do business in the United
40573+ States of America, any litigation relating to this License shall be
40574+ subject to the jurisdiction of the Federal Courts of the Northern
40575+ District of California, with venue lying in Santa Clara County,
40576+ California, with the losing party responsible for costs, including
40577+ without limitation, court costs and reasonable attorneys' fees and
40578+ expenses. The application of the United Nations Convention on
40579+ Contracts for the International Sale of Goods is expressly excluded.
40580+ Any law or regulation which provides that the language of a contract
40581+ shall be construed against the drafter shall not apply to this
40582+ License.
40583+
40584+12. RESPONSIBILITY FOR CLAIMS.
40585+
40586+ As between Initial Developer and the Contributors, each party is
40587+ responsible for claims and damages arising, directly or indirectly,
40588+ out of its utilization of rights under this License and You agree to
40589+ work with Initial Developer and Contributors to distribute such
40590+ responsibility on an equitable basis. Nothing herein is intended or
40591+ shall be deemed to constitute any admission of liability.
40592+
40593+13. MULTIPLE-LICENSED CODE.
40594+
40595+ Initial Developer may designate portions of the Covered Code as
40596+ "Multiple-Licensed". "Multiple-Licensed" means that the Initial
40597+ Developer permits you to utilize portions of the Covered Code under
40598+ Your choice of the NPL or the alternative licenses, if any, specified
40599+ by the Initial Developer in the file described in Exhibit A.
40600+
40601+EXHIBIT A -Mozilla Public License.
40602+
40603+ ``The contents of this file are subject to the Mozilla Public License
40604+ Version 1.1 (the "License"); you may not use this file except in
40605+ compliance with the License. You may obtain a copy of the License at
40606+ http://www.mozilla.org/MPL/
40607+
40608+ Software distributed under the License is distributed on an "AS IS"
40609+ basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
40610+ License for the specific language governing rights and limitations
40611+ under the License.
40612+
40613+ The Original Code is ______________________________________.
40614+
40615+ The Initial Developer of the Original Code is ________________________.
40616+ Portions created by ______________________ are Copyright (C) ______
40617+ _______________________. All Rights Reserved.
40618+
40619+ Contributor(s): ______________________________________.
40620+
40621+ Alternatively, the contents of this file may be used under the terms
40622+ of the _____ license (the "[___] License"), in which case the
40623+ provisions of [______] License are applicable instead of those
40624+ above. If you wish to allow use of your version of this file only
40625+ under the terms of the [____] License and not to allow others to use
40626+ your version of this file under the MPL, indicate your decision by
40627+ deleting the provisions above and replace them with the notice and
40628+ other provisions required by the [___] License. If you do not delete
40629+ the provisions above, a recipient may use your version of this file
40630+ under either the MPL or the [___] License."
40631+
40632+ [NOTE: The text of this Exhibit A may differ slightly from the text of
40633+ the notices in the Source Code files of the Original Code. You should
40634+ use the text of this Exhibit A rather than the text found in the
40635+ Original Code Source Code for Your Modifications.]
40636+
40637--- agsync-0.2-pre.orig/debian/agsync-dev.dirs
40638+++ agsync-0.2-pre/debian/agsync-dev.dirs
40639@@ -0,0 +1,2 @@
40640+usr/lib
40641+usr/include
40642--- agsync-0.2-pre.orig/mkinstalldirs
40643+++ agsync-0.2-pre/mkinstalldirs
40644@@ -0,0 +1,111 @@
40645+#! /bin/sh
40646+# mkinstalldirs --- make directory hierarchy
40647+# Author: Noah Friedman <friedman@prep.ai.mit.edu>
40648+# Created: 1993-05-16
40649+# Public domain
40650+
40651+errstatus=0
40652+dirmode=""
40653+
40654+usage="\
40655+Usage: mkinstalldirs [-h] [--help] [-m mode] dir ..."
40656+
40657+# process command line arguments
40658+while test $# -gt 0 ; do
40659+ case $1 in
40660+ -h | --help | --h*) # -h for help
40661+ echo "$usage" 1>&2
40662+ exit 0
40663+ ;;
40664+ -m) # -m PERM arg
40665+ shift
40666+ test $# -eq 0 && { echo "$usage" 1>&2; exit 1; }
40667+ dirmode=$1
40668+ shift
40669+ ;;
40670+ --) # stop option processing
40671+ shift
40672+ break
40673+ ;;
40674+ -*) # unknown option
40675+ echo "$usage" 1>&2
40676+ exit 1
40677+ ;;
40678+ *) # first non-opt arg
40679+ break
40680+ ;;
40681+ esac
40682+done
40683+
40684+for file
40685+do
40686+ if test -d "$file"; then
40687+ shift
40688+ else
40689+ break
40690+ fi
40691+done
40692+
40693+case $# in
40694+ 0) exit 0 ;;
40695+esac
40696+
40697+case $dirmode in
40698+ '')
40699+ if mkdir -p -- . 2>/dev/null; then
40700+ echo "mkdir -p -- $*"
40701+ exec mkdir -p -- "$@"
40702+ fi
40703+ ;;
40704+ *)
40705+ if mkdir -m "$dirmode" -p -- . 2>/dev/null; then
40706+ echo "mkdir -m $dirmode -p -- $*"
40707+ exec mkdir -m "$dirmode" -p -- "$@"
40708+ fi
40709+ ;;
40710+esac
40711+
40712+for file
40713+do
40714+ set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
40715+ shift
40716+
40717+ pathcomp=
40718+ for d
40719+ do
40720+ pathcomp="$pathcomp$d"
40721+ case $pathcomp in
40722+ -*) pathcomp=./$pathcomp ;;
40723+ esac
40724+
40725+ if test ! -d "$pathcomp"; then
40726+ echo "mkdir $pathcomp"
40727+
40728+ mkdir "$pathcomp" || lasterr=$?
40729+
40730+ if test ! -d "$pathcomp"; then
40731+ errstatus=$lasterr
40732+ else
40733+ if test ! -z "$dirmode"; then
40734+ echo "chmod $dirmode $pathcomp"
40735+ lasterr=""
40736+ chmod "$dirmode" "$pathcomp" || lasterr=$?
40737+
40738+ if test ! -z "$lasterr"; then
40739+ errstatus=$lasterr
40740+ fi
40741+ fi
40742+ fi
40743+ fi
40744+
40745+ pathcomp="$pathcomp/"
40746+ done
40747+done
40748+
40749+exit $errstatus
40750+
40751+# Local Variables:
40752+# mode: shell-script
40753+# sh-indentation: 2
40754+# End:
40755+# mkinstalldirs ends here
40756--- agsync-0.2-pre.orig/Makefile.am
40757+++ agsync-0.2-pre/Makefile.am
40758@@ -0,0 +1,12 @@
40759+# not a GNU package. You can remove this line, if
40760+# have all needed files, that a GNU package needs
40761+
40762+INCLUDES = -I$(top_srcdir)/mal-files -I$(top_srcdir)/mal-files/client
40763+METASOURCES = AUTO
40764+
40765+bin_PROGRAMS = agsync
40766+SUBDIRS = mal-files
40767+agsync_SOURCES = syncmain.c syncstream.c syncstream.h
40768+EXTRA_DIST = CHANGELOG MPL-1.1.txt README
40769+agsync_LDADD = $(top_builddir)/mal-files/libmal-funcs.la
40770+noinst_HEADERS = syncstream.h
40771--- agsync-0.2-pre.orig/Makefile.in
40772+++ agsync-0.2-pre/Makefile.in
40773@@ -0,0 +1,667 @@
40774+# Makefile.in generated by automake 1.7.9 from Makefile.am.
40775+# @configure_input@
40776+
40777+# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
40778+# Free Software Foundation, Inc.
40779+# This Makefile.in is free software; the Free Software Foundation
40780+# gives unlimited permission to copy and/or distribute it,
40781+# with or without modifications, as long as this notice is preserved.
40782+
40783+# This program is distributed in the hope that it will be useful,
40784+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
40785+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
40786+# PARTICULAR PURPOSE.
40787+
40788+@SET_MAKE@
40789+
40790+# not a GNU package. You can remove this line, if
40791+# have all needed files, that a GNU package needs
40792+
40793+srcdir = @srcdir@
40794+top_srcdir = @top_srcdir@
40795+VPATH = @srcdir@
40796+pkgdatadir = $(datadir)/@PACKAGE@
40797+pkglibdir = $(libdir)/@PACKAGE@
40798+pkgincludedir = $(includedir)/@PACKAGE@
40799+top_builddir = .
40800+
40801+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
40802+INSTALL = @INSTALL@
40803+install_sh_DATA = $(install_sh) -c -m 644
40804+install_sh_PROGRAM = $(install_sh) -c
40805+install_sh_SCRIPT = $(install_sh) -c
40806+INSTALL_HEADER = $(INSTALL_DATA)
40807+transform = $(program_transform_name)
40808+NORMAL_INSTALL = :
40809+PRE_INSTALL = :
40810+POST_INSTALL = :
40811+NORMAL_UNINSTALL = :
40812+PRE_UNINSTALL = :
40813+POST_UNINSTALL = :
40814+host_triplet = @host@
40815+ACLOCAL = @ACLOCAL@
40816+AMDEP_FALSE = @AMDEP_FALSE@
40817+AMDEP_TRUE = @AMDEP_TRUE@
40818+AMTAR = @AMTAR@
40819+AR = @AR@
40820+AUTOCONF = @AUTOCONF@
40821+AUTOHEADER = @AUTOHEADER@
40822+AUTOMAKE = @AUTOMAKE@
40823+AWK = @AWK@
40824+CC = @CC@
40825+CCDEPMODE = @CCDEPMODE@
40826+CFLAGS = @CFLAGS@
40827+CPP = @CPP@
40828+CPPFLAGS = @CPPFLAGS@
40829+CXX = @CXX@
40830+CXXCPP = @CXXCPP@
40831+CXXDEPMODE = @CXXDEPMODE@
40832+CXXFLAGS = @CXXFLAGS@
40833+CYGPATH_W = @CYGPATH_W@
40834+DEFS = @DEFS@
40835+DEPDIR = @DEPDIR@
40836+ECHO = @ECHO@
40837+ECHO_C = @ECHO_C@
40838+ECHO_N = @ECHO_N@
40839+ECHO_T = @ECHO_T@
40840+EGREP = @EGREP@
40841+EXEEXT = @EXEEXT@
40842+F77 = @F77@
40843+FFLAGS = @FFLAGS@
40844+INSTALL_DATA = @INSTALL_DATA@
40845+INSTALL_PROGRAM = @INSTALL_PROGRAM@
40846+INSTALL_SCRIPT = @INSTALL_SCRIPT@
40847+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
40848+LDFLAGS = @LDFLAGS@
40849+LIBOBJS = @LIBOBJS@
40850+LIBS = @LIBS@
40851+LIBTOOL = @LIBTOOL@
40852+LN_S = @LN_S@
40853+LTLIBOBJS = @LTLIBOBJS@
40854+MAINT = @MAINT@
40855+MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
40856+MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
40857+MAKEINFO = @MAKEINFO@
40858+OBJEXT = @OBJEXT@
40859+PACKAGE = @PACKAGE@
40860+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
40861+PACKAGE_NAME = @PACKAGE_NAME@
40862+PACKAGE_STRING = @PACKAGE_STRING@
40863+PACKAGE_TARNAME = @PACKAGE_TARNAME@
40864+PACKAGE_VERSION = @PACKAGE_VERSION@
40865+PATH_SEPARATOR = @PATH_SEPARATOR@
40866+RANLIB = @RANLIB@
40867+SET_MAKE = @SET_MAKE@
40868+SHELL = @SHELL@
40869+STRIP = @STRIP@
40870+VERSION = @VERSION@
40871+ac_ct_AR = @ac_ct_AR@
40872+ac_ct_CC = @ac_ct_CC@
40873+ac_ct_CXX = @ac_ct_CXX@
40874+ac_ct_F77 = @ac_ct_F77@
40875+ac_ct_RANLIB = @ac_ct_RANLIB@
40876+ac_ct_STRIP = @ac_ct_STRIP@
40877+am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
40878+am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
40879+am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
40880+am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
40881+am__include = @am__include@
40882+am__leading_dot = @am__leading_dot@
40883+am__quote = @am__quote@
40884+bindir = @bindir@
40885+build = @build@
40886+build_alias = @build_alias@
40887+build_cpu = @build_cpu@
40888+build_os = @build_os@
40889+build_vendor = @build_vendor@
40890+datadir = @datadir@
40891+exec_prefix = @exec_prefix@
40892+host = @host@
40893+host_alias = @host_alias@
40894+host_cpu = @host_cpu@
40895+host_os = @host_os@
40896+host_vendor = @host_vendor@
40897+includedir = @includedir@
40898+infodir = @infodir@
40899+install_sh = @install_sh@
40900+libdir = @libdir@
40901+libexecdir = @libexecdir@
40902+localstatedir = @localstatedir@
40903+mandir = @mandir@
40904+oldincludedir = @oldincludedir@
40905+prefix = @prefix@
40906+program_transform_name = @program_transform_name@
40907+sbindir = @sbindir@
40908+sharedstatedir = @sharedstatedir@
40909+sysconfdir = @sysconfdir@
40910+target_alias = @target_alias@
40911+
40912+INCLUDES = -I$(top_srcdir)/mal-files -I$(top_srcdir)/mal-files/client
40913+METASOURCES = AUTO
40914+
40915+bin_PROGRAMS = agsync
40916+SUBDIRS = mal-files
40917+agsync_SOURCES = syncmain.c syncstream.c syncstream.h
40918+EXTRA_DIST = CHANGELOG MPL-1.1.txt README
40919+agsync_LDADD = $(top_builddir)/mal-files/libmal-funcs.la
40920+noinst_HEADERS = syncstream.h
40921+subdir = .
40922+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
40923+mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
40924+CONFIG_HEADER = config.h
40925+CONFIG_CLEAN_FILES =
40926+bin_PROGRAMS = agsync$(EXEEXT)
40927+PROGRAMS = $(bin_PROGRAMS)
40928+
40929+am_agsync_OBJECTS = syncmain.$(OBJEXT) syncstream.$(OBJEXT)
40930+agsync_OBJECTS = $(am_agsync_OBJECTS)
40931+agsync_DEPENDENCIES = $(top_builddir)/mal-files/libmal-funcs.la
40932+agsync_LDFLAGS =
40933+
40934+DEFAULT_INCLUDES = -I. -I$(srcdir) -I.
40935+depcomp = $(SHELL) $(top_srcdir)/depcomp
40936+am__depfiles_maybe = depfiles
40937+@AMDEP_TRUE@DEP_FILES = ./$(DEPDIR)/syncmain.Po \
40938+@AMDEP_TRUE@ ./$(DEPDIR)/syncstream.Po
40939+COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
40940+ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
40941+LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) \
40942+ $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
40943+CCLD = $(CC)
40944+LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
40945+ $(AM_LDFLAGS) $(LDFLAGS) -o $@
40946+DIST_SOURCES = $(agsync_SOURCES)
40947+HEADERS = $(noinst_HEADERS)
40948+
40949+
40950+RECURSIVE_TARGETS = info-recursive dvi-recursive pdf-recursive \
40951+ ps-recursive install-info-recursive uninstall-info-recursive \
40952+ all-recursive install-data-recursive install-exec-recursive \
40953+ installdirs-recursive install-recursive uninstall-recursive \
40954+ check-recursive installcheck-recursive
40955+DIST_COMMON = README $(noinst_HEADERS) $(srcdir)/Makefile.in \
40956+ $(srcdir)/configure AUTHORS COPYING ChangeLog INSTALL \
40957+ Makefile.am NEWS aclocal.m4 config.guess config.h.in config.sub \
40958+ configure configure.in depcomp install-sh ltmain.sh missing \
40959+ mkinstalldirs
40960+DIST_SUBDIRS = $(SUBDIRS)
40961+SOURCES = $(agsync_SOURCES)
40962+
40963+all: config.h
40964+ $(MAKE) $(AM_MAKEFLAGS) all-recursive
40965+
40966+.SUFFIXES:
40967+.SUFFIXES: .c .lo .o .obj
40968+
40969+am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
40970+ configure.lineno
40971+$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
40972+ cd $(top_srcdir) && \
40973+ $(AUTOMAKE) --gnu Makefile
40974+Makefile: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.in $(top_builddir)/config.status
40975+ cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)
40976+
40977+$(top_builddir)/config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
40978+ $(SHELL) ./config.status --recheck
40979+$(srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
40980+ cd $(srcdir) && $(AUTOCONF)
40981+
40982+$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ configure.in
40983+ cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
40984+
40985+config.h: stamp-h1
40986+ @if test ! -f $@; then \
40987+ rm -f stamp-h1; \
40988+ $(MAKE) stamp-h1; \
40989+ else :; fi
40990+
40991+stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
40992+ @rm -f stamp-h1
40993+ cd $(top_builddir) && $(SHELL) ./config.status config.h
40994+
40995+$(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@ $(top_srcdir)/configure.in $(ACLOCAL_M4)
40996+ cd $(top_srcdir) && $(AUTOHEADER)
40997+ touch $(srcdir)/config.h.in
40998+
40999+distclean-hdr:
41000+ -rm -f config.h stamp-h1
41001+binPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
41002+install-binPROGRAMS: $(bin_PROGRAMS)
41003+ @$(NORMAL_INSTALL)
41004+ $(mkinstalldirs) $(DESTDIR)$(bindir)
41005+ @list='$(bin_PROGRAMS)'; for p in $$list; do \
41006+ p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
41007+ if test -f $$p \
41008+ || test -f $$p1 \
41009+ ; then \
41010+ f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
41011+ echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) $$p $(DESTDIR)$(bindir)/$$f"; \
41012+ $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) $$p $(DESTDIR)$(bindir)/$$f || exit 1; \
41013+ else :; fi; \
41014+ done
41015+
41016+uninstall-binPROGRAMS:
41017+ @$(NORMAL_UNINSTALL)
41018+ @list='$(bin_PROGRAMS)'; for p in $$list; do \
41019+ f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
41020+ echo " rm -f $(DESTDIR)$(bindir)/$$f"; \
41021+ rm -f $(DESTDIR)$(bindir)/$$f; \
41022+ done
41023+
41024+clean-binPROGRAMS:
41025+ @list='$(bin_PROGRAMS)'; for p in $$list; do \
41026+ f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
41027+ echo " rm -f $$p $$f"; \
41028+ rm -f $$p $$f ; \
41029+ done
41030+agsync$(EXEEXT): $(agsync_OBJECTS) $(agsync_DEPENDENCIES)
41031+ @rm -f agsync$(EXEEXT)
41032+ $(LINK) $(agsync_LDFLAGS) $(agsync_OBJECTS) $(agsync_LDADD) $(LIBS)
41033+
41034+mostlyclean-compile:
41035+ -rm -f *.$(OBJEXT) core *.core
41036+
41037+distclean-compile:
41038+ -rm -f *.tab.c
41039+
41040+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/syncmain.Po@am__quote@
41041+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/syncstream.Po@am__quote@
41042+
41043+.c.o:
41044+@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \
41045+@am__fastdepCC_TRUE@ -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<; \
41046+@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; \
41047+@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
41048+@am__fastdepCC_TRUE@ fi
41049+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
41050+@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
41051+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
41052+@am__fastdepCC_FALSE@ $(COMPILE) -c `test -f '$<' || echo '$(srcdir)/'`$<
41053+
41054+.c.obj:
41055+@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \
41056+@am__fastdepCC_TRUE@ -c -o $@ `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'; fi`; \
41057+@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; \
41058+@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
41059+@am__fastdepCC_TRUE@ fi
41060+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
41061+@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
41062+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
41063+@am__fastdepCC_FALSE@ $(COMPILE) -c `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'; fi`
41064+
41065+.c.lo:
41066+@am__fastdepCC_TRUE@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \
41067+@am__fastdepCC_TRUE@ -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<; \
41068+@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; \
41069+@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
41070+@am__fastdepCC_TRUE@ fi
41071+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
41072+@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Plo' tmpdepfile='$(DEPDIR)/$*.TPlo' @AMDEPBACKSLASH@
41073+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
41074+@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<
41075+
41076+mostlyclean-libtool:
41077+ -rm -f *.lo
41078+
41079+clean-libtool:
41080+ -rm -rf .libs _libs
41081+
41082+distclean-libtool:
41083+ -rm -f libtool
41084+uninstall-info-am:
41085+
41086+# This directory's subdirectories are mostly independent; you can cd
41087+# into them and run `make' without going through this Makefile.
41088+# To change the values of `make' variables: instead of editing Makefiles,
41089+# (1) if the variable is set in `config.status', edit `config.status'
41090+# (which will cause the Makefiles to be regenerated when you run `make');
41091+# (2) otherwise, pass the desired values on the `make' command line.
41092+$(RECURSIVE_TARGETS):
41093+ @set fnord $$MAKEFLAGS; amf=$$2; \
41094+ dot_seen=no; \
41095+ target=`echo $@ | sed s/-recursive//`; \
41096+ list='$(SUBDIRS)'; for subdir in $$list; do \
41097+ echo "Making $$target in $$subdir"; \
41098+ if test "$$subdir" = "."; then \
41099+ dot_seen=yes; \
41100+ local_target="$$target-am"; \
41101+ else \
41102+ local_target="$$target"; \
41103+ fi; \
41104+ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
41105+ || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
41106+ done; \
41107+ if test "$$dot_seen" = "no"; then \
41108+ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
41109+ fi; test -z "$$fail"
41110+
41111+mostlyclean-recursive clean-recursive distclean-recursive \
41112+maintainer-clean-recursive:
41113+ @set fnord $$MAKEFLAGS; amf=$$2; \
41114+ dot_seen=no; \
41115+ case "$@" in \
41116+ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
41117+ *) list='$(SUBDIRS)' ;; \
41118+ esac; \
41119+ rev=''; for subdir in $$list; do \
41120+ if test "$$subdir" = "."; then :; else \
41121+ rev="$$subdir $$rev"; \
41122+ fi; \
41123+ done; \
41124+ rev="$$rev ."; \
41125+ target=`echo $@ | sed s/-recursive//`; \
41126+ for subdir in $$rev; do \
41127+ echo "Making $$target in $$subdir"; \
41128+ if test "$$subdir" = "."; then \
41129+ local_target="$$target-am"; \
41130+ else \
41131+ local_target="$$target"; \
41132+ fi; \
41133+ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
41134+ || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
41135+ done && test -z "$$fail"
41136+tags-recursive:
41137+ list='$(SUBDIRS)'; for subdir in $$list; do \
41138+ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
41139+ done
41140+ctags-recursive:
41141+ list='$(SUBDIRS)'; for subdir in $$list; do \
41142+ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
41143+ done
41144+
41145+ETAGS = etags
41146+ETAGSFLAGS =
41147+
41148+CTAGS = ctags
41149+CTAGSFLAGS =
41150+
41151+tags: TAGS
41152+
41153+ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
41154+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
41155+ unique=`for i in $$list; do \
41156+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
41157+ done | \
41158+ $(AWK) ' { files[$$0] = 1; } \
41159+ END { for (i in files) print i; }'`; \
41160+ mkid -fID $$unique
41161+
41162+TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
41163+ $(TAGS_FILES) $(LISP)
41164+ tags=; \
41165+ here=`pwd`; \
41166+ if (etags --etags-include --version) >/dev/null 2>&1; then \
41167+ include_option=--etags-include; \
41168+ else \
41169+ include_option=--include; \
41170+ fi; \
41171+ list='$(SUBDIRS)'; for subdir in $$list; do \
41172+ if test "$$subdir" = .; then :; else \
41173+ test -f $$subdir/TAGS && \
41174+ tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
41175+ fi; \
41176+ done; \
41177+ list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
41178+ unique=`for i in $$list; do \
41179+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
41180+ done | \
41181+ $(AWK) ' { files[$$0] = 1; } \
41182+ END { for (i in files) print i; }'`; \
41183+ test -z "$(ETAGS_ARGS)$$tags$$unique" \
41184+ || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
41185+ $$tags $$unique
41186+
41187+ctags: CTAGS
41188+CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
41189+ $(TAGS_FILES) $(LISP)
41190+ tags=; \
41191+ here=`pwd`; \
41192+ list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
41193+ unique=`for i in $$list; do \
41194+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
41195+ done | \
41196+ $(AWK) ' { files[$$0] = 1; } \
41197+ END { for (i in files) print i; }'`; \
41198+ test -z "$(CTAGS_ARGS)$$tags$$unique" \
41199+ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
41200+ $$tags $$unique
41201+
41202+GTAGS:
41203+ here=`$(am__cd) $(top_builddir) && pwd` \
41204+ && cd $(top_srcdir) \
41205+ && gtags -i $(GTAGS_ARGS) $$here
41206+
41207+distclean-tags:
41208+ -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
41209+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
41210+
41211+top_distdir = .
41212+distdir = $(PACKAGE)-$(VERSION)
41213+
41214+am__remove_distdir = \
41215+ { test ! -d $(distdir) \
41216+ || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
41217+ && rm -fr $(distdir); }; }
41218+
41219+GZIP_ENV = --best
41220+distuninstallcheck_listfiles = find . -type f -print
41221+distcleancheck_listfiles = find . -type f -print
41222+
41223+distdir: $(DISTFILES)
41224+ $(am__remove_distdir)
41225+ mkdir $(distdir)
41226+ @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
41227+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
41228+ list='$(DISTFILES)'; for file in $$list; do \
41229+ case $$file in \
41230+ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
41231+ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
41232+ esac; \
41233+ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
41234+ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
41235+ if test "$$dir" != "$$file" && test "$$dir" != "."; then \
41236+ dir="/$$dir"; \
41237+ $(mkinstalldirs) "$(distdir)$$dir"; \
41238+ else \
41239+ dir=''; \
41240+ fi; \
41241+ if test -d $$d/$$file; then \
41242+ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
41243+ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
41244+ fi; \
41245+ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
41246+ else \
41247+ test -f $(distdir)/$$file \
41248+ || cp -p $$d/$$file $(distdir)/$$file \
41249+ || exit 1; \
41250+ fi; \
41251+ done
41252+ list='$(SUBDIRS)'; for subdir in $$list; do \
41253+ if test "$$subdir" = .; then :; else \
41254+ test -d $(distdir)/$$subdir \
41255+ || mkdir $(distdir)/$$subdir \
41256+ || exit 1; \
41257+ (cd $$subdir && \
41258+ $(MAKE) $(AM_MAKEFLAGS) \
41259+ top_distdir="$(top_distdir)" \
41260+ distdir=../$(distdir)/$$subdir \
41261+ distdir) \
41262+ || exit 1; \
41263+ fi; \
41264+ done
41265+ -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
41266+ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
41267+ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
41268+ ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
41269+ || chmod -R a+r $(distdir)
41270+dist-gzip: distdir
41271+ $(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
41272+ $(am__remove_distdir)
41273+
41274+dist dist-all: distdir
41275+ $(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
41276+ $(am__remove_distdir)
41277+
41278+# This target untars the dist file and tries a VPATH configuration. Then
41279+# it guarantees that the distribution is self-contained by making another
41280+# tarfile.
41281+distcheck: dist
41282+ $(am__remove_distdir)
41283+ GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(AMTAR) xf -
41284+ chmod -R a-w $(distdir); chmod a+w $(distdir)
41285+ mkdir $(distdir)/_build
41286+ mkdir $(distdir)/_inst
41287+ chmod a-w $(distdir)
41288+ dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
41289+ && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
41290+ && cd $(distdir)/_build \
41291+ && ../configure --srcdir=.. --prefix="$$dc_install_base" \
41292+ $(DISTCHECK_CONFIGURE_FLAGS) \
41293+ && $(MAKE) $(AM_MAKEFLAGS) \
41294+ && $(MAKE) $(AM_MAKEFLAGS) dvi \
41295+ && $(MAKE) $(AM_MAKEFLAGS) check \
41296+ && $(MAKE) $(AM_MAKEFLAGS) install \
41297+ && $(MAKE) $(AM_MAKEFLAGS) installcheck \
41298+ && $(MAKE) $(AM_MAKEFLAGS) uninstall \
41299+ && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
41300+ distuninstallcheck \
41301+ && chmod -R a-w "$$dc_install_base" \
41302+ && ({ \
41303+ (cd ../.. && $(mkinstalldirs) "$$dc_destdir") \
41304+ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
41305+ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
41306+ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
41307+ distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
41308+ } || { rm -rf "$$dc_destdir"; exit 1; }) \
41309+ && rm -rf "$$dc_destdir" \
41310+ && $(MAKE) $(AM_MAKEFLAGS) dist-gzip \
41311+ && rm -f $(distdir).tar.gz \
41312+ && $(MAKE) $(AM_MAKEFLAGS) distcleancheck
41313+ $(am__remove_distdir)
41314+ @echo "$(distdir).tar.gz is ready for distribution" | \
41315+ sed 'h;s/./=/g;p;x;p;x'
41316+distuninstallcheck:
41317+ @cd $(distuninstallcheck_dir) \
41318+ && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
41319+ || { echo "ERROR: files left after uninstall:" ; \
41320+ if test -n "$(DESTDIR)"; then \
41321+ echo " (check DESTDIR support)"; \
41322+ fi ; \
41323+ $(distuninstallcheck_listfiles) ; \
41324+ exit 1; } >&2
41325+distcleancheck: distclean
41326+ @if test '$(srcdir)' = . ; then \
41327+ echo "ERROR: distcleancheck can only run from a VPATH build" ; \
41328+ exit 1 ; \
41329+ fi
41330+ @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
41331+ || { echo "ERROR: files left in build directory after distclean:" ; \
41332+ $(distcleancheck_listfiles) ; \
41333+ exit 1; } >&2
41334+check-am: all-am
41335+check: check-recursive
41336+all-am: Makefile $(PROGRAMS) $(HEADERS) config.h
41337+installdirs: installdirs-recursive
41338+installdirs-am:
41339+ $(mkinstalldirs) $(DESTDIR)$(bindir)
41340+
41341+install: install-recursive
41342+install-exec: install-exec-recursive
41343+install-data: install-data-recursive
41344+uninstall: uninstall-recursive
41345+
41346+install-am: all-am
41347+ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
41348+
41349+installcheck: installcheck-recursive
41350+install-strip:
41351+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
41352+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
41353+ `test -z '$(STRIP)' || \
41354+ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
41355+mostlyclean-generic:
41356+
41357+clean-generic:
41358+
41359+distclean-generic:
41360+ -rm -f $(CONFIG_CLEAN_FILES)
41361+
41362+maintainer-clean-generic:
41363+ @echo "This command is intended for maintainers to use"
41364+ @echo "it deletes files that may require special tools to rebuild."
41365+clean: clean-recursive
41366+
41367+clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am
41368+
41369+distclean: distclean-recursive
41370+ -rm -f $(am__CONFIG_DISTCLEAN_FILES)
41371+ -rm -rf ./$(DEPDIR)
41372+ -rm -f Makefile
41373+distclean-am: clean-am distclean-compile distclean-generic distclean-hdr \
41374+ distclean-libtool distclean-tags
41375+
41376+dvi: dvi-recursive
41377+
41378+dvi-am:
41379+
41380+info: info-recursive
41381+
41382+info-am:
41383+
41384+install-data-am:
41385+
41386+install-exec-am: install-binPROGRAMS
41387+
41388+install-info: install-info-recursive
41389+
41390+install-man:
41391+
41392+installcheck-am:
41393+
41394+maintainer-clean: maintainer-clean-recursive
41395+ -rm -f $(am__CONFIG_DISTCLEAN_FILES)
41396+ -rm -rf $(top_srcdir)/autom4te.cache
41397+ -rm -rf ./$(DEPDIR)
41398+ -rm -f Makefile
41399+maintainer-clean-am: distclean-am maintainer-clean-generic
41400+
41401+mostlyclean: mostlyclean-recursive
41402+
41403+mostlyclean-am: mostlyclean-compile mostlyclean-generic \
41404+ mostlyclean-libtool
41405+
41406+pdf: pdf-recursive
41407+
41408+pdf-am:
41409+
41410+ps: ps-recursive
41411+
41412+ps-am:
41413+
41414+uninstall-am: uninstall-binPROGRAMS uninstall-info-am
41415+
41416+uninstall-info: uninstall-info-recursive
41417+
41418+.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am clean \
41419+ clean-binPROGRAMS clean-generic clean-libtool clean-recursive \
41420+ ctags ctags-recursive dist dist-all dist-gzip distcheck \
41421+ distclean distclean-compile distclean-generic distclean-hdr \
41422+ distclean-libtool distclean-recursive distclean-tags \
41423+ distcleancheck distdir distuninstallcheck dvi dvi-am \
41424+ dvi-recursive info info-am info-recursive install install-am \
41425+ install-binPROGRAMS install-data install-data-am \
41426+ install-data-recursive install-exec install-exec-am \
41427+ install-exec-recursive install-info install-info-am \
41428+ install-info-recursive install-man install-recursive \
41429+ install-strip installcheck installcheck-am installdirs \
41430+ installdirs-am installdirs-recursive maintainer-clean \
41431+ maintainer-clean-generic maintainer-clean-recursive mostlyclean \
41432+ mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
41433+ mostlyclean-recursive pdf pdf-am pdf-recursive ps ps-am \
41434+ ps-recursive tags tags-recursive uninstall uninstall-am \
41435+ uninstall-binPROGRAMS uninstall-info-am \
41436+ uninstall-info-recursive uninstall-recursive
41437+
41438+# Tell versions [3.59,3.63) of GNU make to not export all variables.
41439+# Otherwise a system limit (for SysV at least) may be exceeded.
41440+.NOEXPORT:
41441--- agsync-0.2-pre.orig/config.h.in
41442+++ agsync-0.2-pre/config.h.in
41443@@ -0,0 +1,67 @@
41444+/* config.h.in. Generated from configure.in by autoheader. */
41445+
41446+/* Define to 1 if you have the <dlfcn.h> header file. */
41447+#undef HAVE_DLFCN_H
41448+
41449+/* Define to 1 if you have the <inttypes.h> header file. */
41450+#undef HAVE_INTTYPES_H
41451+
41452+/* Define to 1 if you have the `rapi' library (-lrapi). */
41453+#undef HAVE_LIBRAPI
41454+
41455+/* Define to 1 if you have the `synce' library (-lsynce). */
41456+#undef HAVE_LIBSYNCE
41457+
41458+/* Define to 1 if you have the <memory.h> header file. */
41459+#undef HAVE_MEMORY_H
41460+
41461+/* Define to 1 if you have the <rapi.h> header file. */
41462+#undef HAVE_RAPI_H
41463+
41464+/* Define to 1 if you have the <stdint.h> header file. */
41465+#undef HAVE_STDINT_H
41466+
41467+/* Define to 1 if you have the <stdlib.h> header file. */
41468+#undef HAVE_STDLIB_H
41469+
41470+/* Define to 1 if you have the <strings.h> header file. */
41471+#undef HAVE_STRINGS_H
41472+
41473+/* Define to 1 if you have the <string.h> header file. */
41474+#undef HAVE_STRING_H
41475+
41476+/* Define to 1 if you have the <synce.h> header file. */
41477+#undef HAVE_SYNCE_H
41478+
41479+/* Define to 1 if you have the <sys/stat.h> header file. */
41480+#undef HAVE_SYS_STAT_H
41481+
41482+/* Define to 1 if you have the <sys/types.h> header file. */
41483+#undef HAVE_SYS_TYPES_H
41484+
41485+/* Define to 1 if you have the <unistd.h> header file. */
41486+#undef HAVE_UNISTD_H
41487+
41488+/* Name of package */
41489+#undef PACKAGE
41490+
41491+/* Define to the address where bug reports for this package should be sent. */
41492+#undef PACKAGE_BUGREPORT
41493+
41494+/* Define to the full name of this package. */
41495+#undef PACKAGE_NAME
41496+
41497+/* Define to the full name and version of this package. */
41498+#undef PACKAGE_STRING
41499+
41500+/* Define to the one symbol short name of this package. */
41501+#undef PACKAGE_TARNAME
41502+
41503+/* Define to the version of this package. */
41504+#undef PACKAGE_VERSION
41505+
41506+/* Define to 1 if you have the ANSI C header files. */
41507+#undef STDC_HEADERS
41508+
41509+/* Version number of package */
41510+#undef VERSION
41511--- agsync-0.2-pre.orig/Makefile.cvs
41512+++ agsync-0.2-pre/Makefile.cvs
41513@@ -0,0 +1,8 @@
41514+default: all
41515+
41516+all:
41517+ aclocal
41518+ autoheader
41519+ automake -a -c
41520+ autoconf
41521+
41522--- agsync-0.2-pre.orig/INSTALL
41523+++ agsync-0.2-pre/INSTALL
41524@@ -0,0 +1,229 @@
41525+Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002 Free Software
41526+Foundation, Inc.
41527+
41528+ This file is free documentation; the Free Software Foundation gives
41529+unlimited permission to copy, distribute and modify it.
41530+
41531+Basic Installation
41532+==================
41533+
41534+ These are generic installation instructions.
41535+
41536+ The `configure' shell script attempts to guess correct values for
41537+various system-dependent variables used during compilation. It uses
41538+those values to create a `Makefile' in each directory of the package.
41539+It may also create one or more `.h' files containing system-dependent
41540+definitions. Finally, it creates a shell script `config.status' that
41541+you can run in the future to recreate the current configuration, and a
41542+file `config.log' containing compiler output (useful mainly for
41543+debugging `configure').
41544+
41545+ It can also use an optional file (typically called `config.cache'
41546+and enabled with `--cache-file=config.cache' or simply `-C') that saves
41547+the results of its tests to speed up reconfiguring. (Caching is
41548+disabled by default to prevent problems with accidental use of stale
41549+cache files.)
41550+
41551+ If you need to do unusual things to compile the package, please try
41552+to figure out how `configure' could check whether to do them, and mail
41553+diffs or instructions to the address given in the `README' so they can
41554+be considered for the next release. If you are using the cache, and at
41555+some point `config.cache' contains results you don't want to keep, you
41556+may remove or edit it.
41557+
41558+ The file `configure.ac' (or `configure.in') is used to create
41559+`configure' by a program called `autoconf'. You only need
41560+`configure.ac' if you want to change it or regenerate `configure' using
41561+a newer version of `autoconf'.
41562+
41563+The simplest way to compile this package is:
41564+
41565+ 1. `cd' to the directory containing the package's source code and type
41566+ `./configure' to configure the package for your system. If you're
41567+ using `csh' on an old version of System V, you might need to type
41568+ `sh ./configure' instead to prevent `csh' from trying to execute
41569+ `configure' itself.
41570+
41571+ Running `configure' takes awhile. While running, it prints some
41572+ messages telling which features it is checking for.
41573+
41574+ 2. Type `make' to compile the package.
41575+
41576+ 3. Optionally, type `make check' to run any self-tests that come with
41577+ the package.
41578+
41579+ 4. Type `make install' to install the programs and any data files and
41580+ documentation.
41581+
41582+ 5. You can remove the program binaries and object files from the
41583+ source code directory by typing `make clean'. To also remove the
41584+ files that `configure' created (so you can compile the package for
41585+ a different kind of computer), type `make distclean'. There is
41586+ also a `make maintainer-clean' target, but that is intended mainly
41587+ for the package's developers. If you use it, you may have to get
41588+ all sorts of other programs in order to regenerate files that came
41589+ with the distribution.
41590+
41591+Compilers and Options
41592+=====================
41593+
41594+ Some systems require unusual options for compilation or linking that
41595+the `configure' script does not know about. Run `./configure --help'
41596+for details on some of the pertinent environment variables.
41597+
41598+ You can give `configure' initial values for configuration parameters
41599+by setting variables in the command line or in the environment. Here
41600+is an example:
41601+
41602+ ./configure CC=c89 CFLAGS=-O2 LIBS=-lposix
41603+
41604+ *Note Defining Variables::, for more details.
41605+
41606+Compiling For Multiple Architectures
41607+====================================
41608+
41609+ You can compile the package for more than one kind of computer at the
41610+same time, by placing the object files for each architecture in their
41611+own directory. To do this, you must use a version of `make' that
41612+supports the `VPATH' variable, such as GNU `make'. `cd' to the
41613+directory where you want the object files and executables to go and run
41614+the `configure' script. `configure' automatically checks for the
41615+source code in the directory that `configure' is in and in `..'.
41616+
41617+ If you have to use a `make' that does not support the `VPATH'
41618+variable, you have to compile the package for one architecture at a
41619+time in the source code directory. After you have installed the
41620+package for one architecture, use `make distclean' before reconfiguring
41621+for another architecture.
41622+
41623+Installation Names
41624+==================
41625+
41626+ By default, `make install' will install the package's files in
41627+`/usr/local/bin', `/usr/local/man', etc. You can specify an
41628+installation prefix other than `/usr/local' by giving `configure' the
41629+option `--prefix=PATH'.
41630+
41631+ You can specify separate installation prefixes for
41632+architecture-specific files and architecture-independent files. If you
41633+give `configure' the option `--exec-prefix=PATH', the package will use
41634+PATH as the prefix for installing programs and libraries.
41635+Documentation and other data files will still use the regular prefix.
41636+
41637+ In addition, if you use an unusual directory layout you can give
41638+options like `--bindir=PATH' to specify different values for particular
41639+kinds of files. Run `configure --help' for a list of the directories
41640+you can set and what kinds of files go in them.
41641+
41642+ If the package supports it, you can cause programs to be installed
41643+with an extra prefix or suffix on their names by giving `configure' the
41644+option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
41645+
41646+Optional Features
41647+=================
41648+
41649+ Some packages pay attention to `--enable-FEATURE' options to
41650+`configure', where FEATURE indicates an optional part of the package.
41651+They may also pay attention to `--with-PACKAGE' options, where PACKAGE
41652+is something like `gnu-as' or `x' (for the X Window System). The
41653+`README' should mention any `--enable-' and `--with-' options that the
41654+package recognizes.
41655+
41656+ For packages that use the X Window System, `configure' can usually
41657+find the X include and library files automatically, but if it doesn't,
41658+you can use the `configure' options `--x-includes=DIR' and
41659+`--x-libraries=DIR' to specify their locations.
41660+
41661+Specifying the System Type
41662+==========================
41663+
41664+ There may be some features `configure' cannot figure out
41665+automatically, but needs to determine by the type of machine the package
41666+will run on. Usually, assuming the package is built to be run on the
41667+_same_ architectures, `configure' can figure that out, but if it prints
41668+a message saying it cannot guess the machine type, give it the
41669+`--build=TYPE' option. TYPE can either be a short name for the system
41670+type, such as `sun4', or a canonical name which has the form:
41671+
41672+ CPU-COMPANY-SYSTEM
41673+
41674+where SYSTEM can have one of these forms:
41675+
41676+ OS KERNEL-OS
41677+
41678+ See the file `config.sub' for the possible values of each field. If
41679+`config.sub' isn't included in this package, then this package doesn't
41680+need to know the machine type.
41681+
41682+ If you are _building_ compiler tools for cross-compiling, you should
41683+use the `--target=TYPE' option to select the type of system they will
41684+produce code for.
41685+
41686+ If you want to _use_ a cross compiler, that generates code for a
41687+platform different from the build platform, you should specify the
41688+"host" platform (i.e., that on which the generated programs will
41689+eventually be run) with `--host=TYPE'.
41690+
41691+Sharing Defaults
41692+================
41693+
41694+ If you want to set default values for `configure' scripts to share,
41695+you can create a site shell script called `config.site' that gives
41696+default values for variables like `CC', `cache_file', and `prefix'.
41697+`configure' looks for `PREFIX/share/config.site' if it exists, then
41698+`PREFIX/etc/config.site' if it exists. Or, you can set the
41699+`CONFIG_SITE' environment variable to the location of the site script.
41700+A warning: not all `configure' scripts look for a site script.
41701+
41702+Defining Variables
41703+==================
41704+
41705+ Variables not defined in a site shell script can be set in the
41706+environment passed to `configure'. However, some packages may run
41707+configure again during the build, and the customized values of these
41708+variables may be lost. In order to avoid this problem, you should set
41709+them in the `configure' command line, using `VAR=value'. For example:
41710+
41711+ ./configure CC=/usr/local2/bin/gcc
41712+
41713+will cause the specified gcc to be used as the C compiler (unless it is
41714+overridden in the site shell script).
41715+
41716+`configure' Invocation
41717+======================
41718+
41719+ `configure' recognizes the following options to control how it
41720+operates.
41721+
41722+`--help'
41723+`-h'
41724+ Print a summary of the options to `configure', and exit.
41725+
41726+`--version'
41727+`-V'
41728+ Print the version of Autoconf used to generate the `configure'
41729+ script, and exit.
41730+
41731+`--cache-file=FILE'
41732+ Enable the cache: use and save the results of the tests in FILE,
41733+ traditionally `config.cache'. FILE defaults to `/dev/null' to
41734+ disable caching.
41735+
41736+`--config-cache'
41737+`-C'
41738+ Alias for `--cache-file=config.cache'.
41739+
41740+`--quiet'
41741+`--silent'
41742+`-q'
41743+ Do not print messages saying which checks are being made. To
41744+ suppress all normal output, redirect it to `/dev/null' (any error
41745+ messages will still be shown).
41746+
41747+`--srcdir=DIR'
41748+ Look for the package's source code in directory DIR. Usually
41749+ `configure' can determine that directory automatically.
41750+
41751+`configure' also accepts some other, not widely useful, options. Run
41752+`configure --help' for more details.
41753+
41754--- agsync-0.2-pre.orig/COPYING
41755+++ agsync-0.2-pre/COPYING
41756@@ -0,0 +1,340 @@
41757+ GNU GENERAL PUBLIC LICENSE
41758+ Version 2, June 1991
41759+
41760+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.
41761+ 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
41762+ Everyone is permitted to copy and distribute verbatim copies
41763+ of this license document, but changing it is not allowed.
41764+
41765+ Preamble
41766+
41767+ The licenses for most software are designed to take away your
41768+freedom to share and change it. By contrast, the GNU General Public
41769+License is intended to guarantee your freedom to share and change free
41770+software--to make sure the software is free for all its users. This
41771+General Public License applies to most of the Free Software
41772+Foundation's software and to any other program whose authors commit to
41773+using it. (Some other Free Software Foundation software is covered by
41774+the GNU Library General Public License instead.) You can apply it to
41775+your programs, too.
41776+
41777+ When we speak of free software, we are referring to freedom, not
41778+price. Our General Public Licenses are designed to make sure that you
41779+have the freedom to distribute copies of free software (and charge for
41780+this service if you wish), that you receive source code or can get it
41781+if you want it, that you can change the software or use pieces of it
41782+in new free programs; and that you know you can do these things.
41783+
41784+ To protect your rights, we need to make restrictions that forbid
41785+anyone to deny you these rights or to ask you to surrender the rights.
41786+These restrictions translate to certain responsibilities for you if you
41787+distribute copies of the software, or if you modify it.
41788+
41789+ For example, if you distribute copies of such a program, whether
41790+gratis or for a fee, you must give the recipients all the rights that
41791+you have. You must make sure that they, too, receive or can get the
41792+source code. And you must show them these terms so they know their
41793+rights.
41794+
41795+ We protect your rights with two steps: (1) copyright the software, and
41796+(2) offer you this license which gives you legal permission to copy,
41797+distribute and/or modify the software.
41798+
41799+ Also, for each author's protection and ours, we want to make certain
41800+that everyone understands that there is no warranty for this free
41801+software. If the software is modified by someone else and passed on, we
41802+want its recipients to know that what they have is not the original, so
41803+that any problems introduced by others will not reflect on the original
41804+authors' reputations.
41805+
41806+ Finally, any free program is threatened constantly by software
41807+patents. We wish to avoid the danger that redistributors of a free
41808+program will individually obtain patent licenses, in effect making the
41809+program proprietary. To prevent this, we have made it clear that any
41810+patent must be licensed for everyone's free use or not licensed at all.
41811+
41812+ The precise terms and conditions for copying, distribution and
41813+modification follow.
41814+\f
41815+ GNU GENERAL PUBLIC LICENSE
41816+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
41817+
41818+ 0. This License applies to any program or other work which contains
41819+a notice placed by the copyright holder saying it may be distributed
41820+under the terms of this General Public License. The "Program", below,
41821+refers to any such program or work, and a "work based on the Program"
41822+means either the Program or any derivative work under copyright law:
41823+that is to say, a work containing the Program or a portion of it,
41824+either verbatim or with modifications and/or translated into another
41825+language. (Hereinafter, translation is included without limitation in
41826+the term "modification".) Each licensee is addressed as "you".
41827+
41828+Activities other than copying, distribution and modification are not
41829+covered by this License; they are outside its scope. The act of
41830+running the Program is not restricted, and the output from the Program
41831+is covered only if its contents constitute a work based on the
41832+Program (independent of having been made by running the Program).
41833+Whether that is true depends on what the Program does.
41834+
41835+ 1. You may copy and distribute verbatim copies of the Program's
41836+source code as you receive it, in any medium, provided that you
41837+conspicuously and appropriately publish on each copy an appropriate
41838+copyright notice and disclaimer of warranty; keep intact all the
41839+notices that refer to this License and to the absence of any warranty;
41840+and give any other recipients of the Program a copy of this License
41841+along with the Program.
41842+
41843+You may charge a fee for the physical act of transferring a copy, and
41844+you may at your option offer warranty protection in exchange for a fee.
41845+
41846+ 2. You may modify your copy or copies of the Program or any portion
41847+of it, thus forming a work based on the Program, and copy and
41848+distribute such modifications or work under the terms of Section 1
41849+above, provided that you also meet all of these conditions:
41850+
41851+ a) You must cause the modified files to carry prominent notices
41852+ stating that you changed the files and the date of any change.
41853+
41854+ b) You must cause any work that you distribute or publish, that in
41855+ whole or in part contains or is derived from the Program or any
41856+ part thereof, to be licensed as a whole at no charge to all third
41857+ parties under the terms of this License.
41858+
41859+ c) If the modified program normally reads commands interactively
41860+ when run, you must cause it, when started running for such
41861+ interactive use in the most ordinary way, to print or display an
41862+ announcement including an appropriate copyright notice and a
41863+ notice that there is no warranty (or else, saying that you provide
41864+ a warranty) and that users may redistribute the program under
41865+ these conditions, and telling the user how to view a copy of this
41866+ License. (Exception: if the Program itself is interactive but
41867+ does not normally print such an announcement, your work based on
41868+ the Program is not required to print an announcement.)
41869+\f
41870+These requirements apply to the modified work as a whole. If
41871+identifiable sections of that work are not derived from the Program,
41872+and can be reasonably considered independent and separate works in
41873+themselves, then this License, and its terms, do not apply to those
41874+sections when you distribute them as separate works. But when you
41875+distribute the same sections as part of a whole which is a work based
41876+on the Program, the distribution of the whole must be on the terms of
41877+this License, whose permissions for other licensees extend to the
41878+entire whole, and thus to each and every part regardless of who wrote it.
41879+
41880+Thus, it is not the intent of this section to claim rights or contest
41881+your rights to work written entirely by you; rather, the intent is to
41882+exercise the right to control the distribution of derivative or
41883+collective works based on the Program.
41884+
41885+In addition, mere aggregation of another work not based on the Program
41886+with the Program (or with a work based on the Program) on a volume of
41887+a storage or distribution medium does not bring the other work under
41888+the scope of this License.
41889+
41890+ 3. You may copy and distribute the Program (or a work based on it,
41891+under Section 2) in object code or executable form under the terms of
41892+Sections 1 and 2 above provided that you also do one of the following:
41893+
41894+ a) Accompany it with the complete corresponding machine-readable
41895+ source code, which must be distributed under the terms of Sections
41896+ 1 and 2 above on a medium customarily used for software interchange; or,
41897+
41898+ b) Accompany it with a written offer, valid for at least three
41899+ years, to give any third party, for a charge no more than your
41900+ cost of physically performing source distribution, a complete
41901+ machine-readable copy of the corresponding source code, to be
41902+ distributed under the terms of Sections 1 and 2 above on a medium
41903+ customarily used for software interchange; or,
41904+
41905+ c) Accompany it with the information you received as to the offer
41906+ to distribute corresponding source code. (This alternative is
41907+ allowed only for noncommercial distribution and only if you
41908+ received the program in object code or executable form with such
41909+ an offer, in accord with Subsection b above.)
41910+
41911+The source code for a work means the preferred form of the work for
41912+making modifications to it. For an executable work, complete source
41913+code means all the source code for all modules it contains, plus any
41914+associated interface definition files, plus the scripts used to
41915+control compilation and installation of the executable. However, as a
41916+special exception, the source code distributed need not include
41917+anything that is normally distributed (in either source or binary
41918+form) with the major components (compiler, kernel, and so on) of the
41919+operating system on which the executable runs, unless that component
41920+itself accompanies the executable.
41921+
41922+If distribution of executable or object code is made by offering
41923+access to copy from a designated place, then offering equivalent
41924+access to copy the source code from the same place counts as
41925+distribution of the source code, even though third parties are not
41926+compelled to copy the source along with the object code.
41927+\f
41928+ 4. You may not copy, modify, sublicense, or distribute the Program
41929+except as expressly provided under this License. Any attempt
41930+otherwise to copy, modify, sublicense or distribute the Program is
41931+void, and will automatically terminate your rights under this License.
41932+However, parties who have received copies, or rights, from you under
41933+this License will not have their licenses terminated so long as such
41934+parties remain in full compliance.
41935+
41936+ 5. You are not required to accept this License, since you have not
41937+signed it. However, nothing else grants you permission to modify or
41938+distribute the Program or its derivative works. These actions are
41939+prohibited by law if you do not accept this License. Therefore, by
41940+modifying or distributing the Program (or any work based on the
41941+Program), you indicate your acceptance of this License to do so, and
41942+all its terms and conditions for copying, distributing or modifying
41943+the Program or works based on it.
41944+
41945+ 6. Each time you redistribute the Program (or any work based on the
41946+Program), the recipient automatically receives a license from the
41947+original licensor to copy, distribute or modify the Program subject to
41948+these terms and conditions. You may not impose any further
41949+restrictions on the recipients' exercise of the rights granted herein.
41950+You are not responsible for enforcing compliance by third parties to
41951+this License.
41952+
41953+ 7. If, as a consequence of a court judgment or allegation of patent
41954+infringement or for any other reason (not limited to patent issues),
41955+conditions are imposed on you (whether by court order, agreement or
41956+otherwise) that contradict the conditions of this License, they do not
41957+excuse you from the conditions of this License. If you cannot
41958+distribute so as to satisfy simultaneously your obligations under this
41959+License and any other pertinent obligations, then as a consequence you
41960+may not distribute the Program at all. For example, if a patent
41961+license would not permit royalty-free redistribution of the Program by
41962+all those who receive copies directly or indirectly through you, then
41963+the only way you could satisfy both it and this License would be to
41964+refrain entirely from distribution of the Program.
41965+
41966+If any portion of this section is held invalid or unenforceable under
41967+any particular circumstance, the balance of the section is intended to
41968+apply and the section as a whole is intended to apply in other
41969+circumstances.
41970+
41971+It is not the purpose of this section to induce you to infringe any
41972+patents or other property right claims or to contest validity of any
41973+such claims; this section has the sole purpose of protecting the
41974+integrity of the free software distribution system, which is
41975+implemented by public license practices. Many people have made
41976+generous contributions to the wide range of software distributed
41977+through that system in reliance on consistent application of that
41978+system; it is up to the author/donor to decide if he or she is willing
41979+to distribute software through any other system and a licensee cannot
41980+impose that choice.
41981+
41982+This section is intended to make thoroughly clear what is believed to
41983+be a consequence of the rest of this License.
41984+\f
41985+ 8. If the distribution and/or use of the Program is restricted in
41986+certain countries either by patents or by copyrighted interfaces, the
41987+original copyright holder who places the Program under this License
41988+may add an explicit geographical distribution limitation excluding
41989+those countries, so that distribution is permitted only in or among
41990+countries not thus excluded. In such case, this License incorporates
41991+the limitation as if written in the body of this License.
41992+
41993+ 9. The Free Software Foundation may publish revised and/or new versions
41994+of the General Public License from time to time. Such new versions will
41995+be similar in spirit to the present version, but may differ in detail to
41996+address new problems or concerns.
41997+
41998+Each version is given a distinguishing version number. If the Program
41999+specifies a version number of this License which applies to it and "any
42000+later version", you have the option of following the terms and conditions
42001+either of that version or of any later version published by the Free
42002+Software Foundation. If the Program does not specify a version number of
42003+this License, you may choose any version ever published by the Free Software
42004+Foundation.
42005+
42006+ 10. If you wish to incorporate parts of the Program into other free
42007+programs whose distribution conditions are different, write to the author
42008+to ask for permission. For software which is copyrighted by the Free
42009+Software Foundation, write to the Free Software Foundation; we sometimes
42010+make exceptions for this. Our decision will be guided by the two goals
42011+of preserving the free status of all derivatives of our free software and
42012+of promoting the sharing and reuse of software generally.
42013+
42014+ NO WARRANTY
42015+
42016+ 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
42017+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
42018+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
42019+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
42020+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
42021+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
42022+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
42023+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
42024+REPAIR OR CORRECTION.
42025+
42026+ 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
42027+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
42028+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
42029+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
42030+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
42031+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
42032+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
42033+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
42034+POSSIBILITY OF SUCH DAMAGES.
42035+
42036+ END OF TERMS AND CONDITIONS
42037+\f
42038+ How to Apply These Terms to Your New Programs
42039+
42040+ If you develop a new program, and you want it to be of the greatest
42041+possible use to the public, the best way to achieve this is to make it
42042+free software which everyone can redistribute and change under these terms.
42043+
42044+ To do so, attach the following notices to the program. It is safest
42045+to attach them to the start of each source file to most effectively
42046+convey the exclusion of warranty; and each file should have at least
42047+the "copyright" line and a pointer to where the full notice is found.
42048+
42049+ <one line to give the program's name and a brief idea of what it does.>
42050+ Copyright (C) <year> <name of author>
42051+
42052+ This program is free software; you can redistribute it and/or modify
42053+ it under the terms of the GNU General Public License as published by
42054+ the Free Software Foundation; either version 2 of the License, or
42055+ (at your option) any later version.
42056+
42057+ This program is distributed in the hope that it will be useful,
42058+ but WITHOUT ANY WARRANTY; without even the implied warranty of
42059+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
42060+ GNU General Public License for more details.
42061+
42062+ You should have received a copy of the GNU General Public License
42063+ along with this program; if not, write to the Free Software
42064+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
42065+
42066+
42067+Also add information on how to contact you by electronic and paper mail.
42068+
42069+If the program is interactive, make it output a short notice like this
42070+when it starts in an interactive mode:
42071+
42072+ Gnomovision version 69, Copyright (C) year name of author
42073+ Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
42074+ This is free software, and you are welcome to redistribute it
42075+ under certain conditions; type `show c' for details.
42076+
42077+The hypothetical commands `show w' and `show c' should show the appropriate
42078+parts of the General Public License. Of course, the commands you use may
42079+be called something other than `show w' and `show c'; they could even be
42080+mouse-clicks or menu items--whatever suits your program.
42081+
42082+You should also get your employer (if you work as a programmer) or your
42083+school, if any, to sign a "copyright disclaimer" for the program, if
42084+necessary. Here is a sample; alter the names:
42085+
42086+ Yoyodyne, Inc., hereby disclaims all copyright interest in the program
42087+ `Gnomovision' (which makes passes at compilers) written by James Hacker.
42088+
42089+ <signature of Ty Coon>, 1 April 1989
42090+ Ty Coon, President of Vice
42091+
42092+This General Public License does not permit incorporating your program into
42093+proprietary programs. If your program is a subroutine library, you may
42094+consider it more useful to permit linking proprietary applications with the
42095+library. If this is what you want to do, use the GNU Library General
42096+Public License instead of this License.
This page took 5.015443 seconds and 4 git commands to generate.