Package list virt-viewer / 67b0e98
Imported Upstream version 0.2.0 Guido G√ľnther 12 years ago
39 changed file(s) with 21238 addition(s) and 22998 deletion(s). Raw diff Collapse all Expand all
99 Chris Lalancette <clalance-at-redhat-dot-com>
1010 Atsushi SAKAI <sakaia-at-jp-dot-fujitsu-dot-com>
1111 Richard W.M. Jones <rjones-at-redhat-dot-com>
12 Guido G\374nther <agx-at-sigxcpu-dot-org>
13 Hiroyuki Kaguchi <fj7025cf-at-aa-dot-jp-dot-fujitsu-dot-com>
1214
1315 ...send patches to get your name here...
1416
0 2008-03-10 "Richard W.M. Jones" <rjones@redhat.com>
1
2 * configure.ac, src/Makefile.am, src/main.c, src/usleep.c: Support
3 for building on Windows using MinGW compiler toolchain (or
4 for cross-compiling using the same).
5
6 * .hgignore: Ignore some generated files.
7
08 2008-03-09 "Daniel P. Berrange <berrange@redhat.com>
19
210 * autobuild.sh, configure.ac, virt-viewer.spec.in:
0 # Makefile.in generated by automake 1.10 from Makefile.am.
0 # Makefile.in generated by automake 1.11 from Makefile.am.
11 # @configure_input@
22
33 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
5 # Inc.
56 # This Makefile.in is free software; the Free Software Foundation
67 # gives unlimited permission to copy and/or distribute it,
78 # with or without modifications, as long as this notice is preserved.
1415 @SET_MAKE@
1516 VPATH = @srcdir@
1617 pkgdatadir = $(datadir)/@PACKAGE@
18 pkgincludedir = $(includedir)/@PACKAGE@
1719 pkglibdir = $(libdir)/@PACKAGE@
18 pkgincludedir = $(includedir)/@PACKAGE@
20 pkglibexecdir = $(libexecdir)/@PACKAGE@
1921 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
2022 install_sh_DATA = $(install_sh) -c -m 644
2123 install_sh_PROGRAM = $(install_sh) -c
3335 subdir = .
3436 DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
3537 $(srcdir)/Makefile.in $(srcdir)/config.h.in \
38 $(srcdir)/mingw32-virt-viewer.spec.in \
3639 $(srcdir)/virt-viewer.spec.in $(top_srcdir)/configure AUTHORS \
3740 COPYING ChangeLog INSTALL NEWS compile config.guess config.sub \
3841 depcomp install-sh ltmain.sh missing
4548 configure.lineno config.status.lineno
4649 mkinstalldirs = $(install_sh) -d
4750 CONFIG_HEADER = config.h
48 CONFIG_CLEAN_FILES = virt-viewer.spec
51 CONFIG_CLEAN_FILES = virt-viewer.spec mingw32-virt-viewer.spec
52 CONFIG_CLEAN_VPATH_FILES =
4953 SOURCES =
5054 DIST_SOURCES =
5155 RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
5761 ps-recursive uninstall-recursive
5862 RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
5963 distclean-recursive maintainer-clean-recursive
64 AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
65 $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
66 distdir dist dist-all distcheck
6067 ETAGS = etags
6168 CTAGS = ctags
6269 DIST_SUBDIRS = $(SUBDIRS)
6471 distdir = $(PACKAGE)-$(VERSION)
6572 top_distdir = $(distdir)
6673 am__remove_distdir = \
67 { test ! -d $(distdir) \
68 || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
69 && rm -fr $(distdir); }; }
74 { test ! -d "$(distdir)" \
75 || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
76 && rm -fr "$(distdir)"; }; }
77 am__relativize = \
78 dir0=`pwd`; \
79 sed_first='s,^\([^/]*\)/.*$$,\1,'; \
80 sed_rest='s,^[^/]*/*,,'; \
81 sed_last='s,^.*/\([^/]*\)$$,\1,'; \
82 sed_butlast='s,/*[^/]*$$,,'; \
83 while test -n "$$dir1"; do \
84 first=`echo "$$dir1" | sed -e "$$sed_first"`; \
85 if test "$$first" != "."; then \
86 if test "$$first" = ".."; then \
87 dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
88 dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
89 else \
90 first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
91 if test "$$first2" = "$$first"; then \
92 dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
93 else \
94 dir2="../$$dir2"; \
95 fi; \
96 dir0="$$dir0"/"$$first"; \
97 fi; \
98 fi; \
99 dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
100 done; \
101 reldir="$$dir2"
70102 DIST_ARCHIVES = $(distdir).tar.gz
71103 GZIP_ENV = --best
72104 distuninstallcheck_listfiles = find . -type f -print
83115 CFLAGS = @CFLAGS@
84116 CPP = @CPP@
85117 CPPFLAGS = @CPPFLAGS@
86 CXX = @CXX@
87 CXXCPP = @CXXCPP@
88 CXXDEPMODE = @CXXDEPMODE@
89 CXXFLAGS = @CXXFLAGS@
90118 CYGPATH_W = @CYGPATH_W@
91119 DEFS = @DEFS@
92120 DEPDIR = @DEPDIR@
93 ECHO = @ECHO@
121 DSYMUTIL = @DSYMUTIL@
122 DUMPBIN = @DUMPBIN@
94123 ECHO_C = @ECHO_C@
95124 ECHO_N = @ECHO_N@
96125 ECHO_T = @ECHO_T@
97126 EGREP = @EGREP@
98127 EXEEXT = @EXEEXT@
99 F77 = @F77@
100 FFLAGS = @FFLAGS@
128 FGREP = @FGREP@
101129 FIREFOX_PLUGIN_CFLAGS = @FIREFOX_PLUGIN_CFLAGS@
102130 FIREFOX_PLUGIN_LIBS = @FIREFOX_PLUGIN_LIBS@
103131 GREP = @GREP@
110138 INSTALL_PROGRAM = @INSTALL_PROGRAM@
111139 INSTALL_SCRIPT = @INSTALL_SCRIPT@
112140 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
141 LD = @LD@
113142 LDFLAGS = @LDFLAGS@
143 LIBGLADE2_CFLAGS = @LIBGLADE2_CFLAGS@
144 LIBGLADE2_LIBS = @LIBGLADE2_LIBS@
114145 LIBOBJS = @LIBOBJS@
115146 LIBS = @LIBS@
116147 LIBTOOL = @LIBTOOL@
118149 LIBVIRT_LIBS = @LIBVIRT_LIBS@
119150 LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
120151 LIBXML2_LIBS = @LIBXML2_LIBS@
152 LIPO = @LIPO@
121153 LN_S = @LN_S@
122154 LTLIBOBJS = @LTLIBOBJS@
123155 MAKEINFO = @MAKEINFO@
124156 MKDIR_P = @MKDIR_P@
125157 MOZILLA_PLUGIN_CFLAGS = @MOZILLA_PLUGIN_CFLAGS@
126158 MOZILLA_PLUGIN_LIBS = @MOZILLA_PLUGIN_LIBS@
159 NM = @NM@
160 NMEDIT = @NMEDIT@
127161 NSPR_CFLAGS = @NSPR_CFLAGS@
128162 NSPR_LIBS = @NSPR_LIBS@
163 OBJDUMP = @OBJDUMP@
129164 OBJEXT = @OBJEXT@
165 OTOOL = @OTOOL@
166 OTOOL64 = @OTOOL64@
130167 PACKAGE = @PACKAGE@
131168 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
132169 PACKAGE_NAME = @PACKAGE_NAME@
147184 abs_top_builddir = @abs_top_builddir@
148185 abs_top_srcdir = @abs_top_srcdir@
149186 ac_ct_CC = @ac_ct_CC@
150 ac_ct_CXX = @ac_ct_CXX@
151 ac_ct_F77 = @ac_ct_F77@
187 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
152188 am__include = @am__include@
153189 am__leading_dot = @am__leading_dot@
154190 am__quote = @am__quote@
179215 libexecdir = @libexecdir@
180216 localedir = @localedir@
181217 localstatedir = @localstatedir@
218 lt_ECHO = @lt_ECHO@
182219 mandir = @mandir@
183220 mkdir_p = @mkdir_p@
184221 oldincludedir = @oldincludedir@
191228 srcdir = @srcdir@
192229 sysconfdir = @sysconfdir@
193230 target_alias = @target_alias@
231 top_build_prefix = @top_build_prefix@
194232 top_builddir = @top_builddir@
195233 top_srcdir = @top_srcdir@
196234 SUBDIRS = src man plugin
206244 @for dep in $?; do \
207245 case '$(am__configure_deps)' in \
208246 *$$dep*) \
209 echo ' cd $(srcdir) && $(AUTOMAKE) --gnu '; \
210 cd $(srcdir) && $(AUTOMAKE) --gnu \
247 echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \
248 $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \
211249 && exit 0; \
212250 exit 1;; \
213251 esac; \
214252 done; \
215 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
216 cd $(top_srcdir) && \
217 $(AUTOMAKE) --gnu Makefile
253 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
254 $(am__cd) $(top_srcdir) && \
255 $(AUTOMAKE) --gnu Makefile
218256 .PRECIOUS: Makefile
219257 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
220258 @case '$?' in \
230268 $(SHELL) ./config.status --recheck
231269
232270 $(top_srcdir)/configure: $(am__configure_deps)
233 cd $(srcdir) && $(AUTOCONF)
271 $(am__cd) $(srcdir) && $(AUTOCONF)
234272 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
235 cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
273 $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
274 $(am__aclocal_m4_deps):
236275
237276 config.h: stamp-h1
238277 @if test ! -f $@; then \
244283 @rm -f stamp-h1
245284 cd $(top_builddir) && $(SHELL) ./config.status config.h
246285 $(srcdir)/config.h.in: $(am__configure_deps)
247 cd $(top_srcdir) && $(AUTOHEADER)
286 ($(am__cd) $(top_srcdir) && $(AUTOHEADER))
248287 rm -f stamp-h1
249288 touch $@
250289
252291 -rm -f config.h stamp-h1
253292 virt-viewer.spec: $(top_builddir)/config.status $(srcdir)/virt-viewer.spec.in
254293 cd $(top_builddir) && $(SHELL) ./config.status $@
294 mingw32-virt-viewer.spec: $(top_builddir)/config.status $(srcdir)/mingw32-virt-viewer.spec.in
295 cd $(top_builddir) && $(SHELL) ./config.status $@
255296
256297 mostlyclean-libtool:
257298 -rm -f *.lo
260301 -rm -rf .libs _libs
261302
262303 distclean-libtool:
263 -rm -f libtool
304 -rm -f libtool config.lt
264305
265306 # This directory's subdirectories are mostly independent; you can cd
266307 # into them and run `make' without going through this Makefile.
286327 else \
287328 local_target="$$target"; \
288329 fi; \
289 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
330 ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
290331 || eval $$failcom; \
291332 done; \
292333 if test "$$dot_seen" = "no"; then \
320361 else \
321362 local_target="$$target"; \
322363 fi; \
323 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
364 ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
324365 || eval $$failcom; \
325366 done && test -z "$$fail"
326367 tags-recursive:
327368 list='$(SUBDIRS)'; for subdir in $$list; do \
328 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
369 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
329370 done
330371 ctags-recursive:
331372 list='$(SUBDIRS)'; for subdir in $$list; do \
332 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
373 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
333374 done
334375
335376 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
337378 unique=`for i in $$list; do \
338379 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
339380 done | \
340 $(AWK) ' { files[$$0] = 1; } \
341 END { for (i in files) print i; }'`; \
381 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
382 END { if (nonempty) { for (i in files) print i; }; }'`; \
342383 mkid -fID $$unique
343384 tags: TAGS
344385
345386 TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
346387 $(TAGS_FILES) $(LISP)
347 tags=; \
388 set x; \
348389 here=`pwd`; \
349390 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
350391 include_option=--etags-include; \
356397 list='$(SUBDIRS)'; for subdir in $$list; do \
357398 if test "$$subdir" = .; then :; else \
358399 test ! -f $$subdir/TAGS || \
359 tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
400 set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
360401 fi; \
361402 done; \
362403 list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
363404 unique=`for i in $$list; do \
364405 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
365406 done | \
366 $(AWK) ' { files[$$0] = 1; } \
367 END { for (i in files) print i; }'`; \
368 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
407 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
408 END { if (nonempty) { for (i in files) print i; }; }'`; \
409 shift; \
410 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
369411 test -n "$$unique" || unique=$$empty_fix; \
370 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
371 $$tags $$unique; \
412 if test $$# -gt 0; then \
413 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
414 "$$@" $$unique; \
415 else \
416 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
417 $$unique; \
418 fi; \
372419 fi
373420 ctags: CTAGS
374421 CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
375422 $(TAGS_FILES) $(LISP)
376 tags=; \
377 here=`pwd`; \
378423 list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
379424 unique=`for i in $$list; do \
380425 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
381426 done | \
382 $(AWK) ' { files[$$0] = 1; } \
383 END { for (i in files) print i; }'`; \
384 test -z "$(CTAGS_ARGS)$$tags$$unique" \
427 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
428 END { if (nonempty) { for (i in files) print i; }; }'`; \
429 test -z "$(CTAGS_ARGS)$$unique" \
385430 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
386 $$tags $$unique
431 $$unique
387432
388433 GTAGS:
389434 here=`$(am__cd) $(top_builddir) && pwd` \
390 && cd $(top_srcdir) \
391 && gtags -i $(GTAGS_ARGS) $$here
435 && $(am__cd) $(top_srcdir) \
436 && gtags -i $(GTAGS_ARGS) "$$here"
392437
393438 distclean-tags:
394439 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
395440
396441 distdir: $(DISTFILES)
397442 $(am__remove_distdir)
398 test -d $(distdir) || mkdir $(distdir)
443 test -d "$(distdir)" || mkdir "$(distdir)"
399444 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
400445 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
401446 list='$(DISTFILES)'; \
411456 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
412457 if test -d $$d/$$file; then \
413458 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
459 if test -d "$(distdir)/$$file"; then \
460 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
461 fi; \
414462 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
415 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
463 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
464 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
416465 fi; \
417 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
466 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
418467 else \
419 test -f $(distdir)/$$file \
420 || cp -p $$d/$$file $(distdir)/$$file \
468 test -f "$(distdir)/$$file" \
469 || cp -p $$d/$$file "$(distdir)/$$file" \
421470 || exit 1; \
422471 fi; \
423472 done
424 list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
473 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
425474 if test "$$subdir" = .; then :; else \
426475 test -d "$(distdir)/$$subdir" \
427476 || $(MKDIR_P) "$(distdir)/$$subdir" \
428477 || exit 1; \
429 distdir=`$(am__cd) $(distdir) && pwd`; \
430 top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
431 (cd $$subdir && \
478 fi; \
479 done
480 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
481 if test "$$subdir" = .; then :; else \
482 dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
483 $(am__relativize); \
484 new_distdir=$$reldir; \
485 dir1=$$subdir; dir2="$(top_distdir)"; \
486 $(am__relativize); \
487 new_top_distdir=$$reldir; \
488 echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
489 echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
490 ($(am__cd) $$subdir && \
432491 $(MAKE) $(AM_MAKEFLAGS) \
433 top_distdir="$$top_distdir" \
434 distdir="$$distdir/$$subdir" \
492 top_distdir="$$new_top_distdir" \
493 distdir="$$new_distdir" \
435494 am__remove_distdir=: \
436495 am__skip_length_check=: \
496 am__skip_mode_fix=: \
437497 distdir) \
438498 || exit 1; \
439499 fi; \
440500 done
441 -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
501 -test -n "$(am__skip_mode_fix)" \
502 || find "$(distdir)" -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
442503 ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
443504 ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
444505 ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
445 || chmod -R a+r $(distdir)
506 || chmod -R a+r "$(distdir)"
446507 dist-gzip: distdir
447508 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
448509 $(am__remove_distdir)
449510
450511 dist-bzip2: distdir
451512 tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
513 $(am__remove_distdir)
514
515 dist-lzma: distdir
516 tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
517 $(am__remove_distdir)
518
519 dist-xz: distdir
520 tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz
452521 $(am__remove_distdir)
453522
454523 dist-tarZ: distdir
477546 GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
478547 *.tar.bz2*) \
479548 bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
549 *.tar.lzma*) \
550 unlzma -c $(distdir).tar.lzma | $(am__untar) ;;\
551 *.tar.xz*) \
552 xz -dc $(distdir).tar.xz | $(am__untar) ;;\
480553 *.tar.Z*) \
481554 uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
482555 *.shar.gz*) \
488561 mkdir $(distdir)/_build
489562 mkdir $(distdir)/_inst
490563 chmod a-w $(distdir)
564 test -d $(distdir)/_build || exit 0; \
491565 dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
492566 && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
493 && cd $(distdir)/_build \
567 && am__cwd=`pwd` \
568 && $(am__cd) $(distdir)/_build \
494569 && ../configure --srcdir=.. --prefix="$$dc_install_base" \
495570 $(DISTCHECK_CONFIGURE_FLAGS) \
496571 && $(MAKE) $(AM_MAKEFLAGS) \
512587 && rm -rf "$$dc_destdir" \
513588 && $(MAKE) $(AM_MAKEFLAGS) dist \
514589 && rm -rf $(DIST_ARCHIVES) \
515 && $(MAKE) $(AM_MAKEFLAGS) distcleancheck
590 && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
591 && cd "$$am__cwd" \
592 || exit 1
516593 $(am__remove_distdir)
517594 @(echo "$(distdir) archives ready for distribution: "; \
518595 list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
519596 sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
520597 distuninstallcheck:
521 @cd $(distuninstallcheck_dir) \
598 @$(am__cd) '$(distuninstallcheck_dir)' \
522599 && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
523600 || { echo "ERROR: files left after uninstall:" ; \
524601 if test -n "$(DESTDIR)"; then \
560637
561638 distclean-generic:
562639 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
640 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
563641
564642 maintainer-clean-generic:
565643 @echo "This command is intended for maintainers to use"
580658
581659 html: html-recursive
582660
661 html-am:
662
583663 info: info-recursive
584664
585665 info-am:
588668
589669 install-dvi: install-dvi-recursive
590670
671 install-dvi-am:
672
591673 install-exec-am:
592674
593675 install-html: install-html-recursive
594676
677 install-html-am:
678
595679 install-info: install-info-recursive
596680
681 install-info-am:
682
597683 install-man:
598684
599685 install-pdf: install-pdf-recursive
600686
687 install-pdf-am:
688
601689 install-ps: install-ps-recursive
690
691 install-ps-am:
602692
603693 installcheck-am:
604694
622712
623713 uninstall-am:
624714
625 .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \
626 install-strip
715 .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all \
716 ctags-recursive install-am install-strip tags-recursive
627717
628718 .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
629719 all all-am am--refresh check check-am clean clean-generic \
630720 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
721 dist-gzip dist-lzma dist-shar dist-tarZ dist-xz dist-zip \
722 distcheck distclean distclean-generic distclean-hdr \
723 distclean-libtool distclean-tags distcleancheck distdir \
724 distuninstallcheck dvi dvi-am html html-am info info-am \
725 install install-am install-data install-data-am install-dvi \
726 install-dvi-am install-exec install-exec-am install-html \
727 install-html-am install-info install-info-am install-man \
728 install-pdf install-pdf-am install-ps install-ps-am \
729 install-strip installcheck installcheck-am installdirs \
730 installdirs-am maintainer-clean maintainer-clean-generic \
731 mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
732 ps ps-am tags tags-recursive uninstall uninstall-am
733
643734
644735 # Tell versions [3.59,3.63) of GNU make to not export all variables.
645736 # Otherwise a system limit (for SysV at least) may be exceeded.
00 Virt Viewer News
11 ================
22
3 March 10, 2008
4 --------------
3 0.2.0: July 20, 2009
4 --------------------
5
6 - Switch UI over to use Glade
7 - Support graphical dialog for VNC and libvirt authentication
8 - Resize window to match VNC desktop size where possible
9 - Scale down VNC desktop if it cannot fit in host desktop space
10 - Allow user to resize window to arbitrary size, scaling VNC
11 - Fix blocking of accelerators
12 - Allow automatic reconnect to a VM via --reconnect
13 - Use libvirt events to detect when VM changes state
14 - Wait for VM to appear if it does not exist
15 - Fix plugin build with newer xulrunner
16 - Port & build for Mingw32 target
17
18 0.0.3: March 10, 2008
19 ---------------------
520
621 - Block accelerators when grab is active
722 - Enable smooth scaling of desktop to fill screen
924 - Hide characters in password entry field
1025 - Use domain name in title bar instead of VNC desktop name
1126
12 August 28, 2007
13 ---------------
27 0.0.2: August 28, 2007
28 ----------------------
1429
1530 - Support connecting to remote libvirt servers
1631 - Support connecting to remote VNC consoles
1732 - Support tunneling VNC over SSH
1833 - Support TLS x509 certificate credentials
1934
20 August 15, 2007
21 ---------------
35 0.0.1: August 15, 2007
36 ----------------------
2237
2338 - Initial release
+5502
-4033
aclocal.m4 less more
0 # generated automatically by aclocal 1.10 -*- Autoconf -*-
0 # generated automatically by aclocal 1.11 -*- Autoconf -*-
11
22 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
3 # 2005, 2006 Free Software Foundation, Inc.
3 # 2005, 2006, 2007, 2008, 2009 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.
1010 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
1111 # PARTICULAR PURPOSE.
1212
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])])
13 m4_ifndef([AC_AUTOCONF_VERSION],
14 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
15 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.63],,
16 [m4_warning([this file was generated for autoconf 2.63.
17 You have another version of autoconf. It may work, but is not guaranteed to.
18 If you have problems, you may need to regenerate the build system entirely.
19 To do so, use the procedure documented by the package, typically `autoreconf'.])])
1720
1821 # 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
22 #
23 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
24 # 2006, 2007, 2008 Free Software Foundation, Inc.
25 # Written by Gordon Matzigkeit, 1996
26 #
27 # This file is free software; the Free Software Foundation gives
28 # unlimited permission to copy and/or distribute it, with or without
29 # modifications, as long as this notice is preserved.
30
31 m4_define([_LT_COPYING], [dnl
32 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
33 # 2006, 2007, 2008 Free Software Foundation, Inc.
34 # Written by Gordon Matzigkeit, 1996
35 #
36 # This file is part of GNU Libtool.
37 #
38 # GNU Libtool is free software; you can redistribute it and/or
39 # modify it under the terms of the GNU General Public License as
40 # published by the Free Software Foundation; either version 2 of
41 # the License, or (at your option) any later version.
42 #
43 # As a special exception to the GNU General Public License,
44 # if you distribute this file as part of a program or library that
45 # is built using GNU Libtool, you may include this file under the
46 # same distribution terms that you use for the rest of that program.
47 #
48 # GNU Libtool is distributed in the hope that it will be useful,
49 # but WITHOUT ANY WARRANTY; without even the implied warranty of
50 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
51 # GNU General Public License for more details.
52 #
53 # You should have received a copy of the GNU General Public License
54 # along with GNU Libtool; see the file COPYING. If not, a copy
55 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
56 # obtained by writing to the Free Software Foundation, Inc.,
57 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
58 ])
59
60 # serial 56 LT_INIT
61
62
63 # LT_PREREQ(VERSION)
64 # ------------------
65 # Complain and exit if this libtool version is less that VERSION.
66 m4_defun([LT_PREREQ],
67 [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
68 [m4_default([$3],
69 [m4_fatal([Libtool version $1 or higher is required],
70 63)])],
71 [$2])])
72
73
74 # _LT_CHECK_BUILDDIR
75 # ------------------
76 # Complain if the absolute build directory name contains unusual characters
77 m4_defun([_LT_CHECK_BUILDDIR],
78 [case `pwd` in
79 *\ * | *\ *)
80 AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
81 esac
82 ])
83
84
85 # LT_INIT([OPTIONS])
86 # ------------------
87 AC_DEFUN([LT_INIT],
88 [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
89 AC_BEFORE([$0], [LT_LANG])dnl
90 AC_BEFORE([$0], [LT_OUTPUT])dnl
91 AC_BEFORE([$0], [LTDL_INIT])dnl
92 m4_require([_LT_CHECK_BUILDDIR])dnl
93
94 dnl Autoconf doesn't catch unexpanded LT_ macros by default:
95 m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
96 m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
97 dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
98 dnl unless we require an AC_DEFUNed macro:
99 AC_REQUIRE([LTOPTIONS_VERSION])dnl
100 AC_REQUIRE([LTSUGAR_VERSION])dnl
101 AC_REQUIRE([LTVERSION_VERSION])dnl
102 AC_REQUIRE([LTOBSOLETE_VERSION])dnl
103 m4_require([_LT_PROG_LTMAIN])dnl
104
105 dnl Parse OPTIONS
106 _LT_SET_OPTIONS([$0], [$1])
75107
76108 # This can be used to rebuild libtool when needed
77 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
109 LIBTOOL_DEPS="$ltmain"
78110
79111 # Always use our own libtool.
80112 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
81113 AC_SUBST(LIBTOOL)dnl
82114
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
115 _LT_SETUP
116
117 # Only expand once:
118 m4_define([LT_INIT])
119 ])# LT_INIT
120
121 # Old names:
122 AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
123 AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
124 dnl aclocal-1.4 backwards compatibility:
125 dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
126 dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
127
128
129 # _LT_CC_BASENAME(CC)
130 # -------------------
131 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
132 m4_defun([_LT_CC_BASENAME],
133 [for cc_temp in $1""; do
134 case $cc_temp in
135 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
136 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
137 \-*) ;;
138 *) break;;
139 esac
140 done
141 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
142 ])
143
144
145 # _LT_FILEUTILS_DEFAULTS
146 # ----------------------
147 # It is okay to use these file commands and assume they have been set
148 # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
149 m4_defun([_LT_FILEUTILS_DEFAULTS],
150 [: ${CP="cp -f"}
151 : ${MV="mv -f"}
152 : ${RM="rm -f"}
153 ])# _LT_FILEUTILS_DEFAULTS
154
155
156 # _LT_SETUP
157 # ---------
158 m4_defun([_LT_SETUP],
159 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
96160 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
161 _LT_DECL([], [host_alias], [0], [The host system])dnl
162 _LT_DECL([], [host], [0])dnl
163 _LT_DECL([], [host_os], [0])dnl
164 dnl
165 _LT_DECL([], [build_alias], [0], [The build system])dnl
166 _LT_DECL([], [build], [0])dnl
167 _LT_DECL([], [build_os], [0])dnl
168 dnl
97169 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
170 AC_REQUIRE([LT_PATH_LD])dnl
171 AC_REQUIRE([LT_PATH_NM])dnl
172 dnl
102173 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
174 test -z "$LN_S" && LN_S="ln -s"
175 _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
107176 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
177 AC_REQUIRE([LT_CMD_MAX_LEN])dnl
178 _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
179 _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
180 dnl
181 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
182 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
183 m4_require([_LT_CMD_RELOAD])dnl
184 m4_require([_LT_CHECK_MAGIC_METHOD])dnl
185 m4_require([_LT_CMD_OLD_ARCHIVE])dnl
186 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
187
188 _LT_CONFIG_LIBTOOL_INIT([
189 # See if we are running on zsh, and set the options which allow our
190 # commands through without removal of \ escapes INIT.
191 if test -n "\${ZSH_VERSION+set}" ; then
192 setopt NO_GLOB_SUBST
193 fi
194 ])
195 if test -n "${ZSH_VERSION+set}" ; then
196 setopt NO_GLOB_SUBST
197 fi
198
199 _LT_CHECK_OBJDIR
200
201 m4_require([_LT_TAG_COMPILER])dnl
202 _LT_PROG_ECHO_BACKSLASH
115203
116204 case $host_os in
117205 aix3*)
127215
128216 # Sed substitution that helps us do robust quoting. It backslashifies
129217 # metacharacters that are still active within double-quoted strings.
130 Xsed='sed -e 1s/^X//'
131 [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
218 sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
132219
133220 # Same as above, but do not quote variable references.
134 [double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
221 double_quote_subst='s/\([["`\\]]\)/\\\1/g'
135222
136223 # Sed substitution to delay expansion of an escaped shell variable in a
137224 # double_quote_subst'ed string.
138225 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
139226
227 # Sed substitution to delay expansion of an escaped single quote.
228 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
229
140230 # Sed substitution to avoid accidental globbing in evaled expressions
141231 no_glob_subst='s/\*/\\\*/g'
142232
143 # Constants:
144 rm="rm -f"
145
146233 # Global variables:
147 default_ofile=libtool
234 ofile=libtool
148235 can_build_shared=yes
149236
150237 # All known linkers require a `.a' archive for static linking (except MSVC,
151238 # which needs '.lib').
152239 libext=a
153 ltmain="$ac_aux_dir/ltmain.sh"
154 ofile="$default_ofile"
240
155241 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, :)
160242
161243 old_CC="$CC"
162244 old_CFLAGS="$CFLAGS"
163245
164246 # 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
168247 test -z "$CC" && CC=cc
169248 test -z "$LTCC" && LTCC=$CC
170249 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
171 test -z "$DLLTOOL" && DLLTOOL=dlltool
172250 test -z "$LD" && LD=ld
173 test -z "$LN_S" && LN_S="ln -s"
251 test -z "$ac_objext" && ac_objext=o
252
253 _LT_CC_BASENAME([$compiler])
254
255 # Only perform the check for file, if the check method requires it
174256 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
202257 case $deplibs_check_method in
203258 file_magic*)
204259 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
205 AC_PATH_MAGIC
260 _LT_PATH_MAGIC
206261 fi
207262 ;;
208263 esac
209264
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
226265 # 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
266 LT_SUPPORTED_TAG([CC])
267 _LT_LANG_C_CONFIG
268 _LT_LANG_DEFAULT_CONFIG
269 _LT_CONFIG_COMMANDS
270 ])# _LT_SETUP
271
272
273 # _LT_PROG_LTMAIN
274 # ---------------
275 # Note that this code is called both from `configure', and `config.status'
276 # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
277 # `config.status' has no value for ac_aux_dir unless we are using Automake,
278 # so we pass a copy along to make sure it has a sensible value anyway.
279 m4_defun([_LT_PROG_LTMAIN],
280 [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
281 _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
282 ltmain="$ac_aux_dir/ltmain.sh"
283 ])# _LT_PROG_LTMAIN
284
285
286
287 # So that we can recreate a full libtool script including additional
288 # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
289 # in macros and then make a single call at the end using the `libtool'
290 # label.
291
292
293 # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
294 # ----------------------------------------
295 # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
296 m4_define([_LT_CONFIG_LIBTOOL_INIT],
297 [m4_ifval([$1],
298 [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
299 [$1
300 ])])])
301
302 # Initialize.
303 m4_define([_LT_OUTPUT_LIBTOOL_INIT])
304
305
306 # _LT_CONFIG_LIBTOOL([COMMANDS])
307 # ------------------------------
308 # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
309 m4_define([_LT_CONFIG_LIBTOOL],
310 [m4_ifval([$1],
311 [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
312 [$1
313 ])])])
314
315 # Initialize.
316 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
317
318
319 # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
320 # -----------------------------------------------------
321 m4_defun([_LT_CONFIG_SAVE_COMMANDS],
322 [_LT_CONFIG_LIBTOOL([$1])
323 _LT_CONFIG_LIBTOOL_INIT([$2])
324 ])
325
326
327 # _LT_FORMAT_COMMENT([COMMENT])
328 # -----------------------------
329 # Add leading comment marks to the start of each line, and a trailing
330 # full-stop to the whole comment if one is not present already.
331 m4_define([_LT_FORMAT_COMMENT],
332 [m4_ifval([$1], [
333 m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
334 [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
335 )])
336
337
338
339
340
341 # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
342 # -------------------------------------------------------------------
343 # CONFIGNAME is the name given to the value in the libtool script.
344 # VARNAME is the (base) name used in the configure script.
345 # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
346 # VARNAME. Any other value will be used directly.
347 m4_define([_LT_DECL],
348 [lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
349 [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
350 [m4_ifval([$1], [$1], [$2])])
351 lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
352 m4_ifval([$4],
353 [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
354 lt_dict_add_subkey([lt_decl_dict], [$2],
355 [tagged?], [m4_ifval([$5], [yes], [no])])])
356 ])
357
358
359 # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
360 # --------------------------------------------------------
361 m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
362
363
364 # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
365 # ------------------------------------------------
366 m4_define([lt_decl_tag_varnames],
367 [_lt_decl_filter([tagged?], [yes], $@)])
368
369
370 # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
371 # ---------------------------------------------------------
372 m4_define([_lt_decl_filter],
373 [m4_case([$#],
374 [0], [m4_fatal([$0: too few arguments: $#])],
375 [1], [m4_fatal([$0: too few arguments: $#: $1])],
376 [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
377 [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
378 [lt_dict_filter([lt_decl_dict], $@)])[]dnl
379 ])
380
381
382 # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
383 # --------------------------------------------------
384 m4_define([lt_decl_quote_varnames],
385 [_lt_decl_filter([value], [1], $@)])
386
387
388 # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
389 # ---------------------------------------------------
390 m4_define([lt_decl_dquote_varnames],
391 [_lt_decl_filter([value], [2], $@)])
392
393
394 # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
395 # ---------------------------------------------------
396 m4_define([lt_decl_varnames_tagged],
397 [m4_assert([$# <= 2])dnl
398 _$0(m4_quote(m4_default([$1], [[, ]])),
399 m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
400 m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
401 m4_define([_lt_decl_varnames_tagged],
402 [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
403
404
405 # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
406 # ------------------------------------------------
407 m4_define([lt_decl_all_varnames],
408 [_$0(m4_quote(m4_default([$1], [[, ]])),
409 m4_if([$2], [],
410 m4_quote(lt_decl_varnames),
411 m4_quote(m4_shift($@))))[]dnl
412 ])
413 m4_define([_lt_decl_all_varnames],
414 [lt_join($@, lt_decl_varnames_tagged([$1],
415 lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
416 ])
417
418
419 # _LT_CONFIG_STATUS_DECLARE([VARNAME])
420 # ------------------------------------
421 # Quote a variable value, and forward it to `config.status' so that its
422 # declaration there will have the same value as in `configure'. VARNAME
423 # must have a single quote delimited value for this to work.
424 m4_define([_LT_CONFIG_STATUS_DECLARE],
425 [$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
426
427
428 # _LT_CONFIG_STATUS_DECLARATIONS
429 # ------------------------------
430 # We delimit libtool config variables with single quotes, so when
431 # we write them to config.status, we have to be sure to quote all
432 # embedded single quotes properly. In configure, this macro expands
433 # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
434 #
435 # <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
436 m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
437 [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
438 [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
439
440
441 # _LT_LIBTOOL_TAGS
442 # ----------------
443 # Output comment and list of tags supported by the script
444 m4_defun([_LT_LIBTOOL_TAGS],
445 [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
446 available_tags="_LT_TAGS"dnl
447 ])
448
449
450 # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
451 # -----------------------------------
452 # Extract the dictionary values for VARNAME (optionally with TAG) and
453 # expand to a commented shell variable setting:
454 #
455 # # Some comment about what VAR is for.
456 # visible_name=$lt_internal_name
457 m4_define([_LT_LIBTOOL_DECLARE],
458 [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
459 [description])))[]dnl
460 m4_pushdef([_libtool_name],
461 m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
462 m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
463 [0], [_libtool_name=[$]$1],
464 [1], [_libtool_name=$lt_[]$1],
465 [2], [_libtool_name=$lt_[]$1],
466 [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
467 m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
468 ])
469
470
471 # _LT_LIBTOOL_CONFIG_VARS
472 # -----------------------
473 # Produce commented declarations of non-tagged libtool config variables
474 # suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
475 # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
476 # section) are produced by _LT_LIBTOOL_TAG_VARS.
477 m4_defun([_LT_LIBTOOL_CONFIG_VARS],
478 [m4_foreach([_lt_var],
479 m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
480 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
481
482
483 # _LT_LIBTOOL_TAG_VARS(TAG)
484 # -------------------------
485 m4_define([_LT_LIBTOOL_TAG_VARS],
486 [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
487 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
488
489
490 # _LT_TAGVAR(VARNAME, [TAGNAME])
491 # ------------------------------
492 m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
493
494
495 # _LT_CONFIG_COMMANDS
234496 # -------------------
235 AC_DEFUN([_LT_AC_SYS_COMPILER],
497 # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
498 # variables for single and double quote escaping we saved from calls
499 # to _LT_DECL, we can put quote escaped variables declarations
500 # into `config.status', and then the shell code to quote escape them in
501 # for loops in `config.status'. Finally, any additional code accumulated
502 # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
503 m4_defun([_LT_CONFIG_COMMANDS],
504 [AC_PROVIDE_IFELSE([LT_OUTPUT],
505 dnl If the libtool generation code has been placed in $CONFIG_LT,
506 dnl instead of duplicating it all over again into config.status,
507 dnl then we will have config.status run $CONFIG_LT later, so it
508 dnl needs to know what name is stored there:
509 [AC_CONFIG_COMMANDS([libtool],
510 [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
511 dnl If the libtool generation code is destined for config.status,
512 dnl expand the accumulated commands and init code now:
513 [AC_CONFIG_COMMANDS([libtool],
514 [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
515 ])#_LT_CONFIG_COMMANDS
516
517
518 # Initialize.
519 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
520 [
521
522 # The HP-UX ksh and POSIX shell print the target directory to stdout
523 # if CDPATH is set.
524 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
525
526 sed_quote_subst='$sed_quote_subst'
527 double_quote_subst='$double_quote_subst'
528 delay_variable_subst='$delay_variable_subst'
529 _LT_CONFIG_STATUS_DECLARATIONS
530 LTCC='$LTCC'
531 LTCFLAGS='$LTCFLAGS'
532 compiler='$compiler_DEFAULT'
533
534 # Quote evaled strings.
535 for var in lt_decl_all_varnames([[ \
536 ]], lt_decl_quote_varnames); do
537 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
538 *[[\\\\\\\`\\"\\\$]]*)
539 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
540 ;;
541 *)
542 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
543 ;;
544 esac
545 done
546
547 # Double-quote double-evaled strings.
548 for var in lt_decl_all_varnames([[ \
549 ]], lt_decl_dquote_varnames); do
550 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
551 *[[\\\\\\\`\\"\\\$]]*)
552 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
553 ;;
554 *)
555 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
556 ;;
557 esac
558 done
559
560 # Fix-up fallback echo if it was mangled by the above quoting rules.
561 case \$lt_ECHO in
562 *'\\\[$]0 --fallback-echo"')dnl "
563 lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
564 ;;
565 esac
566
567 _LT_OUTPUT_LIBTOOL_INIT
568 ])
569
570
571 # LT_OUTPUT
572 # ---------
573 # This macro allows early generation of the libtool script (before
574 # AC_OUTPUT is called), incase it is used in configure for compilation
575 # tests.
576 AC_DEFUN([LT_OUTPUT],
577 [: ${CONFIG_LT=./config.lt}
578 AC_MSG_NOTICE([creating $CONFIG_LT])
579 cat >"$CONFIG_LT" <<_LTEOF
580 #! $SHELL
581 # Generated by $as_me.
582 # Run this file to recreate a libtool stub with the current configuration.
583
584 lt_cl_silent=false
585 SHELL=\${CONFIG_SHELL-$SHELL}
586 _LTEOF
587
588 cat >>"$CONFIG_LT" <<\_LTEOF
589 AS_SHELL_SANITIZE
590 _AS_PREPARE
591
592 exec AS_MESSAGE_FD>&1
593 exec AS_MESSAGE_LOG_FD>>config.log
594 {
595 echo
596 AS_BOX([Running $as_me.])
597 } >&AS_MESSAGE_LOG_FD
598
599 lt_cl_help="\
600 \`$as_me' creates a local libtool stub from the current configuration,
601 for use in further configure time tests before the real libtool is
602 generated.
603
604 Usage: $[0] [[OPTIONS]]
605
606 -h, --help print this help, then exit
607 -V, --version print version number, then exit
608 -q, --quiet do not print progress messages
609 -d, --debug don't remove temporary files
610
611 Report bugs to <bug-libtool@gnu.org>."
612
613 lt_cl_version="\
614 m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
615 m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
616 configured by $[0], generated by m4_PACKAGE_STRING.
617
618 Copyright (C) 2008 Free Software Foundation, Inc.
619 This config.lt script is free software; the Free Software Foundation
620 gives unlimited permision to copy, distribute and modify it."
621
622 while test $[#] != 0
623 do
624 case $[1] in
625 --version | --v* | -V )
626 echo "$lt_cl_version"; exit 0 ;;
627 --help | --h* | -h )
628 echo "$lt_cl_help"; exit 0 ;;
629 --debug | --d* | -d )
630 debug=: ;;
631 --quiet | --q* | --silent | --s* | -q )
632 lt_cl_silent=: ;;
633
634 -*) AC_MSG_ERROR([unrecognized option: $[1]
635 Try \`$[0] --help' for more information.]) ;;
636
637 *) AC_MSG_ERROR([unrecognized argument: $[1]
638 Try \`$[0] --help' for more information.]) ;;
639 esac
640 shift
641 done
642
643 if $lt_cl_silent; then
644 exec AS_MESSAGE_FD>/dev/null
645 fi
646 _LTEOF
647
648 cat >>"$CONFIG_LT" <<_LTEOF
649 _LT_OUTPUT_LIBTOOL_COMMANDS_INIT
650 _LTEOF
651
652 cat >>"$CONFIG_LT" <<\_LTEOF
653 AC_MSG_NOTICE([creating $ofile])
654 _LT_OUTPUT_LIBTOOL_COMMANDS
655 AS_EXIT(0)
656 _LTEOF
657 chmod +x "$CONFIG_LT"
658
659 # configure is writing to config.log, but config.lt does its own redirection,
660 # appending to config.log, which fails on DOS, as config.log is still kept
661 # open by configure. Here we exec the FD to /dev/null, effectively closing
662 # config.log, so it can be properly (re)opened and appended to by config.lt.
663 if test "$no_create" != yes; then
664 lt_cl_success=:
665 test "$silent" = yes &&
666 lt_config_lt_args="$lt_config_lt_args --quiet"
667 exec AS_MESSAGE_LOG_FD>/dev/null
668 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
669 exec AS_MESSAGE_LOG_FD>>config.log
670 $lt_cl_success || AS_EXIT(1)
671 fi
672 ])# LT_OUTPUT
673
674
675 # _LT_CONFIG(TAG)
676 # ---------------
677 # If TAG is the built-in tag, create an initial libtool script with a
678 # default configuration from the untagged config vars. Otherwise add code
679 # to config.status for appending the configuration named by TAG from the
680 # matching tagged config vars.
681 m4_defun([_LT_CONFIG],
682 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
683 _LT_CONFIG_SAVE_COMMANDS([
684 m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
685 m4_if(_LT_TAG, [C], [
686 # See if we are running on zsh, and set the options which allow our
687 # commands through without removal of \ escapes.
688 if test -n "${ZSH_VERSION+set}" ; then
689 setopt NO_GLOB_SUBST
690 fi
691
692 cfgfile="${ofile}T"
693 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
694 $RM "$cfgfile"
695
696 cat <<_LT_EOF >> "$cfgfile"
697 #! $SHELL
698
699 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
700 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
701 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
702 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
703 #
704 _LT_COPYING
705 _LT_LIBTOOL_TAGS
706
707 # ### BEGIN LIBTOOL CONFIG
708 _LT_LIBTOOL_CONFIG_VARS
709 _LT_LIBTOOL_TAG_VARS
710 # ### END LIBTOOL CONFIG
711
712 _LT_EOF
713
714 case $host_os in
715 aix3*)
716 cat <<\_LT_EOF >> "$cfgfile"
717 # AIX sometimes has problems with the GCC collect2 program. For some
718 # reason, if we set the COLLECT_NAMES environment variable, the problems
719 # vanish in a puff of smoke.
720 if test "X${COLLECT_NAMES+set}" != Xset; then
721 COLLECT_NAMES=
722 export COLLECT_NAMES
723 fi
724 _LT_EOF
725 ;;
726 esac
727
728 _LT_PROG_LTMAIN
729
730 # We use sed instead of cat because bash on DJGPP gets confused if
731 # if finds mixed CR/LF and LF-only lines. Since sed operates in
732 # text mode, it properly converts lines to CR/LF. This bash problem
733 # is reportedly fixed, but why not run on old versions too?
734 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
735 || (rm -f "$cfgfile"; exit 1)
736
737 _LT_PROG_XSI_SHELLFNS
738
739 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
740 || (rm -f "$cfgfile"; exit 1)
741
742 mv -f "$cfgfile" "$ofile" ||
743 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
744 chmod +x "$ofile"
745 ],
746 [cat <<_LT_EOF >> "$ofile"
747
748 dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
749 dnl in a comment (ie after a #).
750 # ### BEGIN LIBTOOL TAG CONFIG: $1
751 _LT_LIBTOOL_TAG_VARS(_LT_TAG)
752 # ### END LIBTOOL TAG CONFIG: $1
753 _LT_EOF
754 ])dnl /m4_if
755 ],
756 [m4_if([$1], [], [
757 PACKAGE='$PACKAGE'
758 VERSION='$VERSION'
759 TIMESTAMP='$TIMESTAMP'
760 RM='$RM'
761 ofile='$ofile'], [])
762 ])dnl /_LT_CONFIG_SAVE_COMMANDS
763 ])# _LT_CONFIG
764
765
766 # LT_SUPPORTED_TAG(TAG)
767 # ---------------------
768 # Trace this macro to discover what tags are supported by the libtool
769 # --tag option, using:
770 # autoconf --trace 'LT_SUPPORTED_TAG:$1'
771 AC_DEFUN([LT_SUPPORTED_TAG], [])
772
773
774 # C support is built-in for now
775 m4_define([_LT_LANG_C_enabled], [])
776 m4_define([_LT_TAGS], [])
777
778
779 # LT_LANG(LANG)
780 # -------------
781 # Enable libtool support for the given language if not already enabled.
782 AC_DEFUN([LT_LANG],
783 [AC_BEFORE([$0], [LT_OUTPUT])dnl
784 m4_case([$1],
785 [C], [_LT_LANG(C)],
786 [C++], [_LT_LANG(CXX)],
787 [Java], [_LT_LANG(GCJ)],
788 [Fortran 77], [_LT_LANG(F77)],
789 [Fortran], [_LT_LANG(FC)],
790 [Windows Resource], [_LT_LANG(RC)],
791 [m4_ifdef([_LT_LANG_]$1[_CONFIG],
792 [_LT_LANG($1)],
793 [m4_fatal([$0: unsupported language: "$1"])])])dnl
794 ])# LT_LANG
795
796
797 # _LT_LANG(LANGNAME)
798 # ------------------
799 m4_defun([_LT_LANG],
800 [m4_ifdef([_LT_LANG_]$1[_enabled], [],
801 [LT_SUPPORTED_TAG([$1])dnl
802 m4_append([_LT_TAGS], [$1 ])dnl
803 m4_define([_LT_LANG_]$1[_enabled], [])dnl
804 _LT_LANG_$1_CONFIG($1)])dnl
805 ])# _LT_LANG
806
807
808 # _LT_LANG_DEFAULT_CONFIG
809 # -----------------------
810 m4_defun([_LT_LANG_DEFAULT_CONFIG],
811 [AC_PROVIDE_IFELSE([AC_PROG_CXX],
812 [LT_LANG(CXX)],
813 [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
814
815 AC_PROVIDE_IFELSE([AC_PROG_F77],
816 [LT_LANG(F77)],
817 [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
818
819 AC_PROVIDE_IFELSE([AC_PROG_FC],
820 [LT_LANG(FC)],
821 [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
822
823 dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
824 dnl pulling things in needlessly.
825 AC_PROVIDE_IFELSE([AC_PROG_GCJ],
826 [LT_LANG(GCJ)],
827 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
828 [LT_LANG(GCJ)],
829 [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
830 [LT_LANG(GCJ)],
831 [m4_ifdef([AC_PROG_GCJ],
832 [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
833 m4_ifdef([A][M_PROG_GCJ],
834 [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
835 m4_ifdef([LT_PROG_GCJ],
836 [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
837
838 AC_PROVIDE_IFELSE([LT_PROG_RC],
839 [LT_LANG(RC)],
840 [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
841 ])# _LT_LANG_DEFAULT_CONFIG
842
843 # Obsolete macros:
844 AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
845 AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
846 AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
847 AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
848 dnl aclocal-1.4 backwards compatibility:
849 dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
850 dnl AC_DEFUN([AC_LIBTOOL_F77], [])
851 dnl AC_DEFUN([AC_LIBTOOL_FC], [])
852 dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
853
854
855 # _LT_TAG_COMPILER
856 # ----------------
857 m4_defun([_LT_TAG_COMPILER],
236858 [AC_REQUIRE([AC_PROG_CC])dnl
859
860 _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
861 _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
862 _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
863 _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
237864
238865 # If no C compiler was specified, use CC.
239866 LTCC=${LTCC-"$CC"}
243870
244871 # Allow CC to be a program name with arguments.
245872 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 ])
873 ])# _LT_TAG_COMPILER
263874
264875
265876 # _LT_COMPILER_BOILERPLATE
266877 # ------------------------
267878 # Check for compiler boilerplate output or warnings with
268879 # the simple compiler test code.
269 AC_DEFUN([_LT_COMPILER_BOILERPLATE],
270 [AC_REQUIRE([LT_AC_PROG_SED])dnl
880 m4_defun([_LT_COMPILER_BOILERPLATE],
881 [m4_require([_LT_DECL_SED])dnl
271882 ac_outfile=conftest.$ac_objext
272883 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
273884 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
274885 _lt_compiler_boilerplate=`cat conftest.err`
275 $rm conftest*
886 $RM conftest*
276887 ])# _LT_COMPILER_BOILERPLATE
277888
278889
280891 # ----------------------
281892 # Check for linker boilerplate output or warnings with
282893 # the simple link test code.
283 AC_DEFUN([_LT_LINKER_BOILERPLATE],
284 [AC_REQUIRE([LT_AC_PROG_SED])dnl
894 m4_defun([_LT_LINKER_BOILERPLATE],
895 [m4_require([_LT_DECL_SED])dnl
285896 ac_outfile=conftest.$ac_objext
286897 echo "$lt_simple_link_test_code" >conftest.$ac_ext
287898 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
288899 _lt_linker_boilerplate=`cat conftest.err`
289 $rm conftest*
900 $RM -r conftest*
290901 ])# _LT_LINKER_BOILERPLATE
291902
292
293 # _LT_AC_SYS_LIBPATH_AIX
294 # ----------------------
903 # _LT_REQUIRED_DARWIN_CHECKS
904 # -------------------------
905 m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
906 case $host_os in
907 rhapsody* | darwin*)
908 AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
909 AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
910 AC_CHECK_TOOL([LIPO], [lipo], [:])
911 AC_CHECK_TOOL([OTOOL], [otool], [:])
912 AC_CHECK_TOOL([OTOOL64], [otool64], [:])
913 _LT_DECL([], [DSYMUTIL], [1],
914 [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
915 _LT_DECL([], [NMEDIT], [1],
916 [Tool to change global to local symbols on Mac OS X])
917 _LT_DECL([], [LIPO], [1],
918 [Tool to manipulate fat objects and archives on Mac OS X])
919 _LT_DECL([], [OTOOL], [1],
920 [ldd/readelf like tool for Mach-O binaries on Mac OS X])
921 _LT_DECL([], [OTOOL64], [1],
922 [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
923
924 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
925 [lt_cv_apple_cc_single_mod=no
926 if test -z "${LT_MULTI_MODULE}"; then
927 # By default we will add the -single_module flag. You can override
928 # by either setting the environment variable LT_MULTI_MODULE
929 # non-empty at configure time, or by adding -multi_module to the
930 # link flags.
931 rm -rf libconftest.dylib*
932 echo "int foo(void){return 1;}" > conftest.c
933 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
934 -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
935 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
936 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
937 _lt_result=$?
938 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
939 lt_cv_apple_cc_single_mod=yes
940 else
941 cat conftest.err >&AS_MESSAGE_LOG_FD
942 fi
943 rm -rf libconftest.dylib*
944 rm -f conftest.*
945 fi])
946 AC_CACHE_CHECK([for -exported_symbols_list linker flag],
947 [lt_cv_ld_exported_symbols_list],
948 [lt_cv_ld_exported_symbols_list=no
949 save_LDFLAGS=$LDFLAGS
950 echo "_main" > conftest.sym
951 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
952 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
953 [lt_cv_ld_exported_symbols_list=yes],
954 [lt_cv_ld_exported_symbols_list=no])
955 LDFLAGS="$save_LDFLAGS"
956 ])
957 case $host_os in
958 rhapsody* | darwin1.[[012]])
959 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
960 darwin1.*)
961 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
962 darwin*) # darwin 5.x on
963 # if running on 10.5 or later, the deployment target defaults
964 # to the OS version, if on x86, and 10.4, the deployment
965 # target defaults to 10.4. Don't you love it?
966 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
967 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
968 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
969 10.[[012]]*)
970 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
971 10.*)
972 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
973 esac
974 ;;
975 esac
976 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
977 _lt_dar_single_mod='$single_module'
978 fi
979 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
980 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
981 else
982 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
983 fi
984 if test "$DSYMUTIL" != ":"; then
985 _lt_dsymutil='~$DSYMUTIL $lib || :'
986 else
987 _lt_dsymutil=
988 fi
989 ;;
990 esac
991 ])
992
993
994 # _LT_DARWIN_LINKER_FEATURES
995 # --------------------------
996 # Checks for linker and compiler features on darwin
997 m4_defun([_LT_DARWIN_LINKER_FEATURES],
998 [
999 m4_require([_LT_REQUIRED_DARWIN_CHECKS])
1000 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
1001 _LT_TAGVAR(hardcode_direct, $1)=no
1002 _LT_TAGVAR(hardcode_automatic, $1)=yes
1003 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1004 _LT_TAGVAR(whole_archive_flag_spec, $1)=''
1005 _LT_TAGVAR(link_all_deplibs, $1)=yes
1006 _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
1007 case $cc_basename in
1008 ifort*) _lt_dar_can_shared=yes ;;
1009 *) _lt_dar_can_shared=$GCC ;;
1010 esac
1011 if test "$_lt_dar_can_shared" = "yes"; then
1012 output_verbose_link_cmd=echo
1013 _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
1014 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1015 _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
1016 _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
1017 m4_if([$1], [CXX],
1018 [ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
1019 _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
1020 _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
1021 fi
1022 ],[])
1023 else
1024 _LT_TAGVAR(ld_shlibs, $1)=no
1025 fi
1026 ])
1027
1028 # _LT_SYS_MODULE_PATH_AIX
1029 # -----------------------
2951030 # Links a minimal program and checks the executable
2961031 # for the system default hardcoded library path. In most cases,
2971032 # this is /usr/lib:/lib, but when the MPI compilers are used
2981033 # the location of the communication and MPI libs are included too.
2991034 # If we don't find anything, use the default library path according
3001035 # to the aix ld manual.
301 AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
302 [AC_REQUIRE([LT_AC_PROG_SED])dnl
1036 m4_defun([_LT_SYS_MODULE_PATH_AIX],
1037 [m4_require([_LT_DECL_SED])dnl
3031038 AC_LINK_IFELSE(AC_LANG_PROGRAM,[
3041039 lt_aix_libpath_sed='
3051040 /Import File Strings/,/^$/ {
3141049 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
3151050 fi],[])
3161051 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],
1052 ])# _LT_SYS_MODULE_PATH_AIX
1053
1054
1055 # _LT_SHELL_INIT(ARG)
1056 # -------------------
1057 m4_define([_LT_SHELL_INIT],
3231058 [ifdef([AC_DIVERSION_NOTICE],
3241059 [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
3251060 [AC_DIVERT_PUSH(NOTICE)])
3261061 $1
3271062 AC_DIVERT_POP
328 ])# _LT_AC_SHELL_INIT
329
330
331 # _LT_AC_PROG_ECHO_BACKSLASH
332 # --------------------------
1063 ])# _LT_SHELL_INIT
1064
1065
1066 # _LT_PROG_ECHO_BACKSLASH
1067 # -----------------------
3331068 # Add some code to the start of the generated configure script which
3341069 # will find an echo command which doesn't interpret backslashes.
335 AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
336 [_LT_AC_SHELL_INIT([
1070 m4_defun([_LT_PROG_ECHO_BACKSLASH],
1071 [_LT_SHELL_INIT([
3371072 # Check that we are running under the correct shell.
3381073 SHELL=${CONFIG_SHELL-/bin/sh}
3391074
340 case X$ECHO in
1075 case X$lt_ECHO in
3411076 X*--fallback-echo)
3421077 # Remove one level of quotation (which was required for Make).
343 ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
1078 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
3441079 ;;
3451080 esac
3461081
347 echo=${ECHO-echo}
1082 ECHO=${lt_ECHO-echo}
3481083 if test "X[$]1" = X--no-reexec; then
3491084 # Discard the --no-reexec flag, and continue.
3501085 shift
3511086 elif test "X[$]1" = X--fallback-echo; then
3521087 # Avoid inline document here, it may be left over
3531088 :
354 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
355 # Yippee, $echo works!
1089 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
1090 # Yippee, $ECHO works!
3561091 :
3571092 else
3581093 # Restart under the correct shell.
3621097 if test "X[$]1" = X--fallback-echo; then
3631098 # used as fallback echo
3641099 shift
365 cat <<EOF
1100 cat <<_LT_EOF
3661101 [$]*
367 EOF
1102 _LT_EOF
3681103 exit 0
3691104 fi
3701105
3721107 # if CDPATH is set.
3731108 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
3741109
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
1110 if test -z "$lt_ECHO"; then
1111 if test "X${echo_test_string+set}" != Xset; then
1112 # find a string as large as possible, as long as the shell can cope with it
1113 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1114 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1115 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
1116 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
1117 then
1118 break
1119 fi
1120 done
1121 fi
1122
1123 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1124 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1125 test "X$echo_testing_string" = "X$echo_test_string"; then
1126 :
1127 else
1128 # The Solaris, AIX, and Digital Unix default echo programs unquote
1129 # backslashes. This makes it impossible to quote backslashes using
1130 # echo "$something" | sed 's/\\/\\\\/g'
1131 #
1132 # So, first we look for a working echo in the user's PATH.
1133
1134 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1135 for dir in $PATH /usr/ucb; do
1136 IFS="$lt_save_ifs"
1137 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
1138 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
1139 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
1140 test "X$echo_testing_string" = "X$echo_test_string"; then
1141 ECHO="$dir/echo"
1142 break
1143 fi
1144 done
4021145 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` &&
1146
1147 if test "X$ECHO" = Xecho; then
1148 # We didn't find a better echo, so look for alternatives.
1149 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
1150 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
1151 test "X$echo_testing_string" = "X$echo_test_string"; then
1152 # This shell has a builtin print -r that does the trick.
1153 ECHO='print -r'
1154 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
1155 test "X$CONFIG_SHELL" != X/bin/ksh; then
1156 # If we have ksh, try running configure again with it.
1157 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1158 export ORIGINAL_CONFIG_SHELL
1159 CONFIG_SHELL=/bin/ksh
1160 export CONFIG_SHELL
1161 exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
1162 else
1163 # Try using printf.
1164 ECHO='printf %s\n'
1165 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1166 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
4391167 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
1168 # Cool, printf works
1169 :
1170 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1171 test "X$echo_testing_string" = 'X\t' &&
1172 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1173 test "X$echo_testing_string" = "X$echo_test_string"; then
1174 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
1175 export CONFIG_SHELL
1176 SHELL="$CONFIG_SHELL"
1177 export SHELL
1178 ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1179 elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1180 test "X$echo_testing_string" = 'X\t' &&
1181 echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1182 test "X$echo_testing_string" = "X$echo_test_string"; then
1183 ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1184 else
1185 # maybe with a smaller string...
1186 prev=:
1187
1188 for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
1189 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
1190 then
1191 break
1192 fi
1193 prev="$cmd"
1194 done
1195
1196 if test "$prev" != 'sed 50q "[$]0"'; then
1197 echo_test_string=`eval $prev`
1198 export echo_test_string
1199 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
1200 else
1201 # Oops. We lost completely, so just stick with echo.
1202 ECHO=echo
4581203 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
1204 fi
4701205 fi
4711206 fi
4721207 fi
4731208 fi
474 fi
4751209
4761210 # Copy echo and quote the copy suitably for passing to libtool from
4771211 # 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"
1212 lt_ECHO=$ECHO
1213 if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
1214 lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
4811215 fi
4821216
483 AC_SUBST(ECHO)
484 ])])# _LT_AC_PROG_ECHO_BACKSLASH
485
486
487 # _LT_AC_LOCK
488 # -----------
489 AC_DEFUN([_LT_AC_LOCK],
1217 AC_SUBST(lt_ECHO)
1218 ])
1219 _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
1220 _LT_DECL([], [ECHO], [1],
1221 [An echo program that does not interpret backslashes])
1222 ])# _LT_PROG_ECHO_BACKSLASH
1223
1224
1225 # _LT_ENABLE_LOCK
1226 # ---------------
1227 m4_defun([_LT_ENABLE_LOCK],
4901228 [AC_ARG_ENABLE([libtool-lock],
491 [AC_HELP_STRING([--disable-libtool-lock],
492 [avoid locking (might break parallel builds)])])
1229 [AS_HELP_STRING([--disable-libtool-lock],
1230 [avoid locking (might break parallel builds)])])
4931231 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4941232
4951233 # Some flags need to be propagated to the compiler or linker for good
5001238 echo 'int i;' > conftest.$ac_ext
5011239 if AC_TRY_EVAL(ac_compile); then
5021240 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 ;;
1241 *ELF-32*)
1242 HPUX_IA64_MODE="32"
1243 ;;
1244 *ELF-64*)
1245 HPUX_IA64_MODE="64"
1246 ;;
5091247 esac
5101248 fi
5111249 rm -rf conftest*
5141252 # Find out which ABI we are using.
5151253 echo '[#]line __oline__ "configure"' > conftest.$ac_ext
5161254 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
1255 if test "$lt_cv_prog_gnu_ld" = yes; then
1256 case `/usr/bin/file conftest.$ac_objext` in
1257 *32-bit*)
1258 LD="${LD-ld} -melf32bsmip"
1259 ;;
1260 *N32*)
1261 LD="${LD-ld} -melf32bmipn32"
1262 ;;
1263 *64-bit*)
1264 LD="${LD-ld} -melf64bmip"
1265 ;;
1266 esac
1267 else
1268 case `/usr/bin/file conftest.$ac_objext` in
1269 *32-bit*)
1270 LD="${LD-ld} -32"
1271 ;;
1272 *N32*)
1273 LD="${LD-ld} -n32"
1274 ;;
1275 *64-bit*)
1276 LD="${LD-ld} -64"
1277 ;;
1278 esac
1279 fi
5421280 fi
5431281 rm -rf conftest*
5441282 ;;
5451283
5461284 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
547 s390*-*linux*|sparc*-*linux*)
1285 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5481286 # Find out which ABI we are using.
5491287 echo 'int i;' > conftest.$ac_ext
5501288 if AC_TRY_EVAL(ac_compile); then
5511289 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 ;;
1290 *32-bit*)
1291 case $host in
1292 x86_64-*kfreebsd*-gnu)
1293 LD="${LD-ld} -m elf_i386_fbsd"
1294 ;;
1295 x86_64-*linux*)
1296 LD="${LD-ld} -m elf_i386"
1297 ;;
1298 ppc64-*linux*|powerpc64-*linux*)
1299 LD="${LD-ld} -m elf32ppclinux"
1300 ;;
1301 s390x-*linux*)
1302 LD="${LD-ld} -m elf_s390"
1303 ;;
1304 sparc64-*linux*)
1305 LD="${LD-ld} -m elf32_sparc"
1306 ;;
1307 esac
1308 ;;
1309 *64-bit*)
1310 case $host in
1311 x86_64-*kfreebsd*-gnu)
1312 LD="${LD-ld} -m elf_x86_64_fbsd"
1313 ;;
1314 x86_64-*linux*)
1315 LD="${LD-ld} -m elf_x86_64"
1316 ;;
1317 ppc*-*linux*|powerpc*-*linux*)
1318 LD="${LD-ld} -m elf64ppc"
1319 ;;
1320 s390*-*linux*|s390*-*tpf*)
1321 LD="${LD-ld} -m elf64_s390"
1322 ;;
1323 sparc*-*linux*)
1324 LD="${LD-ld} -m elf64_sparc"
1325 ;;
1326 esac
1327 ;;
5911328 esac
5921329 fi
5931330 rm -rf conftest*
5991336 CFLAGS="$CFLAGS -belf"
6001337 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
6011338 [AC_LANG_PUSH(C)
602 AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1339 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
6031340 AC_LANG_POP])
6041341 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6051342 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6141351 *64-bit*)
6151352 case $lt_cv_prog_gnu_ld in
6161353 yes*) LD="${LD-ld} -m elf64_sparc" ;;
617 *) LD="${LD-ld} -64" ;;
1354 *)
1355 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
1356 LD="${LD-ld} -64"
1357 fi
1358 ;;
6181359 esac
6191360 ;;
6201361 esac
6211362 fi
6221363 rm -rf conftest*
6231364 ;;
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 ])
6321365 esac
6331366
6341367 need_locks="$enable_libtool_lock"
635
636 ])# _LT_AC_LOCK
637
638
639 # AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1368 ])# _LT_ENABLE_LOCK
1369
1370
1371 # _LT_CMD_OLD_ARCHIVE
1372 # -------------------
1373 m4_defun([_LT_CMD_OLD_ARCHIVE],
1374 [AC_CHECK_TOOL(AR, ar, false)
1375 test -z "$AR" && AR=ar
1376 test -z "$AR_FLAGS" && AR_FLAGS=cru
1377 _LT_DECL([], [AR], [1], [The archiver])
1378 _LT_DECL([], [AR_FLAGS], [1])
1379
1380 AC_CHECK_TOOL(STRIP, strip, :)
1381 test -z "$STRIP" && STRIP=:
1382 _LT_DECL([], [STRIP], [1], [A symbol stripping program])
1383
1384 AC_CHECK_TOOL(RANLIB, ranlib, :)
1385 test -z "$RANLIB" && RANLIB=:
1386 _LT_DECL([], [RANLIB], [1],
1387 [Commands used to install an old-style archive])
1388
1389 # Determine commands to create old-style static archives.
1390 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1391 old_postinstall_cmds='chmod 644 $oldlib'
1392 old_postuninstall_cmds=
1393
1394 if test -n "$RANLIB"; then
1395 case $host_os in
1396 openbsd*)
1397 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
1398 ;;
1399 *)
1400 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
1401 ;;
1402 esac
1403 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1404 fi
1405 _LT_DECL([], [old_postinstall_cmds], [2])
1406 _LT_DECL([], [old_postuninstall_cmds], [2])
1407 _LT_TAGDECL([], [old_archive_cmds], [2],
1408 [Commands used to build an old-style archive])
1409 ])# _LT_CMD_OLD_ARCHIVE
1410
1411
1412 # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
6401413 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
6411414 # ----------------------------------------------------------------
6421415 # Check whether the given compiler option works
643 AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
644 [AC_REQUIRE([LT_AC_PROG_SED])
1416 AC_DEFUN([_LT_COMPILER_OPTION],
1417 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1418 m4_require([_LT_DECL_SED])dnl
6451419 AC_CACHE_CHECK([$1], [$2],
6461420 [$2=no
647 ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1421 m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
6481422 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6491423 lt_compiler_flag="$3"
6501424 # Insert the option either (1) after the last *FLAGS variable, or
6641438 if (exit $ac_status) && test -s "$ac_outfile"; then
6651439 # The compiler can only warn and ignore the option if not recognized
6661440 # So say no if there are warnings other than the usual output.
667 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
1441 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6681442 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6691443 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6701444 $2=yes
6711445 fi
6721446 fi
673 $rm conftest*
1447 $RM conftest*
6741448 ])
6751449
6761450 if test x"[$]$2" = xyes; then
677 ifelse([$5], , :, [$5])
1451 m4_if([$5], , :, [$5])
6781452 else
679 ifelse([$6], , :, [$6])
1453 m4_if([$6], , :, [$6])
6801454 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
1455 ])# _LT_COMPILER_OPTION
1456
1457 # Old name:
1458 AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
1459 dnl aclocal-1.4 backwards compatibility:
1460 dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
1461
1462
1463 # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1464 # [ACTION-SUCCESS], [ACTION-FAILURE])
1465 # ----------------------------------------------------
1466 # Check whether the given linker option works
1467 AC_DEFUN([_LT_LINKER_OPTION],
1468 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1469 m4_require([_LT_DECL_SED])dnl
6901470 AC_CACHE_CHECK([$1], [$2],
6911471 [$2=no
6921472 save_LDFLAGS="$LDFLAGS"
6981478 if test -s conftest.err; then
6991479 # Append any errors to the config.log.
7001480 cat conftest.err 1>&AS_MESSAGE_LOG_FD
701 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
1481 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7021482 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7031483 if diff conftest.exp conftest.er2 >/dev/null; then
7041484 $2=yes
7071487 $2=yes
7081488 fi
7091489 fi
710 $rm conftest*
1490 $RM -r conftest*
7111491 LDFLAGS="$save_LDFLAGS"
7121492 ])
7131493
7141494 if test x"[$]$2" = xyes; then
715 ifelse([$4], , :, [$4])
1495 m4_if([$4], , :, [$4])
7161496 else
717 ifelse([$5], , :, [$5])
1497 m4_if([$5], , :, [$5])
7181498 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
1499 ])# _LT_LINKER_OPTION
1500
1501 # Old name:
1502 AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
1503 dnl aclocal-1.4 backwards compatibility:
1504 dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
1505
1506
1507 # LT_CMD_MAX_LEN
1508 #---------------
1509 AC_DEFUN([LT_CMD_MAX_LEN],
1510 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
1511 # find the maximum length of command line arguments
7261512 AC_MSG_CHECKING([the maximum length of command line arguments])
7271513 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
7281514 i=0
7441530 lt_cv_sys_max_cmd_len=-1;
7451531 ;;
7461532
747 cygwin* | mingw*)
1533 cygwin* | mingw* | cegcc*)
7481534 # On Win9x/ME, this test blows up -- it succeeds, but takes
7491535 # about 5 minutes as the teststring grows exponentially.
7501536 # Worse, since 9x/ME are not pre-emptively multitasking,
7991585 sysv5* | sco5v6* | sysv4.2uw2*)
8001586 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8011587 if test -n "$kargmax"; then
802 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
1588 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
8031589 else
8041590 lt_cv_sys_max_cmd_len=32768
8051591 fi
8101596 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8111597 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8121598 else
1599 # Make teststring a little bigger before we do anything with it.
1600 # a 1K string should be a reasonable start.
1601 for i in 1 2 3 4 5 6 7 8 ; do
1602 teststring=$teststring$teststring
1603 done
8131604 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 &&
1605 # If test is not a shell built-in, we'll probably end up computing a
1606 # maximum length that is only half of the actual maximum length, but
1607 # we can't tell.
1608 while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
1609 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
8181610 test $i != 17 # 1/2 MB should be enough
8191611 do
8201612 i=`expr $i + 1`
8211613 teststring=$teststring$teststring
8221614 done
1615 # Only check the string length outside the loop.
1616 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8231617 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.
1618 # Add a significant safety factor because C++ compilers can tack on
1619 # massive amounts of additional arguments before passing them to the
1620 # linker. It appears as though 1/2 is a usable value.
8271621 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8281622 fi
8291623 ;;
8341628 else
8351629 AC_MSG_RESULT(none)
8361630 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
1631 max_cmd_len=$lt_cv_sys_max_cmd_len
1632 _LT_DECL([], [max_cmd_len], [0],
1633 [What is the maximum length of a command?])
1634 ])# LT_CMD_MAX_LEN
1635
1636 # Old name:
1637 AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
1638 dnl aclocal-1.4 backwards compatibility:
1639 dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
1640
1641
1642 # _LT_HEADER_DLFCN
1643 # ----------------
1644 m4_defun([_LT_HEADER_DLFCN],
1645 [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
1646 ])# _LT_HEADER_DLFCN
1647
1648
1649 # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1650 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1651 # ----------------------------------------------------------------
1652 m4_defun([_LT_TRY_DLOPEN_SELF],
1653 [m4_require([_LT_HEADER_DLFCN])dnl
8521654 if test "$cross_compiling" = yes; then :
8531655 [$4]
8541656 else
8551657 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8561658 lt_status=$lt_dlunknown
857 cat > conftest.$ac_ext <<EOF
1659 cat > conftest.$ac_ext <<_LT_EOF
8581660 [#line __oline__ "configure"
8591661 #include "confdefs.h"
8601662
8961698 # endif
8971699 #endif
8981700
899 #ifdef __cplusplus
900 extern "C" void exit (int);
901 #endif
902
9031701 void fnord() { int i=42;}
9041702 int main ()
9051703 {
9151713 else
9161714 puts (dlerror ());
9171715
918 exit (status);
1716 return status;
9191717 }]
920 EOF
1718 _LT_EOF
9211719 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
9221720 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
9231721 lt_status=$?
9321730 fi
9331731 fi
9341732 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
1733 ])# _LT_TRY_DLOPEN_SELF
1734
1735
1736 # LT_SYS_DLOPEN_SELF
1737 # ------------------
1738 AC_DEFUN([LT_SYS_DLOPEN_SELF],
1739 [m4_require([_LT_HEADER_DLFCN])dnl
9421740 if test "x$enable_dlopen" != xyes; then
9431741 enable_dlopen=unknown
9441742 enable_dlopen_self=unknown
9541752 lt_cv_dlopen_self=yes
9551753 ;;
9561754
957 mingw* | pw32*)
1755 mingw* | pw32* | cegcc*)
9581756 lt_cv_dlopen="LoadLibrary"
9591757 lt_cv_dlopen_libs=
960 ;;
1758 ;;
9611759
9621760 cygwin*)
9631761 lt_cv_dlopen="dlopen"
9641762 lt_cv_dlopen_libs=
965 ;;
1763 ;;
9661764
9671765 darwin*)
9681766 # if libdl is installed we need to link against it
9721770 lt_cv_dlopen_libs=
9731771 lt_cv_dlopen_self=yes
9741772 ])
975 ;;
1773 ;;
9761774
9771775 *)
9781776 AC_CHECK_FUNC([shl_load],
9791777 [lt_cv_dlopen="shl_load"],
9801778 [AC_CHECK_LIB([dld], [shl_load],
981 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
1779 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
9821780 [AC_CHECK_FUNC([dlopen],
9831781 [lt_cv_dlopen="dlopen"],
9841782 [AC_CHECK_LIB([dl], [dlopen],
9861784 [AC_CHECK_LIB([svld], [dlopen],
9871785 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
9881786 [AC_CHECK_LIB([dld], [dld_link],
989 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
1787 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
9901788 ])
9911789 ])
9921790 ])
10141812
10151813 AC_CACHE_CHECK([whether a program can dlopen itself],
10161814 lt_cv_dlopen_self, [dnl
1017 _LT_AC_TRY_DLOPEN_SELF(
1815 _LT_TRY_DLOPEN_SELF(
10181816 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
10191817 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
10201818 ])
10221820 if test "x$lt_cv_dlopen_self" = xyes; then
10231821 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10241822 AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
1025 lt_cv_dlopen_self_static, [dnl
1026 _LT_AC_TRY_DLOPEN_SELF(
1823 lt_cv_dlopen_self_static, [dnl
1824 _LT_TRY_DLOPEN_SELF(
10271825 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
10281826 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
10291827 ])
10451843 *) enable_dlopen_self_static=unknown ;;
10461844 esac
10471845 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
1846 _LT_DECL([dlopen_support], [enable_dlopen], [0],
1847 [Whether dlopen is supported])
1848 _LT_DECL([dlopen_self], [enable_dlopen_self], [0],
1849 [Whether dlopen of programs is supported])
1850 _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
1851 [Whether dlopen of statically linked programs is supported])
1852 ])# LT_SYS_DLOPEN_SELF
1853
1854 # Old name:
1855 AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
1856 dnl aclocal-1.4 backwards compatibility:
1857 dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
1858
1859
1860 # _LT_COMPILER_C_O([TAGNAME])
1861 # ---------------------------
1862 # Check to see if options -c and -o are simultaneously supported by compiler.
1863 # This macro does not hard code the compiler like AC_PROG_CC_C_O.
1864 m4_defun([_LT_COMPILER_C_O],
1865 [m4_require([_LT_DECL_SED])dnl
1866 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1867 m4_require([_LT_TAG_COMPILER])dnl
10571868 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
1869 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1870 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1871 $RM -r conftest 2>/dev/null
10611872 mkdir conftest
10621873 cd conftest
10631874 mkdir out
10811892 then
10821893 # The compiler can only warn and ignore the option if not recognized
10831894 # So say no if there are warnings
1084 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
1895 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10851896 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10861897 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
1898 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
10881899 fi
10891900 fi
10901901 chmod u+w . 2>&AS_MESSAGE_LOG_FD
1091 $rm conftest*
1902 $RM conftest*
10921903 # SGI C++ compiler will create directory out/ii_files/ for
10931904 # template instantiation
1094 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
1095 $rm out/* && rmdir out
1905 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
1906 $RM out/* && rmdir out
10961907 cd ..
1097 rmdir conftest
1098 $rm conftest*
1908 $RM -r conftest
1909 $RM conftest*
10991910 ])
1100 ])# AC_LIBTOOL_PROG_CC_C_O
1101
1102
1103 # AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
1104 # -----------------------------------------
1911 _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
1912 [Does compiler simultaneously support -c and -o options?])
1913 ])# _LT_COMPILER_C_O
1914
1915
1916 # _LT_COMPILER_FILE_LOCKS([TAGNAME])
1917 # ----------------------------------
11051918 # 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
1919 m4_defun([_LT_COMPILER_FILE_LOCKS],
1920 [m4_require([_LT_ENABLE_LOCK])dnl
1921 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1922 _LT_COMPILER_C_O([$1])
11081923
11091924 hard_links="nottested"
1110 if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
1925 if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
11111926 # do not overwrite the value of need_locks provided by the user
11121927 AC_MSG_CHECKING([if we can lock with hard links])
11131928 hard_links=yes
1114 $rm conftest*
1929 $RM conftest*
11151930 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11161931 touch conftest.a
11171932 ln conftest.a conftest.b 2>&5 || hard_links=no
11241939 else
11251940 need_locks=no
11261941 fi
1127 ])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
1128
1129
1130 # AC_LIBTOOL_OBJDIR
1131 # -----------------
1132 AC_DEFUN([AC_LIBTOOL_OBJDIR],
1942 _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
1943 ])# _LT_COMPILER_FILE_LOCKS
1944
1945
1946 # _LT_CHECK_OBJDIR
1947 # ----------------
1948 m4_defun([_LT_CHECK_OBJDIR],
11331949 [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
11341950 [rm -f .libs 2>/dev/null
11351951 mkdir .libs 2>/dev/null
11411957 fi
11421958 rmdir .libs 2>/dev/null])
11431959 objdir=$lt_cv_objdir
1144 ])# AC_LIBTOOL_OBJDIR
1145
1146
1147 # AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
1148 # ----------------------------------------------
1960 _LT_DECL([], [objdir], [0],
1961 [The name of the directory that contains temporary libtool files])dnl
1962 m4_pattern_allow([LT_OBJDIR])dnl
1963 AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
1964 [Define to the sub-directory in which libtool stores uninstalled libraries.])
1965 ])# _LT_CHECK_OBJDIR
1966
1967
1968 # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
1969 # --------------------------------------
11491970 # Check hardcoding attributes.
1150 AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
1971 m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
11511972 [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 &&
1973 _LT_TAGVAR(hardcode_action, $1)=
1974 if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
1975 test -n "$_LT_TAGVAR(runpath_var, $1)" ||
1976 test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
1977
1978 # We can hardcode non-existent directories.
1979 if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
11591980 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11601981 # have to relink, otherwise we might link with an installed library
11611982 # 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
1983 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
1984 test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
11641985 # Linking always hardcodes the temporary library directory.
1165 _LT_AC_TAGVAR(hardcode_action, $1)=relink
1986 _LT_TAGVAR(hardcode_action, $1)=relink
11661987 else
11671988 # We can link without hardcoding, and we can hardcode nonexisting dirs.
1168 _LT_AC_TAGVAR(hardcode_action, $1)=immediate
1989 _LT_TAGVAR(hardcode_action, $1)=immediate
11691990 fi
11701991 else
11711992 # We cannot hardcode anything, or else we can only hardcode existing
11721993 # directories.
1173 _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
1994 _LT_TAGVAR(hardcode_action, $1)=unsupported
11741995 fi
1175 AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
1176
1177 if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
1996 AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
1997
1998 if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
1999 test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
11782000 # Fast installation is not supported
11792001 enable_fast_install=no
11802002 elif test "$shlibpath_overrides_runpath" = yes ||
11822004 # Fast installation is not necessary
11832005 enable_fast_install=needless
11842006 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=
2007 _LT_TAGDECL([], [hardcode_action], [0],
2008 [How to hardcode a shared library path into an executable])
2009 ])# _LT_LINKER_HARDCODE_LIBPATH
2010
2011
2012 # _LT_CMD_STRIPLIB
2013 # ----------------
2014 m4_defun([_LT_CMD_STRIPLIB],
2015 [m4_require([_LT_DECL_EGREP])
2016 striplib=
11922017 old_striplib=
11932018 AC_MSG_CHECKING([whether stripping libraries is possible])
1194 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
2019 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11952020 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11962021 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11972022 AC_MSG_RESULT([yes])
11982023 else
11992024 # FIXME - insert some real tests, host_os isn't really good enough
12002025 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])
2026 darwin*)
2027 if test -n "$STRIP" ; then
2028 striplib="$STRIP -x"
2029 old_striplib="$STRIP -S"
2030 AC_MSG_RESULT([yes])
2031 else
2032 AC_MSG_RESULT([no])
2033 fi
2034 ;;
2035 *)
2036 AC_MSG_RESULT([no])
12122037 ;;
12132038 esac
12142039 fi
1215 ])# AC_LIBTOOL_SYS_LIB_STRIP
1216
1217
1218 # AC_LIBTOOL_SYS_DYNAMIC_LINKER
2040 _LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
2041 _LT_DECL([], [striplib], [1])
2042 ])# _LT_CMD_STRIPLIB
2043
2044
2045 # _LT_SYS_DYNAMIC_LINKER([TAG])
12192046 # -----------------------------
12202047 # PORTME Fill in your ld.so characteristics
1221 AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
1222 [AC_REQUIRE([LT_AC_PROG_SED])dnl
2048 m4_defun([_LT_SYS_DYNAMIC_LINKER],
2049 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
2050 m4_require([_LT_DECL_EGREP])dnl
2051 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2052 m4_require([_LT_DECL_OBJDUMP])dnl
2053 m4_require([_LT_DECL_SED])dnl
12232054 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,[],[
2055 m4_if([$1],
2056 [], [
12382057 if test "$GCC" = yes; then
12392058 case $host_os in
12402059 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12412060 *) lt_awk_arg="/^libraries:/" ;;
12422061 esac
12432062 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
2063 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
12452064 # if the path contains ";" then we assume it to be the separator
12462065 # otherwise default to the standard path separator (i.e. ":") - it is
12472066 # assumed that no part of a normal pathname contains ";" but that should
12482067 # 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'`
2068 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
12502069 else
1251 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2070 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12522071 fi
12532072 # Ok, now we have the path, separated by spaces, we can step through it
12542073 # and add multilib dir if necessary.
12622081 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12632082 fi
12642083 done
1265 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
2084 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
12662085 BEGIN {RS=" "; FS="/|\n";} {
12672086 lt_foo="";
12682087 lt_count=0;
12822101 if (lt_foo != "") { lt_freq[[lt_foo]]++; }
12832102 if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
12842103 }'`
1285 sys_lib_search_path_spec=`echo $lt_search_path_spec`
2104 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
12862105 else
12872106 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12882107 fi])
2108 library_names_spec=
2109 libname_spec='lib$name'
2110 soname_spec=
2111 shrext_cmds=".so"
2112 postinstall_cmds=
2113 postuninstall_cmds=
2114 finish_cmds=
2115 finish_eval=
2116 shlibpath_var=
2117 shlibpath_overrides_runpath=unknown
2118 version_type=none
2119 dynamic_linker="$host_os ld.so"
2120 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12892121 need_lib_prefix=unknown
12902122 hardcode_into_libs=no
12912123
13032135 soname_spec='${libname}${release}${shared_ext}$major'
13042136 ;;
13052137
1306 aix4* | aix5*)
2138 aix[[4-9]]*)
13072139 version_type=linux
13082140 need_lib_prefix=no
13092141 need_version=no
13222154 aix4 | aix4.[[01]] | aix4.[[01]].*)
13232155 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13242156 echo ' yes '
1325 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
2157 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13262158 :
13272159 else
13282160 can_build_shared=no
13482180 ;;
13492181
13502182 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'
2183 case $host_cpu in
2184 powerpc)
2185 # Since July 2007 AmigaOS4 officially supports .so libraries.
2186 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
2187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2188 ;;
2189 m68k)
2190 library_names_spec='$libname.ixlibrary $libname.a'
2191 # Create ${libname}_ixlibrary.a entries in /sys/libs.
2192 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'
2193 ;;
2194 esac
13542195 ;;
13552196
13562197 beos*)
13732214 # libtool to hard-code these into programs
13742215 ;;
13752216
1376 cygwin* | mingw* | pw32*)
2217 cygwin* | mingw* | pw32* | cegcc*)
13772218 version_type=windows
13782219 shrext_cmds=".dll"
13792220 need_version=no
13802221 need_lib_prefix=no
13812222
13822223 case $GCC,$host_os in
1383 yes,cygwin* | yes,mingw* | yes,pw32*)
2224 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13842225 library_names_spec='$libname.dll.a'
13852226 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13862227 postinstall_cmds='base_file=`basename \${file}`~
1387 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
2228 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13882229 dldir=$destdir/`dirname \$dlpath`~
13892230 test -d \$dldir || mkdir -p \$dldir~
13902231 $install_prog $dir/$dlname \$dldir/$dlname~
1391 chmod a+x \$dldir/$dlname'
2232 chmod a+x \$dldir/$dlname~
2233 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
2234 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
2235 fi'
13922236 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13932237 dlpath=$dir/\$dldll~
1394 $rm \$dlpath'
2238 $RM \$dlpath'
13952239 shlibpath_overrides_runpath=yes
13962240
13972241 case $host_os in
14002244 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
14012245 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14022246 ;;
1403 mingw*)
2247 mingw* | cegcc*)
14042248 # MinGW DLLs use traditional 'lib' prefix
14052249 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
2250 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2251 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
14082252 # It is most probably a Windows format PATH printed by
14092253 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14102254 # path with ; separators, and with drive letters. We can handle the
14112255 # drive letters (cygwin fileutils understands them), so leave them,
14122256 # especially as we might pass files found there to a mingw objdump,
14132257 # which wouldn't understand a cygwinified path. Ahh.
1414 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2258 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14152259 else
1416 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2260 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14172261 fi
14182262 ;;
14192263 pw32*)
14372281 version_type=darwin
14382282 need_lib_prefix=no
14392283 need_version=no
1440 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
2284 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14412285 soname_spec='${libname}${release}${major}$shared_ext'
14422286 shlibpath_overrides_runpath=yes
14432287 shlibpath_var=DYLD_LIBRARY_PATH
14442288 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"])
2289 m4_if([$1], [],[
2290 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
14472291 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14482292 ;;
14492293
15362380 fi
15372381 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15382382 ;;
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 *)
2383 hppa*64*)
2384 shrext_cmds='.sl'
2385 hardcode_into_libs=yes
2386 dynamic_linker="$host_os dld.sl"
2387 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
2388 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2390 soname_spec='${libname}${release}${shared_ext}$major'
2391 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
2392 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2393 ;;
2394 *)
15512395 shrext_cmds='.sl'
15522396 dynamic_linker="$host_os dld.sl"
15532397 shlibpath_var=SHLIB_PATH
16242468 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16252469 shlibpath_var=LD_LIBRARY_PATH
16262470 shlibpath_overrides_runpath=no
2471 # Some binutils ld are patched to set DT_RUNPATH
2472 save_LDFLAGS=$LDFLAGS
2473 save_libdir=$libdir
2474 eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
2475 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
2476 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
2477 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
2478 [shlibpath_overrides_runpath=yes])])
2479 LDFLAGS=$save_LDFLAGS
2480 libdir=$save_libdir
2481
16272482 # This implies no fast_install, which is unacceptable.
16282483 # Some rework will be needed to allow for fast_install
16292484 # before this can be enabled.
16302485 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}"
2486
2487 # Add ABI-specific directories to the system library path.
2488 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16332489
16342490 # Append ld.so.conf contents to the search path
16352491 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' ' '`
2492 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' ' '`
16372493 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16382494 fi
16392495
16502506 version_type=sunos
16512507 need_lib_prefix=no
16522508 need_version=no
1653 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
2509 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16542510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16552511 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16562512 dynamic_linker='NetBSD (a.out) ld.so'
16712527 shlibpath_overrides_runpath=yes
16722528 ;;
16732529
1674 nto-qnx*)
1675 version_type=linux
2530 *nto* | *qnx*)
2531 version_type=qnx
16762532 need_lib_prefix=no
16772533 need_version=no
16782534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16792535 soname_spec='${libname}${release}${shared_ext}$major'
16802536 shlibpath_var=LD_LIBRARY_PATH
1681 shlibpath_overrides_runpath=yes
2537 shlibpath_overrides_runpath=no
2538 hardcode_into_libs=yes
2539 dynamic_linker='ldqnx.so'
16822540 ;;
16832541
16842542 openbsd*)
16872545 need_lib_prefix=no
16882546 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16892547 case $host_os in
1690 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
1691 *) need_version=no ;;
2548 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
2549 *) need_version=no ;;
16922550 esac
16932551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16942552 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16952553 shlibpath_var=LD_LIBRARY_PATH
1696 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2554 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16972555 case $host_os in
16982556 openbsd2.[[89]] | openbsd2.[[89]].*)
16992557 shlibpath_overrides_runpath=no
17652623 sni)
17662624 shlibpath_overrides_runpath=no
17672625 need_lib_prefix=no
1768 export_dynamic_flag_spec='${wl}-Blargedynsym'
17692626 runpath_var=LD_RUN_PATH
17702627 ;;
17712628 siemens)
17962653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17972654 soname_spec='${libname}${release}${shared_ext}$major'
17982655 shlibpath_var=LD_LIBRARY_PATH
2656 shlibpath_overrides_runpath=yes
17992657 hardcode_into_libs=yes
18002658 if test "$with_gnu_ld" = yes; then
18012659 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
1802 shlibpath_overrides_runpath=no
18032660 else
18042661 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
1805 shlibpath_overrides_runpath=yes
18062662 case $host_os in
18072663 sco3.2v5*)
18082664 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18122668 sys_lib_dlsearch_path_spec='/usr/lib'
18132669 ;;
18142670
2671 tpf*)
2672 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
2673 version_type=linux
2674 need_lib_prefix=no
2675 need_version=no
2676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2677 shlibpath_var=LD_LIBRARY_PATH
2678 shlibpath_overrides_runpath=no
2679 hardcode_into_libs=yes
2680 ;;
2681
18152682 uts4*)
18162683 version_type=linux
18172684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18302697 if test "$GCC" = yes; then
18312698 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18322699 fi
1833 ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
1834
1835