Codebase list virt-viewer / dbff602
Imported Upstream version 0.0.3 Guido Guenther 15 years ago
31 changed file(s) with 39056 addition(s) and 2332 deletion(s). Raw diff Collapse all Expand all
22
33 The Virt Viewer application is written by
44
5 Daniel P. Berrange <berrange@redhat.com>
5 Daniel P. Berrange <berrange-at-redhat-dot-com>
66
77 With additional patches from:
8
9 Chris Lalancette <clalance-at-redhat-dot-com>
10 Atsushi SAKAI <sakaia-at-jp-dot-fujitsu-dot-com>
11 Richard W.M. Jones <rjones-at-redhat-dot-com>
812
913 ...send patches to get your name here...
1014
0 2008-03-09 "Daniel P. Berrange <berrange@redhat.com>
1
2 * autobuild.sh, configure.ac, virt-viewer.spec.in:
3 Added -plugin sub RPM, disabled by default, except for autobuild
4 [efcac0fc56b5] [tip]
5
6 2008-03-08 "Daniel P. Berrange <berrange@redhat.com>
7
8 * configure.ac:
9 Relax firefox plugin version to 1.5.0
10 [0252cf01fe3c]
11
12 2008-03-07 "Daniel P. Berrange <berrange@redhat.com>
13
14 * src/main.c:
15 Disable scaling by default if running on composited window
16 [aadb3fb8316e]
17
18 * src/main.c:
19 Block view menu accelerator & remove debug
20 [01e11e3566ff]
21
22 * src/main.c, virt-viewer.spec.in:
23 Added support for desktop scaling with OpenGL
24 [23cd61984e4c]
25
26 2008-03-05 "Daniel P. Berrange <berrange@redhat.com>
27
28 * .hgignore, acinclude.m4, autobuild.sh, autogen.sh, configure.ac,
29 plugin/Makefile.am, plugin/npshell.c, plugin/npunix.c, plugin/virt-
30 viewer-plugin.c, src/main.c:
31 Kill automake portability warnings. Use a config.h Cleanup misc
32 build issues. Build with fatal compile warnings
33 [7254e127a017]
34
35 * src/main.c:
36 Disable menu accelerators when keyboard is grabbed (Chris Lalancett)
37 [50ed4d0b0632]
38
39 * autogen.sh:
40 Fix type in autogen.sh output (Chris Lalancett)
41 [25932c2b565a]
42
43 2008-01-25 "Daniel P. Berrange <berrange@redhat.com>
44
45 * .hgignore, Makefile.am, autogen.sh, configure.ac,
46 plugin/Makefile.am, plugin/npshell.c, plugin/npunix.c,
47 plugin/test.html, plugin/virt-viewer-plugin.c, plugin/virt-viewer-
48 plugin.h:
49 Added browser plugin (Richard Jones)
50 [09761c04bdcd]
51
52 * AUTHORS, src/Makefile.am, src/main.c, src/viewer.h:
53 Refactor main method for viewer to prepare for plugin (Richard Jones
54 [270fbc7d4192]
55
56 2008-01-11 "Daniel P. Berrange <berrange@redhat.com>
57
58 * src/main.c:
59 Whitespace fix
60 [fe1efb558b4b]
61
62 * src/main.c:
63 Hide chars in passwd field
64 [69daa8257222]
65
66 2008-01-10 "Daniel P. Berrange <berrange@redhat.com>
67
68 * AUTHORS, NEWS, README, man/virt-viewer.pod, src/main.c:
69 Fix a few typos (Atsushi SAKAI)
70 [a0d79af724b0]
71
72 2007-11-29 "Daniel P. Berrange <berrange@redhat.com>
73
74 * AUTHORS, src/main.c:
75 Use proper domain name in title bar, rather than VNC server title
76 [59fccec87973]
77
078 2007-08-28 "Daniel P. Berrange <berrange@redhat.com>
79
80 * .hgtags:
81 Added tag release-0.0.2 for changeset f3accb51c6f5
82 [97f00b8df38a]
83
84 * src/main.c:
85 Fix crash with no transport
86 [f3accb51c6f5] [release-0.0.2]
87
88 * ChangeLog, NEWS, configure.ac, virt-viewer.spec.in:
89 New release 0.0.2
90 [3d88506cc468]
191
292 * man/virt-viewer.pod:
393 Document the '--direct' option
4 [0d9a8fd612d9] [tip]
94 [0d9a8fd612d9]
595
696 * src/main.c:
797 Support TLS credentials & improved SSH tunnelling
16106 * Merge
17107 [c40130b3a7ec]
18108
19 2007-08-15 "Daniel P. Berrange <berrange@redhat.com>
20
21 * COPYING, INSTALL:
22 Added COPYING/INSTALL files
23 [1f83ef35bb59]
24
25 2007-08-27 "Daniel P. Berrange <berrange@redhat.com>
26
27109 * src/main.c:
28110 Added initial ability to connect remote hosts
29111 [ac9cae161efb]
37119 [21f7b4c5c93c]
38120
39121 2007-08-15 "Daniel P. Berrange <berrange@redhat.com>
122
123 * COPYING, INSTALL:
124 Added COPYING/INSTALL files
125 [1f83ef35bb59]
40126
41127 * .hgtags:
42128 Added tag release-0.0.1 for changeset 2b78ab2d18ce
00
1 SUBDIRS = src man
1 SUBDIRS = src man plugin
22
33 EXTRA_DIST = @PACKAGE@.spec
44
0 # Makefile.in generated by automake 1.9.6 from Makefile.am.
0 # Makefile.in generated by automake 1.10 from Makefile.am.
11 # @configure_input@
22
33 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005 Free Software Foundation, Inc.
4 # 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
77 # with or without modifications, as long as this notice is preserved.
1212 # PARTICULAR PURPOSE.
1313
1414 @SET_MAKE@
15 srcdir = @srcdir@
16 top_srcdir = @top_srcdir@
1715 VPATH = @srcdir@
1816 pkgdatadir = $(datadir)/@PACKAGE@
1917 pkglibdir = $(libdir)/@PACKAGE@
2018 pkgincludedir = $(includedir)/@PACKAGE@
21 top_builddir = .
2219 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
23 INSTALL = @INSTALL@
2420 install_sh_DATA = $(install_sh) -c -m 644
2521 install_sh_PROGRAM = $(install_sh) -c
2622 install_sh_SCRIPT = $(install_sh) -c
3228 NORMAL_UNINSTALL = :
3329 PRE_UNINSTALL = :
3430 POST_UNINSTALL = :
31 build_triplet = @build@
32 host_triplet = @host@
3533 subdir = .
3634 DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
37 $(srcdir)/Makefile.in $(srcdir)/virt-viewer.spec.in \
38 $(top_srcdir)/configure AUTHORS COPYING ChangeLog INSTALL NEWS \
39 compile depcomp install-sh missing
35 $(srcdir)/Makefile.in $(srcdir)/config.h.in \
36 $(srcdir)/virt-viewer.spec.in $(top_srcdir)/configure AUTHORS \
37 COPYING ChangeLog INSTALL NEWS compile config.guess config.sub \
38 depcomp install-sh ltmain.sh missing
4039 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
4140 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
4241 $(top_srcdir)/configure.ac
4342 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
4443 $(ACLOCAL_M4)
4544 am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
46 configure.lineno configure.status.lineno
45 configure.lineno config.status.lineno
4746 mkinstalldirs = $(install_sh) -d
47 CONFIG_HEADER = config.h
4848 CONFIG_CLEAN_FILES = virt-viewer.spec
4949 SOURCES =
5050 DIST_SOURCES =
5151 RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
5252 html-recursive info-recursive install-data-recursive \
53 install-exec-recursive install-info-recursive \
54 install-recursive installcheck-recursive installdirs-recursive \
55 pdf-recursive ps-recursive uninstall-info-recursive \
56 uninstall-recursive
53 install-dvi-recursive install-exec-recursive \
54 install-html-recursive install-info-recursive \
55 install-pdf-recursive install-ps-recursive install-recursive \
56 installcheck-recursive installdirs-recursive pdf-recursive \
57 ps-recursive uninstall-recursive
58 RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
59 distclean-recursive maintainer-clean-recursive
5760 ETAGS = etags
5861 CTAGS = ctags
5962 DIST_SUBDIRS = $(SUBDIRS)
6972 distuninstallcheck_listfiles = find . -type f -print
7073 distcleancheck_listfiles = find . -type f -print
7174 ACLOCAL = @ACLOCAL@
72 AMDEP_FALSE = @AMDEP_FALSE@
73 AMDEP_TRUE = @AMDEP_TRUE@
7475 AMTAR = @AMTAR@
76 AR = @AR@
7577 AUTOCONF = @AUTOCONF@
7678 AUTOHEADER = @AUTOHEADER@
7779 AUTOMAKE = @AUTOMAKE@
7981 CC = @CC@
8082 CCDEPMODE = @CCDEPMODE@
8183 CFLAGS = @CFLAGS@
84 CPP = @CPP@
8285 CPPFLAGS = @CPPFLAGS@
86 CXX = @CXX@
87 CXXCPP = @CXXCPP@
88 CXXDEPMODE = @CXXDEPMODE@
89 CXXFLAGS = @CXXFLAGS@
8390 CYGPATH_W = @CYGPATH_W@
8491 DEFS = @DEFS@
8592 DEPDIR = @DEPDIR@
93 ECHO = @ECHO@
8694 ECHO_C = @ECHO_C@
8795 ECHO_N = @ECHO_N@
8896 ECHO_T = @ECHO_T@
97 EGREP = @EGREP@
8998 EXEEXT = @EXEEXT@
99 F77 = @F77@
100 FFLAGS = @FFLAGS@
101 FIREFOX_PLUGIN_CFLAGS = @FIREFOX_PLUGIN_CFLAGS@
102 FIREFOX_PLUGIN_LIBS = @FIREFOX_PLUGIN_LIBS@
103 GREP = @GREP@
90104 GTK2_CFLAGS = @GTK2_CFLAGS@
91105 GTK2_LIBS = @GTK2_LIBS@
92106 GTKVNC_CFLAGS = @GTKVNC_CFLAGS@
93107 GTKVNC_LIBS = @GTKVNC_LIBS@
108 INSTALL = @INSTALL@
94109 INSTALL_DATA = @INSTALL_DATA@
95110 INSTALL_PROGRAM = @INSTALL_PROGRAM@
96111 INSTALL_SCRIPT = @INSTALL_SCRIPT@
98113 LDFLAGS = @LDFLAGS@
99114 LIBOBJS = @LIBOBJS@
100115 LIBS = @LIBS@
116 LIBTOOL = @LIBTOOL@
101117 LIBVIRT_CFLAGS = @LIBVIRT_CFLAGS@
102118 LIBVIRT_LIBS = @LIBVIRT_LIBS@
103119 LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
104120 LIBXML2_LIBS = @LIBXML2_LIBS@
121 LN_S = @LN_S@
105122 LTLIBOBJS = @LTLIBOBJS@
106123 MAKEINFO = @MAKEINFO@
124 MKDIR_P = @MKDIR_P@
125 MOZILLA_PLUGIN_CFLAGS = @MOZILLA_PLUGIN_CFLAGS@
126 MOZILLA_PLUGIN_LIBS = @MOZILLA_PLUGIN_LIBS@
127 NSPR_CFLAGS = @NSPR_CFLAGS@
128 NSPR_LIBS = @NSPR_LIBS@
107129 OBJEXT = @OBJEXT@
108130 PACKAGE = @PACKAGE@
109131 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
113135 PACKAGE_VERSION = @PACKAGE_VERSION@
114136 PATH_SEPARATOR = @PATH_SEPARATOR@
115137 PKG_CONFIG = @PKG_CONFIG@
138 RANLIB = @RANLIB@
139 SED = @SED@
116140 SET_MAKE = @SET_MAKE@
117141 SHELL = @SHELL@
118142 STRIP = @STRIP@
119143 VERSION = @VERSION@
120144 WARN_CFLAGS = @WARN_CFLAGS@
145 abs_builddir = @abs_builddir@
146 abs_srcdir = @abs_srcdir@
147 abs_top_builddir = @abs_top_builddir@
148 abs_top_srcdir = @abs_top_srcdir@
121149 ac_ct_CC = @ac_ct_CC@
122 ac_ct_STRIP = @ac_ct_STRIP@
123 ac_pt_PKG_CONFIG = @ac_pt_PKG_CONFIG@
124 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
125 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
150 ac_ct_CXX = @ac_ct_CXX@
151 ac_ct_F77 = @ac_ct_F77@
126152 am__include = @am__include@
127153 am__leading_dot = @am__leading_dot@
128154 am__quote = @am__quote@
129155 am__tar = @am__tar@
130156 am__untar = @am__untar@
131157 bindir = @bindir@
158 build = @build@
132159 build_alias = @build_alias@
160 build_cpu = @build_cpu@
161 build_os = @build_os@
162 build_vendor = @build_vendor@
163 builddir = @builddir@
133164 datadir = @datadir@
165 datarootdir = @datarootdir@
166 docdir = @docdir@
167 dvidir = @dvidir@
134168 exec_prefix = @exec_prefix@
169 host = @host@
135170 host_alias = @host_alias@
171 host_cpu = @host_cpu@
172 host_os = @host_os@
173 host_vendor = @host_vendor@
174 htmldir = @htmldir@
136175 includedir = @includedir@
137176 infodir = @infodir@
138177 install_sh = @install_sh@
139178 libdir = @libdir@
140179 libexecdir = @libexecdir@
180 localedir = @localedir@
141181 localstatedir = @localstatedir@
142182 mandir = @mandir@
143183 mkdir_p = @mkdir_p@
144184 oldincludedir = @oldincludedir@
185 pdfdir = @pdfdir@
145186 prefix = @prefix@
146187 program_transform_name = @program_transform_name@
188 psdir = @psdir@
147189 sbindir = @sbindir@
148190 sharedstatedir = @sharedstatedir@
191 srcdir = @srcdir@
149192 sysconfdir = @sysconfdir@
150193 target_alias = @target_alias@
151 SUBDIRS = src man
194 top_builddir = @top_builddir@
195 top_srcdir = @top_srcdir@
196 SUBDIRS = src man plugin
152197 EXTRA_DIST = @PACKAGE@.spec
153198 DISTCLEAN_FILES = @PACKAGE@.spec
154 all: all-recursive
199 all: config.h
200 $(MAKE) $(AM_MAKEFLAGS) all-recursive
155201
156202 .SUFFIXES:
157203 am--refresh:
187233 cd $(srcdir) && $(AUTOCONF)
188234 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
189235 cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
236
237 config.h: stamp-h1
238 @if test ! -f $@; then \
239 rm -f stamp-h1; \
240 $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \
241 else :; fi
242
243 stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
244 @rm -f stamp-h1
245 cd $(top_builddir) && $(SHELL) ./config.status config.h
246 $(srcdir)/config.h.in: $(am__configure_deps)
247 cd $(top_srcdir) && $(AUTOHEADER)
248 rm -f stamp-h1
249 touch $@
250
251 distclean-hdr:
252 -rm -f config.h stamp-h1
190253 virt-viewer.spec: $(top_builddir)/config.status $(srcdir)/virt-viewer.spec.in
191254 cd $(top_builddir) && $(SHELL) ./config.status $@
192 uninstall-info-am:
255
256 mostlyclean-libtool:
257 -rm -f *.lo
258
259 clean-libtool:
260 -rm -rf .libs _libs
261
262 distclean-libtool:
263 -rm -f libtool
193264
194265 # This directory's subdirectories are mostly independent; you can cd
195266 # into them and run `make' without going through this Makefile.
222293 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
223294 fi; test -z "$$fail"
224295
225 mostlyclean-recursive clean-recursive distclean-recursive \
226 maintainer-clean-recursive:
296 $(RECURSIVE_CLEAN_TARGETS):
227297 @failcom='exit 1'; \
228298 for f in x $$MAKEFLAGS; do \
229299 case $$f in \
272342 mkid -fID $$unique
273343 tags: TAGS
274344
275 TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
345 TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
276346 $(TAGS_FILES) $(LISP)
277347 tags=; \
278348 here=`pwd`; \
289359 tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
290360 fi; \
291361 done; \
292 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
362 list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
293363 unique=`for i in $$list; do \
294364 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
295365 done | \
301371 $$tags $$unique; \
302372 fi
303373 ctags: CTAGS
304 CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
374 CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
305375 $(TAGS_FILES) $(LISP)
306376 tags=; \
307377 here=`pwd`; \
308 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
378 list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
309379 unique=`for i in $$list; do \
310380 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
311381 done | \
325395
326396 distdir: $(DISTFILES)
327397 $(am__remove_distdir)
328 mkdir $(distdir)
329 $(mkdir_p) $(distdir)/.
330 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
331 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
332 list='$(DISTFILES)'; for file in $$list; do \
333 case $$file in \
334 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
335 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
336 esac; \
398 test -d $(distdir) || mkdir $(distdir)
399 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
400 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
401 list='$(DISTFILES)'; \
402 dist_files=`for file in $$list; do echo $$file; done | \
403 sed -e "s|^$$srcdirstrip/||;t" \
404 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
405 case $$dist_files in \
406 */*) $(MKDIR_P) `echo "$$dist_files" | \
407 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
408 sort -u` ;; \
409 esac; \
410 for file in $$dist_files; do \
337411 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
338 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
339 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
340 dir="/$$dir"; \
341 $(mkdir_p) "$(distdir)$$dir"; \
342 else \
343 dir=''; \
344 fi; \
345412 if test -d $$d/$$file; then \
413 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
346414 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
347415 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
348416 fi; \
356424 list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
357425 if test "$$subdir" = .; then :; else \
358426 test -d "$(distdir)/$$subdir" \
359 || $(mkdir_p) "$(distdir)/$$subdir" \
427 || $(MKDIR_P) "$(distdir)/$$subdir" \
360428 || exit 1; \
361429 distdir=`$(am__cd) $(distdir) && pwd`; \
362430 top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
364432 $(MAKE) $(AM_MAKEFLAGS) \
365433 top_distdir="$$top_distdir" \
366434 distdir="$$distdir/$$subdir" \
435 am__remove_distdir=: \
436 am__skip_length_check=: \
367437 distdir) \
368438 || exit 1; \
369439 fi; \
371441 -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
372442 ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
373443 ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
374 ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
444 ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
375445 || chmod -R a+r $(distdir)
376446 dist-gzip: distdir
377447 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
446516 $(am__remove_distdir)
447517 @(echo "$(distdir) archives ready for distribution: "; \
448518 list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
449 sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}'
519 sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
450520 distuninstallcheck:
451521 @cd $(distuninstallcheck_dir) \
452522 && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
467537 exit 1; } >&2
468538 check-am: all-am
469539 check: check-recursive
470 all-am: Makefile
540 all-am: Makefile config.h
471541 installdirs: installdirs-recursive
472542 installdirs-am:
473543 install: install-recursive
496566 @echo "it deletes files that may require special tools to rebuild."
497567 clean: clean-recursive
498568
499 clean-am: clean-generic mostlyclean-am
569 clean-am: clean-generic clean-libtool mostlyclean-am
500570
501571 distclean: distclean-recursive
502572 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
503573 -rm -f Makefile
504 distclean-am: clean-am distclean-generic distclean-tags
574 distclean-am: clean-am distclean-generic distclean-hdr \
575 distclean-libtool distclean-tags
505576
506577 dvi: dvi-recursive
507578
515586
516587 install-data-am:
517588
589 install-dvi: install-dvi-recursive
590
518591 install-exec-am:
519592
593 install-html: install-html-recursive
594
520595 install-info: install-info-recursive
521596
522597 install-man:
598
599 install-pdf: install-pdf-recursive
600
601 install-ps: install-ps-recursive
523602
524603 installcheck-am:
525604
531610
532611 mostlyclean: mostlyclean-recursive
533612
534 mostlyclean-am: mostlyclean-generic
613 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
535614
536615 pdf: pdf-recursive
537616
541620
542621 ps-am:
543622
544 uninstall-am: uninstall-info-am
545
546 uninstall-info: uninstall-info-recursive
547
548 .PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am am--refresh check \
549 check-am clean clean-generic clean-recursive ctags \
550 ctags-recursive dist dist-all dist-bzip2 dist-gzip dist-shar \
551 dist-tarZ dist-zip distcheck distclean distclean-generic \
552 distclean-recursive distclean-tags distcleancheck distdir \
553 distuninstallcheck dvi dvi-am html html-am info info-am \
554 install install-am install-data install-data-am install-exec \
555 install-exec-am install-info install-info-am install-man \
556 install-strip installcheck installcheck-am installdirs \
557 installdirs-am maintainer-clean maintainer-clean-generic \
558 maintainer-clean-recursive mostlyclean mostlyclean-generic \
559 mostlyclean-recursive pdf pdf-am ps ps-am tags tags-recursive \
560 uninstall uninstall-am uninstall-info-am
623 uninstall-am:
624
625 .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \
626 install-strip
627
628 .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
629 all all-am am--refresh check check-am clean clean-generic \
630 clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \
631 dist-gzip dist-shar dist-tarZ dist-zip distcheck distclean \
632 distclean-generic distclean-hdr distclean-libtool \
633 distclean-tags distcleancheck distdir distuninstallcheck dvi \
634 dvi-am html html-am info info-am install install-am \
635 install-data install-data-am install-dvi install-dvi-am \
636 install-exec install-exec-am install-html install-html-am \
637 install-info install-info-am install-man install-pdf \
638 install-pdf-am install-ps install-ps-am install-strip \
639 installcheck installcheck-am installdirs installdirs-am \
640 maintainer-clean maintainer-clean-generic mostlyclean \
641 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
642 tags tags-recursive uninstall uninstall-am
561643
562644 # Tell versions [3.59,3.63) of GNU make to not export all variables.
563645 # Otherwise a system limit (for SysV at least) may be exceeded.
00 Virt Viewer News
11 ================
22
3 August 28, 2008
3 March 10, 2008
4 --------------
5
6 - Block accelerators when grab is active
7 - Enable smooth scaling of desktop to fill screen
8 - Added an experimental firefox plugin (disabled by default)
9 - Hide characters in password entry field
10 - Use domain name in title bar instead of VNC desktop name
11
12 August 28, 2007
413 ---------------
514
615 - Support connecting to remote libvirt servers
716 - Support connecting to remote VNC consoles
8 - Support tunnelling VNC over SSH
17 - Support tunneling VNC over SSH
918 - Support TLS x509 certificate credentials
1019
1120 August 15, 2007
77 to both local and remotely hosted guest OS, optionally
88 using SSL/TLS encryption.
99
10 Viewer Viewer uses the GTK-VNC widget to provide a display
10 Virt Viewer uses the GTK-VNC widget to provide a display
1111 of the VNC protocol. This is available from
1212
1313 http://gtk-vnc.sourceforge.net/
1414
15 Viewer Viewer uses libvirt to lookup information about the
15 Virt Viewer uses libvirt to lookup information about the
1616 guest OS display. This is available from
1717
1818 http://libvirt.org/
3232 maximum|error)
3333 try_compiler_flags="$try_compiler_flags -Wall -Wmissing-prototypes -std=c99 -Wnested-externs -Wpointer-arith"
3434 try_compiler_flags="$try_compiler_flags -Wextra -Wshadow -Wcast-align -Wwrite-strings -Waggregate-return"
35 try_compiler_flags="$try_compiler_flags -Wstrict-prototypes -Winline -Wredundant-decls -Wno-sign-compare"
35 # Removed -Wstrict-prototypes to avoid GTK bug
36 try_compiler_flags="$try_compiler_flags -Winline -Wredundant-decls -Wno-sign-compare"
3637 if test "$enable_compile_warnings" = "error" ; then
3738 try_compiler_flags="$try_compiler_flags -Werror"
3839 fi
0 # generated automatically by aclocal 1.9.6 -*- Autoconf -*-
0 # generated automatically by aclocal 1.10 -*- Autoconf -*-
11
22 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
3 # 2005 Free Software Foundation, Inc.
3 # 2005, 2006 Free Software Foundation, Inc.
44 # This file is free software; the Free Software Foundation
55 # gives unlimited permission to copy and/or distribute it,
66 # with or without modifications, as long as this notice is preserved.
99 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
1010 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
1111 # PARTICULAR PURPOSE.
12
13 m4_if(m4_PACKAGE_VERSION, [2.61],,
14 [m4_fatal([this file was generated for autoconf 2.61.
15 You have another version of autoconf. If you want to use that,
16 you should regenerate the build system entirely.], [63])])
17
18 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
19
20 # serial 51 AC_PROG_LIBTOOL
21
22
23 # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
24 # -----------------------------------------------------------
25 # If this macro is not defined by Autoconf, define it here.
26 m4_ifdef([AC_PROVIDE_IFELSE],
27 [],
28 [m4_define([AC_PROVIDE_IFELSE],
29 [m4_ifdef([AC_PROVIDE_$1],
30 [$2], [$3])])])
31
32
33 # AC_PROG_LIBTOOL
34 # ---------------
35 AC_DEFUN([AC_PROG_LIBTOOL],
36 [AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
37 dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
38 dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
39 AC_PROVIDE_IFELSE([AC_PROG_CXX],
40 [AC_LIBTOOL_CXX],
41 [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
42 ])])
43 dnl And a similar setup for Fortran 77 support
44 AC_PROVIDE_IFELSE([AC_PROG_F77],
45 [AC_LIBTOOL_F77],
46 [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
47 ])])
48
49 dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
50 dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
51 dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
52 AC_PROVIDE_IFELSE([AC_PROG_GCJ],
53 [AC_LIBTOOL_GCJ],
54 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
55 [AC_LIBTOOL_GCJ],
56 [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
57 [AC_LIBTOOL_GCJ],
58 [ifdef([AC_PROG_GCJ],
59 [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
60 ifdef([A][M_PROG_GCJ],
61 [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
62 ifdef([LT_AC_PROG_GCJ],
63 [define([LT_AC_PROG_GCJ],
64 defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
65 ])])# AC_PROG_LIBTOOL
66
67
68 # _AC_PROG_LIBTOOL
69 # ----------------
70 AC_DEFUN([_AC_PROG_LIBTOOL],
71 [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
72 AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
73 AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
74 AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
75
76 # This can be used to rebuild libtool when needed
77 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
78
79 # Always use our own libtool.
80 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
81 AC_SUBST(LIBTOOL)dnl
82
83 # Prevent multiple expansion
84 define([AC_PROG_LIBTOOL], [])
85 ])# _AC_PROG_LIBTOOL
86
87
88 # AC_LIBTOOL_SETUP
89 # ----------------
90 AC_DEFUN([AC_LIBTOOL_SETUP],
91 [AC_PREREQ(2.50)dnl
92 AC_REQUIRE([AC_ENABLE_SHARED])dnl
93 AC_REQUIRE([AC_ENABLE_STATIC])dnl
94 AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
95 AC_REQUIRE([AC_CANONICAL_HOST])dnl
96 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
97 AC_REQUIRE([AC_PROG_CC])dnl
98 AC_REQUIRE([AC_PROG_LD])dnl
99 AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
100 AC_REQUIRE([AC_PROG_NM])dnl
101
102 AC_REQUIRE([AC_PROG_LN_S])dnl
103 AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
104 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
105 AC_REQUIRE([AC_OBJEXT])dnl
106 AC_REQUIRE([AC_EXEEXT])dnl
107 dnl
108
109 AC_LIBTOOL_SYS_MAX_CMD_LEN
110 AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
111 AC_LIBTOOL_OBJDIR
112
113 AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
114 _LT_AC_PROG_ECHO_BACKSLASH
115
116 case $host_os in
117 aix3*)
118 # AIX sometimes has problems with the GCC collect2 program. For some
119 # reason, if we set the COLLECT_NAMES environment variable, the problems
120 # vanish in a puff of smoke.
121 if test "X${COLLECT_NAMES+set}" != Xset; then
122 COLLECT_NAMES=
123 export COLLECT_NAMES
124 fi
125 ;;
126 esac
127
128 # Sed substitution that helps us do robust quoting. It backslashifies
129 # metacharacters that are still active within double-quoted strings.
130 Xsed='sed -e 1s/^X//'
131 [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
132
133 # Same as above, but do not quote variable references.
134 [double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
135
136 # Sed substitution to delay expansion of an escaped shell variable in a
137 # double_quote_subst'ed string.
138 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
139
140 # Sed substitution to avoid accidental globbing in evaled expressions
141 no_glob_subst='s/\*/\\\*/g'
142
143 # Constants:
144 rm="rm -f"
145
146 # Global variables:
147 default_ofile=libtool
148 can_build_shared=yes
149
150 # All known linkers require a `.a' archive for static linking (except MSVC,
151 # which needs '.lib').
152 libext=a
153 ltmain="$ac_aux_dir/ltmain.sh"
154 ofile="$default_ofile"
155 with_gnu_ld="$lt_cv_prog_gnu_ld"
156
157 AC_CHECK_TOOL(AR, ar, false)
158 AC_CHECK_TOOL(RANLIB, ranlib, :)
159 AC_CHECK_TOOL(STRIP, strip, :)
160
161 old_CC="$CC"
162 old_CFLAGS="$CFLAGS"
163
164 # Set sane defaults for various variables
165 test -z "$AR" && AR=ar
166 test -z "$AR_FLAGS" && AR_FLAGS=cru
167 test -z "$AS" && AS=as
168 test -z "$CC" && CC=cc
169 test -z "$LTCC" && LTCC=$CC
170 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
171 test -z "$DLLTOOL" && DLLTOOL=dlltool
172 test -z "$LD" && LD=ld
173 test -z "$LN_S" && LN_S="ln -s"
174 test -z "$MAGIC_CMD" && MAGIC_CMD=file
175 test -z "$NM" && NM=nm
176 test -z "$SED" && SED=sed
177 test -z "$OBJDUMP" && OBJDUMP=objdump
178 test -z "$RANLIB" && RANLIB=:
179 test -z "$STRIP" && STRIP=:
180 test -z "$ac_objext" && ac_objext=o
181
182 # Determine commands to create old-style static archives.
183 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
184 old_postinstall_cmds='chmod 644 $oldlib'
185 old_postuninstall_cmds=
186
187 if test -n "$RANLIB"; then
188 case $host_os in
189 openbsd*)
190 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
191 ;;
192 *)
193 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
194 ;;
195 esac
196 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
197 fi
198
199 _LT_CC_BASENAME([$compiler])
200
201 # Only perform the check for file, if the check method requires it
202 case $deplibs_check_method in
203 file_magic*)
204 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
205 AC_PATH_MAGIC
206 fi
207 ;;
208 esac
209
210 AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
211 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
212 enable_win32_dll=yes, enable_win32_dll=no)
213
214 AC_ARG_ENABLE([libtool-lock],
215 [AC_HELP_STRING([--disable-libtool-lock],
216 [avoid locking (might break parallel builds)])])
217 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
218
219 AC_ARG_WITH([pic],
220 [AC_HELP_STRING([--with-pic],
221 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
222 [pic_mode="$withval"],
223 [pic_mode=default])
224 test -z "$pic_mode" && pic_mode=default
225
226 # Use C for the default configuration in the libtool script
227 tagname=
228 AC_LIBTOOL_LANG_C_CONFIG
229 _LT_AC_TAGCONFIG
230 ])# AC_LIBTOOL_SETUP
231
232
233 # _LT_AC_SYS_COMPILER
234 # -------------------
235 AC_DEFUN([_LT_AC_SYS_COMPILER],
236 [AC_REQUIRE([AC_PROG_CC])dnl
237
238 # If no C compiler was specified, use CC.
239 LTCC=${LTCC-"$CC"}
240
241 # If no C compiler flags were specified, use CFLAGS.
242 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
243
244 # Allow CC to be a program name with arguments.
245 compiler=$CC
246 ])# _LT_AC_SYS_COMPILER
247
248
249 # _LT_CC_BASENAME(CC)
250 # -------------------
251 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
252 AC_DEFUN([_LT_CC_BASENAME],
253 [for cc_temp in $1""; do
254 case $cc_temp in
255 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
256 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
257 \-*) ;;
258 *) break;;
259 esac
260 done
261 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
262 ])
263
264
265 # _LT_COMPILER_BOILERPLATE
266 # ------------------------
267 # Check for compiler boilerplate output or warnings with
268 # the simple compiler test code.
269 AC_DEFUN([_LT_COMPILER_BOILERPLATE],
270 [AC_REQUIRE([LT_AC_PROG_SED])dnl
271 ac_outfile=conftest.$ac_objext
272 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
273 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
274 _lt_compiler_boilerplate=`cat conftest.err`
275 $rm conftest*
276 ])# _LT_COMPILER_BOILERPLATE
277
278
279 # _LT_LINKER_BOILERPLATE
280 # ----------------------
281 # Check for linker boilerplate output or warnings with
282 # the simple link test code.
283 AC_DEFUN([_LT_LINKER_BOILERPLATE],
284 [AC_REQUIRE([LT_AC_PROG_SED])dnl
285 ac_outfile=conftest.$ac_objext
286 echo "$lt_simple_link_test_code" >conftest.$ac_ext
287 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
288 _lt_linker_boilerplate=`cat conftest.err`
289 $rm conftest*
290 ])# _LT_LINKER_BOILERPLATE
291
292
293 # _LT_AC_SYS_LIBPATH_AIX
294 # ----------------------
295 # Links a minimal program and checks the executable
296 # for the system default hardcoded library path. In most cases,
297 # this is /usr/lib:/lib, but when the MPI compilers are used
298 # the location of the communication and MPI libs are included too.
299 # If we don't find anything, use the default library path according
300 # to the aix ld manual.
301 AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
302 [AC_REQUIRE([LT_AC_PROG_SED])dnl
303 AC_LINK_IFELSE(AC_LANG_PROGRAM,[
304 lt_aix_libpath_sed='
305 /Import File Strings/,/^$/ {
306 /^0/ {
307 s/^0 *\(.*\)$/\1/
308 p
309 }
310 }'
311 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
312 # Check for a 64-bit object if we didn't find anything.
313 if test -z "$aix_libpath"; then
314 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
315 fi],[])
316 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
317 ])# _LT_AC_SYS_LIBPATH_AIX
318
319
320 # _LT_AC_SHELL_INIT(ARG)
321 # ----------------------
322 AC_DEFUN([_LT_AC_SHELL_INIT],
323 [ifdef([AC_DIVERSION_NOTICE],
324 [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
325 [AC_DIVERT_PUSH(NOTICE)])
326 $1
327 AC_DIVERT_POP
328 ])# _LT_AC_SHELL_INIT
329
330
331 # _LT_AC_PROG_ECHO_BACKSLASH
332 # --------------------------
333 # Add some code to the start of the generated configure script which
334 # will find an echo command which doesn't interpret backslashes.
335 AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
336 [_LT_AC_SHELL_INIT([
337 # Check that we are running under the correct shell.
338 SHELL=${CONFIG_SHELL-/bin/sh}
339
340 case X$ECHO in
341 X*--fallback-echo)
342 # Remove one level of quotation (which was required for Make).
343 ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
344 ;;
345 esac
346
347 echo=${ECHO-echo}
348 if test "X[$]1" = X--no-reexec; then
349 # Discard the --no-reexec flag, and continue.
350 shift
351 elif test "X[$]1" = X--fallback-echo; then
352 # Avoid inline document here, it may be left over
353 :
354 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
355 # Yippee, $echo works!
356 :
357 else
358 # Restart under the correct shell.
359 exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
360 fi
361
362 if test "X[$]1" = X--fallback-echo; then
363 # used as fallback echo
364 shift
365 cat <<EOF
366 [$]*
367 EOF
368 exit 0
369 fi
370
371 # The HP-UX ksh and POSIX shell print the target directory to stdout
372 # if CDPATH is set.
373 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
374
375 if test -z "$ECHO"; then
376 if test "X${echo_test_string+set}" != Xset; then
377 # find a string as large as possible, as long as the shell can cope with it
378 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
379 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
380 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
381 echo_test_string=`eval $cmd` &&
382 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
383 then
384 break
385 fi
386 done
387 fi
388
389 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
390 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
391 test "X$echo_testing_string" = "X$echo_test_string"; then
392 :
393 else
394 # The Solaris, AIX, and Digital Unix default echo programs unquote
395 # backslashes. This makes it impossible to quote backslashes using
396 # echo "$something" | sed 's/\\/\\\\/g'
397 #
398 # So, first we look for a working echo in the user's PATH.
399
400 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
401 for dir in $PATH /usr/ucb; do
402 IFS="$lt_save_ifs"
403 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
404 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
405 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
406 test "X$echo_testing_string" = "X$echo_test_string"; then
407 echo="$dir/echo"
408 break
409 fi
410 done
411 IFS="$lt_save_ifs"
412
413 if test "X$echo" = Xecho; then
414 # We didn't find a better echo, so look for alternatives.
415 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
416 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
417 test "X$echo_testing_string" = "X$echo_test_string"; then
418 # This shell has a builtin print -r that does the trick.
419 echo='print -r'
420 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
421 test "X$CONFIG_SHELL" != X/bin/ksh; then
422 # If we have ksh, try running configure again with it.
423 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
424 export ORIGINAL_CONFIG_SHELL
425 CONFIG_SHELL=/bin/ksh
426 export CONFIG_SHELL
427 exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
428 else
429 # Try using printf.
430 echo='printf %s\n'
431 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
432 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
433 test "X$echo_testing_string" = "X$echo_test_string"; then
434 # Cool, printf works
435 :
436 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
437 test "X$echo_testing_string" = 'X\t' &&
438 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
439 test "X$echo_testing_string" = "X$echo_test_string"; then
440 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
441 export CONFIG_SHELL
442 SHELL="$CONFIG_SHELL"
443 export SHELL
444 echo="$CONFIG_SHELL [$]0 --fallback-echo"
445 elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
446 test "X$echo_testing_string" = 'X\t' &&
447 echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
448 test "X$echo_testing_string" = "X$echo_test_string"; then
449 echo="$CONFIG_SHELL [$]0 --fallback-echo"
450 else
451 # maybe with a smaller string...
452 prev=:
453
454 for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
455 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
456 then
457 break
458 fi
459 prev="$cmd"
460 done
461
462 if test "$prev" != 'sed 50q "[$]0"'; then
463 echo_test_string=`eval $prev`
464 export echo_test_string
465 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
466 else
467 # Oops. We lost completely, so just stick with echo.
468 echo=echo
469 fi
470 fi
471 fi
472 fi
473 fi
474 fi
475
476 # Copy echo and quote the copy suitably for passing to libtool from
477 # the Makefile, instead of quoting the original, which is used later.
478 ECHO=$echo
479 if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
480 ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
481 fi
482
483 AC_SUBST(ECHO)
484 ])])# _LT_AC_PROG_ECHO_BACKSLASH
485
486
487 # _LT_AC_LOCK
488 # -----------
489 AC_DEFUN([_LT_AC_LOCK],
490 [AC_ARG_ENABLE([libtool-lock],
491 [AC_HELP_STRING([--disable-libtool-lock],
492 [avoid locking (might break parallel builds)])])
493 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
494
495 # Some flags need to be propagated to the compiler or linker for good
496 # libtool support.
497 case $host in
498 ia64-*-hpux*)
499 # Find out which ABI we are using.
500 echo 'int i;' > conftest.$ac_ext
501 if AC_TRY_EVAL(ac_compile); then
502 case `/usr/bin/file conftest.$ac_objext` in
503 *ELF-32*)
504 HPUX_IA64_MODE="32"
505 ;;
506 *ELF-64*)
507 HPUX_IA64_MODE="64"
508 ;;
509 esac
510 fi
511 rm -rf conftest*
512 ;;
513 *-*-irix6*)
514 # Find out which ABI we are using.
515 echo '[#]line __oline__ "configure"' > conftest.$ac_ext
516 if AC_TRY_EVAL(ac_compile); then
517 if test "$lt_cv_prog_gnu_ld" = yes; then
518 case `/usr/bin/file conftest.$ac_objext` in
519 *32-bit*)
520 LD="${LD-ld} -melf32bsmip"
521 ;;
522 *N32*)
523 LD="${LD-ld} -melf32bmipn32"
524 ;;
525 *64-bit*)
526 LD="${LD-ld} -melf64bmip"
527 ;;
528 esac
529 else
530 case `/usr/bin/file conftest.$ac_objext` in
531 *32-bit*)
532 LD="${LD-ld} -32"
533 ;;
534 *N32*)
535 LD="${LD-ld} -n32"
536 ;;
537 *64-bit*)
538 LD="${LD-ld} -64"
539 ;;
540 esac
541 fi
542 fi
543 rm -rf conftest*
544 ;;
545
546 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
547 s390*-*linux*|sparc*-*linux*)
548 # Find out which ABI we are using.
549 echo 'int i;' > conftest.$ac_ext
550 if AC_TRY_EVAL(ac_compile); then
551 case `/usr/bin/file conftest.o` in
552 *32-bit*)
553 case $host in
554 x86_64-*kfreebsd*-gnu)
555 LD="${LD-ld} -m elf_i386_fbsd"
556 ;;
557 x86_64-*linux*)
558 LD="${LD-ld} -m elf_i386"
559 ;;
560 ppc64-*linux*|powerpc64-*linux*)
561 LD="${LD-ld} -m elf32ppclinux"
562 ;;
563 s390x-*linux*)
564 LD="${LD-ld} -m elf_s390"
565 ;;
566 sparc64-*linux*)
567 LD="${LD-ld} -m elf32_sparc"
568 ;;
569 esac
570 ;;
571 *64-bit*)
572 libsuff=64
573 case $host in
574 x86_64-*kfreebsd*-gnu)
575 LD="${LD-ld} -m elf_x86_64_fbsd"
576 ;;
577 x86_64-*linux*)
578 LD="${LD-ld} -m elf_x86_64"
579 ;;
580 ppc*-*linux*|powerpc*-*linux*)
581 LD="${LD-ld} -m elf64ppc"
582 ;;
583 s390*-*linux*)
584 LD="${LD-ld} -m elf64_s390"
585 ;;
586 sparc*-*linux*)
587 LD="${LD-ld} -m elf64_sparc"
588 ;;
589 esac
590 ;;
591 esac
592 fi
593 rm -rf conftest*
594 ;;
595
596 *-*-sco3.2v5*)
597 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
598 SAVE_CFLAGS="$CFLAGS"
599 CFLAGS="$CFLAGS -belf"
600 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
601 [AC_LANG_PUSH(C)
602 AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
603 AC_LANG_POP])
604 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
605 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
606 CFLAGS="$SAVE_CFLAGS"
607 fi
608 ;;
609 sparc*-*solaris*)
610 # Find out which ABI we are using.
611 echo 'int i;' > conftest.$ac_ext
612 if AC_TRY_EVAL(ac_compile); then
613 case `/usr/bin/file conftest.o` in
614 *64-bit*)
615 case $lt_cv_prog_gnu_ld in
616 yes*) LD="${LD-ld} -m elf64_sparc" ;;
617 *) LD="${LD-ld} -64" ;;
618 esac
619 ;;
620 esac
621 fi
622 rm -rf conftest*
623 ;;
624
625 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
626 [*-*-cygwin* | *-*-mingw* | *-*-pw32*)
627 AC_CHECK_TOOL(DLLTOOL, dlltool, false)
628 AC_CHECK_TOOL(AS, as, false)
629 AC_CHECK_TOOL(OBJDUMP, objdump, false)
630 ;;
631 ])
632 esac
633
634 need_locks="$enable_libtool_lock"
635
636 ])# _LT_AC_LOCK
637
638
639 # AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
640 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
641 # ----------------------------------------------------------------
642 # Check whether the given compiler option works
643 AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
644 [AC_REQUIRE([LT_AC_PROG_SED])
645 AC_CACHE_CHECK([$1], [$2],
646 [$2=no
647 ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
648 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
649 lt_compiler_flag="$3"
650 # Insert the option either (1) after the last *FLAGS variable, or
651 # (2) before a word containing "conftest.", or (3) at the end.
652 # Note that $ac_compile itself does not contain backslashes and begins
653 # with a dollar sign (not a hyphen), so the echo should work correctly.
654 # The option is referenced via a variable to avoid confusing sed.
655 lt_compile=`echo "$ac_compile" | $SED \
656 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
657 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
658 -e 's:$: $lt_compiler_flag:'`
659 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
660 (eval "$lt_compile" 2>conftest.err)
661 ac_status=$?
662 cat conftest.err >&AS_MESSAGE_LOG_FD
663 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
664 if (exit $ac_status) && test -s "$ac_outfile"; then
665 # The compiler can only warn and ignore the option if not recognized
666 # So say no if there are warnings other than the usual output.
667 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
668 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
669 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
670 $2=yes
671 fi
672 fi
673 $rm conftest*
674 ])
675
676 if test x"[$]$2" = xyes; then
677 ifelse([$5], , :, [$5])
678 else
679 ifelse([$6], , :, [$6])
680 fi
681 ])# AC_LIBTOOL_COMPILER_OPTION
682
683
684 # AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
685 # [ACTION-SUCCESS], [ACTION-FAILURE])
686 # ------------------------------------------------------------
687 # Check whether the given compiler option works
688 AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
689 [AC_REQUIRE([LT_AC_PROG_SED])dnl
690 AC_CACHE_CHECK([$1], [$2],
691 [$2=no
692 save_LDFLAGS="$LDFLAGS"
693 LDFLAGS="$LDFLAGS $3"
694 echo "$lt_simple_link_test_code" > conftest.$ac_ext
695 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
696 # The linker can only warn and ignore the option if not recognized
697 # So say no if there are warnings
698 if test -s conftest.err; then
699 # Append any errors to the config.log.
700 cat conftest.err 1>&AS_MESSAGE_LOG_FD
701 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
702 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
703 if diff conftest.exp conftest.er2 >/dev/null; then
704 $2=yes
705 fi
706 else
707 $2=yes
708 fi
709 fi
710 $rm conftest*
711 LDFLAGS="$save_LDFLAGS"
712 ])
713
714 if test x"[$]$2" = xyes; then
715 ifelse([$4], , :, [$4])
716 else
717 ifelse([$5], , :, [$5])
718 fi
719 ])# AC_LIBTOOL_LINKER_OPTION
720
721
722 # AC_LIBTOOL_SYS_MAX_CMD_LEN
723 # --------------------------
724 AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
725 [# find the maximum length of command line arguments
726 AC_MSG_CHECKING([the maximum length of command line arguments])
727 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
728 i=0
729 teststring="ABCD"
730
731 case $build_os in
732 msdosdjgpp*)
733 # On DJGPP, this test can blow up pretty badly due to problems in libc
734 # (any single argument exceeding 2000 bytes causes a buffer overrun
735 # during glob expansion). Even if it were fixed, the result of this
736 # check would be larger than it should be.
737 lt_cv_sys_max_cmd_len=12288; # 12K is about right
738 ;;
739
740 gnu*)
741 # Under GNU Hurd, this test is not required because there is
742 # no limit to the length of command line arguments.
743 # Libtool will interpret -1 as no limit whatsoever
744 lt_cv_sys_max_cmd_len=-1;
745 ;;
746
747 cygwin* | mingw*)
748 # On Win9x/ME, this test blows up -- it succeeds, but takes
749 # about 5 minutes as the teststring grows exponentially.
750 # Worse, since 9x/ME are not pre-emptively multitasking,
751 # you end up with a "frozen" computer, even though with patience
752 # the test eventually succeeds (with a max line length of 256k).
753 # Instead, let's just punt: use the minimum linelength reported by
754 # all of the supported platforms: 8192 (on NT/2K/XP).
755 lt_cv_sys_max_cmd_len=8192;
756 ;;
757
758 amigaos*)
759 # On AmigaOS with pdksh, this test takes hours, literally.
760 # So we just punt and use a minimum line length of 8192.
761 lt_cv_sys_max_cmd_len=8192;
762 ;;
763
764 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
765 # This has been around since 386BSD, at least. Likely further.
766 if test -x /sbin/sysctl; then
767 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
768 elif test -x /usr/sbin/sysctl; then
769 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
770 else
771 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
772 fi
773 # And add a safety zone
774 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
775 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
776 ;;
777
778 interix*)
779 # We know the value 262144 and hardcode it with a safety zone (like BSD)
780 lt_cv_sys_max_cmd_len=196608
781 ;;
782
783 osf*)
784 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
785 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
786 # nice to cause kernel panics so lets avoid the loop below.
787 # First set a reasonable default.
788 lt_cv_sys_max_cmd_len=16384
789 #
790 if test -x /sbin/sysconfig; then
791 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
792 *1*) lt_cv_sys_max_cmd_len=-1 ;;
793 esac
794 fi
795 ;;
796 sco3.2v5*)
797 lt_cv_sys_max_cmd_len=102400
798 ;;
799 sysv5* | sco5v6* | sysv4.2uw2*)
800 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
801 if test -n "$kargmax"; then
802 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
803 else
804 lt_cv_sys_max_cmd_len=32768
805 fi
806 ;;
807 *)
808 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
809 if test -n "$lt_cv_sys_max_cmd_len"; then
810 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
811 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
812 else
813 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
814 while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
815 = "XX$teststring") >/dev/null 2>&1 &&
816 new_result=`expr "X$teststring" : ".*" 2>&1` &&
817 lt_cv_sys_max_cmd_len=$new_result &&
818 test $i != 17 # 1/2 MB should be enough
819 do
820 i=`expr $i + 1`
821 teststring=$teststring$teststring
822 done
823 teststring=
824 # Add a significant safety factor because C++ compilers can tack on massive
825 # amounts of additional arguments before passing them to the linker.
826 # It appears as though 1/2 is a usable value.
827 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
828 fi
829 ;;
830 esac
831 ])
832 if test -n $lt_cv_sys_max_cmd_len ; then
833 AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
834 else
835 AC_MSG_RESULT(none)
836 fi
837 ])# AC_LIBTOOL_SYS_MAX_CMD_LEN
838
839
840 # _LT_AC_CHECK_DLFCN
841 # ------------------
842 AC_DEFUN([_LT_AC_CHECK_DLFCN],
843 [AC_CHECK_HEADERS(dlfcn.h)dnl
844 ])# _LT_AC_CHECK_DLFCN
845
846
847 # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
848 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
849 # ---------------------------------------------------------------------
850 AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
851 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
852 if test "$cross_compiling" = yes; then :
853 [$4]
854 else
855 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
856 lt_status=$lt_dlunknown
857 cat > conftest.$ac_ext <<EOF
858 [#line __oline__ "configure"
859 #include "confdefs.h"
860
861 #if HAVE_DLFCN_H
862 #include <dlfcn.h>
863 #endif
864
865 #include <stdio.h>
866
867 #ifdef RTLD_GLOBAL
868 # define LT_DLGLOBAL RTLD_GLOBAL
869 #else
870 # ifdef DL_GLOBAL
871 # define LT_DLGLOBAL DL_GLOBAL
872 # else
873 # define LT_DLGLOBAL 0
874 # endif
875 #endif
876
877 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
878 find out it does not work in some platform. */
879 #ifndef LT_DLLAZY_OR_NOW
880 # ifdef RTLD_LAZY
881 # define LT_DLLAZY_OR_NOW RTLD_LAZY
882 # else
883 # ifdef DL_LAZY
884 # define LT_DLLAZY_OR_NOW DL_LAZY
885 # else
886 # ifdef RTLD_NOW
887 # define LT_DLLAZY_OR_NOW RTLD_NOW
888 # else
889 # ifdef DL_NOW
890 # define LT_DLLAZY_OR_NOW DL_NOW
891 # else
892 # define LT_DLLAZY_OR_NOW 0
893 # endif
894 # endif
895 # endif
896 # endif
897 #endif
898
899 #ifdef __cplusplus
900 extern "C" void exit (int);
901 #endif
902
903 void fnord() { int i=42;}
904 int main ()
905 {
906 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
907 int status = $lt_dlunknown;
908
909 if (self)
910 {
911 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
912 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
913 /* dlclose (self); */
914 }
915 else
916 puts (dlerror ());
917
918 exit (status);
919 }]
920 EOF
921 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
922 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
923 lt_status=$?
924 case x$lt_status in
925 x$lt_dlno_uscore) $1 ;;
926 x$lt_dlneed_uscore) $2 ;;
927 x$lt_dlunknown|x*) $3 ;;
928 esac
929 else :
930 # compilation failed
931 $3
932 fi
933 fi
934 rm -fr conftest*
935 ])# _LT_AC_TRY_DLOPEN_SELF
936
937
938 # AC_LIBTOOL_DLOPEN_SELF
939 # ----------------------
940 AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
941 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
942 if test "x$enable_dlopen" != xyes; then
943 enable_dlopen=unknown
944 enable_dlopen_self=unknown
945 enable_dlopen_self_static=unknown
946 else
947 lt_cv_dlopen=no
948 lt_cv_dlopen_libs=
949
950 case $host_os in
951 beos*)
952 lt_cv_dlopen="load_add_on"
953 lt_cv_dlopen_libs=
954 lt_cv_dlopen_self=yes
955 ;;
956
957 mingw* | pw32*)
958 lt_cv_dlopen="LoadLibrary"
959 lt_cv_dlopen_libs=
960 ;;
961
962 cygwin*)
963 lt_cv_dlopen="dlopen"
964 lt_cv_dlopen_libs=
965 ;;
966
967 darwin*)
968 # if libdl is installed we need to link against it
969 AC_CHECK_LIB([dl], [dlopen],
970 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
971 lt_cv_dlopen="dyld"
972 lt_cv_dlopen_libs=
973 lt_cv_dlopen_self=yes
974 ])
975 ;;
976
977 *)
978 AC_CHECK_FUNC([shl_load],
979 [lt_cv_dlopen="shl_load"],
980 [AC_CHECK_LIB([dld], [shl_load],
981 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
982 [AC_CHECK_FUNC([dlopen],
983 [lt_cv_dlopen="dlopen"],
984 [AC_CHECK_LIB([dl], [dlopen],
985 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
986 [AC_CHECK_LIB([svld], [dlopen],
987 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
988 [AC_CHECK_LIB([dld], [dld_link],
989 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
990 ])
991 ])
992 ])
993 ])
994 ])
995 ;;
996 esac
997
998 if test "x$lt_cv_dlopen" != xno; then
999 enable_dlopen=yes
1000 else
1001 enable_dlopen=no
1002 fi
1003
1004 case $lt_cv_dlopen in
1005 dlopen)
1006 save_CPPFLAGS="$CPPFLAGS"
1007 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1008
1009 save_LDFLAGS="$LDFLAGS"
1010 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1011
1012 save_LIBS="$LIBS"
1013 LIBS="$lt_cv_dlopen_libs $LIBS"
1014
1015 AC_CACHE_CHECK([whether a program can dlopen itself],
1016 lt_cv_dlopen_self, [dnl
1017 _LT_AC_TRY_DLOPEN_SELF(
1018 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
1019 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
1020 ])
1021
1022 if test "x$lt_cv_dlopen_self" = xyes; then
1023 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1024 AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
1025 lt_cv_dlopen_self_static, [dnl
1026 _LT_AC_TRY_DLOPEN_SELF(
1027 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
1028 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
1029 ])
1030 fi
1031
1032 CPPFLAGS="$save_CPPFLAGS"
1033 LDFLAGS="$save_LDFLAGS"
1034 LIBS="$save_LIBS"
1035 ;;
1036 esac
1037
1038 case $lt_cv_dlopen_self in
1039 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
1040 *) enable_dlopen_self=unknown ;;
1041 esac
1042
1043 case $lt_cv_dlopen_self_static in
1044 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
1045 *) enable_dlopen_self_static=unknown ;;
1046 esac
1047 fi
1048 ])# AC_LIBTOOL_DLOPEN_SELF
1049
1050
1051 # AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
1052 # ---------------------------------
1053 # Check to see if options -c and -o are simultaneously supported by compiler
1054 AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1055 [AC_REQUIRE([LT_AC_PROG_SED])dnl
1056 AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1057 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1058 [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1059 [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1060 $rm -r conftest 2>/dev/null
1061 mkdir conftest
1062 cd conftest
1063 mkdir out
1064 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1065
1066 lt_compiler_flag="-o out/conftest2.$ac_objext"
1067 # Insert the option either (1) after the last *FLAGS variable, or
1068 # (2) before a word containing "conftest.", or (3) at the end.
1069 # Note that $ac_compile itself does not contain backslashes and begins
1070 # with a dollar sign (not a hyphen), so the echo should work correctly.
1071 lt_compile=`echo "$ac_compile" | $SED \
1072 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1073 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1074 -e 's:$: $lt_compiler_flag:'`
1075 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1076 (eval "$lt_compile" 2>out/conftest.err)
1077 ac_status=$?
1078 cat out/conftest.err >&AS_MESSAGE_LOG_FD
1079 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1080 if (exit $ac_status) && test -s out/conftest2.$ac_objext
1081 then
1082 # The compiler can only warn and ignore the option if not recognized
1083 # So say no if there are warnings
1084 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
1085 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
1086 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1087 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1088 fi
1089 fi
1090 chmod u+w . 2>&AS_MESSAGE_LOG_FD
1091 $rm conftest*
1092 # SGI C++ compiler will create directory out/ii_files/ for
1093 # template instantiation
1094 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
1095 $rm out/* && rmdir out
1096 cd ..
1097 rmdir conftest
1098 $rm conftest*
1099 ])
1100 ])# AC_LIBTOOL_PROG_CC_C_O
1101
1102
1103 # AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
1104 # -----------------------------------------
1105 # Check to see if we can do hard links to lock some files if needed
1106 AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
1107 [AC_REQUIRE([_LT_AC_LOCK])dnl
1108
1109 hard_links="nottested"
1110 if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
1111 # do not overwrite the value of need_locks provided by the user
1112 AC_MSG_CHECKING([if we can lock with hard links])
1113 hard_links=yes
1114 $rm conftest*
1115 ln conftest.a conftest.b 2>/dev/null && hard_links=no
1116 touch conftest.a
1117 ln conftest.a conftest.b 2>&5 || hard_links=no
1118 ln conftest.a conftest.b 2>/dev/null && hard_links=no
1119 AC_MSG_RESULT([$hard_links])
1120 if test "$hard_links" = no; then
1121 AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
1122 need_locks=warn
1123 fi
1124 else
1125 need_locks=no
1126 fi
1127 ])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
1128
1129
1130 # AC_LIBTOOL_OBJDIR
1131 # -----------------
1132 AC_DEFUN([AC_LIBTOOL_OBJDIR],
1133 [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
1134 [rm -f .libs 2>/dev/null
1135 mkdir .libs 2>/dev/null
1136 if test -d .libs; then
1137 lt_cv_objdir=.libs
1138 else
1139 # MS-DOS does not allow filenames that begin with a dot.
1140 lt_cv_objdir=_libs
1141 fi
1142 rmdir .libs 2>/dev/null])
1143 objdir=$lt_cv_objdir
1144 ])# AC_LIBTOOL_OBJDIR
1145
1146
1147 # AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
1148 # ----------------------------------------------
1149 # Check hardcoding attributes.
1150 AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
1151 [AC_MSG_CHECKING([how to hardcode library paths into programs])
1152 _LT_AC_TAGVAR(hardcode_action, $1)=
1153 if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
1154 test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
1155 test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
1156
1157 # We can hardcode non-existant directories.
1158 if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
1159 # If the only mechanism to avoid hardcoding is shlibpath_var, we
1160 # have to relink, otherwise we might link with an installed library
1161 # when we should be linking with a yet-to-be-installed one
1162 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
1163 test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
1164 # Linking always hardcodes the temporary library directory.
1165 _LT_AC_TAGVAR(hardcode_action, $1)=relink
1166 else
1167 # We can link without hardcoding, and we can hardcode nonexisting dirs.
1168 _LT_AC_TAGVAR(hardcode_action, $1)=immediate
1169 fi
1170 else
1171 # We cannot hardcode anything, or else we can only hardcode existing
1172 # directories.
1173 _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
1174 fi
1175 AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
1176
1177 if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
1178 # Fast installation is not supported
1179 enable_fast_install=no
1180 elif test "$shlibpath_overrides_runpath" = yes ||
1181 test "$enable_shared" = no; then
1182 # Fast installation is not necessary
1183 enable_fast_install=needless
1184 fi
1185 ])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
1186
1187
1188 # AC_LIBTOOL_SYS_LIB_STRIP
1189 # ------------------------
1190 AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
1191 [striplib=
1192 old_striplib=
1193 AC_MSG_CHECKING([whether stripping libraries is possible])
1194 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
1195 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
1196 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1197 AC_MSG_RESULT([yes])
1198 else
1199 # FIXME - insert some real tests, host_os isn't really good enough
1200 case $host_os in
1201 darwin*)
1202 if test -n "$STRIP" ; then
1203 striplib="$STRIP -x"
1204 old_striplib="$STRIP -S"
1205 AC_MSG_RESULT([yes])
1206 else
1207 AC_MSG_RESULT([no])
1208 fi
1209 ;;
1210 *)
1211 AC_MSG_RESULT([no])
1212 ;;
1213 esac
1214 fi
1215 ])# AC_LIBTOOL_SYS_LIB_STRIP
1216
1217
1218 # AC_LIBTOOL_SYS_DYNAMIC_LINKER
1219 # -----------------------------
1220 # PORTME Fill in your ld.so characteristics
1221 AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
1222 [AC_REQUIRE([LT_AC_PROG_SED])dnl
1223 AC_MSG_CHECKING([dynamic linker characteristics])
1224 library_names_spec=
1225 libname_spec='lib$name'
1226 soname_spec=
1227 shrext_cmds=".so"
1228 postinstall_cmds=
1229 postuninstall_cmds=
1230 finish_cmds=
1231 finish_eval=
1232 shlibpath_var=
1233 shlibpath_overrides_runpath=unknown
1234 version_type=none
1235 dynamic_linker="$host_os ld.so"
1236 sys_lib_dlsearch_path_spec="/lib /usr/lib"
1237 m4_if($1,[],[
1238 if test "$GCC" = yes; then
1239 case $host_os in
1240 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
1241 *) lt_awk_arg="/^libraries:/" ;;
1242 esac
1243 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1244 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
1245 # if the path contains ";" then we assume it to be the separator
1246 # otherwise default to the standard path separator (i.e. ":") - it is
1247 # assumed that no part of a normal pathname contains ";" but that should
1248 # okay in the real world where ";" in dirpaths is itself problematic.
1249 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
1250 else
1251 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1252 fi
1253 # Ok, now we have the path, separated by spaces, we can step through it
1254 # and add multilib dir if necessary.
1255 lt_tmp_lt_search_path_spec=
1256 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
1257 for lt_sys_path in $lt_search_path_spec; do
1258 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
1259 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
1260 else
1261 test -d "$lt_sys_path" && \
1262 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
1263 fi
1264 done
1265 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
1266 BEGIN {RS=" "; FS="/|\n";} {
1267 lt_foo="";
1268 lt_count=0;
1269 for (lt_i = NF; lt_i > 0; lt_i--) {
1270 if ($lt_i != "" && $lt_i != ".") {
1271 if ($lt_i == "..") {
1272 lt_count++;
1273 } else {
1274 if (lt_count == 0) {
1275 lt_foo="/" $lt_i lt_foo;
1276 } else {
1277 lt_count--;
1278 }
1279 }
1280 }
1281 }
1282 if (lt_foo != "") { lt_freq[[lt_foo]]++; }
1283 if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
1284 }'`
1285 sys_lib_search_path_spec=`echo $lt_search_path_spec`
1286 else
1287 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1288 fi])
1289 need_lib_prefix=unknown
1290 hardcode_into_libs=no
1291
1292 # when you set need_version to no, make sure it does not cause -set_version
1293 # flags to be left without arguments
1294 need_version=unknown
1295
1296 case $host_os in
1297 aix3*)
1298 version_type=linux
1299 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
1300 shlibpath_var=LIBPATH
1301
1302 # AIX 3 has no versioning support, so we append a major version to the name.
1303 soname_spec='${libname}${release}${shared_ext}$major'
1304 ;;
1305
1306 aix4* | aix5*)
1307 version_type=linux
1308 need_lib_prefix=no
1309 need_version=no
1310 hardcode_into_libs=yes
1311 if test "$host_cpu" = ia64; then
1312 # AIX 5 supports IA64
1313 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
1314 shlibpath_var=LD_LIBRARY_PATH
1315 else
1316 # With GCC up to 2.95.x, collect2 would create an import file
1317 # for dependence libraries. The import file would start with
1318 # the line `#! .'. This would cause the generated library to
1319 # depend on `.', always an invalid library. This was fixed in
1320 # development snapshots of GCC prior to 3.0.
1321 case $host_os in
1322 aix4 | aix4.[[01]] | aix4.[[01]].*)
1323 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
1324 echo ' yes '
1325 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
1326 :
1327 else
1328 can_build_shared=no
1329 fi
1330 ;;
1331 esac
1332 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
1333 # soname into executable. Probably we can add versioning support to
1334 # collect2, so additional links can be useful in future.
1335 if test "$aix_use_runtimelinking" = yes; then
1336 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
1337 # instead of lib<name>.a to let people know that these are not
1338 # typical AIX shared libraries.
1339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1340 else
1341 # We preserve .a as extension for shared libraries through AIX4.2
1342 # and later when we are not doing run time linking.
1343 library_names_spec='${libname}${release}.a $libname.a'
1344 soname_spec='${libname}${release}${shared_ext}$major'
1345 fi
1346 shlibpath_var=LIBPATH
1347 fi
1348 ;;
1349
1350 amigaos*)
1351 library_names_spec='$libname.ixlibrary $libname.a'
1352 # Create ${libname}_ixlibrary.a entries in /sys/libs.
1353 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'
1354 ;;
1355
1356 beos*)
1357 library_names_spec='${libname}${shared_ext}'
1358 dynamic_linker="$host_os ld.so"
1359 shlibpath_var=LIBRARY_PATH
1360 ;;
1361
1362 bsdi[[45]]*)
1363 version_type=linux
1364 need_version=no
1365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1366 soname_spec='${libname}${release}${shared_ext}$major'
1367 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
1368 shlibpath_var=LD_LIBRARY_PATH
1369 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
1370 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
1371 # the default ld.so.conf also contains /usr/contrib/lib and
1372 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
1373 # libtool to hard-code these into programs
1374 ;;
1375
1376 cygwin* | mingw* | pw32*)
1377 version_type=windows
1378 shrext_cmds=".dll"
1379 need_version=no
1380 need_lib_prefix=no
1381
1382 case $GCC,$host_os in
1383 yes,cygwin* | yes,mingw* | yes,pw32*)
1384 library_names_spec='$libname.dll.a'
1385 # DLL is installed to $(libdir)/../bin by postinstall_cmds
1386 postinstall_cmds='base_file=`basename \${file}`~
1387 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
1388 dldir=$destdir/`dirname \$dlpath`~
1389 test -d \$dldir || mkdir -p \$dldir~
1390 $install_prog $dir/$dlname \$dldir/$dlname~
1391 chmod a+x \$dldir/$dlname'
1392 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
1393 dlpath=$dir/\$dldll~
1394 $rm \$dlpath'
1395 shlibpath_overrides_runpath=yes
1396
1397 case $host_os in
1398 cygwin*)
1399 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
1400 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1401 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
1402 ;;
1403 mingw*)
1404 # MinGW DLLs use traditional 'lib' prefix
1405 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1406 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1407 if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
1408 # It is most probably a Windows format PATH printed by
1409 # mingw gcc, but we are running on Cygwin. Gcc prints its search
1410 # path with ; separators, and with drive letters. We can handle the
1411 # drive letters (cygwin fileutils understands them), so leave them,
1412 # especially as we might pass files found there to a mingw objdump,
1413 # which wouldn't understand a cygwinified path. Ahh.
1414 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1415 else
1416 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1417 fi
1418 ;;
1419 pw32*)
1420 # pw32 DLLs use 'pw' prefix rather than 'lib'
1421 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1422 ;;
1423 esac
1424 ;;
1425
1426 *)
1427 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
1428 ;;
1429 esac
1430 dynamic_linker='Win32 ld.exe'
1431 # FIXME: first we should search . and the directory the executable is in
1432 shlibpath_var=PATH
1433 ;;
1434
1435 darwin* | rhapsody*)
1436 dynamic_linker="$host_os dyld"
1437 version_type=darwin
1438 need_lib_prefix=no
1439 need_version=no
1440 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
1441 soname_spec='${libname}${release}${major}$shared_ext'
1442 shlibpath_overrides_runpath=yes
1443 shlibpath_var=DYLD_LIBRARY_PATH
1444 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1445 m4_if([$1], [],[
1446 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
1447 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
1448 ;;
1449
1450 dgux*)
1451 version_type=linux
1452 need_lib_prefix=no
1453 need_version=no
1454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
1455 soname_spec='${libname}${release}${shared_ext}$major'
1456 shlibpath_var=LD_LIBRARY_PATH
1457 ;;
1458
1459 freebsd1*)
1460 dynamic_linker=no
1461 ;;
1462
1463 freebsd* | dragonfly*)
1464 # DragonFly does not have aout. When/if they implement a new
1465 # versioning mechanism, adjust this.
1466 if test -x /usr/bin/objformat; then
1467 objformat=`/usr/bin/objformat`
1468 else
1469 case $host_os in
1470 freebsd[[123]]*) objformat=aout ;;
1471 *) objformat=elf ;;
1472 esac
1473 fi
1474 version_type=freebsd-$objformat
1475 case $version_type in
1476 freebsd-elf*)
1477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1478 need_version=no
1479 need_lib_prefix=no
1480 ;;
1481 freebsd-*)
1482 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
1483 need_version=yes
1484 ;;
1485 esac
1486 shlibpath_var=LD_LIBRARY_PATH
1487 case $host_os in
1488 freebsd2*)
1489 shlibpath_overrides_runpath=yes
1490 ;;
1491 freebsd3.[[01]]* | freebsdelf3.[[01]]*)
1492 shlibpath_overrides_runpath=yes
1493 hardcode_into_libs=yes
1494 ;;
1495 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
1496 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
1497 shlibpath_overrides_runpath=no
1498 hardcode_into_libs=yes
1499 ;;
1500 *) # from 4.6 on, and DragonFly
1501 shlibpath_overrides_runpath=yes
1502 hardcode_into_libs=yes
1503 ;;
1504 esac
1505 ;;
1506
1507 gnu*)
1508 version_type=linux
1509 need_lib_prefix=no
1510 need_version=no
1511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
1512 soname_spec='${libname}${release}${shared_ext}$major'
1513 shlibpath_var=LD_LIBRARY_PATH
1514 hardcode_into_libs=yes
1515 ;;
1516
1517 hpux9* | hpux10* | hpux11*)
1518 # Give a soname corresponding to the major version so that dld.sl refuses to
1519 # link against other versions.
1520 version_type=sunos
1521 need_lib_prefix=no
1522 need_version=no
1523 case $host_cpu in
1524 ia64*)
1525 shrext_cmds='.so'
1526 hardcode_into_libs=yes
1527 dynamic_linker="$host_os dld.so"
1528 shlibpath_var=LD_LIBRARY_PATH
1529 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1531 soname_spec='${libname}${release}${shared_ext}$major'
1532 if test "X$HPUX_IA64_MODE" = X32; then
1533 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
1534 else
1535 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
1536 fi
1537 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1538 ;;
1539 hppa*64*)
1540 shrext_cmds='.sl'
1541 hardcode_into_libs=yes
1542 dynamic_linker="$host_os dld.sl"
1543 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
1544 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1546 soname_spec='${libname}${release}${shared_ext}$major'
1547 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
1548 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1549 ;;
1550 *)
1551 shrext_cmds='.sl'
1552 dynamic_linker="$host_os dld.sl"
1553 shlibpath_var=SHLIB_PATH
1554 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
1555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1556 soname_spec='${libname}${release}${shared_ext}$major'
1557 ;;
1558 esac
1559 # HP-UX runs *really* slowly unless shared libraries are mode 555.
1560 postinstall_cmds='chmod 555 $lib'
1561 ;;
1562
1563 interix[[3-9]]*)
1564 version_type=linux
1565 need_lib_prefix=no
1566 need_version=no
1567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1568 soname_spec='${libname}${release}${shared_ext}$major'
1569 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
1570 shlibpath_var=LD_LIBRARY_PATH
1571 shlibpath_overrides_runpath=no
1572 hardcode_into_libs=yes
1573 ;;
1574
1575 irix5* | irix6* | nonstopux*)
1576 case $host_os in
1577 nonstopux*) version_type=nonstopux ;;
1578 *)
1579 if test "$lt_cv_prog_gnu_ld" = yes; then
1580 version_type=linux
1581 else
1582 version_type=irix
1583 fi ;;
1584 esac
1585 need_lib_prefix=no
1586 need_version=no
1587 soname_spec='${libname}${release}${shared_ext}$major'
1588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
1589 case $host_os in
1590 irix5* | nonstopux*)
1591 libsuff= shlibsuff=
1592 ;;
1593 *)
1594 case $LD in # libtool.m4 will add one of these switches to LD
1595 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
1596 libsuff= shlibsuff= libmagic=32-bit;;
1597 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
1598 libsuff=32 shlibsuff=N32 libmagic=N32;;
1599 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
1600 libsuff=64 shlibsuff=64 libmagic=64-bit;;
1601 *) libsuff= shlibsuff= libmagic=never-match;;
1602 esac
1603 ;;
1604 esac
1605 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
1606 shlibpath_overrides_runpath=no
1607 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
1608 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
1609 hardcode_into_libs=yes
1610 ;;
1611
1612 # No shared lib support for Linux oldld, aout, or coff.
1613 linux*oldld* | linux*aout* | linux*coff*)
1614 dynamic_linker=no
1615 ;;
1616
1617 # This must be Linux ELF.
1618 linux* | k*bsd*-gnu)
1619 version_type=linux
1620 need_lib_prefix=no
1621 need_version=no
1622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1623 soname_spec='${libname}${release}${shared_ext}$major'
1624 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
1625 shlibpath_var=LD_LIBRARY_PATH
1626 shlibpath_overrides_runpath=no
1627 # This implies no fast_install, which is unacceptable.
1628 # Some rework will be needed to allow for fast_install
1629 # before this can be enabled.
1630 hardcode_into_libs=yes
1631 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
1632 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
1633
1634 # Append ld.so.conf contents to the search path
1635 if test -f /etc/ld.so.conf; then
1636 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
1637 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
1638 fi
1639
1640 # We used to test for /lib/ld.so.1 and disable shared libraries on
1641 # powerpc, because MkLinux only supported shared libraries with the
1642 # GNU dynamic linker. Since this was broken with cross compilers,
1643 # most powerpc-linux boxes support dynamic linking these days and
1644 # people can always --disable-shared, the test was removed, and we
1645 # assume the GNU/Linux dynamic linker is in use.
1646 dynamic_linker='GNU/Linux ld.so'
1647 ;;
1648
1649 netbsd*)
1650 version_type=sunos
1651 need_lib_prefix=no
1652 need_version=no
1653 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
1654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1655 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1656 dynamic_linker='NetBSD (a.out) ld.so'
1657 else
1658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1659 soname_spec='${libname}${release}${shared_ext}$major'
1660 dynamic_linker='NetBSD ld.elf_so'
1661 fi
1662 shlibpath_var=LD_LIBRARY_PATH
1663 shlibpath_overrides_runpath=yes
1664 hardcode_into_libs=yes
1665 ;;
1666
1667 newsos6)
1668 version_type=linux
1669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1670 shlibpath_var=LD_LIBRARY_PATH
1671 shlibpath_overrides_runpath=yes
1672 ;;
1673
1674 nto-qnx*)
1675 version_type=linux
1676 need_lib_prefix=no
1677 need_version=no
1678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1679 soname_spec='${libname}${release}${shared_ext}$major'
1680 shlibpath_var=LD_LIBRARY_PATH
1681 shlibpath_overrides_runpath=yes
1682 ;;
1683
1684 openbsd*)
1685 version_type=sunos
1686 sys_lib_dlsearch_path_spec="/usr/lib"
1687 need_lib_prefix=no
1688 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
1689 case $host_os in
1690 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
1691 *) need_version=no ;;
1692 esac
1693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1694 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1695 shlibpath_var=LD_LIBRARY_PATH
1696 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1697 case $host_os in
1698 openbsd2.[[89]] | openbsd2.[[89]].*)
1699 shlibpath_overrides_runpath=no
1700 ;;
1701 *)
1702 shlibpath_overrides_runpath=yes
1703 ;;
1704 esac
1705 else
1706 shlibpath_overrides_runpath=yes
1707 fi
1708 ;;
1709
1710 os2*)
1711 libname_spec='$name'
1712 shrext_cmds=".dll"
1713 need_lib_prefix=no
1714 library_names_spec='$libname${shared_ext} $libname.a'
1715 dynamic_linker='OS/2 ld.exe'
1716 shlibpath_var=LIBPATH
1717 ;;
1718
1719 osf3* | osf4* | osf5*)
1720 version_type=osf
1721 need_lib_prefix=no
1722 need_version=no
1723 soname_spec='${libname}${release}${shared_ext}$major'
1724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1725 shlibpath_var=LD_LIBRARY_PATH
1726 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
1727 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
1728 ;;
1729
1730 rdos*)
1731 dynamic_linker=no
1732 ;;
1733
1734 solaris*)
1735 version_type=linux
1736 need_lib_prefix=no
1737 need_version=no
1738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1739 soname_spec='${libname}${release}${shared_ext}$major'
1740 shlibpath_var=LD_LIBRARY_PATH
1741 shlibpath_overrides_runpath=yes
1742 hardcode_into_libs=yes
1743 # ldd complains unless libraries are executable
1744 postinstall_cmds='chmod +x $lib'
1745 ;;
1746
1747 sunos4*)
1748 version_type=sunos
1749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1750 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
1751 shlibpath_var=LD_LIBRARY_PATH
1752 shlibpath_overrides_runpath=yes
1753 if test "$with_gnu_ld" = yes; then
1754 need_lib_prefix=no
1755 fi
1756 need_version=yes
1757 ;;
1758
1759 sysv4 | sysv4.3*)
1760 version_type=linux
1761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1762 soname_spec='${libname}${release}${shared_ext}$major'
1763 shlibpath_var=LD_LIBRARY_PATH
1764 case $host_vendor in
1765 sni)
1766 shlibpath_overrides_runpath=no
1767 need_lib_prefix=no
1768 export_dynamic_flag_spec='${wl}-Blargedynsym'
1769 runpath_var=LD_RUN_PATH
1770 ;;
1771 siemens)
1772 need_lib_prefix=no
1773 ;;
1774 motorola)
1775 need_lib_prefix=no
1776 need_version=no
1777 shlibpath_overrides_runpath=no
1778 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
1779 ;;
1780 esac
1781 ;;
1782
1783 sysv4*MP*)
1784 if test -d /usr/nec ;then
1785 version_type=linux
1786 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
1787 soname_spec='$libname${shared_ext}.$major'
1788 shlibpath_var=LD_LIBRARY_PATH
1789 fi
1790 ;;
1791
1792 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
1793 version_type=freebsd-elf
1794 need_lib_prefix=no
1795 need_version=no
1796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1797 soname_spec='${libname}${release}${shared_ext}$major'
1798 shlibpath_var=LD_LIBRARY_PATH
1799 hardcode_into_libs=yes
1800 if test "$with_gnu_ld" = yes; then
1801 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
1802 shlibpath_overrides_runpath=no
1803 else
1804 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
1805 shlibpath_overrides_runpath=yes
1806 case $host_os in
1807 sco3.2v5*)
1808 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
1809 ;;
1810 esac
1811 fi
1812 sys_lib_dlsearch_path_spec='/usr/lib'
1813 ;;
1814
1815 uts4*)
1816 version_type=linux
1817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1818 soname_spec='${libname}${release}${shared_ext}$major'
1819 shlibpath_var=LD_LIBRARY_PATH
1820 ;;
1821
1822 *)
1823 dynamic_linker=no
1824 ;;
1825 esac
1826 AC_MSG_RESULT([$dynamic_linker])
1827 test "$dynamic_linker" = no && can_build_shared=no
1828
1829 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
1830 if test "$GCC" = yes; then
1831 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
1832 fi
1833 ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
1834
1835
1836 # _LT_AC_TAGCONFIG
1837 # ----------------
1838 AC_DEFUN([_LT_AC_TAGCONFIG],
1839 [AC_REQUIRE([LT_AC_PROG_SED])dnl
1840 AC_ARG_WITH([tags],
1841 [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
1842 [include additional configurations @<:@automatic@:>@])],
1843 [tagnames="$withval"])
1844
1845 if test -f "$ltmain" && test -n "$tagnames"; then
1846 if test ! -f "${ofile}"; then
1847 AC_MSG_WARN([output file `$ofile' does not exist])
1848 fi
1849
1850 if test -z "$LTCC"; then
1851 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
1852 if test -z "$LTCC"; then
1853 AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
1854 else
1855 AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
1856 fi
1857 fi
1858 if test -z "$LTCFLAGS"; then
1859 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
1860 fi
1861
1862 # Extract list of available tagged configurations in $ofile.
1863 # Note that this assumes the entire list is on one line.
1864 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
1865
1866 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1867 for tagname in $tagnames; do
1868 IFS="$lt_save_ifs"
1869 # Check whether tagname contains only valid characters
1870 case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
1871 "") ;;
1872 *) AC_MSG_ERROR([invalid tag name: $tagname])
1873 ;;
1874 esac
1875
1876 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
1877 then
1878 AC_MSG_ERROR([tag name \"$tagname\" already exists])
1879 fi
1880
1881 # Update the list of available tags.
1882 if test -n "$tagname"; then
1883 echo appending configuration tag \"$tagname\" to $ofile
1884
1885 case $tagname in
1886 CXX)
1887 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
1888 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
1889 (test "X$CXX" != "Xg++"))) ; then
1890 AC_LIBTOOL_LANG_CXX_CONFIG
1891 else
1892 tagname=""
1893 fi
1894 ;;
1895
1896 F77)
1897 if test -n "$F77" && test "X$F77" != "Xno"; then
1898 AC_LIBTOOL_LANG_F77_CONFIG
1899 else
1900 tagname=""
1901 fi
1902 ;;
1903
1904 GCJ)
1905 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
1906 AC_LIBTOOL_LANG_GCJ_CONFIG
1907 else
1908 tagname=""
1909 fi
1910 ;;
1911
1912 RC)
1913 AC_LIBTOOL_LANG_RC_CONFIG
1914 ;;
1915
1916 *)
1917 AC_MSG_ERROR([Unsupported tag name: $tagname])
1918 ;;
1919 esac
1920
1921 # Append the new tag name to the list of available tags.
1922 if test -n "$tagname" ; then
1923 available_tags="$available_tags $tagname"
1924 fi
1925 fi
1926 done
1927 IFS="$lt_save_ifs"
1928
1929 # Now substitute the updated list of available tags.
1930 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
1931 mv "${ofile}T" "$ofile"
1932 chmod +x "$ofile"
1933 else
1934 rm -f "${ofile}T"
1935 AC_MSG_ERROR([unable to update list of available tagged configurations.])
1936 fi
1937 fi
1938 ])# _LT_AC_TAGCONFIG
1939
1940
1941 # AC_LIBTOOL_DLOPEN
1942 # -----------------
1943 # enable checks for dlopen support
1944 AC_DEFUN([AC_LIBTOOL_DLOPEN],
1945 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
1946 ])# AC_LIBTOOL_DLOPEN
1947
1948
1949 # AC_LIBTOOL_WIN32_DLL
1950 # --------------------
1951 # declare package support for building win32 DLLs
1952 AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
1953 [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
1954 ])# AC_LIBTOOL_WIN32_DLL
1955
1956
1957 # AC_ENABLE_SHARED([DEFAULT])
1958 # ---------------------------
1959 # implement the --enable-shared flag
1960 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
1961 AC_DEFUN([AC_ENABLE_SHARED],
1962 [define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
1963 AC_ARG_ENABLE([shared],
1964 [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
1965 [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
1966 [p=${PACKAGE-default}
1967 case $enableval in
1968 yes) enable_shared=yes ;;
1969 no) enable_shared=no ;;
1970 *)
1971 enable_shared=no
1972 # Look at the argument we got. We use all the common list separators.
1973 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1974 for pkg in $enableval; do
1975 IFS="$lt_save_ifs"
1976 if test "X$pkg" = "X$p"; then
1977 enable_shared=yes
1978 fi
1979 done
1980 IFS="$lt_save_ifs"
1981 ;;
1982 esac],
1983 [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
1984 ])# AC_ENABLE_SHARED
1985
1986
1987 # AC_DISABLE_SHARED
1988 # -----------------
1989 # set the default shared flag to --disable-shared
1990 AC_DEFUN([AC_DISABLE_SHARED],
1991 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
1992 AC_ENABLE_SHARED(no)
1993 ])# AC_DISABLE_SHARED
1994
1995
1996 # AC_ENABLE_STATIC([DEFAULT])
1997 # ---------------------------
1998 # implement the --enable-static flag
1999 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2000 AC_DEFUN([AC_ENABLE_STATIC],
2001 [define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
2002 AC_ARG_ENABLE([static],
2003 [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
2004 [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
2005 [p=${PACKAGE-default}
2006 case $enableval in
2007 yes) enable_static=yes ;;
2008 no) enable_static=no ;;
2009 *)
2010 enable_static=no
2011 # Look at the argument we got. We use all the common list separators.
2012 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2013 for pkg in $enableval; do
2014 IFS="$lt_save_ifs"
2015 if test "X$pkg" = "X$p"; then
2016 enable_static=yes
2017 fi
2018 done
2019 IFS="$lt_save_ifs"
2020 ;;
2021 esac],
2022 [enable_static=]AC_ENABLE_STATIC_DEFAULT)
2023 ])# AC_ENABLE_STATIC
2024
2025
2026 # AC_DISABLE_STATIC
2027 # -----------------
2028 # set the default static flag to --disable-static
2029 AC_DEFUN([AC_DISABLE_STATIC],
2030 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2031 AC_ENABLE_STATIC(no)
2032 ])# AC_DISABLE_STATIC
2033
2034
2035 # AC_ENABLE_FAST_INSTALL([DEFAULT])
2036 # ---------------------------------
2037 # implement the --enable-fast-install flag
2038 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2039 AC_DEFUN([AC_ENABLE_FAST_INSTALL],
2040 [define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
2041 AC_ARG_ENABLE([fast-install],
2042 [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
2043 [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
2044 [p=${PACKAGE-default}
2045 case $enableval in
2046 yes) enable_fast_install=yes ;;
2047 no) enable_fast_install=no ;;
2048 *)
2049 enable_fast_install=no
2050 # Look at the argument we got. We use all the common list separators.
2051 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2052 for pkg in $enableval; do
2053 IFS="$lt_save_ifs"
2054 if test "X$pkg" = "X$p"; then
2055 enable_fast_install=yes
2056 fi
2057 done
2058 IFS="$lt_save_ifs"
2059 ;;
2060 esac],
2061 [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
2062 ])# AC_ENABLE_FAST_INSTALL
2063
2064
2065 # AC_DISABLE_FAST_INSTALL
2066 # -----------------------
2067 # set the default to --disable-fast-install
2068 AC_DEFUN([AC_DISABLE_FAST_INSTALL],
2069 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2070 AC_ENABLE_FAST_INSTALL(no)
2071 ])# AC_DISABLE_FAST_INSTALL
2072
2073
2074 # AC_LIBTOOL_PICMODE([MODE])
2075 # --------------------------
2076 # implement the --with-pic flag
2077 # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
2078 AC_DEFUN([AC_LIBTOOL_PICMODE],
2079 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2080 pic_mode=ifelse($#,1,$1,default)
2081 ])# AC_LIBTOOL_PICMODE
2082
2083
2084 # AC_PROG_EGREP
2085 # -------------
2086 # This is predefined starting with Autoconf 2.54, so this conditional
2087 # definition can be removed once we require Autoconf 2.54 or later.
2088 m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
2089 [AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
2090 [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2091 then ac_cv_prog_egrep='grep -E'
2092 else ac_cv_prog_egrep='egrep'
2093 fi])
2094 EGREP=$ac_cv_prog_egrep
2095 AC_SUBST([EGREP])
2096 ])])
2097
2098
2099 # AC_PATH_TOOL_PREFIX
2100 # -------------------
2101 # find a file program which can recognize shared library
2102 AC_DEFUN([AC_PATH_TOOL_PREFIX],
2103 [AC_REQUIRE([AC_PROG_EGREP])dnl
2104 AC_MSG_CHECKING([for $1])
2105 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
2106 [case $MAGIC_CMD in
2107 [[\\/*] | ?:[\\/]*])
2108 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2109 ;;
2110 *)
2111 lt_save_MAGIC_CMD="$MAGIC_CMD"
2112 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2113 dnl $ac_dummy forces splitting on constant user-supplied paths.
2114 dnl POSIX.2 word splitting is done only on the output of word expansions,
2115 dnl not every word. This closes a longstanding sh security hole.
2116 ac_dummy="ifelse([$2], , $PATH, [$2])"
2117 for ac_dir in $ac_dummy; do
2118 IFS="$lt_save_ifs"
2119 test -z "$ac_dir" && ac_dir=.
2120 if test -f $ac_dir/$1; then
2121 lt_cv_path_MAGIC_CMD="$ac_dir/$1"
2122 if test -n "$file_magic_test_file"; then
2123 case $deplibs_check_method in
2124 "file_magic "*)
2125 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
2126 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2127 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2128 $EGREP "$file_magic_regex" > /dev/null; then
2129 :
2130 else
2131 cat <<EOF 1>&2
2132
2133 *** Warning: the command libtool uses to detect shared libraries,
2134 *** $file_magic_cmd, produces output that libtool cannot recognize.
2135 *** The result is that libtool may fail to recognize shared libraries
2136 *** as such. This will affect the creation of libtool libraries that
2137 *** depend on shared libraries, but programs linked with such libtool
2138 *** libraries will work regardless of this problem. Nevertheless, you
2139 *** may want to report the problem to your system manager and/or to
2140 *** bug-libtool@gnu.org
2141
2142 EOF
2143 fi ;;
2144 esac
2145 fi
2146 break
2147 fi
2148 done
2149 IFS="$lt_save_ifs"
2150 MAGIC_CMD="$lt_save_MAGIC_CMD"
2151 ;;
2152 esac])
2153 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2154 if test -n "$MAGIC_CMD"; then
2155 AC_MSG_RESULT($MAGIC_CMD)
2156 else
2157 AC_MSG_RESULT(no)
2158 fi
2159 ])# AC_PATH_TOOL_PREFIX
2160
2161
2162 # AC_PATH_MAGIC
2163 # -------------
2164 # find a file program which can recognize a shared library
2165 AC_DEFUN([AC_PATH_MAGIC],
2166 [AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2167 if test -z "$lt_cv_path_MAGIC_CMD"; then
2168 if test -n "$ac_tool_prefix"; then
2169 AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
2170 else
2171 MAGIC_CMD=:
2172 fi
2173 fi
2174 ])# AC_PATH_MAGIC
2175
2176
2177 # AC_PROG_LD
2178 # ----------
2179 # find the pathname to the GNU or non-GNU linker
2180 AC_DEFUN([AC_PROG_LD],
2181 [AC_ARG_WITH([gnu-ld],
2182 [AC_HELP_STRING([--with-gnu-ld],
2183 [assume the C compiler uses GNU ld @<:@default=no@:>@])],
2184 [test "$withval" = no || with_gnu_ld=yes],
2185 [with_gnu_ld=no])
2186 AC_REQUIRE([LT_AC_PROG_SED])dnl
2187 AC_REQUIRE([AC_PROG_CC])dnl
2188 AC_REQUIRE([AC_CANONICAL_HOST])dnl
2189 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
2190 ac_prog=ld
2191 if test "$GCC" = yes; then
2192 # Check if gcc -print-prog-name=ld gives a path.
2193 AC_MSG_CHECKING([for ld used by $CC])
2194 case $host in
2195 *-*-mingw*)
2196 # gcc leaves a trailing carriage return which upsets mingw
2197 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2198 *)
2199 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2200 esac
2201 case $ac_prog in
2202 # Accept absolute paths.
2203 [[\\/]]* | ?:[[\\/]]*)
2204 re_direlt='/[[^/]][[^/]]*/\.\./'
2205 # Canonicalize the pathname of ld
2206 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
2207 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2208 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
2209 done
2210 test -z "$LD" && LD="$ac_prog"
2211 ;;
2212 "")
2213 # If it fails, then pretend we aren't using GCC.
2214 ac_prog=ld
2215 ;;
2216 *)
2217 # If it is relative, then search for the first ld in PATH.
2218 with_gnu_ld=unknown
2219 ;;
2220 esac
2221 elif test "$with_gnu_ld" = yes; then
2222 AC_MSG_CHECKING([for GNU ld])
2223 else
2224 AC_MSG_CHECKING([for non-GNU ld])
2225 fi
2226 AC_CACHE_VAL(lt_cv_path_LD,
2227 [if test -z "$LD"; then
2228 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2229 for ac_dir in $PATH; do
2230 IFS="$lt_save_ifs"
2231 test -z "$ac_dir" && ac_dir=.
2232 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2233 lt_cv_path_LD="$ac_dir/$ac_prog"
2234 # Check to see if the program is GNU ld. I'd rather use --version,
2235 # but apparently some variants of GNU ld only accept -v.
2236 # Break only if it was the GNU/non-GNU ld that we prefer.
2237 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2238 *GNU* | *'with BFD'*)
2239 test "$with_gnu_ld" != no && break
2240 ;;
2241 *)
2242 test "$with_gnu_ld" != yes && break
2243 ;;
2244 esac
2245 fi
2246 done
2247 IFS="$lt_save_ifs"
2248 else
2249 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2250 fi])
2251 LD="$lt_cv_path_LD"
2252 if test -n "$LD"; then
2253 AC_MSG_RESULT($LD)
2254 else
2255 AC_MSG_RESULT(no)
2256 fi
2257 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
2258 AC_PROG_LD_GNU
2259 ])# AC_PROG_LD
2260
2261
2262 # AC_PROG_LD_GNU
2263 # --------------
2264 AC_DEFUN([AC_PROG_LD_GNU],
2265 [AC_REQUIRE([AC_PROG_EGREP])dnl
2266 AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
2267 [# I'd rather use --version here, but apparently some GNU lds only accept -v.
2268 case `$LD -v 2>&1 </dev/null` in
2269 *GNU* | *'with BFD'*)
2270 lt_cv_prog_gnu_ld=yes
2271 ;;
2272 *)
2273 lt_cv_prog_gnu_ld=no
2274 ;;
2275 esac])
2276 with_gnu_ld=$lt_cv_prog_gnu_ld
2277 ])# AC_PROG_LD_GNU
2278
2279
2280 # AC_PROG_LD_RELOAD_FLAG
2281 # ----------------------
2282 # find reload flag for linker
2283 # -- PORTME Some linkers may need a different reload flag.
2284 AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
2285 [AC_CACHE_CHECK([for $LD option to reload object files],
2286 lt_cv_ld_reload_flag,
2287 [lt_cv_ld_reload_flag='-r'])
2288 reload_flag=$lt_cv_ld_reload_flag
2289 case $reload_flag in
2290 "" | " "*) ;;
2291 *) reload_flag=" $reload_flag" ;;
2292 esac
2293 reload_cmds='$LD$reload_flag -o $output$reload_objs'
2294 case $host_os in
2295 darwin*)
2296 if test "$GCC" = yes; then
2297 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
2298 else
2299 reload_cmds='$LD$reload_flag -o $output$reload_objs'
2300 fi
2301 ;;
2302 esac
2303 ])# AC_PROG_LD_RELOAD_FLAG
2304
2305
2306 # AC_DEPLIBS_CHECK_METHOD
2307 # -----------------------
2308 # how to check for library dependencies
2309 # -- PORTME fill in with the dynamic library characteristics
2310 AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
2311 [AC_CACHE_CHECK([how to recognize dependent libraries],
2312 lt_cv_deplibs_check_method,
2313 [lt_cv_file_magic_cmd='$MAGIC_CMD'
2314 lt_cv_file_magic_test_file=
2315 lt_cv_deplibs_check_method='unknown'
2316 # Need to set the preceding variable on all platforms that support
2317 # interlibrary dependencies.
2318 # 'none' -- dependencies not supported.
2319 # `unknown' -- same as none, but documents that we really don't know.
2320 # 'pass_all' -- all dependencies passed with no checks.
2321 # 'test_compile' -- check by making test program.
2322 # 'file_magic [[regex]]' -- check by looking for files in library path
2323 # which responds to the $file_magic_cmd with a given extended regex.
2324 # If you have `file' or equivalent on your system and you're not sure
2325 # whether `pass_all' will *always* work, you probably want this one.
2326
2327 case $host_os in
2328 aix4* | aix5*)
2329 lt_cv_deplibs_check_method=pass_all
2330 ;;
2331
2332 beos*)
2333 lt_cv_deplibs_check_method=pass_all
2334 ;;
2335
2336 bsdi[[45]]*)
2337 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
2338 lt_cv_file_magic_cmd='/usr/bin/file -L'
2339 lt_cv_file_magic_test_file=/shlib/libc.so
2340 ;;
2341
2342 cygwin*)
2343 # func_win32_libid is a shell function defined in ltmain.sh
2344 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2345 lt_cv_file_magic_cmd='func_win32_libid'
2346 ;;
2347
2348 mingw* | pw32*)
2349 # Base MSYS/MinGW do not provide the 'file' command needed by
2350 # func_win32_libid shell function, so use a weaker test based on 'objdump',
2351 # unless we find 'file', for example because we are cross-compiling.
2352 if ( file / ) >/dev/null 2>&1; then
2353 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2354 lt_cv_file_magic_cmd='func_win32_libid'
2355 else
2356 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2357 lt_cv_file_magic_cmd='$OBJDUMP -f'
2358 fi
2359 ;;
2360
2361 darwin* | rhapsody*)
2362 lt_cv_deplibs_check_method=pass_all
2363 ;;
2364
2365 freebsd* | dragonfly*)
2366 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2367 case $host_cpu in
2368 i*86 )
2369 # Not sure whether the presence of OpenBSD here was a mistake.
2370 # Let's accept both of them until this is cleared up.
2371 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
2372 lt_cv_file_magic_cmd=/usr/bin/file
2373 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2374 ;;
2375 esac
2376 else
2377 lt_cv_deplibs_check_method=pass_all
2378 fi
2379 ;;
2380
2381 gnu*)
2382 lt_cv_deplibs_check_method=pass_all
2383 ;;
2384
2385 hpux10.20* | hpux11*)
2386 lt_cv_file_magic_cmd=/usr/bin/file
2387 case $host_cpu in
2388 ia64*)
2389 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
2390 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2391 ;;
2392 hppa*64*)
2393 [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]']
2394 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
2395 ;;
2396 *)
2397 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
2398 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2399 ;;
2400 esac
2401 ;;
2402
2403 interix[[3-9]]*)
2404 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
2405 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
2406 ;;
2407
2408 irix5* | irix6* | nonstopux*)
2409 case $LD in
2410 *-32|*"-32 ") libmagic=32-bit;;
2411 *-n32|*"-n32 ") libmagic=N32;;
2412 *-64|*"-64 ") libmagic=64-bit;;
2413 *) libmagic=never-match;;
2414 esac
2415 lt_cv_deplibs_check_method=pass_all
2416 ;;
2417
2418 # This must be Linux ELF.
2419 linux* | k*bsd*-gnu)
2420 lt_cv_deplibs_check_method=pass_all
2421 ;;
2422
2423 netbsd*)
2424 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2425 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2426 else
2427 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
2428 fi
2429 ;;
2430
2431 newos6*)
2432 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
2433 lt_cv_file_magic_cmd=/usr/bin/file
2434 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2435 ;;
2436
2437 nto-qnx*)
2438 lt_cv_deplibs_check_method=unknown
2439 ;;
2440
2441 openbsd*)
2442 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2443 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
2444 else
2445 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2446 fi
2447 ;;
2448
2449 osf3* | osf4* | osf5*)
2450 lt_cv_deplibs_check_method=pass_all
2451 ;;
2452
2453 rdos*)
2454 lt_cv_deplibs_check_method=pass_all
2455 ;;
2456
2457 solaris*)
2458 lt_cv_deplibs_check_method=pass_all
2459 ;;
2460
2461 sysv4 | sysv4.3*)
2462 case $host_vendor in
2463 motorola)
2464 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]]'
2465 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2466 ;;
2467 ncr)
2468 lt_cv_deplibs_check_method=pass_all
2469 ;;
2470 sequent)
2471 lt_cv_file_magic_cmd='/bin/file'
2472 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
2473 ;;
2474 sni)
2475 lt_cv_file_magic_cmd='/bin/file'
2476 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
2477 lt_cv_file_magic_test_file=/lib/libc.so
2478 ;;
2479 siemens)
2480 lt_cv_deplibs_check_method=pass_all
2481 ;;
2482 pc)
2483 lt_cv_deplibs_check_method=pass_all
2484 ;;
2485 esac
2486 ;;
2487
2488 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
2489 lt_cv_deplibs_check_method=pass_all
2490 ;;
2491 esac
2492 ])
2493 file_magic_cmd=$lt_cv_file_magic_cmd
2494 deplibs_check_method=$lt_cv_deplibs_check_method
2495 test -z "$deplibs_check_method" && deplibs_check_method=unknown
2496 ])# AC_DEPLIBS_CHECK_METHOD
2497
2498
2499 # AC_PROG_NM
2500 # ----------
2501 # find the pathname to a BSD-compatible name lister
2502 AC_DEFUN([AC_PROG_NM],
2503 [AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
2504 [if test -n "$NM"; then
2505 # Let the user override the test.
2506 lt_cv_path_NM="$NM"
2507 else
2508 lt_nm_to_check="${ac_tool_prefix}nm"
2509 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
2510 lt_nm_to_check="$lt_nm_to_check nm"