Codebase list librelp / 50c0ffa
Imported Upstream version 1.2.4 Michael Biebl 10 years ago
23 changed file(s) with 10522 addition(s) and 10087 deletion(s). Raw diff Collapse all Expand all
0 ----------------------------------------------------------------------
1 Version 1.2.4 - 2014-03-17
2 - correct API/ABI change in 1.2.3
3 My reasoning was flawed, and we could run into problems with
4 apps that required the new version but could not detect that an
5 older one was installed.
6 Thanks to Michael Biebl for pointing this out.
7 What we have done is:
8 - revert back to previous state (return void)
9 * relpSrvEnableTLS();
10 * relpSrvEnableTLSZip();
11 These functions are now deprecated.
12 - introduce new functions that return a state
13 * relpSrvEnableTLS2();
14 * relpSrvEnableTLSZip2();
015 ----------------------------------------------------------------------
116 Version 1.2.3 - 2014-03-13
17 ************************************************************
18 * NOTE: this version should NOT be used due to the API *
19 * change specified below. *
20 ************************************************************
221 - add ability to build librelp without TLS
322 This is required on some platforms where GnuTLS is too old
423 Use --disable-tls to select this mode. If set, RELP_RET_ERR_NO_TLS
00 Installation Instructions
11 *************************
22
3 Copyright (C) 1994-1996, 1999-2002, 2004-2011 Free Software Foundation,
3 Copyright (C) 1994-1996, 1999-2002, 2004-2013 Free Software Foundation,
44 Inc.
55
66 Copying and distribution of this file, with or without modification,
308308 overridden in the site shell script).
309309
310310 Unfortunately, this technique does not work for `CONFIG_SHELL' due to
311 an Autoconf bug. Until the bug is fixed you can use this workaround:
312
313 CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash
311 an Autoconf limitation. Until the limitation is lifted, you can use
312 this workaround:
313
314 CONFIG_SHELL=/bin/bash ./configure CONFIG_SHELL=/bin/bash
314315
315316 `configure' Invocation
316317 ======================
366367
367368 `configure' also accepts some other, not widely useful, options. Run
368369 `configure --help' for more details.
369
0 # Makefile.in generated by automake 1.11.3 from Makefile.am.
0 # Makefile.in generated by automake 1.13.4 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
5 # Foundation, Inc.
3 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
4
65 # This Makefile.in is free software; the Free Software Foundation
76 # gives unlimited permission to copy and/or distribute it,
87 # with or without modifications, as long as this notice is preserved.
1514 @SET_MAKE@
1615
1716 VPATH = @srcdir@
17 am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
18 am__make_running_with_option = \
19 case $${target_option-} in \
20 ?) ;; \
21 *) echo "am__make_running_with_option: internal error: invalid" \
22 "target option '$${target_option-}' specified" >&2; \
23 exit 1;; \
24 esac; \
25 has_opt=no; \
26 sane_makeflags=$$MAKEFLAGS; \
27 if $(am__is_gnu_make); then \
28 sane_makeflags=$$MFLAGS; \
29 else \
30 case $$MAKEFLAGS in \
31 *\\[\ \ ]*) \
32 bs=\\; \
33 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
34 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
35 esac; \
36 fi; \
37 skip_next=no; \
38 strip_trailopt () \
39 { \
40 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
41 }; \
42 for flg in $$sane_makeflags; do \
43 test $$skip_next = yes && { skip_next=no; continue; }; \
44 case $$flg in \
45 *=*|--*) continue;; \
46 -*I) strip_trailopt 'I'; skip_next=yes;; \
47 -*I?*) strip_trailopt 'I';; \
48 -*O) strip_trailopt 'O'; skip_next=yes;; \
49 -*O?*) strip_trailopt 'O';; \
50 -*l) strip_trailopt 'l'; skip_next=yes;; \
51 -*l?*) strip_trailopt 'l';; \
52 -[dEDm]) skip_next=yes;; \
53 -[JT]) skip_next=yes;; \
54 esac; \
55 case $$flg in \
56 *$$target_option*) has_opt=yes; break;; \
57 esac; \
58 done; \
59 test $$has_opt = yes
60 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
61 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
1862 pkgdatadir = $(datadir)/@PACKAGE@
1963 pkgincludedir = $(includedir)/@PACKAGE@
2064 pkglibdir = $(libdir)/@PACKAGE@
3478 build_triplet = @build@
3579 host_triplet = @host@
3680 subdir = .
37 DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
38 $(srcdir)/Makefile.in $(srcdir)/config.h.in \
39 $(srcdir)/relp.pc.in $(top_srcdir)/configure AUTHORS COPYING \
40 ChangeLog INSTALL NEWS compile config.guess config.sub depcomp \
41 install-sh ltmain.sh missing
81 DIST_COMMON = INSTALL NEWS README AUTHORS ChangeLog \
82 $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
83 $(top_srcdir)/configure $(am__configure_deps) \
84 $(srcdir)/config.h.in $(srcdir)/relp.pc.in COPYING compile \
85 config.guess config.sub depcomp install-sh missing ltmain.sh
4286 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
43 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
87 am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
88 $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
89 $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
90 $(top_srcdir)/configure.ac
4491 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
4592 $(ACLOCAL_M4)
4693 am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
4996 CONFIG_HEADER = config.h
5097 CONFIG_CLEAN_FILES = relp.pc
5198 CONFIG_CLEAN_VPATH_FILES =
99 AM_V_P = $(am__v_P_@AM_V@)
100 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
101 am__v_P_0 = false
102 am__v_P_1 = :
52103 AM_V_GEN = $(am__v_GEN_@AM_V@)
53104 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
54 am__v_GEN_0 = @echo " GEN " $@;
105 am__v_GEN_0 = @echo " GEN " $@;
106 am__v_GEN_1 =
55107 AM_V_at = $(am__v_at_@AM_V@)
56108 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
57109 am__v_at_0 = @
110 am__v_at_1 =
58111 SOURCES =
59112 DIST_SOURCES =
60 RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
61 html-recursive info-recursive install-data-recursive \
62 install-dvi-recursive install-exec-recursive \
63 install-html-recursive install-info-recursive \
64 install-pdf-recursive install-ps-recursive install-recursive \
65 installcheck-recursive installdirs-recursive pdf-recursive \
66 ps-recursive uninstall-recursive
113 RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \
114 ctags-recursive dvi-recursive html-recursive info-recursive \
115 install-data-recursive install-dvi-recursive \
116 install-exec-recursive install-html-recursive \
117 install-info-recursive install-pdf-recursive \
118 install-ps-recursive install-recursive installcheck-recursive \
119 installdirs-recursive pdf-recursive ps-recursive \
120 tags-recursive uninstall-recursive
121 am__can_run_installinfo = \
122 case $$AM_UPDATE_INFO_DIR in \
123 n|no|NO) false;; \
124 *) (install-info --version) >/dev/null 2>&1;; \
125 esac
67126 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
68127 am__vpath_adj = case $$p in \
69128 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
95154 DATA = $(pkgconfig_DATA)
96155 RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
97156 distclean-recursive maintainer-clean-recursive
98 AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
99 $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
100 distdir dist dist-all distcheck
157 am__recursive_targets = \
158 $(RECURSIVE_TARGETS) \
159 $(RECURSIVE_CLEAN_TARGETS) \
160 $(am__extra_recursive_targets)
161 AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
162 cscope distdir dist dist-all distcheck
163 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \
164 $(LISP)config.h.in
165 # Read a list of newline-separated strings from the standard input,
166 # and print each of them once, without duplicates. Input order is
167 # *not* preserved.
168 am__uniquify_input = $(AWK) '\
169 BEGIN { nonempty = 0; } \
170 { items[$$0] = 1; nonempty = 1; } \
171 END { if (nonempty) { for (i in items) print i; }; } \
172 '
173 # Make sure the list of sources is unique. This is necessary because,
174 # e.g., the same source file might be shared among _SOURCES variables
175 # for different programs/libraries.
176 am__define_uniq_tagged_files = \
177 list='$(am__tagged_files)'; \
178 unique=`for i in $$list; do \
179 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
180 done | $(am__uniquify_input)`
101181 ETAGS = etags
102182 CTAGS = ctags
183 CSCOPE = cscope
103184 DIST_SUBDIRS = $(SUBDIRS)
104185 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
105186 distdir = $(PACKAGE)-$(VERSION)
110191 && rm -rf "$(distdir)" \
111192 || { sleep 5 && rm -rf "$(distdir)"; }; \
112193 else :; fi
194 am__post_remove_distdir = $(am__remove_distdir)
113195 am__relativize = \
114196 dir0=`pwd`; \
115197 sed_first='s,^\([^/]*\)/.*$$,\1,'; \
137219 reldir="$$dir2"
138220 DIST_ARCHIVES = $(distdir).tar.gz
139221 GZIP_ENV = --best
222 DIST_TARGETS = dist-gzip
140223 distuninstallcheck_listfiles = find . -type f -print
141224 am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \
142225 | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$'
330413 -rm -f libtool config.lt
331414 install-pkgconfigDATA: $(pkgconfig_DATA)
332415 @$(NORMAL_INSTALL)
333 test -z "$(pkgconfigdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)"
334416 @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \
417 if test -n "$$list"; then \
418 echo " $(MKDIR_P) '$(DESTDIR)$(pkgconfigdir)'"; \
419 $(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)" || exit 1; \
420 fi; \
335421 for p in $$list; do \
336422 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
337423 echo "$$d$$p"; \
348434 dir='$(DESTDIR)$(pkgconfigdir)'; $(am__uninstall_files_from_dir)
349435
350436 # This directory's subdirectories are mostly independent; you can cd
351 # into them and run `make' without going through this Makefile.
352 # To change the values of `make' variables: instead of editing Makefiles,
353 # (1) if the variable is set in `config.status', edit `config.status'
354 # (which will cause the Makefiles to be regenerated when you run `make');
355 # (2) otherwise, pass the desired values on the `make' command line.
356 $(RECURSIVE_TARGETS):
357 @fail= failcom='exit 1'; \
358 for f in x $$MAKEFLAGS; do \
359 case $$f in \
360 *=* | --[!k]*);; \
361 *k*) failcom='fail=yes';; \
362 esac; \
363 done; \
437 # into them and run 'make' without going through this Makefile.
438 # To change the values of 'make' variables: instead of editing Makefiles,
439 # (1) if the variable is set in 'config.status', edit 'config.status'
440 # (which will cause the Makefiles to be regenerated when you run 'make');
441 # (2) otherwise, pass the desired values on the 'make' command line.
442 $(am__recursive_targets):
443 @fail=; \
444 if $(am__make_keepgoing); then \
445 failcom='fail=yes'; \
446 else \
447 failcom='exit 1'; \
448 fi; \
364449 dot_seen=no; \
365450 target=`echo $@ | sed s/-recursive//`; \
366 list='$(SUBDIRS)'; for subdir in $$list; do \
451 case "$@" in \
452 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
453 *) list='$(SUBDIRS)' ;; \
454 esac; \
455 for subdir in $$list; do \
367456 echo "Making $$target in $$subdir"; \
368457 if test "$$subdir" = "."; then \
369458 dot_seen=yes; \
378467 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
379468 fi; test -z "$$fail"
380469
381 $(RECURSIVE_CLEAN_TARGETS):
382 @fail= failcom='exit 1'; \
383 for f in x $$MAKEFLAGS; do \
384 case $$f in \
385 *=* | --[!k]*);; \
386 *k*) failcom='fail=yes';; \
387 esac; \
388 done; \
389 dot_seen=no; \
390 case "$@" in \
391 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
392 *) list='$(SUBDIRS)' ;; \
393 esac; \
394 rev=''; for subdir in $$list; do \
395 if test "$$subdir" = "."; then :; else \
396 rev="$$subdir $$rev"; \
397 fi; \
398 done; \
399 rev="$$rev ."; \
400 target=`echo $@ | sed s/-recursive//`; \
401 for subdir in $$rev; do \
402 echo "Making $$target in $$subdir"; \
403 if test "$$subdir" = "."; then \
404 local_target="$$target-am"; \
405 else \
406 local_target="$$target"; \
407 fi; \
408 ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
409 || eval $$failcom; \
410 done && test -z "$$fail"
411 tags-recursive:
412 list='$(SUBDIRS)'; for subdir in $$list; do \
413 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
414 done
415 ctags-recursive:
416 list='$(SUBDIRS)'; for subdir in $$list; do \
417 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
418 done
419
420 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
421 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
422 unique=`for i in $$list; do \
423 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
424 done | \
425 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
426 END { if (nonempty) { for (i in files) print i; }; }'`; \
427 mkid -fID $$unique
428 tags: TAGS
429
430 TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
431 $(TAGS_FILES) $(LISP)
470 ID: $(am__tagged_files)
471 $(am__define_uniq_tagged_files); mkid -fID $$unique
472 tags: tags-recursive
473 TAGS: tags
474
475 tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
432476 set x; \
433477 here=`pwd`; \
434478 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
444488 set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
445489 fi; \
446490 done; \
447 list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
448 unique=`for i in $$list; do \
449 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
450 done | \
451 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
452 END { if (nonempty) { for (i in files) print i; }; }'`; \
491 $(am__define_uniq_tagged_files); \
453492 shift; \
454493 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
455494 test -n "$$unique" || unique=$$empty_fix; \
461500 $$unique; \
462501 fi; \
463502 fi
464 ctags: CTAGS
465 CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
466 $(TAGS_FILES) $(LISP)
467 list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
468 unique=`for i in $$list; do \
469 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
470 done | \
471 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
472 END { if (nonempty) { for (i in files) print i; }; }'`; \
503 ctags: ctags-recursive
504
505 CTAGS: ctags
506 ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
507 $(am__define_uniq_tagged_files); \
473508 test -z "$(CTAGS_ARGS)$$unique" \
474509 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
475510 $$unique
478513 here=`$(am__cd) $(top_builddir) && pwd` \
479514 && $(am__cd) $(top_srcdir) \
480515 && gtags -i $(GTAGS_ARGS) "$$here"
516 cscope: cscope.files
517 test ! -s cscope.files \
518 || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS)
519 clean-cscope:
520 -rm -f cscope.files
521 cscope.files: clean-cscope cscopelist
522 cscopelist: cscopelist-recursive
523
524 cscopelist-am: $(am__tagged_files)
525 list='$(am__tagged_files)'; \
526 case "$(srcdir)" in \
527 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
528 *) sdir=$(subdir)/$(srcdir) ;; \
529 esac; \
530 for i in $$list; do \
531 if test -f "$$i"; then \
532 echo "$(subdir)/$$i"; \
533 else \
534 echo "$$sdir/$$i"; \
535 fi; \
536 done >> $(top_builddir)/cscope.files
481537
482538 distclean-tags:
483539 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
540 -rm -f cscope.out cscope.in.out cscope.po.out cscope.files
484541
485542 distdir: $(DISTFILES)
486543 $(am__remove_distdir)
516573 done
517574 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
518575 if test "$$subdir" = .; then :; else \
519 test -d "$(distdir)/$$subdir" \
520 || $(MKDIR_P) "$(distdir)/$$subdir" \
521 || exit 1; \
522 fi; \
523 done
524 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
525 if test "$$subdir" = .; then :; else \
576 $(am__make_dryrun) \
577 || test -d "$(distdir)/$$subdir" \
578 || $(MKDIR_P) "$(distdir)/$$subdir" \
579 || exit 1; \
526580 dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
527581 $(am__relativize); \
528582 new_distdir=$$reldir; \
551605 || chmod -R a+r "$(distdir)"
552606 dist-gzip: distdir
553607 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
554 $(am__remove_distdir)
608 $(am__post_remove_distdir)
555609
556610 dist-bzip2: distdir
557611 tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2
558 $(am__remove_distdir)
612 $(am__post_remove_distdir)
559613
560614 dist-lzip: distdir
561615 tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz
562 $(am__remove_distdir)
563
564 dist-lzma: distdir
565 tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
566 $(am__remove_distdir)
616 $(am__post_remove_distdir)
567617
568618 dist-xz: distdir
569619 tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz
570 $(am__remove_distdir)
620 $(am__post_remove_distdir)
571621
572622 dist-tarZ: distdir
573623 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
574 $(am__remove_distdir)
624 $(am__post_remove_distdir)
575625
576626 dist-shar: distdir
577627 shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
578 $(am__remove_distdir)
628 $(am__post_remove_distdir)
579629
580630 dist-zip: distdir
581631 -rm -f $(distdir).zip
582632 zip -rq $(distdir).zip $(distdir)
583 $(am__remove_distdir)
584
585 dist dist-all: distdir
586 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
587 $(am__remove_distdir)
633 $(am__post_remove_distdir)
634
635 dist dist-all:
636 $(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:'
637 $(am__post_remove_distdir)
588638
589639 # This target untars the dist file and tries a VPATH configuration. Then
590640 # it guarantees that the distribution is self-contained by making another
595645 GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
596646 *.tar.bz2*) \
597647 bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
598 *.tar.lzma*) \
599 lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\
600648 *.tar.lz*) \
601649 lzip -dc $(distdir).tar.lz | $(am__untar) ;;\
602650 *.tar.xz*) \
608656 *.zip*) \
609657 unzip $(distdir).zip ;;\
610658 esac
611 chmod -R a-w $(distdir); chmod a+w $(distdir)
612 mkdir $(distdir)/_build
613 mkdir $(distdir)/_inst
659 chmod -R a-w $(distdir)
660 chmod u+w $(distdir)
661 mkdir $(distdir)/_build $(distdir)/_inst
614662 chmod a-w $(distdir)
615663 test -d $(distdir)/_build || exit 0; \
616664 dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
642690 && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
643691 && cd "$$am__cwd" \
644692 || exit 1
645 $(am__remove_distdir)
693 $(am__post_remove_distdir)
646694 @(echo "$(distdir) archives ready for distribution: "; \
647695 list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
648696 sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
780828
781829 uninstall-am: uninstall-pkgconfigDATA
782830
783 .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all \
784 ctags-recursive install-am install-strip tags-recursive
785
786 .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
787 all all-am am--refresh check check-am clean clean-generic \
788 clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \
789 dist-gzip dist-lzip dist-lzma dist-shar dist-tarZ dist-xz \
790 dist-zip distcheck distclean distclean-generic distclean-hdr \
791 distclean-libtool distclean-tags distcleancheck distdir \
792 distuninstallcheck dvi dvi-am html html-am info info-am \
793 install install-am install-data install-data-am install-dvi \
794 install-dvi-am install-exec install-exec-am install-html \
795 install-html-am install-info install-info-am install-man \
796 install-pdf install-pdf-am install-pkgconfigDATA install-ps \
797 install-ps-am install-strip installcheck installcheck-am \
798 installdirs installdirs-am maintainer-clean \
831 .MAKE: $(am__recursive_targets) all install-am install-strip
832
833 .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \
834 am--refresh check check-am clean clean-cscope clean-generic \
835 clean-libtool cscope cscopelist-am ctags ctags-am dist \
836 dist-all dist-bzip2 dist-gzip dist-lzip dist-shar dist-tarZ \
837 dist-xz dist-zip distcheck distclean distclean-generic \
838 distclean-hdr distclean-libtool distclean-tags distcleancheck \
839 distdir distuninstallcheck dvi dvi-am html html-am info \
840 info-am install install-am install-data install-data-am \
841 install-dvi install-dvi-am install-exec install-exec-am \
842 install-html install-html-am install-info install-info-am \
843 install-man install-pdf install-pdf-am install-pkgconfigDATA \
844 install-ps install-ps-am install-strip installcheck \
845 installcheck-am installdirs installdirs-am maintainer-clean \
799846 maintainer-clean-generic mostlyclean mostlyclean-generic \
800 mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \
801 uninstall uninstall-am uninstall-pkgconfigDATA
847 mostlyclean-libtool pdf pdf-am ps ps-am tags tags-am uninstall \
848 uninstall-am uninstall-pkgconfigDATA
802849
803850
804851 # Tell versions [3.59,3.63) of GNU make to not export all variables.
0 # generated automatically by aclocal 1.11.3 -*- Autoconf -*-
1
2 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
3 # 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
4 # Inc.
0 # generated automatically by aclocal 1.13.4 -*- Autoconf -*-
1
2 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
3
54 # This file is free software; the Free Software Foundation
65 # gives unlimited permission to copy and/or distribute it,
76 # with or without modifications, as long as this notice is preserved.
1110 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
1211 # PARTICULAR PURPOSE.
1312
13 m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
1414 m4_ifndef([AC_AUTOCONF_VERSION],
1515 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],,
17 [m4_warning([this file was generated for autoconf 2.68.
16 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
17 [m4_warning([this file was generated for autoconf 2.69.
1818 You have another version of autoconf. It may work, but is not guaranteed to.
1919 If you have problems, you may need to regenerate the build system entirely.
20 To do so, use the procedure documented by the package, typically `autoreconf'.])])
21
22 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
23 #
24 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
25 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
26 # Foundation, Inc.
27 # Written by Gordon Matzigkeit, 1996
28 #
29 # This file is free software; the Free Software Foundation gives
30 # unlimited permission to copy and/or distribute it, with or without
31 # modifications, as long as this notice is preserved.
32
33 m4_define([_LT_COPYING], [dnl
34 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
35 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
36 # Foundation, Inc.
37 # Written by Gordon Matzigkeit, 1996
38 #
39 # This file is part of GNU Libtool.
40 #
41 # GNU Libtool is free software; you can redistribute it and/or
42 # modify it under the terms of the GNU General Public License as
43 # published by the Free Software Foundation; either version 2 of
44 # the License, or (at your option) any later version.
45 #
46 # As a special exception to the GNU General Public License,
47 # if you distribute this file as part of a program or library that
48 # is built using GNU Libtool, you may include this file under the
49 # same distribution terms that you use for the rest of that program.
50 #
51 # GNU Libtool is distributed in the hope that it will be useful,
52 # but WITHOUT ANY WARRANTY; without even the implied warranty of
53 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
54 # GNU General Public License for more details.
55 #
56 # You should have received a copy of the GNU General Public License
57 # along with GNU Libtool; see the file COPYING. If not, a copy
58 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
59 # obtained by writing to the Free Software Foundation, Inc.,
60 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
61 ])
62
63 # serial 57 LT_INIT
64
65
66 # LT_PREREQ(VERSION)
67 # ------------------
68 # Complain and exit if this libtool version is less that VERSION.
69 m4_defun([LT_PREREQ],
70 [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
71 [m4_default([$3],
72 [m4_fatal([Libtool version $1 or higher is required],
73 63)])],
74 [$2])])
75
76
77 # _LT_CHECK_BUILDDIR
78 # ------------------
79 # Complain if the absolute build directory name contains unusual characters
80 m4_defun([_LT_CHECK_BUILDDIR],
81 [case `pwd` in
82 *\ * | *\ *)
83 AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
84 esac
85 ])
86
87
88 # LT_INIT([OPTIONS])
89 # ------------------
90 AC_DEFUN([LT_INIT],
91 [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
92 AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
93 AC_BEFORE([$0], [LT_LANG])dnl
94 AC_BEFORE([$0], [LT_OUTPUT])dnl
95 AC_BEFORE([$0], [LTDL_INIT])dnl
96 m4_require([_LT_CHECK_BUILDDIR])dnl
97
98 dnl Autoconf doesn't catch unexpanded LT_ macros by default:
99 m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
100 m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
101 dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
102 dnl unless we require an AC_DEFUNed macro:
103 AC_REQUIRE([LTOPTIONS_VERSION])dnl
104 AC_REQUIRE([LTSUGAR_VERSION])dnl
105 AC_REQUIRE([LTVERSION_VERSION])dnl
106 AC_REQUIRE([LTOBSOLETE_VERSION])dnl
107 m4_require([_LT_PROG_LTMAIN])dnl
108
109 _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
110
111 dnl Parse OPTIONS
112 _LT_SET_OPTIONS([$0], [$1])
113
114 # This can be used to rebuild libtool when needed
115 LIBTOOL_DEPS="$ltmain"
116
117 # Always use our own libtool.
118 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
119 AC_SUBST(LIBTOOL)dnl
120
121 _LT_SETUP
122
123 # Only expand once:
124 m4_define([LT_INIT])
125 ])# LT_INIT
126
127 # Old names:
128 AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
129 AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
130 dnl aclocal-1.4 backwards compatibility:
131 dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
132 dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
133
134
135 # _LT_CC_BASENAME(CC)
136 # -------------------
137 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
138 m4_defun([_LT_CC_BASENAME],
139 [for cc_temp in $1""; do
140 case $cc_temp in
141 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
142 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
143 \-*) ;;
144 *) break;;
145 esac
146 done
147 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
148 ])
149
150
151 # _LT_FILEUTILS_DEFAULTS
152 # ----------------------
153 # It is okay to use these file commands and assume they have been set
154 # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
155 m4_defun([_LT_FILEUTILS_DEFAULTS],
156 [: ${CP="cp -f"}
157 : ${MV="mv -f"}
158 : ${RM="rm -f"}
159 ])# _LT_FILEUTILS_DEFAULTS
160
161
162 # _LT_SETUP
163 # ---------
164 m4_defun([_LT_SETUP],
165 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
166 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
167 AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
168 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
169
170 _LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
171 dnl
172 _LT_DECL([], [host_alias], [0], [The host system])dnl
173 _LT_DECL([], [host], [0])dnl
174 _LT_DECL([], [host_os], [0])dnl
175 dnl
176 _LT_DECL([], [build_alias], [0], [The build system])dnl
177 _LT_DECL([], [build], [0])dnl
178 _LT_DECL([], [build_os], [0])dnl
179 dnl
180 AC_REQUIRE([AC_PROG_CC])dnl
181 AC_REQUIRE([LT_PATH_LD])dnl
182 AC_REQUIRE([LT_PATH_NM])dnl
183 dnl
184 AC_REQUIRE([AC_PROG_LN_S])dnl
185 test -z "$LN_S" && LN_S="ln -s"
186 _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
187 dnl
188 AC_REQUIRE([LT_CMD_MAX_LEN])dnl
189 _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
190 _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
191 dnl
192 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
193 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
194 m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
195 m4_require([_LT_CMD_RELOAD])dnl
196 m4_require([_LT_CHECK_MAGIC_METHOD])dnl
197 m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
198 m4_require([_LT_CMD_OLD_ARCHIVE])dnl
199 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
200 m4_require([_LT_WITH_SYSROOT])dnl
201
202 _LT_CONFIG_LIBTOOL_INIT([
203 # See if we are running on zsh, and set the options which allow our
204 # commands through without removal of \ escapes INIT.
205 if test -n "\${ZSH_VERSION+set}" ; then
206 setopt NO_GLOB_SUBST
207 fi
208 ])
209 if test -n "${ZSH_VERSION+set}" ; then
210 setopt NO_GLOB_SUBST
211 fi
212
213 _LT_CHECK_OBJDIR
214
215 m4_require([_LT_TAG_COMPILER])dnl
216
217 case $host_os in
218 aix3*)
219 # AIX sometimes has problems with the GCC collect2 program. For some
220 # reason, if we set the COLLECT_NAMES environment variable, the problems
221 # vanish in a puff of smoke.
222 if test "X${COLLECT_NAMES+set}" != Xset; then
223 COLLECT_NAMES=
224 export COLLECT_NAMES
225 fi
226 ;;
227 esac
228
229 # Global variables:
230 ofile=libtool
231 can_build_shared=yes
232
233 # All known linkers require a `.a' archive for static linking (except MSVC,
234 # which needs '.lib').
235 libext=a
236
237 with_gnu_ld="$lt_cv_prog_gnu_ld"
238
239 old_CC="$CC"
240 old_CFLAGS="$CFLAGS"
241
242 # Set sane defaults for various variables
243 test -z "$CC" && CC=cc
244 test -z "$LTCC" && LTCC=$CC
245 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
246 test -z "$LD" && LD=ld
247 test -z "$ac_objext" && ac_objext=o
248
249 _LT_CC_BASENAME([$compiler])
250
251 # Only perform the check for file, if the check method requires it
252 test -z "$MAGIC_CMD" && MAGIC_CMD=file
253 case $deplibs_check_method in
254 file_magic*)
255 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
256 _LT_PATH_MAGIC
257 fi
258 ;;
259 esac
260
261 # Use C for the default configuration in the libtool script
262 LT_SUPPORTED_TAG([CC])
263 _LT_LANG_C_CONFIG
264 _LT_LANG_DEFAULT_CONFIG
265 _LT_CONFIG_COMMANDS
266 ])# _LT_SETUP
267
268
269 # _LT_PREPARE_SED_QUOTE_VARS
270 # --------------------------
271 # Define a few sed substitution that help us do robust quoting.
272 m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
273 [# Backslashify metacharacters that are still active within
274 # double-quoted strings.
275 sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
276
277 # Same as above, but do not quote variable references.
278 double_quote_subst='s/\([["`\\]]\)/\\\1/g'
279
280 # Sed substitution to delay expansion of an escaped shell variable in a
281 # double_quote_subst'ed string.
282 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
283
284 # Sed substitution to delay expansion of an escaped single quote.
285 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
286
287 # Sed substitution to avoid accidental globbing in evaled expressions
288 no_glob_subst='s/\*/\\\*/g'
289 ])
290
291 # _LT_PROG_LTMAIN
292 # ---------------
293 # Note that this code is called both from `configure', and `config.status'
294 # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
295 # `config.status' has no value for ac_aux_dir unless we are using Automake,
296 # so we pass a copy along to make sure it has a sensible value anyway.
297 m4_defun([_LT_PROG_LTMAIN],
298 [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
299 _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
300 ltmain="$ac_aux_dir/ltmain.sh"
301 ])# _LT_PROG_LTMAIN
302
303
304
305 # So that we can recreate a full libtool script including additional
306 # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
307 # in macros and then make a single call at the end using the `libtool'
308 # label.
309
310
311 # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
312 # ----------------------------------------
313 # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
314 m4_define([_LT_CONFIG_LIBTOOL_INIT],
315 [m4_ifval([$1],
316 [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
317 [$1
318 ])])])
319
320 # Initialize.
321 m4_define([_LT_OUTPUT_LIBTOOL_INIT])
322
323
324 # _LT_CONFIG_LIBTOOL([COMMANDS])
325 # ------------------------------
326 # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
327 m4_define([_LT_CONFIG_LIBTOOL],
328 [m4_ifval([$1],
329 [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
330 [$1
331 ])])])
332
333 # Initialize.
334 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
335
336
337 # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
338 # -----------------------------------------------------
339 m4_defun([_LT_CONFIG_SAVE_COMMANDS],
340 [_LT_CONFIG_LIBTOOL([$1])
341 _LT_CONFIG_LIBTOOL_INIT([$2])
342 ])
343
344
345 # _LT_FORMAT_COMMENT([COMMENT])
346 # -----------------------------
347 # Add leading comment marks to the start of each line, and a trailing
348 # full-stop to the whole comment if one is not present already.
349 m4_define([_LT_FORMAT_COMMENT],
350 [m4_ifval([$1], [
351 m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
352 [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
353 )])
354
355
356
357
358
359 # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
360 # -------------------------------------------------------------------
361 # CONFIGNAME is the name given to the value in the libtool script.
362 # VARNAME is the (base) name used in the configure script.
363 # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
364 # VARNAME. Any other value will be used directly.
365 m4_define([_LT_DECL],
366 [lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
367 [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
368 [m4_ifval([$1], [$1], [$2])])
369 lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
370 m4_ifval([$4],
371 [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
372 lt_dict_add_subkey([lt_decl_dict], [$2],
373 [tagged?], [m4_ifval([$5], [yes], [no])])])
374 ])
375
376
377 # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
378 # --------------------------------------------------------
379 m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
380
381
382 # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
383 # ------------------------------------------------
384 m4_define([lt_decl_tag_varnames],
385 [_lt_decl_filter([tagged?], [yes], $@)])
386
387
388 # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
389 # ---------------------------------------------------------
390 m4_define([_lt_decl_filter],
391 [m4_case([$#],
392 [0], [m4_fatal([$0: too few arguments: $#])],
393 [1], [m4_fatal([$0: too few arguments: $#: $1])],
394 [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
395 [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
396 [lt_dict_filter([lt_decl_dict], $@)])[]dnl
397 ])
398
399
400 # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
401 # --------------------------------------------------
402 m4_define([lt_decl_quote_varnames],
403 [_lt_decl_filter([value], [1], $@)])
404
405
406 # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
407 # ---------------------------------------------------
408 m4_define([lt_decl_dquote_varnames],
409 [_lt_decl_filter([value], [2], $@)])
410
411
412 # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
413 # ---------------------------------------------------
414 m4_define([lt_decl_varnames_tagged],
415 [m4_assert([$# <= 2])dnl
416 _$0(m4_quote(m4_default([$1], [[, ]])),
417 m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
418 m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
419 m4_define([_lt_decl_varnames_tagged],
420 [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
421
422
423 # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
424 # ------------------------------------------------
425 m4_define([lt_decl_all_varnames],
426 [_$0(m4_quote(m4_default([$1], [[, ]])),
427 m4_if([$2], [],
428 m4_quote(lt_decl_varnames),
429 m4_quote(m4_shift($@))))[]dnl
430 ])
431 m4_define([_lt_decl_all_varnames],
432 [lt_join($@, lt_decl_varnames_tagged([$1],
433 lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
434 ])
435
436
437 # _LT_CONFIG_STATUS_DECLARE([VARNAME])
438 # ------------------------------------
439 # Quote a variable value, and forward it to `config.status' so that its
440 # declaration there will have the same value as in `configure'. VARNAME
441 # must have a single quote delimited value for this to work.
442 m4_define([_LT_CONFIG_STATUS_DECLARE],
443 [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
444
445
446 # _LT_CONFIG_STATUS_DECLARATIONS
447 # ------------------------------
448 # We delimit libtool config variables with single quotes, so when
449 # we write them to config.status, we have to be sure to quote all
450 # embedded single quotes properly. In configure, this macro expands
451 # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
452 #
453 # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
454 m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
455 [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
456 [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
457
458
459 # _LT_LIBTOOL_TAGS
460 # ----------------
461 # Output comment and list of tags supported by the script
462 m4_defun([_LT_LIBTOOL_TAGS],
463 [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
464 available_tags="_LT_TAGS"dnl
465 ])
466
467
468 # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
469 # -----------------------------------
470 # Extract the dictionary values for VARNAME (optionally with TAG) and
471 # expand to a commented shell variable setting:
472 #
473 # # Some comment about what VAR is for.
474 # visible_name=$lt_internal_name
475 m4_define([_LT_LIBTOOL_DECLARE],
476 [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
477 [description])))[]dnl
478 m4_pushdef([_libtool_name],
479 m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
480 m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
481 [0], [_libtool_name=[$]$1],
482 [1], [_libtool_name=$lt_[]$1],
483 [2], [_libtool_name=$lt_[]$1],
484 [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
485 m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
486 ])
487
488
489 # _LT_LIBTOOL_CONFIG_VARS
490 # -----------------------
491 # Produce commented declarations of non-tagged libtool config variables
492 # suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
493 # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
494 # section) are produced by _LT_LIBTOOL_TAG_VARS.
495 m4_defun([_LT_LIBTOOL_CONFIG_VARS],
496 [m4_foreach([_lt_var],
497 m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
498 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
499
500
501 # _LT_LIBTOOL_TAG_VARS(TAG)
502 # -------------------------
503 m4_define([_LT_LIBTOOL_TAG_VARS],
504 [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
505 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
506
507
508 # _LT_TAGVAR(VARNAME, [TAGNAME])
509 # ------------------------------
510 m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
511
512
513 # _LT_CONFIG_COMMANDS
514 # -------------------
515 # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
516 # variables for single and double quote escaping we saved from calls
517 # to _LT_DECL, we can put quote escaped variables declarations
518 # into `config.status', and then the shell code to quote escape them in
519 # for loops in `config.status'. Finally, any additional code accumulated
520 # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
521 m4_defun([_LT_CONFIG_COMMANDS],
522 [AC_PROVIDE_IFELSE([LT_OUTPUT],
523 dnl If the libtool generation code has been placed in $CONFIG_LT,
524 dnl instead of duplicating it all over again into config.status,
525 dnl then we will have config.status run $CONFIG_LT later, so it
526 dnl needs to know what name is stored there:
527 [AC_CONFIG_COMMANDS([libtool],
528 [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
529 dnl If the libtool generation code is destined for config.status,
530 dnl expand the accumulated commands and init code now:
531 [AC_CONFIG_COMMANDS([libtool],
532 [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
533 ])#_LT_CONFIG_COMMANDS
534
535
536 # Initialize.
537 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
538 [
539
540 # The HP-UX ksh and POSIX shell print the target directory to stdout
541 # if CDPATH is set.
542 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
543
544 sed_quote_subst='$sed_quote_subst'
545 double_quote_subst='$double_quote_subst'
546 delay_variable_subst='$delay_variable_subst'
547 _LT_CONFIG_STATUS_DECLARATIONS
548 LTCC='$LTCC'
549 LTCFLAGS='$LTCFLAGS'
550 compiler='$compiler_DEFAULT'
551
552 # A function that is used when there is no print builtin or printf.
553 func_fallback_echo ()
554 {
555 eval 'cat <<_LTECHO_EOF
556 \$[]1
557 _LTECHO_EOF'
558 }
559
560 # Quote evaled strings.
561 for var in lt_decl_all_varnames([[ \
562 ]], lt_decl_quote_varnames); do
563 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
564 *[[\\\\\\\`\\"\\\$]]*)
565 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
566 ;;
567 *)
568 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
569 ;;
570 esac
571 done
572
573 # Double-quote double-evaled strings.
574 for var in lt_decl_all_varnames([[ \
575 ]], lt_decl_dquote_varnames); do
576 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
577 *[[\\\\\\\`\\"\\\$]]*)
578 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
579 ;;
580 *)
581 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
582 ;;
583 esac
584 done
585
586 _LT_OUTPUT_LIBTOOL_INIT
587 ])
588
589 # _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
590 # ------------------------------------
591 # Generate a child script FILE with all initialization necessary to
592 # reuse the environment learned by the parent script, and make the
593 # file executable. If COMMENT is supplied, it is inserted after the
594 # `#!' sequence but before initialization text begins. After this
595 # macro, additional text can be appended to FILE to form the body of
596 # the child script. The macro ends with non-zero status if the
597 # file could not be fully written (such as if the disk is full).
598 m4_ifdef([AS_INIT_GENERATED],
599 [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
600 [m4_defun([_LT_GENERATED_FILE_INIT],
601 [m4_require([AS_PREPARE])]dnl
602 [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
603 [lt_write_fail=0
604 cat >$1 <<_ASEOF || lt_write_fail=1
605 #! $SHELL
606 # Generated by $as_me.
607 $2
608 SHELL=\${CONFIG_SHELL-$SHELL}
609 export SHELL
610 _ASEOF
611 cat >>$1 <<\_ASEOF || lt_write_fail=1
612 AS_SHELL_SANITIZE
613 _AS_PREPARE
614 exec AS_MESSAGE_FD>&1
615 _ASEOF
616 test $lt_write_fail = 0 && chmod +x $1[]dnl
617 m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
618
619 # LT_OUTPUT
620 # ---------
621 # This macro allows early generation of the libtool script (before
622 # AC_OUTPUT is called), incase it is used in configure for compilation
623 # tests.
624 AC_DEFUN([LT_OUTPUT],
625 [: ${CONFIG_LT=./config.lt}
626 AC_MSG_NOTICE([creating $CONFIG_LT])
627 _LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
628 [# Run this file to recreate a libtool stub with the current configuration.])
629
630 cat >>"$CONFIG_LT" <<\_LTEOF
631 lt_cl_silent=false
632 exec AS_MESSAGE_LOG_FD>>config.log
633 {
634 echo
635 AS_BOX([Running $as_me.])
636 } >&AS_MESSAGE_LOG_FD
637
638 lt_cl_help="\
639 \`$as_me' creates a local libtool stub from the current configuration,
640 for use in further configure time tests before the real libtool is
641 generated.
642
643 Usage: $[0] [[OPTIONS]]
644
645 -h, --help print this help, then exit
646 -V, --version print version number, then exit
647 -q, --quiet do not print progress messages
648 -d, --debug don't remove temporary files
649
650 Report bugs to <bug-libtool@gnu.org>."
651
652 lt_cl_version="\
653 m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
654 m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
655 configured by $[0], generated by m4_PACKAGE_STRING.
656
657 Copyright (C) 2011 Free Software Foundation, Inc.
658 This config.lt script is free software; the Free Software Foundation
659 gives unlimited permision to copy, distribute and modify it."
660
661 while test $[#] != 0
662 do
663 case $[1] in
664 --version | --v* | -V )
665 echo "$lt_cl_version"; exit 0 ;;
666 --help | --h* | -h )
667 echo "$lt_cl_help"; exit 0 ;;
668 --debug | --d* | -d )
669 debug=: ;;
670 --quiet | --q* | --silent | --s* | -q )
671 lt_cl_silent=: ;;
672
673 -*) AC_MSG_ERROR([unrecognized option: $[1]
674 Try \`$[0] --help' for more information.]) ;;
675
676 *) AC_MSG_ERROR([unrecognized argument: $[1]
677 Try \`$[0] --help' for more information.]) ;;
678 esac
679 shift
680 done
681
682 if $lt_cl_silent; then
683 exec AS_MESSAGE_FD>/dev/null
684 fi
685 _LTEOF
686
687 cat >>"$CONFIG_LT" <<_LTEOF
688 _LT_OUTPUT_LIBTOOL_COMMANDS_INIT
689 _LTEOF
690
691 cat >>"$CONFIG_LT" <<\_LTEOF
692 AC_MSG_NOTICE([creating $ofile])
693 _LT_OUTPUT_LIBTOOL_COMMANDS
694 AS_EXIT(0)
695 _LTEOF
696 chmod +x "$CONFIG_LT"
697
698 # configure is writing to config.log, but config.lt does its own redirection,
699 # appending to config.log, which fails on DOS, as config.log is still kept
700 # open by configure. Here we exec the FD to /dev/null, effectively closing
701 # config.log, so it can be properly (re)opened and appended to by config.lt.
702 lt_cl_success=:
703 test "$silent" = yes &&
704 lt_config_lt_args="$lt_config_lt_args --quiet"
705 exec AS_MESSAGE_LOG_FD>/dev/null
706 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
707 exec AS_MESSAGE_LOG_FD>>config.log
708 $lt_cl_success || AS_EXIT(1)
709 ])# LT_OUTPUT
710
711
712 # _LT_CONFIG(TAG)
713 # ---------------
714 # If TAG is the built-in tag, create an initial libtool script with a
715 # default configuration from the untagged config vars. Otherwise add code
716 # to config.status for appending the configuration named by TAG from the
717 # matching tagged config vars.
718 m4_defun([_LT_CONFIG],
719 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
720 _LT_CONFIG_SAVE_COMMANDS([
721 m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
722 m4_if(_LT_TAG, [C], [
723 # See if we are running on zsh, and set the options which allow our
724 # commands through without removal of \ escapes.
725 if test -n "${ZSH_VERSION+set}" ; then
726 setopt NO_GLOB_SUBST
727 fi
728
729 cfgfile="${ofile}T"
730 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
731 $RM "$cfgfile"
732
733 cat <<_LT_EOF >> "$cfgfile"
734 #! $SHELL
735
736 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
737 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
738 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
739 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
740 #
741 _LT_COPYING
742 _LT_LIBTOOL_TAGS
743
744 # ### BEGIN LIBTOOL CONFIG
745 _LT_LIBTOOL_CONFIG_VARS
746 _LT_LIBTOOL_TAG_VARS
747 # ### END LIBTOOL CONFIG
748
749 _LT_EOF
750
751 case $host_os in
752 aix3*)
753 cat <<\_LT_EOF >> "$cfgfile"
754 # AIX sometimes has problems with the GCC collect2 program. For some
755 # reason, if we set the COLLECT_NAMES environment variable, the problems
756 # vanish in a puff of smoke.
757 if test "X${COLLECT_NAMES+set}" != Xset; then
758 COLLECT_NAMES=
759 export COLLECT_NAMES
760 fi
761 _LT_EOF
762 ;;
763 esac
764
765 _LT_PROG_LTMAIN
766
767 # We use sed instead of cat because bash on DJGPP gets confused if
768 # if finds mixed CR/LF and LF-only lines. Since sed operates in
769 # text mode, it properly converts lines to CR/LF. This bash problem
770 # is reportedly fixed, but why not run on old versions too?
771 sed '$q' "$ltmain" >> "$cfgfile" \
772 || (rm -f "$cfgfile"; exit 1)
773
774 _LT_PROG_REPLACE_SHELLFNS
775
776 mv -f "$cfgfile" "$ofile" ||
777 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
778 chmod +x "$ofile"
779 ],
780 [cat <<_LT_EOF >> "$ofile"
781
782 dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
783 dnl in a comment (ie after a #).
784 # ### BEGIN LIBTOOL TAG CONFIG: $1
785 _LT_LIBTOOL_TAG_VARS(_LT_TAG)
786 # ### END LIBTOOL TAG CONFIG: $1
787 _LT_EOF
788 ])dnl /m4_if
789 ],
790 [m4_if([$1], [], [
791 PACKAGE='$PACKAGE'
792 VERSION='$VERSION'
793 TIMESTAMP='$TIMESTAMP'
794 RM='$RM'
795 ofile='$ofile'], [])
796 ])dnl /_LT_CONFIG_SAVE_COMMANDS
797 ])# _LT_CONFIG
798
799
800 # LT_SUPPORTED_TAG(TAG)
801 # ---------------------
802 # Trace this macro to discover what tags are supported by the libtool
803 # --tag option, using:
804 # autoconf --trace 'LT_SUPPORTED_TAG:$1'
805 AC_DEFUN([LT_SUPPORTED_TAG], [])
806
807
808 # C support is built-in for now
809 m4_define([_LT_LANG_C_enabled], [])
810 m4_define([_LT_TAGS], [])
811
812
813 # LT_LANG(LANG)
814 # -------------
815 # Enable libtool support for the given language if not already enabled.
816 AC_DEFUN([LT_LANG],
817 [AC_BEFORE([$0], [LT_OUTPUT])dnl
818 m4_case([$1],
819 [C], [_LT_LANG(C)],
820 [C++], [_LT_LANG(CXX)],
821 [Go], [_LT_LANG(GO)],
822 [Java], [_LT_LANG(GCJ)],
823 [Fortran 77], [_LT_LANG(F77)],
824 [Fortran], [_LT_LANG(FC)],
825 [Windows Resource], [_LT_LANG(RC)],
826 [m4_ifdef([_LT_LANG_]$1[_CONFIG],
827 [_LT_LANG($1)],
828 [m4_fatal([$0: unsupported language: "$1"])])])dnl
829 ])# LT_LANG
830
831
832 # _LT_LANG(LANGNAME)
833 # ------------------
834 m4_defun([_LT_LANG],
835 [m4_ifdef([_LT_LANG_]$1[_enabled], [],
836 [LT_SUPPORTED_TAG([$1])dnl
837 m4_append([_LT_TAGS], [$1 ])dnl
838 m4_define([_LT_LANG_]$1[_enabled], [])dnl
839 _LT_LANG_$1_CONFIG($1)])dnl
840 ])# _LT_LANG
841
842
843 m4_ifndef([AC_PROG_GO], [
844 # NOTE: This macro has been submitted for inclusion into #
845 # GNU Autoconf as AC_PROG_GO. When it is available in #
846 # a released version of Autoconf we should remove this #
847 # macro and use it instead. #
848 m4_defun([AC_PROG_GO],
849 [AC_LANG_PUSH(Go)dnl
850 AC_ARG_VAR([GOC], [Go compiler command])dnl
851 AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
852 _AC_ARG_VAR_LDFLAGS()dnl
853 AC_CHECK_TOOL(GOC, gccgo)
854 if test -z "$GOC"; then
855 if test -n "$ac_tool_prefix"; then
856 AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
857 fi
858 fi
859 if test -z "$GOC"; then
860 AC_CHECK_PROG(GOC, gccgo, gccgo, false)
861 fi
862 ])#m4_defun
863 ])#m4_ifndef
864
865
866 # _LT_LANG_DEFAULT_CONFIG
867 # -----------------------
868 m4_defun([_LT_LANG_DEFAULT_CONFIG],
869 [AC_PROVIDE_IFELSE([AC_PROG_CXX],
870 [LT_LANG(CXX)],
871 [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
872
873 AC_PROVIDE_IFELSE([AC_PROG_F77],
874 [LT_LANG(F77)],
875 [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
876
877 AC_PROVIDE_IFELSE([AC_PROG_FC],
878 [LT_LANG(FC)],
879 [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
880
881 dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
882 dnl pulling things in needlessly.
883 AC_PROVIDE_IFELSE([AC_PROG_GCJ],
884 [LT_LANG(GCJ)],
885 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
886 [LT_LANG(GCJ)],
887 [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
888 [LT_LANG(GCJ)],
889 [m4_ifdef([AC_PROG_GCJ],
890 [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
891 m4_ifdef([A][M_PROG_GCJ],
892 [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
893 m4_ifdef([LT_PROG_GCJ],
894 [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
895
896 AC_PROVIDE_IFELSE([AC_PROG_GO],
897 [LT_LANG(GO)],
898 [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
899
900 AC_PROVIDE_IFELSE([LT_PROG_RC],
901 [LT_LANG(RC)],
902 [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
903 ])# _LT_LANG_DEFAULT_CONFIG
904
905 # Obsolete macros:
906 AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
907 AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
908 AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
909 AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
910 AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
911 dnl aclocal-1.4 backwards compatibility:
912 dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
913 dnl AC_DEFUN([AC_LIBTOOL_F77], [])
914 dnl AC_DEFUN([AC_LIBTOOL_FC], [])
915 dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
916 dnl AC_DEFUN([AC_LIBTOOL_RC], [])
917
918
919 # _LT_TAG_COMPILER
920 # ----------------
921 m4_defun([_LT_TAG_COMPILER],
922 [AC_REQUIRE([AC_PROG_CC])dnl
923
924 _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
925 _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
926 _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
927 _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
928
929 # If no C compiler was specified, use CC.
930 LTCC=${LTCC-"$CC"}
931
932 # If no C compiler flags were specified, use CFLAGS.
933 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
934
935 # Allow CC to be a program name with arguments.
936 compiler=$CC
937 ])# _LT_TAG_COMPILER
938
939
940 # _LT_COMPILER_BOILERPLATE
941 # ------------------------
942 # Check for compiler boilerplate output or warnings with
943 # the simple compiler test code.
944 m4_defun([_LT_COMPILER_BOILERPLATE],
945 [m4_require([_LT_DECL_SED])dnl
946 ac_outfile=conftest.$ac_objext
947 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
948 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
949 _lt_compiler_boilerplate=`cat conftest.err`
950 $RM conftest*
951 ])# _LT_COMPILER_BOILERPLATE
952
953
954 # _LT_LINKER_BOILERPLATE
955 # ----------------------
956 # Check for linker boilerplate output or warnings with
957 # the simple link test code.
958 m4_defun([_LT_LINKER_BOILERPLATE],
959 [m4_require([_LT_DECL_SED])dnl
960 ac_outfile=conftest.$ac_objext
961 echo "$lt_simple_link_test_code" >conftest.$ac_ext
962 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
963 _lt_linker_boilerplate=`cat conftest.err`
964 $RM -r conftest*
965 ])# _LT_LINKER_BOILERPLATE
966
967 # _LT_REQUIRED_DARWIN_CHECKS
968 # -------------------------
969 m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
970 case $host_os in
971 rhapsody* | darwin*)
972 AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
973 AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
974 AC_CHECK_TOOL([LIPO], [lipo], [:])
975 AC_CHECK_TOOL([OTOOL], [otool], [:])
976 AC_CHECK_TOOL([OTOOL64], [otool64], [:])
977 _LT_DECL([], [DSYMUTIL], [1],
978 [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
979 _LT_DECL([], [NMEDIT], [1],
980 [Tool to change global to local symbols on Mac OS X])
981 _LT_DECL([], [LIPO], [1],
982 [Tool to manipulate fat objects and archives on Mac OS X])
983 _LT_DECL([], [OTOOL], [1],
984 [ldd/readelf like tool for Mach-O binaries on Mac OS X])
985 _LT_DECL([], [OTOOL64], [1],
986 [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
987
988 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
989 [lt_cv_apple_cc_single_mod=no
990 if test -z "${LT_MULTI_MODULE}"; then
991 # By default we will add the -single_module flag. You can override
992 # by either setting the environment variable LT_MULTI_MODULE
993 # non-empty at configure time, or by adding -multi_module to the
994 # link flags.
995 rm -rf libconftest.dylib*
996 echo "int foo(void){return 1;}" > conftest.c
997 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
998 -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
999 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1000 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
1001 _lt_result=$?
1002 # If there is a non-empty error log, and "single_module"
1003 # appears in it, assume the flag caused a linker warning
1004 if test -s conftest.err && $GREP single_module conftest.err; then
1005 cat conftest.err >&AS_MESSAGE_LOG_FD
1006 # Otherwise, if the output was created with a 0 exit code from
1007 # the compiler, it worked.
1008 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
1009 lt_cv_apple_cc_single_mod=yes
1010 else
1011 cat conftest.err >&AS_MESSAGE_LOG_FD
1012 fi
1013 rm -rf libconftest.dylib*
1014 rm -f conftest.*
1015 fi])
1016
1017 AC_CACHE_CHECK([for -exported_symbols_list linker flag],
1018 [lt_cv_ld_exported_symbols_list],
1019 [lt_cv_ld_exported_symbols_list=no
1020 save_LDFLAGS=$LDFLAGS
1021 echo "_main" > conftest.sym
1022 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1023 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
1024 [lt_cv_ld_exported_symbols_list=yes],
1025 [lt_cv_ld_exported_symbols_list=no])
1026 LDFLAGS="$save_LDFLAGS"
1027 ])
1028
1029 AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
1030 [lt_cv_ld_force_load=no
1031 cat > conftest.c << _LT_EOF
1032 int forced_loaded() { return 2;}
1033 _LT_EOF
1034 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
1035 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
1036 echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
1037 $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
1038 echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
1039 $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
1040 cat > conftest.c << _LT_EOF
1041 int main() { return 0;}
1042 _LT_EOF
1043 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
1044 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
1045 _lt_result=$?
1046 if test -s conftest.err && $GREP force_load conftest.err; then
1047 cat conftest.err >&AS_MESSAGE_LOG_FD
1048 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
1049 lt_cv_ld_force_load=yes
1050 else
1051 cat conftest.err >&AS_MESSAGE_LOG_FD
1052 fi
1053 rm -f conftest.err libconftest.a conftest conftest.c
1054 rm -rf conftest.dSYM
1055 ])
1056 case $host_os in
1057 rhapsody* | darwin1.[[012]])
1058 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
1059 darwin1.*)
1060 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1061 darwin*) # darwin 5.x on
1062 # if running on 10.5 or later, the deployment target defaults
1063 # to the OS version, if on x86, and 10.4, the deployment
1064 # target defaults to 10.4. Don't you love it?
1065 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
1066 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
1067 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1068 10.[[012]]*)
1069 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1070 10.*)
1071 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1072 esac
1073 ;;
1074 esac
1075 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
1076 _lt_dar_single_mod='$single_module'
1077 fi
1078 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
1079 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
1080 else
1081 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
1082 fi
1083 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
1084 _lt_dsymutil='~$DSYMUTIL $lib || :'
1085 else
1086 _lt_dsymutil=
1087 fi
1088 ;;
1089 esac
1090 ])
1091
1092
1093 # _LT_DARWIN_LINKER_FEATURES([TAG])
1094 # ---------------------------------
1095 # Checks for linker and compiler features on darwin
1096 m4_defun([_LT_DARWIN_LINKER_FEATURES],
1097 [
1098 m4_require([_LT_REQUIRED_DARWIN_CHECKS])
1099 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
1100 _LT_TAGVAR(hardcode_direct, $1)=no
1101 _LT_TAGVAR(hardcode_automatic, $1)=yes
1102 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1103 if test "$lt_cv_ld_force_load" = "yes"; then
1104 _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
1105 m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
1106 [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes])
1107 else
1108 _LT_TAGVAR(whole_archive_flag_spec, $1)=''
1109 fi
1110 _LT_TAGVAR(link_all_deplibs, $1)=yes
1111 _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
1112 case $cc_basename in
1113 ifort*) _lt_dar_can_shared=yes ;;
1114 *) _lt_dar_can_shared=$GCC ;;
1115 esac
1116 if test "$_lt_dar_can_shared" = "yes"; then
1117 output_verbose_link_cmd=func_echo_all
1118 _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}"
1119 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1120 _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}"
1121 _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}"
1122 m4_if([$1], [CXX],
1123 [ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
1124 _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}"
1125 _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}"
1126 fi
1127 ],[])
1128 else
1129 _LT_TAGVAR(ld_shlibs, $1)=no
1130 fi
1131 ])
1132
1133 # _LT_SYS_MODULE_PATH_AIX([TAGNAME])
1134 # ----------------------------------
1135 # Links a minimal program and checks the executable
1136 # for the system default hardcoded library path. In most cases,
1137 # this is /usr/lib:/lib, but when the MPI compilers are used
1138 # the location of the communication and MPI libs are included too.
1139 # If we don't find anything, use the default library path according
1140 # to the aix ld manual.
1141 # Store the results from the different compilers for each TAGNAME.
1142 # Allow to override them for all tags through lt_cv_aix_libpath.
1143 m4_defun([_LT_SYS_MODULE_PATH_AIX],
1144 [m4_require([_LT_DECL_SED])dnl
1145 if test "${lt_cv_aix_libpath+set}" = set; then
1146 aix_libpath=$lt_cv_aix_libpath
1147 else
1148 AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
1149 [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
1150 lt_aix_libpath_sed='[
1151 /Import File Strings/,/^$/ {
1152 /^0/ {
1153 s/^0 *\([^ ]*\) *$/\1/
1154 p
1155 }
1156 }]'
1157 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1158 # Check for a 64-bit object if we didn't find anything.
1159 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1160 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1161 fi],[])
1162 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1163 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
1164 fi
1165 ])
1166 aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
1167 fi
1168 ])# _LT_SYS_MODULE_PATH_AIX
1169
1170
1171 # _LT_SHELL_INIT(ARG)
1172 # -------------------
1173 m4_define([_LT_SHELL_INIT],
1174 [m4_divert_text([M4SH-INIT], [$1
1175 ])])# _LT_SHELL_INIT
1176
1177
1178
1179 # _LT_PROG_ECHO_BACKSLASH
1180 # -----------------------
1181 # Find how we can fake an echo command that does not interpret backslash.
1182 # In particular, with Autoconf 2.60 or later we add some code to the start
1183 # of the generated configure script which will find a shell with a builtin
1184 # printf (which we can use as an echo command).
1185 m4_defun([_LT_PROG_ECHO_BACKSLASH],
1186 [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1187 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1188 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1189
1190 AC_MSG_CHECKING([how to print strings])
1191 # Test print first, because it will be a builtin if present.
1192 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
1193 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
1194 ECHO='print -r --'
1195 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
1196 ECHO='printf %s\n'
1197 else
1198 # Use this function as a fallback that always works.
1199 func_fallback_echo ()
1200 {
1201 eval 'cat <<_LTECHO_EOF
1202 $[]1
1203 _LTECHO_EOF'
1204 }
1205 ECHO='func_fallback_echo'
1206 fi
1207
1208 # func_echo_all arg...
1209 # Invoke $ECHO with all args, space-separated.
1210 func_echo_all ()
1211 {
1212 $ECHO "$*"
1213 }
1214
1215 case "$ECHO" in
1216 printf*) AC_MSG_RESULT([printf]) ;;
1217 print*) AC_MSG_RESULT([print -r]) ;;
1218 *) AC_MSG_RESULT([cat]) ;;
1219 esac
1220
1221 m4_ifdef([_AS_DETECT_SUGGESTED],
1222 [_AS_DETECT_SUGGESTED([
1223 test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
1224 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1225 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1226 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1227 PATH=/empty FPATH=/empty; export PATH FPATH
1228 test "X`printf %s $ECHO`" = "X$ECHO" \
1229 || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
1230
1231 _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
1232 _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
1233 ])# _LT_PROG_ECHO_BACKSLASH
1234
1235
1236 # _LT_WITH_SYSROOT
1237 # ----------------
1238 AC_DEFUN([_LT_WITH_SYSROOT],
1239 [AC_MSG_CHECKING([for sysroot])
1240 AC_ARG_WITH([sysroot],
1241 [ --with-sysroot[=DIR] Search for dependent libraries within DIR
1242 (or the compiler's sysroot if not specified).],
1243 [], [with_sysroot=no])
1244
1245 dnl lt_sysroot will always be passed unquoted. We quote it here
1246 dnl in case the user passed a directory name.
1247 lt_sysroot=
1248 case ${with_sysroot} in #(
1249 yes)
1250 if test "$GCC" = yes; then
1251 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
1252 fi
1253 ;; #(
1254 /*)
1255 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
1256 ;; #(
1257 no|'')
1258 ;; #(
1259 *)
1260 AC_MSG_RESULT([${with_sysroot}])
1261 AC_MSG_ERROR([The sysroot must be an absolute path.])
1262 ;;
1263 esac
1264
1265 AC_MSG_RESULT([${lt_sysroot:-no}])
1266 _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
1267 [dependent libraries, and in which our libraries should be installed.])])
1268
1269 # _LT_ENABLE_LOCK
1270 # ---------------
1271 m4_defun([_LT_ENABLE_LOCK],
1272 [AC_ARG_ENABLE([libtool-lock],
1273 [AS_HELP_STRING([--disable-libtool-lock],
1274 [avoid locking (might break parallel builds)])])
1275 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1276
1277 # Some flags need to be propagated to the compiler or linker for good
1278 # libtool support.
1279 case $host in
1280 ia64-*-hpux*)
1281 # Find out which ABI we are using.
1282 echo 'int i;' > conftest.$ac_ext
1283 if AC_TRY_EVAL(ac_compile); then
1284 case `/usr/bin/file conftest.$ac_objext` in
1285 *ELF-32*)
1286 HPUX_IA64_MODE="32"
1287 ;;
1288 *ELF-64*)
1289 HPUX_IA64_MODE="64"
1290 ;;
1291 esac
1292 fi
1293 rm -rf conftest*
1294 ;;
1295 *-*-irix6*)
1296 # Find out which ABI we are using.
1297 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
1298 if AC_TRY_EVAL(ac_compile); then
1299 if test "$lt_cv_prog_gnu_ld" = yes; then
1300 case `/usr/bin/file conftest.$ac_objext` in
1301 *32-bit*)
1302 LD="${LD-ld} -melf32bsmip"
1303 ;;
1304 *N32*)
1305 LD="${LD-ld} -melf32bmipn32"
1306 ;;
1307 *64-bit*)
1308 LD="${LD-ld} -melf64bmip"
1309 ;;
1310 esac
1311 else
1312 case `/usr/bin/file conftest.$ac_objext` in
1313 *32-bit*)
1314 LD="${LD-ld} -32"
1315 ;;
1316 *N32*)
1317 LD="${LD-ld} -n32"
1318 ;;
1319 *64-bit*)
1320 LD="${LD-ld} -64"
1321 ;;
1322 esac
1323 fi
1324 fi
1325 rm -rf conftest*
1326 ;;
1327
1328 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
1329 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
1330 # Find out which ABI we are using.
1331 echo 'int i;' > conftest.$ac_ext
1332 if AC_TRY_EVAL(ac_compile); then
1333 case `/usr/bin/file conftest.o` in
1334 *32-bit*)
1335 case $host in
1336 x86_64-*kfreebsd*-gnu)
1337 LD="${LD-ld} -m elf_i386_fbsd"
1338 ;;
1339 x86_64-*linux*)
1340 LD="${LD-ld} -m elf_i386"
1341 ;;
1342 ppc64-*linux*|powerpc64-*linux*)
1343 LD="${LD-ld} -m elf32ppclinux"
1344 ;;
1345 s390x-*linux*)
1346 LD="${LD-ld} -m elf_s390"
1347 ;;
1348 sparc64-*linux*)
1349 LD="${LD-ld} -m elf32_sparc"
1350 ;;
1351 esac
1352 ;;
1353 *64-bit*)
1354 case $host in
1355 x86_64-*kfreebsd*-gnu)
1356 LD="${LD-ld} -m elf_x86_64_fbsd"
1357 ;;
1358 x86_64-*linux*)
1359 LD="${LD-ld} -m elf_x86_64"
1360 ;;
1361 ppc*-*linux*|powerpc*-*linux*)
1362 LD="${LD-ld} -m elf64ppc"
1363 ;;
1364 s390*-*linux*|s390*-*tpf*)
1365 LD="${LD-ld} -m elf64_s390"
1366 ;;
1367 sparc*-*linux*)
1368 LD="${LD-ld} -m elf64_sparc"
1369 ;;
1370 esac
1371 ;;
1372 esac
1373 fi
1374 rm -rf conftest*
1375 ;;
1376
1377 *-*-sco3.2v5*)
1378 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1379 SAVE_CFLAGS="$CFLAGS"
1380 CFLAGS="$CFLAGS -belf"
1381 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1382 [AC_LANG_PUSH(C)
1383 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1384 AC_LANG_POP])
1385 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1386 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1387 CFLAGS="$SAVE_CFLAGS"
1388 fi
1389 ;;
1390 *-*solaris*)
1391 # Find out which ABI we are using.
1392 echo 'int i;' > conftest.$ac_ext
1393 if AC_TRY_EVAL(ac_compile); then
1394 case `/usr/bin/file conftest.o` in
1395 *64-bit*)
1396 case $lt_cv_prog_gnu_ld in
1397 yes*)
1398 case $host in
1399 i?86-*-solaris*)
1400 LD="${LD-ld} -m elf_x86_64"
1401 ;;
1402 sparc*-*-solaris*)
1403 LD="${LD-ld} -m elf64_sparc"
1404 ;;
1405 esac
1406 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
1407 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
1408 LD="${LD-ld}_sol2"
1409 fi
1410 ;;
1411 *)
1412 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
1413 LD="${LD-ld} -64"
1414 fi
1415 ;;
1416 esac
1417 ;;
1418 esac
1419 fi
1420 rm -rf conftest*
1421 ;;
1422 esac
1423
1424 need_locks="$enable_libtool_lock"
1425 ])# _LT_ENABLE_LOCK
1426
1427
1428 # _LT_PROG_AR
1429 # -----------
1430 m4_defun([_LT_PROG_AR],
1431 [AC_CHECK_TOOLS(AR, [ar], false)
1432 : ${AR=ar}
1433 : ${AR_FLAGS=cru}
1434 _LT_DECL([], [AR], [1], [The archiver])
1435 _LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
1436
1437 AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
1438 [lt_cv_ar_at_file=no
1439 AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
1440 [echo conftest.$ac_objext > conftest.lst
1441 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
1442 AC_TRY_EVAL([lt_ar_try])
1443 if test "$ac_status" -eq 0; then
1444 # Ensure the archiver fails upon bogus file names.
1445 rm -f conftest.$ac_objext libconftest.a
1446 AC_TRY_EVAL([lt_ar_try])
1447 if test "$ac_status" -ne 0; then
1448 lt_cv_ar_at_file=@
1449 fi
1450 fi
1451 rm -f conftest.* libconftest.a
1452 ])
1453 ])
1454
1455 if test "x$lt_cv_ar_at_file" = xno; then
1456 archiver_list_spec=
1457 else
1458 archiver_list_spec=$lt_cv_ar_at_file
1459 fi
1460 _LT_DECL([], [archiver_list_spec], [1],
1461 [How to feed a file listing to the archiver])
1462 ])# _LT_PROG_AR
1463
1464
1465 # _LT_CMD_OLD_ARCHIVE
1466 # -------------------
1467 m4_defun([_LT_CMD_OLD_ARCHIVE],
1468 [_LT_PROG_AR
1469
1470 AC_CHECK_TOOL(STRIP, strip, :)
1471 test -z "$STRIP" && STRIP=:
1472 _LT_DECL([], [STRIP], [1], [A symbol stripping program])
1473
1474 AC_CHECK_TOOL(RANLIB, ranlib, :)
1475 test -z "$RANLIB" && RANLIB=:
1476 _LT_DECL([], [RANLIB], [1],
1477 [Commands used to install an old-style archive])
1478
1479 # Determine commands to create old-style static archives.
1480 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1481 old_postinstall_cmds='chmod 644 $oldlib'
1482 old_postuninstall_cmds=
1483
1484 if test -n "$RANLIB"; then
1485 case $host_os in
1486 openbsd*)
1487 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
1488 ;;
1489 *)
1490 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
1491 ;;
1492 esac
1493 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
1494 fi
1495
1496 case $host_os in
1497 darwin*)
1498 lock_old_archive_extraction=yes ;;
1499 *)
1500 lock_old_archive_extraction=no ;;
1501 esac
1502 _LT_DECL([], [old_postinstall_cmds], [2])
1503 _LT_DECL([], [old_postuninstall_cmds], [2])
1504 _LT_TAGDECL([], [old_archive_cmds], [2],
1505 [Commands used to build an old-style archive])
1506 _LT_DECL([], [lock_old_archive_extraction], [0],
1507 [Whether to use a lock for old archive extraction])
1508 ])# _LT_CMD_OLD_ARCHIVE
1509
1510
1511 # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1512 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
1513 # ----------------------------------------------------------------
1514 # Check whether the given compiler option works
1515 AC_DEFUN([_LT_COMPILER_OPTION],
1516 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1517 m4_require([_LT_DECL_SED])dnl
1518 AC_CACHE_CHECK([$1], [$2],
1519 [$2=no
1520 m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1521 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1522 lt_compiler_flag="$3"
1523 # Insert the option either (1) after the last *FLAGS variable, or
1524 # (2) before a word containing "conftest.", or (3) at the end.
1525 # Note that $ac_compile itself does not contain backslashes and begins
1526 # with a dollar sign (not a hyphen), so the echo should work correctly.
1527 # The option is referenced via a variable to avoid confusing sed.
1528 lt_compile=`echo "$ac_compile" | $SED \
1529 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1530 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1531 -e 's:$: $lt_compiler_flag:'`
1532 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1533 (eval "$lt_compile" 2>conftest.err)
1534 ac_status=$?
1535 cat conftest.err >&AS_MESSAGE_LOG_FD
1536 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1537 if (exit $ac_status) && test -s "$ac_outfile"; then
1538 # The compiler can only warn and ignore the option if not recognized
1539 # So say no if there are warnings other than the usual output.
1540 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1541 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1542 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1543 $2=yes
1544 fi
1545 fi
1546 $RM conftest*
1547 ])
1548
1549 if test x"[$]$2" = xyes; then
1550 m4_if([$5], , :, [$5])
1551 else
1552 m4_if([$6], , :, [$6])
1553 fi
1554 ])# _LT_COMPILER_OPTION
1555
1556 # Old name:
1557 AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
1558 dnl aclocal-1.4 backwards compatibility:
1559 dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
1560
1561
1562 # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1563 # [ACTION-SUCCESS], [ACTION-FAILURE])
1564 # ----------------------------------------------------
1565 # Check whether the given linker option works
1566 AC_DEFUN([_LT_LINKER_OPTION],
1567 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1568 m4_require([_LT_DECL_SED])dnl
1569 AC_CACHE_CHECK([$1], [$2],
1570 [$2=no
1571 save_LDFLAGS="$LDFLAGS"
1572 LDFLAGS="$LDFLAGS $3"
1573 echo "$lt_simple_link_test_code" > conftest.$ac_ext
1574 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1575 # The linker can only warn and ignore the option if not recognized
1576 # So say no if there are warnings
1577 if test -s conftest.err; then
1578 # Append any errors to the config.log.
1579 cat conftest.err 1>&AS_MESSAGE_LOG_FD
1580 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
1581 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1582 if diff conftest.exp conftest.er2 >/dev/null; then
1583 $2=yes
1584 fi
1585 else
1586 $2=yes
1587 fi
1588 fi
1589 $RM -r conftest*
1590 LDFLAGS="$save_LDFLAGS"
1591 ])
1592
1593 if test x"[$]$2" = xyes; then
1594 m4_if([$4], , :, [$4])
1595 else
1596 m4_if([$5], , :, [$5])
1597 fi
1598 ])# _LT_LINKER_OPTION
1599
1600 # Old name:
1601 AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
1602 dnl aclocal-1.4 backwards compatibility:
1603 dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
1604
1605
1606 # LT_CMD_MAX_LEN
1607 #---------------
1608 AC_DEFUN([LT_CMD_MAX_LEN],
1609 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
1610 # find the maximum length of command line arguments
1611 AC_MSG_CHECKING([the maximum length of command line arguments])
1612 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1613 i=0
1614 teststring="ABCD"
1615
1616 case $build_os in
1617 msdosdjgpp*)
1618 # On DJGPP, this test can blow up pretty badly due to problems in libc
1619 # (any single argument exceeding 2000 bytes causes a buffer overrun
1620 # during glob expansion). Even if it were fixed, the result of this
1621 # check would be larger than it should be.
1622 lt_cv_sys_max_cmd_len=12288; # 12K is about right
1623 ;;
1624
1625 gnu*)
1626 # Under GNU Hurd, this test is not required because there is
1627 # no limit to the length of command line arguments.
1628 # Libtool will interpret -1 as no limit whatsoever
1629 lt_cv_sys_max_cmd_len=-1;
1630 ;;
1631
1632 cygwin* | mingw* | cegcc*)
1633 # On Win9x/ME, this test blows up -- it succeeds, but takes
1634 # about 5 minutes as the teststring grows exponentially.
1635 # Worse, since 9x/ME are not pre-emptively multitasking,
1636 # you end up with a "frozen" computer, even though with patience
1637 # the test eventually succeeds (with a max line length of 256k).
1638 # Instead, let's just punt: use the minimum linelength reported by
1639 # all of the supported platforms: 8192 (on NT/2K/XP).
1640 lt_cv_sys_max_cmd_len=8192;
1641 ;;
1642
1643 mint*)
1644 # On MiNT this can take a long time and run out of memory.
1645 lt_cv_sys_max_cmd_len=8192;
1646 ;;
1647
1648 amigaos*)
1649 # On AmigaOS with pdksh, this test takes hours, literally.
1650 # So we just punt and use a minimum line length of 8192.
1651 lt_cv_sys_max_cmd_len=8192;
1652 ;;
1653
1654 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
1655 # This has been around since 386BSD, at least. Likely further.
1656 if test -x /sbin/sysctl; then
1657 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
1658 elif test -x /usr/sbin/sysctl; then
1659 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
1660 else
1661 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
1662 fi
1663 # And add a safety zone
1664 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1665 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1666 ;;
1667
1668 interix*)
1669 # We know the value 262144 and hardcode it with a safety zone (like BSD)
1670 lt_cv_sys_max_cmd_len=196608
1671 ;;
1672
1673 os2*)
1674 # The test takes a long time on OS/2.
1675 lt_cv_sys_max_cmd_len=8192
1676 ;;
1677
1678 osf*)
1679 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
1680 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
1681 # nice to cause kernel panics so lets avoid the loop below.
1682 # First set a reasonable default.
1683 lt_cv_sys_max_cmd_len=16384
1684 #
1685 if test -x /sbin/sysconfig; then
1686 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
1687 *1*) lt_cv_sys_max_cmd_len=-1 ;;
1688 esac
1689 fi
1690 ;;
1691 sco3.2v5*)
1692 lt_cv_sys_max_cmd_len=102400
1693 ;;
1694 sysv5* | sco5v6* | sysv4.2uw2*)
1695 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
1696 if test -n "$kargmax"; then
1697 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
1698 else
1699 lt_cv_sys_max_cmd_len=32768
1700 fi
1701 ;;
1702 *)
1703 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
1704 if test -n "$lt_cv_sys_max_cmd_len"; then
1705 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1706 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1707 else
1708 # Make teststring a little bigger before we do anything with it.
1709 # a 1K string should be a reasonable start.
1710 for i in 1 2 3 4 5 6 7 8 ; do
1711 teststring=$teststring$teststring
1712 done
1713 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1714 # If test is not a shell built-in, we'll probably end up computing a
1715 # maximum length that is only half of the actual maximum length, but
1716 # we can't tell.
1717 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
1718 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
1719 test $i != 17 # 1/2 MB should be enough
1720 do
1721 i=`expr $i + 1`
1722 teststring=$teststring$teststring
1723 done
1724 # Only check the string length outside the loop.
1725 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
1726 teststring=
1727 # Add a significant safety factor because C++ compilers can tack on
1728 # massive amounts of additional arguments before passing them to the
1729 # linker. It appears as though 1/2 is a usable value.
1730 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1731 fi
1732 ;;
1733 esac
1734 ])
1735 if test -n $lt_cv_sys_max_cmd_len ; then
1736 AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
1737 else
1738 AC_MSG_RESULT(none)
1739 fi
1740 max_cmd_len=$lt_cv_sys_max_cmd_len
1741 _LT_DECL([], [max_cmd_len], [0],
1742 [What is the maximum length of a command?])
1743 ])# LT_CMD_MAX_LEN
1744
1745 # Old name:
1746 AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
1747 dnl aclocal-1.4 backwards compatibility:
1748 dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
1749
1750
1751 # _LT_HEADER_DLFCN
1752 # ----------------
1753 m4_defun([_LT_HEADER_DLFCN],
1754 [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
1755 ])# _LT_HEADER_DLFCN
1756
1757
1758 # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1759 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1760 # ----------------------------------------------------------------
1761 m4_defun([_LT_TRY_DLOPEN_SELF],
1762 [m4_require([_LT_HEADER_DLFCN])dnl
1763 if test "$cross_compiling" = yes; then :
1764 [$4]
1765 else
1766 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1767 lt_status=$lt_dlunknown
1768 cat > conftest.$ac_ext <<_LT_EOF
1769 [#line $LINENO "configure"
1770 #include "confdefs.h"
1771
1772 #if HAVE_DLFCN_H
1773 #include <dlfcn.h>
1774 #endif
1775
1776 #include <stdio.h>
1777
1778 #ifdef RTLD_GLOBAL
1779 # define LT_DLGLOBAL RTLD_GLOBAL
1780 #else
1781 # ifdef DL_GLOBAL
1782 # define LT_DLGLOBAL DL_GLOBAL
1783 # else
1784 # define LT_DLGLOBAL 0
1785 # endif
1786 #endif
1787
1788 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
1789 find out it does not work in some platform. */
1790 #ifndef LT_DLLAZY_OR_NOW
1791 # ifdef RTLD_LAZY
1792 # define LT_DLLAZY_OR_NOW RTLD_LAZY
1793 # else
1794 # ifdef DL_LAZY
1795 # define LT_DLLAZY_OR_NOW DL_LAZY
1796 # else
1797 # ifdef RTLD_NOW
1798 # define LT_DLLAZY_OR_NOW RTLD_NOW
1799 # else
1800 # ifdef DL_NOW
1801 # define LT_DLLAZY_OR_NOW DL_NOW
1802 # else
1803 # define LT_DLLAZY_OR_NOW 0
1804 # endif
1805 # endif
1806 # endif
1807 # endif
1808 #endif
1809
1810 /* When -fvisbility=hidden is used, assume the code has been annotated
1811 correspondingly for the symbols needed. */
1812 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
1813 int fnord () __attribute__((visibility("default")));
1814 #endif
1815
1816 int fnord () { return 42; }
1817 int main ()
1818 {
1819 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1820 int status = $lt_dlunknown;
1821
1822 if (self)
1823 {
1824 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
1825 else
1826 {
1827 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1828 else puts (dlerror ());
1829 }
1830 /* dlclose (self); */
1831 }
1832 else
1833 puts (dlerror ());
1834
1835 return status;
1836 }]
1837 _LT_EOF
1838 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
1839 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
1840 lt_status=$?
1841 case x$lt_status in
1842 x$lt_dlno_uscore) $1 ;;
1843 x$lt_dlneed_uscore) $2 ;;
1844 x$lt_dlunknown|x*) $3 ;;
1845 esac
1846 else :
1847 # compilation failed
1848 $3
1849 fi
1850 fi
1851 rm -fr conftest*
1852 ])# _LT_TRY_DLOPEN_SELF
1853
1854
1855 # LT_SYS_DLOPEN_SELF
1856 # ------------------
1857 AC_DEFUN([LT_SYS_DLOPEN_SELF],
1858 [m4_require([_LT_HEADER_DLFCN])dnl
1859 if test "x$enable_dlopen" != xyes; then
1860 enable_dlopen=unknown
1861 enable_dlopen_self=unknown
1862 enable_dlopen_self_static=unknown
1863 else
1864 lt_cv_dlopen=no
1865 lt_cv_dlopen_libs=
1866
1867 case $host_os in
1868 beos*)
1869 lt_cv_dlopen="load_add_on"
1870 lt_cv_dlopen_libs=
1871 lt_cv_dlopen_self=yes
1872 ;;
1873
1874 mingw* | pw32* | cegcc*)
1875 lt_cv_dlopen="LoadLibrary"
1876 lt_cv_dlopen_libs=
1877 ;;
1878
1879 cygwin*)
1880 lt_cv_dlopen="dlopen"
1881 lt_cv_dlopen_libs=
1882 ;;
1883
1884 darwin*)
1885 # if libdl is installed we need to link against it
1886 AC_CHECK_LIB([dl], [dlopen],
1887 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
1888 lt_cv_dlopen="dyld"
1889 lt_cv_dlopen_libs=
1890 lt_cv_dlopen_self=yes
1891 ])
1892 ;;
1893
1894 *)
1895 AC_CHECK_FUNC([shl_load],
1896 [lt_cv_dlopen="shl_load"],
1897 [AC_CHECK_LIB([dld], [shl_load],
1898 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
1899 [AC_CHECK_FUNC([dlopen],
1900 [lt_cv_dlopen="dlopen"],
1901 [AC_CHECK_LIB([dl], [dlopen],
1902 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
1903 [AC_CHECK_LIB([svld], [dlopen],
1904 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1905 [AC_CHECK_LIB([dld], [dld_link],
1906 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
1907 ])
1908 ])
1909 ])
1910 ])
1911 ])
1912 ;;
1913 esac
1914
1915 if test "x$lt_cv_dlopen" != xno; then
1916 enable_dlopen=yes
1917 else
1918 enable_dlopen=no
1919 fi
1920
1921 case $lt_cv_dlopen in
1922 dlopen)
1923 save_CPPFLAGS="$CPPFLAGS"
1924 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1925
1926 save_LDFLAGS="$LDFLAGS"
1927 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1928
1929 save_LIBS="$LIBS"
1930 LIBS="$lt_cv_dlopen_libs $LIBS"
1931
1932 AC_CACHE_CHECK([whether a program can dlopen itself],
1933 lt_cv_dlopen_self, [dnl
1934 _LT_TRY_DLOPEN_SELF(
1935 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
1936 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
1937 ])
1938
1939 if test "x$lt_cv_dlopen_self" = xyes; then
1940 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1941 AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
1942 lt_cv_dlopen_self_static, [dnl
1943 _LT_TRY_DLOPEN_SELF(
1944 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
1945 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
1946 ])
1947 fi
1948
1949 CPPFLAGS="$save_CPPFLAGS"
1950 LDFLAGS="$save_LDFLAGS"
1951 LIBS="$save_LIBS"
1952 ;;
1953 esac
1954
1955 case $lt_cv_dlopen_self in
1956 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
1957 *) enable_dlopen_self=unknown ;;
1958 esac
1959
1960 case $lt_cv_dlopen_self_static in
1961 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
1962 *) enable_dlopen_self_static=unknown ;;
1963 esac
1964 fi
1965 _LT_DECL([dlopen_support], [enable_dlopen], [0],
1966 [Whether dlopen is supported])
1967 _LT_DECL([dlopen_self], [enable_dlopen_self], [0],
1968 [Whether dlopen of programs is supported])
1969 _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
1970 [Whether dlopen of statically linked programs is supported])
1971 ])# LT_SYS_DLOPEN_SELF
1972
1973 # Old name:
1974 AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
1975 dnl aclocal-1.4 backwards compatibility:
1976 dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
1977
1978
1979 # _LT_COMPILER_C_O([TAGNAME])
1980 # ---------------------------
1981 # Check to see if options -c and -o are simultaneously supported by compiler.
1982 # This macro does not hard code the compiler like AC_PROG_CC_C_O.
1983 m4_defun([_LT_COMPILER_C_O],
1984 [m4_require([_LT_DECL_SED])dnl
1985 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1986 m4_require([_LT_TAG_COMPILER])dnl
1987 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1988 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1989 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1990 $RM -r conftest 2>/dev/null
1991 mkdir conftest
1992 cd conftest
1993 mkdir out
1994 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1995
1996 lt_compiler_flag="-o out/conftest2.$ac_objext"
1997 # Insert the option either (1) after the last *FLAGS variable, or
1998 # (2) before a word containing "conftest.", or (3) at the end.
1999 # Note that $ac_compile itself does not contain backslashes and begins
2000 # with a dollar sign (not a hyphen), so the echo should work correctly.
2001 lt_compile=`echo "$ac_compile" | $SED \
2002 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2003 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2004 -e 's:$: $lt_compiler_flag:'`
2005 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2006 (eval "$lt_compile" 2>out/conftest.err)
2007 ac_status=$?
2008 cat out/conftest.err >&AS_MESSAGE_LOG_FD
2009 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2010 if (exit $ac_status) && test -s out/conftest2.$ac_objext
2011 then
2012 # The compiler can only warn and ignore the option if not recognized
2013 # So say no if there are warnings
2014 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
2015 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
2016 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
2017 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
2018 fi
2019 fi
2020 chmod u+w . 2>&AS_MESSAGE_LOG_FD
2021 $RM conftest*
2022 # SGI C++ compiler will create directory out/ii_files/ for
2023 # template instantiation
2024 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
2025 $RM out/* && rmdir out
2026 cd ..
2027 $RM -r conftest
2028 $RM conftest*
2029 ])
2030 _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
2031 [Does compiler simultaneously support -c and -o options?])
2032 ])# _LT_COMPILER_C_O
2033
2034
2035 # _LT_COMPILER_FILE_LOCKS([TAGNAME])
2036 # ----------------------------------
2037 # Check to see if we can do hard links to lock some files if needed
2038 m4_defun([_LT_COMPILER_FILE_LOCKS],
2039 [m4_require([_LT_ENABLE_LOCK])dnl
2040 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2041 _LT_COMPILER_C_O([$1])
2042
2043 hard_links="nottested"
2044 if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
2045 # do not overwrite the value of need_locks provided by the user
2046 AC_MSG_CHECKING([if we can lock with hard links])
2047 hard_links=yes
2048 $RM conftest*
2049 ln conftest.a conftest.b 2>/dev/null && hard_links=no
2050 touch conftest.a
2051 ln conftest.a conftest.b 2>&5 || hard_links=no
2052 ln conftest.a conftest.b 2>/dev/null && hard_links=no
2053 AC_MSG_RESULT([$hard_links])
2054 if test "$hard_links" = no; then
2055 AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
2056 need_locks=warn
2057 fi
2058 else
2059 need_locks=no
2060 fi
2061 _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
2062 ])# _LT_COMPILER_FILE_LOCKS
2063
2064
2065 # _LT_CHECK_OBJDIR
2066 # ----------------
2067 m4_defun([_LT_CHECK_OBJDIR],
2068 [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
2069 [rm -f .libs 2>/dev/null
2070 mkdir .libs 2>/dev/null
2071 if test -d .libs; then
2072 lt_cv_objdir=.libs
2073 else
2074 # MS-DOS does not allow filenames that begin with a dot.
2075 lt_cv_objdir=_libs
2076 fi
2077 rmdir .libs 2>/dev/null])
2078 objdir=$lt_cv_objdir
2079 _LT_DECL([], [objdir], [0],
2080 [The name of the directory that contains temporary libtool files])dnl
2081 m4_pattern_allow([LT_OBJDIR])dnl
2082 AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
2083 [Define to the sub-directory in which libtool stores uninstalled libraries.])
2084 ])# _LT_CHECK_OBJDIR
2085
2086
2087 # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
2088 # --------------------------------------
2089 # Check hardcoding attributes.
2090 m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
2091 [AC_MSG_CHECKING([how to hardcode library paths into programs])
2092 _LT_TAGVAR(hardcode_action, $1)=
2093 if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
2094 test -n "$_LT_TAGVAR(runpath_var, $1)" ||
2095 test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
2096
2097 # We can hardcode non-existent directories.
2098 if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
2099 # If the only mechanism to avoid hardcoding is shlibpath_var, we
2100 # have to relink, otherwise we might link with an installed library
2101 # when we should be linking with a yet-to-be-installed one
2102 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
2103 test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
2104 # Linking always hardcodes the temporary library directory.
2105 _LT_TAGVAR(hardcode_action, $1)=relink
2106 else
2107 # We can link without hardcoding, and we can hardcode nonexisting dirs.
2108 _LT_TAGVAR(hardcode_action, $1)=immediate
2109 fi
2110 else
2111 # We cannot hardcode anything, or else we can only hardcode existing
2112 # directories.
2113 _LT_TAGVAR(hardcode_action, $1)=unsupported
2114 fi
2115 AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
2116
2117 if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
2118 test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
2119 # Fast installation is not supported
2120 enable_fast_install=no
2121 elif test "$shlibpath_overrides_runpath" = yes ||
2122 test "$enable_shared" = no; then
2123 # Fast installation is not necessary
2124 enable_fast_install=needless
2125 fi
2126 _LT_TAGDECL([], [hardcode_action], [0],
2127 [How to hardcode a shared library path into an executable])
2128 ])# _LT_LINKER_HARDCODE_LIBPATH
2129
2130
2131 # _LT_CMD_STRIPLIB
2132 # ----------------
2133 m4_defun([_LT_CMD_STRIPLIB],
2134 [m4_require([_LT_DECL_EGREP])
2135 striplib=
2136 old_striplib=
2137 AC_MSG_CHECKING([whether stripping libraries is possible])
2138 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
2139 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
2140 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2141 AC_MSG_RESULT([yes])
2142 else
2143 # FIXME - insert some real tests, host_os isn't really good enough
2144 case $host_os in
2145 darwin*)
2146 if test -n "$STRIP" ; then
2147 striplib="$STRIP -x"
2148 old_striplib="$STRIP -S"
2149 AC_MSG_RESULT([yes])
2150 else
2151 AC_MSG_RESULT([no])
2152 fi
2153 ;;
2154 *)
2155 AC_MSG_RESULT([no])
2156 ;;
2157 esac
2158 fi
2159 _LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
2160 _LT_DECL([], [striplib], [1])
2161 ])# _LT_CMD_STRIPLIB
2162
2163
2164 # _LT_SYS_DYNAMIC_LINKER([TAG])
2165 # -----------------------------
2166 # PORTME Fill in your ld.so characteristics
2167 m4_defun([_LT_SYS_DYNAMIC_LINKER],
2168 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
2169 m4_require([_LT_DECL_EGREP])dnl
2170 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2171 m4_require([_LT_DECL_OBJDUMP])dnl
2172 m4_require([_LT_DECL_SED])dnl
2173 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
2174 AC_MSG_CHECKING([dynamic linker characteristics])
2175 m4_if([$1],
2176 [], [
2177 if test "$GCC" = yes; then
2178 case $host_os in
2179 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
2180 *) lt_awk_arg="/^libraries:/" ;;
2181 esac
2182 case $host_os in
2183 mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
2184 *) lt_sed_strip_eq="s,=/,/,g" ;;
2185 esac
2186 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
2187 case $lt_search_path_spec in
2188 *\;*)
2189 # if the path contains ";" then we assume it to be the separator
2190 # otherwise default to the standard path separator (i.e. ":") - it is
2191 # assumed that no part of a normal pathname contains ";" but that should
2192 # okay in the real world where ";" in dirpaths is itself problematic.
2193 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
2194 ;;
2195 *)
2196 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
2197 ;;
2198 esac
2199 # Ok, now we have the path, separated by spaces, we can step through it
2200 # and add multilib dir if necessary.
2201 lt_tmp_lt_search_path_spec=
2202 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
2203 for lt_sys_path in $lt_search_path_spec; do
2204 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
2205 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
2206 else
2207 test -d "$lt_sys_path" && \
2208 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
2209 fi
2210 done
2211 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
2212 BEGIN {RS=" "; FS="/|\n";} {
2213 lt_foo="";
2214 lt_count=0;
2215 for (lt_i = NF; lt_i > 0; lt_i--) {
2216 if ($lt_i != "" && $lt_i != ".") {
2217 if ($lt_i == "..") {
2218 lt_count++;
2219 } else {
2220 if (lt_count == 0) {
2221 lt_foo="/" $lt_i lt_foo;
2222 } else {
2223 lt_count--;
2224 }
2225 }
2226 }
2227 }
2228 if (lt_foo != "") { lt_freq[[lt_foo]]++; }
2229 if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
2230 }'`
2231 # AWK program above erroneously prepends '/' to C:/dos/paths
2232 # for these hosts.
2233 case $host_os in
2234 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
2235 $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
2236 esac
2237 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
2238 else
2239 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2240 fi])
2241 library_names_spec=
2242 libname_spec='lib$name'
2243 soname_spec=
2244 shrext_cmds=".so"
2245 postinstall_cmds=
2246 postuninstall_cmds=
2247 finish_cmds=
2248 finish_eval=
2249 shlibpath_var=
2250 shlibpath_overrides_runpath=unknown
2251 version_type=none
2252 dynamic_linker="$host_os ld.so"
2253 sys_lib_dlsearch_path_spec="/lib /usr/lib"
2254 need_lib_prefix=unknown
2255 hardcode_into_libs=no
2256
2257 # when you set need_version to no, make sure it does not cause -set_version
2258 # flags to be left without arguments
2259 need_version=unknown
2260
2261 case $host_os in
2262 aix3*)
2263 version_type=linux # correct to gnu/linux during the next big refactor
2264 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
2265 shlibpath_var=LIBPATH
2266
2267 # AIX 3 has no versioning support, so we append a major version to the name.
2268 soname_spec='${libname}${release}${shared_ext}$major'
2269 ;;
2270
2271 aix[[4-9]]*)
2272 version_type=linux # correct to gnu/linux during the next big refactor
2273 need_lib_prefix=no
2274 need_version=no
2275 hardcode_into_libs=yes
2276 if test "$host_cpu" = ia64; then
2277 # AIX 5 supports IA64
2278 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
2279 shlibpath_var=LD_LIBRARY_PATH
2280 else
2281 # With GCC up to 2.95.x, collect2 would create an import file
2282 # for dependence libraries. The import file would start with
2283 # the line `#! .'. This would cause the generated library to
2284 # depend on `.', always an invalid library. This was fixed in
2285 # development snapshots of GCC prior to 3.0.
2286 case $host_os in
2287 aix4 | aix4.[[01]] | aix4.[[01]].*)
2288 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2289 echo ' yes '
2290 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
2291 :
2292 else
2293 can_build_shared=no
2294 fi
2295 ;;
2296 esac
2297 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
2298 # soname into executable. Probably we can add versioning support to
2299 # collect2, so additional links can be useful in future.
2300 if test "$aix_use_runtimelinking" = yes; then
2301 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
2302 # instead of lib<name>.a to let people know that these are not
2303 # typical AIX shared libraries.
2304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2305 else
2306 # We preserve .a as extension for shared libraries through AIX4.2
2307 # and later when we are not doing run time linking.
2308 library_names_spec='${libname}${release}.a $libname.a'
2309 soname_spec='${libname}${release}${shared_ext}$major'
2310 fi
2311 shlibpath_var=LIBPATH
2312 fi
2313 ;;
2314
2315 amigaos*)
2316 case $host_cpu in
2317 powerpc)
2318 # Since July 2007 AmigaOS4 officially supports .so libraries.
2319 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
2320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2321 ;;
2322 m68k)
2323 library_names_spec='$libname.ixlibrary $libname.a'
2324 # Create ${libname}_ixlibrary.a entries in /sys/libs.
2325 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
2326 ;;
2327 esac
2328 ;;
2329
2330 beos*)
2331 library_names_spec='${libname}${shared_ext}'
2332 dynamic_linker="$host_os ld.so"
2333 shlibpath_var=LIBRARY_PATH
2334 ;;
2335
2336 bsdi[[45]]*)
2337 version_type=linux # correct to gnu/linux during the next big refactor
2338 need_version=no
2339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2340 soname_spec='${libname}${release}${shared_ext}$major'
2341 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
2342 shlibpath_var=LD_LIBRARY_PATH
2343 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
2344 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
2345 # the default ld.so.conf also contains /usr/contrib/lib and
2346 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
2347 # libtool to hard-code these into programs
2348 ;;
2349
2350 cygwin* | mingw* | pw32* | cegcc*)
2351 version_type=windows
2352 shrext_cmds=".dll"
2353 need_version=no
2354 need_lib_prefix=no
2355
2356 case $GCC,$cc_basename in
2357 yes,*)
2358 # gcc
2359 library_names_spec='$libname.dll.a'
2360 # DLL is installed to $(libdir)/../bin by postinstall_cmds
2361 postinstall_cmds='base_file=`basename \${file}`~
2362 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
2363 dldir=$destdir/`dirname \$dlpath`~
2364 test -d \$dldir || mkdir -p \$dldir~
2365 $install_prog $dir/$dlname \$dldir/$dlname~
2366 chmod a+x \$dldir/$dlname~
2367 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
2368 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
2369 fi'
2370 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2371 dlpath=$dir/\$dldll~
2372 $RM \$dlpath'
2373 shlibpath_overrides_runpath=yes
2374
2375 case $host_os in
2376 cygwin*)
2377 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
2378 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2379 m4_if([$1], [],[
2380 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
2381 ;;
2382 mingw* | cegcc*)
2383 # MinGW DLLs use traditional 'lib' prefix
2384 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2385 ;;
2386 pw32*)
2387 # pw32 DLLs use 'pw' prefix rather than 'lib'
2388 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2389 ;;
2390 esac
2391 dynamic_linker='Win32 ld.exe'
2392 ;;
2393
2394 *,cl*)
2395 # Native MSVC
2396 libname_spec='$name'
2397 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2398 library_names_spec='${libname}.dll.lib'
2399
2400 case $build_os in
2401 mingw*)
2402 sys_lib_search_path_spec=
2403 lt_save_ifs=$IFS
2404 IFS=';'
2405 for lt_path in $LIB
2406 do
2407 IFS=$lt_save_ifs
2408 # Let DOS variable expansion print the short 8.3 style file name.
2409 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
2410 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
2411 done
2412 IFS=$lt_save_ifs
2413 # Convert to MSYS style.
2414 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
2415 ;;
2416 cygwin*)
2417 # Convert to unix form, then to dos form, then back to unix form
2418 # but this time dos style (no spaces!) so that the unix form looks
2419 # like /cygdrive/c/PROGRA~1:/cygdr...
2420 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
2421 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
2422 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2423 ;;
2424 *)
2425 sys_lib_search_path_spec="$LIB"
2426 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2427 # It is most probably a Windows format PATH.
2428 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2429 else
2430 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2431 fi
2432 # FIXME: find the short name or the path components, as spaces are
2433 # common. (e.g. "Program Files" -> "PROGRA~1")
2434 ;;
2435 esac
2436
2437 # DLL is installed to $(libdir)/../bin by postinstall_cmds
2438 postinstall_cmds='base_file=`basename \${file}`~
2439 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
2440 dldir=$destdir/`dirname \$dlpath`~
2441 test -d \$dldir || mkdir -p \$dldir~
2442 $install_prog $dir/$dlname \$dldir/$dlname'
2443 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2444 dlpath=$dir/\$dldll~
2445 $RM \$dlpath'
2446 shlibpath_overrides_runpath=yes
2447 dynamic_linker='Win32 link.exe'
2448 ;;
2449
2450 *)
2451 # Assume MSVC wrapper
2452 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2453 dynamic_linker='Win32 ld.exe'
2454 ;;
2455 esac
2456 # FIXME: first we should search . and the directory the executable is in
2457 shlibpath_var=PATH
2458 ;;
2459
2460 darwin* | rhapsody*)
2461 dynamic_linker="$host_os dyld"
2462 version_type=darwin
2463 need_lib_prefix=no
2464 need_version=no
2465 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
2466 soname_spec='${libname}${release}${major}$shared_ext'
2467 shlibpath_overrides_runpath=yes
2468 shlibpath_var=DYLD_LIBRARY_PATH
2469 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
2470 m4_if([$1], [],[
2471 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
2472 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
2473 ;;
2474
2475 dgux*)
2476 version_type=linux # correct to gnu/linux during the next big refactor
2477 need_lib_prefix=no
2478 need_version=no
2479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
2480 soname_spec='${libname}${release}${shared_ext}$major'
2481 shlibpath_var=LD_LIBRARY_PATH
2482 ;;
2483
2484 freebsd* | dragonfly*)
2485 # DragonFly does not have aout. When/if they implement a new
2486 # versioning mechanism, adjust this.
2487 if test -x /usr/bin/objformat; then
2488 objformat=`/usr/bin/objformat`
2489 else
2490 case $host_os in
2491 freebsd[[23]].*) objformat=aout ;;
2492 *) objformat=elf ;;
2493 esac
2494 fi
2495 version_type=freebsd-$objformat
2496 case $version_type in
2497 freebsd-elf*)
2498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2499 need_version=no
2500 need_lib_prefix=no
2501 ;;
2502 freebsd-*)
2503 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
2504 need_version=yes
2505 ;;
2506 esac
2507 shlibpath_var=LD_LIBRARY_PATH
2508 case $host_os in
2509 freebsd2.*)
2510 shlibpath_overrides_runpath=yes
2511 ;;
2512 freebsd3.[[01]]* | freebsdelf3.[[01]]*)
2513 shlibpath_overrides_runpath=yes
2514 hardcode_into_libs=yes
2515 ;;
2516 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
2517 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
2518 shlibpath_overrides_runpath=no
2519 hardcode_into_libs=yes
2520 ;;
2521 *) # from 4.6 on, and DragonFly
2522 shlibpath_overrides_runpath=yes
2523 hardcode_into_libs=yes
2524 ;;
2525 esac
2526 ;;
2527
2528 gnu*)
2529 version_type=linux # correct to gnu/linux during the next big refactor
2530 need_lib_prefix=no
2531 need_version=no
2532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2533 soname_spec='${libname}${release}${shared_ext}$major'
2534 shlibpath_var=LD_LIBRARY_PATH
2535 shlibpath_overrides_runpath=no
2536 hardcode_into_libs=yes
2537 ;;
2538
2539 haiku*)
2540 version_type=linux # correct to gnu/linux during the next big refactor
2541 need_lib_prefix=no
2542 need_version=no
2543 dynamic_linker="$host_os runtime_loader"
2544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2545 soname_spec='${libname}${release}${shared_ext}$major'
2546 shlibpath_var=LIBRARY_PATH
2547 shlibpath_overrides_runpath=yes
2548 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
2549 hardcode_into_libs=yes
2550 ;;
2551
2552 hpux9* | hpux10* | hpux11*)
2553 # Give a soname corresponding to the major version so that dld.sl refuses to
2554 # link against other versions.
2555 version_type=sunos
2556 need_lib_prefix=no
2557 need_version=no
2558 case $host_cpu in
2559 ia64*)
2560 shrext_cmds='.so'
2561 hardcode_into_libs=yes
2562 dynamic_linker="$host_os dld.so"
2563 shlibpath_var=LD_LIBRARY_PATH
2564 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2566 soname_spec='${libname}${release}${shared_ext}$major'
2567 if test "X$HPUX_IA64_MODE" = X32; then
2568 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
2569 else
2570 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
2571 fi
2572 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2573 ;;
2574 hppa*64*)
2575 shrext_cmds='.sl'
2576 hardcode_into_libs=yes
2577 dynamic_linker="$host_os dld.sl"
2578 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
2579 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2581 soname_spec='${libname}${release}${shared_ext}$major'
2582 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
2583 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2584 ;;
2585 *)
2586 shrext_cmds='.sl'
2587 dynamic_linker="$host_os dld.sl"
2588 shlibpath_var=SHLIB_PATH
2589 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
2590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2591 soname_spec='${libname}${release}${shared_ext}$major'
2592 ;;
2593 esac
2594 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
2595 postinstall_cmds='chmod 555 $lib'
2596 # or fails outright, so override atomically:
2597 install_override_mode=555
2598 ;;
2599
2600 interix[[3-9]]*)
2601 version_type=linux # correct to gnu/linux during the next big refactor
2602 need_lib_prefix=no
2603 need_version=no
2604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2605 soname_spec='${libname}${release}${shared_ext}$major'
2606 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
2607 shlibpath_var=LD_LIBRARY_PATH
2608 shlibpath_overrides_runpath=no
2609 hardcode_into_libs=yes
2610 ;;
2611
2612 irix5* | irix6* | nonstopux*)
2613 case $host_os in
2614 nonstopux*) version_type=nonstopux ;;
2615 *)
2616 if test "$lt_cv_prog_gnu_ld" = yes; then
2617 version_type=linux # correct to gnu/linux during the next big refactor
2618 else
2619 version_type=irix
2620 fi ;;
2621 esac
2622 need_lib_prefix=no
2623 need_version=no
2624 soname_spec='${libname}${release}${shared_ext}$major'
2625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
2626 case $host_os in
2627 irix5* | nonstopux*)
2628 libsuff= shlibsuff=
2629 ;;
2630 *)
2631 case $LD in # libtool.m4 will add one of these switches to LD
2632 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
2633 libsuff= shlibsuff= libmagic=32-bit;;
2634 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
2635 libsuff=32 shlibsuff=N32 libmagic=N32;;
2636 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
2637 libsuff=64 shlibsuff=64 libmagic=64-bit;;
2638 *) libsuff= shlibsuff= libmagic=never-match;;
2639 esac
2640 ;;
2641 esac
2642 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
2643 shlibpath_overrides_runpath=no
2644 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
2645 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
2646 hardcode_into_libs=yes
2647 ;;
2648
2649 # No shared lib support for Linux oldld, aout, or coff.
2650 linux*oldld* | linux*aout* | linux*coff*)
2651 dynamic_linker=no
2652 ;;
2653
2654 # This must be glibc/ELF.
2655 linux* | k*bsd*-gnu | kopensolaris*-gnu)
2656 version_type=linux # correct to gnu/linux during the next big refactor
2657 need_lib_prefix=no
2658 need_version=no
2659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2660 soname_spec='${libname}${release}${shared_ext}$major'
2661 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2662 shlibpath_var=LD_LIBRARY_PATH
2663 shlibpath_overrides_runpath=no
2664
2665 # Some binutils ld are patched to set DT_RUNPATH
2666 AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
2667 [lt_cv_shlibpath_overrides_runpath=no
2668 save_LDFLAGS=$LDFLAGS
2669 save_libdir=$libdir
2670 eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
2671 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
2672 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
2673 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
2674 [lt_cv_shlibpath_overrides_runpath=yes])])
2675 LDFLAGS=$save_LDFLAGS
2676 libdir=$save_libdir
2677 ])
2678 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
2679
2680 # This implies no fast_install, which is unacceptable.
2681 # Some rework will be needed to allow for fast_install
2682 # before this can be enabled.
2683 hardcode_into_libs=yes
2684
2685 # Append ld.so.conf contents to the search path
2686 if test -f /etc/ld.so.conf; then
2687 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
2688 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
2689 fi
2690
2691 # We used to test for /lib/ld.so.1 and disable shared libraries on
2692 # powerpc, because MkLinux only supported shared libraries with the
2693 # GNU dynamic linker. Since this was broken with cross compilers,
2694 # most powerpc-linux boxes support dynamic linking these days and
2695 # people can always --disable-shared, the test was removed, and we
2696 # assume the GNU/Linux dynamic linker is in use.
2697 dynamic_linker='GNU/Linux ld.so'
2698 ;;
2699
2700 netbsdelf*-gnu)
2701 version_type=linux
2702 need_lib_prefix=no
2703 need_version=no
2704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2705 soname_spec='${libname}${release}${shared_ext}$major'
2706 shlibpath_var=LD_LIBRARY_PATH
2707 shlibpath_overrides_runpath=no
2708 hardcode_into_libs=yes
2709 dynamic_linker='NetBSD ld.elf_so'
2710 ;;
2711
2712 netbsd*)
2713 version_type=sunos
2714 need_lib_prefix=no
2715 need_version=no
2716 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
2717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2718 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2719 dynamic_linker='NetBSD (a.out) ld.so'
2720 else
2721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2722 soname_spec='${libname}${release}${shared_ext}$major'
2723 dynamic_linker='NetBSD ld.elf_so'
2724 fi
2725 shlibpath_var=LD_LIBRARY_PATH
2726 shlibpath_overrides_runpath=yes
2727 hardcode_into_libs=yes
2728 ;;
2729
2730 newsos6)
2731 version_type=linux # correct to gnu/linux during the next big refactor
2732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2733 shlibpath_var=LD_LIBRARY_PATH
2734 shlibpath_overrides_runpath=yes
2735 ;;
2736
2737 *nto* | *qnx*)
2738 version_type=qnx
2739 need_lib_prefix=no
2740 need_version=no
2741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2742 soname_spec='${libname}${release}${shared_ext}$major'
2743 shlibpath_var=LD_LIBRARY_PATH
2744 shlibpath_overrides_runpath=no
2745 hardcode_into_libs=yes
2746 dynamic_linker='ldqnx.so'
2747 ;;
2748
2749 openbsd*)
2750 version_type=sunos
2751 sys_lib_dlsearch_path_spec="/usr/lib"
2752 need_lib_prefix=no
2753 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
2754 case $host_os in
2755 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
2756 *) need_version=no ;;
2757 esac
2758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2759 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2760 shlibpath_var=LD_LIBRARY_PATH
2761 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2762 case $host_os in
2763 openbsd2.[[89]] | openbsd2.[[89]].*)
2764 shlibpath_overrides_runpath=no
2765 ;;
2766 *)
2767 shlibpath_overrides_runpath=yes
2768 ;;
2769 esac
2770 else
2771 shlibpath_overrides_runpath=yes
2772 fi
2773 ;;
2774
2775 os2*)
2776 libname_spec='$name'
2777 shrext_cmds=".dll"
2778 need_lib_prefix=no
2779 library_names_spec='$libname${shared_ext} $libname.a'
2780 dynamic_linker='OS/2 ld.exe'
2781 shlibpath_var=LIBPATH
2782 ;;
2783
2784 osf3* | osf4* | osf5*)
2785 version_type=osf
2786 need_lib_prefix=no
2787 need_version=no
2788 soname_spec='${libname}${release}${shared_ext}$major'
2789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2790 shlibpath_var=LD_LIBRARY_PATH
2791 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
2792 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
2793 ;;
2794
2795 rdos*)
2796 dynamic_linker=no
2797 ;;
2798
2799 solaris*)
2800 version_type=linux # correct to gnu/linux during the next big refactor
2801 need_lib_prefix=no
2802 need_version=no
2803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2804 soname_spec='${libname}${release}${shared_ext}$major'
2805 shlibpath_var=LD_LIBRARY_PATH
2806 shlibpath_overrides_runpath=yes
2807 hardcode_into_libs=yes
2808 # ldd complains unless libraries are executable
2809 postinstall_cmds='chmod +x $lib'
2810 ;;
2811
2812 sunos4*)
2813 version_type=sunos
2814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2815 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
2816 shlibpath_var=LD_LIBRARY_PATH
2817 shlibpath_overrides_runpath=yes
2818 if test "$with_gnu_ld" = yes; then
2819 need_lib_prefix=no
2820 fi
2821 need_version=yes
2822 ;;
2823
2824 sysv4 | sysv4.3*)
2825 version_type=linux # correct to gnu/linux during the next big refactor
2826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2827 soname_spec='${libname}${release}${shared_ext}$major'
2828 shlibpath_var=LD_LIBRARY_PATH
2829 case $host_vendor in
2830 sni)
2831 shlibpath_overrides_runpath=no
2832 need_lib_prefix=no
2833 runpath_var=LD_RUN_PATH
2834 ;;
2835 siemens)
2836 need_lib_prefix=no
2837 ;;
2838 motorola)
2839 need_lib_prefix=no
2840 need_version=no
2841 shlibpath_overrides_runpath=no
2842 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
2843 ;;
2844 esac
2845 ;;
2846
2847 sysv4*MP*)
2848 if test -d /usr/nec ;then
2849 version_type=linux # correct to gnu/linux during the next big refactor
2850 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
2851 soname_spec='$libname${shared_ext}.$major'
2852 shlibpath_var=LD_LIBRARY_PATH
2853 fi
2854 ;;
2855
2856 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
2857 version_type=freebsd-elf
2858 need_lib_prefix=no
2859 need_version=no
2860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2861 soname_spec='${libname}${release}${shared_ext}$major'
2862 shlibpath_var=LD_LIBRARY_PATH
2863 shlibpath_overrides_runpath=yes
2864 hardcode_into_libs=yes
2865 if test "$with_gnu_ld" = yes; then
2866 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
2867 else
2868 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
2869 case $host_os in
2870 sco3.2v5*)
2871 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
2872 ;;
2873 esac
2874 fi
2875 sys_lib_dlsearch_path_spec='/usr/lib'
2876 ;;
2877
2878 tpf*)
2879 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
2880 version_type=linux # correct to gnu/linux during the next big refactor
2881 need_lib_prefix=no
2882 need_version=no
2883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2884 shlibpath_var=LD_LIBRARY_PATH
2885 shlibpath_overrides_runpath=no
2886 hardcode_into_libs=yes
2887 ;;
2888
2889 uts4*)
2890 version_type=linux # correct to gnu/linux during the next big refactor
2891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2892 soname_spec='${libname}${release}${shared_ext}$major'
2893 shlibpath_var=LD_LIBRARY_PATH
2894 ;;
2895
2896 *)
2897 dynamic_linker=no
2898 ;;
2899 esac
2900 AC_MSG_RESULT([$dynamic_linker])
2901 test "$dynamic_linker" = no && can_build_shared=no
2902
2903 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
2904 if test "$GCC" = yes; then
2905 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
2906 fi
2907
2908 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
2909 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
2910 fi
2911 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
2912 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
2913 fi
2914
2915 _LT_DECL([], [variables_saved_for_relink], [1],
2916 [Variables whose values should be saved in libtool wrapper scripts and
2917 restored at link time])
2918 _LT_DECL([], [need_lib_prefix], [0],
2919 [Do we need the "lib" prefix for modules?])
2920 _LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
2921 _LT_DECL([], [version_type], [0], [Library versioning type])
2922 _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
2923 _LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
2924 _LT_DECL([], [shlibpath_overrides_runpath], [0],
2925 [Is shlibpath searched before the hard-coded library search path?])
2926 _LT_DECL([], [libname_spec], [1], [Format of library name prefix])
2927 _LT_DECL([], [library_names_spec], [1],
2928 [[List of archive names. First name is the real one, the rest are links.
2929 The last name is the one that the linker finds with -lNAME]])
2930 _LT_DECL([], [soname_spec], [1],
2931 [[The coded name of the library, if different from the real name]])
2932 _LT_DECL([], [install_override_mode], [1],
2933 [Permission mode override for installation of shared libraries])
2934 _LT_DECL([], [postinstall_cmds], [2],
2935 [Command to use after installation of a shared archive])
2936 _LT_DECL([], [postuninstall_cmds], [2],
2937 [Command to use after uninstallation of a shared archive])
2938 _LT_DECL([], [finish_cmds], [2],
2939 [Commands used to finish a libtool library installation in a directory])
2940 _LT_DECL([], [finish_eval], [1],
2941 [[As "finish_cmds", except a single script fragment to be evaled but
2942 not shown]])
2943 _LT_DECL([], [hardcode_into_libs], [0],
2944 [Whether we should hardcode library paths into libraries])
2945 _LT_DECL([], [sys_lib_search_path_spec], [2],
2946 [Compile-time system search path for libraries])
2947 _LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
2948 [Run-time system search path for libraries])
2949 ])# _LT_SYS_DYNAMIC_LINKER
2950
2951
2952 # _LT_PATH_TOOL_PREFIX(TOOL)
2953 # --------------------------
2954 # find a file program which can recognize shared library
2955 AC_DEFUN([_LT_PATH_TOOL_PREFIX],
2956 [m4_require([_LT_DECL_EGREP])dnl
2957 AC_MSG_CHECKING([for $1])
2958 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
2959 [case $MAGIC_CMD in
2960 [[\\/*] | ?:[\\/]*])
2961 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2962 ;;
2963 *)
2964 lt_save_MAGIC_CMD="$MAGIC_CMD"
2965 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2966 dnl $ac_dummy forces splitting on constant user-supplied paths.
2967 dnl POSIX.2 word splitting is done only on the output of word expansions,
2968 dnl not every word. This closes a longstanding sh security hole.
2969 ac_dummy="m4_if([$2], , $PATH, [$2])"
2970 for ac_dir in $ac_dummy; do
2971 IFS="$lt_save_ifs"
2972 test -z "$ac_dir" && ac_dir=.
2973 if test -f $ac_dir/$1; then
2974 lt_cv_path_MAGIC_CMD="$ac_dir/$1"
2975 if test -n "$file_magic_test_file"; then
2976 case $deplibs_check_method in
2977 "file_magic "*)
2978 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
2979 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2980 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2981 $EGREP "$file_magic_regex" > /dev/null; then
2982 :
2983 else
2984 cat <<_LT_EOF 1>&2
2985
2986 *** Warning: the command libtool uses to detect shared libraries,
2987 *** $file_magic_cmd, produces output that libtool cannot recognize.
2988 *** The result is that libtool may fail to recognize shared libraries
2989 *** as such. This will affect the creation of libtool libraries that
2990 *** depend on shared libraries, but programs linked with such libtool
2991 *** libraries will work regardless of this problem. Nevertheless, you
2992 *** may want to report the problem to your system manager and/or to
2993 *** bug-libtool@gnu.org
2994
2995 _LT_EOF
2996 fi ;;
2997 esac
2998 fi
2999 break
3000 fi
3001 done
3002 IFS="$lt_save_ifs"
3003 MAGIC_CMD="$lt_save_MAGIC_CMD"
3004 ;;
3005 esac])
3006 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3007 if test -n "$MAGIC_CMD"; then
3008 AC_MSG_RESULT($MAGIC_CMD)
3009 else
3010 AC_MSG_RESULT(no)
3011 fi
3012 _LT_DECL([], [MAGIC_CMD], [0],
3013 [Used to examine libraries when file_magic_cmd begins with "file"])dnl
3014 ])# _LT_PATH_TOOL_PREFIX
3015
3016 # Old name:
3017 AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
3018 dnl aclocal-1.4 backwards compatibility:
3019 dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
3020
3021
3022 # _LT_PATH_MAGIC
3023 # --------------
3024 # find a file program which can recognize a shared library
3025 m4_defun([_LT_PATH_MAGIC],
3026 [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
3027 if test -z "$lt_cv_path_MAGIC_CMD"; then
3028 if test -n "$ac_tool_prefix"; then
3029 _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
3030 else
3031 MAGIC_CMD=:
3032 fi
3033 fi
3034 ])# _LT_PATH_MAGIC
3035
3036
3037 # LT_PATH_LD
3038 # ----------
3039 # find the pathname to the GNU or non-GNU linker
3040 AC_DEFUN([LT_PATH_LD],
3041 [AC_REQUIRE([AC_PROG_CC])dnl
3042 AC_REQUIRE([AC_CANONICAL_HOST])dnl
3043 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
3044 m4_require([_LT_DECL_SED])dnl
3045 m4_require([_LT_DECL_EGREP])dnl
3046 m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
3047
3048 AC_ARG_WITH([gnu-ld],
3049 [AS_HELP_STRING([--with-gnu-ld],
3050 [assume the C compiler uses GNU ld @<:@default=no@:>@])],
3051 [test "$withval" = no || with_gnu_ld=yes],
3052 [with_gnu_ld=no])dnl
3053
3054 ac_prog=ld
3055 if test "$GCC" = yes; then
3056 # Check if gcc -print-prog-name=ld gives a path.
3057 AC_MSG_CHECKING([for ld used by $CC])
3058 case $host in
3059 *-*-mingw*)
3060 # gcc leaves a trailing carriage return which upsets mingw
3061 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3062 *)
3063 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3064 esac
3065 case $ac_prog in
3066 # Accept absolute paths.
3067 [[\\/]]* | ?:[[\\/]]*)
3068 re_direlt='/[[^/]][[^/]]*/\.\./'
3069 # Canonicalize the pathname of ld
3070 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3071 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3072 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3073 done
3074 test -z "$LD" && LD="$ac_prog"
3075 ;;
3076 "")
3077 # If it fails, then pretend we aren't using GCC.
3078 ac_prog=ld
3079 ;;
3080 *)
3081 # If it is relative, then search for the first ld in PATH.
3082 with_gnu_ld=unknown
3083 ;;
3084 esac
3085 elif test "$with_gnu_ld" = yes; then
3086 AC_MSG_CHECKING([for GNU ld])
3087 else
3088 AC_MSG_CHECKING([for non-GNU ld])
3089 fi
3090 AC_CACHE_VAL(lt_cv_path_LD,
3091 [if test -z "$LD"; then
3092 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3093 for ac_dir in $PATH; do
3094 IFS="$lt_save_ifs"
3095 test -z "$ac_dir" && ac_dir=.
3096 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3097 lt_cv_path_LD="$ac_dir/$ac_prog"
3098 # Check to see if the program is GNU ld. I'd rather use --version,
3099 # but apparently some variants of GNU ld only accept -v.
3100 # Break only if it was the GNU/non-GNU ld that we prefer.
3101 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3102 *GNU* | *'with BFD'*)
3103 test "$with_gnu_ld" != no && break
3104 ;;
3105 *)
3106 test "$with_gnu_ld" != yes && break
3107 ;;
3108 esac
3109 fi
3110 done
3111 IFS="$lt_save_ifs"
3112 else
3113 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3114 fi])
3115 LD="$lt_cv_path_LD"
3116 if test -n "$LD"; then
3117 AC_MSG_RESULT($LD)
3118 else
3119 AC_MSG_RESULT(no)
3120 fi
3121 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
3122 _LT_PATH_LD_GNU
3123 AC_SUBST([LD])
3124
3125 _LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
3126 ])# LT_PATH_LD
3127
3128 # Old names:
3129 AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
3130 AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
3131 dnl aclocal-1.4 backwards compatibility:
3132 dnl AC_DEFUN([AM_PROG_LD], [])
3133 dnl AC_DEFUN([AC_PROG_LD], [])
3134
3135
3136 # _LT_PATH_LD_GNU
3137 #- --------------
3138 m4_defun([_LT_PATH_LD_GNU],
3139 [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
3140 [# I'd rather use --version here, but apparently some GNU lds only accept -v.
3141 case `$LD -v 2>&1 </dev/null` in
3142 *GNU* | *'with BFD'*)
3143 lt_cv_prog_gnu_ld=yes
3144 ;;
3145 *)
3146 lt_cv_prog_gnu_ld=no
3147 ;;
3148 esac])
3149 with_gnu_ld=$lt_cv_prog_gnu_ld
3150 ])# _LT_PATH_LD_GNU
3151
3152
3153 # _LT_CMD_RELOAD
3154 # --------------
3155 # find reload flag for linker
3156 # -- PORTME Some linkers may need a different reload flag.
3157 m4_defun([_LT_CMD_RELOAD],
3158 [AC_CACHE_CHECK([for $LD option to reload object files],
3159 lt_cv_ld_reload_flag,
3160 [lt_cv_ld_reload_flag='-r'])
3161 reload_flag=$lt_cv_ld_reload_flag
3162 case $reload_flag in
3163 "" | " "*) ;;
3164 *) reload_flag=" $reload_flag" ;;
3165 esac
3166 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3167 case $host_os in
3168 cygwin* | mingw* | pw32* | cegcc*)
3169 if test "$GCC" != yes; then
3170 reload_cmds=false
3171 fi
3172 ;;
3173 darwin*)
3174 if test "$GCC" = yes; then
3175 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3176 else
3177 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3178 fi
3179 ;;
3180 esac
3181 _LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
3182 _LT_TAGDECL([], [reload_cmds], [2])dnl
3183 ])# _LT_CMD_RELOAD
3184
3185
3186 # _LT_CHECK_MAGIC_METHOD
3187 # ----------------------
3188 # how to check for library dependencies
3189 # -- PORTME fill in with the dynamic library characteristics
3190 m4_defun([_LT_CHECK_MAGIC_METHOD],
3191 [m4_require([_LT_DECL_EGREP])
3192 m4_require([_LT_DECL_OBJDUMP])
3193 AC_CACHE_CHECK([how to recognize dependent libraries],
3194 lt_cv_deplibs_check_method,
3195 [lt_cv_file_magic_cmd='$MAGIC_CMD'
3196 lt_cv_file_magic_test_file=
3197 lt_cv_deplibs_check_method='unknown'
3198 # Need to set the preceding variable on all platforms that support
3199 # interlibrary dependencies.
3200 # 'none' -- dependencies not supported.
3201 # `unknown' -- same as none, but documents that we really don't know.
3202 # 'pass_all' -- all dependencies passed with no checks.
3203 # 'test_compile' -- check by making test program.
3204 # 'file_magic [[regex]]' -- check by looking for files in library path
3205 # which responds to the $file_magic_cmd with a given extended regex.
3206 # If you have `file' or equivalent on your system and you're not sure
3207 # whether `pass_all' will *always* work, you probably want this one.
3208
3209 case $host_os in
3210 aix[[4-9]]*)
3211 lt_cv_deplibs_check_method=pass_all
3212 ;;
3213
3214 beos*)
3215 lt_cv_deplibs_check_method=pass_all
3216 ;;
3217
3218 bsdi[[45]]*)
3219 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
3220 lt_cv_file_magic_cmd='/usr/bin/file -L'
3221 lt_cv_file_magic_test_file=/shlib/libc.so
3222 ;;
3223
3224 cygwin*)
3225 # func_win32_libid is a shell function defined in ltmain.sh
3226 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3227 lt_cv_file_magic_cmd='func_win32_libid'
3228 ;;
3229
3230 mingw* | pw32*)
3231 # Base MSYS/MinGW do not provide the 'file' command needed by
3232 # func_win32_libid shell function, so use a weaker test based on 'objdump',
3233 # unless we find 'file', for example because we are cross-compiling.
3234 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
3235 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
3236 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3237 lt_cv_file_magic_cmd='func_win32_libid'
3238 else
3239 # Keep this pattern in sync with the one in func_win32_libid.
3240 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
3241 lt_cv_file_magic_cmd='$OBJDUMP -f'
3242 fi
3243 ;;
3244
3245 cegcc*)
3246 # use the weaker test based on 'objdump'. See mingw*.
3247 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
3248 lt_cv_file_magic_cmd='$OBJDUMP -f'
3249 ;;
3250
3251 darwin* | rhapsody*)
3252 lt_cv_deplibs_check_method=pass_all
3253 ;;
3254
3255 freebsd* | dragonfly*)
3256 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3257 case $host_cpu in
3258 i*86 )
3259 # Not sure whether the presence of OpenBSD here was a mistake.
3260 # Let's accept both of them until this is cleared up.
3261 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
3262 lt_cv_file_magic_cmd=/usr/bin/file
3263 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3264 ;;
3265 esac
3266 else
3267 lt_cv_deplibs_check_method=pass_all
3268 fi
3269 ;;
3270
3271 gnu*)
3272 lt_cv_deplibs_check_method=pass_all
3273 ;;
3274
3275 haiku*)
3276 lt_cv_deplibs_check_method=pass_all
3277 ;;
3278
3279 hpux10.20* | hpux11*)
3280 lt_cv_file_magic_cmd=/usr/bin/file
3281 case $host_cpu in
3282 ia64*)
3283 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
3284 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3285 ;;
3286 hppa*64*)
3287 [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]']
3288 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3289 ;;
3290 *)
3291 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
3292 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3293 ;;
3294 esac
3295 ;;
3296
3297 interix[[3-9]]*)
3298 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3299 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
3300 ;;
3301
3302 irix5* | irix6* | nonstopux*)
3303 case $LD in
3304 *-32|*"-32 ") libmagic=32-bit;;
3305 *-n32|*"-n32 ") libmagic=N32;;
3306 *-64|*"-64 ") libmagic=64-bit;;
3307 *) libmagic=never-match;;
3308 esac
3309 lt_cv_deplibs_check_method=pass_all
3310 ;;
3311
3312 # This must be glibc/ELF.
3313 linux* | k*bsd*-gnu | kopensolaris*-gnu)
3314 lt_cv_deplibs_check_method=pass_all
3315 ;;
3316
3317 netbsd* | netbsdelf*-gnu)
3318 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3319 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3320 else
3321 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
3322 fi
3323 ;;
3324
3325 newos6*)
3326 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3327 lt_cv_file_magic_cmd=/usr/bin/file
3328 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3329 ;;
3330
3331 *nto* | *qnx*)
3332 lt_cv_deplibs_check_method=pass_all
3333 ;;
3334
3335 openbsd*)
3336 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3337 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
3338 else
3339 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3340 fi
3341 ;;
3342
3343 osf3* | osf4* | osf5*)
3344 lt_cv_deplibs_check_method=pass_all
3345 ;;
3346
3347 rdos*)
3348 lt_cv_deplibs_check_method=pass_all
3349 ;;
3350
3351 solaris*)
3352 lt_cv_deplibs_check_method=pass_all
3353 ;;
3354
3355 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3356 lt_cv_deplibs_check_method=pass_all
3357 ;;
3358
3359 sysv4 | sysv4.3*)
3360 case $host_vendor in
3361 motorola)
3362 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
3363 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3364 ;;
3365 ncr)
3366 lt_cv_deplibs_check_method=pass_all
3367 ;;
3368 sequent)
3369 lt_cv_file_magic_cmd='/bin/file'
3370 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
3371 ;;
3372 sni)
3373 lt_cv_file_magic_cmd='/bin/file'
3374 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
3375 lt_cv_file_magic_test_file=/lib/libc.so
3376 ;;
3377 siemens)
3378 lt_cv_deplibs_check_method=pass_all
3379 ;;
3380 pc)
3381 lt_cv_deplibs_check_method=pass_all
3382 ;;
3383 esac
3384 ;;
3385
3386 tpf*)
3387 lt_cv_deplibs_check_method=pass_all
3388 ;;
3389 esac
3390 ])
3391
3392 file_magic_glob=
3393 want_nocaseglob=no
3394 if test "$build" = "$host"; then
3395 case $host_os in
3396 mingw* | pw32*)
3397 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
3398 want_nocaseglob=yes
3399 else
3400 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
3401 fi
3402 ;;
3403 esac
3404 fi
3405
3406 file_magic_cmd=$lt_cv_file_magic_cmd
3407 deplibs_check_method=$lt_cv_deplibs_check_method
3408 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3409
3410 _LT_DECL([], [deplibs_check_method], [1],
3411 [Method to check whether dependent libraries are shared objects])
3412 _LT_DECL([], [file_magic_cmd], [1],
3413 [Command to use when deplibs_check_method = "file_magic"])
3414 _LT_DECL([], [file_magic_glob], [1],
3415 [How to find potential files when deplibs_check_method = "file_magic"])
3416 _LT_DECL([], [want_nocaseglob], [1],
3417 [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
3418 ])# _LT_CHECK_MAGIC_METHOD
3419
3420
3421 # LT_PATH_NM
3422 # ----------
3423 # find the pathname to a BSD- or MS-compatible name lister
3424 AC_DEFUN([LT_PATH_NM],
3425 [AC_REQUIRE([AC_PROG_CC])dnl
3426 AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
3427 [if test -n "$NM"; then
3428 # Let the user override the test.
3429 lt_cv_path_NM="$NM"
3430 else
3431 lt_nm_to_check="${ac_tool_prefix}nm"
3432 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3433 lt_nm_to_check="$lt_nm_to_check nm"
3434 fi
3435 for lt_tmp_nm in $lt_nm_to_check; do
3436 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3437 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3438 IFS="$lt_save_ifs"
3439 test -z "$ac_dir" && ac_dir=.
3440 tmp_nm="$ac_dir/$lt_tmp_nm"
3441 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3442 # Check to see if the nm accepts a BSD-compat flag.
3443 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3444 # nm: unknown option "B" ignored
3445 # Tru64's nm complains that /dev/null is an invalid object file
3446 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3447 */dev/null* | *'Invalid file or object type'*)
3448 lt_cv_path_NM="$tmp_nm -B"
3449 break
3450 ;;
3451 *)
3452 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3453 */dev/null*)
3454 lt_cv_path_NM="$tmp_nm -p"
3455 break
3456 ;;
3457 *)
3458 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3459 continue # so that we can try to find one that supports BSD flags
3460 ;;
3461 esac
3462 ;;
3463 esac
3464 fi
3465 done
3466 IFS="$lt_save_ifs"
3467 done
3468 : ${lt_cv_path_NM=no}
3469 fi])
3470 if test "$lt_cv_path_NM" != "no"; then
3471 NM="$lt_cv_path_NM"
3472 else
3473 # Didn't find any BSD compatible name lister, look for dumpbin.
3474 if test -n "$DUMPBIN"; then :
3475 # Let the user override the test.
3476 else
3477 AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
3478 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
3479 *COFF*)
3480 DUMPBIN="$DUMPBIN -symbols"
3481 ;;
3482 *)
3483 DUMPBIN=:
3484 ;;
3485 esac
3486 fi
3487 AC_SUBST([DUMPBIN])
3488 if test "$DUMPBIN" != ":"; then
3489 NM="$DUMPBIN"
3490 fi
3491 fi
3492 test -z "$NM" && NM=nm
3493 AC_SUBST([NM])
3494 _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
3495
3496 AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
3497 [lt_cv_nm_interface="BSD nm"
3498 echo "int some_variable = 0;" > conftest.$ac_ext
3499 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
3500 (eval "$ac_compile" 2>conftest.err)
3501 cat conftest.err >&AS_MESSAGE_LOG_FD
3502 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
3503 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3504 cat conftest.err >&AS_MESSAGE_LOG_FD
3505 (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
3506 cat conftest.out >&AS_MESSAGE_LOG_FD
3507 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3508 lt_cv_nm_interface="MS dumpbin"
3509 fi
3510 rm -f conftest*])
3511 ])# LT_PATH_NM
3512
3513 # Old names:
3514 AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
3515 AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
3516 dnl aclocal-1.4 backwards compatibility:
3517 dnl AC_DEFUN([AM_PROG_NM], [])
3518 dnl AC_DEFUN([AC_PROG_NM], [])
3519
3520 # _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3521 # --------------------------------
3522 # how to determine the name of the shared library
3523 # associated with a specific link library.
3524 # -- PORTME fill in with the dynamic library characteristics
3525 m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
3526 [m4_require([_LT_DECL_EGREP])
3527 m4_require([_LT_DECL_OBJDUMP])
3528 m4_require([_LT_DECL_DLLTOOL])
3529 AC_CACHE_CHECK([how to associate runtime and link libraries],
3530 lt_cv_sharedlib_from_linklib_cmd,
3531 [lt_cv_sharedlib_from_linklib_cmd='unknown'
3532
3533 case $host_os in
3534 cygwin* | mingw* | pw32* | cegcc*)
3535 # two different shell functions defined in ltmain.sh
3536 # decide which to use based on capabilities of $DLLTOOL
3537 case `$DLLTOOL --help 2>&1` in
3538 *--identify-strict*)
3539 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
3540 ;;
3541 *)
3542 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
3543 ;;
3544 esac
3545 ;;
3546 *)
3547 # fallback: assume linklib IS sharedlib
3548 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
3549 ;;
3550 esac
3551 ])
3552 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
3553 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
3554
3555 _LT_DECL([], [sharedlib_from_linklib_cmd], [1],
3556 [Command to associate shared and link libraries])
3557 ])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3558
3559
3560 # _LT_PATH_MANIFEST_TOOL
3561 # ----------------------
3562 # locate the manifest tool
3563 m4_defun([_LT_PATH_MANIFEST_TOOL],
3564 [AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
3565 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
3566 AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
3567 [lt_cv_path_mainfest_tool=no
3568 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
3569 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
3570 cat conftest.err >&AS_MESSAGE_LOG_FD
3571 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
3572 lt_cv_path_mainfest_tool=yes
3573 fi
3574 rm -f conftest*])
3575 if test "x$lt_cv_path_mainfest_tool" != xyes; then
3576 MANIFEST_TOOL=:
3577 fi
3578 _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
3579 ])# _LT_PATH_MANIFEST_TOOL
3580
3581
3582 # LT_LIB_M
3583 # --------
3584 # check for math library
3585 AC_DEFUN([LT_LIB_M],
3586 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
3587 LIBM=
3588 case $host in
3589 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
3590 # These system don't have libm, or don't need it
3591 ;;
3592 *-ncr-sysv4.3*)
3593 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
3594 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
3595 ;;
3596 *)
3597 AC_CHECK_LIB(m, cos, LIBM="-lm")
3598 ;;
3599 esac
3600 AC_SUBST([LIBM])
3601 ])# LT_LIB_M
3602
3603 # Old name:
3604 AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
3605 dnl aclocal-1.4 backwards compatibility:
3606 dnl AC_DEFUN([AC_CHECK_LIBM], [])
3607
3608
3609 # _LT_COMPILER_NO_RTTI([TAGNAME])
3610 # -------------------------------
3611 m4_defun([_LT_COMPILER_NO_RTTI],
3612 [m4_require([_LT_TAG_COMPILER])dnl
3613
3614 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3615
3616 if test "$GCC" = yes; then
3617 case $cc_basename in
3618 nvcc*)
3619 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
3620 *)
3621 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
3622 esac
3623
3624 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
3625 lt_cv_prog_compiler_rtti_exceptions,
3626 [-fno-rtti -fno-exceptions], [],
3627 [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
3628 fi
3629 _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
3630 [Compiler flag to turn off builtin functions])
3631 ])# _LT_COMPILER_NO_RTTI
3632
3633
3634 # _LT_CMD_GLOBAL_SYMBOLS
3635 # ----------------------
3636 m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
3637 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
3638 AC_REQUIRE([AC_PROG_CC])dnl
3639 AC_REQUIRE([AC_PROG_AWK])dnl
3640 AC_REQUIRE([LT_PATH_NM])dnl
3641 AC_REQUIRE([LT_PATH_LD])dnl
3642 m4_require([_LT_DECL_SED])dnl
3643 m4_require([_LT_DECL_EGREP])dnl
3644 m4_require([_LT_TAG_COMPILER])dnl
3645
3646 # Check for command to grab the raw symbol name followed by C symbol from nm.
3647 AC_MSG_CHECKING([command to parse $NM output from $compiler object])
3648 AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
3649 [
3650 # These are sane defaults that work on at least a few old systems.
3651 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
3652
3653 # Character class describing NM global symbol codes.
3654 symcode='[[BCDEGRST]]'
3655
3656 # Regexp to match symbols that can be accessed directly from C.
3657 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
3658
3659 # Define system-specific variables.
3660 case $host_os in
3661 aix*)
3662 symcode='[[BCDT]]'
3663 ;;
3664 cygwin* | mingw* | pw32* | cegcc*)
3665 symcode='[[ABCDGISTW]]'
3666 ;;
3667 hpux*)
3668 if test "$host_cpu" = ia64; then
3669 symcode='[[ABCDEGRST]]'
3670 fi
3671 ;;
3672 irix* | nonstopux*)
3673 symcode='[[BCDEGRST]]'
3674 ;;
3675 osf*)
3676 symcode='[[BCDEGQRST]]'
3677 ;;
3678 solaris*)
3679 symcode='[[BDRT]]'
3680 ;;
3681 sco3.2v5*)
3682 symcode='[[DT]]'
3683 ;;
3684 sysv4.2uw2*)
3685 symcode='[[DT]]'
3686 ;;
3687 sysv5* | sco5v6* | unixware* | OpenUNIX*)
3688 symcode='[[ABDT]]'
3689 ;;
3690 sysv4)
3691 symcode='[[DFNSTU]]'
3692 ;;
3693 esac
3694
3695 # If we're using GNU nm, then use its standard symbol codes.
3696 case `$NM -V 2>&1` in
3697 *GNU* | *'with BFD'*)
3698 symcode='[[ABCDGIRSTW]]' ;;
3699 esac
3700
3701 # Transform an extracted symbol line into a proper C declaration.
3702 # Some systems (esp. on ia64) link data and code symbols differently,
3703 # so use this general approach.
3704 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3705
3706 # Transform an extracted symbol line into symbol name and symbol address
3707 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
3708 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
3709
3710 # Handle CRLF in mingw tool chain
3711 opt_cr=
3712 case $build_os in
3713 mingw*)
3714 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3715 ;;
3716 esac
3717
3718 # Try without a prefix underscore, then with it.
3719 for ac_symprfx in "" "_"; do
3720
3721 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
3722 symxfrm="\\1 $ac_symprfx\\2 \\2"
3723
3724 # Write the raw and C identifiers.
3725 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
3726 # Fake it for dumpbin and say T for any non-static function
3727 # and D for any global variable.
3728 # Also find C++ and __fastcall symbols from MSVC++,
3729 # which start with @ or ?.
3730 lt_cv_sys_global_symbol_pipe="$AWK ['"\
3731 " {last_section=section; section=\$ 3};"\
3732 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
3733 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
3734 " \$ 0!~/External *\|/{next};"\
3735 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
3736 " {if(hide[section]) next};"\
3737 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
3738 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
3739 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
3740 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
3741 " ' prfx=^$ac_symprfx]"
3742 else
3743 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
3744 fi
3745 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
3746
3747 # Check to see that the pipe works correctly.
3748 pipe_works=no
3749
3750 rm -f conftest*
3751 cat > conftest.$ac_ext <<_LT_EOF
3752 #ifdef __cplusplus
3753 extern "C" {
3754 #endif
3755 char nm_test_var;
3756 void nm_test_func(void);
3757 void nm_test_func(void){}
3758 #ifdef __cplusplus
3759 }
3760 #endif
3761 int main(){nm_test_var='a';nm_test_func();return(0);}
3762 _LT_EOF
3763
3764 if AC_TRY_EVAL(ac_compile); then
3765 # Now try to grab the symbols.
3766 nlist=conftest.nm
3767 if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
3768 # Try sorting and uniquifying the output.
3769 if sort "$nlist" | uniq > "$nlist"T; then
3770 mv -f "$nlist"T "$nlist"
3771 else
3772 rm -f "$nlist"T
3773 fi
3774
3775 # Make sure that we snagged all the symbols we need.
3776 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
3777 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
3778 cat <<_LT_EOF > conftest.$ac_ext
3779 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
3780 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
3781 /* DATA imports from DLLs on WIN32 con't be const, because runtime
3782 relocations are performed -- see ld's documentation on pseudo-relocs. */
3783 # define LT@&t@_DLSYM_CONST
3784 #elif defined(__osf__)
3785 /* This system does not cope well with relocations in const data. */
3786 # define LT@&t@_DLSYM_CONST
3787 #else
3788 # define LT@&t@_DLSYM_CONST const
3789 #endif
3790
3791 #ifdef __cplusplus
3792 extern "C" {
3793 #endif
3794
3795 _LT_EOF
3796 # Now generate the symbol file.
3797 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
3798
3799 cat <<_LT_EOF >> conftest.$ac_ext
3800
3801 /* The mapping between symbol names and symbols. */
3802 LT@&t@_DLSYM_CONST struct {
3803 const char *name;
3804 void *address;
3805 }
3806 lt__PROGRAM__LTX_preloaded_symbols[[]] =
3807 {
3808 { "@PROGRAM@", (void *) 0 },
3809 _LT_EOF
3810 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
3811 cat <<\_LT_EOF >> conftest.$ac_ext
3812 {0, (void *) 0}
3813 };
3814
3815 /* This works around a problem in FreeBSD linker */
3816 #ifdef FREEBSD_WORKAROUND
3817 static const void *lt_preloaded_setup() {
3818 return lt__PROGRAM__LTX_preloaded_symbols;
3819 }
3820 #endif
3821
3822 #ifdef __cplusplus
3823 }
3824 #endif
3825 _LT_EOF
3826 # Now try linking the two files.
3827 mv conftest.$ac_objext conftstm.$ac_objext
3828 lt_globsym_save_LIBS=$LIBS
3829 lt_globsym_save_CFLAGS=$CFLAGS
3830 LIBS="conftstm.$ac_objext"
3831 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
3832 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
3833 pipe_works=yes
3834 fi
3835 LIBS=$lt_globsym_save_LIBS
3836 CFLAGS=$lt_globsym_save_CFLAGS
3837 else
3838 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
3839 fi
3840 else
3841 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
3842 fi
3843 else
3844 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
3845 fi
3846 else
3847 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
3848 cat conftest.$ac_ext >&5
3849 fi
3850 rm -rf conftest* conftst*
3851
3852 # Do not use the global_symbol_pipe unless it works.
3853 if test "$pipe_works" = yes; then
3854 break
3855 else
3856 lt_cv_sys_global_symbol_pipe=
3857 fi
3858 done
3859 ])
3860 if test -z "$lt_cv_sys_global_symbol_pipe"; then
3861 lt_cv_sys_global_symbol_to_cdecl=
3862 fi
3863 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
3864 AC_MSG_RESULT(failed)
3865 else
3866 AC_MSG_RESULT(ok)
3867 fi
3868
3869 # Response file support.
3870 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
3871 nm_file_list_spec='@'
3872 elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
3873 nm_file_list_spec='@'
3874 fi
3875
3876 _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
3877 [Take the output of nm and produce a listing of raw symbols and C names])
3878 _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
3879 [Transform the output of nm in a proper C declaration])
3880 _LT_DECL([global_symbol_to_c_name_address],
3881 [lt_cv_sys_global_symbol_to_c_name_address], [1],
3882 [Transform the output of nm in a C name address pair])
3883 _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
3884 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
3885 [Transform the output of nm in a C name address pair when lib prefix is needed])
3886 _LT_DECL([], [nm_file_list_spec], [1],
3887 [Specify filename containing input files for $NM])
3888 ]) # _LT_CMD_GLOBAL_SYMBOLS
3889
3890
3891 # _LT_COMPILER_PIC([TAGNAME])
3892 # ---------------------------
3893 m4_defun([_LT_COMPILER_PIC],
3894 [m4_require([_LT_TAG_COMPILER])dnl
3895 _LT_TAGVAR(lt_prog_compiler_wl, $1)=
3896 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3897 _LT_TAGVAR(lt_prog_compiler_static, $1)=
3898
3899 m4_if([$1], [CXX], [
3900 # C++ specific cases for pic, static, wl, etc.
3901 if test "$GXX" = yes; then
3902 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3903 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
3904
3905 case $host_os in
3906 aix*)
3907 # All AIX code is PIC.
3908 if test "$host_cpu" = ia64; then
3909 # AIX 5 now supports IA64 processor
3910 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3911 fi
3912 ;;
3913
3914 amigaos*)
3915 case $host_cpu in
3916 powerpc)
3917 # see comment about AmigaOS4 .so support
3918 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3919 ;;
3920 m68k)
3921 # FIXME: we need at least 68020 code to build shared libraries, but
3922 # adding the `-m68020' flag to GCC prevents building anything better,
3923 # like `-m68040'.
3924 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
3925 ;;
3926 esac
3927 ;;
3928
3929 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
3930 # PIC is the default for these OSes.
3931 ;;
3932 mingw* | cygwin* | os2* | pw32* | cegcc*)
3933 # This hack is so that the source file can tell whether it is being
3934 # built for inclusion in a dll (and should export symbols for example).
3935 # Although the cygwin gcc ignores -fPIC, still need this for old-style
3936 # (--disable-auto-import) libraries
3937 m4_if([$1], [GCJ], [],
3938 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
3939 ;;
3940 darwin* | rhapsody*)
3941 # PIC is the default on this platform
3942 # Common symbols not allowed in MH_DYLIB files
3943 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
3944 ;;
3945 *djgpp*)
3946 # DJGPP does not support shared libraries at all
3947 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3948 ;;
3949 haiku*)
3950 # PIC is the default for Haiku.
3951 # The "-static" flag exists, but is broken.
3952 _LT_TAGVAR(lt_prog_compiler_static, $1)=
3953 ;;
3954 interix[[3-9]]*)
3955 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
3956 # Instead, we relocate shared libraries at runtime.
3957 ;;
3958 sysv4*MP*)
3959 if test -d /usr/nec; then
3960 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
3961 fi
3962 ;;
3963 hpux*)
3964 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
3965 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
3966 # sets the default TLS model and affects inlining.
3967 case $host_cpu in
3968 hppa*64*)
3969 ;;
3970 *)
3971 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3972 ;;
3973 esac
3974 ;;
3975 *qnx* | *nto*)
3976 # QNX uses GNU C++, but need to define -shared option too, otherwise
3977 # it will coredump.
3978 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
3979 ;;
3980 *)
3981 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3982 ;;
3983 esac
3984 else
3985 case $host_os in
3986 aix[[4-9]]*)
3987 # All AIX code is PIC.
3988 if test "$host_cpu" = ia64; then
3989 # AIX 5 now supports IA64 processor
3990 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3991 else
3992 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
3993 fi
3994 ;;
3995 chorus*)
3996 case $cc_basename in
3997 cxch68*)
3998 # Green Hills C++ Compiler
3999 # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
4000 ;;
4001 esac
4002 ;;
4003 mingw* | cygwin* | os2* | pw32* | cegcc*)
4004 # This hack is so that the source file can tell whether it is being
4005 # built for inclusion in a dll (and should export symbols for example).
4006 m4_if([$1], [GCJ], [],
4007 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4008 ;;
4009 dgux*)
4010 case $cc_basename in
4011 ec++*)
4012 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4013 ;;
4014 ghcx*)
4015 # Green Hills C++ Compiler
4016 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4017 ;;
4018 *)
4019 ;;
4020 esac
4021 ;;
4022 freebsd* | dragonfly*)
4023 # FreeBSD uses GNU C++
4024 ;;
4025 hpux9* | hpux10* | hpux11*)
4026 case $cc_basename in
4027 CC*)
4028 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4029 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4030 if test "$host_cpu" != ia64; then
4031 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4032 fi
4033 ;;
4034 aCC*)
4035 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4036 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4037 case $host_cpu in
4038 hppa*64*|ia64*)
4039 # +Z the default
4040 ;;
4041 *)
4042 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4043 ;;
4044 esac
4045 ;;
4046 *)
4047 ;;
4048 esac
4049 ;;
4050 interix*)
4051 # This is c89, which is MS Visual C++ (no shared libs)
4052 # Anyone wants to do a port?
4053 ;;
4054 irix5* | irix6* | nonstopux*)
4055 case $cc_basename in
4056 CC*)
4057 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4058 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4059 # CC pic flag -KPIC is the default.
4060 ;;
4061 *)
4062 ;;
4063 esac
4064 ;;
4065 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4066 case $cc_basename in
4067 KCC*)
4068 # KAI C++ Compiler
4069 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4070 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4071 ;;
4072 ecpc* )
4073 # old Intel C++ for x86_64 which still supported -KPIC.
4074 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4075 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4076 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4077 ;;
4078 icpc* )
4079 # Intel C++, used to be incompatible with GCC.
4080 # ICC 10 doesn't accept -KPIC any more.
4081 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4082 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4083 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4084 ;;
4085 pgCC* | pgcpp*)
4086 # Portland Group C++ compiler
4087 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4088 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4089 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4090 ;;
4091 cxx*)
4092 # Compaq C++
4093 # Make sure the PIC flag is empty. It appears that all Alpha
4094 # Linux and Compaq Tru64 Unix objects are PIC.
4095 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4096 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4097 ;;
4098 xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
4099 # IBM XL 8.0, 9.0 on PPC and BlueGene
4100 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4101 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4102 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4103 ;;
4104 *)
4105 case `$CC -V 2>&1 | sed 5q` in
4106 *Sun\ C*)
4107 # Sun C++ 5.9
4108 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4109 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4110 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4111 ;;
4112 esac
4113 ;;
4114 esac
4115 ;;
4116 lynxos*)
4117 ;;
4118 m88k*)
4119 ;;
4120 mvs*)
4121 case $cc_basename in
4122 cxx*)
4123 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
4124 ;;
4125 *)
4126 ;;
4127 esac
4128 ;;
4129 netbsd* | netbsdelf*-gnu)
4130 ;;
4131 *qnx* | *nto*)
4132 # QNX uses GNU C++, but need to define -shared option too, otherwise
4133 # it will coredump.
4134 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4135 ;;
4136 osf3* | osf4* | osf5*)
4137 case $cc_basename in
4138 KCC*)
4139 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4140 ;;
4141 RCC*)
4142 # Rational C++ 2.4.1
4143 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4144 ;;
4145 cxx*)
4146 # Digital/Compaq C++
4147 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4148 # Make sure the PIC flag is empty. It appears that all Alpha
4149 # Linux and Compaq Tru64 Unix objects are PIC.
4150 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4151 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4152 ;;
4153 *)
4154 ;;
4155 esac
4156 ;;
4157 psos*)
4158 ;;
4159 solaris*)
4160 case $cc_basename in
4161 CC* | sunCC*)
4162 # Sun C++ 4.2, 5.x and Centerline C++
4163 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4164 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4165 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4166 ;;
4167 gcx*)
4168 # Green Hills C++ Compiler
4169 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4170 ;;
4171 *)
4172 ;;
4173 esac
4174 ;;
4175 sunos4*)
4176 case $cc_basename in
4177 CC*)
4178 # Sun C++ 4.x
4179 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4180 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4181 ;;
4182 lcc*)
4183 # Lucid
4184 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4185 ;;
4186 *)
4187 ;;
4188 esac
4189 ;;
4190 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
4191 case $cc_basename in
4192 CC*)
4193 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4194 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4195 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4196 ;;
4197 esac
4198 ;;
4199 tandem*)
4200 case $cc_basename in
4201 NCC*)
4202 # NonStop-UX NCC 3.20
4203 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4204 ;;
4205 *)
4206 ;;
4207 esac
4208 ;;
4209 vxworks*)
4210 ;;
4211 *)
4212 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4213 ;;
4214 esac
4215 fi
4216 ],
4217 [
4218 if test "$GCC" = yes; then
4219 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4220 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4221
4222 case $host_os in
4223 aix*)
4224 # All AIX code is PIC.
4225 if test "$host_cpu" = ia64; then
4226 # AIX 5 now supports IA64 processor
4227 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4228 fi
4229 ;;
4230
4231 amigaos*)
4232 case $host_cpu in
4233 powerpc)
4234 # see comment about AmigaOS4 .so support
4235 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4236 ;;
4237 m68k)
4238 # FIXME: we need at least 68020 code to build shared libraries, but
4239 # adding the `-m68020' flag to GCC prevents building anything better,
4240 # like `-m68040'.
4241 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4242 ;;
4243 esac
4244 ;;
4245
4246 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4247 # PIC is the default for these OSes.
4248 ;;
4249
4250 mingw* | cygwin* | pw32* | os2* | cegcc*)
4251 # This hack is so that the source file can tell whether it is being
4252 # built for inclusion in a dll (and should export symbols for example).
4253 # Although the cygwin gcc ignores -fPIC, still need this for old-style
4254 # (--disable-auto-import) libraries
4255 m4_if([$1], [GCJ], [],
4256 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4257 ;;
4258
4259 darwin* | rhapsody*)
4260 # PIC is the default on this platform
4261 # Common symbols not allowed in MH_DYLIB files
4262 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4263 ;;
4264
4265 haiku*)
4266 # PIC is the default for Haiku.
4267 # The "-static" flag exists, but is broken.
4268 _LT_TAGVAR(lt_prog_compiler_static, $1)=
4269 ;;
4270
4271 hpux*)
4272 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4273 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
4274 # sets the default TLS model and affects inlining.
4275 case $host_cpu in
4276 hppa*64*)
4277 # +Z the default
4278 ;;
4279 *)
4280 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4281 ;;
4282 esac
4283 ;;
4284
4285 interix[[3-9]]*)
4286 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4287 # Instead, we relocate shared libraries at runtime.
4288 ;;
4289
4290 msdosdjgpp*)
4291 # Just because we use GCC doesn't mean we suddenly get shared libraries
4292 # on systems that don't support them.
4293 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4294 enable_shared=no
4295 ;;
4296
4297 *nto* | *qnx*)
4298 # QNX uses GNU C++, but need to define -shared option too, otherwise
4299 # it will coredump.
4300 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4301 ;;
4302
4303 sysv4*MP*)
4304 if test -d /usr/nec; then
4305 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4306 fi
4307 ;;
4308
4309 *)
4310 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4311 ;;
4312 esac
4313
4314 case $cc_basename in
4315 nvcc*) # Cuda Compiler Driver 2.2
4316 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
4317 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4318 _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
4319 fi
4320 ;;
4321 esac
4322 else
4323 # PORTME Check for flag to pass linker flags through the system compiler.
4324 case $host_os in
4325 aix*)
4326 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4327 if test "$host_cpu" = ia64; then
4328 # AIX 5 now supports IA64 processor
4329 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4330 else
4331 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4332 fi
4333 ;;
4334
4335 mingw* | cygwin* | pw32* | os2* | cegcc*)
4336 # This hack is so that the source file can tell whether it is being
4337 # built for inclusion in a dll (and should export symbols for example).
4338 m4_if([$1], [GCJ], [],
4339 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4340 ;;
4341
4342 hpux9* | hpux10* | hpux11*)
4343 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4344 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4345 # not for PA HP-UX.
4346 case $host_cpu in
4347 hppa*64*|ia64*)
4348 # +Z the default
4349 ;;
4350 *)
4351 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4352 ;;
4353 esac
4354 # Is there a better lt_prog_compiler_static that works with the bundled CC?
4355 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4356 ;;
4357
4358 irix5* | irix6* | nonstopux*)
4359 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4360 # PIC (with -KPIC) is the default.
4361 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4362 ;;
4363
4364 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4365 case $cc_basename in
4366 # old Intel for x86_64 which still supported -KPIC.
4367 ecc*)
4368 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4369 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4370 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4371 ;;
4372 # icc used to be incompatible with GCC.
4373 # ICC 10 doesn't accept -KPIC any more.
4374 icc* | ifort*)
4375 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4376 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4377 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4378 ;;
4379 # Lahey Fortran 8.1.
4380 lf95*)
4381 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4382 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
4383 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
4384 ;;
4385 nagfor*)
4386 # NAG Fortran compiler
4387 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
4388 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4389 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4390 ;;
4391 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
4392 # Portland Group compilers (*not* the Pentium gcc compiler,
4393 # which looks to be a dead project)
4394 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4395 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4396 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4397 ;;
4398 ccc*)
4399 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4400 # All Alpha code is PIC.
4401 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4402 ;;
4403 xl* | bgxl* | bgf* | mpixl*)
4404 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
4405 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4406 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4407 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4408 ;;
4409 *)
4410 case `$CC -V 2>&1 | sed 5q` in
4411 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
4412 # Sun Fortran 8.3 passes all unrecognized flags to the linker
4413 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4414 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4415 _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
4416 ;;
4417 *Sun\ F* | *Sun*Fortran*)
4418 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4419 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4420 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4421 ;;
4422 *Sun\ C*)
4423 # Sun C 5.9
4424 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4425 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4426 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4427 ;;
4428 *Intel*\ [[CF]]*Compiler*)
4429 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4430 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4431 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4432 ;;
4433 *Portland\ Group*)
4434 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4435 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4436 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4437 ;;
4438 esac
4439 ;;
4440 esac
4441 ;;
4442
4443 newsos6)
4444 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4445 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4446 ;;
4447
4448 *nto* | *qnx*)
4449 # QNX uses GNU C++, but need to define -shared option too, otherwise
4450 # it will coredump.
4451 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4452 ;;
4453
4454 osf3* | osf4* | osf5*)
4455 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4456 # All OSF/1 code is PIC.
4457 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4458 ;;
4459
4460 rdos*)
4461 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4462 ;;
4463
4464 solaris*)
4465 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4466 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4467 case $cc_basename in
4468 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
4469 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
4470 *)
4471 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
4472 esac
4473 ;;
4474
4475 sunos4*)
4476 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4477 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4478 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4479 ;;
4480
4481 sysv4 | sysv4.2uw2* | sysv4.3*)
4482 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4483 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4484 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4485 ;;
4486
4487 sysv4*MP*)
4488 if test -d /usr/nec ;then
4489 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
4490 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4491 fi
4492 ;;
4493
4494 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
4495 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4496 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4497 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4498 ;;
4499
4500 unicos*)
4501 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4502 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4503 ;;
4504
4505 uts4*)
4506 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4507 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4508 ;;
4509
4510 *)
4511 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4512 ;;
4513 esac
4514 fi
4515 ])
4516 case $host_os in
4517 # For platforms which do not support PIC, -DPIC is meaningless:
4518 *djgpp*)
4519 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4520 ;;
4521 *)
4522 _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
4523 ;;
4524 esac
4525
4526 AC_CACHE_CHECK([for $compiler option to produce PIC],
4527 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
4528 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
4529 _LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
4530
4531 #
4532 # Check to make sure the PIC flag actually works.
4533 #
4534 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4535 _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
4536 [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
4537 [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
4538 [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
4539 "" | " "*) ;;
4540 *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
4541 esac],
4542 [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4543 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
4544 fi
4545 _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
4546 [Additional compiler flags for building library objects])
4547
4548 _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
4549 [How to pass a linker flag through the compiler])
4550 #
4551 # Check to make sure the static flag actually works.
4552 #
4553 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
4554 _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
4555 _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
4556 $lt_tmp_static_flag,
4557 [],
4558 [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
4559 _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
4560 [Compiler flag to prevent dynamic linking])
4561 ])# _LT_COMPILER_PIC
4562
4563
4564 # _LT_LINKER_SHLIBS([TAGNAME])
4565 # ----------------------------
4566 # See if the linker supports building shared libraries.
4567 m4_defun([_LT_LINKER_SHLIBS],
4568 [AC_REQUIRE([LT_PATH_LD])dnl
4569 AC_REQUIRE([LT_PATH_NM])dnl
4570 m4_require([_LT_PATH_MANIFEST_TOOL])dnl
4571 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
4572 m4_require([_LT_DECL_EGREP])dnl
4573 m4_require([_LT_DECL_SED])dnl
4574 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
4575 m4_require([_LT_TAG_COMPILER])dnl
4576 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
4577 m4_if([$1], [CXX], [
4578 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4579 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4580 case $host_os in
4581 aix[[4-9]]*)
4582 # If we're using GNU nm, then we don't want the "-C" option.
4583 # -C means demangle to AIX nm, but means don't demangle with GNU nm
4584 # Also, AIX nm treats weak defined symbols like other global defined
4585 # symbols, whereas GNU nm marks them as "W".
4586 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4587 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4588 else
4589 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4590 fi
4591 ;;
4592 pw32*)
4593 _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
4594 ;;
4595 cygwin* | mingw* | cegcc*)
4596 case $cc_basename in
4597 cl*)
4598 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
4599 ;;
4600 *)
4601 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
4602 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
4603 ;;
4604 esac
4605 ;;
4606 linux* | k*bsd*-gnu | gnu*)
4607 _LT_TAGVAR(link_all_deplibs, $1)=no
4608 ;;
4609 *)
4610 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4611 ;;
4612 esac
4613 ], [
4614 runpath_var=
4615 _LT_TAGVAR(allow_undefined_flag, $1)=
4616 _LT_TAGVAR(always_export_symbols, $1)=no
4617 _LT_TAGVAR(archive_cmds, $1)=
4618 _LT_TAGVAR(archive_expsym_cmds, $1)=
4619 _LT_TAGVAR(compiler_needs_object, $1)=no
4620 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4621 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
4622 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4623 _LT_TAGVAR(hardcode_automatic, $1)=no
4624 _LT_TAGVAR(hardcode_direct, $1)=no
4625 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
4626 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4627 _LT_TAGVAR(hardcode_libdir_separator, $1)=
4628 _LT_TAGVAR(hardcode_minus_L, $1)=no
4629 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4630 _LT_TAGVAR(inherit_rpath, $1)=no
4631 _LT_TAGVAR(link_all_deplibs, $1)=unknown
4632 _LT_TAGVAR(module_cmds, $1)=
4633 _LT_TAGVAR(module_expsym_cmds, $1)=
4634 _LT_TAGVAR(old_archive_from_new_cmds, $1)=
4635 _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
4636 _LT_TAGVAR(thread_safe_flag_spec, $1)=
4637 _LT_TAGVAR(whole_archive_flag_spec, $1)=
4638 # include_expsyms should be a list of space-separated symbols to be *always*
4639 # included in the symbol list
4640 _LT_TAGVAR(include_expsyms, $1)=
4641 # exclude_expsyms can be an extended regexp of symbols to exclude
4642 # it will be wrapped by ` (' and `)$', so one must not match beginning or
4643 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4644 # as well as any symbol that contains `d'.
4645 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4646 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4647 # platforms (ab)use it in PIC code, but their linkers get confused if
4648 # the symbol is explicitly referenced. Since portable code cannot
4649 # rely on this symbol name, it's probably fine to never include it in
4650 # preloaded symbol tables.
4651 # Exclude shared library initialization/finalization symbols.
4652 dnl Note also adjust exclude_expsyms for C++ above.
4653 extract_expsyms_cmds=
4654
4655 case $host_os in
4656 cygwin* | mingw* | pw32* | cegcc*)
4657 # FIXME: the MSVC++ port hasn't been tested in a loooong time
4658 # When not using gcc, we currently assume that we are using
4659 # Microsoft Visual C++.
4660 if test "$GCC" != yes; then
4661 with_gnu_ld=no
4662 fi
4663 ;;
4664 interix*)
4665 # we just hope/assume this is gcc and not c89 (= MSVC++)
4666 with_gnu_ld=yes
4667 ;;
4668 openbsd*)
4669 with_gnu_ld=no
4670 ;;
4671 linux* | k*bsd*-gnu | gnu*)
4672 _LT_TAGVAR(link_all_deplibs, $1)=no
4673 ;;
4674 esac
4675
4676 _LT_TAGVAR(ld_shlibs, $1)=yes
4677
4678 # On some targets, GNU ld is compatible enough with the native linker
4679 # that we're better off using the native interface for both.
4680 lt_use_gnu_ld_interface=no
4681 if test "$with_gnu_ld" = yes; then
4682 case $host_os in
4683 aix*)
4684 # The AIX port of GNU ld has always aspired to compatibility
4685 # with the native linker. However, as the warning in the GNU ld
4686 # block says, versions before 2.19.5* couldn't really create working
4687 # shared libraries, regardless of the interface used.
4688 case `$LD -v 2>&1` in
4689 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
4690 *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
4691 *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
4692 *)
4693 lt_use_gnu_ld_interface=yes
4694 ;;
4695 esac
4696 ;;
4697 *)
4698 lt_use_gnu_ld_interface=yes
4699 ;;
4700 esac
4701 fi
4702
4703 if test "$lt_use_gnu_ld_interface" = yes; then
4704 # If archive_cmds runs LD, not CC, wlarc should be empty
4705 wlarc='${wl}'
4706
4707 # Set some defaults for GNU ld with shared library support. These
4708 # are reset later if shared libraries are not supported. Putting them
4709 # here allows them to be overridden if necessary.
4710 runpath_var=LD_RUN_PATH
4711 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4712 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4713 # ancient GNU ld didn't support --whole-archive et. al.
4714 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
4715 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4716 else
4717 _LT_TAGVAR(whole_archive_flag_spec, $1)=
4718 fi
4719 supports_anon_versioning=no
4720 case `$LD -v 2>&1` in
4721 *GNU\ gold*) supports_anon_versioning=yes ;;
4722 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
4723 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
4724 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
4725 *\ 2.11.*) ;; # other 2.11 versions
4726 *) supports_anon_versioning=yes ;;
4727 esac
4728
4729 # See if GNU ld supports shared libraries.
4730 case $host_os in
4731 aix[[3-9]]*)
4732 # On AIX/PPC, the GNU linker is very broken
4733 if test "$host_cpu" != ia64; then
4734 _LT_TAGVAR(ld_shlibs, $1)=no
4735 cat <<_LT_EOF 1>&2
4736
4737 *** Warning: the GNU linker, at least up to release 2.19, is reported
4738 *** to be unable to reliably create shared libraries on AIX.
4739 *** Therefore, libtool is disabling shared libraries support. If you
4740 *** really care for shared libraries, you may want to install binutils
4741 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
4742 *** You will then need to restart the configuration process.
4743
4744 _LT_EOF
4745 fi
4746 ;;
4747
4748 amigaos*)
4749 case $host_cpu in
4750 powerpc)
4751 # see comment about AmigaOS4 .so support
4752 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4753 _LT_TAGVAR(archive_expsym_cmds, $1)=''
4754 ;;
4755 m68k)
4756 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
4757 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4758 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4759 ;;
4760 esac
4761 ;;
4762
4763 beos*)
4764 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4765 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4766 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4767 # support --undefined. This deserves some investigation. FIXME
4768 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4769 else
4770 _LT_TAGVAR(ld_shlibs, $1)=no
4771 fi
4772 ;;
4773
4774 cygwin* | mingw* | pw32* | cegcc*)
4775 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
4776 # as there is no search path for DLLs.
4777 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4778 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
4779 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4780 _LT_TAGVAR(always_export_symbols, $1)=no
4781 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4782 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
4783 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
4784
4785 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
4786 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
4787 # If the export-symbols file already is a .def file (1st line
4788 # is EXPORTS), use it as is; otherwise, prepend...
4789 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
4790 cp $export_symbols $output_objdir/$soname.def;
4791 else
4792 echo EXPORTS > $output_objdir/$soname.def;
4793 cat $export_symbols >> $output_objdir/$soname.def;
4794 fi~
4795 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
4796 else
4797 _LT_TAGVAR(ld_shlibs, $1)=no
4798 fi
4799 ;;
4800
4801 haiku*)
4802 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4803 _LT_TAGVAR(link_all_deplibs, $1)=yes
4804 ;;
4805
4806 interix[[3-9]]*)
4807 _LT_TAGVAR(hardcode_direct, $1)=no
4808 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4809 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4810 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4811 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
4812 # Instead, shared libraries are loaded at an image base (0x10000000 by
4813 # default) and relocated if they conflict, which is a slow very memory
4814 # consuming and fragmenting process. To avoid this, we pick a random,
4815 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
4816 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
4817 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
4818 _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
4819 ;;
4820
4821 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
4822 tmp_diet=no
4823 if test "$host_os" = linux-dietlibc; then
4824 case $cc_basename in
4825 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
4826 esac
4827 fi
4828 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
4829 && test "$tmp_diet" = no
4830 then
4831 tmp_addflag=' $pic_flag'
4832 tmp_sharedflag='-shared'
4833 case $cc_basename,$host_cpu in
4834 pgcc*) # Portland Group C compiler
4835 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
4836 tmp_addflag=' $pic_flag'
4837 ;;
4838 pgf77* | pgf90* | pgf95* | pgfortran*)
4839 # Portland Group f77 and f90 compilers
4840 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
4841 tmp_addflag=' $pic_flag -Mnomain' ;;
4842 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
4843 tmp_addflag=' -i_dynamic' ;;
4844 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
4845 tmp_addflag=' -i_dynamic -nofor_main' ;;
4846 ifc* | ifort*) # Intel Fortran compiler
4847 tmp_addflag=' -nofor_main' ;;
4848 lf95*) # Lahey Fortran 8.1
4849 _LT_TAGVAR(whole_archive_flag_spec, $1)=
4850 tmp_sharedflag='--shared' ;;
4851 xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
4852 tmp_sharedflag='-qmkshrobj'
4853 tmp_addflag= ;;
4854 nvcc*) # Cuda Compiler Driver 2.2
4855 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
4856 _LT_TAGVAR(compiler_needs_object, $1)=yes
4857 ;;
4858 esac
4859 case `$CC -V 2>&1 | sed 5q` in
4860 *Sun\ C*) # Sun C 5.9
4861 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
4862 _LT_TAGVAR(compiler_needs_object, $1)=yes
4863 tmp_sharedflag='-G' ;;
4864 *Sun\ F*) # Sun Fortran 8.3
4865 tmp_sharedflag='-G' ;;
4866 esac
4867 _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4868
4869 if test "x$supports_anon_versioning" = xyes; then
4870 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
4871 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4872 echo "local: *; };" >> $output_objdir/$libname.ver~
4873 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
4874 fi
4875
4876 case $cc_basename in
4877 xlf* | bgf* | bgxlf* | mpixlf*)
4878 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
4879 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
4880 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4881 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
4882 if test "x$supports_anon_versioning" = xyes; then
4883 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
4884 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4885 echo "local: *; };" >> $output_objdir/$libname.ver~
4886 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
4887 fi
4888 ;;
4889 esac
4890 else
4891 _LT_TAGVAR(ld_shlibs, $1)=no
4892 fi
4893 ;;
4894
4895 netbsd* | netbsdelf*-gnu)
4896 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
4897 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4898 wlarc=
4899 else
4900 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4901 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4902 fi
4903 ;;
4904
4905 solaris*)
4906 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
4907 _LT_TAGVAR(ld_shlibs, $1)=no
4908 cat <<_LT_EOF 1>&2
4909
4910 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
4911 *** create shared libraries on Solaris systems. Therefore, libtool
4912 *** is disabling shared libraries support. We urge you to upgrade GNU
4913 *** binutils to release 2.9.1 or newer. Another option is to modify
4914 *** your PATH or compiler configuration so that the native linker is
4915 *** used, and then restart.
4916
4917 _LT_EOF
4918 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4919 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4920 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4921 else
4922 _LT_TAGVAR(ld_shlibs, $1)=no
4923 fi
4924 ;;
4925
4926 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
4927 case `$LD -v 2>&1` in
4928 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
4929 _LT_TAGVAR(ld_shlibs, $1)=no
4930 cat <<_LT_EOF 1>&2
4931
4932 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
4933 *** reliably create shared libraries on SCO systems. Therefore, libtool
4934 *** is disabling shared libraries support. We urge you to upgrade GNU
4935 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
4936 *** your PATH or compiler configuration so that the native linker is
4937 *** used, and then restart.
4938
4939 _LT_EOF
4940 ;;
4941 *)
4942 # For security reasons, it is highly recommended that you always
4943 # use absolute paths for naming shared libraries, and exclude the
4944 # DT_RUNPATH tag from executables and libraries. But doing so
4945 # requires that you compile everything twice, which is a pain.
4946 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4947 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4948 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4949 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4950 else
4951 _LT_TAGVAR(ld_shlibs, $1)=no
4952 fi
4953 ;;
4954 esac
4955 ;;
4956
4957 sunos4*)
4958 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4959 wlarc=
4960 _LT_TAGVAR(hardcode_direct, $1)=yes
4961 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4962 ;;
4963
4964 *)
4965 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4966 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4967 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4968 else
4969 _LT_TAGVAR(ld_shlibs, $1)=no
4970 fi
4971 ;;
4972 esac
4973
4974 if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
4975 runpath_var=
4976 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4977 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
4978 _LT_TAGVAR(whole_archive_flag_spec, $1)=
4979 fi
4980 else
4981 # PORTME fill in a description of your system's linker (not GNU ld)
4982 case $host_os in
4983 aix3*)
4984 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4985 _LT_TAGVAR(always_export_symbols, $1)=yes
4986 _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
4987 # Note: this linker hardcodes the directories in LIBPATH if there
4988 # are no directories specified by -L.
4989 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4990 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
4991 # Neither direct hardcoding nor static linking is supported with a
4992 # broken collect2.
4993 _LT_TAGVAR(hardcode_direct, $1)=unsupported
4994 fi
4995 ;;
4996
4997 aix[[4-9]]*)
4998 if test "$host_cpu" = ia64; then
4999 # On IA64, the linker does run time linking by default, so we don't
5000 # have to do anything special.
5001 aix_use_runtimelinking=no
5002 exp_sym_flag='-Bexport'
5003 no_entry_flag=""
5004 else
5005 # If we're using GNU nm, then we don't want the "-C" option.
5006 # -C means demangle to AIX nm, but means don't demangle with GNU nm
5007 # Also, AIX nm treats weak defined symbols like other global
5008 # defined symbols, whereas GNU nm marks them as "W".
5009 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
5010 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
5011 else
5012 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
5013 fi
5014 aix_use_runtimelinking=no
5015
5016 # Test if we are trying to use run time linking or normal
5017 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5018 # need to do runtime linking.
5019 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5020 for ld_flag in $LDFLAGS; do
5021 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5022 aix_use_runtimelinking=yes
5023 break
5024 fi
5025 done
5026 ;;
5027 esac
5028
5029 exp_sym_flag='-bexport'
5030 no_entry_flag='-bnoentry'
5031 fi
5032
5033 # When large executables or shared objects are built, AIX ld can
5034 # have problems creating the table of contents. If linking a library
5035 # or program results in "error TOC overflow" add -mminimal-toc to
5036 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5037 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5038
5039 _LT_TAGVAR(archive_cmds, $1)=''
5040 _LT_TAGVAR(hardcode_direct, $1)=yes
5041 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5042 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5043 _LT_TAGVAR(link_all_deplibs, $1)=yes
5044 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
5045
5046 if test "$GCC" = yes; then
5047 case $host_os in aix4.[[012]]|aix4.[[012]].*)
5048 # We only want to do this on AIX 4.2 and lower, the check
5049 # below for broken collect2 doesn't work under 4.3+
5050 collect2name=`${CC} -print-prog-name=collect2`
5051 if test -f "$collect2name" &&
5052 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
5053 then
5054 # We have reworked collect2
5055 :
5056 else
5057 # We have old collect2
5058 _LT_TAGVAR(hardcode_direct, $1)=unsupported
5059 # It fails to find uninstalled libraries when the uninstalled
5060 # path is not listed in the libpath. Setting hardcode_minus_L
5061 # to unsupported forces relinking
5062 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5063 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5064 _LT_TAGVAR(hardcode_libdir_separator, $1)=
5065 fi
5066 ;;
5067 esac
5068 shared_flag='-shared'
5069 if test "$aix_use_runtimelinking" = yes; then
5070 shared_flag="$shared_flag "'${wl}-G'
5071 fi
5072 _LT_TAGVAR(link_all_deplibs, $1)=no
5073 else
5074 # not using gcc
5075 if test "$host_cpu" = ia64; then
5076 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5077 # chokes on -Wl,-G. The following line is correct:
5078 shared_flag='-G'
5079 else
5080 if test "$aix_use_runtimelinking" = yes; then
5081 shared_flag='${wl}-G'
5082 else
5083 shared_flag='${wl}-bM:SRE'
5084 fi
5085 fi
5086 fi
5087
5088 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
5089 # It seems that -bexpall does not export symbols beginning with
5090 # underscore (_), so it is better to generate a list of symbols to export.
5091 _LT_TAGVAR(always_export_symbols, $1)=yes
5092 if test "$aix_use_runtimelinking" = yes; then
5093 # Warning - without using the other runtime loading flags (-brtl),
5094 # -berok will link without error, but may produce a broken library.
5095 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
5096 # Determine the default libpath from the value encoded in an
5097 # empty executable.
5098 _LT_SYS_MODULE_PATH_AIX([$1])
5099 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5100 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5101 else
5102 if test "$host_cpu" = ia64; then
5103 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5104 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5105 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
5106 else
5107 # Determine the default libpath from the value encoded in an
5108 # empty executable.
5109 _LT_SYS_MODULE_PATH_AIX([$1])
5110 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5111 # Warning - without using the other run time loading flags,
5112 # -berok will link without error, but may produce a broken library.
5113 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5114 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5115 if test "$with_gnu_ld" = yes; then
5116 # We only use this code for GNU lds that support --whole-archive.
5117 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
5118 else
5119 # Exported symbols can be pulled into shared objects from archives
5120 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5121 fi
5122 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5123 # This is similar to how AIX traditionally builds its shared libraries.
5124 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
5125 fi
5126 fi
5127 ;;
5128
5129 amigaos*)
5130 case $host_cpu in
5131 powerpc)
5132 # see comment about AmigaOS4 .so support
5133 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5134 _LT_TAGVAR(archive_expsym_cmds, $1)=''
5135 ;;
5136 m68k)
5137 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5138 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5139 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5140 ;;
5141 esac
5142 ;;
5143
5144 bsdi[[45]]*)
5145 _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
5146 ;;
5147
5148 cygwin* | mingw* | pw32* | cegcc*)
5149 # When not using gcc, we currently assume that we are using
5150 # Microsoft Visual C++.
5151 # hardcode_libdir_flag_spec is actually meaningless, as there is
5152 # no search path for DLLs.
5153 case $cc_basename in
5154 cl*)
5155 # Native MSVC
5156 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5157 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5158 _LT_TAGVAR(always_export_symbols, $1)=yes
5159 _LT_TAGVAR(file_list_spec, $1)='@'
5160 # Tell ltmain to make .lib files, not .a files.
5161 libext=lib
5162 # Tell ltmain to make .dll files, not .so files.
5163 shrext_cmds=".dll"
5164 # FIXME: Setting linknames here is a bad hack.
5165 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
5166 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5167 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
5168 else
5169 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
5170 fi~
5171 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
5172 linknames='
5173 # The linker will not automatically build a static lib if we build a DLL.
5174 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5175 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5176 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
5177 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
5178 # Don't use ranlib
5179 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
5180 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
5181 lt_tool_outputfile="@TOOL_OUTPUT@"~
5182 case $lt_outputfile in
5183 *.exe|*.EXE) ;;
5184 *)
5185 lt_outputfile="$lt_outputfile.exe"
5186 lt_tool_outputfile="$lt_tool_outputfile.exe"
5187 ;;
5188 esac~
5189 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
5190 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
5191 $RM "$lt_outputfile.manifest";
5192 fi'
5193 ;;
5194 *)
5195 # Assume MSVC wrapper
5196 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5197 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5198 # Tell ltmain to make .lib files, not .a files.
5199 libext=lib
5200 # Tell ltmain to make .dll files, not .so files.
5201 shrext_cmds=".dll"
5202 # FIXME: Setting linknames here is a bad hack.
5203 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
5204 # The linker will automatically build a .lib file if we build a DLL.
5205 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5206 # FIXME: Should let the user specify the lib program.
5207 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5208 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5209 ;;
5210 esac
5211 ;;
5212
5213 darwin* | rhapsody*)
5214 _LT_DARWIN_LINKER_FEATURES($1)
5215 ;;
5216
5217 dgux*)
5218 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5219 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5220 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5221 ;;
5222
5223 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5224 # support. Future versions do this automatically, but an explicit c++rt0.o
5225 # does not break anything, and helps significantly (at the cost of a little
5226 # extra space).
5227 freebsd2.2*)
5228 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5229 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5230 _LT_TAGVAR(hardcode_direct, $1)=yes
5231 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5232 ;;
5233
5234 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5235 freebsd2.*)
5236 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5237 _LT_TAGVAR(hardcode_direct, $1)=yes
5238 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5239 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5240 ;;
5241
5242 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5243 freebsd* | dragonfly*)
5244 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5245 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5246 _LT_TAGVAR(hardcode_direct, $1)=yes
5247 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5248 ;;
5249
5250 hpux9*)
5251 if test "$GCC" = yes; then
5252 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5253 else
5254 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5255 fi
5256 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5257 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5258 _LT_TAGVAR(hardcode_direct, $1)=yes
5259
5260 # hardcode_minus_L: Not really in the search PATH,
5261 # but as the default location of the library.
5262 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5263 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5264 ;;
5265
5266 hpux10*)
5267 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
5268 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5269 else
5270 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
5271 fi
5272 if test "$with_gnu_ld" = no; then
5273 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5274 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5275 _LT_TAGVAR(hardcode_direct, $1)=yes
5276 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5277 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5278 # hardcode_minus_L: Not really in the search PATH,
5279 # but as the default location of the library.
5280 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5281 fi
5282 ;;
5283
5284 hpux11*)
5285 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
5286 case $host_cpu in
5287 hppa*64*)
5288 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5289 ;;
5290 ia64*)
5291 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5292 ;;
5293 *)
5294 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5295 ;;
5296 esac
5297 else
5298 case $host_cpu in
5299 hppa*64*)
5300 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5301 ;;
5302 ia64*)
5303 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5304 ;;
5305 *)
5306 m4_if($1, [], [
5307 # Older versions of the 11.00 compiler do not understand -b yet
5308 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
5309 _LT_LINKER_OPTION([if $CC understands -b],
5310 _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
5311 [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
5312 [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
5313 [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
5314 ;;
5315 esac
5316 fi
5317 if test "$with_gnu_ld" = no; then
5318 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5319 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5320
5321 case $host_cpu in
5322 hppa*64*|ia64*)
5323 _LT_TAGVAR(hardcode_direct, $1)=no
5324 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5325 ;;
5326 *)
5327 _LT_TAGVAR(hardcode_direct, $1)=yes
5328 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5329 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5330
5331 # hardcode_minus_L: Not really in the search PATH,
5332 # but as the default location of the library.
5333 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5334 ;;
5335 esac
5336 fi
5337 ;;
5338
5339 irix5* | irix6* | nonstopux*)
5340 if test "$GCC" = yes; then
5341 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5342 # Try to use the -exported_symbol ld option, if it does not
5343 # work, assume that -exports_file does not work either and
5344 # implicitly export all symbols.
5345 # This should be the same for all languages, so no per-tag cache variable.
5346 AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
5347 [lt_cv_irix_exported_symbol],
5348 [save_LDFLAGS="$LDFLAGS"
5349 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5350 AC_LINK_IFELSE(
5351 [AC_LANG_SOURCE(
5352 [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
5353 [C++], [[int foo (void) { return 0; }]],
5354 [Fortran 77], [[
5355 subroutine foo
5356 end]],
5357 [Fortran], [[
5358 subroutine foo
5359 end]])])],
5360 [lt_cv_irix_exported_symbol=yes],
5361 [lt_cv_irix_exported_symbol=no])
5362 LDFLAGS="$save_LDFLAGS"])
5363 if test "$lt_cv_irix_exported_symbol" = yes; then
5364 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
5365 fi
5366 else
5367 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
5368 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
5369 fi
5370 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5371 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5372 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5373 _LT_TAGVAR(inherit_rpath, $1)=yes
5374 _LT_TAGVAR(link_all_deplibs, $1)=yes
5375 ;;
5376
5377 netbsd* | netbsdelf*-gnu)
5378 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5379 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5380 else
5381 _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5382 fi
5383 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5384 _LT_TAGVAR(hardcode_direct, $1)=yes
5385 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5386 ;;
5387
5388 newsos6)
5389 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5390 _LT_TAGVAR(hardcode_direct, $1)=yes
5391 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5392 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5393 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5394 ;;
5395
5396 *nto* | *qnx*)
5397 ;;
5398
5399 openbsd*)
5400 if test -f /usr/libexec/ld.so; then
5401 _LT_TAGVAR(hardcode_direct, $1)=yes
5402 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5403 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5404 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5405 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5406 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
5407 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5408 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5409 else
5410 case $host_os in
5411 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
5412 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5413 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5414 ;;
5415 *)
5416 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5417 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5418 ;;
5419 esac
5420 fi
5421 else
5422 _LT_TAGVAR(ld_shlibs, $1)=no
5423 fi
5424 ;;
5425
5426 os2*)
5427 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5428 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5429 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5430 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
5431 _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5432 ;;
5433
5434 osf3*)
5435 if test "$GCC" = yes; then
5436 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5437 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5438 else
5439 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5440 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
5441 fi
5442 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5443 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5444 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5445 ;;
5446
5447 osf4* | osf5*) # as osf3* with the addition of -msym flag
5448 if test "$GCC" = yes; then
5449 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5450 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5451 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5452 else
5453 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5454 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
5455 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
5456 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
5457
5458 # Both c and cxx compiler support -rpath directly
5459 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5460 fi
5461 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5462 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5463 ;;
5464
5465 solaris*)
5466 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
5467 if test "$GCC" = yes; then
5468 wlarc='${wl}'
5469 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5470 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5471 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
5472 else
5473 case `$CC -V 2>&1` in
5474 *"Compilers 5.0"*)
5475 wlarc=''
5476 _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5477 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5478 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
5479 ;;
5480 *)
5481 wlarc='${wl}'
5482 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
5483 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5484 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
5485 ;;
5486 esac
5487 fi
5488 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5489 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5490 case $host_os in
5491 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
5492 *)
5493 # The compiler driver will combine and reorder linker options,
5494 # but understands `-z linker_flag'. GCC discards it without `$wl',
5495 # but is careful enough not to reorder.
5496 # Supported since Solaris 2.6 (maybe 2.5.1?)
5497 if test "$GCC" = yes; then
5498 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
5499 else
5500 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
5501 fi
5502 ;;
5503 esac
5504 _LT_TAGVAR(link_all_deplibs, $1)=yes
5505 ;;
5506
5507 sunos4*)
5508 if test "x$host_vendor" = xsequent; then
5509 # Use $CC to link under sequent, because it throws in some extra .o
5510 # files that make .init and .fini sections work.
5511 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5512 else
5513 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5514 fi
5515 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5516 _LT_TAGVAR(hardcode_direct, $1)=yes
5517 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5518 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5519 ;;
5520
5521 sysv4)
5522 case $host_vendor in
5523 sni)
5524 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5525 _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
5526 ;;
5527 siemens)
5528 ## LD is ld it makes a PLAMLIB
5529 ## CC just makes a GrossModule.
5530 _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5531 _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
5532 _LT_TAGVAR(hardcode_direct, $1)=no
5533 ;;
5534 motorola)
5535 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5536 _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
5537 ;;
5538 esac
5539 runpath_var='LD_RUN_PATH'
5540 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5541 ;;
5542
5543 sysv4.3*)
5544 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5545 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5546 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
5547 ;;
5548
5549 sysv4*MP*)
5550 if test -d /usr/nec; then
5551 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5552 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5553 runpath_var=LD_RUN_PATH
5554 hardcode_runpath_var=yes
5555 _LT_TAGVAR(ld_shlibs, $1)=yes
5556 fi
5557 ;;
5558
5559 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
5560 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5561 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5562 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5563 runpath_var='LD_RUN_PATH'
5564
5565 if test "$GCC" = yes; then
5566 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5567 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5568 else
5569 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5570 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5571 fi
5572 ;;
5573
5574 sysv5* | sco3.2v5* | sco5v6*)
5575 # Note: We can NOT use -z defs as we might desire, because we do not
5576 # link with -lc, and that would cause any symbols used from libc to
5577 # always be unresolved, which means just about no library would
5578 # ever link correctly. If we're not using GNU ld we use -z text
5579 # though, which does catch some bad symbols but isn't as heavy-handed
5580 # as -z defs.
5581 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5582 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
5583 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5584 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5585 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
5586 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5587 _LT_TAGVAR(link_all_deplibs, $1)=yes
5588 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
5589 runpath_var='LD_RUN_PATH'
5590
5591 if test "$GCC" = yes; then
5592 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5593 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5594 else
5595 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5596 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5597 fi
5598 ;;
5599
5600 uts4*)
5601 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5602 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5603 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5604 ;;
5605
5606 *)
5607 _LT_TAGVAR(ld_shlibs, $1)=no
5608 ;;
5609 esac
5610
5611 if test x$host_vendor = xsni; then
5612 case $host in
5613 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5614 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
5615 ;;
5616 esac
5617 fi
5618 fi
5619 ])
5620 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
5621 test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
5622
5623 _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
5624
5625 _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
5626 _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
5627 _LT_DECL([], [extract_expsyms_cmds], [2],
5628 [The commands to extract the exported symbol list from a shared archive])
5629
5630 #
5631 # Do we need to explicitly link libc?
5632 #
5633 case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
5634 x|xyes)
5635 # Assume -lc should be added
5636 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5637
5638 if test "$enable_shared" = yes && test "$GCC" = yes; then
5639 case $_LT_TAGVAR(archive_cmds, $1) in
5640 *'~'*)
5641 # FIXME: we may have to deal with multi-command sequences.
5642 ;;
5643 '$CC '*)
5644 # Test whether the compiler implicitly links with -lc since on some
5645 # systems, -lgcc has to come before -lc. If gcc already passes -lc
5646 # to ld, don't add -lc before -lgcc.
5647 AC_CACHE_CHECK([whether -lc should be explicitly linked in],
5648 [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
5649 [$RM conftest*
5650 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5651
5652 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
5653 soname=conftest
5654 lib=conftest
5655 libobjs=conftest.$ac_objext
5656 deplibs=
5657 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5658 pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
5659 compiler_flags=-v
5660 linker_flags=-v
5661 verstring=
5662 output_objdir=.
5663 libname=conftest
5664 lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5665 _LT_TAGVAR(allow_undefined_flag, $1)=
5666 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
5667 then
5668 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5669 else
5670 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5671 fi
5672 _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5673 else
5674 cat conftest.err 1>&5
5675 fi
5676 $RM conftest*
5677 ])
5678 _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
5679 ;;
5680 esac
5681 fi
5682 ;;
5683 esac
5684
5685 _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
5686 [Whether or not to add -lc for building shared libraries])
5687 _LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
5688 [enable_shared_with_static_runtimes], [0],
5689 [Whether or not to disallow shared libs when runtime libs are static])
5690 _LT_TAGDECL([], [export_dynamic_flag_spec], [1],
5691 [Compiler flag to allow reflexive dlopens])
5692 _LT_TAGDECL([], [whole_archive_flag_spec], [1],
5693 [Compiler flag to generate shared objects directly from archives])
5694 _LT_TAGDECL([], [compiler_needs_object], [1],
5695 [Whether the compiler copes with passing no objects directly])
5696 _LT_TAGDECL([], [old_archive_from_new_cmds], [2],
5697 [Create an old-style archive from a shared archive])
5698 _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
5699 [Create a temporary old-style archive to link instead of a shared archive])
5700 _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
5701 _LT_TAGDECL([], [archive_expsym_cmds], [2])
5702 _LT_TAGDECL([], [module_cmds], [2],
5703 [Commands used to build a loadable module if different from building
5704 a shared archive.])
5705 _LT_TAGDECL([], [module_expsym_cmds], [2])
5706 _LT_TAGDECL([], [with_gnu_ld], [1],
5707 [Whether we are building with GNU ld or not])
5708 _LT_TAGDECL([], [allow_undefined_flag], [1],
5709 [Flag that allows shared libraries with undefined symbols to be built])
5710 _LT_TAGDECL([], [no_undefined_flag], [1],
5711 [Flag that enforces no undefined symbols])
5712 _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
5713 [Flag to hardcode $libdir into a binary during linking.
5714 This must work even if $libdir does not exist])
5715 _LT_TAGDECL([], [hardcode_libdir_separator], [1],
5716 [Whether we need a single "-rpath" flag with a separated argument])
5717 _LT_TAGDECL([], [hardcode_direct], [0],
5718 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
5719 DIR into the resulting binary])
5720 _LT_TAGDECL([], [hardcode_direct_absolute], [0],
5721 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
5722 DIR into the resulting binary and the resulting library dependency is
5723 "absolute", i.e impossible to change by setting ${shlibpath_var} if the
5724 library is relocated])
5725 _LT_TAGDECL([], [hardcode_minus_L], [0],
5726 [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
5727 into the resulting binary])
5728 _LT_TAGDECL([], [hardcode_shlibpath_var], [0],
5729 [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
5730 into the resulting binary])
5731 _LT_TAGDECL([], [hardcode_automatic], [0],
5732 [Set to "yes" if building a shared library automatically hardcodes DIR
5733 into the library and all subsequent libraries and executables linked
5734 against it])
5735 _LT_TAGDECL([], [inherit_rpath], [0],
5736 [Set to yes if linker adds runtime paths of dependent libraries
5737 to runtime path list])
5738 _LT_TAGDECL([], [link_all_deplibs], [0],
5739 [Whether libtool must link a program against all its dependency libraries])
5740 _LT_TAGDECL([], [always_export_symbols], [0],
5741 [Set to "yes" if exported symbols are required])
5742 _LT_TAGDECL([], [export_symbols_cmds], [2],
5743 [The commands to list exported symbols])
5744 _LT_TAGDECL([], [exclude_expsyms], [1],
5745 [Symbols that should not be listed in the preloaded symbols])
5746 _LT_TAGDECL([], [include_expsyms], [1],
5747 [Symbols that must always be exported])
5748 _LT_TAGDECL([], [prelink_cmds], [2],
5749 [Commands necessary for linking programs (against libraries) with templates])
5750 _LT_TAGDECL([], [postlink_cmds], [2],
5751 [Commands necessary for finishing linking programs])
5752 _LT_TAGDECL([], [file_list_spec], [1],
5753 [Specify filename containing input files])
5754 dnl FIXME: Not yet implemented
5755 dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
5756 dnl [Compiler flag to generate thread safe objects])
5757 ])# _LT_LINKER_SHLIBS
5758
5759
5760 # _LT_LANG_C_CONFIG([TAG])
5761 # ------------------------
5762 # Ensure that the configuration variables for a C compiler are suitably
5763 # defined. These variables are subsequently used by _LT_CONFIG to write
5764 # the compiler configuration to `libtool'.
5765 m4_defun([_LT_LANG_C_CONFIG],
5766 [m4_require([_LT_DECL_EGREP])dnl
5767 lt_save_CC="$CC"
5768 AC_LANG_PUSH(C)
5769
5770 # Source file extension for C test sources.
5771 ac_ext=c
5772
5773 # Object file extension for compiled C test sources.
5774 objext=o
5775 _LT_TAGVAR(objext, $1)=$objext
5776
5777 # Code to be used in simple compile tests
5778 lt_simple_compile_test_code="int some_variable = 0;"
5779
5780 # Code to be used in simple link tests
5781 lt_simple_link_test_code='int main(){return(0);}'
5782
5783 _LT_TAG_COMPILER
5784 # Save the default compiler, since it gets overwritten when the other
5785 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
5786 compiler_DEFAULT=$CC
5787
5788 # save warnings/boilerplate of simple test code
5789 _LT_COMPILER_BOILERPLATE
5790 _LT_LINKER_BOILERPLATE
5791
5792 if test -n "$compiler"; then
5793 _LT_COMPILER_NO_RTTI($1)
5794 _LT_COMPILER_PIC($1)
5795 _LT_COMPILER_C_O($1)
5796 _LT_COMPILER_FILE_LOCKS($1)
5797 _LT_LINKER_SHLIBS($1)
5798 _LT_SYS_DYNAMIC_LINKER($1)
5799 _LT_LINKER_HARDCODE_LIBPATH($1)
5800 LT_SYS_DLOPEN_SELF
5801 _LT_CMD_STRIPLIB
5802
5803 # Report which library types will actually be built
5804 AC_MSG_CHECKING([if libtool supports shared libraries])
5805 AC_MSG_RESULT([$can_build_shared])
5806
5807 AC_MSG_CHECKING([whether to build shared libraries])
5808 test "$can_build_shared" = "no" && enable_shared=no
5809
5810 # On AIX, shared libraries and static libraries use the same namespace, and
5811 # are all built from PIC.
5812 case $host_os in
5813 aix3*)
5814 test "$enable_shared" = yes && enable_static=no
5815 if test -n "$RANLIB"; then
5816 archive_cmds="$archive_cmds~\$RANLIB \$lib"
5817 postinstall_cmds='$RANLIB $lib'
5818 fi
5819 ;;
5820
5821 aix[[4-9]]*)
5822 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5823 test "$enable_shared" = yes && enable_static=no
5824 fi
5825 ;;
5826 esac
5827 AC_MSG_RESULT([$enable_shared])
5828
5829 AC_MSG_CHECKING([whether to build static libraries])
5830 # Make sure either enable_shared or enable_static is yes.
5831 test "$enable_shared" = yes || enable_static=yes
5832 AC_MSG_RESULT([$enable_static])
5833
5834 _LT_CONFIG($1)
5835 fi
5836 AC_LANG_POP
5837 CC="$lt_save_CC"
5838 ])# _LT_LANG_C_CONFIG
5839
5840
5841 # _LT_LANG_CXX_CONFIG([TAG])
5842 # --------------------------
5843 # Ensure that the configuration variables for a C++ compiler are suitably
5844 # defined. These variables are subsequently used by _LT_CONFIG to write
5845 # the compiler configuration to `libtool'.
5846 m4_defun([_LT_LANG_CXX_CONFIG],
5847 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5848 m4_require([_LT_DECL_EGREP])dnl
5849 m4_require([_LT_PATH_MANIFEST_TOOL])dnl
5850 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5851 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5852 (test "X$CXX" != "Xg++"))) ; then
5853 AC_PROG_CXXCPP
5854 else
5855 _lt_caught_CXX_error=yes
5856 fi
5857
5858 AC_LANG_PUSH(C++)
5859 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5860 _LT_TAGVAR(allow_undefined_flag, $1)=
5861 _LT_TAGVAR(always_export_symbols, $1)=no
5862 _LT_TAGVAR(archive_expsym_cmds, $1)=
5863 _LT_TAGVAR(compiler_needs_object, $1)=no
5864 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
5865 _LT_TAGVAR(hardcode_direct, $1)=no
5866 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
5867 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5868 _LT_TAGVAR(hardcode_libdir_separator, $1)=
5869 _LT_TAGVAR(hardcode_minus_L, $1)=no
5870 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5871 _LT_TAGVAR(hardcode_automatic, $1)=no
5872 _LT_TAGVAR(inherit_rpath, $1)=no
5873 _LT_TAGVAR(module_cmds, $1)=
5874 _LT_TAGVAR(module_expsym_cmds, $1)=
5875 _LT_TAGVAR(link_all_deplibs, $1)=unknown
5876 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
5877 _LT_TAGVAR(reload_flag, $1)=$reload_flag
5878 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
5879 _LT_TAGVAR(no_undefined_flag, $1)=
5880 _LT_TAGVAR(whole_archive_flag_spec, $1)=
5881 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5882
5883 # Source file extension for C++ test sources.
5884 ac_ext=cpp
5885
5886 # Object file extension for compiled C++ test sources.
5887 objext=o
5888 _LT_TAGVAR(objext, $1)=$objext
5889
5890 # No sense in running all these tests if we already determined that
5891 # the CXX compiler isn't working. Some variables (like enable_shared)
5892 # are currently assumed to apply to all compilers on this platform,
5893 # and will be corrupted by setting them based on a non-working compiler.
5894 if test "$_lt_caught_CXX_error" != yes; then
5895 # Code to be used in simple compile tests
5896 lt_simple_compile_test_code="int some_variable = 0;"
5897
5898 # Code to be used in simple link tests
5899 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
5900
5901 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
5902 _LT_TAG_COMPILER
5903
5904 # save warnings/boilerplate of simple test code
5905 _LT_COMPILER_BOILERPLATE
5906 _LT_LINKER_BOILERPLATE
5907
5908 # Allow CC to be a program name with arguments.
5909 lt_save_CC=$CC
5910 lt_save_CFLAGS=$CFLAGS
5911 lt_save_LD=$LD
5912 lt_save_GCC=$GCC
5913 GCC=$GXX
5914 lt_save_with_gnu_ld=$with_gnu_ld
5915 lt_save_path_LD=$lt_cv_path_LD
5916 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
5917 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
5918 else
5919 $as_unset lt_cv_prog_gnu_ld
5920 fi
5921 if test -n "${lt_cv_path_LDCXX+set}"; then
5922 lt_cv_path_LD=$lt_cv_path_LDCXX
5923 else
5924 $as_unset lt_cv_path_LD
5925 fi
5926 test -z "${LDCXX+set}" || LD=$LDCXX
5927 CC=${CXX-"c++"}
5928 CFLAGS=$CXXFLAGS
5929 compiler=$CC
5930 _LT_TAGVAR(compiler, $1)=$CC
5931 _LT_CC_BASENAME([$compiler])
5932
5933 if test -n "$compiler"; then
5934 # We don't want -fno-exception when compiling C++ code, so set the
5935 # no_builtin_flag separately
5936 if test "$GXX" = yes; then
5937 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
5938 else
5939 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
5940 fi
5941
5942 if test "$GXX" = yes; then
5943 # Set up default GNU C++ configuration
5944
5945 LT_PATH_LD
5946
5947 # Check if GNU C++ uses GNU ld as the underlying linker, since the
5948 # archiving commands below assume that GNU ld is being used.
5949 if test "$with_gnu_ld" = yes; then
5950 _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5951 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5952
5953 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5954 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5955
5956 # If archive_cmds runs LD, not CC, wlarc should be empty
5957 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
5958 # investigate it a little bit more. (MM)
5959 wlarc='${wl}'
5960
5961 # ancient GNU ld didn't support --whole-archive et. al.
5962 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
5963 $GREP 'no-whole-archive' > /dev/null; then
5964 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5965 else
5966 _LT_TAGVAR(whole_archive_flag_spec, $1)=
5967 fi
5968 else
5969 with_gnu_ld=no
5970 wlarc=
5971
5972 # A generic and very simple default shared library creation
5973 # command for GNU C++ for the case where it uses the native
5974 # linker, instead of GNU ld. If possible, this setting should
5975 # overridden to take advantage of the native linker features on
5976 # the platform it is being used on.
5977 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
5978 fi
5979
5980 # Commands to make compiler produce verbose output that lists
5981 # what "hidden" libraries, object files and flags are used when
5982 # linking a shared library.
5983 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
5984
5985 else
5986 GXX=no
5987 with_gnu_ld=no
5988 wlarc=
5989 fi
5990
5991 # PORTME: fill in a description of your system's C++ link characteristics
5992 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5993 _LT_TAGVAR(ld_shlibs, $1)=yes
5994 case $host_os in
5995 aix3*)
5996 # FIXME: insert proper C++ library support
5997 _LT_TAGVAR(ld_shlibs, $1)=no
5998 ;;
5999 aix[[4-9]]*)
6000 if test "$host_cpu" = ia64; then
6001 # On IA64, the linker does run time linking by default, so we don't
6002 # have to do anything special.
6003 aix_use_runtimelinking=no
6004 exp_sym_flag='-Bexport'
6005 no_entry_flag=""
6006 else
6007 aix_use_runtimelinking=no
6008
6009 # Test if we are trying to use run time linking or normal
6010 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6011 # need to do runtime linking.
6012 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
6013 for ld_flag in $LDFLAGS; do
6014 case $ld_flag in
6015 *-brtl*)
6016 aix_use_runtimelinking=yes
6017 break
6018 ;;
6019 esac
6020 done
6021 ;;
6022 esac
6023
6024 exp_sym_flag='-bexport'
6025 no_entry_flag='-bnoentry'
6026 fi
6027
6028 # When large executables or shared objects are built, AIX ld can
6029 # have problems creating the table of contents. If linking a library
6030 # or program results in "error TOC overflow" add -mminimal-toc to
6031 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6032 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6033
6034 _LT_TAGVAR(archive_cmds, $1)=''
6035 _LT_TAGVAR(hardcode_direct, $1)=yes
6036 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6037 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6038 _LT_TAGVAR(link_all_deplibs, $1)=yes
6039 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
6040
6041 if test "$GXX" = yes; then
6042 case $host_os in aix4.[[012]]|aix4.[[012]].*)
6043 # We only want to do this on AIX 4.2 and lower, the check
6044 # below for broken collect2 doesn't work under 4.3+
6045 collect2name=`${CC} -print-prog-name=collect2`
6046 if test -f "$collect2name" &&
6047 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
6048 then
6049 # We have reworked collect2
6050 :
6051 else
6052 # We have old collect2
6053 _LT_TAGVAR(hardcode_direct, $1)=unsupported
6054 # It fails to find uninstalled libraries when the uninstalled
6055 # path is not listed in the libpath. Setting hardcode_minus_L
6056 # to unsupported forces relinking
6057 _LT_TAGVAR(hardcode_minus_L, $1)=yes
6058 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6059 _LT_TAGVAR(hardcode_libdir_separator, $1)=
6060 fi
6061 esac
6062 shared_flag='-shared'
6063 if test "$aix_use_runtimelinking" = yes; then
6064 shared_flag="$shared_flag "'${wl}-G'
6065 fi
6066 else
6067 # not using gcc
6068 if test "$host_cpu" = ia64; then
6069 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6070 # chokes on -Wl,-G. The following line is correct:
6071 shared_flag='-G'
6072 else
6073 if test "$aix_use_runtimelinking" = yes; then
6074 shared_flag='${wl}-G'
6075 else
6076 shared_flag='${wl}-bM:SRE'
6077 fi
6078 fi
6079 fi
6080
6081 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
6082 # It seems that -bexpall does not export symbols beginning with
6083 # underscore (_), so it is better to generate a list of symbols to
6084 # export.
6085 _LT_TAGVAR(always_export_symbols, $1)=yes
6086 if test "$aix_use_runtimelinking" = yes; then
6087 # Warning - without using the other runtime loading flags (-brtl),
6088 # -berok will link without error, but may produce a broken library.
6089 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
6090 # Determine the default libpath from the value encoded in an empty
6091 # executable.
6092 _LT_SYS_MODULE_PATH_AIX([$1])
6093 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6094
6095 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6096 else
6097 if test "$host_cpu" = ia64; then
6098 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6099 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6100 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
6101 else
6102 # Determine the default libpath from the value encoded in an
6103 # empty executable.
6104 _LT_SYS_MODULE_PATH_AIX([$1])
6105 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6106 # Warning - without using the other run time loading flags,
6107 # -berok will link without error, but may produce a broken library.
6108 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6109 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6110 if test "$with_gnu_ld" = yes; then
6111 # We only use this code for GNU lds that support --whole-archive.
6112 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6113 else
6114 # Exported symbols can be pulled into shared objects from archives
6115 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6116 fi
6117 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6118 # This is similar to how AIX traditionally builds its shared
6119 # libraries.
6120 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
6121 fi
6122 fi
6123 ;;
6124
6125 beos*)
6126 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6127 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6128 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6129 # support --undefined. This deserves some investigation. FIXME
6130 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6131 else
6132 _LT_TAGVAR(ld_shlibs, $1)=no
6133 fi
6134 ;;
6135
6136 chorus*)
6137 case $cc_basename in
6138 *)
6139 # FIXME: insert proper C++ library support
6140 _LT_TAGVAR(ld_shlibs, $1)=no
6141 ;;
6142 esac
6143 ;;
6144
6145 cygwin* | mingw* | pw32* | cegcc*)
6146 case $GXX,$cc_basename in
6147 ,cl* | no,cl*)
6148 # Native MSVC
6149 # hardcode_libdir_flag_spec is actually meaningless, as there is
6150 # no search path for DLLs.
6151 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6152 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6153 _LT_TAGVAR(always_export_symbols, $1)=yes
6154 _LT_TAGVAR(file_list_spec, $1)='@'
6155 # Tell ltmain to make .lib files, not .a files.
6156 libext=lib
6157 # Tell ltmain to make .dll files, not .so files.
6158 shrext_cmds=".dll"
6159 # FIXME: Setting linknames here is a bad hack.
6160 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
6161 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6162 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
6163 else
6164 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
6165 fi~
6166 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
6167 linknames='
6168 # The linker will not automatically build a static lib if we build a DLL.
6169 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
6170 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6171 # Don't use ranlib
6172 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
6173 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
6174 lt_tool_outputfile="@TOOL_OUTPUT@"~
6175 case $lt_outputfile in
6176 *.exe|*.EXE) ;;
6177 *)
6178 lt_outputfile="$lt_outputfile.exe"
6179 lt_tool_outputfile="$lt_tool_outputfile.exe"
6180 ;;
6181 esac~
6182 func_to_tool_file "$lt_outputfile"~
6183 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
6184 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
6185 $RM "$lt_outputfile.manifest";
6186 fi'
6187 ;;
6188 *)
6189 # g++
6190 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6191 # as there is no search path for DLLs.
6192 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6193 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
6194 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6195 _LT_TAGVAR(always_export_symbols, $1)=no
6196 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6197
6198 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6199 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6200 # If the export-symbols file already is a .def file (1st line
6201 # is EXPORTS), use it as is; otherwise, prepend...
6202 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6203 cp $export_symbols $output_objdir/$soname.def;
6204 else
6205 echo EXPORTS > $output_objdir/$soname.def;
6206 cat $export_symbols >> $output_objdir/$soname.def;
6207 fi~
6208 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6209 else
6210 _LT_TAGVAR(ld_shlibs, $1)=no
6211 fi
6212 ;;
6213 esac
6214 ;;
6215 darwin* | rhapsody*)
6216 _LT_DARWIN_LINKER_FEATURES($1)
6217 ;;
6218
6219 dgux*)
6220 case $cc_basename in
6221 ec++*)
6222 # FIXME: insert proper C++ library support
6223 _LT_TAGVAR(ld_shlibs, $1)=no
6224 ;;
6225 ghcx*)
6226 # Green Hills C++ Compiler
6227 # FIXME: insert proper C++ library support
6228 _LT_TAGVAR(ld_shlibs, $1)=no
6229 ;;
6230 *)
6231 # FIXME: insert proper C++ library support
6232 _LT_TAGVAR(ld_shlibs, $1)=no
6233 ;;
6234 esac
6235 ;;
6236
6237 freebsd2.*)
6238 # C++ shared libraries reported to be fairly broken before
6239 # switch to ELF
6240 _LT_TAGVAR(ld_shlibs, $1)=no
6241 ;;
6242
6243 freebsd-elf*)
6244 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6245 ;;
6246
6247 freebsd* | dragonfly*)
6248 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
6249 # conventions
6250 _LT_TAGVAR(ld_shlibs, $1)=yes
6251 ;;
6252
6253 gnu*)
6254 ;;
6255
6256 haiku*)
6257 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6258 _LT_TAGVAR(link_all_deplibs, $1)=yes
6259 ;;
6260
6261 hpux9*)
6262 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6263 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6264 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6265 _LT_TAGVAR(hardcode_direct, $1)=yes
6266 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6267 # but as the default
6268 # location of the library.
6269
6270 case $cc_basename in
6271 CC*)
6272 # FIXME: insert proper C++ library support
6273 _LT_TAGVAR(ld_shlibs, $1)=no
6274 ;;
6275 aCC*)
6276 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6277 # Commands to make compiler produce verbose output that lists
6278 # what "hidden" libraries, object files and flags are used when
6279 # linking a shared library.
6280 #
6281 # There doesn't appear to be a way to prevent this compiler from
6282 # explicitly linking system object files so we need to strip them
6283 # from the output so that they don't get included in the library
6284 # dependencies.
6285 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
6286 ;;
6287 *)
6288 if test "$GXX" = yes; then
6289 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6290 else
6291 # FIXME: insert proper C++ library support
6292 _LT_TAGVAR(ld_shlibs, $1)=no
6293 fi
6294 ;;
6295 esac
6296 ;;
6297
6298 hpux10*|hpux11*)
6299 if test $with_gnu_ld = no; then
6300 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6301 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6302
6303 case $host_cpu in
6304 hppa*64*|ia64*)
6305 ;;
6306 *)
6307 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6308 ;;
6309 esac
6310 fi
6311 case $host_cpu in
6312 hppa*64*|ia64*)
6313 _LT_TAGVAR(hardcode_direct, $1)=no
6314 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6315 ;;
6316 *)
6317 _LT_TAGVAR(hardcode_direct, $1)=yes
6318 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6319 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6320 # but as the default
6321 # location of the library.
6322 ;;
6323 esac
6324
6325 case $cc_basename in
6326 CC*)
6327 # FIXME: insert proper C++ library support
6328 _LT_TAGVAR(ld_shlibs, $1)=no
6329 ;;
6330 aCC*)
6331 case $host_cpu in
6332 hppa*64*)
6333 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6334 ;;
6335 ia64*)
6336 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6337 ;;
6338 *)
6339 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6340 ;;
6341 esac
6342 # Commands to make compiler produce verbose output that lists
6343 # what "hidden" libraries, object files and flags are used when
6344 # linking a shared library.
6345 #
6346 # There doesn't appear to be a way to prevent this compiler from
6347 # explicitly linking system object files so we need to strip them
6348 # from the output so that they don't get included in the library
6349 # dependencies.
6350 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
6351 ;;
6352 *)
6353 if test "$GXX" = yes; then
6354 if test $with_gnu_ld = no; then
6355 case $host_cpu in
6356 hppa*64*)
6357 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6358 ;;
6359 ia64*)
6360 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6361 ;;
6362 *)
6363 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6364 ;;
6365 esac
6366 fi
6367 else
6368 # FIXME: insert proper C++ library support
6369 _LT_TAGVAR(ld_shlibs, $1)=no
6370 fi
6371 ;;
6372 esac
6373 ;;
6374
6375 interix[[3-9]]*)
6376 _LT_TAGVAR(hardcode_direct, $1)=no
6377 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6378 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6379 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6380 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6381 # Instead, shared libraries are loaded at an image base (0x10000000 by
6382 # default) and relocated if they conflict, which is a slow very memory
6383 # consuming and fragmenting process. To avoid this, we pick a random,
6384 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6385 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6386 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6387 _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6388 ;;
6389 irix5* | irix6*)
6390 case $cc_basename in
6391 CC*)
6392 # SGI C++
6393 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
6394
6395 # Archives containing C++ object files must be created using
6396 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
6397 # necessary to make sure instantiated templates are included
6398 # in the archive.
6399 _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
6400 ;;
6401 *)
6402 if test "$GXX" = yes; then
6403 if test "$with_gnu_ld" = no; then
6404 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6405 else
6406 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
6407 fi
6408 fi
6409 _LT_TAGVAR(link_all_deplibs, $1)=yes
6410 ;;
6411 esac
6412 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6413 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6414 _LT_TAGVAR(inherit_rpath, $1)=yes
6415 ;;
6416
6417 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6418 case $cc_basename in
6419 KCC*)
6420 # Kuck and Associates, Inc. (KAI) C++ Compiler
6421
6422 # KCC will only create a shared library if the output file
6423 # ends with ".so" (or ".sl" for HP-UX), so rename the library
6424 # to its proper name (with version) after linking.
6425 _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
6426 _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
6427 # Commands to make compiler produce verbose output that lists
6428 # what "hidden" libraries, object files and flags are used when
6429 # linking a shared library.
6430 #
6431 # There doesn't appear to be a way to prevent this compiler from
6432 # explicitly linking system object files so we need to strip them
6433 # from the output so that they don't get included in the library
6434 # dependencies.
6435 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
6436
6437 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6438 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6439
6440 # Archives containing C++ object files must be created using
6441 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
6442 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
6443 ;;
6444 icpc* | ecpc* )
6445 # Intel C++
6446 with_gnu_ld=yes
6447 # version 8.0 and above of icpc choke on multiply defined symbols
6448 # if we add $predep_objects and $postdep_objects, however 7.1 and
6449 # earlier do not add the objects themselves.
6450 case `$CC -V 2>&1` in
6451 *"Version 7."*)
6452 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6453 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6454 ;;
6455 *) # Version 8.0 or newer
6456 tmp_idyn=
6457 case $host_cpu in
6458 ia64*) tmp_idyn=' -i_dynamic';;
6459 esac
6460 _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6461 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6462 ;;
6463 esac
6464 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6465 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6466 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6467 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6468 ;;
6469 pgCC* | pgcpp*)
6470 # Portland Group C++ compiler
6471 case `$CC -V` in
6472 *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
6473 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
6474 rm -rf $tpldir~
6475 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
6476 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
6477 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
6478 rm -rf $tpldir~
6479 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
6480 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
6481 $RANLIB $oldlib'
6482 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
6483 rm -rf $tpldir~
6484 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6485 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6486 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
6487 rm -rf $tpldir~
6488 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6489 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
6490 ;;
6491 *) # Version 6 and above use weak symbols
6492 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6493 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
6494 ;;
6495 esac
6496
6497 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6498 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6499 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
6500 ;;
6501 cxx*)
6502 # Compaq C++
6503 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6504 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
6505
6506 runpath_var=LD_RUN_PATH
6507 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6508 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6509
6510 # Commands to make compiler produce verbose output that lists
6511 # what "hidden" libraries, object files and flags are used when
6512 # linking a shared library.
6513 #
6514 # There doesn't appear to be a way to prevent this compiler from
6515 # explicitly linking system object files so we need to strip them
6516 # from the output so that they don't get included in the library
6517 # dependencies.
6518 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
6519 ;;
6520 xl* | mpixl* | bgxl*)
6521 # IBM XL 8.0 on PPC, with GNU ld
6522 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6523 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6524 _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6525 if test "x$supports_anon_versioning" = xyes; then
6526 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
6527 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6528 echo "local: *; };" >> $output_objdir/$libname.ver~
6529 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6530 fi
6531 ;;
6532 *)
6533 case `$CC -V 2>&1 | sed 5q` in
6534 *Sun\ C*)
6535 # Sun C++ 5.9
6536 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6537 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6538 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
6539 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6540 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
6541 _LT_TAGVAR(compiler_needs_object, $1)=yes
6542
6543 # Not sure whether something based on
6544 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
6545 # would be better.
6546 output_verbose_link_cmd='func_echo_all'
6547
6548 # Archives containing C++ object files must be created using
6549 # "CC -xar", where "CC" is the Sun C++ compiler. This is
6550 # necessary to make sure instantiated templates are included
6551 # in the archive.
6552 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6553 ;;
6554 esac
6555 ;;
6556 esac
6557 ;;
6558
6559 lynxos*)
6560 # FIXME: insert proper C++ library support
6561 _LT_TAGVAR(ld_shlibs, $1)=no
6562 ;;
6563
6564 m88k*)
6565 # FIXME: insert proper C++ library support
6566 _LT_TAGVAR(ld_shlibs, $1)=no
6567 ;;
6568
6569 mvs*)
6570 case $cc_basename in
6571 cxx*)
6572 # FIXME: insert proper C++ library support
6573 _LT_TAGVAR(ld_shlibs, $1)=no
6574 ;;
6575 *)
6576 # FIXME: insert proper C++ library support
6577 _LT_TAGVAR(ld_shlibs, $1)=no
6578 ;;
6579 esac
6580 ;;
6581
6582 netbsd*)
6583 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6584 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
6585 wlarc=
6586 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6587 _LT_TAGVAR(hardcode_direct, $1)=yes
6588 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6589 fi
6590 # Workaround some broken pre-1.5 toolchains
6591 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
6592 ;;
6593
6594 *nto* | *qnx*)
6595 _LT_TAGVAR(ld_shlibs, $1)=yes
6596 ;;
6597
6598 openbsd2*)
6599 # C++ shared libraries are fairly broken
6600 _LT_TAGVAR(ld_shlibs, $1)=no
6601 ;;
6602
6603 openbsd*)
6604 if test -f /usr/libexec/ld.so; then
6605 _LT_TAGVAR(hardcode_direct, $1)=yes
6606 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6607 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6608 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6609 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6610 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6611 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
6612 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6613 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6614 fi
6615 output_verbose_link_cmd=func_echo_all
6616 else
6617 _LT_TAGVAR(ld_shlibs, $1)=no
6618 fi
6619 ;;
6620
6621 osf3* | osf4* | osf5*)
6622 case $cc_basename in
6623 KCC*)
6624 # Kuck and Associates, Inc. (KAI) C++ Compiler
6625
6626 # KCC will only create a shared library if the output file
6627 # ends with ".so" (or ".sl" for HP-UX), so rename the library
6628 # to its proper name (with version) after linking.
6629 _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
6630
6631 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6632 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6633
6634 # Archives containing C++ object files must be created using
6635 # the KAI C++ compiler.
6636 case $host in
6637 osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
6638 *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
6639 esac
6640 ;;
6641 RCC*)
6642 # Rational C++ 2.4.1
6643 # FIXME: insert proper C++ library support
6644 _LT_TAGVAR(ld_shlibs, $1)=no
6645 ;;
6646 cxx*)
6647 case $host in
6648 osf3*)
6649 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6650 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
6651 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6652 ;;
6653 *)
6654 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6655 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
6656 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
6657 echo "-hidden">> $lib.exp~
6658 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
6659 $RM $lib.exp'
6660 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6661 ;;
6662 esac
6663
6664 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6665
6666 # Commands to make compiler produce verbose output that lists
6667 # what "hidden" libraries, object files and flags are used when
6668 # linking a shared library.
6669 #
6670 # There doesn't appear to be a way to prevent this compiler from
6671 # explicitly linking system object files so we need to strip them
6672 # from the output so that they don't get included in the library
6673 # dependencies.
6674 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
6675 ;;
6676 *)
6677 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6678 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6679 case $host in
6680 osf3*)
6681 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6682 ;;
6683 *)
6684 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6685 ;;
6686 esac
6687
6688 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6689 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6690
6691 # Commands to make compiler produce verbose output that lists
6692 # what "hidden" libraries, object files and flags are used when
6693 # linking a shared library.
6694 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6695
6696 else
6697 # FIXME: insert proper C++ library support
6698 _LT_TAGVAR(ld_shlibs, $1)=no
6699 fi
6700 ;;
6701 esac
6702 ;;
6703
6704 psos*)
6705 # FIXME: insert proper C++ library support
6706 _LT_TAGVAR(ld_shlibs, $1)=no
6707 ;;
6708
6709 sunos4*)
6710 case $cc_basename in
6711 CC*)
6712 # Sun C++ 4.x
6713 # FIXME: insert proper C++ library support
6714 _LT_TAGVAR(ld_shlibs, $1)=no
6715 ;;
6716 lcc*)
6717 # Lucid
6718 # FIXME: insert proper C++ library support
6719 _LT_TAGVAR(ld_shlibs, $1)=no
6720 ;;
6721 *)
6722 # FIXME: insert proper C++ library support
6723 _LT_TAGVAR(ld_shlibs, $1)=no
6724 ;;
6725 esac
6726 ;;
6727
6728 solaris*)
6729 case $cc_basename in
6730 CC* | sunCC*)
6731 # Sun C++ 4.2, 5.x and Centerline C++
6732 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
6733 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6734 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6735 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6736 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6737
6738 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6739 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6740 case $host_os in
6741 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6742 *)
6743 # The compiler driver will combine and reorder linker options,
6744 # but understands `-z linker_flag'.
6745 # Supported since Solaris 2.6 (maybe 2.5.1?)
6746 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6747 ;;
6748 esac
6749 _LT_TAGVAR(link_all_deplibs, $1)=yes
6750
6751 output_verbose_link_cmd='func_echo_all'
6752
6753 # Archives containing C++ object files must be created using
6754 # "CC -xar", where "CC" is the Sun C++ compiler. This is
6755 # necessary to make sure instantiated templates are included
6756 # in the archive.
6757 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6758 ;;
6759 gcx*)
6760 # Green Hills C++ Compiler
6761 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6762
6763 # The C++ compiler must be used to create the archive.
6764 _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
6765 ;;
6766 *)
6767 # GNU C++ compiler with Solaris linker
6768 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6769 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
6770 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
6771 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6772 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6773 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6774
6775 # Commands to make compiler produce verbose output that lists
6776 # what "hidden" libraries, object files and flags are used when
6777 # linking a shared library.
6778 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6779 else
6780 # g++ 2.7 appears to require `-G' NOT `-shared' on this
6781 # platform.
6782 _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6783 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6784 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6785
6786 # Commands to make compiler produce verbose output that lists
6787 # what "hidden" libraries, object files and flags are used when
6788 # linking a shared library.
6789 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6790 fi
6791
6792 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
6793 case $host_os in
6794 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6795 *)
6796 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6797 ;;
6798 esac
6799 fi
6800 ;;
6801 esac
6802 ;;
6803
6804 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6805 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6806 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6807 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6808 runpath_var='LD_RUN_PATH'
6809
6810 case $cc_basename in
6811 CC*)
6812 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6813 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6814 ;;
6815 *)
6816 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6817 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6818 ;;
6819 esac
6820 ;;
6821
6822 sysv5* | sco3.2v5* | sco5v6*)
6823 # Note: We can NOT use -z defs as we might desire, because we do not
6824 # link with -lc, and that would cause any symbols used from libc to
6825 # always be unresolved, which means just about no library would
6826 # ever link correctly. If we're not using GNU ld we use -z text
6827 # though, which does catch some bad symbols but isn't as heavy-handed
6828 # as -z defs.
6829 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6830 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6831 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6832 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6833 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
6834 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6835 _LT_TAGVAR(link_all_deplibs, $1)=yes
6836 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6837 runpath_var='LD_RUN_PATH'
6838
6839 case $cc_basename in
6840 CC*)
6841 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6842 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6843 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
6844 '"$_LT_TAGVAR(old_archive_cmds, $1)"
6845 _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
6846 '"$_LT_TAGVAR(reload_cmds, $1)"
6847 ;;
6848 *)
6849 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6850 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6851 ;;
6852 esac
6853 ;;
6854
6855 tandem*)
6856 case $cc_basename in
6857 NCC*)
6858 # NonStop-UX NCC 3.20
6859 # FIXME: insert proper C++ library support
6860 _LT_TAGVAR(ld_shlibs, $1)=no
6861 ;;
6862 *)
6863 # FIXME: insert proper C++ library support
6864 _LT_TAGVAR(ld_shlibs, $1)=no
6865 ;;
6866 esac
6867 ;;
6868
6869 vxworks*)
6870 # FIXME: insert proper C++ library support
6871 _LT_TAGVAR(ld_shlibs, $1)=no
6872 ;;
6873
6874 *)
6875 # FIXME: insert proper C++ library support
6876 _LT_TAGVAR(ld_shlibs, $1)=no
6877 ;;
6878 esac
6879
6880 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
6881 test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6882
6883 _LT_TAGVAR(GCC, $1)="$GXX"
6884 _LT_TAGVAR(LD, $1)="$LD"
6885
6886 ## CAVEAT EMPTOR:
6887 ## There is no encapsulation within the following macros, do not change
6888 ## the running order or otherwise move them around unless you know exactly
6889 ## what you are doing...
6890 _LT_SYS_HIDDEN_LIBDEPS($1)
6891 _LT_COMPILER_PIC($1)
6892 _LT_COMPILER_C_O($1)
6893 _LT_COMPILER_FILE_LOCKS($1)
6894 _LT_LINKER_SHLIBS($1)
6895 _LT_SYS_DYNAMIC_LINKER($1)
6896 _LT_LINKER_HARDCODE_LIBPATH($1)
6897
6898 _LT_CONFIG($1)
6899 fi # test -n "$compiler"
6900
6901 CC=$lt_save_CC
6902 CFLAGS=$lt_save_CFLAGS
6903 LDCXX=$LD
6904 LD=$lt_save_LD
6905 GCC=$lt_save_GCC
6906 with_gnu_ld=$lt_save_with_gnu_ld
6907 lt_cv_path_LDCXX=$lt_cv_path_LD
6908 lt_cv_path_LD=$lt_save_path_LD
6909 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
6910 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
6911 fi # test "$_lt_caught_CXX_error" != yes
6912
6913 AC_LANG_POP
6914 ])# _LT_LANG_CXX_CONFIG
6915
6916
6917 # _LT_FUNC_STRIPNAME_CNF
6918 # ----------------------
6919 # func_stripname_cnf prefix suffix name
6920 # strip PREFIX and SUFFIX off of NAME.
6921 # PREFIX and SUFFIX must not contain globbing or regex special
6922 # characters, hashes, percent signs, but SUFFIX may contain a leading
6923 # dot (in which case that matches only a dot).
6924 #
6925 # This function is identical to the (non-XSI) version of func_stripname,
6926 # except this one can be used by m4 code that may be executed by configure,
6927 # rather than the libtool script.
6928 m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
6929 AC_REQUIRE([_LT_DECL_SED])
6930 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
6931 func_stripname_cnf ()
6932 {
6933 case ${2} in
6934 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
6935 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
6936 esac
6937 } # func_stripname_cnf
6938 ])# _LT_FUNC_STRIPNAME_CNF
6939
6940 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
6941 # ---------------------------------
6942 # Figure out "hidden" library dependencies from verbose
6943 # compiler output when linking a shared library.
6944 # Parse the compiler output and extract the necessary
6945 # objects, libraries and library flags.
6946 m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
6947 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6948 AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
6949 # Dependencies to place before and after the object being linked:
6950 _LT_TAGVAR(predep_objects, $1)=
6951 _LT_TAGVAR(postdep_objects, $1)=
6952 _LT_TAGVAR(predeps, $1)=
6953 _LT_TAGVAR(postdeps, $1)=
6954 _LT_TAGVAR(compiler_lib_search_path, $1)=
6955
6956 dnl we can't use the lt_simple_compile_test_code here,
6957 dnl because it contains code intended for an executable,
6958 dnl not a library. It's possible we should let each
6959 dnl tag define a new lt_????_link_test_code variable,
6960 dnl but it's only used here...
6961 m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
6962 int a;
6963 void foo (void) { a = 0; }
6964 _LT_EOF
6965 ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
6966 class Foo
6967 {
6968 public:
6969 Foo (void) { a = 0; }
6970 private:
6971 int a;
6972 };
6973 _LT_EOF
6974 ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
6975 subroutine foo
6976 implicit none
6977 integer*4 a
6978 a=0
6979 return
6980 end
6981 _LT_EOF
6982 ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
6983 subroutine foo
6984 implicit none
6985 integer a
6986 a=0
6987 return
6988 end
6989 _LT_EOF
6990 ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
6991 public class foo {
6992 private int a;
6993 public void bar (void) {
6994 a = 0;
6995 }
6996 };
6997 _LT_EOF
6998 ], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF
6999 package foo
7000 func foo() {
7001 }
7002 _LT_EOF
7003 ])
7004
7005 _lt_libdeps_save_CFLAGS=$CFLAGS
7006 case "$CC $CFLAGS " in #(
7007 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
7008 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
7009 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
7010 esac
7011
7012 dnl Parse the compiler output and extract the necessary
7013 dnl objects, libraries and library flags.
7014 if AC_TRY_EVAL(ac_compile); then
7015 # Parse the compiler output and extract the necessary
7016 # objects, libraries and library flags.
7017
7018 # Sentinel used to keep track of whether or not we are before
7019 # the conftest object file.
7020 pre_test_object_deps_done=no
7021
7022 for p in `eval "$output_verbose_link_cmd"`; do
7023 case ${prev}${p} in
7024
7025 -L* | -R* | -l*)
7026 # Some compilers place space between "-{L,R}" and the path.
7027 # Remove the space.
7028 if test $p = "-L" ||
7029 test $p = "-R"; then
7030 prev=$p
7031 continue
7032 fi
7033
7034 # Expand the sysroot to ease extracting the directories later.
7035 if test -z "$prev"; then
7036 case $p in
7037 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
7038 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
7039 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
7040 esac
7041 fi
7042 case $p in
7043 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
7044 esac
7045 if test "$pre_test_object_deps_done" = no; then
7046 case ${prev} in
7047 -L | -R)
7048 # Internal compiler library paths should come after those
7049 # provided the user. The postdeps already come after the
7050 # user supplied libs so there is no need to process them.
7051 if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
7052 _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
7053 else
7054 _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
7055 fi
7056 ;;
7057 # The "-l" case would never come before the object being
7058 # linked, so don't bother handling this case.
7059 esac
7060 else
7061 if test -z "$_LT_TAGVAR(postdeps, $1)"; then
7062 _LT_TAGVAR(postdeps, $1)="${prev}${p}"
7063 else
7064 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
7065 fi
7066 fi
7067 prev=
7068 ;;
7069
7070 *.lto.$objext) ;; # Ignore GCC LTO objects
7071 *.$objext)
7072 # This assumes that the test object file only shows up
7073 # once in the compiler output.
7074 if test "$p" = "conftest.$objext"; then
7075 pre_test_object_deps_done=yes
7076 continue
7077 fi
7078
7079 if test "$pre_test_object_deps_done" = no; then
7080 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
7081 _LT_TAGVAR(predep_objects, $1)="$p"
7082 else
7083 _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
7084 fi
7085 else
7086 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
7087 _LT_TAGVAR(postdep_objects, $1)="$p"
7088 else
7089 _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
7090 fi
7091 fi
7092 ;;
7093
7094 *) ;; # Ignore the rest.
7095
7096 esac
7097 done
7098
7099 # Clean up.
7100 rm -f a.out a.exe
7101 else
7102 echo "libtool.m4: error: problem compiling $1 test program"
7103 fi
7104
7105 $RM -f confest.$objext
7106 CFLAGS=$_lt_libdeps_save_CFLAGS
7107
7108 # PORTME: override above test on systems where it is broken
7109 m4_if([$1], [CXX],
7110 [case $host_os in
7111 interix[[3-9]]*)
7112 # Interix 3.5 installs completely hosed .la files for C++, so rather than
7113 # hack all around it, let's just trust "g++" to DTRT.
7114 _LT_TAGVAR(predep_objects,$1)=
7115 _LT_TAGVAR(postdep_objects,$1)=
7116 _LT_TAGVAR(postdeps,$1)=
7117 ;;
7118
7119 linux*)
7120 case `$CC -V 2>&1 | sed 5q` in
7121 *Sun\ C*)
7122 # Sun C++ 5.9
7123
7124 # The more standards-conforming stlport4 library is
7125 # incompatible with the Cstd library. Avoid specifying
7126 # it if it's in CXXFLAGS. Ignore libCrun as
7127 # -library=stlport4 depends on it.
7128 case " $CXX $CXXFLAGS " in
7129 *" -library=stlport4 "*)
7130 solaris_use_stlport4=yes
7131 ;;
7132 esac
7133
7134 if test "$solaris_use_stlport4" != yes; then
7135 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7136 fi
7137 ;;
7138 esac
7139 ;;
7140
7141 solaris*)
7142 case $cc_basename in
7143 CC* | sunCC*)
7144 # The more standards-conforming stlport4 library is
7145 # incompatible with the Cstd library. Avoid specifying
7146 # it if it's in CXXFLAGS. Ignore libCrun as
7147 # -library=stlport4 depends on it.
7148 case " $CXX $CXXFLAGS " in
7149 *" -library=stlport4 "*)
7150 solaris_use_stlport4=yes
7151 ;;
7152 esac
7153
7154 # Adding this requires a known-good setup of shared libraries for
7155 # Sun compiler versions before 5.6, else PIC objects from an old
7156 # archive will be linked into the output, leading to subtle bugs.
7157 if test "$solaris_use_stlport4" != yes; then
7158 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7159 fi
7160 ;;
7161 esac
7162 ;;
7163 esac
7164 ])
7165
7166 case " $_LT_TAGVAR(postdeps, $1) " in
7167 *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
7168 esac
7169 _LT_TAGVAR(compiler_lib_search_dirs, $1)=
7170 if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
7171 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
7172 fi
7173 _LT_TAGDECL([], [compiler_lib_search_dirs], [1],
7174 [The directories searched by this compiler when creating a shared library])
7175 _LT_TAGDECL([], [predep_objects], [1],
7176 [Dependencies to place before and after the objects being linked to
7177 create a shared library])
7178 _LT_TAGDECL([], [postdep_objects], [1])
7179 _LT_TAGDECL([], [predeps], [1])
7180 _LT_TAGDECL([], [postdeps], [1])
7181 _LT_TAGDECL([], [compiler_lib_search_path], [1],
7182 [The library search path used internally by the compiler when linking
7183 a shared library])
7184 ])# _LT_SYS_HIDDEN_LIBDEPS
7185
7186
7187 # _LT_LANG_F77_CONFIG([TAG])
7188 # --------------------------
7189 # Ensure that the configuration variables for a Fortran 77 compiler are
7190 # suitably defined. These variables are subsequently used by _LT_CONFIG
7191 # to write the compiler configuration to `libtool'.
7192 m4_defun([_LT_LANG_F77_CONFIG],
7193 [AC_LANG_PUSH(Fortran 77)
7194 if test -z "$F77" || test "X$F77" = "Xno"; then
7195 _lt_disable_F77=yes
7196 fi
7197
7198 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7199 _LT_TAGVAR(allow_undefined_flag, $1)=
7200 _LT_TAGVAR(always_export_symbols, $1)=no
7201 _LT_TAGVAR(archive_expsym_cmds, $1)=
7202 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
7203 _LT_TAGVAR(hardcode_direct, $1)=no
7204 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
7205 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7206 _LT_TAGVAR(hardcode_libdir_separator, $1)=
7207 _LT_TAGVAR(hardcode_minus_L, $1)=no
7208 _LT_TAGVAR(hardcode_automatic, $1)=no
7209 _LT_TAGVAR(inherit_rpath, $1)=no
7210 _LT_TAGVAR(module_cmds, $1)=
7211 _LT_TAGVAR(module_expsym_cmds, $1)=
7212 _LT_TAGVAR(link_all_deplibs, $1)=unknown
7213 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7214 _LT_TAGVAR(reload_flag, $1)=$reload_flag
7215 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7216 _LT_TAGVAR(no_undefined_flag, $1)=
7217 _LT_TAGVAR(whole_archive_flag_spec, $1)=
7218 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7219
7220 # Source file extension for f77 test sources.
7221 ac_ext=f
7222
7223 # Object file extension for compiled f77 test sources.
7224 objext=o
7225 _LT_TAGVAR(objext, $1)=$objext
7226
7227 # No sense in running all these tests if we already determined that
7228 # the F77 compiler isn't working. Some variables (like enable_shared)
7229 # are currently assumed to apply to all compilers on this platform,
7230 # and will be corrupted by setting them based on a non-working compiler.
7231 if test "$_lt_disable_F77" != yes; then
7232 # Code to be used in simple compile tests
7233 lt_simple_compile_test_code="\
7234 subroutine t
7235 return
7236 end
7237 "
7238
7239 # Code to be used in simple link tests
7240 lt_simple_link_test_code="\
7241 program t
7242 end
7243 "
7244
7245 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7246 _LT_TAG_COMPILER
7247
7248 # save warnings/boilerplate of simple test code
7249 _LT_COMPILER_BOILERPLATE
7250 _LT_LINKER_BOILERPLATE
7251
7252 # Allow CC to be a program name with arguments.
7253 lt_save_CC="$CC"
7254 lt_save_GCC=$GCC
7255 lt_save_CFLAGS=$CFLAGS
7256 CC=${F77-"f77"}
7257 CFLAGS=$FFLAGS
7258 compiler=$CC
7259 _LT_TAGVAR(compiler, $1)=$CC
7260 _LT_CC_BASENAME([$compiler])
7261 GCC=$G77
7262 if test -n "$compiler"; then
7263 AC_MSG_CHECKING([if libtool supports shared libraries])
7264 AC_MSG_RESULT([$can_build_shared])
7265
7266 AC_MSG_CHECKING([whether to build shared libraries])
7267 test "$can_build_shared" = "no" && enable_shared=no
7268
7269 # On AIX, shared libraries and static libraries use the same namespace, and
7270 # are all built from PIC.
7271 case $host_os in
7272 aix3*)
7273 test "$enable_shared" = yes && enable_static=no
7274 if test -n "$RANLIB"; then
7275 archive_cmds="$archive_cmds~\$RANLIB \$lib"
7276 postinstall_cmds='$RANLIB $lib'
7277 fi
7278 ;;
7279 aix[[4-9]]*)
7280 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7281 test "$enable_shared" = yes && enable_static=no
7282 fi
7283 ;;
7284 esac
7285 AC_MSG_RESULT([$enable_shared])
7286
7287 AC_MSG_CHECKING([whether to build static libraries])
7288 # Make sure either enable_shared or enable_static is yes.
7289 test "$enable_shared" = yes || enable_static=yes
7290 AC_MSG_RESULT([$enable_static])
7291
7292 _LT_TAGVAR(GCC, $1)="$G77"
7293 _LT_TAGVAR(LD, $1)="$LD"
7294
7295 ## CAVEAT EMPTOR:
7296 ## There is no encapsulation within the following macros, do not change
7297 ## the running order or otherwise move them around unless you know exactly
7298 ## what you are doing...
7299 _LT_COMPILER_PIC($1)
7300 _LT_COMPILER_C_O($1)
7301 _LT_COMPILER_FILE_LOCKS($1)
7302 _LT_LINKER_SHLIBS($1)
7303 _LT_SYS_DYNAMIC_LINKER($1)
7304 _LT_LINKER_HARDCODE_LIBPATH($1)
7305
7306 _LT_CONFIG($1)
7307 fi # test -n "$compiler"
7308
7309 GCC=$lt_save_GCC
7310 CC="$lt_save_CC"
7311 CFLAGS="$lt_save_CFLAGS"
7312 fi # test "$_lt_disable_F77" != yes
7313
7314 AC_LANG_POP
7315 ])# _LT_LANG_F77_CONFIG
7316
7317
7318 # _LT_LANG_FC_CONFIG([TAG])
7319 # -------------------------
7320 # Ensure that the configuration variables for a Fortran compiler are
7321 # suitably defined. These variables are subsequently used by _LT_CONFIG
7322 # to write the compiler configuration to `libtool'.
7323 m4_defun([_LT_LANG_FC_CONFIG],
7324 [AC_LANG_PUSH(Fortran)
7325
7326 if test -z "$FC" || test "X$FC" = "Xno"; then
7327 _lt_disable_FC=yes
7328 fi
7329
7330 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7331 _LT_TAGVAR(allow_undefined_flag, $1)=
7332 _LT_TAGVAR(always_export_symbols, $1)=no
7333 _LT_TAGVAR(archive_expsym_cmds, $1)=
7334 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
7335 _LT_TAGVAR(hardcode_direct, $1)=no
7336 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
7337 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7338 _LT_TAGVAR(hardcode_libdir_separator, $1)=
7339 _LT_TAGVAR(hardcode_minus_L, $1)=no
7340 _LT_TAGVAR(hardcode_automatic, $1)=no
7341 _LT_TAGVAR(inherit_rpath, $1)=no
7342 _LT_TAGVAR(module_cmds, $1)=
7343 _LT_TAGVAR(module_expsym_cmds, $1)=
7344 _LT_TAGVAR(link_all_deplibs, $1)=unknown
7345 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7346 _LT_TAGVAR(reload_flag, $1)=$reload_flag
7347 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7348 _LT_TAGVAR(no_undefined_flag, $1)=
7349 _LT_TAGVAR(whole_archive_flag_spec, $1)=
7350 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7351
7352 # Source file extension for fc test sources.
7353 ac_ext=${ac_fc_srcext-f}
7354
7355 # Object file extension for compiled fc test sources.
7356 objext=o
7357 _LT_TAGVAR(objext, $1)=$objext
7358
7359 # No sense in running all these tests if we already determined that
7360 # the FC compiler isn't working. Some variables (like enable_shared)
7361 # are currently assumed to apply to all compilers on this platform,
7362 # and will be corrupted by setting them based on a non-working compiler.
7363 if test "$_lt_disable_FC" != yes; then
7364 # Code to be used in simple compile tests
7365 lt_simple_compile_test_code="\
7366 subroutine t
7367 return
7368 end
7369 "
7370
7371 # Code to be used in simple link tests
7372 lt_simple_link_test_code="\
7373 program t
7374 end
7375 "
7376
7377 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7378 _LT_TAG_COMPILER
7379
7380 # save warnings/boilerplate of simple test code
7381 _LT_COMPILER_BOILERPLATE
7382 _LT_LINKER_BOILERPLATE
7383
7384 # Allow CC to be a program name with arguments.
7385 lt_save_CC="$CC"
7386 lt_save_GCC=$GCC
7387 lt_save_CFLAGS=$CFLAGS
7388 CC=${FC-"f95"}
7389 CFLAGS=$FCFLAGS
7390 compiler=$CC
7391 GCC=$ac_cv_fc_compiler_gnu
7392
7393 _LT_TAGVAR(compiler, $1)=$CC
7394 _LT_CC_BASENAME([$compiler])
7395
7396 if test -n "$compiler"; then
7397 AC_MSG_CHECKING([if libtool supports shared libraries])
7398 AC_MSG_RESULT([$can_build_shared])
7399
7400 AC_MSG_CHECKING([whether to build shared libraries])
7401 test "$can_build_shared" = "no" && enable_shared=no
7402
7403 # On AIX, shared libraries and static libraries use the same namespace, and
7404 # are all built from PIC.
7405 case $host_os in
7406 aix3*)
7407 test "$enable_shared" = yes && enable_static=no
7408 if test -n "$RANLIB"; then
7409 archive_cmds="$archive_cmds~\$RANLIB \$lib"
7410 postinstall_cmds='$RANLIB $lib'
7411 fi
7412 ;;
7413 aix[[4-9]]*)
7414 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7415 test "$enable_shared" = yes && enable_static=no
7416 fi
7417 ;;
7418 esac
7419 AC_MSG_RESULT([$enable_shared])
7420
7421 AC_MSG_CHECKING([whether to build static libraries])
7422 # Make sure either enable_shared or enable_static is yes.
7423 test "$enable_shared" = yes || enable_static=yes
7424 AC_MSG_RESULT([$enable_static])
7425
7426 _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
7427 _LT_TAGVAR(LD, $1)="$LD"
7428
7429 ## CAVEAT EMPTOR:
7430 ## There is no encapsulation within the following macros, do not change
7431 ## the running order or otherwise move them around unless you know exactly
7432 ## what you are doing...
7433 _LT_SYS_HIDDEN_LIBDEPS($1)
7434 _LT_COMPILER_PIC($1)
7435 _LT_COMPILER_C_O($1)
7436 _LT_COMPILER_FILE_LOCKS($1)
7437 _LT_LINKER_SHLIBS($1)
7438 _LT_SYS_DYNAMIC_LINKER($1)
7439 _LT_LINKER_HARDCODE_LIBPATH($1)
7440
7441 _LT_CONFIG($1)
7442 fi # test -n "$compiler"
7443
7444 GCC=$lt_save_GCC
7445 CC=$lt_save_CC
7446 CFLAGS=$lt_save_CFLAGS
7447 fi # test "$_lt_disable_FC" != yes
7448
7449 AC_LANG_POP
7450 ])# _LT_LANG_FC_CONFIG
7451
7452
7453 # _LT_LANG_GCJ_CONFIG([TAG])
7454 # --------------------------
7455 # Ensure that the configuration variables for the GNU Java Compiler compiler
7456 # are suitably defined. These variables are subsequently used by _LT_CONFIG
7457 # to write the compiler configuration to `libtool'.
7458 m4_defun([_LT_LANG_GCJ_CONFIG],
7459 [AC_REQUIRE([LT_PROG_GCJ])dnl
7460 AC_LANG_SAVE
7461
7462 # Source file extension for Java test sources.
7463 ac_ext=java
7464
7465 # Object file extension for compiled Java test sources.
7466 objext=o
7467 _LT_TAGVAR(objext, $1)=$objext
7468
7469 # Code to be used in simple compile tests
7470 lt_simple_compile_test_code="class foo {}"
7471
7472 # Code to be used in simple link tests
7473 lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
7474
7475 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7476 _LT_TAG_COMPILER
7477
7478 # save warnings/boilerplate of simple test code
7479 _LT_COMPILER_BOILERPLATE
7480 _LT_LINKER_BOILERPLATE
7481
7482 # Allow CC to be a program name with arguments.
7483 lt_save_CC=$CC
7484 lt_save_CFLAGS=$CFLAGS
7485 lt_save_GCC=$GCC
7486 GCC=yes
7487 CC=${GCJ-"gcj"}
7488 CFLAGS=$GCJFLAGS
7489 compiler=$CC
7490 _LT_TAGVAR(compiler, $1)=$CC
7491 _LT_TAGVAR(LD, $1)="$LD"
7492 _LT_CC_BASENAME([$compiler])
7493
7494 # GCJ did not exist at the time GCC didn't implicitly link libc in.
7495 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7496
7497 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7498 _LT_TAGVAR(reload_flag, $1)=$reload_flag
7499 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7500
7501 if test -n "$compiler"; then
7502 _LT_COMPILER_NO_RTTI($1)
7503 _LT_COMPILER_PIC($1)
7504 _LT_COMPILER_C_O($1)
7505 _LT_COMPILER_FILE_LOCKS($1)
7506 _LT_LINKER_SHLIBS($1)
7507 _LT_LINKER_HARDCODE_LIBPATH($1)
7508
7509 _LT_CONFIG($1)
7510 fi
7511
7512 AC_LANG_RESTORE
7513
7514 GCC=$lt_save_GCC
7515 CC=$lt_save_CC
7516 CFLAGS=$lt_save_CFLAGS
7517 ])# _LT_LANG_GCJ_CONFIG
7518
7519
7520 # _LT_LANG_GO_CONFIG([TAG])
7521 # --------------------------
7522 # Ensure that the configuration variables for the GNU Go compiler
7523 # are suitably defined. These variables are subsequently used by _LT_CONFIG
7524 # to write the compiler configuration to `libtool'.
7525 m4_defun([_LT_LANG_GO_CONFIG],
7526 [AC_REQUIRE([LT_PROG_GO])dnl
7527 AC_LANG_SAVE
7528
7529 # Source file extension for Go test sources.
7530 ac_ext=go
7531
7532 # Object file extension for compiled Go test sources.
7533 objext=o
7534 _LT_TAGVAR(objext, $1)=$objext
7535
7536 # Code to be used in simple compile tests
7537 lt_simple_compile_test_code="package main; func main() { }"
7538
7539 # Code to be used in simple link tests
7540 lt_simple_link_test_code='package main; func main() { }'
7541
7542 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7543 _LT_TAG_COMPILER
7544
7545 # save warnings/boilerplate of simple test code
7546 _LT_COMPILER_BOILERPLATE
7547 _LT_LINKER_BOILERPLATE
7548
7549 # Allow CC to be a program name with arguments.
7550 lt_save_CC=$CC
7551 lt_save_CFLAGS=$CFLAGS
7552 lt_save_GCC=$GCC
7553 GCC=yes
7554 CC=${GOC-"gccgo"}
7555 CFLAGS=$GOFLAGS
7556 compiler=$CC
7557 _LT_TAGVAR(compiler, $1)=$CC
7558 _LT_TAGVAR(LD, $1)="$LD"
7559 _LT_CC_BASENAME([$compiler])
7560
7561 # Go did not exist at the time GCC didn't implicitly link libc in.
7562 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7563
7564 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7565 _LT_TAGVAR(reload_flag, $1)=$reload_flag
7566 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7567
7568 if test -n "$compiler"; then
7569 _LT_COMPILER_NO_RTTI($1)
7570 _LT_COMPILER_PIC($1)
7571 _LT_COMPILER_C_O($1)
7572 _LT_COMPILER_FILE_LOCKS($1)
7573 _LT_LINKER_SHLIBS($1)
7574 _LT_LINKER_HARDCODE_LIBPATH($1)
7575
7576 _LT_CONFIG($1)
7577 fi
7578
7579 AC_LANG_RESTORE
7580
7581 GCC=$lt_save_GCC
7582 CC=$lt_save_CC
7583 CFLAGS=$lt_save_CFLAGS
7584 ])# _LT_LANG_GO_CONFIG
7585
7586
7587 # _LT_LANG_RC_CONFIG([TAG])
7588 # -------------------------
7589 # Ensure that the configuration variables for the Windows resource compiler
7590 # are suitably defined. These variables are subsequently used by _LT_CONFIG
7591 # to write the compiler configuration to `libtool'.
7592 m4_defun([_LT_LANG_RC_CONFIG],
7593 [AC_REQUIRE([LT_PROG_RC])dnl
7594 AC_LANG_SAVE
7595
7596 # Source file extension for RC test sources.
7597 ac_ext=rc
7598
7599 # Object file extension for compiled RC test sources.
7600 objext=o
7601 _LT_TAGVAR(objext, $1)=$objext
7602
7603 # Code to be used in simple compile tests
7604 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
7605
7606 # Code to be used in simple link tests
7607 lt_simple_link_test_code="$lt_simple_compile_test_code"
7608
7609 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7610 _LT_TAG_COMPILER
7611
7612 # save warnings/boilerplate of simple test code
7613 _LT_COMPILER_BOILERPLATE
7614 _LT_LINKER_BOILERPLATE
7615
7616 # Allow CC to be a program name with arguments.
7617 lt_save_CC="$CC"
7618 lt_save_CFLAGS=$CFLAGS
7619 lt_save_GCC=$GCC
7620 GCC=
7621 CC=${RC-"windres"}
7622 CFLAGS=
7623 compiler=$CC
7624 _LT_TAGVAR(compiler, $1)=$CC
7625 _LT_CC_BASENAME([$compiler])
7626 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
7627
7628 if test -n "$compiler"; then
7629 :
7630 _LT_CONFIG($1)
7631 fi
7632
7633 GCC=$lt_save_GCC
7634 AC_LANG_RESTORE
7635 CC=$lt_save_CC
7636 CFLAGS=$lt_save_CFLAGS
7637 ])# _LT_LANG_RC_CONFIG
7638
7639
7640 # LT_PROG_GCJ
7641 # -----------
7642 AC_DEFUN([LT_PROG_GCJ],
7643 [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
7644 [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
7645 [AC_CHECK_TOOL(GCJ, gcj,)
7646 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
7647 AC_SUBST(GCJFLAGS)])])[]dnl
7648 ])
7649
7650 # Old name:
7651 AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
7652 dnl aclocal-1.4 backwards compatibility:
7653 dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
7654
7655
7656 # LT_PROG_GO
7657 # ----------
7658 AC_DEFUN([LT_PROG_GO],
7659 [AC_CHECK_TOOL(GOC, gccgo,)
7660 ])
7661
7662
7663 # LT_PROG_RC
7664 # ----------
7665 AC_DEFUN([LT_PROG_RC],
7666 [AC_CHECK_TOOL(RC, windres,)
7667 ])
7668
7669 # Old name:
7670 AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
7671 dnl aclocal-1.4 backwards compatibility:
7672 dnl AC_DEFUN([LT_AC_PROG_RC], [])
7673
7674
7675 # _LT_DECL_EGREP
7676 # --------------
7677 # If we don't have a new enough Autoconf to choose the best grep
7678 # available, choose the one first in the user's PATH.
7679 m4_defun([_LT_DECL_EGREP],
7680 [AC_REQUIRE([AC_PROG_EGREP])dnl
7681 AC_REQUIRE([AC_PROG_FGREP])dnl
7682 test -z "$GREP" && GREP=grep
7683 _LT_DECL([], [GREP], [1], [A grep program that handles long lines])
7684 _LT_DECL([], [EGREP], [1], [An ERE matcher])
7685 _LT_DECL([], [FGREP], [1], [A literal string matcher])
7686 dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
7687 AC_SUBST([GREP])
7688 ])
7689
7690
7691 # _LT_DECL_OBJDUMP
7692 # --------------
7693 # If we don't have a new enough Autoconf to choose the best objdump
7694 # available, choose the one first in the user's PATH.
7695 m4_defun([_LT_DECL_OBJDUMP],
7696 [AC_CHECK_TOOL(OBJDUMP, objdump, false)
7697 test -z "$OBJDUMP" && OBJDUMP=objdump
7698 _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
7699 AC_SUBST([OBJDUMP])
7700 ])
7701
7702 # _LT_DECL_DLLTOOL
7703 # ----------------
7704 # Ensure DLLTOOL variable is set.
7705 m4_defun([_LT_DECL_DLLTOOL],
7706 [AC_CHECK_TOOL(DLLTOOL, dlltool, false)
7707 test -z "$DLLTOOL" && DLLTOOL=dlltool
7708 _LT_DECL([], [DLLTOOL], [1], [DLL creation program])
7709 AC_SUBST([DLLTOOL])
7710 ])
7711
7712 # _LT_DECL_SED
7713 # ------------
7714 # Check for a fully-functional sed program, that truncates
7715 # as few characters as possible. Prefer GNU sed if found.
7716 m4_defun([_LT_DECL_SED],
7717 [AC_PROG_SED
7718 test -z "$SED" && SED=sed
7719 Xsed="$SED -e 1s/^X//"
7720 _LT_DECL([], [SED], [1], [A sed program that does not truncate output])
7721 _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
7722 [Sed that helps us avoid accidentally triggering echo(1) options like -n])
7723 ])# _LT_DECL_SED
7724
7725 m4_ifndef([AC_PROG_SED], [
7726 # NOTE: This macro has been submitted for inclusion into #
7727 # GNU Autoconf as AC_PROG_SED. When it is available in #
7728 # a released version of Autoconf we should remove this #
7729 # macro and use it instead. #
7730
7731 m4_defun([AC_PROG_SED],
7732 [AC_MSG_CHECKING([for a sed that does not truncate output])
7733 AC_CACHE_VAL(lt_cv_path_SED,
7734 [# Loop through the user's path and test for sed and gsed.
7735 # Then use that list of sed's as ones to test for truncation.
7736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7737 for as_dir in $PATH
7738 do
7739 IFS=$as_save_IFS
7740 test -z "$as_dir" && as_dir=.
7741 for lt_ac_prog in sed gsed; do
7742 for ac_exec_ext in '' $ac_executable_extensions; do
7743 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
7744 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
7745 fi
7746 done
7747 done
7748 done
7749 IFS=$as_save_IFS
7750 lt_ac_max=0
7751 lt_ac_count=0
7752 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
7753 # along with /bin/sed that truncates output.
7754 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
7755 test ! -f $lt_ac_sed && continue
7756 cat /dev/null > conftest.in
7757 lt_ac_count=0
7758 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
7759 # Check for GNU sed and select it if it is found.
7760 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
7761 lt_cv_path_SED=$lt_ac_sed
7762 break
7763 fi
7764 while true; do
7765 cat conftest.in conftest.in >conftest.tmp
7766 mv conftest.tmp conftest.in
7767 cp conftest.in conftest.nl
7768 echo >>conftest.nl
7769 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
7770 cmp -s conftest.out conftest.nl || break
7771 # 10000 chars as input seems more than enough
7772 test $lt_ac_count -gt 10 && break
7773 lt_ac_count=`expr $lt_ac_count + 1`
7774 if test $lt_ac_count -gt $lt_ac_max; then
7775 lt_ac_max=$lt_ac_count
7776 lt_cv_path_SED=$lt_ac_sed
7777 fi
7778 done
7779 done
7780 ])
7781 SED=$lt_cv_path_SED
7782 AC_SUBST([SED])
7783 AC_MSG_RESULT([$SED])
7784 ])#AC_PROG_SED
7785 ])#m4_ifndef
7786
7787 # Old name:
7788 AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
7789 dnl aclocal-1.4 backwards compatibility:
7790 dnl AC_DEFUN([LT_AC_PROG_SED], [])
7791
7792
7793 # _LT_CHECK_SHELL_FEATURES
7794 # ------------------------
7795 # Find out whether the shell is Bourne or XSI compatible,
7796 # or has some other useful features.
7797 m4_defun([_LT_CHECK_SHELL_FEATURES],
7798 [AC_MSG_CHECKING([whether the shell understands some XSI constructs])
7799 # Try some XSI features
7800 xsi_shell=no
7801 ( _lt_dummy="a/b/c"
7802 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7803 = c,a/b,b/c, \
7804 && eval 'test $(( 1 + 1 )) -eq 2 \
7805 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7806 && xsi_shell=yes
7807 AC_MSG_RESULT([$xsi_shell])
7808 _LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
7809
7810 AC_MSG_CHECKING([whether the shell understands "+="])
7811 lt_shell_append=no
7812 ( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
7813 >/dev/null 2>&1 \
7814 && lt_shell_append=yes
7815 AC_MSG_RESULT([$lt_shell_append])
7816 _LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
7817
7818 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7819 lt_unset=unset
7820 else
7821 lt_unset=false
7822 fi
7823 _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
7824
7825 # test EBCDIC or ASCII
7826 case `echo X|tr X '\101'` in
7827 A) # ASCII based system
7828 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7829 lt_SP2NL='tr \040 \012'
7830 lt_NL2SP='tr \015\012 \040\040'
7831 ;;
7832 *) # EBCDIC based system
7833 lt_SP2NL='tr \100 \n'
7834 lt_NL2SP='tr \r\n \100\100'
7835 ;;
7836 esac
7837 _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
7838 _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
7839 ])# _LT_CHECK_SHELL_FEATURES
7840
7841
7842 # _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
7843 # ------------------------------------------------------
7844 # In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
7845 # '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
7846 m4_defun([_LT_PROG_FUNCTION_REPLACE],
7847 [dnl {
7848 sed -e '/^$1 ()$/,/^} # $1 /c\
7849 $1 ()\
7850 {\
7851 m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1])
7852 } # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
7853 && mv -f "$cfgfile.tmp" "$cfgfile" \
7854 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7855 test 0 -eq $? || _lt_function_replace_fail=:
7856 ])
7857
7858
7859 # _LT_PROG_REPLACE_SHELLFNS
7860 # -------------------------
7861 # Replace existing portable implementations of several shell functions with
7862 # equivalent extended shell implementations where those features are available..
7863 m4_defun([_LT_PROG_REPLACE_SHELLFNS],
7864 [if test x"$xsi_shell" = xyes; then
7865 _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
7866 case ${1} in
7867 */*) func_dirname_result="${1%/*}${2}" ;;
7868 * ) func_dirname_result="${3}" ;;
7869 esac])
7870
7871 _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
7872 func_basename_result="${1##*/}"])
7873
7874 _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
7875 case ${1} in
7876 */*) func_dirname_result="${1%/*}${2}" ;;
7877 * ) func_dirname_result="${3}" ;;
7878 esac
7879 func_basename_result="${1##*/}"])
7880
7881 _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
7882 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7883 # positional parameters, so assign one to ordinary parameter first.
7884 func_stripname_result=${3}
7885 func_stripname_result=${func_stripname_result#"${1}"}
7886 func_stripname_result=${func_stripname_result%"${2}"}])
7887
7888 _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
7889 func_split_long_opt_name=${1%%=*}
7890 func_split_long_opt_arg=${1#*=}])
7891
7892 _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
7893 func_split_short_opt_arg=${1#??}
7894 func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
7895
7896 _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
7897 case ${1} in
7898 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
7899 *) func_lo2o_result=${1} ;;
7900 esac])
7901
7902 _LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo])
7903
7904 _LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))])
7905
7906 _LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}])
7907 fi
7908
7909 if test x"$lt_shell_append" = xyes; then
7910 _LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"])
7911
7912 _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
7913 func_quote_for_eval "${2}"
7914 dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
7915 eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
7916
7917 # Save a `func_append' function call where possible by direct use of '+='
7918 sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
7919 && mv -f "$cfgfile.tmp" "$cfgfile" \
7920 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7921 test 0 -eq $? || _lt_function_replace_fail=:
7922 else
7923 # Save a `func_append' function call even when '+=' is not available
7924 sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
7925 && mv -f "$cfgfile.tmp" "$cfgfile" \
7926 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7927 test 0 -eq $? || _lt_function_replace_fail=:
7928 fi
7929
7930 if test x"$_lt_function_replace_fail" = x":"; then
7931 AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
7932 fi
7933 ])
7934
7935 # _LT_PATH_CONVERSION_FUNCTIONS
7936 # -----------------------------
7937 # Determine which file name conversion functions should be used by
7938 # func_to_host_file (and, implicitly, by func_to_host_path). These are needed
7939 # for certain cross-compile configurations and native mingw.
7940 m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
7941 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
7942 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
7943 AC_MSG_CHECKING([how to convert $build file names to $host format])
7944 AC_CACHE_VAL(lt_cv_to_host_file_cmd,
7945 [case $host in
7946 *-*-mingw* )
7947 case $build in
7948 *-*-mingw* ) # actually msys
7949 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7950 ;;
7951 *-*-cygwin* )
7952 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7953 ;;
7954 * ) # otherwise, assume *nix
7955 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7956 ;;
7957 esac
7958 ;;
7959 *-*-cygwin* )
7960 case $build in
7961 *-*-mingw* ) # actually msys
7962 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7963 ;;
7964 *-*-cygwin* )
7965 lt_cv_to_host_file_cmd=func_convert_file_noop
7966 ;;
7967 * ) # otherwise, assume *nix
7968 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7969 ;;
7970 esac
7971 ;;
7972 * ) # unhandled hosts (and "normal" native builds)
7973 lt_cv_to_host_file_cmd=func_convert_file_noop
7974 ;;
7975 esac
7976 ])
7977 to_host_file_cmd=$lt_cv_to_host_file_cmd
7978 AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
7979 _LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
7980 [0], [convert $build file names to $host format])dnl
7981
7982 AC_MSG_CHECKING([how to convert $build file names to toolchain format])
7983 AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
7984 [#assume ordinary cross tools, or native build.
7985 lt_cv_to_tool_file_cmd=func_convert_file_noop
7986 case $host in
7987 *-*-mingw* )
7988 case $build in
7989 *-*-mingw* ) # actually msys
7990 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7991 ;;
7992 esac
7993 ;;
7994 esac
7995 ])
7996 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7997 AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
7998 _LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
7999 [0], [convert $build files to toolchain format])dnl
8000 ])# _LT_PATH_CONVERSION_FUNCTIONS
8001
8002 # Helper functions for option handling. -*- Autoconf -*-
8003 #
8004 # Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
8005 # Inc.
8006 # Written by Gary V. Vaughan, 2004
8007 #
8008 # This file is free software; the Free Software Foundation gives
8009 # unlimited permission to copy and/or distribute it, with or without
8010 # modifications, as long as this notice is preserved.
8011
8012 # serial 7 ltoptions.m4
8013
8014 # This is to help aclocal find these macros, as it can't see m4_define.
8015 AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
8016
8017
8018 # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
8019 # ------------------------------------------
8020 m4_define([_LT_MANGLE_OPTION],
8021 [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
8022
8023
8024 # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
8025 # ---------------------------------------
8026 # Set option OPTION-NAME for macro MACRO-NAME, and if there is a
8027 # matching handler defined, dispatch to it. Other OPTION-NAMEs are
8028 # saved as a flag.
8029 m4_define([_LT_SET_OPTION],
8030 [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
8031 m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
8032 _LT_MANGLE_DEFUN([$1], [$2]),
8033 [m4_warning([Unknown $1 option `$2'])])[]dnl
8034 ])
8035
8036
8037 # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
8038 # ------------------------------------------------------------
8039 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
8040 m4_define([_LT_IF_OPTION],
8041 [m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
8042
8043
8044 # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
8045 # -------------------------------------------------------
8046 # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
8047 # are set.
8048 m4_define([_LT_UNLESS_OPTIONS],
8049 [m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
8050 [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
8051 [m4_define([$0_found])])])[]dnl
8052 m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
8053 ])[]dnl
8054 ])
8055
8056
8057 # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
8058 # ----------------------------------------
8059 # OPTION-LIST is a space-separated list of Libtool options associated
8060 # with MACRO-NAME. If any OPTION has a matching handler declared with
8061 # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
8062 # the unknown option and exit.
8063 m4_defun([_LT_SET_OPTIONS],
8064 [# Set options
8065 m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
8066 [_LT_SET_OPTION([$1], _LT_Option)])
8067
8068 m4_if([$1],[LT_INIT],[
8069 dnl
8070 dnl Simply set some default values (i.e off) if boolean options were not
8071 dnl specified:
8072 _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
8073 ])
8074 _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
8075 ])
8076 dnl
8077 dnl If no reference was made to various pairs of opposing options, then
8078 dnl we run the default mode handler for the pair. For example, if neither
8079 dnl `shared' nor `disable-shared' was passed, we enable building of shared
8080 dnl archives by default:
8081 _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
8082 _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
8083 _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
8084 _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
8085 [_LT_ENABLE_FAST_INSTALL])
8086 ])
8087 ])# _LT_SET_OPTIONS
8088
8089
8090
8091 # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
8092 # -----------------------------------------
8093 m4_define([_LT_MANGLE_DEFUN],
8094 [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
8095
8096
8097 # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
8098 # -----------------------------------------------
8099 m4_define([LT_OPTION_DEFINE],
8100 [m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
8101 ])# LT_OPTION_DEFINE
8102
8103
8104 # dlopen
8105 # ------
8106 LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
8107 ])
8108
8109 AU_DEFUN([AC_LIBTOOL_DLOPEN],
8110 [_LT_SET_OPTION([LT_INIT], [dlopen])
8111 AC_DIAGNOSE([obsolete],
8112 [$0: Remove this warning and the call to _LT_SET_OPTION when you
8113 put the `dlopen' option into LT_INIT's first parameter.])
8114 ])
8115
8116 dnl aclocal-1.4 backwards compatibility:
8117 dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
8118
8119
8120 # win32-dll
8121 # ---------
8122 # Declare package support for building win32 dll's.
8123 LT_OPTION_DEFINE([LT_INIT], [win32-dll],
8124 [enable_win32_dll=yes
8125
8126 case $host in
8127 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8128 AC_CHECK_TOOL(AS, as, false)
8129 AC_CHECK_TOOL(DLLTOOL, dlltool, false)
8130 AC_CHECK_TOOL(OBJDUMP, objdump, false)
8131 ;;
8132 esac
8133
8134 test -z "$AS" && AS=as
8135 _LT_DECL([], [AS], [1], [Assembler program])dnl
8136
8137 test -z "$DLLTOOL" && DLLTOOL=dlltool
8138 _LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
8139
8140 test -z "$OBJDUMP" && OBJDUMP=objdump
8141 _LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
8142 ])# win32-dll
8143
8144 AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
8145 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
8146 _LT_SET_OPTION([LT_INIT], [win32-dll])
8147 AC_DIAGNOSE([obsolete],
8148 [$0: Remove this warning and the call to _LT_SET_OPTION when you
8149 put the `win32-dll' option into LT_INIT's first parameter.])
8150 ])
8151
8152 dnl aclocal-1.4 backwards compatibility:
8153 dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
8154
8155
8156 # _LT_ENABLE_SHARED([DEFAULT])
8157 # ----------------------------
8158 # implement the --enable-shared flag, and supports the `shared' and
8159 # `disable-shared' LT_INIT options.
8160 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
8161 m4_define([_LT_ENABLE_SHARED],
8162 [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
8163 AC_ARG_ENABLE([shared],
8164 [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
8165 [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
8166 [p=${PACKAGE-default}
8167 case $enableval in
8168 yes) enable_shared=yes ;;
8169 no) enable_shared=no ;;
8170 *)
8171 enable_shared=no
8172 # Look at the argument we got. We use all the common list separators.
8173 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8174 for pkg in $enableval; do
8175 IFS="$lt_save_ifs"
8176 if test "X$pkg" = "X$p"; then
8177 enable_shared=yes
8178 fi
8179 done
8180 IFS="$lt_save_ifs"
8181 ;;
8182 esac],
8183 [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
8184
8185 _LT_DECL([build_libtool_libs], [enable_shared], [0],
8186 [Whether or not to build shared libraries])
8187 ])# _LT_ENABLE_SHARED
8188
8189 LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
8190 LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
8191
8192 # Old names:
8193 AC_DEFUN([AC_ENABLE_SHARED],
8194 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
8195 ])
8196
8197 AC_DEFUN([AC_DISABLE_SHARED],
8198 [_LT_SET_OPTION([LT_INIT], [disable-shared])
8199 ])
8200
8201 AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
8202 AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
8203
8204 dnl aclocal-1.4 backwards compatibility:
8205 dnl AC_DEFUN([AM_ENABLE_SHARED], [])
8206 dnl AC_DEFUN([AM_DISABLE_SHARED], [])
8207
8208
8209
8210 # _LT_ENABLE_STATIC([DEFAULT])
8211 # ----------------------------
8212 # implement the --enable-static flag, and support the `static' and
8213 # `disable-static' LT_INIT options.
8214 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
8215 m4_define([_LT_ENABLE_STATIC],
8216 [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
8217 AC_ARG_ENABLE([static],
8218 [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
8219 [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
8220 [p=${PACKAGE-default}
8221 case $enableval in
8222 yes) enable_static=yes ;;
8223 no) enable_static=no ;;
8224 *)
8225 enable_static=no
8226 # Look at the argument we got. We use all the common list separators.
8227 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8228 for pkg in $enableval; do
8229 IFS="$lt_save_ifs"
8230 if test "X$pkg" = "X$p"; then
8231 enable_static=yes
8232 fi
8233 done
8234 IFS="$lt_save_ifs"
8235 ;;
8236 esac],
8237 [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
8238
8239 _LT_DECL([build_old_libs], [enable_static], [0],
8240 [Whether or not to build static libraries])
8241 ])# _LT_ENABLE_STATIC
8242
8243 LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
8244 LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
8245
8246 # Old names:
8247 AC_DEFUN([AC_ENABLE_STATIC],
8248 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
8249 ])
8250
8251 AC_DEFUN([AC_DISABLE_STATIC],
8252 [_LT_SET_OPTION([LT_INIT], [disable-static])
8253 ])
8254
8255 AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
8256 AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
8257
8258 dnl aclocal-1.4 backwards compatibility:
8259 dnl AC_DEFUN([AM_ENABLE_STATIC], [])
8260 dnl AC_DEFUN([AM_DISABLE_STATIC], [])
8261
8262
8263
8264 # _LT_ENABLE_FAST_INSTALL([DEFAULT])
8265 # ----------------------------------
8266 # implement the --enable-fast-install flag, and support the `fast-install'
8267 # and `disable-fast-install' LT_INIT options.
8268 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
8269 m4_define([_LT_ENABLE_FAST_INSTALL],
8270 [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
8271 AC_ARG_ENABLE([fast-install],
8272 [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
8273 [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
8274 [p=${PACKAGE-default}
8275 case $enableval in
8276 yes) enable_fast_install=yes ;;
8277 no) enable_fast_install=no ;;
8278 *)
8279 enable_fast_install=no
8280 # Look at the argument we got. We use all the common list separators.
8281 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8282 for pkg in $enableval; do
8283 IFS="$lt_save_ifs"
8284 if test "X$pkg" = "X$p"; then
8285 enable_fast_install=yes
8286 fi
8287 done
8288 IFS="$lt_save_ifs"
8289 ;;
8290 esac],
8291 [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
8292
8293 _LT_DECL([fast_install], [enable_fast_install], [0],
8294 [Whether or not to optimize for fast installation])dnl
8295 ])# _LT_ENABLE_FAST_INSTALL
8296
8297 LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
8298 LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
8299
8300 # Old names:
8301 AU_DEFUN([AC_ENABLE_FAST_INSTALL],
8302 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
8303 AC_DIAGNOSE([obsolete],
8304 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
8305 the `fast-install' option into LT_INIT's first parameter.])
8306 ])
8307
8308 AU_DEFUN([AC_DISABLE_FAST_INSTALL],
8309 [_LT_SET_OPTION([LT_INIT], [disable-fast-install])
8310 AC_DIAGNOSE([obsolete],
8311 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
8312 the `disable-fast-install' option into LT_INIT's first parameter.])
8313 ])
8314
8315 dnl aclocal-1.4 backwards compatibility:
8316 dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
8317 dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
8318
8319
8320 # _LT_WITH_PIC([MODE])
8321 # --------------------
8322 # implement the --with-pic flag, and support the `pic-only' and `no-pic'
8323 # LT_INIT options.
8324 # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
8325 m4_define([_LT_WITH_PIC],
8326 [AC_ARG_WITH([pic],
8327 [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
8328 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
8329 [lt_p=${PACKAGE-default}
8330 case $withval in
8331 yes|no) pic_mode=$withval ;;
8332 *)
8333 pic_mode=default
8334 # Look at the argument we got. We use all the common list separators.
8335 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8336 for lt_pkg in $withval; do
8337 IFS="$lt_save_ifs"
8338 if test "X$lt_pkg" = "X$lt_p"; then
8339 pic_mode=yes
8340 fi
8341 done
8342 IFS="$lt_save_ifs"
8343 ;;
8344 esac],
8345 [pic_mode=default])
8346
8347 test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
8348
8349 _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
8350 ])# _LT_WITH_PIC
8351
8352 LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
8353 LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
8354
8355 # Old name:
8356 AU_DEFUN([AC_LIBTOOL_PICMODE],
8357 [_LT_SET_OPTION([LT_INIT], [pic-only])
8358 AC_DIAGNOSE([obsolete],
8359 [$0: Remove this warning and the call to _LT_SET_OPTION when you
8360 put the `pic-only' option into LT_INIT's first parameter.])
8361 ])
8362
8363 dnl aclocal-1.4 backwards compatibility:
8364 dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
8365
8366
8367 m4_define([_LTDL_MODE], [])
8368 LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
8369 [m4_define([_LTDL_MODE], [nonrecursive])])
8370 LT_OPTION_DEFINE([LTDL_INIT], [recursive],
8371 [m4_define([_LTDL_MODE], [recursive])])
8372 LT_OPTION_DEFINE([LTDL_INIT], [subproject],
8373 [m4_define([_LTDL_MODE], [subproject])])
8374
8375 m4_define([_LTDL_TYPE], [])
8376 LT_OPTION_DEFINE([LTDL_INIT], [installable],
8377 [m4_define([_LTDL_TYPE], [installable])])
8378 LT_OPTION_DEFINE([LTDL_INIT], [convenience],
8379 [m4_define([_LTDL_TYPE], [convenience])])
8380
8381 # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
8382 #
8383 # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
8384 # Written by Gary V. Vaughan, 2004
8385 #
8386 # This file is free software; the Free Software Foundation gives
8387 # unlimited permission to copy and/or distribute it, with or without
8388 # modifications, as long as this notice is preserved.
8389
8390 # serial 6 ltsugar.m4
8391
8392 # This is to help aclocal find these macros, as it can't see m4_define.
8393 AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
8394
8395
8396 # lt_join(SEP, ARG1, [ARG2...])
8397 # -----------------------------
8398 # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
8399 # associated separator.
8400 # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
8401 # versions in m4sugar had bugs.
8402 m4_define([lt_join],
8403 [m4_if([$#], [1], [],
8404 [$#], [2], [[$2]],
8405 [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
8406 m4_define([_lt_join],
8407 [m4_if([$#$2], [2], [],
8408 [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
8409
8410
8411 # lt_car(LIST)
8412 # lt_cdr(LIST)
8413 # ------------
8414 # Manipulate m4 lists.
8415 # These macros are necessary as long as will still need to support
8416 # Autoconf-2.59 which quotes differently.
8417 m4_define([lt_car], [[$1]])
8418 m4_define([lt_cdr],
8419 [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
8420 [$#], 1, [],
8421 [m4_dquote(m4_shift($@))])])
8422 m4_define([lt_unquote], $1)
8423
8424
8425 # lt_append(MACRO-NAME, STRING, [SEPARATOR])
8426 # ------------------------------------------
8427 # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
8428 # Note that neither SEPARATOR nor STRING are expanded; they are appended
8429 # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
8430 # No SEPARATOR is output if MACRO-NAME was previously undefined (different
8431 # than defined and empty).
8432 #
8433 # This macro is needed until we can rely on Autoconf 2.62, since earlier
8434 # versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
8435 m4_define([lt_append],
8436 [m4_define([$1],
8437 m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
8438
8439
8440
8441 # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
8442 # ----------------------------------------------------------
8443 # Produce a SEP delimited list of all paired combinations of elements of
8444 # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
8445 # has the form PREFIXmINFIXSUFFIXn.
8446 # Needed until we can rely on m4_combine added in Autoconf 2.62.
8447 m4_define([lt_combine],
8448 [m4_if(m4_eval([$# > 3]), [1],
8449 [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
8450 [[m4_foreach([_Lt_prefix], [$2],
8451 [m4_foreach([_Lt_suffix],
8452 ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
8453 [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
8454
8455
8456 # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
8457 # -----------------------------------------------------------------------
8458 # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
8459 # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
8460 m4_define([lt_if_append_uniq],
8461 [m4_ifdef([$1],
8462 [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
8463 [lt_append([$1], [$2], [$3])$4],
8464 [$5])],
8465 [lt_append([$1], [$2], [$3])$4])])
8466
8467
8468 # lt_dict_add(DICT, KEY, VALUE)
8469 # -----------------------------
8470 m4_define([lt_dict_add],
8471 [m4_define([$1($2)], [$3])])
8472
8473
8474 # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
8475 # --------------------------------------------
8476 m4_define([lt_dict_add_subkey],
8477 [m4_define([$1($2:$3)], [$4])])
8478
8479
8480 # lt_dict_fetch(DICT, KEY, [SUBKEY])
8481 # ----------------------------------
8482 m4_define([lt_dict_fetch],
8483 [m4_ifval([$3],
8484 m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
8485 m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
8486
8487
8488 # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
8489 # -----------------------------------------------------------------
8490 m4_define([lt_if_dict_fetch],
8491 [m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
8492 [$5],
8493 [$6])])
8494
8495
8496 # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
8497 # --------------------------------------------------------------
8498 m4_define([lt_dict_filter],
8499 [m4_if([$5], [], [],
8500 [lt_join(m4_quote(m4_default([$4], [[, ]])),
8501 lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
8502 [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
8503 ])
8504
8505 # ltversion.m4 -- version numbers -*- Autoconf -*-
8506 #
8507 # Copyright (C) 2004 Free Software Foundation, Inc.
8508 # Written by Scott James Remnant, 2004
8509 #
8510 # This file is free software; the Free Software Foundation gives
8511 # unlimited permission to copy and/or distribute it, with or without
8512 # modifications, as long as this notice is preserved.
8513
8514 # @configure_input@
8515
8516 # serial 3337 ltversion.m4
8517 # This file is part of GNU Libtool
8518
8519 m4_define([LT_PACKAGE_VERSION], [2.4.2])
8520 m4_define([LT_PACKAGE_REVISION], [1.3337])
8521
8522 AC_DEFUN([LTVERSION_VERSION],
8523 [macro_version='2.4.2'
8524 macro_revision='1.3337'
8525 _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
8526 _LT_DECL(, macro_revision, 0)
8527 ])
8528
8529 # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
8530 #
8531 # Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
8532 # Written by Scott James Remnant, 2004.
8533 #
8534 # This file is free software; the Free Software Foundation gives
8535 # unlimited permission to copy and/or distribute it, with or without
8536 # modifications, as long as this notice is preserved.
8537
8538 # serial 5 lt~obsolete.m4
8539
8540 # These exist entirely to fool aclocal when bootstrapping libtool.
8541 #
8542 # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
8543 # which have later been changed to m4_define as they aren't part of the
8544 # exported API, or moved to Autoconf or Automake where they belong.
8545 #
8546 # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
8547 # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
8548 # using a macro with the same name in our local m4/libtool.m4 it'll
8549 # pull the old libtool.m4 in (it doesn't see our shiny new m4_define
8550 # and doesn't know about Autoconf macros at all.)
8551 #
8552 # So we provide this file, which has a silly filename so it's always
8553 # included after everything else. This provides aclocal with the
8554 # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
8555 # because those macros already exist, or will be overwritten later.
8556 # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
8557 #
8558 # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
8559 # Yes, that means every name once taken will need to remain here until
8560 # we give up compatibility with versions before 1.7, at which point
8561 # we need to keep only those names which we still refer to.
8562
8563 # This is to help aclocal find these macros, as it can't see m4_define.
8564 AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
8565
8566 m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
8567 m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
8568 m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
8569 m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
8570 m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
8571 m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
8572 m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
8573 m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
8574 m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
8575 m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
8576 m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
8577 m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
8578 m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
8579 m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
8580 m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
8581 m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
8582 m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
8583 m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
8584 m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
8585 m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
8586 m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
8587 m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
8588 m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
8589 m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
8590 m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
8591 m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
8592 m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
8593 m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
8594 m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
8595 m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
8596 m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
8597 m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
8598 m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
8599 m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
8600 m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
8601 m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
8602 m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
8603 m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
8604 m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
8605 m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
8606 m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
8607 m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
8608 m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
8609 m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
8610 m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
8611 m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
8612 m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
8613 m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
8614 m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
8615 m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
8616 m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
8617 m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
8618 m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
8619 m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
8620 m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
8621 m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
8622 m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
8623 m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
8624 m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])])
8625 m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])])
8626 m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])])
20 To do so, use the procedure documented by the package, typically 'autoreconf'.])])
862721
862822 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
862923 # serial 1 (pkg-config-0.24)
8785179 fi[]dnl
8786180 ])# PKG_CHECK_MODULES
8787181
8788 # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software
8789 # Foundation, Inc.
8790 #
8791 # This file is free software; the Free Software Foundation
8792 # gives unlimited permission to copy and/or distribute it,
8793 # with or without modifications, as long as this notice is preserved.
8794
8795 # serial 1
182
183 # PKG_INSTALLDIR(DIRECTORY)
184 # -------------------------
185 # Substitutes the variable pkgconfigdir as the location where a module
186 # should install pkg-config .pc files. By default the directory is
187 # $libdir/pkgconfig, but the default can be changed by passing
188 # DIRECTORY. The user can override through the --with-pkgconfigdir
189 # parameter.
190 AC_DEFUN([PKG_INSTALLDIR],
191 [m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])])
192 m4_pushdef([pkg_description],
193 [pkg-config installation directory @<:@]pkg_default[@:>@])
194 AC_ARG_WITH([pkgconfigdir],
195 [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],,
196 [with_pkgconfigdir=]pkg_default)
197 AC_SUBST([pkgconfigdir], [$with_pkgconfigdir])
198 m4_popdef([pkg_default])
199 m4_popdef([pkg_description])
200 ]) dnl PKG_INSTALLDIR
201
202
203 # PKG_NOARCH_INSTALLDIR(DIRECTORY)
204 # -------------------------
205 # Substitutes the variable noarch_pkgconfigdir as the location where a
206 # module should install arch-independent pkg-config .pc files. By
207 # default the directory is $datadir/pkgconfig, but the default can be
208 # changed by passing DIRECTORY. The user can override through the
209 # --with-noarch-pkgconfigdir parameter.
210 AC_DEFUN([PKG_NOARCH_INSTALLDIR],
211 [m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])])
212 m4_pushdef([pkg_description],
213 [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@])
214 AC_ARG_WITH([noarch-pkgconfigdir],
215 [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],,
216 [with_noarch_pkgconfigdir=]pkg_default)
217 AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir])
218 m4_popdef([pkg_default])
219 m4_popdef([pkg_description])
220 ]) dnl PKG_NOARCH_INSTALLDIR
221
222 # Copyright (C) 2002-2013 Free Software Foundation, Inc.
223 #
224 # This file is free software; the Free Software Foundation
225 # gives unlimited permission to copy and/or distribute it,
226 # with or without modifications, as long as this notice is preserved.
8796227
8797228 # AM_AUTOMAKE_VERSION(VERSION)
8798229 # ----------------------------
8800231 # generated from the m4 files accompanying Automake X.Y.
8801232 # (This private macro should not be called outside this file.)
8802233 AC_DEFUN([AM_AUTOMAKE_VERSION],
8803 [am__api_version='1.11'
234 [am__api_version='1.13'
8804235 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
8805236 dnl require some minimum version. Point them to the right macro.
8806 m4_if([$1], [1.11.3], [],
237 m4_if([$1], [1.13.4], [],
8807238 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
8808239 ])
8809240
8819250 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
8820251 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
8821252 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
8822 [AM_AUTOMAKE_VERSION([1.11.3])dnl
253 [AM_AUTOMAKE_VERSION([1.13.4])dnl
8823254 m4_ifndef([AC_AUTOCONF_VERSION],
8824255 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
8825256 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
8826257
8827258 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
8828259
8829 # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
8830 #
8831 # This file is free software; the Free Software Foundation
8832 # gives unlimited permission to copy and/or distribute it,
8833 # with or without modifications, as long as this notice is preserved.
8834
8835 # serial 1
260 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
261 #
262 # This file is free software; the Free Software Foundation
263 # gives unlimited permission to copy and/or distribute it,
264 # with or without modifications, as long as this notice is preserved.
8836265
8837266 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
8838 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
8839 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
267 # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
268 # '$srcdir', '$srcdir/..', or '$srcdir/../..'.
8840269 #
8841270 # Of course, Automake must honor this variable whenever it calls a
8842271 # tool from the auxiliary directory. The problem is that $srcdir (and
8855284 #
8856285 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
8857286 # are both prefixed by $srcdir. In an in-source build this is usually
8858 # harmless because $srcdir is `.', but things will broke when you
287 # harmless because $srcdir is '.', but things will broke when you
8859288 # start a VPATH build or use an absolute $srcdir.
8860289 #
8861290 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
8881310
8882311 # AM_CONDITIONAL -*- Autoconf -*-
8883312
8884 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
8885 # Free Software Foundation, Inc.
8886 #
8887 # This file is free software; the Free Software Foundation
8888 # gives unlimited permission to copy and/or distribute it,
8889 # with or without modifications, as long as this notice is preserved.
8890
8891 # serial 9
313 # Copyright (C) 1997-2013 Free Software Foundation, Inc.
314 #
315 # This file is free software; the Free Software Foundation
316 # gives unlimited permission to copy and/or distribute it,
317 # with or without modifications, as long as this notice is preserved.
8892318
8893319 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
8894320 # -------------------------------------
8895321 # Define a conditional.
8896322 AC_DEFUN([AM_CONDITIONAL],
8897 [AC_PREREQ(2.52)dnl
8898 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
8899 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
323 [AC_PREREQ([2.52])dnl
324 m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
325 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
8900326 AC_SUBST([$1_TRUE])dnl
8901327 AC_SUBST([$1_FALSE])dnl
8902328 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
8915341 Usually this means the macro was only invoked conditionally.]])
8916342 fi])])
8917343
8918 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009,
8919 # 2010, 2011 Free Software Foundation, Inc.
8920 #
8921 # This file is free software; the Free Software Foundation
8922 # gives unlimited permission to copy and/or distribute it,
8923 # with or without modifications, as long as this notice is preserved.
8924
8925 # serial 12
8926
8927 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
344 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
345 #
346 # This file is free software; the Free Software Foundation
347 # gives unlimited permission to copy and/or distribute it,
348 # with or without modifications, as long as this notice is preserved.
349
350
351 # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
8928352 # written in clear, in which case automake, when reading aclocal.m4,
8929353 # will think it sees a *use*, and therefore will trigger all it's
8930354 # C support machinery. Also note that it means that autoscan, seeing
8934358 # _AM_DEPENDENCIES(NAME)
8935359 # ----------------------
8936360 # See how the compiler implements dependency checking.
8937 # NAME is "CC", "CXX", "GCJ", or "OBJC".
361 # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
8938362 # We try a few techniques and use that to set a single cache variable.
8939363 #
8940364 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
8947371 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
8948372 AC_REQUIRE([AM_DEP_TRACK])dnl
8949373
8950 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
8951 [$1], CXX, [depcc="$CXX" am_compiler_list=],
8952 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
8953 [$1], UPC, [depcc="$UPC" am_compiler_list=],
8954 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
8955 [depcc="$$1" am_compiler_list=])
374 m4_if([$1], [CC], [depcc="$CC" am_compiler_list=],
375 [$1], [CXX], [depcc="$CXX" am_compiler_list=],
376 [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
377 [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
378 [$1], [UPC], [depcc="$UPC" am_compiler_list=],
379 [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
380 [depcc="$$1" am_compiler_list=])
8956381
8957382 AC_CACHE_CHECK([dependency style of $depcc],
8958383 [am_cv_$1_dependencies_compiler_type],
8960385 # We make a subdir and do the tests there. Otherwise we can end up
8961386 # making bogus files that we don't know about and never remove. For
8962387 # instance it was reported that on HP-UX the gcc test will end up
8963 # making a dummy file named `D' -- because `-MD' means `put the output
8964 # in D'.
388 # making a dummy file named 'D' -- because '-MD' means "put the output
389 # in D".
8965390 rm -rf conftest.dir
8966391 mkdir conftest.dir
8967392 # Copy depcomp to subdir because otherwise we won't find it if we're
9001426 : > sub/conftest.c
9002427 for i in 1 2 3 4 5 6; do
9003428 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9004 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9005 # Solaris 8's {/usr,}/bin/sh.
9006 touch sub/conftst$i.h
429 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
430 # Solaris 10 /bin/sh.
431 echo '/* dummy */' > sub/conftst$i.h
9007432 done
9008433 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9009434
9010 # We check with `-c' and `-o' for the sake of the "dashmstdout"
435 # We check with '-c' and '-o' for the sake of the "dashmstdout"
9011436 # mode. It turns out that the SunPro C++ compiler does not properly
9012 # handle `-M -o', and we need to detect this. Also, some Intel
9013 # versions had trouble with output in subdirs
437 # handle '-M -o', and we need to detect this. Also, some Intel
438 # versions had trouble with output in subdirs.
9014439 am__obj=sub/conftest.${OBJEXT-o}
9015440 am__minus_obj="-o $am__obj"
9016441 case $depmode in
9019444 test "$am__universal" = false || continue
9020445 ;;
9021446 nosideeffect)
9022 # after this tag, mechanisms are not by side-effect, so they'll
9023 # only be used when explicitly requested
447 # After this tag, mechanisms are not by side-effect, so they'll
448 # only be used when explicitly requested.
9024449 if test "x$enable_dependency_tracking" = xyes; then
9025450 continue
9026451 else
9028453 fi
9029454 ;;
9030455 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
9031 # This compiler won't grok `-c -o', but also, the minuso test has
456 # This compiler won't grok '-c -o', but also, the minuso test has
9032457 # not run yet. These depmodes are late enough in the game, and
9033458 # so weak that their functioning should not be impacted.
9034459 am__obj=conftest.${OBJEXT-o}
9076501 # AM_SET_DEPDIR
9077502 # -------------
9078503 # Choose a directory name for dependency files.
9079 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
504 # This macro is AC_REQUIREd in _AM_DEPENDENCIES.
9080505 AC_DEFUN([AM_SET_DEPDIR],
9081506 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
9082507 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
9086511 # AM_DEP_TRACK
9087512 # ------------
9088513 AC_DEFUN([AM_DEP_TRACK],
9089 [AC_ARG_ENABLE(dependency-tracking,
9090 [ --disable-dependency-tracking speeds up one-time build
9091 --enable-dependency-tracking do not reject slow dependency extractors])
514 [AC_ARG_ENABLE([dependency-tracking], [dnl
515 AS_HELP_STRING(
516 [--enable-dependency-tracking],
517 [do not reject slow dependency extractors])
518 AS_HELP_STRING(
519 [--disable-dependency-tracking],
520 [speeds up one-time build])])
9092521 if test "x$enable_dependency_tracking" != xno; then
9093522 am_depcomp="$ac_aux_dir/depcomp"
9094523 AMDEPBACKSLASH='\'
9103532
9104533 # Generate code to set up dependency tracking. -*- Autoconf -*-
9105534
9106 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
9107 # Free Software Foundation, Inc.
9108 #
9109 # This file is free software; the Free Software Foundation
9110 # gives unlimited permission to copy and/or distribute it,
9111 # with or without modifications, as long as this notice is preserved.
9112
9113 #serial 5
535 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
536 #
537 # This file is free software; the Free Software Foundation
538 # gives unlimited permission to copy and/or distribute it,
539 # with or without modifications, as long as this notice is preserved.
540
9114541
9115542 # _AM_OUTPUT_DEPENDENCY_COMMANDS
9116543 # ------------------------------
9117544 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
9118545 [{
9119 # Autoconf 2.62 quotes --file arguments for eval, but not when files
546 # Older Autoconf quotes --file arguments for eval, but not when files
9120547 # are listed without --file. Let's play safe and only enable the eval
9121548 # if we detect the quoting.
9122549 case $CONFIG_FILES in
9129556 # Strip MF so we end up with the name of the file.
9130557 mf=`echo "$mf" | sed -e 's/:.*$//'`
9131558 # Check whether this is an Automake generated Makefile or not.
9132 # We used to match only the files named `Makefile.in', but
559 # We used to match only the files named 'Makefile.in', but
9133560 # some people rename them; so instead we look at the file content.
9134561 # Grep'ing the first line is not enough: some people post-process
9135562 # each Makefile.in and add a new line on top of each file to say so.
9141568 continue
9142569 fi
9143570 # Extract the definition of DEPDIR, am__include, and am__quote
9144 # from the Makefile without running `make'.
571 # from the Makefile without running 'make'.
9145572 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9146573 test -z "$DEPDIR" && continue
9147574 am__include=`sed -n 's/^am__include = //p' < "$mf"`
9148 test -z "am__include" && continue
575 test -z "$am__include" && continue
9149576 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9150 # When using ansi2knr, U may be empty or an underscore; expand it
9151 U=`sed -n 's/^U = //p' < "$mf"`
9152577 # Find all dependency output files, they are included files with
9153578 # $(DEPDIR) in their names. We invoke sed twice because it is the
9154579 # simplest approach to changing $(DEPDIR) to its actual value in the
9155580 # expansion.
9156581 for file in `sed -n "
9157582 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9158 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
583 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
9159584 # Make sure the directory exists.
9160585 test -f "$dirpart/$file" && continue
9161586 fdir=`AS_DIRNAME(["$file"])`
9173598 # This macro should only be invoked once -- use via AC_REQUIRE.
9174599 #
9175600 # This code is only required when automatic dependency tracking
9176 # is enabled. FIXME. This creates each `.P' file that we will
601 # is enabled. FIXME. This creates each '.P' file that we will
9177602 # need in order to bootstrap the dependency handling code.
9178603 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
9179604 [AC_CONFIG_COMMANDS([depfiles],
9183608
9184609 # Do all the work for Automake. -*- Autoconf -*-
9185610
9186 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
9187 # 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
9188 #
9189 # This file is free software; the Free Software Foundation
9190 # gives unlimited permission to copy and/or distribute it,
9191 # with or without modifications, as long as this notice is preserved.
9192
9193 # serial 16
611 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
612 #
613 # This file is free software; the Free Software Foundation
614 # gives unlimited permission to copy and/or distribute it,
615 # with or without modifications, as long as this notice is preserved.
9194616
9195617 # This macro actually does too much. Some checks are only needed if
9196618 # your package does certain things. But this isn't really a big deal.
9207629 # arguments mandatory, and then we can depend on a new Autoconf
9208630 # release and drop the old call support.
9209631 AC_DEFUN([AM_INIT_AUTOMAKE],
9210 [AC_PREREQ([2.62])dnl
632 [AC_PREREQ([2.65])dnl
9211633 dnl Autoconf wants to disallow AM_ names. We explicitly allow
9212634 dnl the ones we care about.
9213635 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
9236658 # Define the identity of the package.
9237659 dnl Distinguish between old-style and new-style calls.
9238660 m4_ifval([$2],
9239 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
661 [AC_DIAGNOSE([obsolete],
662 [$0: two- and three-arguments forms are deprecated.])
663 m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
9240664 AC_SUBST([PACKAGE], [$1])dnl
9241665 AC_SUBST([VERSION], [$2])],
9242666 [_AM_SET_OPTIONS([$1])dnl
9243667 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
9244 m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
668 m4_if(
669 m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
670 [ok:ok],,
9245671 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
9246672 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
9247673 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
9248674
9249675 _AM_IF_OPTION([no-define],,
9250 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
9251 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
676 [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
677 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
9252678
9253679 # Some tools Automake needs.
9254680 AC_REQUIRE([AM_SANITY_CHECK])dnl
9255681 AC_REQUIRE([AC_ARG_PROGRAM])dnl
9256 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
9257 AM_MISSING_PROG(AUTOCONF, autoconf)
9258 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
9259 AM_MISSING_PROG(AUTOHEADER, autoheader)
9260 AM_MISSING_PROG(MAKEINFO, makeinfo)
682 AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
683 AM_MISSING_PROG([AUTOCONF], [autoconf])
684 AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
685 AM_MISSING_PROG([AUTOHEADER], [autoheader])
686 AM_MISSING_PROG([MAKEINFO], [makeinfo])
9261687 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
9262688 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
9263 AC_REQUIRE([AM_PROG_MKDIR_P])dnl
689 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
690 # For better backward compatibility. To be removed once Automake 1.9.x
691 # dies out for good. For more background, see:
692 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
693 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
694 AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
9264695 # We need awk for the "check" target. The system "awk" is bad on
9265696 # some platforms.
9266697 AC_REQUIRE([AC_PROG_AWK])dnl
9271702 [_AM_PROG_TAR([v7])])])
9272703 _AM_IF_OPTION([no-dependencies],,
9273704 [AC_PROVIDE_IFELSE([AC_PROG_CC],
9274 [_AM_DEPENDENCIES(CC)],
9275 [define([AC_PROG_CC],
9276 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
705 [_AM_DEPENDENCIES([CC])],
706 [m4_define([AC_PROG_CC],
707 m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
9277708 AC_PROVIDE_IFELSE([AC_PROG_CXX],
9278 [_AM_DEPENDENCIES(CXX)],
9279 [define([AC_PROG_CXX],
9280 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
709 [_AM_DEPENDENCIES([CXX])],
710 [m4_define([AC_PROG_CXX],
711 m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
9281712 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
9282 [_AM_DEPENDENCIES(OBJC)],
9283 [define([AC_PROG_OBJC],
9284 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
9285 ])
9286 _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
9287 dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
9288 dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
9289 dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
713 [_AM_DEPENDENCIES([OBJC])],
714 [m4_define([AC_PROG_OBJC],
715 m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
716 AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
717 [_AM_DEPENDENCIES([OBJCXX])],
718 [m4_define([AC_PROG_OBJCXX],
719 m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
720 ])
721 AC_REQUIRE([AM_SILENT_RULES])dnl
722 dnl The testsuite driver may need to know about EXEEXT, so add the
723 dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
724 dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
9290725 AC_CONFIG_COMMANDS_PRE(dnl
9291726 [m4_provide_if([_AM_COMPILER_EXEEXT],
9292727 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
9293728 ])
9294729
9295 dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
730 dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
9296731 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
9297732 dnl mangled by Autoconf and run in a shell conditional statement.
9298733 m4_define([_AC_COMPILER_EXEEXT],
9320755 done
9321756 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
9322757
9323 # Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation,
9324 # Inc.
9325 #
9326 # This file is free software; the Free Software Foundation
9327 # gives unlimited permission to copy and/or distribute it,
9328 # with or without modifications, as long as this notice is preserved.
9329
9330 # serial 1
758 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
759 #
760 # This file is free software; the Free Software Foundation
761 # gives unlimited permission to copy and/or distribute it,
762 # with or without modifications, as long as this notice is preserved.
9331763
9332764 # AM_PROG_INSTALL_SH
9333765 # ------------------
9342774 install_sh="\${SHELL} $am_aux_dir/install-sh"
9343775 esac
9344776 fi
9345 AC_SUBST(install_sh)])
9346
9347 # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
9348 #
9349 # This file is free software; the Free Software Foundation
9350 # gives unlimited permission to copy and/or distribute it,
9351 # with or without modifications, as long as this notice is preserved.
9352
9353 # serial 2
777 AC_SUBST([install_sh])])
778
779 # Copyright (C) 2003-2013 Free Software Foundation, Inc.
780 #
781 # This file is free software; the Free Software Foundation
782 # gives unlimited permission to copy and/or distribute it,
783 # with or without modifications, as long as this notice is preserved.
9354784
9355785 # Check whether the underlying file-system supports filenames
9356786 # with a leading dot. For instance MS-DOS doesn't.
9367797
9368798 # Check to see how 'make' treats includes. -*- Autoconf -*-
9369799
9370 # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
9371 #
9372 # This file is free software; the Free Software Foundation
9373 # gives unlimited permission to copy and/or distribute it,
9374 # with or without modifications, as long as this notice is preserved.
9375
9376 # serial 4
800 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
801 #
802 # This file is free software; the Free Software Foundation
803 # gives unlimited permission to copy and/or distribute it,
804 # with or without modifications, as long as this notice is preserved.
9377805
9378806 # AM_MAKE_INCLUDE()
9379807 # -----------------
9392820 _am_result=none
9393821 # First try GNU make style include.
9394822 echo "include confinc" > confmf
9395 # Ignore all kinds of additional output from `make'.
823 # Ignore all kinds of additional output from 'make'.
9396824 case `$am_make -s -f confmf 2> /dev/null` in #(
9397825 *the\ am__doit\ target*)
9398826 am__include=include
9417845 rm -f confinc confmf
9418846 ])
9419847
9420 # Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008
9421 # Free Software Foundation, Inc.
9422 #
9423 # This file is free software; the Free Software Foundation
9424 # gives unlimited permission to copy and/or distribute it,
9425 # with or without modifications, as long as this notice is preserved.
9426
9427 # serial 6
848 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
849 #
850 # This file is free software; the Free Software Foundation
851 # gives unlimited permission to copy and/or distribute it,
852 # with or without modifications, as long as this notice is preserved.
9428853
9429854 # AM_PROG_CC_C_O
9430855 # --------------
9454879
9455880 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
9456881
9457 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
9458 # Free Software Foundation, Inc.
9459 #
9460 # This file is free software; the Free Software Foundation
9461 # gives unlimited permission to copy and/or distribute it,
9462 # with or without modifications, as long as this notice is preserved.
9463
9464 # serial 6
882 # Copyright (C) 1997-2013 Free Software Foundation, Inc.
883 #
884 # This file is free software; the Free Software Foundation
885 # gives unlimited permission to copy and/or distribute it,
886 # with or without modifications, as long as this notice is preserved.
9465887
9466888 # AM_MISSING_PROG(NAME, PROGRAM)
9467889 # ------------------------------
9470892 $1=${$1-"${am_missing_run}$2"}
9471893 AC_SUBST($1)])
9472894
9473
9474895 # AM_MISSING_HAS_RUN
9475896 # ------------------
9476 # Define MISSING if not defined so far and test if it supports --run.
9477 # If it does, set am_missing_run to use it, otherwise, to nothing.
897 # Define MISSING if not defined so far and test if it is modern enough.
898 # If it is, set am_missing_run to use it, otherwise, to nothing.
9478899 AC_DEFUN([AM_MISSING_HAS_RUN],
9479900 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
9480901 AC_REQUIRE_AUX_FILE([missing])dnl
9487908 esac
9488909 fi
9489910 # Use eval to expand $SHELL
9490 if eval "$MISSING --run true"; then
9491 am_missing_run="$MISSING --run "
911 if eval "$MISSING --is-lightweight"; then
912 am_missing_run="$MISSING "
9492913 else
9493914 am_missing_run=
9494 AC_MSG_WARN([`missing' script is too old or missing])
9495 fi
9496 ])
9497
9498 # Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation,
9499 # Inc.
9500 #
9501 # This file is free software; the Free Software Foundation
9502 # gives unlimited permission to copy and/or distribute it,
9503 # with or without modifications, as long as this notice is preserved.
9504
9505 # serial 1
9506
9507 # AM_PROG_MKDIR_P
9508 # ---------------
9509 # Check for `mkdir -p'.
9510 AC_DEFUN([AM_PROG_MKDIR_P],
9511 [AC_PREREQ([2.60])dnl
9512 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
9513 dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
9514 dnl while keeping a definition of mkdir_p for backward compatibility.
9515 dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
9516 dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
9517 dnl Makefile.ins that do not define MKDIR_P, so we do our own
9518 dnl adjustment using top_builddir (which is defined more often than
9519 dnl MKDIR_P).
9520 AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
9521 case $mkdir_p in
9522 [[\\/$]]* | ?:[[\\/]]*) ;;
9523 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
9524 esac
915 AC_MSG_WARN(['missing' script is too old or missing])
916 fi
9525917 ])
9526918
9527919 # Helper functions for option handling. -*- Autoconf -*-
9528920
9529 # Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software
9530 # Foundation, Inc.
9531 #
9532 # This file is free software; the Free Software Foundation
9533 # gives unlimited permission to copy and/or distribute it,
9534 # with or without modifications, as long as this notice is preserved.
9535
9536 # serial 5
921 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
922 #
923 # This file is free software; the Free Software Foundation
924 # gives unlimited permission to copy and/or distribute it,
925 # with or without modifications, as long as this notice is preserved.
9537926
9538927 # _AM_MANGLE_OPTION(NAME)
9539928 # -----------------------
9544933 # --------------------
9545934 # Set option NAME. Presently that only means defining a flag for this option.
9546935 AC_DEFUN([_AM_SET_OPTION],
9547 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
936 [m4_define(_AM_MANGLE_OPTION([$1]), [1])])
9548937
9549938 # _AM_SET_OPTIONS(OPTIONS)
9550939 # ------------------------
9560949
9561950 # Check to make sure that the build environment is sane. -*- Autoconf -*-
9562951
9563 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
9564 # Free Software Foundation, Inc.
9565 #
9566 # This file is free software; the Free Software Foundation
9567 # gives unlimited permission to copy and/or distribute it,
9568 # with or without modifications, as long as this notice is preserved.
9569
9570 # serial 5
952 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
953 #
954 # This file is free software; the Free Software Foundation
955 # gives unlimited permission to copy and/or distribute it,
956 # with or without modifications, as long as this notice is preserved.
9571957
9572958 # AM_SANITY_CHECK
9573959 # ---------------
9574960 AC_DEFUN([AM_SANITY_CHECK],
9575961 [AC_MSG_CHECKING([whether build environment is sane])
9576 # Just in case
9577 sleep 1
9578 echo timestamp > conftest.file
9579962 # Reject unsafe characters in $srcdir or the absolute working directory
9580963 # name. Accept space and tab only in the latter.
9581964 am_lf='
9586969 esac
9587970 case $srcdir in
9588971 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
9589 AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
972 AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
9590973 esac
9591974
9592 # Do `set' in a subshell so we don't clobber the current shell's
975 # Do 'set' in a subshell so we don't clobber the current shell's
9593976 # arguments. Must try -L first in case configure is actually a
9594977 # symlink; some systems play weird games with the mod time of symlinks
9595978 # (eg FreeBSD returns the mod time of the symlink's containing
9596979 # directory).
9597980 if (
9598 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
9599 if test "$[*]" = "X"; then
9600 # -L didn't work.
9601 set X `ls -t "$srcdir/configure" conftest.file`
9602 fi
9603 rm -f conftest.file
9604 if test "$[*]" != "X $srcdir/configure conftest.file" \
9605 && test "$[*]" != "X conftest.file $srcdir/configure"; then
9606
9607 # If neither matched, then we have a broken ls. This can happen
9608 # if, for instance, CONFIG_SHELL is bash and it inherits a
9609 # broken ls alias from the environment. This has actually
9610 # happened. Such a system could not be considered "sane".
9611 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
9612 alias in your environment])
9613 fi
9614
981 am_has_slept=no
982 for am_try in 1 2; do
983 echo "timestamp, slept: $am_has_slept" > conftest.file
984 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
985 if test "$[*]" = "X"; then
986 # -L didn't work.
987 set X `ls -t "$srcdir/configure" conftest.file`
988 fi
989 if test "$[*]" != "X $srcdir/configure conftest.file" \
990 && test "$[*]" != "X conftest.file $srcdir/configure"; then
991
992 # If neither matched, then we have a broken ls. This can happen
993 # if, for instance, CONFIG_SHELL is bash and it inherits a
994 # broken ls alias from the environment. This has actually
995 # happened. Such a system could not be considered "sane".
996 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
997 alias in your environment])
998 fi
999 if test "$[2]" = conftest.file || test $am_try -eq 2; then
1000 break
1001 fi
1002 # Just in case.
1003 sleep 1
1004 am_has_slept=yes
1005 done
96151006 test "$[2]" = conftest.file
96161007 )
96171008 then
96211012 AC_MSG_ERROR([newly created file is older than distributed files!
96221013 Check your system clock])
96231014 fi
9624 AC_MSG_RESULT(yes)])
9625
9626 # Copyright (C) 2009, 2011 Free Software Foundation, Inc.
9627 #
9628 # This file is free software; the Free Software Foundation
9629 # gives unlimited permission to copy and/or distribute it,
9630 # with or without modifications, as long as this notice is preserved.
9631
9632 # serial 2
1015 AC_MSG_RESULT([yes])
1016 # If we didn't sleep, we still need to ensure time stamps of config.status and
1017 # generated files are strictly newer.
1018 am_sleep_pid=
1019 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
1020 ( sleep 1 ) &
1021 am_sleep_pid=$!
1022 fi
1023 AC_CONFIG_COMMANDS_PRE(
1024 [AC_MSG_CHECKING([that generated files are newer than configure])
1025 if test -n "$am_sleep_pid"; then
1026 # Hide warnings about reused PIDs.
1027 wait $am_sleep_pid 2>/dev/null
1028 fi
1029 AC_MSG_RESULT([done])])
1030 rm -f conftest.file
1031 ])
1032
1033 # Copyright (C) 2009-2013 Free Software Foundation, Inc.
1034 #
1035 # This file is free software; the Free Software Foundation
1036 # gives unlimited permission to copy and/or distribute it,
1037 # with or without modifications, as long as this notice is preserved.
96331038
96341039 # AM_SILENT_RULES([DEFAULT])
96351040 # --------------------------
96361041 # Enable less verbose build rules; with the default set to DEFAULT
9637 # (`yes' being less verbose, `no' or empty being verbose).
1042 # ("yes" being less verbose, "no" or empty being verbose).
96381043 AC_DEFUN([AM_SILENT_RULES],
9639 [AC_ARG_ENABLE([silent-rules],
9640 [ --enable-silent-rules less verbose build output (undo: `make V=1')
9641 --disable-silent-rules verbose build output (undo: `make V=0')])
9642 case $enable_silent_rules in
9643 yes) AM_DEFAULT_VERBOSITY=0;;
9644 no) AM_DEFAULT_VERBOSITY=1;;
9645 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
1044 [AC_ARG_ENABLE([silent-rules], [dnl
1045 AS_HELP_STRING(
1046 [--enable-silent-rules],
1047 [less verbose build output (undo: "make V=1")])
1048 AS_HELP_STRING(
1049 [--disable-silent-rules],
1050 [verbose build output (undo: "make V=0")])dnl
1051 ])
1052 case $enable_silent_rules in @%:@ (((
1053 yes) AM_DEFAULT_VERBOSITY=0;;
1054 no) AM_DEFAULT_VERBOSITY=1;;
1055 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
96461056 esac
96471057 dnl
9648 dnl A few `make' implementations (e.g., NonStop OS and NextStep)
1058 dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
96491059 dnl do not support nested variable expansions.
96501060 dnl See automake bug#9928 and bug#10237.
96511061 am_make=${MAKE-make}
96631073 am_cv_make_support_nested_variables=no
96641074 fi])
96651075 if test $am_cv_make_support_nested_variables = yes; then
9666 dnl Using `$V' instead of `$(V)' breaks IRIX make.
1076 dnl Using '$V' instead of '$(V)' breaks IRIX make.
96671077 AM_V='$(V)'
96681078 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
96691079 else
96801090 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
96811091 ])
96821092
9683 # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
9684 #
9685 # This file is free software; the Free Software Foundation
9686 # gives unlimited permission to copy and/or distribute it,
9687 # with or without modifications, as long as this notice is preserved.
9688
9689 # serial 1
1093 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
1094 #
1095 # This file is free software; the Free Software Foundation
1096 # gives unlimited permission to copy and/or distribute it,
1097 # with or without modifications, as long as this notice is preserved.
96901098
96911099 # AM_PROG_INSTALL_STRIP
96921100 # ---------------------
9693 # One issue with vendor `install' (even GNU) is that you can't
1101 # One issue with vendor 'install' (even GNU) is that you can't
96941102 # specify the program used to strip binaries. This is especially
96951103 # annoying in cross-compiling environments, where the build's strip
96961104 # is unlikely to handle the host's binaries.
96971105 # Fortunately install-sh will honor a STRIPPROG variable, so we
9698 # always use install-sh in `make install-strip', and initialize
1106 # always use install-sh in "make install-strip", and initialize
96991107 # STRIPPROG with the value of the STRIP variable (set by the user).
97001108 AC_DEFUN([AM_PROG_INSTALL_STRIP],
97011109 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
9702 # Installed binaries are usually stripped using `strip' when the user
9703 # run `make install-strip'. However `strip' might not be the right
1110 # Installed binaries are usually stripped using 'strip' when the user
1111 # run "make install-strip". However 'strip' might not be the right
97041112 # tool to use in cross-compilation environments, therefore Automake
9705 # will honor the `STRIP' environment variable to overrule this program.
9706 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
1113 # will honor the 'STRIP' environment variable to overrule this program.
1114 dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
97071115 if test "$cross_compiling" != no; then
97081116 AC_CHECK_TOOL([STRIP], [strip], :)
97091117 fi
97101118 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
97111119 AC_SUBST([INSTALL_STRIP_PROGRAM])])
97121120
9713 # Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
9714 #
9715 # This file is free software; the Free Software Foundation
9716 # gives unlimited permission to copy and/or distribute it,
9717 # with or without modifications, as long as this notice is preserved.
9718
9719 # serial 3
1121 # Copyright (C) 2006-2013 Free Software Foundation, Inc.
1122 #
1123 # This file is free software; the Free Software Foundation
1124 # gives unlimited permission to copy and/or distribute it,
1125 # with or without modifications, as long as this notice is preserved.
97201126
97211127 # _AM_SUBST_NOTMAKE(VARIABLE)
97221128 # ---------------------------
97311137
97321138 # Check how to create a tarball. -*- Autoconf -*-
97331139
9734 # Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc.
9735 #
9736 # This file is free software; the Free Software Foundation
9737 # gives unlimited permission to copy and/or distribute it,
9738 # with or without modifications, as long as this notice is preserved.
9739
9740 # serial 2
1140 # Copyright (C) 2004-2013 Free Software Foundation, Inc.
1141 #
1142 # This file is free software; the Free Software Foundation
1143 # gives unlimited permission to copy and/or distribute it,
1144 # with or without modifications, as long as this notice is preserved.
97411145
97421146 # _AM_PROG_TAR(FORMAT)
97431147 # --------------------
97441148 # Check how to create a tarball in format FORMAT.
9745 # FORMAT should be one of `v7', `ustar', or `pax'.
1149 # FORMAT should be one of 'v7', 'ustar', or 'pax'.
97461150 #
97471151 # Substitute a variable $(am__tar) that is a command
97481152 # writing to stdout a FORMAT-tarball containing the directory
97521156 # Substitute a variable $(am__untar) that extract such
97531157 # a tarball read from stdin.
97541158 # $(am__untar) < result.tar
1159 #
97551160 AC_DEFUN([_AM_PROG_TAR],
97561161 [# Always define AMTAR for backward compatibility. Yes, it's still used
97571162 # in the wild :-( We should find a proper way to deprecate it ...
97581163 AC_SUBST([AMTAR], ['$${TAR-tar}'])
1164
1165 # We'll loop over all known methods to create a tar archive until one works.
1166 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1167
97591168 m4_if([$1], [v7],
9760 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
9761 [m4_case([$1], [ustar],, [pax],,
9762 [m4_fatal([Unknown tar format])])
9763 AC_MSG_CHECKING([how to create a $1 tar archive])
9764 # Loop over all known methods to create a tar archive until one works.
9765 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
9766 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
9767 # Do not fold the above two line into one, because Tru64 sh and
9768 # Solaris sh will not grok spaces in the rhs of `-'.
9769 for _am_tool in $_am_tools
9770 do
9771 case $_am_tool in
9772 gnutar)
9773 for _am_tar in tar gnutar gtar;
9774 do
9775 AM_RUN_LOG([$_am_tar --version]) && break
9776 done
9777 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
9778 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
9779 am__untar="$_am_tar -xf -"
9780 ;;
9781 plaintar)
9782 # Must skip GNU tar: if it does not support --format= it doesn't create
9783 # ustar tarball either.
9784 (tar --version) >/dev/null 2>&1 && continue
9785 am__tar='tar chf - "$$tardir"'
9786 am__tar_='tar chf - "$tardir"'
9787 am__untar='tar xf -'
9788 ;;
9789 pax)
9790 am__tar='pax -L -x $1 -w "$$tardir"'
9791 am__tar_='pax -L -x $1 -w "$tardir"'
9792 am__untar='pax -r'
9793 ;;
9794 cpio)
9795 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
9796 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
9797 am__untar='cpio -i -H $1 -d'
9798 ;;
9799 none)
9800 am__tar=false
9801 am__tar_=false
9802 am__untar=false
9803 ;;
9804 esac
9805
9806 # If the value was cached, stop now. We just wanted to have am__tar
9807 # and am__untar set.
9808 test -n "${am_cv_prog_tar_$1}" && break
9809
9810 # tar/untar a dummy directory, and stop if the command works
1169 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
1170
1171 [m4_case([$1],
1172 [ustar],
1173 [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
1174 # There is notably a 21 bits limit for the UID and the GID. In fact,
1175 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
1176 # and bug#13588).
1177 am_max_uid=2097151 # 2^21 - 1
1178 am_max_gid=$am_max_uid
1179 # The $UID and $GID variables are not portable, so we need to resort
1180 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
1181 # below are definitely unexpected, so allow the users to see them
1182 # (that is, avoid stderr redirection).
1183 am_uid=`id -u || echo unknown`
1184 am_gid=`id -g || echo unknown`
1185 AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
1186 if test $am_uid -le $am_max_uid; then
1187 AC_MSG_RESULT([yes])
1188 else
1189 AC_MSG_RESULT([no])
1190 _am_tools=none
1191 fi
1192 AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
1193 if test $am_gid -le $am_max_gid; then
1194 AC_MSG_RESULT([yes])
1195 else
1196 AC_MSG_RESULT([no])
1197 _am_tools=none
1198 fi],
1199
1200 [pax],
1201 [],
1202
1203 [m4_fatal([Unknown tar format])])
1204
1205 AC_MSG_CHECKING([how to create a $1 tar archive])
1206
1207 # Go ahead even if we have the value already cached. We do so because we
1208 # need to set the values for the 'am__tar' and 'am__untar' variables.
1209 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
1210
1211 for _am_tool in $_am_tools; do
1212 case $_am_tool in
1213 gnutar)
1214 for _am_tar in tar gnutar gtar; do
1215 AM_RUN_LOG([$_am_tar --version]) && break
1216 done
1217 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1218 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1219 am__untar="$_am_tar -xf -"
1220 ;;
1221 plaintar)
1222 # Must skip GNU tar: if it does not support --format= it doesn't create
1223 # ustar tarball either.
1224 (tar --version) >/dev/null 2>&1 && continue
1225 am__tar='tar chf - "$$tardir"'
1226 am__tar_='tar chf - "$tardir"'
1227 am__untar='tar xf -'
1228 ;;
1229 pax)
1230 am__tar='pax -L -x $1 -w "$$tardir"'
1231 am__tar_='pax -L -x $1 -w "$tardir"'
1232 am__untar='pax -r'
1233 ;;
1234 cpio)
1235 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1236 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1237 am__untar='cpio -i -H $1 -d'
1238 ;;
1239 none)
1240 am__tar=false
1241 am__tar_=false
1242 am__untar=false
1243 ;;
1244 esac
1245
1246 # If the value was cached, stop now. We just wanted to have am__tar
1247 # and am__untar set.
1248 test -n "${am_cv_prog_tar_$1}" && break
1249
1250 # tar/untar a dummy directory, and stop if the command works.
1251 rm -rf conftest.dir
1252 mkdir conftest.dir
1253 echo GrepMe > conftest.dir/file
1254 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1255 rm -rf conftest.dir
1256 if test -s conftest.tar; then
1257 AM_RUN_LOG([$am__untar <conftest.tar])
1258 AM_RUN_LOG([cat conftest.dir/file])
1259 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1260 fi
1261 done
98111262 rm -rf conftest.dir
9812 mkdir conftest.dir
9813 echo GrepMe > conftest.dir/file
9814 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
9815 rm -rf conftest.dir
9816 if test -s conftest.tar; then
9817 AM_RUN_LOG([$am__untar <conftest.tar])
9818 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
9819 fi
9820 done
9821 rm -rf conftest.dir
9822
9823 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
9824 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1263
1264 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1265 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1266
98251267 AC_SUBST([am__tar])
98261268 AC_SUBST([am__untar])
98271269 ]) # _AM_PROG_TAR
98281270
1271 m4_include([m4/libtool.m4])
1272 m4_include([m4/ltoptions.m4])
1273 m4_include([m4/ltsugar.m4])
1274 m4_include([m4/ltversion.m4])
1275 m4_include([m4/lt~obsolete.m4])
00 #! /bin/sh
11 # Wrapper for compilers which do not understand '-c -o'.
22
3 scriptversion=2012-01-04.17; # UTC
4
5 # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2009, 2010, 2012 Free
6 # Software Foundation, Inc.
3 scriptversion=2012-10-14.11; # UTC
4
5 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
76 # Written by Tom Tromey <tromey@cygnus.com>.
87 #
98 # This program is free software; you can redistribute it and/or modify
7675 esac
7776 ;;
7877 esac
78 }
79
80 # func_cl_dashL linkdir
81 # Make cl look for libraries in LINKDIR
82 func_cl_dashL ()
83 {
84 func_file_conv "$1"
85 if test -z "$lib_path"; then
86 lib_path=$file
87 else
88 lib_path="$lib_path;$file"
89 fi
90 linker_opts="$linker_opts -LIBPATH:$file"
91 }
92
93 # func_cl_dashl library
94 # Do a library search-path lookup for cl
95 func_cl_dashl ()
96 {
97 lib=$1
98 found=no
99 save_IFS=$IFS
100 IFS=';'
101 for dir in $lib_path $LIB
102 do
103 IFS=$save_IFS
104 if $shared && test -f "$dir/$lib.dll.lib"; then
105 found=yes
106 lib=$dir/$lib.dll.lib
107 break
108 fi
109 if test -f "$dir/$lib.lib"; then
110 found=yes
111 lib=$dir/$lib.lib
112 break
113 fi
114 if test -f "$dir/lib$lib.a"; then
115 found=yes
116 lib=$dir/lib$lib.a
117 break
118 fi
119 done
120 IFS=$save_IFS
121
122 if test "$found" != yes; then
123 lib=$lib.lib
124 fi
79125 }
80126
81127 # func_cl_wrapper cl arg...
108154 ;;
109155 esac
110156 ;;
157 -I)
158 eat=1
159 func_file_conv "$2" mingw
160 set x "$@" -I"$file"
161 shift
162 ;;
111163 -I*)
112164 func_file_conv "${1#-I}" mingw
113165 set x "$@" -I"$file"
114166 shift
115167 ;;
168 -l)
169 eat=1
170 func_cl_dashl "$2"
171 set x "$@" "$lib"
172 shift
173 ;;
116174 -l*)
117 lib=${1#-l}
118 found=no
119 save_IFS=$IFS
120 IFS=';'
121 for dir in $lib_path $LIB
122 do
123 IFS=$save_IFS
124 if $shared && test -f "$dir/$lib.dll.lib"; then
125 found=yes
126 set x "$@" "$dir/$lib.dll.lib"
127 break
128 fi
129 if test -f "$dir/$lib.lib"; then
130 found=yes
131 set x "$@" "$dir/$lib.lib"
132 break
133 fi
134 done
135 IFS=$save_IFS
136
137 test "$found" != yes && set x "$@" "$lib.lib"
138 shift
175 func_cl_dashl "${1#-l}"
176 set x "$@" "$lib"
177 shift
178 ;;
179 -L)
180 eat=1
181 func_cl_dashL "$2"
139182 ;;
140183 -L*)
141 func_file_conv "${1#-L}"
142 if test -z "$lib_path"; then
143 lib_path=$file
144 else
145 lib_path="$lib_path;$file"
146 fi
147 linker_opts="$linker_opts -LIBPATH:$file"
184 func_cl_dashL "${1#-L}"
148185 ;;
149186 -static)
150187 shared=false
00 #! /bin/sh
11 # Attempt to guess a canonical system name.
2 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
4 # 2011, 2012 Free Software Foundation, Inc.
5
6 timestamp='2012-02-10'
2 # Copyright 1992-2013 Free Software Foundation, Inc.
3
4 timestamp='2013-06-10'
75
86 # This file is free software; you can redistribute it and/or modify it
97 # under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2 of the License, or
8 # the Free Software Foundation; either version 3 of the License, or
119 # (at your option) any later version.
1210 #
1311 # This program is distributed in the hope that it will be useful, but
2119 # As a special exception to the GNU General Public License, if you
2220 # distribute this file as part of a program that contains a
2321 # configuration script generated by Autoconf, you may include it under
24 # the same distribution terms that you use for the rest of that program.
25
26
27 # Originally written by Per Bothner. Please send patches (context
28 # diff format) to <config-patches@gnu.org> and include a ChangeLog
29 # entry.
22 # the same distribution terms that you use for the rest of that
23 # program. This Exception is an additional permission under section 7
24 # of the GNU General Public License, version 3 ("GPLv3").
3025 #
31 # This script attempts to guess a canonical system name similar to
32 # config.sub. If it succeeds, it prints the system name on stdout, and
33 # exits with 0. Otherwise, it exits with 1.
26 # Originally written by Per Bothner.
3427 #
3528 # You can get the latest version of this script from:
3629 # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
30 #
31 # Please send patches with a ChangeLog entry to config-patches@gnu.org.
32
3733
3834 me=`echo "$0" | sed -e 's,.*/,,'`
3935
5349 GNU config.guess ($timestamp)
5450
5551 Originally written by Per Bothner.
56 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
57 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
58 Free Software Foundation, Inc.
52 Copyright 1992-2013 Free Software Foundation, Inc.
5953
6054 This is free software; see the source for copying conditions. There is NO
6155 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
136130 UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
137131 UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
138132 UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
133
134 case "${UNAME_SYSTEM}" in
135 Linux|GNU|GNU/*)
136 # If the system lacks a compiler, then just pick glibc.
137 # We could probably try harder.
138 LIBC=gnu
139
140 eval $set_cc_for_build
141 cat <<-EOF > $dummy.c
142 #include <features.h>
143 #if defined(__UCLIBC__)
144 LIBC=uclibc
145 #elif defined(__dietlibc__)
146 LIBC=dietlibc
147 #else
148 LIBC=gnu
149 #endif
150 EOF
151 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
152 ;;
153 esac
139154
140155 # Note: order is significant - the case branches are not exclusive.
141156
198213 # contains redundant information, the shorter form:
199214 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
200215 echo "${machine}-${os}${release}"
216 exit ;;
217 *:Bitrig:*:*)
218 UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
219 echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
201220 exit ;;
202221 *:OpenBSD:*:*)
203222 UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
301320 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
302321 echo arm-acorn-riscix${UNAME_RELEASE}
303322 exit ;;
304 arm:riscos:*:*|arm:RISCOS:*:*)
323 arm*:riscos:*:*|arm*:RISCOS:*:*)
305324 echo arm-unknown-riscos
306325 exit ;;
307326 SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
800819 i*:CYGWIN*:*)
801820 echo ${UNAME_MACHINE}-pc-cygwin
802821 exit ;;
822 *:MINGW64*:*)
823 echo ${UNAME_MACHINE}-pc-mingw64
824 exit ;;
803825 *:MINGW*:*)
804826 echo ${UNAME_MACHINE}-pc-mingw32
805827 exit ;;
851873 exit ;;
852874 *:GNU:*:*)
853875 # the GNU system
854 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
876 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
855877 exit ;;
856878 *:GNU/*:*:*)
857879 # other systems with GNU libc and userland
858 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
880 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC}
859881 exit ;;
860882 i*86:Minix:*:*)
861883 echo ${UNAME_MACHINE}-pc-minix
862884 exit ;;
863885 aarch64:Linux:*:*)
864 echo ${UNAME_MACHINE}-unknown-linux-gnu
886 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
865887 exit ;;
866888 aarch64_be:Linux:*:*)
867889 UNAME_MACHINE=aarch64_be
868 echo ${UNAME_MACHINE}-unknown-linux-gnu
890 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
869891 exit ;;
870892 alpha:Linux:*:*)
871893 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
878900 EV68*) UNAME_MACHINE=alphaev68 ;;
879901 esac
880902 objdump --private-headers /bin/sh | grep -q ld.so.1
881 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
882 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
903 if test "$?" = 0 ; then LIBC="gnulibc1" ; fi
904 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
905 exit ;;
906 arc:Linux:*:* | arceb:Linux:*:*)
907 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
883908 exit ;;
884909 arm*:Linux:*:*)
885910 eval $set_cc_for_build
886911 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
887912 | grep -q __ARM_EABI__
888913 then
889 echo ${UNAME_MACHINE}-unknown-linux-gnu
914 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
890915 else
891916 if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
892917 | grep -q __ARM_PCS_VFP
893918 then
894 echo ${UNAME_MACHINE}-unknown-linux-gnueabi
919 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi
895920 else
896 echo ${UNAME_MACHINE}-unknown-linux-gnueabihf
921 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf
897922 fi
898923 fi
899924 exit ;;
900925 avr32*:Linux:*:*)
901 echo ${UNAME_MACHINE}-unknown-linux-gnu
926 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
902927 exit ;;
903928 cris:Linux:*:*)
904 echo ${UNAME_MACHINE}-axis-linux-gnu
929 echo ${UNAME_MACHINE}-axis-linux-${LIBC}
905930 exit ;;
906931 crisv32:Linux:*:*)
907 echo ${UNAME_MACHINE}-axis-linux-gnu
932 echo ${UNAME_MACHINE}-axis-linux-${LIBC}
908933 exit ;;
909934 frv:Linux:*:*)
910 echo ${UNAME_MACHINE}-unknown-linux-gnu
935 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
911936 exit ;;
912937 hexagon:Linux:*:*)
913 echo ${UNAME_MACHINE}-unknown-linux-gnu
938 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
914939 exit ;;
915940 i*86:Linux:*:*)
916 LIBC=gnu
917 eval $set_cc_for_build
918 sed 's/^ //' << EOF >$dummy.c
919 #ifdef __dietlibc__
920 LIBC=dietlibc
921 #endif
922 EOF
923 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
924 echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
941 echo ${UNAME_MACHINE}-pc-linux-${LIBC}
925942 exit ;;
926943 ia64:Linux:*:*)
927 echo ${UNAME_MACHINE}-unknown-linux-gnu
944 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
928945 exit ;;
929946 m32r*:Linux:*:*)
930 echo ${UNAME_MACHINE}-unknown-linux-gnu
947 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
931948 exit ;;
932949 m68*:Linux:*:*)
933 echo ${UNAME_MACHINE}-unknown-linux-gnu
950 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
934951 exit ;;
935952 mips:Linux:*:* | mips64:Linux:*:*)
936953 eval $set_cc_for_build
949966 #endif
950967 EOF
951968 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
952 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
969 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
953970 ;;
971 or1k:Linux:*:*)
972 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
973 exit ;;
954974 or32:Linux:*:*)
955 echo ${UNAME_MACHINE}-unknown-linux-gnu
975 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
956976 exit ;;
957977 padre:Linux:*:*)
958 echo sparc-unknown-linux-gnu
978 echo sparc-unknown-linux-${LIBC}
959979 exit ;;
960980 parisc64:Linux:*:* | hppa64:Linux:*:*)
961 echo hppa64-unknown-linux-gnu
981 echo hppa64-unknown-linux-${LIBC}
962982 exit ;;
963983 parisc:Linux:*:* | hppa:Linux:*:*)
964984 # Look for CPU level
965985 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
966 PA7*) echo hppa1.1-unknown-linux-gnu ;;
967 PA8*) echo hppa2.0-unknown-linux-gnu ;;
968 *) echo hppa-unknown-linux-gnu ;;
986 PA7*) echo hppa1.1-unknown-linux-${LIBC} ;;
987 PA8*) echo hppa2.0-unknown-linux-${LIBC} ;;
988 *) echo hppa-unknown-linux-${LIBC} ;;
969989 esac
970990 exit ;;
971991 ppc64:Linux:*:*)
972 echo powerpc64-unknown-linux-gnu
992 echo powerpc64-unknown-linux-${LIBC}
973993 exit ;;
974994 ppc:Linux:*:*)
975 echo powerpc-unknown-linux-gnu
995 echo powerpc-unknown-linux-${LIBC}
996 exit ;;
997 ppc64le:Linux:*:*)
998 echo powerpc64le-unknown-linux-${LIBC}
999 exit ;;
1000 ppcle:Linux:*:*)
1001 echo powerpcle-unknown-linux-${LIBC}
9761002 exit ;;
9771003 s390:Linux:*:* | s390x:Linux:*:*)
978 echo ${UNAME_MACHINE}-ibm-linux
1004 echo ${UNAME_MACHINE}-ibm-linux-${LIBC}
9791005 exit ;;
9801006 sh64*:Linux:*:*)
981 echo ${UNAME_MACHINE}-unknown-linux-gnu
1007 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
9821008 exit ;;
9831009 sh*:Linux:*:*)
984 echo ${UNAME_MACHINE}-unknown-linux-gnu
1010 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
9851011 exit ;;
9861012 sparc:Linux:*:* | sparc64:Linux:*:*)
987 echo ${UNAME_MACHINE}-unknown-linux-gnu
1013 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
9881014 exit ;;
9891015 tile*:Linux:*:*)
990 echo ${UNAME_MACHINE}-unknown-linux-gnu
1016 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
9911017 exit ;;
9921018 vax:Linux:*:*)
993 echo ${UNAME_MACHINE}-dec-linux-gnu
1019 echo ${UNAME_MACHINE}-dec-linux-${LIBC}
9941020 exit ;;
9951021 x86_64:Linux:*:*)
996 echo ${UNAME_MACHINE}-unknown-linux-gnu
1022 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
9971023 exit ;;
9981024 xtensa*:Linux:*:*)
999 echo ${UNAME_MACHINE}-unknown-linux-gnu
1025 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
10001026 exit ;;
10011027 i*86:DYNIX/ptx:4*:*)
10021028 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
12001226 BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
12011227 echo i586-pc-haiku
12021228 exit ;;
1229 x86_64:Haiku:*:*)
1230 echo x86_64-unknown-haiku
1231 exit ;;
12031232 SX-4:SUPER-UX:*:*)
12041233 echo sx4-nec-superux${UNAME_RELEASE}
12051234 exit ;;
12261255 exit ;;
12271256 *:Darwin:*:*)
12281257 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1229 case $UNAME_PROCESSOR in
1230 i386)
1231 eval $set_cc_for_build
1232 if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
1233 if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
1234 (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
1235 grep IS_64BIT_ARCH >/dev/null
1236 then
1237 UNAME_PROCESSOR="x86_64"
1238 fi
1239 fi ;;
1240 unknown) UNAME_PROCESSOR=powerpc ;;
1241 esac
1258 eval $set_cc_for_build
1259 if test "$UNAME_PROCESSOR" = unknown ; then
1260 UNAME_PROCESSOR=powerpc
1261 fi
1262 if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
1263 if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
1264 (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
1265 grep IS_64BIT_ARCH >/dev/null
1266 then
1267 case $UNAME_PROCESSOR in
1268 i386) UNAME_PROCESSOR=x86_64 ;;
1269 powerpc) UNAME_PROCESSOR=powerpc64 ;;
1270 esac
1271 fi
1272 fi
12421273 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
12431274 exit ;;
12441275 *:procnto*:*:* | *:QNX:[0123456789]*:*)
12551286 NEO-?:NONSTOP_KERNEL:*:*)
12561287 echo neo-tandem-nsk${UNAME_RELEASE}
12571288 exit ;;
1258 NSE-?:NONSTOP_KERNEL:*:*)
1289 NSE-*:NONSTOP_KERNEL:*:*)
12591290 echo nse-tandem-nsk${UNAME_RELEASE}
12601291 exit ;;
12611292 NSR-?:NONSTOP_KERNEL:*:*)
13281359 echo ${UNAME_MACHINE}-unknown-esx
13291360 exit ;;
13301361 esac
1331
1332 #echo '(No uname command or uname output not recognized.)' 1>&2
1333 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
13341362
13351363 eval $set_cc_for_build
13361364 cat >$dummy.c <<EOF
00 #! /bin/sh
11 # Configuration validation subroutine script.
2 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
4 # 2011, 2012 Free Software Foundation, Inc.
5
6 timestamp='2012-02-10'
7
8 # This file is (in principle) common to ALL GNU software.
9 # The presence of a machine in this file suggests that SOME GNU software
10 # can handle that machine. It does not imply ALL GNU software can.
11 #
12 # This file is free software; you can redistribute it and/or modify
13 # it under the terms of the GNU General Public License as published by
14 # the Free Software Foundation; either version 2 of the License, or
2 # Copyright 1992-2013 Free Software Foundation, Inc.
3
4 timestamp='2013-04-24'
5
6 # This file is free software; you can redistribute it and/or modify it
7 # under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 3 of the License, or
159 # (at your option) any later version.
1610 #
17 # This program is distributed in the hope that it will be useful,
18 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 # GNU General Public License for more details.
11 # This program is distributed in the hope that it will be useful, but
12 # WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 # General Public License for more details.
2115 #
2216 # You should have received a copy of the GNU General Public License
2317 # along with this program; if not, see <http://www.gnu.org/licenses/>.
2519 # As a special exception to the GNU General Public License, if you
2620 # distribute this file as part of a program that contains a
2721 # configuration script generated by Autoconf, you may include it under
28 # the same distribution terms that you use for the rest of that program.
29
30
31 # Please send patches to <config-patches@gnu.org>. Submit a context
32 # diff and a properly formatted GNU ChangeLog entry.
22 # the same distribution terms that you use for the rest of that
23 # program. This Exception is an additional permission under section 7
24 # of the GNU General Public License, version 3 ("GPLv3").
25
26
27 # Please send patches with a ChangeLog entry to config-patches@gnu.org.
3328 #
3429 # Configuration subroutine to validate and canonicalize a configuration type.
3530 # Supply the specified configuration type as an argument.
7267 version="\
7368 GNU config.sub ($timestamp)
7469
75 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
76 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
77 Free Software Foundation, Inc.
70 Copyright 1992-2013 Free Software Foundation, Inc.
7871
7972 This is free software; see the source for copying conditions. There is NO
8073 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
122115 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
123116 case $maybe_os in
124117 nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
125 linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
118 linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
126119 knetbsd*-gnu* | netbsd*-gnu* | \
127120 kopensolaris*-gnu* | \
128121 storm-chaos* | os2-emx* | rtmk-nova*)
155148 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
156149 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
157150 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
158 -apple | -axis | -knuth | -cray | -microblaze)
151 -apple | -axis | -knuth | -cray | -microblaze*)
159152 os=
160153 basic_machine=$1
161154 ;;
223216 ;;
224217 -isc*)
225218 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
219 ;;
220 -lynx*178)
221 os=-lynxos178
222 ;;
223 -lynx*5)
224 os=-lynxos5
226225 ;;
227226 -lynx*)
228227 os=-lynxos
252251 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
253252 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
254253 | am33_2.0 \
255 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
256 | be32 | be64 \
254 | arc | arceb \
255 | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \
256 | avr | avr32 \
257 | be32 | be64 \
257258 | bfin \
258259 | c4x | clipper \
259260 | d10v | d30v | dlx | dsp16xx \
266267 | le32 | le64 \
267268 | lm32 \
268269 | m32c | m32r | m32rle | m68000 | m68k | m88k \
269 | maxq | mb | microblaze | mcore | mep | metag \
270 | maxq | mb | microblaze | microblazeel | mcore | mep | metag \
270271 | mips | mipsbe | mipseb | mipsel | mipsle \
271272 | mips16 \
272273 | mips64 | mips64el \
284285 | mipsisa64r2 | mipsisa64r2el \
285286 | mipsisa64sb1 | mipsisa64sb1el \
286287 | mipsisa64sr71k | mipsisa64sr71kel \
288 | mipsr5900 | mipsr5900el \
287289 | mipstx39 | mipstx39el \
288290 | mn10200 | mn10300 \
289291 | moxie \
290292 | mt \
291293 | msp430 \
292294 | nds32 | nds32le | nds32be \
293 | nios | nios2 \
295 | nios | nios2 | nios2eb | nios2el \
294296 | ns16k | ns32k \
295297 | open8 \
296 | or32 \
298 | or1k | or32 \
297299 | pdp10 | pdp11 | pj | pjl \
298300 | powerpc | powerpc64 | powerpc64le | powerpcle \
299301 | pyramid \
363365 | aarch64-* | aarch64_be-* \
364366 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
365367 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
366 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
368 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \
367369 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
368370 | avr-* | avr32-* \
369371 | be32-* | be64-* \
382384 | lm32-* \
383385 | m32c-* | m32r-* | m32rle-* \
384386 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
385 | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
387 | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
388 | microblaze-* | microblazeel-* \
386389 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
387390 | mips16-* \
388391 | mips64-* | mips64el-* \
400403 | mipsisa64r2-* | mipsisa64r2el-* \
401404 | mipsisa64sb1-* | mipsisa64sb1el-* \
402405 | mipsisa64sr71k-* | mipsisa64sr71kel-* \
406 | mipsr5900-* | mipsr5900el-* \
403407 | mipstx39-* | mipstx39el-* \
404408 | mmix-* \
405409 | mt-* \
406410 | msp430-* \
407411 | nds32-* | nds32le-* | nds32be-* \
408 | nios-* | nios2-* \
412 | nios-* | nios2-* | nios2eb-* | nios2el-* \
409413 | none-* | np1-* | ns16k-* | ns32k-* \
410414 | open8-* \
411415 | orion-* \
781785 basic_machine=ns32k-utek
782786 os=-sysv
783787 ;;
784 microblaze)
788 microblaze*)
785789 basic_machine=microblaze-xilinx
790 ;;
791 mingw64)
792 basic_machine=x86_64-pc
793 os=-mingw64
786794 ;;
787795 mingw32)
788796 basic_machine=i386-pc
9971005 ;;
9981006 ppc64) basic_machine=powerpc64-unknown
9991007 ;;
1000 ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
1008 ppc64-* | ppc64p7-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
10011009 ;;
10021010 ppc64le | powerpc64little | ppc64-le | powerpc64-little)
10031011 basic_machine=powerpc64le-unknown
10121020 basic_machine=i586-unknown
10131021 os=-pw32
10141022 ;;
1015 rdos)
1023 rdos | rdos64)
1024 basic_machine=x86_64-pc
1025 os=-rdos
1026 ;;
1027 rdos32)
10161028 basic_machine=i386-pc
10171029 os=-rdos
10181030 ;;
13391351 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
13401352 | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
13411353 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
1342 | -sym* | -kopensolaris* \
1354 | -sym* | -kopensolaris* | -plan9* \
13431355 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
13441356 | -aos* | -aros* \
13451357 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
13461358 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
13471359 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1348 | -openbsd* | -solidbsd* \
1360 | -bitrig* | -openbsd* | -solidbsd* \
13491361 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
13501362 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
13511363 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
13521364 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
13531365 | -chorusos* | -chorusrdb* | -cegcc* \
13541366 | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1355 | -mingw32* | -linux-gnu* | -linux-android* \
1356 | -linux-newlib* | -linux-uclibc* \
1367 | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
1368 | -linux-newlib* | -linux-musl* | -linux-uclibc* \
13571369 | -uxpv* | -beos* | -mpeix* | -udk* \
13581370 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
13591371 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
14851497 -aros*)
14861498 os=-aros
14871499 ;;
1488 -kaos*)
1489 os=-kaos
1490 ;;
14911500 -zvmoe)
14921501 os=-zvmoe
14931502 ;;
15361545 c4x-* | tic4x-*)
15371546 os=-coff
15381547 ;;
1548 hexagon-*)
1549 os=-elf
1550 ;;
15391551 tic54x-*)
15401552 os=-coff
15411553 ;;
15741586 os=-elf
15751587 ;;
15761588 mips*-*)
1589 os=-elf
1590 ;;
1591 or1k-*)
15771592 os=-elf
15781593 ;;
15791594 or32-*)
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for librelp 1.2.3.
2 # Generated by GNU Autoconf 2.69 for librelp 1.2.4.
33 #
44 # Report bugs to <rgerhards@adiscon.com>.
55 #
66 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
9 # Foundation, Inc.
7 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
108 #
119 #
1210 # This configure script is free software; the Free Software Foundation
135133 # CDPATH.
136134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137135
136 # Use a proper internal environment variable to ensure we don't fall
137 # into an infinite loop, continuously re-executing ourselves.
138 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
139 _as_can_reexec=no; export _as_can_reexec;
140 # We cannot yet assume a decent shell, so we have to provide a
141 # neutralization value for shells without unset; and this also
142 # works around shells that cannot unset nonexistent variables.
143 # Preserve -v and -x to the replacement shell.
144 BASH_ENV=/dev/null
145 ENV=/dev/null
146 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147 case $- in # ((((
148 *v*x* | *x*v* ) as_opts=-vx ;;
149 *v* ) as_opts=-v ;;
150 *x* ) as_opts=-x ;;
151 * ) as_opts= ;;
152 esac
153 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
154 # Admittedly, this is quite paranoid, since all the known shells bail
155 # out after a failed `exec'.
156 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
157 as_fn_exit 255
158 fi
159 # We don't want this to propagate to other subprocesses.
160 { _as_can_reexec=; unset _as_can_reexec;}
138161 if test "x$CONFIG_SHELL" = x; then
139162 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140163 emulate sh
168191 else
169192 exitcode=1; echo positional parameters were not saved.
170193 fi
171 test x\$exitcode = x0 || exit 1"
194 test x\$exitcode = x0 || exit 1
195 test -x / || exit 1"
172196 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173197 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174198 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
221245
222246
223247 if test "x$CONFIG_SHELL" != x; then :
224 # We cannot yet assume a decent shell, so we have to provide a
225 # neutralization value for shells without unset; and this also
226 # works around shells that cannot unset nonexistent variables.
227 # Preserve -v and -x to the replacement shell.
228 BASH_ENV=/dev/null
229 ENV=/dev/null
230 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
231 export CONFIG_SHELL
232 case $- in # ((((
233 *v*x* | *x*v* ) as_opts=-vx ;;
234 *v* ) as_opts=-v ;;
235 *x* ) as_opts=-x ;;
236 * ) as_opts= ;;
237 esac
238 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
248 export CONFIG_SHELL
249 # We cannot yet assume a decent shell, so we have to provide a
250 # neutralization value for shells without unset; and this also
251 # works around shells that cannot unset nonexistent variables.
252 # Preserve -v and -x to the replacement shell.
253 BASH_ENV=/dev/null
254 ENV=/dev/null
255 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
256 case $- in # ((((
257 *v*x* | *x*v* ) as_opts=-vx ;;
258 *v* ) as_opts=-v ;;
259 *x* ) as_opts=-x ;;
260 * ) as_opts= ;;
261 esac
262 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
263 # Admittedly, this is quite paranoid, since all the known shells bail
264 # out after a failed `exec'.
265 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
266 exit 255
239267 fi
240268
241269 if test x$as_have_required = xno; then :
338366
339367
340368 } # as_fn_mkdir_p
369
370 # as_fn_executable_p FILE
371 # -----------------------
372 # Test if FILE is an executable regular file.
373 as_fn_executable_p ()
374 {
375 test -f "$1" && test -x "$1"
376 } # as_fn_executable_p
341377 # as_fn_append VAR VALUE
342378 # ----------------------
343379 # Append the text in VALUE to the end of the definition contained in VAR. Take
459495 chmod +x "$as_me.lineno" ||
460496 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
461497
498 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
499 # already done that, so ensure we don't try to do so again and fall
500 # in an infinite loop. This has already happened in practice.
501 _as_can_reexec=no; export _as_can_reexec
462502 # Don't try to exec as it changes $[0], causing all sort of problems
463503 # (the dirname of $[0] is not the place where we might find the
464504 # original and so on. Autoconf is especially sensitive to this).
493533 # ... but there are two gotchas:
494534 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
495535 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
496 # In both cases, we have to default to `cp -p'.
536 # In both cases, we have to default to `cp -pR'.
497537 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
498 as_ln_s='cp -p'
538 as_ln_s='cp -pR'
499539 elif ln conf$$.file conf$$ 2>/dev/null; then
500540 as_ln_s=ln
501541 else
502 as_ln_s='cp -p'
542 as_ln_s='cp -pR'
503543 fi
504544 else
505 as_ln_s='cp -p'
545 as_ln_s='cp -pR'
506546 fi
507547 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
508548 rmdir conf$$.dir 2>/dev/null
514554 as_mkdir_p=false
515555 fi
516556
517 if test -x / >/dev/null 2>&1; then
518 as_test_x='test -x'
519 else
520 if ls -dL / >/dev/null 2>&1; then
521 as_ls_L_option=L
522 else
523 as_ls_L_option=
524 fi
525 as_test_x='
526 eval sh -c '\''
527 if test -d "$1"; then
528 test -d "$1/.";
529 else
530 case $1 in #(
531 -*)set "./$1";;
532 esac;
533 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
534 ???[sx]*):;;*)false;;esac;fi
535 '\'' sh
536 '
537 fi
538 as_executable_p=$as_test_x
557 as_test_x='test -x'
558 as_executable_p=as_fn_executable_p
539559
540560 # Sed expression to map a string onto a valid CPP name.
541561 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569589 # Identity of this package.
570590 PACKAGE_NAME='librelp'
571591 PACKAGE_TARNAME='librelp'
572 PACKAGE_VERSION='1.2.3'
573 PACKAGE_STRING='librelp 1.2.3'
592 PACKAGE_VERSION='1.2.4'
593 PACKAGE_STRING='librelp 1.2.4'
574594 PACKAGE_BUGREPORT='rgerhards@adiscon.com'
575595 PACKAGE_URL=''
576596
12171237 if test "x$host_alias" != x; then
12181238 if test "x$build_alias" = x; then
12191239 cross_compiling=maybe
1220 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1221 If a cross compiler is detected then cross compile mode will be used" >&2
12221240 elif test "x$build_alias" != "x$host_alias"; then
12231241 cross_compiling=yes
12241242 fi
13041322 # Omit some internal or obsolete options to make the list less imposing.
13051323 # This message is too long to be a string in the A/UX 3.1 sh.
13061324 cat <<_ACEOF
1307 \`configure' configures librelp 1.2.3 to adapt to many kinds of systems.
1325 \`configure' configures librelp 1.2.4 to adapt to many kinds of systems.
13081326
13091327 Usage: $0 [OPTION]... [VAR=VALUE]...
13101328
13741392
13751393 if test -n "$ac_init_help"; then
13761394 case $ac_init_help in
1377 short | recursive ) echo "Configuration of librelp 1.2.3:";;
1395 short | recursive ) echo "Configuration of librelp 1.2.4:";;
13781396 esac
13791397 cat <<\_ACEOF
13801398
13821400 --disable-option-checking ignore unrecognized --enable/--with options
13831401 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
13841402 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1385 --enable-silent-rules less verbose build output (undo: `make V=1')
1386 --disable-silent-rules verbose build output (undo: `make V=0')
1387 --disable-dependency-tracking speeds up one-time build
1388 --enable-dependency-tracking do not reject slow dependency extractors
1403 --enable-silent-rules less verbose build output (undo: "make V=1")
1404 --disable-silent-rules verbose build output (undo: "make V=0")
1405 --enable-dependency-tracking
1406 do not reject slow dependency extractors
1407 --disable-dependency-tracking
1408 speeds up one-time build
13891409 --enable-shared[=PKGS] build shared libraries [default=yes]
13901410 --enable-static[=PKGS] build static libraries [default=yes]
13911411 --enable-fast-install[=PKGS]
14871507 test -n "$ac_init_help" && exit $ac_status
14881508 if $ac_init_version; then
14891509 cat <<\_ACEOF
1490 librelp configure 1.2.3
1491 generated by GNU Autoconf 2.68
1492
1493 Copyright (C) 2010 Free Software Foundation, Inc.
1510 librelp configure 1.2.4
1511 generated by GNU Autoconf 2.69
1512
1513 Copyright (C) 2012 Free Software Foundation, Inc.
14941514 This configure script is free software; the Free Software Foundation
14951515 gives unlimited permission to copy, distribute and modify it.
14961516 _ACEOF
15661586 test ! -s conftest.err
15671587 } && test -s conftest$ac_exeext && {
15681588 test "$cross_compiling" = yes ||
1569 $as_test_x conftest$ac_exeext
1589 test -x conftest$ac_exeext
15701590 }; then :
15711591 ac_retval=0
15721592 else
20132033 This file contains any messages produced by compilers while
20142034 running configure, to aid debugging if configure makes a mistake.
20152035
2016 It was created by librelp $as_me 1.2.3, which was
2017 generated by GNU Autoconf 2.68. Invocation command line was
2036 It was created by librelp $as_me 1.2.4, which was
2037 generated by GNU Autoconf 2.69. Invocation command line was
20182038
20192039 $ $0 $@
20202040
23612381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23622382
23632383
2364 am__api_version='1.11'
2384 am__api_version='1.13'
23652385
23662386 ac_aux_dir=
23672387 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
24292449 # by default.
24302450 for ac_prog in ginstall scoinst install; do
24312451 for ac_exec_ext in '' $ac_executable_extensions; do
2432 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2452 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
24332453 if test $ac_prog = install &&
24342454 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
24352455 # AIX install. It has an incompatible calling convention.
24872507
24882508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
24892509 $as_echo_n "checking whether build environment is sane... " >&6; }
2490 # Just in case
2491 sleep 1
2492 echo timestamp > conftest.file
24932510 # Reject unsafe characters in $srcdir or the absolute working directory
24942511 # name. Accept space and tab only in the latter.
24952512 am_lf='
25002517 esac
25012518 case $srcdir in
25022519 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2503 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2520 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
25042521 esac
25052522
2506 # Do `set' in a subshell so we don't clobber the current shell's
2523 # Do 'set' in a subshell so we don't clobber the current shell's
25072524 # arguments. Must try -L first in case configure is actually a
25082525 # symlink; some systems play weird games with the mod time of symlinks
25092526 # (eg FreeBSD returns the mod time of the symlink's containing
25102527 # directory).
25112528 if (
2512 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2513 if test "$*" = "X"; then
2514 # -L didn't work.
2515 set X `ls -t "$srcdir/configure" conftest.file`
2516 fi
2517 rm -f conftest.file
2518 if test "$*" != "X $srcdir/configure conftest.file" \
2519 && test "$*" != "X conftest.file $srcdir/configure"; then
2520
2521 # If neither matched, then we have a broken ls. This can happen
2522 # if, for instance, CONFIG_SHELL is bash and it inherits a
2523 # broken ls alias from the environment. This has actually
2524 # happened. Such a system could not be considered "sane".
2525 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2526 alias in your environment" "$LINENO" 5
2527 fi
2528
2529 am_has_slept=no
2530 for am_try in 1 2; do
2531 echo "timestamp, slept: $am_has_slept" > conftest.file
2532 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2533 if test "$*" = "X"; then
2534 # -L didn't work.
2535 set X `ls -t "$srcdir/configure" conftest.file`
2536 fi
2537 if test "$*" != "X $srcdir/configure conftest.file" \
2538 && test "$*" != "X conftest.file $srcdir/configure"; then
2539
2540 # If neither matched, then we have a broken ls. This can happen
2541 # if, for instance, CONFIG_SHELL is bash and it inherits a
2542 # broken ls alias from the environment. This has actually
2543 # happened. Such a system could not be considered "sane".
2544 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2545 alias in your environment" "$LINENO" 5
2546 fi
2547 if test "$2" = conftest.file || test $am_try -eq 2; then
2548 break
2549 fi
2550 # Just in case.
2551 sleep 1
2552 am_has_slept=yes
2553 done
25292554 test "$2" = conftest.file
25302555 )
25312556 then
25372562 fi
25382563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25392564 $as_echo "yes" >&6; }
2565 # If we didn't sleep, we still need to ensure time stamps of config.status and
2566 # generated files are strictly newer.
2567 am_sleep_pid=
2568 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2569 ( sleep 1 ) &
2570 am_sleep_pid=$!
2571 fi
2572
2573 rm -f conftest.file
2574
25402575 test "$program_prefix" != NONE &&
25412576 program_transform_name="s&^&$program_prefix&;$program_transform_name"
25422577 # Use a double $ so make ignores it.
25592594 esac
25602595 fi
25612596 # Use eval to expand $SHELL
2562 if eval "$MISSING --run true"; then
2563 am_missing_run="$MISSING --run "
2597 if eval "$MISSING --is-lightweight"; then
2598 am_missing_run="$MISSING "
25642599 else
25652600 am_missing_run=
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2567 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2602 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
25682603 fi
25692604
25702605 if test x"${install_sh}" != xset; then
25762611 esac
25772612 fi
25782613
2579 # Installed binaries are usually stripped using `strip' when the user
2580 # run `make install-strip'. However `strip' might not be the right
2614 # Installed binaries are usually stripped using 'strip' when the user
2615 # run "make install-strip". However 'strip' might not be the right
25812616 # tool to use in cross-compilation environments, therefore Automake
2582 # will honor the `STRIP' environment variable to overrule this program.
2617 # will honor the 'STRIP' environment variable to overrule this program.
25832618 if test "$cross_compiling" != no; then
25842619 if test -n "$ac_tool_prefix"; then
25852620 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
25982633 IFS=$as_save_IFS
25992634 test -z "$as_dir" && as_dir=.
26002635 for ac_exec_ext in '' $ac_executable_extensions; do
2601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26022637 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
26032638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26042639 break 2
26382673 IFS=$as_save_IFS
26392674 test -z "$as_dir" && as_dir=.
26402675 for ac_exec_ext in '' $ac_executable_extensions; do
2641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26422677 ac_cv_prog_ac_ct_STRIP="strip"
26432678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26442679 break 2
26892724 test -z "$as_dir" && as_dir=.
26902725 for ac_prog in mkdir gmkdir; do
26912726 for ac_exec_ext in '' $ac_executable_extensions; do
2692 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2727 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
26932728 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
26942729 'mkdir (GNU coreutils) '* | \
26952730 'mkdir (coreutils) '* | \
27182753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
27192754 $as_echo "$MKDIR_P" >&6; }
27202755
2721 mkdir_p="$MKDIR_P"
2722 case $mkdir_p in
2723 [\\/$]* | ?:[\\/]*) ;;
2724 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2725 esac
2726
27272756 for ac_prog in gawk mawk nawk awk
27282757 do
27292758 # Extract the first word of "$ac_prog", so it can be a program name with args.
27422771 IFS=$as_save_IFS
27432772 test -z "$as_dir" && as_dir=.
27442773 for ac_exec_ext in '' $ac_executable_extensions; do
2745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27462775 ac_cv_prog_AWK="$ac_prog"
27472776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27482777 break 2
28062835 fi
28072836 rmdir .tst 2>/dev/null
28082837
2838 # Check whether --enable-silent-rules was given.
2839 if test "${enable_silent_rules+set}" = set; then :
2840 enableval=$enable_silent_rules;
2841 fi
2842
2843 case $enable_silent_rules in # (((
2844 yes) AM_DEFAULT_VERBOSITY=0;;
2845 no) AM_DEFAULT_VERBOSITY=1;;
2846 *) AM_DEFAULT_VERBOSITY=1;;
2847 esac
2848 am_make=${MAKE-make}
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2850 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2851 if ${am_cv_make_support_nested_variables+:} false; then :
2852 $as_echo_n "(cached) " >&6
2853 else
2854 if $as_echo 'TRUE=$(BAR$(V))
2855 BAR0=false
2856 BAR1=true
2857 V=1
2858 am__doit:
2859 @$(TRUE)
2860 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2861 am_cv_make_support_nested_variables=yes
2862 else
2863 am_cv_make_support_nested_variables=no
2864 fi
2865 fi
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2867 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2868 if test $am_cv_make_support_nested_variables = yes; then
2869 AM_V='$(V)'
2870 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2871 else
2872 AM_V=$AM_DEFAULT_VERBOSITY
2873 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2874 fi
2875 AM_BACKSLASH='\'
2876
28092877 if test "`cd $srcdir && pwd`" != "`pwd`"; then
28102878 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
28112879 # is not polluted with repeated "-I."
28282896
28292897 # Define the identity of the package.
28302898 PACKAGE='librelp'
2831 VERSION='1.2.3'
2899 VERSION='1.2.4'
28322900
28332901
28342902 cat >>confdefs.h <<_ACEOF
28552923
28562924
28572925 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2926
2927 # For better backward compatibility. To be removed once Automake 1.9.x
2928 # dies out for good. For more background, see:
2929 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2930 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2931 mkdir_p='$(MKDIR_P)'
28582932
28592933 # We need awk for the "check" target. The system "awk" is bad on
28602934 # some platforms.
28622936 # in the wild :-( We should find a proper way to deprecate it ...
28632937 AMTAR='$${TAR-tar}'
28642938
2939
2940 # We'll loop over all known methods to create a tar archive until one works.
2941 _am_tools='gnutar pax cpio none'
2942
28652943 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2944
28662945
28672946
28682947
28902969
28912970 # Define the identity of the package.
28922971 PACKAGE='librelp'
2893 VERSION='1.2.3'
2972 VERSION='1.2.4'
28942973
28952974
28962975 cat >>confdefs.h <<_ACEOF
29172996
29182997
29192998 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2999
3000 # For better backward compatibility. To be removed once Automake 1.9.x
3001 # dies out for good. For more background, see:
3002 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3003 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3004 mkdir_p='$(MKDIR_P)'
29203005
29213006 # We need awk for the "check" target. The system "awk" is bad on
29223007 # some platforms.
29243009 # in the wild :-( We should find a proper way to deprecate it ...
29253010 AMTAR='$${TAR-tar}'
29263011
3012
3013 # We'll loop over all known methods to create a tar archive until one works.
3014 _am_tools='gnutar pax cpio none'
3015
29273016 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3017
29283018
29293019
29303020
29353025 enableval=$enable_silent_rules;
29363026 fi
29373027
2938 case $enable_silent_rules in
2939 yes) AM_DEFAULT_VERBOSITY=0;;
2940 no) AM_DEFAULT_VERBOSITY=1;;
2941 *) AM_DEFAULT_VERBOSITY=0;;
3028 case $enable_silent_rules in # (((
3029 yes) AM_DEFAULT_VERBOSITY=0;;
3030 no) AM_DEFAULT_VERBOSITY=1;;
3031 *) AM_DEFAULT_VERBOSITY=0;;
29423032 esac
29433033 am_make=${MAKE-make}
29443034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
29973087 IFS=$as_save_IFS
29983088 test -z "$as_dir" && as_dir=.
29993089 for ac_exec_ext in '' $ac_executable_extensions; do
3000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30013091 ac_cv_prog_CC="${ac_tool_prefix}gcc"
30023092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30033093 break 2
30373127 IFS=$as_save_IFS
30383128 test -z "$as_dir" && as_dir=.
30393129 for ac_exec_ext in '' $ac_executable_extensions; do
3040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30413131 ac_cv_prog_ac_ct_CC="gcc"
30423132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30433133 break 2
30903180 IFS=$as_save_IFS
30913181 test -z "$as_dir" && as_dir=.
30923182 for ac_exec_ext in '' $ac_executable_extensions; do
3093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30943184 ac_cv_prog_CC="${ac_tool_prefix}cc"
30953185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30963186 break 2
31313221 IFS=$as_save_IFS
31323222 test -z "$as_dir" && as_dir=.
31333223 for ac_exec_ext in '' $ac_executable_extensions; do
3134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31353225 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
31363226 ac_prog_rejected=yes
31373227 continue
31893279 IFS=$as_save_IFS
31903280 test -z "$as_dir" && as_dir=.
31913281 for ac_exec_ext in '' $ac_executable_extensions; do
3192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31933283 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
31943284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31953285 break 2
32333323 IFS=$as_save_IFS
32343324 test -z "$as_dir" && as_dir=.
32353325 for ac_exec_ext in '' $ac_executable_extensions; do
3236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32373327 ac_cv_prog_ac_ct_CC="$ac_prog"
32383328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32393329 break 2
36793769 /* end confdefs.h. */
36803770 #include <stdarg.h>
36813771 #include <stdio.h>
3682 #include <sys/types.h>
3683 #include <sys/stat.h>
3772 struct stat;
36843773 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
36853774 struct buf { int x; };
36863775 FILE * (*rcsopen) (struct buf *, struct stat *, int);
37833872 _am_result=none
37843873 # First try GNU make style include.
37853874 echo "include confinc" > confmf
3786 # Ignore all kinds of additional output from `make'.
3875 # Ignore all kinds of additional output from 'make'.
37873876 case `$am_make -s -f confmf 2> /dev/null` in #(
37883877 *the\ am__doit\ target*)
37893878 am__include=include
38393928 # We make a subdir and do the tests there. Otherwise we can end up
38403929 # making bogus files that we don't know about and never remove. For
38413930 # instance it was reported that on HP-UX the gcc test will end up
3842 # making a dummy file named `D' -- because `-MD' means `put the output
3843 # in D'.
3931 # making a dummy file named 'D' -- because '-MD' means "put the output
3932 # in D".
38443933 rm -rf conftest.dir
38453934 mkdir conftest.dir
38463935 # Copy depcomp to subdir because otherwise we won't find it if we're
38753964 : > sub/conftest.c
38763965 for i in 1 2 3 4 5 6; do
38773966 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3878 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3879 # Solaris 8's {/usr,}/bin/sh.
3880 touch sub/conftst$i.h
3967 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3968 # Solaris 10 /bin/sh.
3969 echo '/* dummy */' > sub/conftst$i.h
38813970 done
38823971 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
38833972
3884 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3973 # We check with '-c' and '-o' for the sake of the "dashmstdout"
38853974 # mode. It turns out that the SunPro C++ compiler does not properly
3886 # handle `-M -o', and we need to detect this. Also, some Intel
3887 # versions had trouble with output in subdirs
3975 # handle '-M -o', and we need to detect this. Also, some Intel
3976 # versions had trouble with output in subdirs.
38883977 am__obj=sub/conftest.${OBJEXT-o}
38893978 am__minus_obj="-o $am__obj"
38903979 case $depmode in
38933982 test "$am__universal" = false || continue
38943983 ;;
38953984 nosideeffect)
3896 # after this tag, mechanisms are not by side-effect, so they'll
3897 # only be used when explicitly requested
3985 # After this tag, mechanisms are not by side-effect, so they'll
3986 # only be used when explicitly requested.
38983987 if test "x$enable_dependency_tracking" = xyes; then
38993988 continue
39003989 else
39023991 fi
39033992 ;;
39043993 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3905 # This compiler won't grok `-c -o', but also, the minuso test has
3994 # This compiler won't grok '-c -o', but also, the minuso test has
39063995 # not run yet. These depmodes are late enough in the game, and
39073996 # so weak that their functioning should not be impacted.
39083997 am__obj=conftest.${OBJEXT-o}
39674056 # We make a subdir and do the tests there. Otherwise we can end up
39684057 # making bogus files that we don't know about and never remove. For
39694058 # instance it was reported that on HP-UX the gcc test will end up
3970 # making a dummy file named `D' -- because `-MD' means `put the output
3971 # in D'.
4059 # making a dummy file named 'D' -- because '-MD' means "put the output
4060 # in D".
39724061 rm -rf conftest.dir
39734062 mkdir conftest.dir
39744063 # Copy depcomp to subdir because otherwise we won't find it if we're
40034092 : > sub/conftest.c
40044093 for i in 1 2 3 4 5 6; do
40054094 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4006 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4007 # Solaris 8's {/usr,}/bin/sh.
4008 touch sub/conftst$i.h
4095 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4096 # Solaris 10 /bin/sh.
4097 echo '/* dummy */' > sub/conftst$i.h
40094098 done
40104099 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
40114100
4012 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4101 # We check with '-c' and '-o' for the sake of the "dashmstdout"
40134102 # mode. It turns out that the SunPro C++ compiler does not properly
4014 # handle `-M -o', and we need to detect this. Also, some Intel
4015 # versions had trouble with output in subdirs
4103 # handle '-M -o', and we need to detect this. Also, some Intel
4104 # versions had trouble with output in subdirs.
40164105 am__obj=sub/conftest.${OBJEXT-o}
40174106 am__minus_obj="-o $am__obj"
40184107 case $depmode in
40214110 test "$am__universal" = false || continue
40224111 ;;
40234112 nosideeffect)
4024 # after this tag, mechanisms are not by side-effect, so they'll
4025 # only be used when explicitly requested
4113 # After this tag, mechanisms are not by side-effect, so they'll
4114 # only be used when explicitly requested.
40264115 if test "x$enable_dependency_tracking" = xyes; then
40274116 continue
40284117 else
40304119 fi
40314120 ;;
40324121 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4033 # This compiler won't grok `-c -o', but also, the minuso test has
4122 # This compiler won't grok '-c -o', but also, the minuso test has
40344123 # not run yet. These depmodes are late enough in the game, and
40354124 # so weak that their functioning should not be impacted.
40364125 am__obj=conftest.${OBJEXT-o}
44014490 for ac_prog in sed gsed; do
44024491 for ac_exec_ext in '' $ac_executable_extensions; do
44034492 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4404 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4493 as_fn_executable_p "$ac_path_SED" || continue
44054494 # Check for GNU ac_path_SED and select it if it is found.
44064495 # Check for GNU $ac_path_SED
44074496 case `"$ac_path_SED" --version 2>&1` in
44774566 for ac_prog in grep ggrep; do
44784567 for ac_exec_ext in '' $ac_executable_extensions; do
44794568 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4480 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4569 as_fn_executable_p "$ac_path_GREP" || continue
44814570 # Check for GNU ac_path_GREP and select it if it is found.
44824571 # Check for GNU $ac_path_GREP
44834572 case `"$ac_path_GREP" --version 2>&1` in
45434632 for ac_prog in egrep; do
45444633 for ac_exec_ext in '' $ac_executable_extensions; do
45454634 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4546 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4635 as_fn_executable_p "$ac_path_EGREP" || continue
45474636 # Check for GNU ac_path_EGREP and select it if it is found.
45484637 # Check for GNU $ac_path_EGREP
45494638 case `"$ac_path_EGREP" --version 2>&1` in
46104699 for ac_prog in fgrep; do
46114700 for ac_exec_ext in '' $ac_executable_extensions; do
46124701 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4613 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4702 as_fn_executable_p "$ac_path_FGREP" || continue
46144703 # Check for GNU ac_path_FGREP and select it if it is found.
46154704 # Check for GNU $ac_path_FGREP
46164705 case `"$ac_path_FGREP" --version 2>&1` in
48664955 IFS=$as_save_IFS
48674956 test -z "$as_dir" && as_dir=.
48684957 for ac_exec_ext in '' $ac_executable_extensions; do
4869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48704959 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
48714960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
48724961 break 2
49104999 IFS=$as_save_IFS
49115000 test -z "$as_dir" && as_dir=.
49125001 for ac_exec_ext in '' $ac_executable_extensions; do
4913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
49145003 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
49155004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
49165005 break 2
53345423 IFS=$as_save_IFS
53355424 test -z "$as_dir" && as_dir=.
53365425 for ac_exec_ext in '' $ac_executable_extensions; do
5337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
53385427 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
53395428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
53405429 break 2
53745463 IFS=$as_save_IFS
53755464 test -z "$as_dir" && as_dir=.
53765465 for ac_exec_ext in '' $ac_executable_extensions; do
5377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
53785467 ac_cv_prog_ac_ct_OBJDUMP="objdump"
53795468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
53805469 break 2
55465635 lt_cv_deplibs_check_method=pass_all
55475636 ;;
55485637
5549 netbsd* | netbsdelf*-gnu)
5638 netbsd*)
55505639 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
55515640 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
55525641 else
56805769 IFS=$as_save_IFS
56815770 test -z "$as_dir" && as_dir=.
56825771 for ac_exec_ext in '' $ac_executable_extensions; do
5683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
56845773 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
56855774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
56865775 break 2
57205809 IFS=$as_save_IFS
57215810 test -z "$as_dir" && as_dir=.
57225811 for ac_exec_ext in '' $ac_executable_extensions; do
5723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57245813 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
57255814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
57265815 break 2
58245913 IFS=$as_save_IFS
58255914 test -z "$as_dir" && as_dir=.
58265915 for ac_exec_ext in '' $ac_executable_extensions; do
5827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
58285917 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
58295918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
58305919 break 2
58685957 IFS=$as_save_IFS
58695958 test -z "$as_dir" && as_dir=.
58705959 for ac_exec_ext in '' $ac_executable_extensions; do
5871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
58725961 ac_cv_prog_ac_ct_AR="$ac_prog"
58735962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
58745963 break 2
59936082 IFS=$as_save_IFS
59946083 test -z "$as_dir" && as_dir=.
59956084 for ac_exec_ext in '' $ac_executable_extensions; do
5996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
59976086 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
59986087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
59996088 break 2
60336122 IFS=$as_save_IFS
60346123 test -z "$as_dir" && as_dir=.
60356124 for ac_exec_ext in '' $ac_executable_extensions; do
6036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
60376126 ac_cv_prog_ac_ct_STRIP="strip"
60386127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
60396128 break 2
60926181 IFS=$as_save_IFS
60936182 test -z "$as_dir" && as_dir=.
60946183 for ac_exec_ext in '' $ac_executable_extensions; do
6095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
60966185 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
60976186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
60986187 break 2
61326221 IFS=$as_save_IFS
61336222 test -z "$as_dir" && as_dir=.
61346223 for ac_exec_ext in '' $ac_executable_extensions; do
6135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
61366225 ac_cv_prog_ac_ct_RANLIB="ranlib"
61376226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
61386227 break 2
66246713 rm -rf conftest*
66256714 ;;
66266715
6627 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6716 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
66286717 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
66296718 # Find out which ABI we are using.
66306719 echo 'int i;' > conftest.$ac_ext
66426731 x86_64-*linux*)
66436732 LD="${LD-ld} -m elf_i386"
66446733 ;;
6645 ppc64-*linux*|powerpc64-*linux*)
6734 powerpc64le-*linux*)
6735 LD="${LD-ld} -m elf32lppclinux"
6736 ;;
6737 powerpc64-*linux*)
66466738 LD="${LD-ld} -m elf32ppclinux"
66476739 ;;
66486740 s390x-*linux*)
66616753 x86_64-*linux*)
66626754 LD="${LD-ld} -m elf_x86_64"
66636755 ;;
6664 ppc*-*linux*|powerpc*-*linux*)
6756 powerpcle-*linux*)
6757 LD="${LD-ld} -m elf64lppc"
6758 ;;
6759 powerpc-*linux*)
66656760 LD="${LD-ld} -m elf64ppc"
66666761 ;;
66676762 s390*-*linux*|s390*-*tpf*)
67816876 IFS=$as_save_IFS
67826877 test -z "$as_dir" && as_dir=.
67836878 for ac_exec_ext in '' $ac_executable_extensions; do
6784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
67856880 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
67866881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
67876882 break 2
68216916 IFS=$as_save_IFS
68226917 test -z "$as_dir" && as_dir=.
68236918 for ac_exec_ext in '' $ac_executable_extensions; do
6824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
68256920 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
68266921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
68276922 break 2
69016996 IFS=$as_save_IFS
69026997 test -z "$as_dir" && as_dir=.
69036998 for ac_exec_ext in '' $ac_executable_extensions; do
6904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
69057000 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
69067001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
69077002 break 2
69417036 IFS=$as_save_IFS
69427037 test -z "$as_dir" && as_dir=.
69437038 for ac_exec_ext in '' $ac_executable_extensions; do
6944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
69457040 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
69467041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
69477042 break 2
69937088 IFS=$as_save_IFS
69947089 test -z "$as_dir" && as_dir=.
69957090 for ac_exec_ext in '' $ac_executable_extensions; do
6996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
69977092 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
69987093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
69997094 break 2
70337128 IFS=$as_save_IFS
70347129 test -z "$as_dir" && as_dir=.
70357130 for ac_exec_ext in '' $ac_executable_extensions; do
7036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
70377132 ac_cv_prog_ac_ct_NMEDIT="nmedit"
70387133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
70397134 break 2
70857180 IFS=$as_save_IFS
70867181 test -z "$as_dir" && as_dir=.
70877182 for ac_exec_ext in '' $ac_executable_extensions; do
7088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
70897184 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
70907185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
70917186 break 2
71257220 IFS=$as_save_IFS
71267221 test -z "$as_dir" && as_dir=.
71277222 for ac_exec_ext in '' $ac_executable_extensions; do
7128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
71297224 ac_cv_prog_ac_ct_LIPO="lipo"
71307225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
71317226 break 2
71777272 IFS=$as_save_IFS
71787273 test -z "$as_dir" && as_dir=.
71797274 for ac_exec_ext in '' $ac_executable_extensions; do
7180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
71817276 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
71827277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
71837278 break 2
72177312 IFS=$as_save_IFS
72187313 test -z "$as_dir" && as_dir=.
72197314 for ac_exec_ext in '' $ac_executable_extensions; do
7220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
72217316 ac_cv_prog_ac_ct_OTOOL="otool"
72227317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
72237318 break 2
72697364 IFS=$as_save_IFS
72707365 test -z "$as_dir" && as_dir=.
72717366 for ac_exec_ext in '' $ac_executable_extensions; do
7272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
72737368 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
72747369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
72757370 break 2
73097404 IFS=$as_save_IFS
73107405 test -z "$as_dir" && as_dir=.
73117406 for ac_exec_ext in '' $ac_executable_extensions; do
7312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
73137408 ac_cv_prog_ac_ct_OTOOL64="otool64"
73147409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
73157410 break 2
82538348 $RM -r conftest*
82548349
82558350
8351 ## CAVEAT EMPTOR:
8352 ## There is no encapsulation within the following macros, do not change
8353 ## the running order or otherwise move them around unless you know exactly
8354 ## what you are doing...
82568355 if test -n "$compiler"; then
82578356
82588357 lt_prog_compiler_no_builtin_flag=
89439042 openbsd*)
89449043 with_gnu_ld=no
89459044 ;;
8946 linux* | k*bsd*-gnu | gnu*)
8947 link_all_deplibs=no
8948 ;;
89499045 esac
89509046
89519047 ld_shlibs=yes
91679263 fi
91689264 ;;
91699265
9170 netbsd* | netbsdelf*-gnu)
9266 netbsd*)
91719267 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
91729268 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
91739269 wlarc=
93449440 if test "$aix_use_runtimelinking" = yes; then
93459441 shared_flag="$shared_flag "'${wl}-G'
93469442 fi
9347 link_all_deplibs=no
93489443 else
93499444 # not using gcc
93509445 if test "$host_cpu" = ia64; then
97989893 link_all_deplibs=yes
97999894 ;;
98009895
9801 netbsd* | netbsdelf*-gnu)
9896 netbsd*)
98029897 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
98039898 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
98049899 else
1081110906 # before this can be enabled.
1081210907 hardcode_into_libs=yes
1081310908
10909 # Add ABI-specific directories to the system library path.
10910 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10911
1081410912 # Append ld.so.conf contents to the search path
1081510913 if test -f /etc/ld.so.conf; then
1081610914 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10817 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10915 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10916
1081810917 fi
1081910918
1082010919 # We used to test for /lib/ld.so.1 and disable shared libraries on
1082410923 # people can always --disable-shared, the test was removed, and we
1082510924 # assume the GNU/Linux dynamic linker is in use.
1082610925 dynamic_linker='GNU/Linux ld.so'
10827 ;;
10828
10829 netbsdelf*-gnu)
10830 version_type=linux
10831 need_lib_prefix=no
10832 need_version=no
10833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10834 soname_spec='${libname}${release}${shared_ext}$major'
10835 shlibpath_var=LD_LIBRARY_PATH
10836 shlibpath_overrides_runpath=no
10837 hardcode_into_libs=yes
10838 dynamic_linker='NetBSD ld.elf_so'
1083910926 ;;
1084010927
1084110928 netbsd*)
1201112098 int
1201212099 main ()
1201312100 {
12014 /* FIXME: Include the comments suggested by Paul. */
12101
1201512102 #ifndef __cplusplus
12016 /* Ultrix mips cc rejects this. */
12103 /* Ultrix mips cc rejects this sort of thing. */
1201712104 typedef int charset[2];
12018 const charset cs;
12105 const charset cs = { 0, 0 };
1201912106 /* SunOS 4.1.1 cc rejects this. */
1202012107 char const *const *pcpcc;
1202112108 char **ppc;
1203212119 ++pcpcc;
1203312120 ppc = (char**) pcpcc;
1203412121 pcpcc = (char const *const *) ppc;
12035 { /* SCO 3.2v4 cc rejects this. */
12036 char *t;
12122 { /* SCO 3.2v4 cc rejects this sort of thing. */
12123 char tx;
12124 char *t = &tx;
1203712125 char const *s = 0 ? (char *) 0 : (char const *) 0;
1203812126
1203912127 *t++ = 0;
1204912137 iptr p = 0;
1205012138 ++p;
1205112139 }
12052 { /* AIX XL C 1.02.0.0 rejects this saying
12140 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
1205312141 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12054 struct s { int j; const int *ap[3]; };
12055 struct s *b; b->j = 5;
12142 struct s { int j; const int *ap[3]; } bx;
12143 struct s *b = &bx; b->j = 5;
1205612144 }
1205712145 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1205812146 const int foo = 10;
1242812516 IFS=$as_save_IFS
1242912517 test -z "$as_dir" && as_dir=.
1243012518 for ac_exec_ext in '' $ac_executable_extensions; do
12431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1243212520 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
1243312521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1243412522 break 2
1247112559 IFS=$as_save_IFS
1247212560 test -z "$as_dir" && as_dir=.
1247312561 for ac_exec_ext in '' $ac_executable_extensions; do
12474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1247512563 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
1247612564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1247712565 break 2
1275412842 LTLIBOBJS=$ac_ltlibobjs
1275512843
1275612844
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12846 $as_echo_n "checking that generated files are newer than configure... " >&6; }
12847 if test -n "$am_sleep_pid"; then
12848 # Hide warnings about reused PIDs.
12849 wait $am_sleep_pid 2>/dev/null
12850 fi
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12852 $as_echo "done" >&6; }
1275712853 if test -n "$EXEEXT"; then
1275812854 am__EXEEXT_TRUE=
1275912855 am__EXEEXT_FALSE='#'
1308013176 # ... but there are two gotchas:
1308113177 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
1308213178 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13083 # In both cases, we have to default to `cp -p'.
13179 # In both cases, we have to default to `cp -pR'.
1308413180 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13085 as_ln_s='cp -p'
13181 as_ln_s='cp -pR'
1308613182 elif ln conf$$.file conf$$ 2>/dev/null; then
1308713183 as_ln_s=ln
1308813184 else
13089 as_ln_s='cp -p'
13185 as_ln_s='cp -pR'
1309013186 fi
1309113187 else
13092 as_ln_s='cp -p'
13188 as_ln_s='cp -pR'
1309313189 fi
1309413190 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
1309513191 rmdir conf$$.dir 2>/dev/null
1314913245 as_mkdir_p=false
1315013246 fi
1315113247
13152 if test -x / >/dev/null 2>&1; then
13153 as_test_x='test -x'
13154 else
13155 if ls -dL / >/dev/null 2>&1; then
13156 as_ls_L_option=L
13157 else
13158 as_ls_L_option=
13159 fi
13160 as_test_x='
13161 eval sh -c '\''
13162 if test -d "$1"; then
13163 test -d "$1/.";
13164 else
13165 case $1 in #(
13166 -*)set "./$1";;
13167 esac;
13168 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13169 ???[sx]*):;;*)false;;esac;fi
13170 '\'' sh
13171 '
13172 fi
13173 as_executable_p=$as_test_x
13248
13249 # as_fn_executable_p FILE
13250 # -----------------------
13251 # Test if FILE is an executable regular file.
13252 as_fn_executable_p ()
13253 {
13254 test -f "$1" && test -x "$1"
13255 } # as_fn_executable_p
13256 as_test_x='test -x'
13257 as_executable_p=as_fn_executable_p
1317413258
1317513259 # Sed expression to map a string onto a valid CPP name.
1317613260 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1319113275 # report actual input values of CONFIG_FILES etc. instead of their
1319213276 # values after options handling.
1319313277 ac_log="
13194 This file was extended by librelp $as_me 1.2.3, which was
13195 generated by GNU Autoconf 2.68. Invocation command line was
13278 This file was extended by librelp $as_me 1.2.4, which was
13279 generated by GNU Autoconf 2.69. Invocation command line was
1319613280
1319713281 CONFIG_FILES = $CONFIG_FILES
1319813282 CONFIG_HEADERS = $CONFIG_HEADERS
1325713341 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1325813342 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1325913343 ac_cs_version="\\
13260 librelp config.status 1.2.3
13261 configured by $0, generated by GNU Autoconf 2.68,
13344 librelp config.status 1.2.4
13345 configured by $0, generated by GNU Autoconf 2.69,
1326213346 with options \\"\$ac_cs_config\\"
1326313347
13264 Copyright (C) 2010 Free Software Foundation, Inc.
13348 Copyright (C) 2012 Free Software Foundation, Inc.
1326513349 This config.status script is free software; the Free Software Foundation
1326613350 gives unlimited permission to copy, distribute and modify it."
1326713351
1335213436 _ACEOF
1335313437 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1335413438 if \$ac_cs_recheck; then
13355 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13439 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1335613440 shift
1335713441 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
1335813442 CONFIG_SHELL='$SHELL'
1426614350
1426714351 case $ac_file$ac_mode in
1426814352 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14269 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14353 # Older Autoconf quotes --file arguments for eval, but not when files
1427014354 # are listed without --file. Let's play safe and only enable the eval
1427114355 # if we detect the quoting.
1427214356 case $CONFIG_FILES in
1427914363 # Strip MF so we end up with the name of the file.
1428014364 mf=`echo "$mf" | sed -e 's/:.*$//'`
1428114365 # Check whether this is an Automake generated Makefile or not.
14282 # We used to match only the files named `Makefile.in', but
14366 # We used to match only the files named 'Makefile.in', but
1428314367 # some people rename them; so instead we look at the file content.
1428414368 # Grep'ing the first line is not enough: some people post-process
1428514369 # each Makefile.in and add a new line on top of each file to say so.
1431314397 continue
1431414398 fi
1431514399 # Extract the definition of DEPDIR, am__include, and am__quote
14316 # from the Makefile without running `make'.
14400 # from the Makefile without running 'make'.
1431714401 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
1431814402 test -z "$DEPDIR" && continue
1431914403 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14320 test -z "am__include" && continue
14404 test -z "$am__include" && continue
1432114405 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14322 # When using ansi2knr, U may be empty or an underscore; expand it
14323 U=`sed -n 's/^U = //p' < "$mf"`
1432414406 # Find all dependency output files, they are included files with
1432514407 # $(DEPDIR) in their names. We invoke sed twice because it is the
1432614408 # simplest approach to changing $(DEPDIR) to its actual value in the
1432714409 # expansion.
1432814410 for file in `sed -n "
1432914411 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14330 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14412 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
1433114413 # Make sure the directory exists.
1433214414 test -f "$dirpart/$file" && continue
1433314415 fdir=`$as_dirname -- "$file" ||
11 # Process this file with autoconf to produce a configure script.
22
33 AC_PREREQ(2.61)
4 AC_INIT([librelp], [1.2.3], [rgerhards@adiscon.com])
4 AC_INIT([librelp], [1.2.4], [rgerhards@adiscon.com])
55 AM_INIT_AUTOMAKE
66 AM_INIT_AUTOMAKE
77 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
+298
-195
depcomp less more
00 #! /bin/sh
11 # depcomp - compile a program generating dependencies as side-effects
22
3 scriptversion=2011-12-04.11; # UTC
4
5 # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009, 2010,
6 # 2011 Free Software Foundation, Inc.
3 scriptversion=2013-05-30.07; # UTC
4
5 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
76
87 # This program is free software; you can redistribute it and/or modify
98 # it under the terms of the GNU General Public License as published by
2726
2827 case $1 in
2928 '')
30 echo "$0: No command. Try \`$0 --help' for more information." 1>&2
31 exit 1;
32 ;;
29 echo "$0: No command. Try '$0 --help' for more information." 1>&2
30 exit 1;
31 ;;
3332 -h | --h*)
3433 cat <<\EOF
3534 Usage: depcomp [--help] [--version] PROGRAM [ARGS]
3938
4039 Environment variables:
4140 depmode Dependency tracking mode.
42 source Source file read by `PROGRAMS ARGS'.
43 object Object file output by `PROGRAMS ARGS'.
41 source Source file read by 'PROGRAMS ARGS'.
42 object Object file output by 'PROGRAMS ARGS'.
4443 DEPDIR directory where to store dependencies.
4544 depfile Dependency file to output.
4645 tmpdepfile Temporary file to use when outputting dependencies.
5655 ;;
5756 esac
5857
58 # Get the directory component of the given path, and save it in the
59 # global variables '$dir'. Note that this directory component will
60 # be either empty or ending with a '/' character. This is deliberate.
61 set_dir_from ()
62 {
63 case $1 in
64 */*) dir=`echo "$1" | sed -e 's|/[^/]*$|/|'`;;
65 *) dir=;;
66 esac
67 }
68
69 # Get the suffix-stripped basename of the given path, and save it the
70 # global variable '$base'.
71 set_base_from ()
72 {
73 base=`echo "$1" | sed -e 's|^.*/||' -e 's/\.[^.]*$//'`
74 }
75
76 # If no dependency file was actually created by the compiler invocation,
77 # we still have to create a dummy depfile, to avoid errors with the
78 # Makefile "include basename.Plo" scheme.
79 make_dummy_depfile ()
80 {
81 echo "#dummy" > "$depfile"
82 }
83
84 # Factor out some common post-processing of the generated depfile.
85 # Requires the auxiliary global variable '$tmpdepfile' to be set.
86 aix_post_process_depfile ()
87 {
88 # If the compiler actually managed to produce a dependency file,
89 # post-process it.
90 if test -f "$tmpdepfile"; then
91 # Each line is of the form 'foo.o: dependency.h'.
92 # Do two passes, one to just change these to
93 # $object: dependency.h
94 # and one to simply output
95 # dependency.h:
96 # which is needed to avoid the deleted-header problem.
97 { sed -e "s,^.*\.[$lower]*:,$object:," < "$tmpdepfile"
98 sed -e "s,^.*\.[$lower]*:[$tab ]*,," -e 's,$,:,' < "$tmpdepfile"
99 } > "$depfile"
100 rm -f "$tmpdepfile"
101 else
102 make_dummy_depfile
103 fi
104 }
105
106 # A tabulation character.
107 tab=' '
108 # A newline character.
109 nl='
110 '
111 # Character ranges might be problematic outside the C locale.
112 # These definitions help.
113 upper=ABCDEFGHIJKLMNOPQRSTUVWXYZ
114 lower=abcdefghijklmnopqrstuvwxyz
115 digits=0123456789
116 alpha=${upper}${lower}
117
59118 if test -z "$depmode" || test -z "$source" || test -z "$object"; then
60119 echo "depcomp: Variables source, object and depmode must be set" 1>&2
61120 exit 1
67126 tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
68127
69128 rm -f "$tmpdepfile"
129
130 # Avoid interferences from the environment.
131 gccflag= dashmflag=
70132
71133 # Some modes work just like other modes, but use different flags. We
72134 # parameterize here, but still list the modes in the big case below,
79141 fi
80142
81143 if test "$depmode" = dashXmstdout; then
82 # This is just like dashmstdout with a different argument.
83 dashmflag=-xM
84 depmode=dashmstdout
144 # This is just like dashmstdout with a different argument.
145 dashmflag=-xM
146 depmode=dashmstdout
85147 fi
86148
87149 cygpath_u="cygpath -u -f -"
88150 if test "$depmode" = msvcmsys; then
89 # This is just like msvisualcpp but w/o cygpath translation.
90 # Just convert the backslash-escaped backslashes to single forward
91 # slashes to satisfy depend.m4
92 cygpath_u='sed s,\\\\,/,g'
93 depmode=msvisualcpp
151 # This is just like msvisualcpp but w/o cygpath translation.
152 # Just convert the backslash-escaped backslashes to single forward
153 # slashes to satisfy depend.m4
154 cygpath_u='sed s,\\\\,/,g'
155 depmode=msvisualcpp
94156 fi
95157
96158 if test "$depmode" = msvc7msys; then
97 # This is just like msvc7 but w/o cygpath translation.
98 # Just convert the backslash-escaped backslashes to single forward
99 # slashes to satisfy depend.m4
100 cygpath_u='sed s,\\\\,/,g'
101 depmode=msvc7
159 # This is just like msvc7 but w/o cygpath translation.
160 # Just convert the backslash-escaped backslashes to single forward
161 # slashes to satisfy depend.m4
162 cygpath_u='sed s,\\\\,/,g'
163 depmode=msvc7
164 fi
165
166 if test "$depmode" = xlc; then
167 # IBM C/C++ Compilers xlc/xlC can output gcc-like dependency information.
168 gccflag=-qmakedep=gcc,-MF
169 depmode=gcc
102170 fi
103171
104172 case "$depmode" in
121189 done
122190 "$@"
123191 stat=$?
124 if test $stat -eq 0; then :
125 else
192 if test $stat -ne 0; then
126193 rm -f "$tmpdepfile"
127194 exit $stat
128195 fi
130197 ;;
131198
132199 gcc)
200 ## Note that this doesn't just cater to obsosete pre-3.x GCC compilers.
201 ## but also to in-use compilers like IMB xlc/xlC and the HP C compiler.
202 ## (see the conditional assignment to $gccflag above).
133203 ## There are various ways to get dependency output from gcc. Here's
134204 ## why we pick this rather obscure method:
135205 ## - Don't want to use -MD because we'd like the dependencies to end
136206 ## up in a subdir. Having to rename by hand is ugly.
137207 ## (We might end up doing this anyway to support other compilers.)
138208 ## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
139 ## -MM, not -M (despite what the docs say).
209 ## -MM, not -M (despite what the docs say). Also, it might not be
210 ## supported by the other compilers which use the 'gcc' depmode.
140211 ## - Using -M directly means running the compiler twice (even worse
141212 ## than renaming).
142213 if test -z "$gccflag"; then
144215 fi
145216 "$@" -Wp,"$gccflag$tmpdepfile"
146217 stat=$?
147 if test $stat -eq 0; then :
148 else
218 if test $stat -ne 0; then
149219 rm -f "$tmpdepfile"
150220 exit $stat
151221 fi
152222 rm -f "$depfile"
153223 echo "$object : \\" > "$depfile"
154 alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
155 ## The second -e expression handles DOS-style file names with drive letters.
224 # The second -e expression handles DOS-style file names with drive
225 # letters.
156226 sed -e 's/^[^:]*: / /' \
157227 -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
158 ## This next piece of magic avoids the `deleted header file' problem.
228 ## This next piece of magic avoids the "deleted header file" problem.
159229 ## The problem is that when a header file which appears in a .P file
160230 ## is deleted, the dependency causes make to die (because there is
161231 ## typically no way to rebuild the header). We avoid this by adding
162232 ## dummy dependencies for each header file. Too bad gcc doesn't do
163233 ## this for us directly.
164 tr ' ' '
165 ' < "$tmpdepfile" |
166 ## Some versions of gcc put a space before the `:'. On the theory
234 ## Some versions of gcc put a space before the ':'. On the theory
167235 ## that the space means something, we add a space to the output as
168236 ## well. hp depmode also adds that space, but also prefixes the VPATH
169237 ## to the object. Take care to not repeat it in the output.
170238 ## Some versions of the HPUX 10.20 sed can't process this invocation
171239 ## correctly. Breaking it into two sed invocations is a workaround.
172 sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \
173 | sed -e 's/$/ :/' >> "$depfile"
240 tr ' ' "$nl" < "$tmpdepfile" \
241 | sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \
242 | sed -e 's/$/ :/' >> "$depfile"
174243 rm -f "$tmpdepfile"
175244 ;;
176245
188257 "$@" -MDupdate "$tmpdepfile"
189258 fi
190259 stat=$?
191 if test $stat -eq 0; then :
192 else
260 if test $stat -ne 0; then
193261 rm -f "$tmpdepfile"
194262 exit $stat
195263 fi
197265
198266 if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files
199267 echo "$object : \\" > "$depfile"
200
201268 # Clip off the initial element (the dependent). Don't try to be
202269 # clever and replace this with sed code, as IRIX sed won't handle
203270 # lines with more than a fixed number of characters (4096 in
204271 # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines;
205 # the IRIX cc adds comments like `#:fec' to the end of the
272 # the IRIX cc adds comments like '#:fec' to the end of the
206273 # dependency line.
207 tr ' ' '
208 ' < "$tmpdepfile" \
209 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
210 tr '
211 ' ' ' >> "$depfile"
274 tr ' ' "$nl" < "$tmpdepfile" \
275 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' \
276 | tr "$nl" ' ' >> "$depfile"
212277 echo >> "$depfile"
213
214278 # The second pass generates a dummy entry for each header file.
215 tr ' ' '
216 ' < "$tmpdepfile" \
217 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
218 >> "$depfile"
279 tr ' ' "$nl" < "$tmpdepfile" \
280 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
281 >> "$depfile"
219282 else
220 # The sourcefile does not contain any dependencies, so just
221 # store a dummy comment line, to avoid errors with the Makefile
222 # "include basename.Plo" scheme.
223 echo "#dummy" > "$depfile"
283 make_dummy_depfile
224284 fi
225285 rm -f "$tmpdepfile"
286 ;;
287
288 xlc)
289 # This case exists only to let depend.m4 do its work. It works by
290 # looking at the text of this script. This case will never be run,
291 # since it is checked for above.
292 exit 1
226293 ;;
227294
228295 aix)
229296 # The C for AIX Compiler uses -M and outputs the dependencies
230297 # in a .u file. In older versions, this file always lives in the
231 # current directory. Also, the AIX compiler puts `$object:' at the
298 # current directory. Also, the AIX compiler puts '$object:' at the
232299 # start of each line; $object doesn't have directory information.
233300 # Version 6 uses the directory in both cases.
234 dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
235 test "x$dir" = "x$object" && dir=
236 base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
301 set_dir_from "$object"
302 set_base_from "$object"
237303 if test "$libtool" = yes; then
238304 tmpdepfile1=$dir$base.u
239305 tmpdepfile2=$base.u
246312 "$@" -M
247313 fi
248314 stat=$?
249
250 if test $stat -eq 0; then :
251 else
315 if test $stat -ne 0; then
252316 rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
253317 exit $stat
254318 fi
257321 do
258322 test -f "$tmpdepfile" && break
259323 done
260 if test -f "$tmpdepfile"; then
261 # Each line is of the form `foo.o: dependent.h'.
262 # Do two passes, one to just change these to
263 # `$object: dependent.h' and one to simply `dependent.h:'.
264 sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
265 # That's a tab and a space in the [].
266 sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
267 else
268 # The sourcefile does not contain any dependencies, so just
269 # store a dummy comment line, to avoid errors with the Makefile
270 # "include basename.Plo" scheme.
271 echo "#dummy" > "$depfile"
272 fi
324 aix_post_process_depfile
325 ;;
326
327 tcc)
328 # tcc (Tiny C Compiler) understand '-MD -MF file' since version 0.9.26
329 # FIXME: That version still under development at the moment of writing.
330 # Make that this statement remains true also for stable, released
331 # versions.
332 # It will wrap lines (doesn't matter whether long or short) with a
333 # trailing '\', as in:
334 #
335 # foo.o : \
336 # foo.c \
337 # foo.h \
338 #
339 # It will put a trailing '\' even on the last line, and will use leading
340 # spaces rather than leading tabs (at least since its commit 0394caf7
341 # "Emit spaces for -MD").
342 "$@" -MD -MF "$tmpdepfile"
343 stat=$?
344 if test $stat -ne 0; then
345 rm -f "$tmpdepfile"
346 exit $stat
347 fi
348 rm -f "$depfile"
349 # Each non-empty line is of the form 'foo.o : \' or ' dep.h \'.
350 # We have to change lines of the first kind to '$object: \'.
351 sed -e "s|.*:|$object :|" < "$tmpdepfile" > "$depfile"
352 # And for each line of the second kind, we have to emit a 'dep.h:'
353 # dummy dependency, to avoid the deleted-header problem.
354 sed -n -e 's|^ *\(.*\) *\\$|\1:|p' < "$tmpdepfile" >> "$depfile"
273355 rm -f "$tmpdepfile"
274356 ;;
275357
276 icc)
277 # Intel's C compiler understands `-MD -MF file'. However on
278 # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c
279 # ICC 7.0 will fill foo.d with something like
280 # foo.o: sub/foo.c
281 # foo.o: sub/foo.h
282 # which is wrong. We want:
283 # sub/foo.o: sub/foo.c
284 # sub/foo.o: sub/foo.h
285 # sub/foo.c:
286 # sub/foo.h:
287 # ICC 7.1 will output
358 ## The order of this option in the case statement is important, since the
359 ## shell code in configure will try each of these formats in the order
360 ## listed in this file. A plain '-MD' option would be understood by many
361 ## compilers, so we must ensure this comes after the gcc and icc options.
362 pgcc)
363 # Portland's C compiler understands '-MD'.
364 # Will always output deps to 'file.d' where file is the root name of the
365 # source file under compilation, even if file resides in a subdirectory.
366 # The object file name does not affect the name of the '.d' file.
367 # pgcc 10.2 will output
288368 # foo.o: sub/foo.c sub/foo.h
289 # and will wrap long lines using \ :
369 # and will wrap long lines using '\' :
290370 # foo.o: sub/foo.c ... \
291371 # sub/foo.h ... \
292372 # ...
293
294 "$@" -MD -MF "$tmpdepfile"
295 stat=$?
296 if test $stat -eq 0; then :
297 else
373 set_dir_from "$object"
374 # Use the source, not the object, to determine the base name, since
375 # that's sadly what pgcc will do too.
376 set_base_from "$source"
377 tmpdepfile=$base.d
378
379 # For projects that build the same source file twice into different object
380 # files, the pgcc approach of using the *source* file root name can cause
381 # problems in parallel builds. Use a locking strategy to avoid stomping on
382 # the same $tmpdepfile.
383 lockdir=$base.d-lock
384 trap "
385 echo '$0: caught signal, cleaning up...' >&2
386 rmdir '$lockdir'
387 exit 1
388 " 1 2 13 15
389 numtries=100
390 i=$numtries
391 while test $i -gt 0; do
392 # mkdir is a portable test-and-set.
393 if mkdir "$lockdir" 2>/dev/null; then
394 # This process acquired the lock.
395 "$@" -MD
396 stat=$?
397 # Release the lock.
398 rmdir "$lockdir"
399 break
400 else
401 # If the lock is being held by a different process, wait
402 # until the winning process is done or we timeout.
403 while test -d "$lockdir" && test $i -gt 0; do
404 sleep 1
405 i=`expr $i - 1`
406 done
407 fi
408 i=`expr $i - 1`
409 done
410 trap - 1 2 13 15
411 if test $i -le 0; then
412 echo "$0: failed to acquire lock after $numtries attempts" >&2
413 echo "$0: check lockdir '$lockdir'" >&2
414 exit 1
415 fi
416
417 if test $stat -ne 0; then
298418 rm -f "$tmpdepfile"
299419 exit $stat
300420 fi
306426 sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
307427 # Some versions of the HPUX 10.20 sed can't process this invocation
308428 # correctly. Breaking it into two sed invocations is a workaround.
309 sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" |
310 sed -e 's/$/ :/' >> "$depfile"
429 sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" \
430 | sed -e 's/$/ :/' >> "$depfile"
311431 rm -f "$tmpdepfile"
312432 ;;
313433
318438 # 'foo.d', which lands next to the object file, wherever that
319439 # happens to be.
320440 # Much of this is similar to the tru64 case; see comments there.
321 dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
322 test "x$dir" = "x$object" && dir=
323 base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
441 set_dir_from "$object"
442 set_base_from "$object"
324443 if test "$libtool" = yes; then
325444 tmpdepfile1=$dir$base.d
326445 tmpdepfile2=$dir.libs/$base.d
331450 "$@" +Maked
332451 fi
333452 stat=$?
334 if test $stat -eq 0; then :
335 else
453 if test $stat -ne 0; then
336454 rm -f "$tmpdepfile1" "$tmpdepfile2"
337455 exit $stat
338456 fi
342460 test -f "$tmpdepfile" && break
343461 done
344462 if test -f "$tmpdepfile"; then
345 sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile"
346 # Add `dependent.h:' lines.
463 sed -e "s,^.*\.[$lower]*:,$object:," "$tmpdepfile" > "$depfile"
464 # Add 'dependent.h:' lines.
347465 sed -ne '2,${
348 s/^ *//
349 s/ \\*$//
350 s/$/:/
351 p
352 }' "$tmpdepfile" >> "$depfile"
466 s/^ *//
467 s/ \\*$//
468 s/$/:/
469 p
470 }' "$tmpdepfile" >> "$depfile"
353471 else
354 echo "#dummy" > "$depfile"
472 make_dummy_depfile
355473 fi
356474 rm -f "$tmpdepfile" "$tmpdepfile2"
357475 ;;
358476
359477 tru64)
360 # The Tru64 compiler uses -MD to generate dependencies as a side
361 # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'.
362 # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
363 # dependencies in `foo.d' instead, so we check for that too.
364 # Subdirectories are respected.
365 dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
366 test "x$dir" = "x$object" && dir=
367 base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
368
369 if test "$libtool" = yes; then
370 # With Tru64 cc, shared objects can also be used to make a
371 # static library. This mechanism is used in libtool 1.4 series to
372 # handle both shared and static libraries in a single compilation.
373 # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d.
374 #
375 # With libtool 1.5 this exception was removed, and libtool now
376 # generates 2 separate objects for the 2 libraries. These two
377 # compilations output dependencies in $dir.libs/$base.o.d and
378 # in $dir$base.o.d. We have to check for both files, because
379 # one of the two compilations can be disabled. We should prefer
380 # $dir$base.o.d over $dir.libs/$base.o.d because the latter is
381 # automatically cleaned when .libs/ is deleted, while ignoring
382 # the former would cause a distcleancheck panic.
383 tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4
384 tmpdepfile2=$dir$base.o.d # libtool 1.5
385 tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5
386 tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504
387 "$@" -Wc,-MD
388 else
389 tmpdepfile1=$dir$base.o.d
390 tmpdepfile2=$dir$base.d
391 tmpdepfile3=$dir$base.d
392 tmpdepfile4=$dir$base.d
393 "$@" -MD
394 fi
395
396 stat=$?
397 if test $stat -eq 0; then :
398 else
399 rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
400 exit $stat
401 fi
402
403 for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
404 do
405 test -f "$tmpdepfile" && break
406 done
407 if test -f "$tmpdepfile"; then
408 sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
409 # That's a tab and a space in the [].
410 sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
411 else
412 echo "#dummy" > "$depfile"
413 fi
414 rm -f "$tmpdepfile"
415 ;;
478 # The Tru64 compiler uses -MD to generate dependencies as a side
479 # effect. 'cc -MD -o foo.o ...' puts the dependencies into 'foo.o.d'.
480 # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
481 # dependencies in 'foo.d' instead, so we check for that too.
482 # Subdirectories are respected.
483 set_dir_from "$object"
484 set_base_from "$object"
485
486 if test "$libtool" = yes; then
487 # Libtool generates 2 separate objects for the 2 libraries. These
488 # two compilations output dependencies in $dir.libs/$base.o.d and
489 # in $dir$base.o.d. We have to check for both files, because
490 # one of the two compilations can be disabled. We should prefer
491 # $dir$base.o.d over $dir.libs/$base.o.d because the latter is
492 # automatically cleaned when .libs/ is deleted, while ignoring
493 # the former would cause a distcleancheck panic.
494 tmpdepfile1=$dir$base.o.d # libtool 1.5
495 tmpdepfile2=$dir.libs/$base.o.d # Likewise.
496 tmpdepfile3=$dir.libs/$base.d # Compaq CCC V6.2-504
497 "$@" -Wc,-MD
498 else
499 tmpdepfile1=$dir$base.d
500 tmpdepfile2=$dir$base.d
501 tmpdepfile3=$dir$base.d
502 "$@" -MD
503 fi
504
505 stat=$?
506 if test $stat -ne 0; then
507 rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
508 exit $stat
509 fi
510
511 for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
512 do
513 test -f "$tmpdepfile" && break
514 done
515 # Same post-processing that is required for AIX mode.
516 aix_post_process_depfile
517 ;;
416518
417519 msvc7)
418520 if test "$libtool" = yes; then
423525 "$@" $showIncludes > "$tmpdepfile"
424526 stat=$?
425527 grep -v '^Note: including file: ' "$tmpdepfile"
426 if test "$stat" = 0; then :
427 else
528 if test $stat -ne 0; then
428529 rm -f "$tmpdepfile"
429530 exit $stat
430531 fi
442543 p
443544 }' | $cygpath_u | sort -u | sed -n '
444545 s/ /\\ /g
445 s/\(.*\)/ \1 \\/p
546 s/\(.*\)/'"$tab"'\1 \\/p
446547 s/.\(.*\) \\/\1:/
447548 H
448549 $ {
449 s/.*/ /
550 s/.*/'"$tab"'/
450551 G
451552 p
452553 }' >> "$depfile"
554 echo >> "$depfile" # make sure the fragment doesn't end with a backslash
453555 rm -f "$tmpdepfile"
454556 ;;
455557
477579 shift
478580 fi
479581
480 # Remove `-o $object'.
582 # Remove '-o $object'.
481583 IFS=" "
482584 for arg
483585 do
497599 done
498600
499601 test -z "$dashmflag" && dashmflag=-M
500 # Require at least two characters before searching for `:'
602 # Require at least two characters before searching for ':'
501603 # in the target name. This is to cope with DOS-style filenames:
502 # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise.
604 # a dependency such as 'c:/foo/bar' could be seen as target 'c' otherwise.
503605 "$@" $dashmflag |
504 sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile"
606 sed "s|^[$tab ]*[^:$tab ][^:][^:]*:[$tab ]*|$object: |" > "$tmpdepfile"
505607 rm -f "$depfile"
506608 cat < "$tmpdepfile" > "$depfile"
507 tr ' ' '
508 ' < "$tmpdepfile" | \
509 ## Some versions of the HPUX 10.20 sed can't process this invocation
510 ## correctly. Breaking it into two sed invocations is a workaround.
511 sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
609 # Some versions of the HPUX 10.20 sed can't process this sed invocation
610 # correctly. Breaking it into two sed invocations is a workaround.
611 tr ' ' "$nl" < "$tmpdepfile" \
612 | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \
613 | sed -e 's/$/ :/' >> "$depfile"
512614 rm -f "$tmpdepfile"
513615 ;;
514616
561663 # makedepend may prepend the VPATH from the source file name to the object.
562664 # No need to regex-escape $object, excess matching of '.' is harmless.
563665 sed "s|^.*\($object *:\)|\1|" "$tmpdepfile" > "$depfile"
564 sed '1,2d' "$tmpdepfile" | tr ' ' '
565 ' | \
566 ## Some versions of the HPUX 10.20 sed can't process this invocation
567 ## correctly. Breaking it into two sed invocations is a workaround.
568 sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
666 # Some versions of the HPUX 10.20 sed can't process the last invocation
667 # correctly. Breaking it into two sed invocations is a workaround.
668 sed '1,2d' "$tmpdepfile" \
669 | tr ' ' "$nl" \
670 | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \
671 | sed -e 's/$/ :/' >> "$depfile"
569672 rm -f "$tmpdepfile" "$tmpdepfile".bak
570673 ;;
571674
582685 shift
583686 fi
584687
585 # Remove `-o $object'.
688 # Remove '-o $object'.
586689 IFS=" "
587690 for arg
588691 do
601704 esac
602705 done
603706
604 "$@" -E |
605 sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
606 -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |
607 sed '$ s: \\$::' > "$tmpdepfile"
707 "$@" -E \
708 | sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
709 -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
710 | sed '$ s: \\$::' > "$tmpdepfile"
608711 rm -f "$depfile"
609712 echo "$object : \\" > "$depfile"
610713 cat < "$tmpdepfile" >> "$depfile"
636739 shift
637740 ;;
638741 "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
639 set fnord "$@"
640 shift
641 shift
642 ;;
742 set fnord "$@"
743 shift
744 shift
745 ;;
643746 *)
644 set fnord "$@" "$arg"
645 shift
646 shift
647 ;;
747 set fnord "$@" "$arg"
748 shift
749 shift
750 ;;
648751 esac
649752 done
650753 "$@" -E 2>/dev/null |
651754 sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile"
652755 rm -f "$depfile"
653756 echo "$object : \\" > "$depfile"
654 sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
655 echo " " >> "$depfile"
757 sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::'"$tab"'\1 \\:p' >> "$depfile"
758 echo "$tab" >> "$depfile"
656759 sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile"
657760 rm -f "$tmpdepfile"
658761 ;;
0 # Makefile.in generated by automake 1.11.3 from Makefile.am.
0 # Makefile.in generated by automake 1.13.4 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
5 # Foundation, Inc.
3 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
4
65 # This Makefile.in is free software; the Free Software Foundation
76 # gives unlimited permission to copy and/or distribute it,
87 # with or without modifications, as long as this notice is preserved.
1413
1514 @SET_MAKE@
1615 VPATH = @srcdir@
16 am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
17 am__make_running_with_option = \
18 case $${target_option-} in \
19 ?) ;; \
20 *) echo "am__make_running_with_option: internal error: invalid" \
21 "target option '$${target_option-}' specified" >&2; \
22 exit 1;; \
23 esac; \
24 has_opt=no; \
25 sane_makeflags=$$MAKEFLAGS; \
26 if $(am__is_gnu_make); then \
27 sane_makeflags=$$MFLAGS; \
28 else \
29 case $$MAKEFLAGS in \
30 *\\[\ \ ]*) \
31 bs=\\; \
32 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
33 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
34 esac; \
35 fi; \
36 skip_next=no; \
37 strip_trailopt () \
38 { \
39 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
40 }; \
41 for flg in $$sane_makeflags; do \
42 test $$skip_next = yes && { skip_next=no; continue; }; \
43 case $$flg in \
44 *=*|--*) continue;; \
45 -*I) strip_trailopt 'I'; skip_next=yes;; \
46 -*I?*) strip_trailopt 'I';; \
47 -*O) strip_trailopt 'O'; skip_next=yes;; \
48 -*O?*) strip_trailopt 'O';; \
49 -*l) strip_trailopt 'l'; skip_next=yes;; \
50 -*l?*) strip_trailopt 'l';; \
51 -[dEDm]) skip_next=yes;; \
52 -[JT]) skip_next=yes;; \
53 esac; \
54 case $$flg in \
55 *$$target_option*) has_opt=yes; break;; \
56 esac; \
57 done; \
58 test $$has_opt = yes
59 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
60 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
1761 pkgdatadir = $(datadir)/@PACKAGE@
1862 pkgincludedir = $(includedir)/@PACKAGE@
1963 pkglibdir = $(libdir)/@PACKAGE@
3377 build_triplet = @build@
3478 host_triplet = @host@
3579 subdir = doc
36 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
80 DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am
3781 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
82 am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
83 $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
84 $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
85 $(top_srcdir)/configure.ac
3986 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
4087 $(ACLOCAL_M4)
4188 mkinstalldirs = $(install_sh) -d
4289 CONFIG_HEADER = $(top_builddir)/config.h
4390 CONFIG_CLEAN_FILES =
4491 CONFIG_CLEAN_VPATH_FILES =
92 AM_V_P = $(am__v_P_@AM_V@)
93 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
94 am__v_P_0 = false
95 am__v_P_1 = :
4596 AM_V_GEN = $(am__v_GEN_@AM_V@)
4697 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
47 am__v_GEN_0 = @echo " GEN " $@;
98 am__v_GEN_0 = @echo " GEN " $@;
99 am__v_GEN_1 =
48100 AM_V_at = $(am__v_at_@AM_V@)
49101 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
50102 am__v_at_0 = @
103 am__v_at_1 =
51104 SOURCES =
52105 DIST_SOURCES =
106 am__can_run_installinfo = \
107 case $$AM_UPDATE_INFO_DIR in \
108 n|no|NO) false;; \
109 *) (install-info --version) >/dev/null 2>&1;; \
110 esac
111 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
53112 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
54113 ACLOCAL = @ACLOCAL@
55114 AMTAR = @AMTAR@
211270
212271 clean-libtool:
213272 -rm -rf .libs _libs
214 tags: TAGS
215 TAGS:
216
217 ctags: CTAGS
218 CTAGS:
273 tags TAGS:
274
275 ctags CTAGS:
276
277 cscope cscopelist:
219278
220279
221280 distdir: $(DISTFILES)
351410 .MAKE: install-am install-strip
352411
353412 .PHONY: all all-am check check-am clean clean-generic clean-libtool \
354 distclean distclean-generic distclean-libtool distdir dvi \
355 dvi-am html html-am info info-am install install-am \
356 install-data install-data-am install-dvi install-dvi-am \
357 install-exec install-exec-am install-html install-html-am \
358 install-info install-info-am install-man install-pdf \
359 install-pdf-am install-ps install-ps-am install-strip \
360 installcheck installcheck-am installdirs maintainer-clean \
361 maintainer-clean-generic mostlyclean mostlyclean-generic \
362 mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am
413 cscopelist-am ctags-am distclean distclean-generic \
414 distclean-libtool distdir dvi dvi-am html html-am info info-am \
415 install install-am install-data install-data-am install-dvi \
416 install-dvi-am install-exec install-exec-am install-html \
417 install-html-am install-info install-info-am install-man \
418 install-pdf install-pdf-am install-ps install-ps-am \
419 install-strip installcheck installcheck-am installdirs \
420 maintainer-clean maintainer-clean-generic mostlyclean \
421 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
422 tags-am uninstall uninstall-am
363423
364424
365425 # Tell versions [3.59,3.63) of GNU make to not export all variables.
00 #!/bin/sh
11 # install - install a program, script, or datafile
22
3 scriptversion=2011-01-19.21; # UTC
3 scriptversion=2011-11-20.07; # UTC
44
55 # This originates from X11R5 (mit/util/scripts/install.sh), which was
66 # later released in X11R6 (xc/config/util/install.sh) with the
3434 # FSF changes to this file are in the public domain.
3535 #
3636 # Calling this script install-sh is preferred over install.sh, to prevent
37 # `make' implicit rules from creating a file called install from it
37 # 'make' implicit rules from creating a file called install from it
3838 # when there is no Makefile.
3939 #
4040 # This script is compatible with the BSD install script, but was written
155155 -s) stripcmd=$stripprog;;
156156
157157 -t) dst_arg=$2
158 # Protect names problematic for `test' and other utilities.
158 # Protect names problematic for 'test' and other utilities.
159159 case $dst_arg in
160160 -* | [=\(\)!]) dst_arg=./$dst_arg;;
161161 esac
189189 fi
190190 shift # arg
191191 dst_arg=$arg
192 # Protect names problematic for `test' and other utilities.
192 # Protect names problematic for 'test' and other utilities.
193193 case $dst_arg in
194194 -* | [=\(\)!]) dst_arg=./$dst_arg;;
195195 esac
201201 echo "$0: no input file specified." >&2
202202 exit 1
203203 fi
204 # It's OK to call `install-sh -d' without argument.
204 # It's OK to call 'install-sh -d' without argument.
205205 # This can happen when creating conditional directories.
206206 exit 0
207207 fi
239239
240240 for src
241241 do
242 # Protect names problematic for `test' and other utilities.
242 # Protect names problematic for 'test' and other utilities.
243243 case $src in
244244 -* | [=\(\)!]) src=./$src;;
245245 esac
353353 if test -z "$dir_arg" || {
354354 # Check for POSIX incompatibilities with -m.
355355 # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
356 # other-writeable bit of parent directory when it shouldn't.
356 # other-writable bit of parent directory when it shouldn't.
357357 # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
358358 ls_ld_tmpdir=`ls -ld "$tmpdir"`
359359 case $ls_ld_tmpdir in
6969 # compiler: $LTCC
7070 # compiler flags: $LTCFLAGS
7171 # linker: $LD (gnu? $with_gnu_ld)
72 # $progname: (GNU libtool) 2.4.2 Debian-2.4.2-1ubuntu1
72 # $progname: (GNU libtool) 2.4.2
7373 # automake: $automake_version
7474 # autoconf: $autoconf_version
7575 #
7979
8080 PROGRAM=libtool
8181 PACKAGE=libtool
82 VERSION="2.4.2 Debian-2.4.2-1ubuntu1"
82 VERSION=2.4.2
8383 TIMESTAMP=""
8484 package_revision=1.3337
8585
61236123 case $pass in
61246124 dlopen) libs="$dlfiles" ;;
61256125 dlpreopen) libs="$dlprefiles" ;;
6126 link)
6127 libs="$deplibs %DEPLIBS%"
6128 test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
6129 ;;
6126 link) libs="$deplibs %DEPLIBS% $dependency_libs" ;;
61306127 esac
61316128 fi
61326129 if test "$linkmode,$pass" = "lib,dlpreopen"; then
64466443 # It is a libtool convenience library, so add in its objects.
64476444 func_append convenience " $ladir/$objdir/$old_library"
64486445 func_append old_convenience " $ladir/$objdir/$old_library"
6449 tmp_libs=
6450 for deplib in $dependency_libs; do
6451 deplibs="$deplib $deplibs"
6452 if $opt_preserve_dup_deps ; then
6453 case "$tmp_libs " in
6454 *" $deplib "*) func_append specialdeplibs " $deplib" ;;
6455 esac
6456 fi
6457 func_append tmp_libs " $deplib"
6458 done
64596446 elif test "$linkmode" != prog && test "$linkmode" != lib; then
64606447 func_fatal_error "\`$lib' is not a convenience library"
64616448 fi
6449 tmp_libs=
6450 for deplib in $dependency_libs; do
6451 deplibs="$deplib $deplibs"
6452 if $opt_preserve_dup_deps ; then
6453 case "$tmp_libs " in
6454 *" $deplib "*) func_append specialdeplibs " $deplib" ;;
6455 esac
6456 fi
6457 func_append tmp_libs " $deplib"
6458 done
64626459 continue
64636460 fi # $pass = conv
64646461
73507347 age="$number_minor"
73517348 revision="$number_minor"
73527349 lt_irix_increment=no
7353 ;;
7354 *)
7355 func_fatal_configuration "$modename: unknown library version type \`$version_type'"
73567350 ;;
73577351 esac
73587352 ;;
0 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
1 #
2 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
3 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
4 # Foundation, Inc.
5 # Written by Gordon Matzigkeit, 1996
6 #
7 # This file is free software; the Free Software Foundation gives
8 # unlimited permission to copy and/or distribute it, with or without
9 # modifications, as long as this notice is preserved.
10
11 m4_define([_LT_COPYING], [dnl
12 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14 # Foundation, Inc.
15 # Written by Gordon Matzigkeit, 1996
16 #
17 # This file is part of GNU Libtool.
18 #
19 # GNU Libtool is free software; you can redistribute it and/or
20 # modify it under the terms of the GNU General Public License as
21 # published by the Free Software Foundation; either version 2 of
22 # the License, or (at your option) any later version.
23 #
24 # As a special exception to the GNU General Public License,
25 # if you distribute this file as part of a program or library that
26 # is built using GNU Libtool, you may include this file under the
27 # same distribution terms that you use for the rest of that program.
28 #
29 # GNU Libtool is distributed in the hope that it will be useful,
30 # but WITHOUT ANY WARRANTY; without even the implied warranty of
31 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32 # GNU General Public License for more details.
33 #
34 # You should have received a copy of the GNU General Public License
35 # along with GNU Libtool; see the file COPYING. If not, a copy
36 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
37 # obtained by writing to the Free Software Foundation, Inc.,
38 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
39 ])
40
41 # serial 57 LT_INIT
42
43
44 # LT_PREREQ(VERSION)
45 # ------------------
46 # Complain and exit if this libtool version is less that VERSION.
47 m4_defun([LT_PREREQ],
48 [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
49 [m4_default([$3],
50 [m4_fatal([Libtool version $1 or higher is required],
51 63)])],
52 [$2])])
53
54
55 # _LT_CHECK_BUILDDIR
56 # ------------------
57 # Complain if the absolute build directory name contains unusual characters
58 m4_defun([_LT_CHECK_BUILDDIR],
59 [case `pwd` in
60 *\ * | *\ *)
61 AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
62 esac
63 ])
64
65
66 # LT_INIT([OPTIONS])
67 # ------------------
68 AC_DEFUN([LT_INIT],
69 [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
70 AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
71 AC_BEFORE([$0], [LT_LANG])dnl
72 AC_BEFORE([$0], [LT_OUTPUT])dnl
73 AC_BEFORE([$0], [LTDL_INIT])dnl
74 m4_require([_LT_CHECK_BUILDDIR])dnl
75
76 dnl Autoconf doesn't catch unexpanded LT_ macros by default:
77 m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
78 m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
79 dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
80 dnl unless we require an AC_DEFUNed macro:
81 AC_REQUIRE([LTOPTIONS_VERSION])dnl
82 AC_REQUIRE([LTSUGAR_VERSION])dnl
83 AC_REQUIRE([LTVERSION_VERSION])dnl
84 AC_REQUIRE([LTOBSOLETE_VERSION])dnl
85 m4_require([_LT_PROG_LTMAIN])dnl
86
87 _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
88
89 dnl Parse OPTIONS
90 _LT_SET_OPTIONS([$0], [$1])
91
92 # This can be used to rebuild libtool when needed
93 LIBTOOL_DEPS="$ltmain"
94
95 # Always use our own libtool.
96 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
97 AC_SUBST(LIBTOOL)dnl
98
99 _LT_SETUP
100
101 # Only expand once:
102 m4_define([LT_INIT])
103 ])# LT_INIT
104
105 # Old names:
106 AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
107 AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
108 dnl aclocal-1.4 backwards compatibility:
109 dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
110 dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
111
112
113 # _LT_CC_BASENAME(CC)
114 # -------------------
115 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
116 m4_defun([_LT_CC_BASENAME],
117 [for cc_temp in $1""; do
118 case $cc_temp in
119 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
120 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
121 \-*) ;;
122 *) break;;
123 esac
124 done
125 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
126 ])
127
128
129 # _LT_FILEUTILS_DEFAULTS
130 # ----------------------
131 # It is okay to use these file commands and assume they have been set
132 # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
133 m4_defun([_LT_FILEUTILS_DEFAULTS],
134 [: ${CP="cp -f"}
135 : ${MV="mv -f"}
136 : ${RM="rm -f"}
137 ])# _LT_FILEUTILS_DEFAULTS
138
139
140 # _LT_SETUP
141 # ---------
142 m4_defun([_LT_SETUP],
143 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
144 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
145 AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
146 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
147
148 _LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
149 dnl
150 _LT_DECL([], [host_alias], [0], [The host system])dnl
151 _LT_DECL([], [host], [0])dnl
152 _LT_DECL([], [host_os], [0])dnl
153 dnl
154 _LT_DECL([], [build_alias], [0], [The build system])dnl
155 _LT_DECL([], [build], [0])dnl
156 _LT_DECL([], [build_os], [0])dnl
157 dnl
158 AC_REQUIRE([AC_PROG_CC])dnl
159 AC_REQUIRE([LT_PATH_LD])dnl
160 AC_REQUIRE([LT_PATH_NM])dnl
161 dnl
162 AC_REQUIRE([AC_PROG_LN_S])dnl
163 test -z "$LN_S" && LN_S="ln -s"
164 _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
165 dnl
166 AC_REQUIRE([LT_CMD_MAX_LEN])dnl
167 _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
168 _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
169 dnl
170 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
171 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
172 m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
173 m4_require([_LT_CMD_RELOAD])dnl
174 m4_require([_LT_CHECK_MAGIC_METHOD])dnl
175 m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
176 m4_require([_LT_CMD_OLD_ARCHIVE])dnl
177 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
178 m4_require([_LT_WITH_SYSROOT])dnl
179
180 _LT_CONFIG_LIBTOOL_INIT([
181 # See if we are running on zsh, and set the options which allow our
182 # commands through without removal of \ escapes INIT.
183 if test -n "\${ZSH_VERSION+set}" ; then
184 setopt NO_GLOB_SUBST
185 fi
186 ])
187 if test -n "${ZSH_VERSION+set}" ; then
188 setopt NO_GLOB_SUBST
189 fi
190
191 _LT_CHECK_OBJDIR
192
193 m4_require([_LT_TAG_COMPILER])dnl
194
195 case $host_os in
196 aix3*)
197 # AIX sometimes has problems with the GCC collect2 program. For some
198 # reason, if we set the COLLECT_NAMES environment variable, the problems
199 # vanish in a puff of smoke.
200 if test "X${COLLECT_NAMES+set}" != Xset; then
201 COLLECT_NAMES=
202 export COLLECT_NAMES
203 fi
204 ;;
205 esac
206
207 # Global variables:
208 ofile=libtool
209 can_build_shared=yes
210
211 # All known linkers require a `.a' archive for static linking (except MSVC,
212 # which needs '.lib').
213 libext=a
214
215 with_gnu_ld="$lt_cv_prog_gnu_ld"
216
217 old_CC="$CC"
218 old_CFLAGS="$CFLAGS"
219
220 # Set sane defaults for various variables
221 test -z "$CC" && CC=cc
222 test -z "$LTCC" && LTCC=$CC
223 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
224 test -z "$LD" && LD=ld
225 test -z "$ac_objext" && ac_objext=o
226
227 _LT_CC_BASENAME([$compiler])
228
229 # Only perform the check for file, if the check method requires it
230 test -z "$MAGIC_CMD" && MAGIC_CMD=file
231 case $deplibs_check_method in
232 file_magic*)
233 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
234 _LT_PATH_MAGIC
235 fi
236 ;;
237 esac
238
239 # Use C for the default configuration in the libtool script
240 LT_SUPPORTED_TAG([CC])
241 _LT_LANG_C_CONFIG
242 _LT_LANG_DEFAULT_CONFIG
243 _LT_CONFIG_COMMANDS
244 ])# _LT_SETUP
245
246
247 # _LT_PREPARE_SED_QUOTE_VARS
248 # --------------------------
249 # Define a few sed substitution that help us do robust quoting.
250 m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
251 [# Backslashify metacharacters that are still active within
252 # double-quoted strings.
253 sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
254
255 # Same as above, but do not quote variable references.
256 double_quote_subst='s/\([["`\\]]\)/\\\1/g'
257
258 # Sed substitution to delay expansion of an escaped shell variable in a
259 # double_quote_subst'ed string.
260 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
261
262 # Sed substitution to delay expansion of an escaped single quote.
263 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
264
265 # Sed substitution to avoid accidental globbing in evaled expressions
266 no_glob_subst='s/\*/\\\*/g'
267 ])
268
269 # _LT_PROG_LTMAIN
270 # ---------------
271 # Note that this code is called both from `configure', and `config.status'
272 # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
273 # `config.status' has no value for ac_aux_dir unless we are using Automake,
274 # so we pass a copy along to make sure it has a sensible value anyway.
275 m4_defun([_LT_PROG_LTMAIN],
276 [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
277 _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
278 ltmain="$ac_aux_dir/ltmain.sh"
279 ])# _LT_PROG_LTMAIN
280
281
282 ## ------------------------------------- ##
283 ## Accumulate code for creating libtool. ##
284 ## ------------------------------------- ##
285
286 # So that we can recreate a full libtool script including additional
287 # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
288 # in macros and then make a single call at the end using the `libtool'
289 # label.
290
291
292 # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
293 # ----------------------------------------
294 # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
295 m4_define([_LT_CONFIG_LIBTOOL_INIT],
296 [m4_ifval([$1],
297 [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
298 [$1
299 ])])])
300
301 # Initialize.
302 m4_define([_LT_OUTPUT_LIBTOOL_INIT])
303
304
305 # _LT_CONFIG_LIBTOOL([COMMANDS])
306 # ------------------------------
307 # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
308 m4_define([_LT_CONFIG_LIBTOOL],
309 [m4_ifval([$1],
310 [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
311 [$1
312 ])])])
313
314 # Initialize.
315 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
316
317
318 # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
319 # -----------------------------------------------------
320 m4_defun([_LT_CONFIG_SAVE_COMMANDS],
321 [_LT_CONFIG_LIBTOOL([$1])
322 _LT_CONFIG_LIBTOOL_INIT([$2])
323 ])
324
325
326 # _LT_FORMAT_COMMENT([COMMENT])
327 # -----------------------------
328 # Add leading comment marks to the start of each line, and a trailing
329 # full-stop to the whole comment if one is not present already.
330 m4_define([_LT_FORMAT_COMMENT],
331 [m4_ifval([$1], [
332 m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
333 [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
334 )])
335
336
337
338 ## ------------------------ ##
339 ## FIXME: Eliminate VARNAME ##
340 ## ------------------------ ##
341
342
343 # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
344 # -------------------------------------------------------------------
345 # CONFIGNAME is the name given to the value in the libtool script.
346 # VARNAME is the (base) name used in the configure script.
347 # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
348 # VARNAME. Any other value will be used directly.
349 m4_define([_LT_DECL],
350 [lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
351 [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
352 [m4_ifval([$1], [$1], [$2])])
353 lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
354 m4_ifval([$4],
355 [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
356 lt_dict_add_subkey([lt_decl_dict], [$2],
357 [tagged?], [m4_ifval([$5], [yes], [no])])])
358 ])
359
360
361 # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
362 # --------------------------------------------------------
363 m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
364
365
366 # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
367 # ------------------------------------------------
368 m4_define([lt_decl_tag_varnames],
369 [_lt_decl_filter([tagged?], [yes], $@)])
370
371
372 # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
373 # ---------------------------------------------------------
374 m4_define([_lt_decl_filter],
375 [m4_case([$#],
376 [0], [m4_fatal([$0: too few arguments: $#])],
377 [1], [m4_fatal([$0: too few arguments: $#: $1])],
378 [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
379 [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
380 [lt_dict_filter([lt_decl_dict], $@)])[]dnl
381 ])
382
383
384 # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
385 # --------------------------------------------------
386 m4_define([lt_decl_quote_varnames],
387 [_lt_decl_filter([value], [1], $@)])
388
389
390 # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
391 # ---------------------------------------------------
392 m4_define([lt_decl_dquote_varnames],
393 [_lt_decl_filter([value], [2], $@)])
394
395
396 # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
397 # ---------------------------------------------------
398 m4_define([lt_decl_varnames_tagged],
399 [m4_assert([$# <= 2])dnl
400 _$0(m4_quote(m4_default([$1], [[, ]])),
401 m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
402 m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
403 m4_define([_lt_decl_varnames_tagged],
404 [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
405
406
407 # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
408 # ------------------------------------------------
409 m4_define([lt_decl_all_varnames],
410 [_$0(m4_quote(m4_default([$1], [[, ]])),
411 m4_if([$2], [],
412 m4_quote(lt_decl_varnames),
413 m4_quote(m4_shift($@))))[]dnl
414 ])
415 m4_define([_lt_decl_all_varnames],
416 [lt_join($@, lt_decl_varnames_tagged([$1],
417 lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
418 ])
419
420
421 # _LT_CONFIG_STATUS_DECLARE([VARNAME])
422 # ------------------------------------
423 # Quote a variable value, and forward it to `config.status' so that its
424 # declaration there will have the same value as in `configure'. VARNAME
425 # must have a single quote delimited value for this to work.
426 m4_define([_LT_CONFIG_STATUS_DECLARE],
427 [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
428
429
430 # _LT_CONFIG_STATUS_DECLARATIONS
431 # ------------------------------
432 # We delimit libtool config variables with single quotes, so when
433 # we write them to config.status, we have to be sure to quote all
434 # embedded single quotes properly. In configure, this macro expands
435 # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
436 #
437 # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
438 m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
439 [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
440 [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
441
442
443 # _LT_LIBTOOL_TAGS
444 # ----------------
445 # Output comment and list of tags supported by the script
446 m4_defun([_LT_LIBTOOL_TAGS],
447 [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
448 available_tags="_LT_TAGS"dnl
449 ])
450
451
452 # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
453 # -----------------------------------
454 # Extract the dictionary values for VARNAME (optionally with TAG) and
455 # expand to a commented shell variable setting:
456 #
457 # # Some comment about what VAR is for.
458 # visible_name=$lt_internal_name
459 m4_define([_LT_LIBTOOL_DECLARE],
460 [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
461 [description])))[]dnl
462 m4_pushdef([_libtool_name],
463 m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
464 m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
465 [0], [_libtool_name=[$]$1],
466 [1], [_libtool_name=$lt_[]$1],
467 [2], [_libtool_name=$lt_[]$1],
468 [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
469 m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
470 ])
471
472
473 # _LT_LIBTOOL_CONFIG_VARS
474 # -----------------------
475 # Produce commented declarations of non-tagged libtool config variables
476 # suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
477 # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
478 # section) are produced by _LT_LIBTOOL_TAG_VARS.
479 m4_defun([_LT_LIBTOOL_CONFIG_VARS],
480 [m4_foreach([_lt_var],
481 m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
482 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
483
484
485 # _LT_LIBTOOL_TAG_VARS(TAG)
486 # -------------------------
487 m4_define([_LT_LIBTOOL_TAG_VARS],
488 [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
489 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
490
491
492 # _LT_TAGVAR(VARNAME, [TAGNAME])
493 # ------------------------------
494 m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
495
496
497 # _LT_CONFIG_COMMANDS
498 # -------------------
499 # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
500 # variables for single and double quote escaping we saved from calls
501 # to _LT_DECL, we can put quote escaped variables declarations
502 # into `config.status', and then the shell code to quote escape them in
503 # for loops in `config.status'. Finally, any additional code accumulated
504 # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
505 m4_defun([_LT_CONFIG_COMMANDS],
506 [AC_PROVIDE_IFELSE([LT_OUTPUT],
507 dnl If the libtool generation code has been placed in $CONFIG_LT,
508 dnl instead of duplicating it all over again into config.status,
509 dnl then we will have config.status run $CONFIG_LT later, so it
510 dnl needs to know what name is stored there:
511 [AC_CONFIG_COMMANDS([libtool],
512 [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
513 dnl If the libtool generation code is destined for config.status,
514 dnl expand the accumulated commands and init code now:
515 [AC_CONFIG_COMMANDS([libtool],
516 [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
517 ])#_LT_CONFIG_COMMANDS
518
519
520 # Initialize.
521 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
522 [
523
524 # The HP-UX ksh and POSIX shell print the target directory to stdout
525 # if CDPATH is set.
526 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
527
528 sed_quote_subst='$sed_quote_subst'
529 double_quote_subst='$double_quote_subst'
530 delay_variable_subst='$delay_variable_subst'
531 _LT_CONFIG_STATUS_DECLARATIONS
532 LTCC='$LTCC'
533 LTCFLAGS='$LTCFLAGS'
534 compiler='$compiler_DEFAULT'
535
536 # A function that is used when there is no print builtin or printf.
537 func_fallback_echo ()
538 {
539 eval 'cat <<_LTECHO_EOF
540 \$[]1
541 _LTECHO_EOF'
542 }
543
544 # Quote evaled strings.
545 for var in lt_decl_all_varnames([[ \
546 ]], lt_decl_quote_varnames); do
547 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
548 *[[\\\\\\\`\\"\\\$]]*)
549 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
550 ;;
551 *)
552 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
553 ;;
554 esac
555 done
556
557 # Double-quote double-evaled strings.
558 for var in lt_decl_all_varnames([[ \
559 ]], lt_decl_dquote_varnames); do
560 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
561 *[[\\\\\\\`\\"\\\$]]*)
562 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
563 ;;
564 *)
565 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
566 ;;
567 esac
568 done
569
570 _LT_OUTPUT_LIBTOOL_INIT
571 ])
572
573 # _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
574 # ------------------------------------
575 # Generate a child script FILE with all initialization necessary to
576 # reuse the environment learned by the parent script, and make the
577 # file executable. If COMMENT is supplied, it is inserted after the
578 # `#!' sequence but before initialization text begins. After this
579 # macro, additional text can be appended to FILE to form the body of
580 # the child script. The macro ends with non-zero status if the
581 # file could not be fully written (such as if the disk is full).
582 m4_ifdef([AS_INIT_GENERATED],
583 [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
584 [m4_defun([_LT_GENERATED_FILE_INIT],
585 [m4_require([AS_PREPARE])]dnl
586 [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
587 [lt_write_fail=0
588 cat >$1 <<_ASEOF || lt_write_fail=1
589 #! $SHELL
590 # Generated by $as_me.
591 $2
592 SHELL=\${CONFIG_SHELL-$SHELL}
593 export SHELL
594 _ASEOF
595 cat >>$1 <<\_ASEOF || lt_write_fail=1
596 AS_SHELL_SANITIZE
597 _AS_PREPARE
598 exec AS_MESSAGE_FD>&1
599 _ASEOF
600 test $lt_write_fail = 0 && chmod +x $1[]dnl
601 m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
602
603 # LT_OUTPUT
604 # ---------
605 # This macro allows early generation of the libtool script (before
606 # AC_OUTPUT is called), incase it is used in configure for compilation
607 # tests.
608 AC_DEFUN([LT_OUTPUT],
609 [: ${CONFIG_LT=./config.lt}
610 AC_MSG_NOTICE([creating $CONFIG_LT])
611 _LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
612 [# Run this file to recreate a libtool stub with the current configuration.])
613
614 cat >>"$CONFIG_LT" <<\_LTEOF
615 lt_cl_silent=false
616 exec AS_MESSAGE_LOG_FD>>config.log
617 {
618 echo
619 AS_BOX([Running $as_me.])
620 } >&AS_MESSAGE_LOG_FD
621
622 lt_cl_help="\
623 \`$as_me' creates a local libtool stub from the current configuration,
624 for use in further configure time tests before the real libtool is
625 generated.
626
627 Usage: $[0] [[OPTIONS]]
628
629 -h, --help print this help, then exit
630 -V, --version print version number, then exit
631 -q, --quiet do not print progress messages
632 -d, --debug don't remove temporary files
633
634 Report bugs to <bug-libtool@gnu.org>."
635
636 lt_cl_version="\
637 m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
638 m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
639 configured by $[0], generated by m4_PACKAGE_STRING.
640
641 Copyright (C) 2011 Free Software Foundation, Inc.
642 This config.lt script is free software; the Free Software Foundation
643 gives unlimited permision to copy, distribute and modify it."
644
645 while test $[#] != 0
646 do
647 case $[1] in
648 --version | --v* | -V )
649 echo "$lt_cl_version"; exit 0 ;;
650 --help | --h* | -h )
651 echo "$lt_cl_help"; exit 0 ;;
652 --debug | --d* | -d )
653 debug=: ;;
654 --quiet | --q* | --silent | --s* | -q )
655 lt_cl_silent=: ;;
656
657 -*) AC_MSG_ERROR([unrecognized option: $[1]
658 Try \`$[0] --help' for more information.]) ;;
659
660 *) AC_MSG_ERROR([unrecognized argument: $[1]
661 Try \`$[0] --help' for more information.]) ;;
662 esac
663 shift
664 done
665
666 if $lt_cl_silent; then
667 exec AS_MESSAGE_FD>/dev/null
668 fi
669 _LTEOF
670
671 cat >>"$CONFIG_LT" <<_LTEOF
672 _LT_OUTPUT_LIBTOOL_COMMANDS_INIT
673 _LTEOF
674
675 cat >>"$CONFIG_LT" <<\_LTEOF
676 AC_MSG_NOTICE([creating $ofile])
677 _LT_OUTPUT_LIBTOOL_COMMANDS
678 AS_EXIT(0)
679 _LTEOF
680 chmod +x "$CONFIG_LT"
681
682 # configure is writing to config.log, but config.lt does its own redirection,
683 # appending to config.log, which fails on DOS, as config.log is still kept
684 # open by configure. Here we exec the FD to /dev/null, effectively closing
685 # config.log, so it can be properly (re)opened and appended to by config.lt.
686 lt_cl_success=:
687 test "$silent" = yes &&
688 lt_config_lt_args="$lt_config_lt_args --quiet"
689 exec AS_MESSAGE_LOG_FD>/dev/null
690 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
691 exec AS_MESSAGE_LOG_FD>>config.log
692 $lt_cl_success || AS_EXIT(1)
693 ])# LT_OUTPUT
694
695
696 # _LT_CONFIG(TAG)
697 # ---------------
698 # If TAG is the built-in tag, create an initial libtool script with a
699 # default configuration from the untagged config vars. Otherwise add code
700 # to config.status for appending the configuration named by TAG from the
701 # matching tagged config vars.
702 m4_defun([_LT_CONFIG],
703 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
704 _LT_CONFIG_SAVE_COMMANDS([
705 m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
706 m4_if(_LT_TAG, [C], [
707 # See if we are running on zsh, and set the options which allow our
708 # commands through without removal of \ escapes.
709 if test -n "${ZSH_VERSION+set}" ; then
710 setopt NO_GLOB_SUBST
711 fi
712
713 cfgfile="${ofile}T"
714 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
715 $RM "$cfgfile"
716
717 cat <<_LT_EOF >> "$cfgfile"
718 #! $SHELL
719
720 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
721 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
722 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
723 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
724 #
725 _LT_COPYING
726 _LT_LIBTOOL_TAGS
727
728 # ### BEGIN LIBTOOL CONFIG
729 _LT_LIBTOOL_CONFIG_VARS
730 _LT_LIBTOOL_TAG_VARS
731 # ### END LIBTOOL CONFIG
732
733 _LT_EOF
734
735 case $host_os in
736 aix3*)
737 cat <<\_LT_EOF >> "$cfgfile"
738 # AIX sometimes has problems with the GCC collect2 program. For some
739 # reason, if we set the COLLECT_NAMES environment variable, the problems
740 # vanish in a puff of smoke.
741 if test "X${COLLECT_NAMES+set}" != Xset; then
742 COLLECT_NAMES=
743 export COLLECT_NAMES
744 fi
745 _LT_EOF
746 ;;
747 esac
748
749 _LT_PROG_LTMAIN
750
751 # We use sed instead of cat because bash on DJGPP gets confused if
752 # if finds mixed CR/LF and LF-only lines. Since sed operates in
753 # text mode, it properly converts lines to CR/LF. This bash problem
754 # is reportedly fixed, but why not run on old versions too?
755 sed '$q' "$ltmain" >> "$cfgfile" \
756 || (rm -f "$cfgfile"; exit 1)
757
758 _LT_PROG_REPLACE_SHELLFNS
759
760 mv -f "$cfgfile" "$ofile" ||
761 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
762 chmod +x "$ofile"
763 ],
764 [cat <<_LT_EOF >> "$ofile"
765
766 dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
767 dnl in a comment (ie after a #).
768 # ### BEGIN LIBTOOL TAG CONFIG: $1
769 _LT_LIBTOOL_TAG_VARS(_LT_TAG)
770 # ### END LIBTOOL TAG CONFIG: $1
771 _LT_EOF
772 ])dnl /m4_if
773 ],
774 [m4_if([$1], [], [
775 PACKAGE='$PACKAGE'
776 VERSION='$VERSION'
777 TIMESTAMP='$TIMESTAMP'
778 RM='$RM'
779 ofile='$ofile'], [])
780 ])dnl /_LT_CONFIG_SAVE_COMMANDS
781 ])# _LT_CONFIG
782
783
784 # LT_SUPPORTED_TAG(TAG)
785 # ---------------------
786 # Trace this macro to discover what tags are supported by the libtool
787 # --tag option, using:
788 # autoconf --trace 'LT_SUPPORTED_TAG:$1'
789 AC_DEFUN([LT_SUPPORTED_TAG], [])
790
791
792 # C support is built-in for now
793 m4_define([_LT_LANG_C_enabled], [])
794 m4_define([_LT_TAGS], [])
795
796
797 # LT_LANG(LANG)
798 # -------------
799 # Enable libtool support for the given language if not already enabled.
800 AC_DEFUN([LT_LANG],
801 [AC_BEFORE([$0], [LT_OUTPUT])dnl
802 m4_case([$1],
803 [C], [_LT_LANG(C)],
804 [C++], [_LT_LANG(CXX)],
805 [Go], [_LT_LANG(GO)],
806 [Java], [_LT_LANG(GCJ)],
807 [Fortran 77], [_LT_LANG(F77)],
808 [Fortran], [_LT_LANG(FC)],
809 [Windows Resource], [_LT_LANG(RC)],
810 [m4_ifdef([_LT_LANG_]$1[_CONFIG],
811 [_LT_LANG($1)],
812 [m4_fatal([$0: unsupported language: "$1"])])])dnl
813 ])# LT_LANG
814
815
816 # _LT_LANG(LANGNAME)
817 # ------------------
818 m4_defun([_LT_LANG],
819 [m4_ifdef([_LT_LANG_]$1[_enabled], [],
820 [LT_SUPPORTED_TAG([$1])dnl
821 m4_append([_LT_TAGS], [$1 ])dnl
822 m4_define([_LT_LANG_]$1[_enabled], [])dnl
823 _LT_LANG_$1_CONFIG($1)])dnl
824 ])# _LT_LANG
825
826
827 m4_ifndef([AC_PROG_GO], [
828 ############################################################
829 # NOTE: This macro has been submitted for inclusion into #
830 # GNU Autoconf as AC_PROG_GO. When it is available in #
831 # a released version of Autoconf we should remove this #
832 # macro and use it instead. #
833 ############################################################
834 m4_defun([AC_PROG_GO],
835 [AC_LANG_PUSH(Go)dnl
836 AC_ARG_VAR([GOC], [Go compiler command])dnl
837 AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
838 _AC_ARG_VAR_LDFLAGS()dnl
839 AC_CHECK_TOOL(GOC, gccgo)
840 if test -z "$GOC"; then
841 if test -n "$ac_tool_prefix"; then
842 AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
843 fi
844 fi
845 if test -z "$GOC"; then
846 AC_CHECK_PROG(GOC, gccgo, gccgo, false)
847 fi
848 ])#m4_defun
849 ])#m4_ifndef
850
851
852 # _LT_LANG_DEFAULT_CONFIG
853 # -----------------------
854 m4_defun([_LT_LANG_DEFAULT_CONFIG],
855 [AC_PROVIDE_IFELSE([AC_PROG_CXX],
856 [LT_LANG(CXX)],
857 [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
858
859 AC_PROVIDE_IFELSE([AC_PROG_F77],
860 [LT_LANG(F77)],
861 [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
862
863 AC_PROVIDE_IFELSE([AC_PROG_FC],
864 [LT_LANG(FC)],
865 [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
866
867 dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
868 dnl pulling things in needlessly.
869 AC_PROVIDE_IFELSE([AC_PROG_GCJ],
870 [LT_LANG(GCJ)],
871 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
872 [LT_LANG(GCJ)],
873 [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
874 [LT_LANG(GCJ)],
875 [m4_ifdef([AC_PROG_GCJ],
876 [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
877 m4_ifdef([A][M_PROG_GCJ],
878 [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
879 m4_ifdef([LT_PROG_GCJ],
880 [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
881
882 AC_PROVIDE_IFELSE([AC_PROG_GO],
883 [LT_LANG(GO)],
884 [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
885
886 AC_PROVIDE_IFELSE([LT_PROG_RC],
887 [LT_LANG(RC)],
888 [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
889 ])# _LT_LANG_DEFAULT_CONFIG
890
891 # Obsolete macros:
892 AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
893 AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
894 AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
895 AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
896 AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
897 dnl aclocal-1.4 backwards compatibility:
898 dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
899 dnl AC_DEFUN([AC_LIBTOOL_F77], [])
900 dnl AC_DEFUN([AC_LIBTOOL_FC], [])
901 dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
902 dnl AC_DEFUN([AC_LIBTOOL_RC], [])
903
904
905 # _LT_TAG_COMPILER
906 # ----------------
907 m4_defun([_LT_TAG_COMPILER],
908 [AC_REQUIRE([AC_PROG_CC])dnl
909
910 _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
911 _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
912 _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
913 _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
914
915 # If no C compiler was specified, use CC.
916 LTCC=${LTCC-"$CC"}
917
918 # If no C compiler flags were specified, use CFLAGS.
919 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
920
921 # Allow CC to be a program name with arguments.
922 compiler=$CC
923 ])# _LT_TAG_COMPILER
924
925
926 # _LT_COMPILER_BOILERPLATE
927 # ------------------------
928 # Check for compiler boilerplate output or warnings with
929 # the simple compiler test code.
930 m4_defun([_LT_COMPILER_BOILERPLATE],
931 [m4_require([_LT_DECL_SED])dnl
932 ac_outfile=conftest.$ac_objext
933 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
934 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
935 _lt_compiler_boilerplate=`cat conftest.err`
936 $RM conftest*
937 ])# _LT_COMPILER_BOILERPLATE
938
939
940 # _LT_LINKER_BOILERPLATE
941 # ----------------------
942 # Check for linker boilerplate output or warnings with
943 # the simple link test code.
944 m4_defun([_LT_LINKER_BOILERPLATE],
945 [m4_require([_LT_DECL_SED])dnl
946 ac_outfile=conftest.$ac_objext
947 echo "$lt_simple_link_test_code" >conftest.$ac_ext
948 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
949 _lt_linker_boilerplate=`cat conftest.err`
950 $RM -r conftest*
951 ])# _LT_LINKER_BOILERPLATE
952
953 # _LT_REQUIRED_DARWIN_CHECKS
954 # -------------------------
955 m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
956 case $host_os in
957 rhapsody* | darwin*)
958 AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
959 AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
960 AC_CHECK_TOOL([LIPO], [lipo], [:])
961 AC_CHECK_TOOL([OTOOL], [otool], [:])
962 AC_CHECK_TOOL([OTOOL64], [otool64], [:])
963 _LT_DECL([], [DSYMUTIL], [1],
964 [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
965 _LT_DECL([], [NMEDIT], [1],
966 [Tool to change global to local symbols on Mac OS X])
967 _LT_DECL([], [LIPO], [1],
968 [Tool to manipulate fat objects and archives on Mac OS X])
969 _LT_DECL([], [OTOOL], [1],
970 [ldd/readelf like tool for Mach-O binaries on Mac OS X])
971 _LT_DECL([], [OTOOL64], [1],
972 [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
973
974 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
975 [lt_cv_apple_cc_single_mod=no
976 if test -z "${LT_MULTI_MODULE}"; then
977 # By default we will add the -single_module flag. You can override
978 # by either setting the environment variable LT_MULTI_MODULE
979 # non-empty at configure time, or by adding -multi_module to the
980 # link flags.
981 rm -rf libconftest.dylib*
982 echo "int foo(void){return 1;}" > conftest.c
983 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
984 -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
985 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
986 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
987 _lt_result=$?
988 # If there is a non-empty error log, and "single_module"
989 # appears in it, assume the flag caused a linker warning
990 if test -s conftest.err && $GREP single_module conftest.err; then
991 cat conftest.err >&AS_MESSAGE_LOG_FD
992 # Otherwise, if the output was created with a 0 exit code from
993 # the compiler, it worked.
994 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
995 lt_cv_apple_cc_single_mod=yes
996 else
997 cat conftest.err >&AS_MESSAGE_LOG_FD
998 fi
999 rm -rf libconftest.dylib*
1000 rm -f conftest.*
1001 fi])
1002
1003 AC_CACHE_CHECK([for -exported_symbols_list linker flag],
1004 [lt_cv_ld_exported_symbols_list],
1005 [lt_cv_ld_exported_symbols_list=no
1006 save_LDFLAGS=$LDFLAGS
1007 echo "_main" > conftest.sym
1008 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1009 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
1010 [lt_cv_ld_exported_symbols_list=yes],
1011 [lt_cv_ld_exported_symbols_list=no])
1012 LDFLAGS="$save_LDFLAGS"
1013 ])
1014
1015 AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
1016 [lt_cv_ld_force_load=no
1017 cat > conftest.c << _LT_EOF
1018 int forced_loaded() { return 2;}
1019 _LT_EOF
1020 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
1021 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
1022 echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
1023 $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
1024 echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
1025 $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
1026 cat > conftest.c << _LT_EOF
1027 int main() { return 0;}
1028 _LT_EOF
1029 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
1030 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
1031 _lt_result=$?
1032 if test -s conftest.err && $GREP force_load conftest.err; then
1033 cat conftest.err >&AS_MESSAGE_LOG_FD
1034 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
1035 lt_cv_ld_force_load=yes
1036 else
1037 cat conftest.err >&AS_MESSAGE_LOG_FD
1038 fi
1039 rm -f conftest.err libconftest.a conftest conftest.c
1040 rm -rf conftest.dSYM
1041 ])
1042 case $host_os in
1043 rhapsody* | darwin1.[[012]])
1044 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
1045 darwin1.*)
1046 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1047 darwin*) # darwin 5.x on
1048 # if running on 10.5 or later, the deployment target defaults
1049 # to the OS version, if on x86, and 10.4, the deployment
1050 # target defaults to 10.4. Don't you love it?
1051 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
1052 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
1053 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1054 10.[[012]]*)
1055 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1056 10.*)
1057 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1058 esac
1059 ;;
1060 esac
1061 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
1062 _lt_dar_single_mod='$single_module'
1063 fi
1064 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
1065 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
1066 else
1067 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
1068 fi
1069 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
1070 _lt_dsymutil='~$DSYMUTIL $lib || :'
1071 else
1072 _lt_dsymutil=
1073 fi
1074 ;;
1075 esac
1076 ])
1077
1078
1079 # _LT_DARWIN_LINKER_FEATURES([TAG])
1080 # ---------------------------------
1081 # Checks for linker and compiler features on darwin
1082 m4_defun([_LT_DARWIN_LINKER_FEATURES],
1083 [
1084 m4_require([_LT_REQUIRED_DARWIN_CHECKS])
1085 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
1086 _LT_TAGVAR(hardcode_direct, $1)=no
1087 _LT_TAGVAR(hardcode_automatic, $1)=yes
1088 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1089 if test "$lt_cv_ld_force_load" = "yes"; then
1090 _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
1091 m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
1092 [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes])
1093 else
1094 _LT_TAGVAR(whole_archive_flag_spec, $1)=''
1095 fi
1096 _LT_TAGVAR(link_all_deplibs, $1)=yes
1097 _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
1098 case $cc_basename in
1099 ifort*) _lt_dar_can_shared=yes ;;
1100 *) _lt_dar_can_shared=$GCC ;;
1101 esac
1102 if test "$_lt_dar_can_shared" = "yes"; then
1103 output_verbose_link_cmd=func_echo_all
1104 _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}"
1105 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1106 _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}"
1107 _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}"
1108 m4_if([$1], [CXX],
1109 [ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
1110 _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}"
1111 _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}"
1112 fi
1113 ],[])
1114 else
1115 _LT_TAGVAR(ld_shlibs, $1)=no
1116 fi
1117 ])
1118
1119 # _LT_SYS_MODULE_PATH_AIX([TAGNAME])
1120 # ----------------------------------
1121 # Links a minimal program and checks the executable
1122 # for the system default hardcoded library path. In most cases,
1123 # this is /usr/lib:/lib, but when the MPI compilers are used
1124 # the location of the communication and MPI libs are included too.
1125 # If we don't find anything, use the default library path according
1126 # to the aix ld manual.
1127 # Store the results from the different compilers for each TAGNAME.
1128 # Allow to override them for all tags through lt_cv_aix_libpath.
1129 m4_defun([_LT_SYS_MODULE_PATH_AIX],
1130 [m4_require([_LT_DECL_SED])dnl
1131 if test "${lt_cv_aix_libpath+set}" = set; then
1132 aix_libpath=$lt_cv_aix_libpath
1133 else
1134 AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
1135 [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
1136 lt_aix_libpath_sed='[
1137 /Import File Strings/,/^$/ {
1138 /^0/ {
1139 s/^0 *\([^ ]*\) *$/\1/
1140 p
1141 }
1142 }]'
1143 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1144 # Check for a 64-bit object if we didn't find anything.
1145 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1146 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1147 fi],[])
1148 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1149 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
1150 fi
1151 ])
1152 aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
1153 fi
1154 ])# _LT_SYS_MODULE_PATH_AIX
1155
1156
1157 # _LT_SHELL_INIT(ARG)
1158 # -------------------
1159 m4_define([_LT_SHELL_INIT],
1160 [m4_divert_text([M4SH-INIT], [$1
1161 ])])# _LT_SHELL_INIT
1162
1163
1164
1165 # _LT_PROG_ECHO_BACKSLASH
1166 # -----------------------
1167 # Find how we can fake an echo command that does not interpret backslash.
1168 # In particular, with Autoconf 2.60 or later we add some code to the start
1169 # of the generated configure script which will find a shell with a builtin
1170 # printf (which we can use as an echo command).
1171 m4_defun([_LT_PROG_ECHO_BACKSLASH],
1172 [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1173 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1174 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1175
1176 AC_MSG_CHECKING([how to print strings])
1177 # Test print first, because it will be a builtin if present.
1178 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
1179 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
1180 ECHO='print -r --'
1181 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
1182 ECHO='printf %s\n'
1183 else
1184 # Use this function as a fallback that always works.
1185 func_fallback_echo ()
1186 {
1187 eval 'cat <<_LTECHO_EOF
1188 $[]1
1189 _LTECHO_EOF'
1190 }
1191 ECHO='func_fallback_echo'
1192 fi
1193
1194 # func_echo_all arg...
1195 # Invoke $ECHO with all args, space-separated.
1196 func_echo_all ()
1197 {
1198 $ECHO "$*"
1199 }
1200
1201 case "$ECHO" in
1202 printf*) AC_MSG_RESULT([printf]) ;;
1203 print*) AC_MSG_RESULT([print -r]) ;;
1204 *) AC_MSG_RESULT([cat]) ;;
1205 esac
1206
1207 m4_ifdef([_AS_DETECT_SUGGESTED],
1208 [_AS_DETECT_SUGGESTED([
1209 test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
1210 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1211 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1212 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1213 PATH=/empty FPATH=/empty; export PATH FPATH
1214 test "X`printf %s $ECHO`" = "X$ECHO" \
1215 || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
1216
1217 _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
1218 _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
1219 ])# _LT_PROG_ECHO_BACKSLASH
1220
1221
1222 # _LT_WITH_SYSROOT
1223 # ----------------
1224 AC_DEFUN([_LT_WITH_SYSROOT],
1225 [AC_MSG_CHECKING([for sysroot])
1226 AC_ARG_WITH([sysroot],
1227 [ --with-sysroot[=DIR] Search for dependent libraries within DIR
1228 (or the compiler's sysroot if not specified).],
1229 [], [with_sysroot=no])
1230
1231 dnl lt_sysroot will always be passed unquoted. We quote it here
1232 dnl in case the user passed a directory name.
1233 lt_sysroot=
1234 case ${with_sysroot} in #(
1235 yes)
1236 if test "$GCC" = yes; then
1237 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
1238 fi
1239 ;; #(
1240 /*)
1241 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
1242 ;; #(
1243 no|'')
1244 ;; #(
1245 *)
1246 AC_MSG_RESULT([${with_sysroot}])
1247 AC_MSG_ERROR([The sysroot must be an absolute path.])
1248 ;;
1249 esac
1250
1251 AC_MSG_RESULT([${lt_sysroot:-no}])
1252 _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
1253 [dependent libraries, and in which our libraries should be installed.])])
1254
1255 # _LT_ENABLE_LOCK
1256 # ---------------
1257 m4_defun([_LT_ENABLE_LOCK],
1258 [AC_ARG_ENABLE([libtool-lock],
1259 [AS_HELP_STRING([--disable-libtool-lock],
1260 [avoid locking (might break parallel builds)])])
1261 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1262
1263 # Some flags need to be propagated to the compiler or linker for good
1264 # libtool support.
1265 case $host in
1266 ia64-*-hpux*)
1267 # Find out which ABI we are using.
1268 echo 'int i;' > conftest.$ac_ext
1269 if AC_TRY_EVAL(ac_compile); then
1270 case `/usr/bin/file conftest.$ac_objext` in
1271 *ELF-32*)
1272 HPUX_IA64_MODE="32"
1273 ;;
1274 *ELF-64*)
1275 HPUX_IA64_MODE="64"
1276 ;;
1277 esac
1278 fi
1279 rm -rf conftest*
1280 ;;
1281 *-*-irix6*)
1282 # Find out which ABI we are using.
1283 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
1284 if AC_TRY_EVAL(ac_compile); then
1285 if test "$lt_cv_prog_gnu_ld" = yes; then
1286 case `/usr/bin/file conftest.$ac_objext` in
1287 *32-bit*)
1288 LD="${LD-ld} -melf32bsmip"
1289 ;;
1290 *N32*)
1291 LD="${LD-ld} -melf32bmipn32"
1292 ;;
1293 *64-bit*)
1294 LD="${LD-ld} -melf64bmip"
1295 ;;
1296 esac
1297 else
1298 case `/usr/bin/file conftest.$ac_objext` in
1299 *32-bit*)
1300 LD="${LD-ld} -32"
1301 ;;
1302 *N32*)
1303 LD="${LD-ld} -n32"
1304 ;;
1305 *64-bit*)
1306 LD="${LD-ld} -64"
1307 ;;
1308 esac
1309 fi
1310 fi
1311 rm -rf conftest*
1312 ;;
1313
1314 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
1315 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
1316 # Find out which ABI we are using.
1317 echo 'int i;' > conftest.$ac_ext
1318 if AC_TRY_EVAL(ac_compile); then
1319 case `/usr/bin/file conftest.o` in
1320 *32-bit*)
1321 case $host in
1322 x86_64-*kfreebsd*-gnu)
1323 LD="${LD-ld} -m elf_i386_fbsd"
1324 ;;
1325 x86_64-*linux*)
1326 LD="${LD-ld} -m elf_i386"
1327 ;;
1328 powerpc64le-*linux*)
1329 LD="${LD-ld} -m elf32lppclinux"
1330 ;;
1331 powerpc64-*linux*)
1332 LD="${LD-ld} -m elf32ppclinux"
1333 ;;
1334 s390x-*linux*)
1335 LD="${LD-ld} -m elf_s390"
1336 ;;
1337 sparc64-*linux*)
1338 LD="${LD-ld} -m elf32_sparc"
1339 ;;
1340 esac
1341 ;;
1342 *64-bit*)
1343 case $host in
1344 x86_64-*kfreebsd*-gnu)
1345 LD="${LD-ld} -m elf_x86_64_fbsd"
1346 ;;
1347 x86_64-*linux*)
1348 LD="${LD-ld} -m elf_x86_64"
1349 ;;
1350 powerpcle-*linux*)
1351 LD="${LD-ld} -m elf64lppc"
1352 ;;
1353 powerpc-*linux*)
1354 LD="${LD-ld} -m elf64ppc"
1355 ;;
1356 s390*-*linux*|s390*-*tpf*)
1357 LD="${LD-ld} -m elf64_s390"
1358 ;;
1359 sparc*-*linux*)
1360 LD="${LD-ld} -m elf64_sparc"
1361 ;;
1362 esac
1363 ;;
1364 esac
1365 fi
1366 rm -rf conftest*
1367 ;;
1368
1369 *-*-sco3.2v5*)
1370 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1371 SAVE_CFLAGS="$CFLAGS"
1372 CFLAGS="$CFLAGS -belf"
1373 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1374 [AC_LANG_PUSH(C)
1375 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1376 AC_LANG_POP])
1377 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1378 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1379 CFLAGS="$SAVE_CFLAGS"
1380 fi
1381 ;;
1382 *-*solaris*)
1383 # Find out which ABI we are using.
1384 echo 'int i;' > conftest.$ac_ext
1385 if AC_TRY_EVAL(ac_compile); then
1386 case `/usr/bin/file conftest.o` in
1387 *64-bit*)
1388 case $lt_cv_prog_gnu_ld in
1389 yes*)
1390 case $host in
1391 i?86-*-solaris*)
1392 LD="${LD-ld} -m elf_x86_64"
1393 ;;
1394 sparc*-*-solaris*)
1395 LD="${LD-ld} -m elf64_sparc"
1396 ;;
1397 esac
1398 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
1399 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
1400 LD="${LD-ld}_sol2"
1401 fi
1402 ;;
1403 *)
1404 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
1405 LD="${LD-ld} -64"
1406 fi
1407 ;;
1408 esac
1409 ;;
1410 esac
1411 fi
1412 rm -rf conftest*
1413 ;;
1414 esac
1415
1416 need_locks="$enable_libtool_lock"
1417 ])# _LT_ENABLE_LOCK
1418
1419
1420 # _LT_PROG_AR
1421 # -----------
1422 m4_defun([_LT_PROG_AR],
1423 [AC_CHECK_TOOLS(AR, [ar], false)
1424 : ${AR=ar}
1425 : ${AR_FLAGS=cru}
1426 _LT_DECL([], [AR], [1], [The archiver])
1427 _LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
1428
1429 AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
1430 [lt_cv_ar_at_file=no
1431 AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
1432 [echo conftest.$ac_objext > conftest.lst
1433 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
1434 AC_TRY_EVAL([lt_ar_try])
1435 if test "$ac_status" -eq 0; then
1436 # Ensure the archiver fails upon bogus file names.
1437 rm -f conftest.$ac_objext libconftest.a
1438 AC_TRY_EVAL([lt_ar_try])
1439 if test "$ac_status" -ne 0; then
1440 lt_cv_ar_at_file=@
1441 fi
1442 fi
1443 rm -f conftest.* libconftest.a
1444 ])
1445 ])
1446
1447 if test "x$lt_cv_ar_at_file" = xno; then
1448 archiver_list_spec=
1449 else
1450 archiver_list_spec=$lt_cv_ar_at_file
1451 fi
1452 _LT_DECL([], [archiver_list_spec], [1],
1453 [How to feed a file listing to the archiver])
1454 ])# _LT_PROG_AR
1455
1456
1457 # _LT_CMD_OLD_ARCHIVE
1458 # -------------------
1459 m4_defun([_LT_CMD_OLD_ARCHIVE],
1460 [_LT_PROG_AR
1461
1462 AC_CHECK_TOOL(STRIP, strip, :)
1463 test -z "$STRIP" && STRIP=:
1464 _LT_DECL([], [STRIP], [1], [A symbol stripping program])
1465
1466 AC_CHECK_TOOL(RANLIB, ranlib, :)
1467 test -z "$RANLIB" && RANLIB=:
1468 _LT_DECL([], [RANLIB], [1],
1469 [Commands used to install an old-style archive])
1470
1471 # Determine commands to create old-style static archives.
1472 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1473 old_postinstall_cmds='chmod 644 $oldlib'
1474 old_postuninstall_cmds=
1475
1476 if test -n "$RANLIB"; then
1477 case $host_os in
1478 openbsd*)
1479 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
1480 ;;
1481 *)
1482 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
1483 ;;
1484 esac
1485 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
1486 fi
1487
1488 case $host_os in
1489 darwin*)
1490 lock_old_archive_extraction=yes ;;
1491 *)
1492 lock_old_archive_extraction=no ;;
1493 esac
1494 _LT_DECL([], [old_postinstall_cmds], [2])
1495 _LT_DECL([], [old_postuninstall_cmds], [2])
1496 _LT_TAGDECL([], [old_archive_cmds], [2],
1497 [Commands used to build an old-style archive])
1498 _LT_DECL([], [lock_old_archive_extraction], [0],
1499 [Whether to use a lock for old archive extraction])
1500 ])# _LT_CMD_OLD_ARCHIVE
1501
1502
1503 # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1504 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
1505 # ----------------------------------------------------------------
1506 # Check whether the given compiler option works
1507 AC_DEFUN([_LT_COMPILER_OPTION],
1508 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1509 m4_require([_LT_DECL_SED])dnl
1510 AC_CACHE_CHECK([$1], [$2],
1511 [$2=no
1512 m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1513 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1514 lt_compiler_flag="$3"
1515 # Insert the option either (1) after the last *FLAGS variable, or
1516 # (2) before a word containing "conftest.", or (3) at the end.
1517 # Note that $ac_compile itself does not contain backslashes and begins
1518 # with a dollar sign (not a hyphen), so the echo should work correctly.
1519 # The option is referenced via a variable to avoid confusing sed.
1520 lt_compile=`echo "$ac_compile" | $SED \
1521 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1522 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1523 -e 's:$: $lt_compiler_flag:'`
1524 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1525 (eval "$lt_compile" 2>conftest.err)
1526 ac_status=$?
1527 cat conftest.err >&AS_MESSAGE_LOG_FD
1528 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1529 if (exit $ac_status) && test -s "$ac_outfile"; then
1530 # The compiler can only warn and ignore the option if not recognized
1531 # So say no if there are warnings other than the usual output.
1532 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1533 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1534 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1535 $2=yes
1536 fi
1537 fi
1538 $RM conftest*
1539 ])
1540
1541 if test x"[$]$2" = xyes; then
1542 m4_if([$5], , :, [$5])
1543 else
1544 m4_if([$6], , :, [$6])
1545 fi
1546 ])# _LT_COMPILER_OPTION
1547
1548 # Old name:
1549 AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
1550 dnl aclocal-1.4 backwards compatibility:
1551 dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
1552
1553
1554 # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1555 # [ACTION-SUCCESS], [ACTION-FAILURE])
1556 # ----------------------------------------------------
1557 # Check whether the given linker option works
1558 AC_DEFUN([_LT_LINKER_OPTION],
1559 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1560 m4_require([_LT_DECL_SED])dnl
1561 AC_CACHE_CHECK([$1], [$2],
1562 [$2=no
1563 save_LDFLAGS="$LDFLAGS"
1564 LDFLAGS="$LDFLAGS $3"
1565 echo "$lt_simple_link_test_code" > conftest.$ac_ext
1566 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1567 # The linker can only warn and ignore the option if not recognized
1568 # So say no if there are warnings
1569 if test -s conftest.err; then
1570 # Append any errors to the config.log.
1571 cat conftest.err 1>&AS_MESSAGE_LOG_FD
1572 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
1573 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1574 if diff conftest.exp conftest.er2 >/dev/null; then
1575 $2=yes
1576 fi
1577 else
1578 $2=yes
1579 fi
1580 fi
1581 $RM -r conftest*
1582 LDFLAGS="$save_LDFLAGS"
1583 ])
1584
1585 if test x"[$]$2" = xyes; then
1586 m4_if([$4], , :, [$4])
1587 else
1588 m4_if([$5], , :, [$5])
1589 fi
1590 ])# _LT_LINKER_OPTION
1591
1592 # Old name:
1593 AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
1594 dnl aclocal-1.4 backwards compatibility:
1595 dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
1596
1597
1598 # LT_CMD_MAX_LEN
1599 #---------------
1600 AC_DEFUN([LT_CMD_MAX_LEN],
1601 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
1602 # find the maximum length of command line arguments
1603 AC_MSG_CHECKING([the maximum length of command line arguments])
1604 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1605 i=0
1606 teststring="ABCD"
1607
1608 case $build_os in
1609 msdosdjgpp*)
1610 # On DJGPP, this test can blow up pretty badly due to problems in libc
1611 # (any single argument exceeding 2000 bytes causes a buffer overrun
1612 # during glob expansion). Even if it were fixed, the result of this
1613 # check would be larger than it should be.
1614 lt_cv_sys_max_cmd_len=12288; # 12K is about right
1615 ;;
1616
1617 gnu*)
1618 # Under GNU Hurd, this test is not required because there is
1619 # no limit to the length of command line arguments.
1620 # Libtool will interpret -1 as no limit whatsoever
1621 lt_cv_sys_max_cmd_len=-1;
1622 ;;
1623
1624 cygwin* | mingw* | cegcc*)
1625 # On Win9x/ME, this test blows up -- it succeeds, but takes
1626 # about 5 minutes as the teststring grows exponentially.
1627 # Worse, since 9x/ME are not pre-emptively multitasking,
1628 # you end up with a "frozen" computer, even though with patience
1629 # the test eventually succeeds (with a max line length of 256k).
1630 # Instead, let's just punt: use the minimum linelength reported by
1631 # all of the supported platforms: 8192 (on NT/2K/XP).
1632 lt_cv_sys_max_cmd_len=8192;
1633 ;;
1634
1635 mint*)
1636 # On MiNT this can take a long time and run out of memory.
1637 lt_cv_sys_max_cmd_len=8192;
1638 ;;
1639
1640 amigaos*)
1641 # On AmigaOS with pdksh, this test takes hours, literally.
1642 # So we just punt and use a minimum line length of 8192.
1643 lt_cv_sys_max_cmd_len=8192;
1644 ;;
1645
1646 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
1647 # This has been around since 386BSD, at least. Likely further.
1648 if test -x /sbin/sysctl; then
1649 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
1650 elif test -x /usr/sbin/sysctl; then
1651 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
1652 else
1653 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
1654 fi
1655 # And add a safety zone
1656 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1657 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1658 ;;
1659
1660 interix*)
1661 # We know the value 262144 and hardcode it with a safety zone (like BSD)
1662 lt_cv_sys_max_cmd_len=196608
1663 ;;
1664
1665 os2*)
1666 # The test takes a long time on OS/2.
1667 lt_cv_sys_max_cmd_len=8192
1668 ;;
1669
1670 osf*)
1671 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
1672 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
1673 # nice to cause kernel panics so lets avoid the loop below.
1674 # First set a reasonable default.
1675 lt_cv_sys_max_cmd_len=16384
1676 #
1677 if test -x /sbin/sysconfig; then
1678 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
1679 *1*) lt_cv_sys_max_cmd_len=-1 ;;
1680 esac
1681 fi
1682 ;;
1683 sco3.2v5*)
1684 lt_cv_sys_max_cmd_len=102400
1685 ;;
1686 sysv5* | sco5v6* | sysv4.2uw2*)
1687 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
1688 if test -n "$kargmax"; then
1689 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
1690 else
1691 lt_cv_sys_max_cmd_len=32768
1692 fi
1693 ;;
1694 *)
1695 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
1696 if test -n "$lt_cv_sys_max_cmd_len"; then
1697 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1698 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1699 else
1700 # Make teststring a little bigger before we do anything with it.
1701 # a 1K string should be a reasonable start.
1702 for i in 1 2 3 4 5 6 7 8 ; do
1703 teststring=$teststring$teststring
1704 done
1705 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1706 # If test is not a shell built-in, we'll probably end up computing a
1707 # maximum length that is only half of the actual maximum length, but
1708 # we can't tell.
1709 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
1710 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
1711 test $i != 17 # 1/2 MB should be enough
1712 do
1713 i=`expr $i + 1`
1714 teststring=$teststring$teststring
1715 done
1716 # Only check the string length outside the loop.
1717 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
1718 teststring=
1719 # Add a significant safety factor because C++ compilers can tack on
1720 # massive amounts of additional arguments before passing them to the
1721 # linker. It appears as though 1/2 is a usable value.
1722 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1723 fi
1724 ;;
1725 esac
1726 ])
1727 if test -n $lt_cv_sys_max_cmd_len ; then
1728 AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
1729 else
1730 AC_MSG_RESULT(none)
1731 fi
1732 max_cmd_len=$lt_cv_sys_max_cmd_len
1733 _LT_DECL([], [max_cmd_len], [0],
1734 [What is the maximum length of a command?])
1735 ])# LT_CMD_MAX_LEN
1736
1737 # Old name:
1738 AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
1739 dnl aclocal-1.4 backwards compatibility:
1740 dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
1741
1742
1743 # _LT_HEADER_DLFCN
1744 # ----------------
1745 m4_defun([_LT_HEADER_DLFCN],
1746 [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
1747 ])# _LT_HEADER_DLFCN
1748
1749
1750 # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1751 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1752 # ----------------------------------------------------------------
1753 m4_defun([_LT_TRY_DLOPEN_SELF],
1754 [m4_require([_LT_HEADER_DLFCN])dnl
1755 if test "$cross_compiling" = yes; then :
1756 [$4]
1757 else
1758 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1759 lt_status=$lt_dlunknown
1760 cat > conftest.$ac_ext <<_LT_EOF
1761 [#line $LINENO "configure"
1762 #include "confdefs.h"
1763
1764 #if HAVE_DLFCN_H
1765 #include <dlfcn.h>
1766 #endif
1767
1768 #include <stdio.h>
1769
1770 #ifdef RTLD_GLOBAL
1771 # define LT_DLGLOBAL RTLD_GLOBAL
1772 #else
1773 # ifdef DL_GLOBAL
1774 # define LT_DLGLOBAL DL_GLOBAL
1775 # else
1776 # define LT_DLGLOBAL 0
1777 # endif
1778 #endif
1779
1780 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
1781 find out it does not work in some platform. */
1782 #ifndef LT_DLLAZY_OR_NOW
1783 # ifdef RTLD_LAZY
1784 # define LT_DLLAZY_OR_NOW RTLD_LAZY
1785 # else
1786 # ifdef DL_LAZY
1787 # define LT_DLLAZY_OR_NOW DL_LAZY
1788 # else
1789 # ifdef RTLD_NOW
1790 # define LT_DLLAZY_OR_NOW RTLD_NOW
1791 # else
1792 # ifdef DL_NOW
1793 # define LT_DLLAZY_OR_NOW DL_NOW
1794 # else
1795 # define LT_DLLAZY_OR_NOW 0
1796 # endif
1797 # endif
1798 # endif
1799 # endif
1800 #endif
1801
1802 /* When -fvisbility=hidden is used, assume the code has been annotated
1803 correspondingly for the symbols needed. */
1804 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
1805 int fnord () __attribute__((visibility("default")));
1806 #endif
1807
1808 int fnord () { return 42; }
1809 int main ()
1810 {
1811 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1812 int status = $lt_dlunknown;
1813
1814 if (self)
1815 {
1816 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
1817 else
1818 {
1819 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1820 else puts (dlerror ());
1821 }
1822 /* dlclose (self); */
1823 }
1824 else
1825 puts (dlerror ());
1826
1827 return status;
1828 }]
1829 _LT_EOF
1830 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
1831 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
1832 lt_status=$?
1833 case x$lt_status in
1834 x$lt_dlno_uscore) $1 ;;
1835 x$lt_dlneed_uscore) $2 ;;
1836 x$lt_dlunknown|x*) $3 ;;
1837 esac
1838 else :
1839 # compilation failed
1840 $3
1841 fi
1842 fi
1843 rm -fr conftest*
1844 ])# _LT_TRY_DLOPEN_SELF
1845
1846
1847 # LT_SYS_DLOPEN_SELF
1848 # ------------------
1849 AC_DEFUN([LT_SYS_DLOPEN_SELF],
1850 [m4_require([_LT_HEADER_DLFCN])dnl
1851 if test "x$enable_dlopen" != xyes; then
1852 enable_dlopen=unknown
1853 enable_dlopen_self=unknown
1854 enable_dlopen_self_static=unknown
1855 else
1856 lt_cv_dlopen=no
1857 lt_cv_dlopen_libs=
1858
1859 case $host_os in
1860 beos*)
1861 lt_cv_dlopen="load_add_on"
1862 lt_cv_dlopen_libs=
1863 lt_cv_dlopen_self=yes
1864 ;;
1865
1866 mingw* | pw32* | cegcc*)
1867 lt_cv_dlopen="LoadLibrary"
1868 lt_cv_dlopen_libs=
1869 ;;
1870
1871 cygwin*)
1872 lt_cv_dlopen="dlopen"
1873 lt_cv_dlopen_libs=
1874 ;;
1875
1876 darwin*)
1877 # if libdl is installed we need to link against it
1878 AC_CHECK_LIB([dl], [dlopen],
1879 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
1880 lt_cv_dlopen="dyld"
1881 lt_cv_dlopen_libs=
1882 lt_cv_dlopen_self=yes
1883 ])
1884 ;;
1885
1886 *)
1887 AC_CHECK_FUNC([shl_load],
1888 [lt_cv_dlopen="shl_load"],
1889 [AC_CHECK_LIB([dld], [shl_load],
1890 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
1891 [AC_CHECK_FUNC([dlopen],
1892 [lt_cv_dlopen="dlopen"],
1893 [AC_CHECK_LIB([dl], [dlopen],
1894 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
1895 [AC_CHECK_LIB([svld], [dlopen],
1896 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1897 [AC_CHECK_LIB([dld], [dld_link],
1898 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
1899 ])
1900 ])
1901 ])
1902 ])
1903 ])
1904 ;;
1905 esac
1906
1907 if test "x$lt_cv_dlopen" != xno; then
1908 enable_dlopen=yes
1909 else
1910 enable_dlopen=no
1911 fi
1912
1913 case $lt_cv_dlopen in
1914 dlopen)
1915 save_CPPFLAGS="$CPPFLAGS"
1916 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1917
1918 save_LDFLAGS="$LDFLAGS"
1919 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1920
1921 save_LIBS="$LIBS"
1922 LIBS="$lt_cv_dlopen_libs $LIBS"
1923
1924 AC_CACHE_CHECK([whether a program can dlopen itself],
1925 lt_cv_dlopen_self, [dnl
1926 _LT_TRY_DLOPEN_SELF(
1927 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
1928 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
1929 ])
1930
1931 if test "x$lt_cv_dlopen_self" = xyes; then
1932 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1933 AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
1934 lt_cv_dlopen_self_static, [dnl
1935 _LT_TRY_DLOPEN_SELF(
1936 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
1937 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
1938 ])
1939 fi
1940
1941 CPPFLAGS="$save_CPPFLAGS"
1942 LDFLAGS="$save_LDFLAGS"
1943 LIBS="$save_LIBS"
1944 ;;
1945 esac
1946
1947 case $lt_cv_dlopen_self in
1948 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
1949 *) enable_dlopen_self=unknown ;;
1950 esac
1951
1952 case $lt_cv_dlopen_self_static in
1953 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
1954 *) enable_dlopen_self_static=unknown ;;
1955 esac
1956 fi
1957 _LT_DECL([dlopen_support], [enable_dlopen], [0],
1958 [Whether dlopen is supported])
1959 _LT_DECL([dlopen_self], [enable_dlopen_self], [0],
1960 [Whether dlopen of programs is supported])
1961 _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
1962 [Whether dlopen of statically linked programs is supported])
1963 ])# LT_SYS_DLOPEN_SELF
1964
1965 # Old name:
1966 AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
1967 dnl aclocal-1.4 backwards compatibility:
1968 dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
1969
1970
1971 # _LT_COMPILER_C_O([TAGNAME])
1972 # ---------------------------
1973 # Check to see if options -c and -o are simultaneously supported by compiler.
1974 # This macro does not hard code the compiler like AC_PROG_CC_C_O.
1975 m4_defun([_LT_COMPILER_C_O],
1976 [m4_require([_LT_DECL_SED])dnl
1977 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1978 m4_require([_LT_TAG_COMPILER])dnl
1979 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1980 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1981 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1982 $RM -r conftest 2>/dev/null
1983 mkdir conftest
1984 cd conftest
1985 mkdir out
1986 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1987
1988 lt_compiler_flag="-o out/conftest2.$ac_objext"
1989 # Insert the option either (1) after the last *FLAGS variable, or
1990 # (2) before a word containing "conftest.", or (3) at the end.
1991 # Note that $ac_compile itself does not contain backslashes and begins
1992 # with a dollar sign (not a hyphen), so the echo should work correctly.
1993 lt_compile=`echo "$ac_compile" | $SED \
1994 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1995 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1996 -e 's:$: $lt_compiler_flag:'`
1997 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1998 (eval "$lt_compile" 2>out/conftest.err)
1999 ac_status=$?
2000 cat out/conftest.err >&AS_MESSAGE_LOG_FD
2001 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2002 if (exit $ac_status) && test -s out/conftest2.$ac_objext
2003 then
2004 # The compiler can only warn and ignore the option if not recognized
2005 # So say no if there are warnings
2006 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
2007 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
2008 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
2009 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
2010 fi
2011 fi
2012 chmod u+w . 2>&AS_MESSAGE_LOG_FD
2013 $RM conftest*
2014 # SGI C++ compiler will create directory out/ii_files/ for
2015 # template instantiation
2016 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
2017 $RM out/* && rmdir out
2018 cd ..
2019 $RM -r conftest
2020 $RM conftest*
2021 ])
2022 _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
2023 [Does compiler simultaneously support -c and -o options?])
2024 ])# _LT_COMPILER_C_O
2025
2026
2027 # _LT_COMPILER_FILE_LOCKS([TAGNAME])
2028 # ----------------------------------
2029 # Check to see if we can do hard links to lock some files if needed
2030 m4_defun([_LT_COMPILER_FILE_LOCKS],
2031 [m4_require([_LT_ENABLE_LOCK])dnl
2032 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2033 _LT_COMPILER_C_O([$1])
2034
2035 hard_links="nottested"
2036 if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
2037 # do not overwrite the value of need_locks provided by the user
2038 AC_MSG_CHECKING([if we can lock with hard links])
2039 hard_links=yes
2040 $RM conftest*
2041 ln conftest.a conftest.b 2>/dev/null && hard_links=no
2042 touch conftest.a
2043 ln conftest.a conftest.b 2>&5 || hard_links=no
2044 ln conftest.a conftest.b 2>/dev/null && hard_links=no
2045 AC_MSG_RESULT([$hard_links])
2046 if test "$hard_links" = no; then
2047 AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
2048 need_locks=warn
2049 fi
2050 else
2051 need_locks=no
2052 fi
2053 _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
2054 ])# _LT_COMPILER_FILE_LOCKS
2055
2056
2057 # _LT_CHECK_OBJDIR
2058 # ----------------
2059 m4_defun([_LT_CHECK_OBJDIR],
2060 [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
2061 [rm -f .libs 2>/dev/null
2062 mkdir .libs 2>/dev/null
2063 if test -d .libs; then
2064 lt_cv_objdir=.libs
2065 else
2066 # MS-DOS does not allow filenames that begin with a dot.
2067 lt_cv_objdir=_libs
2068 fi
2069 rmdir .libs 2>/dev/null])
2070 objdir=$lt_cv_objdir
2071 _LT_DECL([], [objdir], [0],
2072 [The name of the directory that contains temporary libtool files])dnl
2073 m4_pattern_allow([LT_OBJDIR])dnl
2074 AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
2075 [Define to the sub-directory in which libtool stores uninstalled libraries.])
2076 ])# _LT_CHECK_OBJDIR
2077
2078
2079 # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
2080 # --------------------------------------
2081 # Check hardcoding attributes.
2082 m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
2083 [AC_MSG_CHECKING([how to hardcode library paths into programs])
2084 _LT_TAGVAR(hardcode_action, $1)=
2085 if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
2086 test -n "$_LT_TAGVAR(runpath_var, $1)" ||
2087 test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
2088
2089 # We can hardcode non-existent directories.
2090 if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
2091 # If the only mechanism to avoid hardcoding is shlibpath_var, we
2092 # have to relink, otherwise we might link with an installed library
2093 # when we should be linking with a yet-to-be-installed one
2094 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
2095 test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
2096 # Linking always hardcodes the temporary library directory.
2097 _LT_TAGVAR(hardcode_action, $1)=relink
2098 else
2099 # We can link without hardcoding, and we can hardcode nonexisting dirs.
2100 _LT_TAGVAR(hardcode_action, $1)=immediate
2101 fi
2102 else
2103 # We cannot hardcode anything, or else we can only hardcode existing
2104 # directories.
2105 _LT_TAGVAR(hardcode_action, $1)=unsupported
2106 fi
2107 AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
2108
2109 if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
2110 test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
2111 # Fast installation is not supported
2112 enable_fast_install=no
2113 elif test "$shlibpath_overrides_runpath" = yes ||
2114 test "$enable_shared" = no; then
2115 # Fast installation is not necessary
2116 enable_fast_install=needless
2117 fi
2118 _LT_TAGDECL([], [hardcode_action], [0],
2119 [How to hardcode a shared library path into an executable])
2120 ])# _LT_LINKER_HARDCODE_LIBPATH
2121
2122
2123 # _LT_CMD_STRIPLIB
2124 # ----------------
2125 m4_defun([_LT_CMD_STRIPLIB],
2126 [m4_require([_LT_DECL_EGREP])
2127 striplib=
2128 old_striplib=
2129 AC_MSG_CHECKING([whether stripping libraries is possible])
2130 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
2131 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
2132 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2133 AC_MSG_RESULT([yes])
2134 else
2135 # FIXME - insert some real tests, host_os isn't really good enough
2136 case $host_os in
2137 darwin*)
2138 if test -n "$STRIP" ; then
2139 striplib="$STRIP -x"
2140 old_striplib="$STRIP -S"
2141 AC_MSG_RESULT([yes])
2142 else
2143 AC_MSG_RESULT([no])
2144 fi
2145 ;;
2146 *)
2147 AC_MSG_RESULT([no])
2148 ;;
2149 esac
2150 fi
2151 _LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
2152 _LT_DECL([], [striplib], [1])
2153 ])# _LT_CMD_STRIPLIB
2154
2155
2156 # _LT_SYS_DYNAMIC_LINKER([TAG])
2157 # -----------------------------
2158 # PORTME Fill in your ld.so characteristics
2159 m4_defun([_LT_SYS_DYNAMIC_LINKER],
2160 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
2161 m4_require([_LT_DECL_EGREP])dnl
2162 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2163 m4_require([_LT_DECL_OBJDUMP])dnl
2164 m4_require([_LT_DECL_SED])dnl
2165 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
2166 AC_MSG_CHECKING([dynamic linker characteristics])
2167 m4_if([$1],
2168 [], [
2169 if test "$GCC" = yes; then
2170 case $host_os in
2171 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
2172 *) lt_awk_arg="/^libraries:/" ;;
2173 esac
2174 case $host_os in
2175 mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
2176 *) lt_sed_strip_eq="s,=/,/,g" ;;
2177 esac
2178 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
2179 case $lt_search_path_spec in
2180 *\;*)
2181 # if the path contains ";" then we assume it to be the separator
2182 # otherwise default to the standard path separator (i.e. ":") - it is
2183 # assumed that no part of a normal pathname contains ";" but that should
2184 # okay in the real world where ";" in dirpaths is itself problematic.
2185 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
2186 ;;
2187 *)
2188 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
2189 ;;
2190 esac
2191 # Ok, now we have the path, separated by spaces, we can step through it
2192 # and add multilib dir if necessary.
2193 lt_tmp_lt_search_path_spec=
2194 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
2195 for lt_sys_path in $lt_search_path_spec; do
2196 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
2197 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
2198 else
2199 test -d "$lt_sys_path" && \
2200 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
2201 fi
2202 done
2203 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
2204 BEGIN {RS=" "; FS="/|\n";} {
2205 lt_foo="";
2206 lt_count=0;
2207 for (lt_i = NF; lt_i > 0; lt_i--) {
2208 if ($lt_i != "" && $lt_i != ".") {
2209 if ($lt_i == "..") {
2210 lt_count++;
2211 } else {
2212 if (lt_count == 0) {
2213 lt_foo="/" $lt_i lt_foo;
2214 } else {
2215 lt_count--;
2216 }
2217 }
2218 }
2219 }
2220 if (lt_foo != "") { lt_freq[[lt_foo]]++; }
2221 if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
2222 }'`
2223 # AWK program above erroneously prepends '/' to C:/dos/paths
2224 # for these hosts.
2225 case $host_os in
2226 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
2227 $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
2228 esac
2229 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
2230 else
2231 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2232 fi])
2233 library_names_spec=
2234 libname_spec='lib$name'
2235 soname_spec=
2236 shrext_cmds=".so"
2237 postinstall_cmds=
2238 postuninstall_cmds=
2239 finish_cmds=
2240 finish_eval=
2241 shlibpath_var=
2242 shlibpath_overrides_runpath=unknown
2243 version_type=none
2244 dynamic_linker="$host_os ld.so"
2245 sys_lib_dlsearch_path_spec="/lib /usr/lib"
2246 need_lib_prefix=unknown
2247 hardcode_into_libs=no
2248
2249 # when you set need_version to no, make sure it does not cause -set_version
2250 # flags to be left without arguments
2251 need_version=unknown
2252
2253 case $host_os in
2254 aix3*)
2255 version_type=linux # correct to gnu/linux during the next big refactor
2256 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
2257 shlibpath_var=LIBPATH
2258
2259 # AIX 3 has no versioning support, so we append a major version to the name.
2260 soname_spec='${libname}${release}${shared_ext}$major'
2261 ;;
2262
2263 aix[[4-9]]*)
2264 version_type=linux # correct to gnu/linux during the next big refactor
2265 need_lib_prefix=no
2266 need_version=no
2267 hardcode_into_libs=yes
2268 if test "$host_cpu" = ia64; then
2269 # AIX 5 supports IA64
2270 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
2271 shlibpath_var=LD_LIBRARY_PATH
2272 else
2273 # With GCC up to 2.95.x, collect2 would create an import file
2274 # for dependence libraries. The import file would start with
2275 # the line `#! .'. This would cause the generated library to
2276 # depend on `.', always an invalid library. This was fixed in
2277 # development snapshots of GCC prior to 3.0.
2278 case $host_os in
2279 aix4 | aix4.[[01]] | aix4.[[01]].*)
2280 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2281 echo ' yes '
2282 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
2283 :
2284 else
2285 can_build_shared=no
2286 fi
2287 ;;
2288 esac
2289 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
2290 # soname into executable. Probably we can add versioning support to
2291 # collect2, so additional links can be useful in future.
2292 if test "$aix_use_runtimelinking" = yes; then
2293 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
2294 # instead of lib<name>.a to let people know that these are not
2295 # typical AIX shared libraries.
2296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2297 else
2298 # We preserve .a as extension for shared libraries through AIX4.2
2299 # and later when we are not doing run time linking.
2300 library_names_spec='${libname}${release}.a $libname.a'
2301 soname_spec='${libname}${release}${shared_ext}$major'
2302 fi
2303 shlibpath_var=LIBPATH
2304 fi
2305 ;;
2306
2307 amigaos*)
2308 case $host_cpu in
2309 powerpc)
2310 # Since July 2007 AmigaOS4 officially supports .so libraries.
2311 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
2312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2313 ;;
2314 m68k)
2315 library_names_spec='$libname.ixlibrary $libname.a'
2316 # Create ${libname}_ixlibrary.a entries in /sys/libs.
2317 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
2318 ;;
2319 esac
2320 ;;
2321
2322 beos*)
2323 library_names_spec='${libname}${shared_ext}'
2324 dynamic_linker="$host_os ld.so"
2325 shlibpath_var=LIBRARY_PATH
2326 ;;
2327
2328 bsdi[[45]]*)
2329 version_type=linux # correct to gnu/linux during the next big refactor
2330 need_version=no
2331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2332 soname_spec='${libname}${release}${shared_ext}$major'
2333 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
2334 shlibpath_var=LD_LIBRARY_PATH
2335 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
2336 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
2337 # the default ld.so.conf also contains /usr/contrib/lib and
2338 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
2339 # libtool to hard-code these into programs
2340 ;;
2341
2342 cygwin* | mingw* | pw32* | cegcc*)
2343 version_type=windows
2344 shrext_cmds=".dll"
2345 need_version=no
2346 need_lib_prefix=no
2347
2348 case $GCC,$cc_basename in
2349 yes,*)
2350 # gcc
2351 library_names_spec='$libname.dll.a'
2352 # DLL is installed to $(libdir)/../bin by postinstall_cmds
2353 postinstall_cmds='base_file=`basename \${file}`~
2354 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
2355 dldir=$destdir/`dirname \$dlpath`~
2356 test -d \$dldir || mkdir -p \$dldir~
2357 $install_prog $dir/$dlname \$dldir/$dlname~
2358 chmod a+x \$dldir/$dlname~
2359 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
2360 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
2361 fi'
2362 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2363 dlpath=$dir/\$dldll~
2364 $RM \$dlpath'
2365 shlibpath_overrides_runpath=yes
2366
2367 case $host_os in
2368 cygwin*)
2369 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
2370 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2371 m4_if([$1], [],[
2372 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
2373 ;;
2374 mingw* | cegcc*)
2375 # MinGW DLLs use traditional 'lib' prefix
2376 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2377 ;;
2378 pw32*)
2379 # pw32 DLLs use 'pw' prefix rather than 'lib'
2380 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2381 ;;
2382 esac
2383 dynamic_linker='Win32 ld.exe'
2384 ;;
2385
2386 *,cl*)
2387 # Native MSVC
2388 libname_spec='$name'
2389 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2390 library_names_spec='${libname}.dll.lib'
2391
2392 case $build_os in
2393 mingw*)
2394 sys_lib_search_path_spec=
2395 lt_save_ifs=$IFS
2396 IFS=';'
2397 for lt_path in $LIB
2398 do
2399 IFS=$lt_save_ifs
2400 # Let DOS variable expansion print the short 8.3 style file name.
2401 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
2402 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
2403 done
2404 IFS=$lt_save_ifs
2405 # Convert to MSYS style.
2406 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
2407 ;;
2408 cygwin*)
2409 # Convert to unix form, then to dos form, then back to unix form
2410 # but this time dos style (no spaces!) so that the unix form looks
2411 # like /cygdrive/c/PROGRA~1:/cygdr...
2412 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
2413 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
2414 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2415 ;;
2416 *)
2417 sys_lib_search_path_spec="$LIB"
2418 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2419 # It is most probably a Windows format PATH.
2420 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2421 else
2422 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2423 fi
2424 # FIXME: find the short name or the path components, as spaces are
2425 # common. (e.g. "Program Files" -> "PROGRA~1")
2426 ;;
2427 esac
2428
2429 # DLL is installed to $(libdir)/../bin by postinstall_cmds
2430 postinstall_cmds='base_file=`basename \${file}`~
2431 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
2432 dldir=$destdir/`dirname \$dlpath`~
2433 test -d \$dldir || mkdir -p \$dldir~
2434 $install_prog $dir/$dlname \$dldir/$dlname'
2435 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2436 dlpath=$dir/\$dldll~
2437 $RM \$dlpath'
2438 shlibpath_overrides_runpath=yes
2439 dynamic_linker='Win32 link.exe'
2440 ;;
2441
2442 *)
2443 # Assume MSVC wrapper
2444 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2445 dynamic_linker='Win32 ld.exe'
2446 ;;
2447 esac
2448 # FIXME: first we should search . and the directory the executable is in
2449 shlibpath_var=PATH
2450 ;;
2451
2452 darwin* | rhapsody*)
2453 dynamic_linker="$host_os dyld"
2454 version_type=darwin
2455 need_lib_prefix=no
2456 need_version=no
2457 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
2458 soname_spec='${libname}${release}${major}$shared_ext'
2459 shlibpath_overrides_runpath=yes
2460 shlibpath_var=DYLD_LIBRARY_PATH
2461 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
2462 m4_if([$1], [],[
2463 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
2464 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
2465 ;;
2466
2467 dgux*)
2468 version_type=linux # correct to gnu/linux during the next big refactor
2469 need_lib_prefix=no
2470 need_version=no
2471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
2472 soname_spec='${libname}${release}${shared_ext}$major'
2473 shlibpath_var=LD_LIBRARY_PATH
2474 ;;
2475
2476 freebsd* | dragonfly*)
2477 # DragonFly does not have aout. When/if they implement a new
2478 # versioning mechanism, adjust this.
2479 if test -x /usr/bin/objformat; then
2480 objformat=`/usr/bin/objformat`
2481 else
2482 case $host_os in
2483 freebsd[[23]].*) objformat=aout ;;
2484 *) objformat=elf ;;
2485 esac
2486 fi
2487 version_type=freebsd-$objformat
2488 case $version_type in
2489 freebsd-elf*)
2490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2491 need_version=no
2492 need_lib_prefix=no
2493 ;;
2494 freebsd-*)
2495 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
2496 need_version=yes
2497 ;;
2498 esac
2499 shlibpath_var=LD_LIBRARY_PATH
2500 case $host_os in
2501 freebsd2.*)
2502 shlibpath_overrides_runpath=yes
2503 ;;
2504 freebsd3.[[01]]* | freebsdelf3.[[01]]*)
2505 shlibpath_overrides_runpath=yes
2506 hardcode_into_libs=yes
2507 ;;
2508 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
2509 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
2510 shlibpath_overrides_runpath=no
2511 hardcode_into_libs=yes
2512 ;;
2513 *) # from 4.6 on, and DragonFly
2514 shlibpath_overrides_runpath=yes
2515 hardcode_into_libs=yes
2516 ;;
2517 esac
2518 ;;
2519
2520 gnu*)
2521 version_type=linux # correct to gnu/linux during the next big refactor
2522 need_lib_prefix=no
2523 need_version=no
2524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2525 soname_spec='${libname}${release}${shared_ext}$major'
2526 shlibpath_var=LD_LIBRARY_PATH
2527 shlibpath_overrides_runpath=no
2528 hardcode_into_libs=yes
2529 ;;
2530
2531 haiku*)
2532 version_type=linux # correct to gnu/linux during the next big refactor
2533 need_lib_prefix=no
2534 need_version=no
2535 dynamic_linker="$host_os runtime_loader"
2536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2537 soname_spec='${libname}${release}${shared_ext}$major'
2538 shlibpath_var=LIBRARY_PATH
2539 shlibpath_overrides_runpath=yes
2540 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
2541 hardcode_into_libs=yes
2542 ;;
2543
2544 hpux9* | hpux10* | hpux11*)
2545 # Give a soname corresponding to the major version so that dld.sl refuses to
2546 # link against other versions.
2547 version_type=sunos
2548 need_lib_prefix=no
2549 need_version=no
2550 case $host_cpu in
2551 ia64*)
2552 shrext_cmds='.so'
2553 hardcode_into_libs=yes
2554 dynamic_linker="$host_os dld.so"
2555 shlibpath_var=LD_LIBRARY_PATH
2556 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2558 soname_spec='${libname}${release}${shared_ext}$major'
2559 if test "X$HPUX_IA64_MODE" = X32; then
2560 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
2561 else
2562 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
2563 fi
2564 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2565 ;;
2566 hppa*64*)
2567 shrext_cmds='.sl'
2568 hardcode_into_libs=yes
2569 dynamic_linker="$host_os dld.sl"
2570 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
2571 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2573 soname_spec='${libname}${release}${shared_ext}$major'
2574 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
2575 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2576 ;;
2577 *)
2578 shrext_cmds='.sl'
2579 dynamic_linker="$host_os dld.sl"
2580 shlibpath_var=SHLIB_PATH
2581 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
2582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2583 soname_spec='${libname}${release}${shared_ext}$major'
2584 ;;
2585 esac
2586 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
2587 postinstall_cmds='chmod 555 $lib'
2588 # or fails outright, so override atomically:
2589 install_override_mode=555
2590 ;;
2591
2592 interix[[3-9]]*)
2593 version_type=linux # correct to gnu/linux during the next big refactor
2594 need_lib_prefix=no
2595 need_version=no
2596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2597 soname_spec='${libname}${release}${shared_ext}$major'
2598 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
2599 shlibpath_var=LD_LIBRARY_PATH
2600 shlibpath_overrides_runpath=no
2601 hardcode_into_libs=yes
2602 ;;
2603
2604 irix5* | irix6* | nonstopux*)
2605 case $host_os in
2606 nonstopux*) version_type=nonstopux ;;
2607 *)
2608 if test "$lt_cv_prog_gnu_ld" = yes; then
2609 version_type=linux # correct to gnu/linux during the next big refactor
2610 else
2611 version_type=irix
2612 fi ;;
2613 esac
2614 need_lib_prefix=no
2615 need_version=no
2616 soname_spec='${libname}${release}${shared_ext}$major'
2617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
2618 case $host_os in
2619 irix5* | nonstopux*)
2620 libsuff= shlibsuff=
2621 ;;
2622 *)
2623 case $LD in # libtool.m4 will add one of these switches to LD
2624 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
2625 libsuff= shlibsuff= libmagic=32-bit;;
2626 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
2627 libsuff=32 shlibsuff=N32 libmagic=N32;;
2628 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
2629 libsuff=64 shlibsuff=64 libmagic=64-bit;;
2630 *) libsuff= shlibsuff= libmagic=never-match;;
2631 esac
2632 ;;
2633 esac
2634 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
2635 shlibpath_overrides_runpath=no
2636 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
2637 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
2638 hardcode_into_libs=yes
2639 ;;
2640
2641 # No shared lib support for Linux oldld, aout, or coff.
2642 linux*oldld* | linux*aout* | linux*coff*)
2643 dynamic_linker=no
2644 ;;
2645
2646 # This must be glibc/ELF.
2647 linux* | k*bsd*-gnu | kopensolaris*-gnu)
2648 version_type=linux # correct to gnu/linux during the next big refactor
2649 need_lib_prefix=no
2650 need_version=no
2651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2652 soname_spec='${libname}${release}${shared_ext}$major'
2653 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2654 shlibpath_var=LD_LIBRARY_PATH
2655 shlibpath_overrides_runpath=no
2656
2657 # Some binutils ld are patched to set DT_RUNPATH
2658 AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
2659 [lt_cv_shlibpath_overrides_runpath=no
2660 save_LDFLAGS=$LDFLAGS
2661 save_libdir=$libdir
2662 eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
2663 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
2664 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
2665 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
2666 [lt_cv_shlibpath_overrides_runpath=yes])])
2667 LDFLAGS=$save_LDFLAGS
2668 libdir=$save_libdir
2669 ])
2670 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
2671
2672 # This implies no fast_install, which is unacceptable.
2673 # Some rework will be needed to allow for fast_install
2674 # before this can be enabled.
2675 hardcode_into_libs=yes
2676
2677 # Add ABI-specific directories to the system library path.
2678 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
2679
2680 # Append ld.so.conf contents to the search path
2681 if test -f /etc/ld.so.conf; then
2682 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
2683 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
2684
2685 fi
2686
2687 # We used to test for /lib/ld.so.1 and disable shared libraries on
2688 # powerpc, because MkLinux only supported shared libraries with the
2689 # GNU dynamic linker. Since this was broken with cross compilers,
2690 # most powerpc-linux boxes support dynamic linking these days and
2691 # people can always --disable-shared, the test was removed, and we
2692 # assume the GNU/Linux dynamic linker is in use.
2693 dynamic_linker='GNU/Linux ld.so'
2694 ;;
2695
2696 netbsd*)
2697 version_type=sunos
2698 need_lib_prefix=no
2699 need_version=no
2700 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
2701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2702 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2703 dynamic_linker='NetBSD (a.out) ld.so'
2704 else
2705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2706 soname_spec='${libname}${release}${shared_ext}$major'
2707 dynamic_linker='NetBSD ld.elf_so'
2708 fi
2709 shlibpath_var=LD_LIBRARY_PATH
2710 shlibpath_overrides_runpath=yes
2711 hardcode_into_libs=yes
2712 ;;
2713
2714 newsos6)
2715 version_type=linux # correct to gnu/linux during the next big refactor
2716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2717 shlibpath_var=LD_LIBRARY_PATH
2718 shlibpath_overrides_runpath=yes
2719 ;;
2720
2721 *nto* | *qnx*)
2722 version_type=qnx
2723 need_lib_prefix=no
2724 need_version=no
2725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2726 soname_spec='${libname}${release}${shared_ext}$major'
2727 shlibpath_var=LD_LIBRARY_PATH
2728 shlibpath_overrides_runpath=no
2729 hardcode_into_libs=yes
2730 dynamic_linker='ldqnx.so'
2731 ;;
2732
2733 openbsd*)
2734 version_type=sunos
2735 sys_lib_dlsearch_path_spec="/usr/lib"
2736 need_lib_prefix=no
2737 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
2738 case $host_os in
2739 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
2740 *) need_version=no ;;
2741 esac
2742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2743 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2744 shlibpath_var=LD_LIBRARY_PATH
2745 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2746 case $host_os in
2747 openbsd2.[[89]] | openbsd2.[[89]].*)
2748 shlibpath_overrides_runpath=no
2749 ;;
2750 *)
2751 shlibpath_overrides_runpath=yes
2752 ;;
2753 esac
2754 else
2755 shlibpath_overrides_runpath=yes
2756 fi
2757 ;;
2758
2759 os2*)
2760 libname_spec='$name'
2761 shrext_cmds=".dll"
2762 need_lib_prefix=no
2763 library_names_spec='$libname${shared_ext} $libname.a'
2764 dynamic_linker='OS/2 ld.exe'
2765 shlibpath_var=LIBPATH
2766 ;;
2767
2768 osf3* | osf4* | osf5*)
2769 version_type=osf
2770 need_lib_prefix=no
2771 need_version=no
2772 soname_spec='${libname}${release}${shared_ext}$major'
2773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2774 shlibpath_var=LD_LIBRARY_PATH
2775 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
2776 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
2777 ;;
2778
2779 rdos*)
2780 dynamic_linker=no
2781 ;;
2782
2783 solaris*)
2784 version_type=linux # correct to gnu/linux during the next big refactor
2785 need_lib_prefix=no
2786 need_version=no
2787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2788 soname_spec='${libname}${release}${shared_ext}$major'
2789 shlibpath_var=LD_LIBRARY_PATH
2790 shlibpath_overrides_runpath=yes
2791 hardcode_into_libs=yes
2792 # ldd complains unless libraries are executable
2793 postinstall_cmds='chmod +x $lib'
2794 ;;
2795
2796 sunos4*)
2797 version_type=sunos
2798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2799 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
2800 shlibpath_var=LD_LIBRARY_PATH
2801 shlibpath_overrides_runpath=yes
2802 if test "$with_gnu_ld" = yes; then
2803 need_lib_prefix=no
2804 fi
2805 need_version=yes
2806 ;;
2807
2808 sysv4 | sysv4.3*)
2809 version_type=linux # correct to gnu/linux during the next big refactor
2810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2811 soname_spec='${libname}${release}${shared_ext}$major'
2812 shlibpath_var=LD_LIBRARY_PATH
2813 case $host_vendor in
2814 sni)
2815 shlibpath_overrides_runpath=no
2816 need_lib_prefix=no
2817 runpath_var=LD_RUN_PATH
2818 ;;
2819 siemens)
2820 need_lib_prefix=no
2821 ;;
2822 motorola)
2823 need_lib_prefix=no
2824 need_version=no
2825 shlibpath_overrides_runpath=no
2826 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
2827 ;;
2828 esac
2829 ;;
2830
2831 sysv4*MP*)
2832 if test -d /usr/nec ;then
2833 version_type=linux # correct to gnu/linux during the next big refactor
2834 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
2835 soname_spec='$libname${shared_ext}.$major'
2836 shlibpath_var=LD_LIBRARY_PATH
2837 fi
2838 ;;
2839
2840 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
2841 version_type=freebsd-elf
2842 need_lib_prefix=no
2843 need_version=no
2844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2845 soname_spec='${libname}${release}${shared_ext}$major'
2846 shlibpath_var=LD_LIBRARY_PATH
2847 shlibpath_overrides_runpath=yes
2848 hardcode_into_libs=yes
2849 if test "$with_gnu_ld" = yes; then
2850 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
2851 else
2852 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
2853 case $host_os in
2854 sco3.2v5*)
2855 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
2856 ;;
2857 esac
2858 fi
2859 sys_lib_dlsearch_path_spec='/usr/lib'
2860 ;;
2861
2862 tpf*)
2863 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
2864 version_type=linux # correct to gnu/linux during the next big refactor
2865 need_lib_prefix=no
2866 need_version=no
2867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2868 shlibpath_var=LD_LIBRARY_PATH
2869 shlibpath_overrides_runpath=no
2870 hardcode_into_libs=yes
2871 ;;
2872
2873 uts4*)
2874 version_type=linux # correct to gnu/linux during the next big refactor
2875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2876 soname_spec='${libname}${release}${shared_ext}$major'
2877 shlibpath_var=LD_LIBRARY_PATH
2878 ;;
2879
2880 *)
2881 dynamic_linker=no
2882 ;;
2883 esac
2884 AC_MSG_RESULT([$dynamic_linker])
2885 test "$dynamic_linker" = no && can_build_shared=no
2886
2887 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
2888 if test "$GCC" = yes; then
2889 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
2890 fi
2891
2892 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
2893 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
2894 fi
2895 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
2896 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
2897 fi
2898
2899 _LT_DECL([], [variables_saved_for_relink], [1],
2900 [Variables whose values should be saved in libtool wrapper scripts and
2901 restored at link time])
2902 _LT_DECL([], [need_lib_prefix], [0],
2903 [Do we need the "lib" prefix for modules?])
2904 _LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
2905 _LT_DECL([], [version_type], [0], [Library versioning type])
2906 _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
2907 _LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
2908 _LT_DECL([], [shlibpath_overrides_runpath], [0],
2909 [Is shlibpath searched before the hard-coded library search path?])
2910 _LT_DECL([], [libname_spec], [1], [Format of library name prefix])
2911 _LT_DECL([], [library_names_spec], [1],
2912 [[List of archive names. First name is the real one, the rest are links.
2913 The last name is the one that the linker finds with -lNAME]])
2914 _LT_DECL([], [soname_spec], [1],
2915 [[The coded name of the library, if different from the real name]])
2916 _LT_DECL([], [install_override_mode], [1],
2917 [Permission mode override for installation of shared libraries])
2918 _LT_DECL([], [postinstall_cmds], [2],
2919 [Command to use after installation of a shared archive])
2920 _LT_DECL([], [postuninstall_cmds], [2],
2921 [Command to use after uninstallation of a shared archive])
2922 _LT_DECL([], [finish_cmds], [2],
2923 [Commands used to finish a libtool library installation in a directory])
2924 _LT_DECL([], [finish_eval], [1],
2925 [[As "finish_cmds", except a single script fragment to be evaled but
2926 not shown]])
2927 _LT_DECL([], [hardcode_into_libs], [0],
2928 [Whether we should hardcode library paths into libraries])
2929 _LT_DECL([], [sys_lib_search_path_spec], [2],
2930 [Compile-time system search path for libraries])
2931 _LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
2932 [Run-time system search path for libraries])
2933 ])# _LT_SYS_DYNAMIC_LINKER
2934
2935
2936 # _LT_PATH_TOOL_PREFIX(TOOL)
2937 # --------------------------
2938 # find a file program which can recognize shared library
2939 AC_DEFUN([_LT_PATH_TOOL_PREFIX],
2940 [m4_require([_LT_DECL_EGREP])dnl
2941 AC_MSG_CHECKING([for $1])
2942 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
2943 [case $MAGIC_CMD in
2944 [[\\/*] | ?:[\\/]*])
2945 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2946 ;;
2947 *)
2948 lt_save_MAGIC_CMD="$MAGIC_CMD"
2949 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2950 dnl $ac_dummy forces splitting on constant user-supplied paths.
2951 dnl POSIX.2 word splitting is done only on the output of word expansions,
2952 dnl not every word. This closes a longstanding sh security hole.
2953 ac_dummy="m4_if([$2], , $PATH, [$2])"
2954 for ac_dir in $ac_dummy; do
2955 IFS="$lt_save_ifs"
2956 test -z "$ac_dir" && ac_dir=.
2957 if test -f $ac_dir/$1; then
2958 lt_cv_path_MAGIC_CMD="$ac_dir/$1"
2959 if test -n "$file_magic_test_file"; then
2960 case $deplibs_check_method in
2961 "file_magic "*)
2962 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
2963 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2964 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2965 $EGREP "$file_magic_regex" > /dev/null; then
2966 :
2967 else
2968 cat <<_LT_EOF 1>&2
2969
2970 *** Warning: the command libtool uses to detect shared libraries,
2971 *** $file_magic_cmd, produces output that libtool cannot recognize.
2972 *** The result is that libtool may fail to recognize shared libraries
2973 *** as such. This will affect the creation of libtool libraries that
2974 *** depend on shared libraries, but programs linked with such libtool
2975 *** libraries will work regardless of this problem. Nevertheless, you
2976 *** may want to report the problem to your system manager and/or to
2977 *** bug-libtool@gnu.org
2978
2979 _LT_EOF
2980 fi ;;
2981 esac
2982 fi
2983 break
2984 fi
2985 done
2986 IFS="$lt_save_ifs"
2987 MAGIC_CMD="$lt_save_MAGIC_CMD"
2988 ;;
2989 esac])
2990 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2991 if test -n "$MAGIC_CMD"; then
2992 AC_MSG_RESULT($MAGIC_CMD)
2993 else
2994 AC_MSG_RESULT(no)
2995 fi
2996 _LT_DECL([], [MAGIC_CMD], [0],
2997 [Used to examine libraries when file_magic_cmd begins with "file"])dnl
2998 ])# _LT_PATH_TOOL_PREFIX
2999
3000 # Old name:
3001 AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
3002 dnl aclocal-1.4 backwards compatibility:
3003 dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
3004
3005
3006 # _LT_PATH_MAGIC
3007 # --------------
3008 # find a file program which can recognize a shared library
3009 m4_defun([_LT_PATH_MAGIC],
3010 [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
3011 if test -z "$lt_cv_path_MAGIC_CMD"; then
3012 if test -n "$ac_tool_prefix"; then
3013 _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
3014 else
3015 MAGIC_CMD=:
3016 fi
3017 fi
3018 ])# _LT_PATH_MAGIC
3019
3020
3021 # LT_PATH_LD
3022 # ----------
3023 # find the pathname to the GNU or non-GNU linker
3024 AC_DEFUN([LT_PATH_LD],
3025 [AC_REQUIRE([AC_PROG_CC])dnl
3026 AC_REQUIRE([AC_CANONICAL_HOST])dnl
3027 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
3028 m4_require([_LT_DECL_SED])dnl
3029 m4_require([_LT_DECL_EGREP])dnl
3030 m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
3031
3032 AC_ARG_WITH([gnu-ld],
3033 [AS_HELP_STRING([--with-gnu-ld],
3034 [assume the C compiler uses GNU ld @<:@default=no@:>@])],
3035 [test "$withval" = no || with_gnu_ld=yes],
3036 [with_gnu_ld=no])dnl
3037
3038 ac_prog=ld
3039 if test "$GCC" = yes; then
3040 # Check if gcc -print-prog-name=ld gives a path.
3041 AC_MSG_CHECKING([for ld used by $CC])
3042 case $host in
3043 *-*-mingw*)
3044 # gcc leaves a trailing carriage return which upsets mingw
3045 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3046 *)
3047 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3048 esac
3049 case $ac_prog in
3050 # Accept absolute paths.
3051 [[\\/]]* | ?:[[\\/]]*)
3052 re_direlt='/[[^/]][[^/]]*/\.\./'
3053 # Canonicalize the pathname of ld
3054 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3055 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3056 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3057 done
3058 test -z "$LD" && LD="$ac_prog"
3059 ;;
3060 "")
3061 # If it fails, then pretend we aren't using GCC.
3062 ac_prog=ld
3063 ;;
3064 *)
3065 # If it is relative, then search for the first ld in PATH.
3066 with_gnu_ld=unknown
3067 ;;
3068 esac
3069 elif test "$with_gnu_ld" = yes; then
3070 AC_MSG_CHECKING([for GNU ld])
3071 else
3072 AC_MSG_CHECKING([for non-GNU ld])
3073 fi
3074 AC_CACHE_VAL(lt_cv_path_LD,
3075 [if test -z "$LD"; then
3076 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3077 for ac_dir in $PATH; do
3078 IFS="$lt_save_ifs"
3079 test -z "$ac_dir" && ac_dir=.
3080 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3081 lt_cv_path_LD="$ac_dir/$ac_prog"
3082 # Check to see if the program is GNU ld. I'd rather use --version,
3083 # but apparently some variants of GNU ld only accept -v.
3084 # Break only if it was the GNU/non-GNU ld that we prefer.
3085 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3086 *GNU* | *'with BFD'*)
3087 test "$with_gnu_ld" != no && break
3088 ;;
3089 *)
3090 test "$with_gnu_ld" != yes && break
3091 ;;
3092 esac
3093 fi
3094 done
3095 IFS="$lt_save_ifs"
3096 else
3097 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3098 fi])
3099 LD="$lt_cv_path_LD"
3100 if test -n "$LD"; then
3101 AC_MSG_RESULT($LD)
3102 else
3103 AC_MSG_RESULT(no)
3104 fi
3105 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
3106 _LT_PATH_LD_GNU
3107 AC_SUBST([LD])
3108
3109 _LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
3110 ])# LT_PATH_LD
3111
3112 # Old names:
3113 AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
3114 AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
3115 dnl aclocal-1.4 backwards compatibility:
3116 dnl AC_DEFUN([AM_PROG_LD], [])
3117 dnl AC_DEFUN([AC_PROG_LD], [])
3118
3119
3120 # _LT_PATH_LD_GNU
3121 #- --------------
3122 m4_defun([_LT_PATH_LD_GNU],
3123 [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
3124 [# I'd rather use --version here, but apparently some GNU lds only accept -v.
3125 case `$LD -v 2>&1 </dev/null` in
3126 *GNU* | *'with BFD'*)
3127 lt_cv_prog_gnu_ld=yes
3128 ;;
3129 *)
3130 lt_cv_prog_gnu_ld=no
3131 ;;
3132 esac])
3133 with_gnu_ld=$lt_cv_prog_gnu_ld
3134 ])# _LT_PATH_LD_GNU
3135
3136
3137 # _LT_CMD_RELOAD
3138 # --------------
3139 # find reload flag for linker
3140 # -- PORTME Some linkers may need a different reload flag.
3141 m4_defun([_LT_CMD_RELOAD],
3142 [AC_CACHE_CHECK([for $LD option to reload object files],
3143 lt_cv_ld_reload_flag,
3144 [lt_cv_ld_reload_flag='-r'])
3145 reload_flag=$lt_cv_ld_reload_flag
3146 case $reload_flag in
3147 "" | " "*) ;;
3148 *) reload_flag=" $reload_flag" ;;
3149 esac
3150 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3151 case $host_os in
3152 cygwin* | mingw* | pw32* | cegcc*)
3153 if test "$GCC" != yes; then
3154 reload_cmds=false
3155 fi
3156 ;;
3157 darwin*)
3158 if test "$GCC" = yes; then
3159 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3160 else
3161 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3162 fi
3163 ;;
3164 esac
3165 _LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
3166 _LT_TAGDECL([], [reload_cmds], [2])dnl
3167 ])# _LT_CMD_RELOAD
3168
3169
3170 # _LT_CHECK_MAGIC_METHOD
3171 # ----------------------
3172 # how to check for library dependencies
3173 # -- PORTME fill in with the dynamic library characteristics
3174 m4_defun([_LT_CHECK_MAGIC_METHOD],
3175 [m4_require([_LT_DECL_EGREP])
3176 m4_require([_LT_DECL_OBJDUMP])
3177 AC_CACHE_CHECK([how to recognize dependent libraries],
3178 lt_cv_deplibs_check_method,
3179 [lt_cv_file_magic_cmd='$MAGIC_CMD'
3180 lt_cv_file_magic_test_file=
3181 lt_cv_deplibs_check_method='unknown'
3182 # Need to set the preceding variable on all platforms that support
3183 # interlibrary dependencies.
3184 # 'none' -- dependencies not supported.
3185 # `unknown' -- same as none, but documents that we really don't know.
3186 # 'pass_all' -- all dependencies passed with no checks.
3187 # 'test_compile' -- check by making test program.
3188 # 'file_magic [[regex]]' -- check by looking for files in library path
3189 # which responds to the $file_magic_cmd with a given extended regex.
3190 # If you have `file' or equivalent on your system and you're not sure
3191 # whether `pass_all' will *always* work, you probably want this one.
3192
3193 case $host_os in
3194 aix[[4-9]]*)
3195 lt_cv_deplibs_check_method=pass_all
3196 ;;
3197
3198 beos*)
3199 lt_cv_deplibs_check_method=pass_all
3200 ;;
3201
3202 bsdi[[45]]*)
3203 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
3204 lt_cv_file_magic_cmd='/usr/bin/file -L'
3205 lt_cv_file_magic_test_file=/shlib/libc.so
3206 ;;
3207
3208 cygwin*)
3209 # func_win32_libid is a shell function defined in ltmain.sh
3210 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3211 lt_cv_file_magic_cmd='func_win32_libid'
3212 ;;
3213
3214 mingw* | pw32*)
3215 # Base MSYS/MinGW do not provide the 'file' command needed by
3216 # func_win32_libid shell function, so use a weaker test based on 'objdump',
3217 # unless we find 'file', for example because we are cross-compiling.
3218 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
3219 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
3220 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3221 lt_cv_file_magic_cmd='func_win32_libid'
3222 else
3223 # Keep this pattern in sync with the one in func_win32_libid.
3224 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
3225 lt_cv_file_magic_cmd='$OBJDUMP -f'
3226 fi
3227 ;;
3228
3229 cegcc*)
3230 # use the weaker test based on 'objdump'. See mingw*.
3231 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
3232 lt_cv_file_magic_cmd='$OBJDUMP -f'
3233 ;;
3234
3235 darwin* | rhapsody*)
3236 lt_cv_deplibs_check_method=pass_all
3237 ;;
3238
3239 freebsd* | dragonfly*)
3240 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3241 case $host_cpu in
3242 i*86 )
3243 # Not sure whether the presence of OpenBSD here was a mistake.
3244 # Let's accept both of them until this is cleared up.
3245 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
3246 lt_cv_file_magic_cmd=/usr/bin/file
3247 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3248 ;;
3249 esac
3250 else
3251 lt_cv_deplibs_check_method=pass_all
3252 fi
3253 ;;
3254
3255 gnu*)
3256 lt_cv_deplibs_check_method=pass_all
3257 ;;
3258
3259 haiku*)
3260 lt_cv_deplibs_check_method=pass_all
3261 ;;
3262
3263 hpux10.20* | hpux11*)
3264 lt_cv_file_magic_cmd=/usr/bin/file
3265 case $host_cpu in
3266 ia64*)
3267 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
3268 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3269 ;;
3270 hppa*64*)
3271 [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]']
3272 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3273 ;;
3274 *)
3275 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
3276 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3277 ;;
3278 esac
3279 ;;
3280
3281 interix[[3-9]]*)
3282 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3283 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
3284 ;;
3285
3286 irix5* | irix6* | nonstopux*)
3287 case $LD in
3288 *-32|*"-32 ") libmagic=32-bit;;
3289 *-n32|*"-n32 ") libmagic=N32;;
3290 *-64|*"-64 ") libmagic=64-bit;;
3291 *) libmagic=never-match;;
3292 esac
3293 lt_cv_deplibs_check_method=pass_all
3294 ;;
3295
3296 # This must be glibc/ELF.
3297 linux* | k*bsd*-gnu | kopensolaris*-gnu)
3298 lt_cv_deplibs_check_method=pass_all
3299 ;;
3300
3301 netbsd*)
3302 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3303 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3304 else
3305 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
3306 fi
3307 ;;
3308
3309 newos6*)
3310 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3311 lt_cv_file_magic_cmd=/usr/bin/file
3312 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3313 ;;
3314
3315 *nto* | *qnx*)
3316 lt_cv_deplibs_check_method=pass_all
3317 ;;
3318
3319 openbsd*)
3320 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3321 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
3322 else
3323 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3324 fi
3325 ;;
3326
3327 osf3* | osf4* | osf5*)
3328 lt_cv_deplibs_check_method=pass_all
3329 ;;
3330
3331 rdos*)
3332 lt_cv_deplibs_check_method=pass_all
3333 ;;
3334
3335 solaris*)
3336 lt_cv_deplibs_check_method=pass_all
3337 ;;
3338
3339 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3340 lt_cv_deplibs_check_method=pass_all
3341 ;;
3342
3343 sysv4 | sysv4.3*)
3344 case $host_vendor in
3345 motorola)
3346 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
3347 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3348 ;;
3349 ncr)
3350 lt_cv_deplibs_check_method=pass_all
3351 ;;
3352 sequent)
3353 lt_cv_file_magic_cmd='/bin/file'
3354 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
3355 ;;
3356 sni)
3357 lt_cv_file_magic_cmd='/bin/file'
3358 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
3359 lt_cv_file_magic_test_file=/lib/libc.so
3360 ;;
3361 siemens)
3362 lt_cv_deplibs_check_method=pass_all
3363 ;;
3364 pc)
3365 lt_cv_deplibs_check_method=pass_all
3366 ;;
3367 esac
3368 ;;
3369
3370 tpf*)
3371 lt_cv_deplibs_check_method=pass_all
3372 ;;
3373 esac
3374 ])
3375
3376 file_magic_glob=
3377 want_nocaseglob=no
3378 if test "$build" = "$host"; then
3379 case $host_os in
3380 mingw* | pw32*)
3381 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
3382 want_nocaseglob=yes
3383 else
3384 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
3385 fi
3386 ;;
3387 esac
3388 fi
3389
3390 file_magic_cmd=$lt_cv_file_magic_cmd
3391 deplibs_check_method=$lt_cv_deplibs_check_method
3392 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3393
3394 _LT_DECL([], [deplibs_check_method], [1],
3395 [Method to check whether dependent libraries are shared objects])
3396 _LT_DECL([], [file_magic_cmd], [1],
3397 [Command to use when deplibs_check_method = "file_magic"])
3398 _LT_DECL([], [file_magic_glob], [1],
3399 [How to find potential files when deplibs_check_method = "file_magic"])
3400 _LT_DECL([], [want_nocaseglob], [1],
3401 [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
3402 ])# _LT_CHECK_MAGIC_METHOD
3403
3404
3405 # LT_PATH_NM
3406 # ----------
3407 # find the pathname to a BSD- or MS-compatible name lister
3408 AC_DEFUN([LT_PATH_NM],
3409 [AC_REQUIRE([AC_PROG_CC])dnl
3410 AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
3411 [if test -n "$NM"; then
3412 # Let the user override the test.
3413 lt_cv_path_NM="$NM"
3414 else
3415 lt_nm_to_check="${ac_tool_prefix}nm"
3416 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3417 lt_nm_to_check="$lt_nm_to_check nm"
3418 fi
3419 for lt_tmp_nm in $lt_nm_to_check; do
3420 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3421 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3422 IFS="$lt_save_ifs"
3423 test -z "$ac_dir" && ac_dir=.
3424 tmp_nm="$ac_dir/$lt_tmp_nm"
3425 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3426 # Check to see if the nm accepts a BSD-compat flag.
3427 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3428 # nm: unknown option "B" ignored
3429 # Tru64's nm complains that /dev/null is an invalid object file
3430 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3431 */dev/null* | *'Invalid file or object type'*)
3432 lt_cv_path_NM="$tmp_nm -B"
3433 break
3434 ;;
3435 *)
3436 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3437 */dev/null*)
3438 lt_cv_path_NM="$tmp_nm -p"
3439 break
3440 ;;
3441 *)
3442 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3443 continue # so that we can try to find one that supports BSD flags
3444 ;;
3445 esac
3446 ;;
3447 esac
3448 fi
3449 done
3450 IFS="$lt_save_ifs"
3451 done
3452 : ${lt_cv_path_NM=no}
3453 fi])
3454 if test "$lt_cv_path_NM" != "no"; then
3455 NM="$lt_cv_path_NM"
3456 else
3457 # Didn't find any BSD compatible name lister, look for dumpbin.
3458 if test -n "$DUMPBIN"; then :
3459 # Let the user override the test.
3460 else
3461 AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
3462 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
3463 *COFF*)
3464 DUMPBIN="$DUMPBIN -symbols"
3465 ;;
3466 *)
3467 DUMPBIN=:
3468 ;;
3469 esac
3470 fi
3471 AC_SUBST([DUMPBIN])
3472 if test "$DUMPBIN" != ":"; then
3473 NM="$DUMPBIN"
3474 fi
3475 fi
3476 test -z "$NM" && NM=nm
3477 AC_SUBST([NM])
3478 _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
3479
3480 AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
3481 [lt_cv_nm_interface="BSD nm"
3482 echo "int some_variable = 0;" > conftest.$ac_ext
3483 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
3484 (eval "$ac_compile" 2>conftest.err)
3485 cat conftest.err >&AS_MESSAGE_LOG_FD
3486 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
3487 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3488 cat conftest.err >&AS_MESSAGE_LOG_FD
3489 (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
3490 cat conftest.out >&AS_MESSAGE_LOG_FD
3491 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3492 lt_cv_nm_interface="MS dumpbin"
3493 fi
3494 rm -f conftest*])
3495 ])# LT_PATH_NM
3496
3497 # Old names:
3498 AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
3499 AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
3500 dnl aclocal-1.4 backwards compatibility:
3501 dnl AC_DEFUN([AM_PROG_NM], [])
3502 dnl AC_DEFUN([AC_PROG_NM], [])
3503
3504 # _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3505 # --------------------------------
3506 # how to determine the name of the shared library
3507 # associated with a specific link library.
3508 # -- PORTME fill in with the dynamic library characteristics
3509 m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
3510 [m4_require([_LT_DECL_EGREP])
3511 m4_require([_LT_DECL_OBJDUMP])
3512 m4_require([_LT_DECL_DLLTOOL])
3513 AC_CACHE_CHECK([how to associate runtime and link libraries],
3514 lt_cv_sharedlib_from_linklib_cmd,
3515 [lt_cv_sharedlib_from_linklib_cmd='unknown'
3516
3517 case $host_os in
3518 cygwin* | mingw* | pw32* | cegcc*)
3519 # two different shell functions defined in ltmain.sh
3520 # decide which to use based on capabilities of $DLLTOOL
3521 case `$DLLTOOL --help 2>&1` in
3522 *--identify-strict*)
3523 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
3524 ;;
3525 *)
3526 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
3527 ;;
3528 esac
3529 ;;
3530 *)
3531 # fallback: assume linklib IS sharedlib
3532 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
3533 ;;
3534 esac
3535 ])
3536 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
3537 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
3538
3539 _LT_DECL([], [sharedlib_from_linklib_cmd], [1],
3540 [Command to associate shared and link libraries])
3541 ])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3542
3543
3544 # _LT_PATH_MANIFEST_TOOL
3545 # ----------------------
3546 # locate the manifest tool
3547 m4_defun([_LT_PATH_MANIFEST_TOOL],
3548 [AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
3549 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
3550 AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
3551 [lt_cv_path_mainfest_tool=no
3552 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
3553 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
3554 cat conftest.err >&AS_MESSAGE_LOG_FD
3555 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
3556 lt_cv_path_mainfest_tool=yes
3557 fi
3558 rm -f conftest*])
3559 if test "x$lt_cv_path_mainfest_tool" != xyes; then
3560 MANIFEST_TOOL=:
3561 fi
3562 _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
3563 ])# _LT_PATH_MANIFEST_TOOL
3564
3565
3566 # LT_LIB_M
3567 # --------
3568 # check for math library
3569 AC_DEFUN([LT_LIB_M],
3570 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
3571 LIBM=
3572 case $host in
3573 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
3574 # These system don't have libm, or don't need it
3575 ;;
3576 *-ncr-sysv4.3*)
3577 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
3578 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
3579 ;;
3580 *)
3581 AC_CHECK_LIB(m, cos, LIBM="-lm")
3582 ;;
3583 esac
3584 AC_SUBST([LIBM])
3585 ])# LT_LIB_M
3586
3587 # Old name:
3588 AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
3589 dnl aclocal-1.4 backwards compatibility:
3590 dnl AC_DEFUN([AC_CHECK_LIBM], [])
3591
3592
3593 # _LT_COMPILER_NO_RTTI([TAGNAME])
3594 # -------------------------------
3595 m4_defun([_LT_COMPILER_NO_RTTI],
3596 [m4_require([_LT_TAG_COMPILER])dnl
3597
3598 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3599
3600 if test "$GCC" = yes; then
3601 case $cc_basename in
3602 nvcc*)
3603 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
3604 *)
3605 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
3606 esac
3607
3608 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
3609 lt_cv_prog_compiler_rtti_exceptions,
3610 [-fno-rtti -fno-exceptions], [],
3611 [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
3612 fi
3613 _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
3614 [Compiler flag to turn off builtin functions])
3615 ])# _LT_COMPILER_NO_RTTI
3616
3617
3618 # _LT_CMD_GLOBAL_SYMBOLS
3619 # ----------------------
3620 m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
3621 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
3622 AC_REQUIRE([AC_PROG_CC])dnl
3623 AC_REQUIRE([AC_PROG_AWK])dnl
3624 AC_REQUIRE([LT_PATH_NM])dnl
3625 AC_REQUIRE([LT_PATH_LD])dnl
3626 m4_require([_LT_DECL_SED])dnl
3627 m4_require([_LT_DECL_EGREP])dnl
3628 m4_require([_LT_TAG_COMPILER])dnl
3629
3630 # Check for command to grab the raw symbol name followed by C symbol from nm.
3631 AC_MSG_CHECKING([command to parse $NM output from $compiler object])
3632 AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
3633 [
3634 # These are sane defaults that work on at least a few old systems.
3635 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
3636
3637 # Character class describing NM global symbol codes.
3638 symcode='[[BCDEGRST]]'
3639
3640 # Regexp to match symbols that can be accessed directly from C.
3641 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
3642
3643 # Define system-specific variables.
3644 case $host_os in
3645 aix*)
3646 symcode='[[BCDT]]'
3647 ;;
3648 cygwin* | mingw* | pw32* | cegcc*)
3649 symcode='[[ABCDGISTW]]'
3650 ;;
3651 hpux*)
3652 if test "$host_cpu" = ia64; then
3653 symcode='[[ABCDEGRST]]'
3654 fi
3655 ;;
3656 irix* | nonstopux*)
3657 symcode='[[BCDEGRST]]'
3658 ;;
3659 osf*)
3660 symcode='[[BCDEGQRST]]'
3661 ;;
3662 solaris*)
3663 symcode='[[BDRT]]'
3664 ;;
3665 sco3.2v5*)
3666 symcode='[[DT]]'
3667 ;;
3668 sysv4.2uw2*)
3669 symcode='[[DT]]'
3670 ;;
3671 sysv5* | sco5v6* | unixware* | OpenUNIX*)
3672 symcode='[[ABDT]]'
3673 ;;
3674 sysv4)
3675 symcode='[[DFNSTU]]'
3676 ;;
3677 esac
3678
3679 # If we're using GNU nm, then use its standard symbol codes.
3680 case `$NM -V 2>&1` in
3681 *GNU* | *'with BFD'*)
3682 symcode='[[ABCDGIRSTW]]' ;;
3683 esac
3684
3685 # Transform an extracted symbol line into a proper C declaration.
3686 # Some systems (esp. on ia64) link data and code symbols differently,
3687 # so use this general approach.
3688 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3689
3690 # Transform an extracted symbol line into symbol name and symbol address
3691 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
3692 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
3693
3694 # Handle CRLF in mingw tool chain
3695 opt_cr=
3696 case $build_os in
3697 mingw*)
3698 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3699 ;;
3700 esac
3701
3702 # Try without a prefix underscore, then with it.
3703 for ac_symprfx in "" "_"; do
3704
3705 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
3706 symxfrm="\\1 $ac_symprfx\\2 \\2"
3707
3708 # Write the raw and C identifiers.
3709 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
3710 # Fake it for dumpbin and say T for any non-static function
3711 # and D for any global variable.
3712 # Also find C++ and __fastcall symbols from MSVC++,
3713 # which start with @ or ?.
3714 lt_cv_sys_global_symbol_pipe="$AWK ['"\
3715 " {last_section=section; section=\$ 3};"\
3716 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
3717 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
3718 " \$ 0!~/External *\|/{next};"\
3719 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
3720 " {if(hide[section]) next};"\
3721 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
3722 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
3723 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
3724 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
3725 " ' prfx=^$ac_symprfx]"
3726 else
3727 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
3728 fi
3729 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
3730
3731 # Check to see that the pipe works correctly.
3732 pipe_works=no
3733
3734 rm -f conftest*
3735 cat > conftest.$ac_ext <<_LT_EOF
3736 #ifdef __cplusplus
3737 extern "C" {
3738 #endif
3739 char nm_test_var;
3740 void nm_test_func(void);
3741 void nm_test_func(void){}
3742 #ifdef __cplusplus
3743 }
3744 #endif
3745 int main(){nm_test_var='a';nm_test_func();return(0);}
3746 _LT_EOF
3747
3748 if AC_TRY_EVAL(ac_compile); then
3749 # Now try to grab the symbols.
3750 nlist=conftest.nm
3751 if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
3752 # Try sorting and uniquifying the output.
3753 if sort "$nlist" | uniq > "$nlist"T; then
3754 mv -f "$nlist"T "$nlist"
3755 else
3756 rm -f "$nlist"T
3757 fi
3758
3759 # Make sure that we snagged all the symbols we need.
3760 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
3761 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
3762 cat <<_LT_EOF > conftest.$ac_ext
3763 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
3764 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
3765 /* DATA imports from DLLs on WIN32 con't be const, because runtime
3766 relocations are performed -- see ld's documentation on pseudo-relocs. */
3767 # define LT@&t@_DLSYM_CONST
3768 #elif defined(__osf__)
3769 /* This system does not cope well with relocations in const data. */
3770 # define LT@&t@_DLSYM_CONST
3771 #else
3772 # define LT@&t@_DLSYM_CONST const
3773 #endif
3774
3775 #ifdef __cplusplus
3776 extern "C" {
3777 #endif
3778
3779 _LT_EOF
3780 # Now generate the symbol file.
3781 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
3782
3783 cat <<_LT_EOF >> conftest.$ac_ext
3784
3785 /* The mapping between symbol names and symbols. */
3786 LT@&t@_DLSYM_CONST struct {
3787 const char *name;
3788 void *address;
3789 }
3790 lt__PROGRAM__LTX_preloaded_symbols[[]] =
3791 {
3792 { "@PROGRAM@", (void *) 0 },
3793 _LT_EOF
3794 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
3795 cat <<\_LT_EOF >> conftest.$ac_ext
3796 {0, (void *) 0}
3797 };
3798
3799 /* This works around a problem in FreeBSD linker */
3800 #ifdef FREEBSD_WORKAROUND
3801 static const void *lt_preloaded_setup() {
3802 return lt__PROGRAM__LTX_preloaded_symbols;
3803 }
3804 #endif
3805
3806 #ifdef __cplusplus
3807 }
3808 #endif
3809 _LT_EOF
3810 # Now try linking the two files.
3811 mv conftest.$ac_objext conftstm.$ac_objext
3812 lt_globsym_save_LIBS=$LIBS
3813 lt_globsym_save_CFLAGS=$CFLAGS
3814 LIBS="conftstm.$ac_objext"
3815 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
3816 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
3817 pipe_works=yes
3818 fi
3819 LIBS=$lt_globsym_save_LIBS
3820 CFLAGS=$lt_globsym_save_CFLAGS
3821 else
3822 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
3823 fi
3824 else
3825 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
3826 fi
3827 else
3828 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
3829 fi
3830 else
3831 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
3832 cat conftest.$ac_ext >&5
3833 fi
3834 rm -rf conftest* conftst*
3835
3836 # Do not use the global_symbol_pipe unless it works.
3837 if test "$pipe_works" = yes; then
3838 break
3839 else
3840 lt_cv_sys_global_symbol_pipe=
3841 fi
3842 done
3843 ])
3844 if test -z "$lt_cv_sys_global_symbol_pipe"; then
3845 lt_cv_sys_global_symbol_to_cdecl=
3846 fi
3847 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
3848 AC_MSG_RESULT(failed)
3849 else
3850 AC_MSG_RESULT(ok)
3851 fi
3852
3853 # Response file support.
3854 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
3855 nm_file_list_spec='@'
3856 elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
3857 nm_file_list_spec='@'
3858 fi
3859
3860 _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
3861 [Take the output of nm and produce a listing of raw symbols and C names])
3862 _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
3863 [Transform the output of nm in a proper C declaration])
3864 _LT_DECL([global_symbol_to_c_name_address],
3865 [lt_cv_sys_global_symbol_to_c_name_address], [1],
3866 [Transform the output of nm in a C name address pair])
3867 _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
3868 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
3869 [Transform the output of nm in a C name address pair when lib prefix is needed])
3870 _LT_DECL([], [nm_file_list_spec], [1],
3871 [Specify filename containing input files for $NM])
3872 ]) # _LT_CMD_GLOBAL_SYMBOLS
3873
3874
3875 # _LT_COMPILER_PIC([TAGNAME])
3876 # ---------------------------
3877 m4_defun([_LT_COMPILER_PIC],
3878 [m4_require([_LT_TAG_COMPILER])dnl
3879 _LT_TAGVAR(lt_prog_compiler_wl, $1)=
3880 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3881 _LT_TAGVAR(lt_prog_compiler_static, $1)=
3882
3883 m4_if([$1], [CXX], [
3884 # C++ specific cases for pic, static, wl, etc.
3885 if test "$GXX" = yes; then
3886 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3887 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
3888
3889 case $host_os in
3890 aix*)
3891 # All AIX code is PIC.
3892 if test "$host_cpu" = ia64; then
3893 # AIX 5 now supports IA64 processor
3894 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3895 fi
3896 ;;
3897
3898 amigaos*)
3899 case $host_cpu in
3900 powerpc)
3901 # see comment about AmigaOS4 .so support
3902 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3903 ;;
3904 m68k)
3905 # FIXME: we need at least 68020 code to build shared libraries, but
3906 # adding the `-m68020' flag to GCC prevents building anything better,
3907 # like `-m68040'.
3908 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
3909 ;;
3910 esac
3911 ;;
3912
3913 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
3914 # PIC is the default for these OSes.
3915 ;;
3916 mingw* | cygwin* | os2* | pw32* | cegcc*)
3917 # This hack is so that the source file can tell whether it is being
3918 # built for inclusion in a dll (and should export symbols for example).
3919 # Although the cygwin gcc ignores -fPIC, still need this for old-style
3920 # (--disable-auto-import) libraries
3921 m4_if([$1], [GCJ], [],
3922 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
3923 ;;
3924 darwin* | rhapsody*)
3925 # PIC is the default on this platform
3926 # Common symbols not allowed in MH_DYLIB files
3927 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
3928 ;;
3929 *djgpp*)
3930 # DJGPP does not support shared libraries at all
3931 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3932 ;;
3933 haiku*)
3934 # PIC is the default for Haiku.
3935 # The "-static" flag exists, but is broken.
3936 _LT_TAGVAR(lt_prog_compiler_static, $1)=
3937 ;;
3938 interix[[3-9]]*)
3939 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
3940 # Instead, we relocate shared libraries at runtime.
3941 ;;
3942 sysv4*MP*)
3943 if test -d /usr/nec; then
3944 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
3945 fi
3946 ;;
3947 hpux*)
3948 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
3949 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
3950 # sets the default TLS model and affects inlining.
3951 case $host_cpu in
3952 hppa*64*)
3953 ;;
3954 *)
3955 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3956 ;;
3957 esac
3958 ;;
3959 *qnx* | *nto*)
3960 # QNX uses GNU C++, but need to define -shared option too, otherwise
3961 # it will coredump.
3962 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
3963 ;;
3964 *)
3965 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3966 ;;
3967 esac
3968 else
3969 case $host_os in
3970 aix[[4-9]]*)
3971 # All AIX code is PIC.
3972 if test "$host_cpu" = ia64; then
3973 # AIX 5 now supports IA64 processor
3974 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3975 else
3976 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
3977 fi
3978 ;;
3979 chorus*)
3980 case $cc_basename in
3981 cxch68*)
3982 # Green Hills C++ Compiler
3983 # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
3984 ;;
3985 esac
3986 ;;
3987 mingw* | cygwin* | os2* | pw32* | cegcc*)
3988 # This hack is so that the source file can tell whether it is being
3989 # built for inclusion in a dll (and should export symbols for example).
3990 m4_if([$1], [GCJ], [],
3991 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
3992 ;;
3993 dgux*)
3994 case $cc_basename in
3995 ec++*)
3996 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3997 ;;
3998 ghcx*)
3999 # Green Hills C++ Compiler
4000 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4001 ;;
4002 *)
4003 ;;
4004 esac
4005 ;;
4006 freebsd* | dragonfly*)
4007 # FreeBSD uses GNU C++
4008 ;;
4009 hpux9* | hpux10* | hpux11*)
4010 case $cc_basename in
4011 CC*)
4012 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4013 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4014 if test "$host_cpu" != ia64; then
4015 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4016 fi
4017 ;;
4018 aCC*)
4019 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4020 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4021 case $host_cpu in
4022 hppa*64*|ia64*)
4023 # +Z the default
4024 ;;
4025 *)
4026 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4027 ;;
4028 esac
4029 ;;
4030 *)
4031 ;;
4032 esac
4033 ;;
4034 interix*)
4035 # This is c89, which is MS Visual C++ (no shared libs)
4036 # Anyone wants to do a port?
4037 ;;
4038 irix5* | irix6* | nonstopux*)
4039 case $cc_basename in
4040 CC*)
4041 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4042 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4043 # CC pic flag -KPIC is the default.
4044 ;;
4045 *)
4046 ;;
4047 esac
4048 ;;
4049 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4050 case $cc_basename in
4051 KCC*)
4052 # KAI C++ Compiler
4053 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4054 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4055 ;;
4056 ecpc* )
4057 # old Intel C++ for x86_64 which still supported -KPIC.
4058 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4059 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4060 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4061 ;;
4062 icpc* )
4063 # Intel C++, used to be incompatible with GCC.
4064 # ICC 10 doesn't accept -KPIC any more.
4065 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4066 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4067 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4068 ;;
4069 pgCC* | pgcpp*)
4070 # Portland Group C++ compiler
4071 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4072 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4073 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4074 ;;
4075 cxx*)
4076 # Compaq C++
4077 # Make sure the PIC flag is empty. It appears that all Alpha
4078 # Linux and Compaq Tru64 Unix objects are PIC.
4079 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4080 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4081 ;;
4082 xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
4083 # IBM XL 8.0, 9.0 on PPC and BlueGene
4084 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4085 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4086 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4087 ;;
4088 *)
4089 case `$CC -V 2>&1 | sed 5q` in
4090 *Sun\ C*)
4091 # Sun C++ 5.9
4092 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4093 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4094 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4095 ;;
4096 esac
4097 ;;
4098 esac
4099 ;;
4100 lynxos*)
4101 ;;
4102 m88k*)
4103 ;;
4104 mvs*)
4105 case $cc_basename in
4106 cxx*)
4107 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
4108 ;;
4109 *)
4110 ;;
4111 esac
4112 ;;
4113 netbsd*)
4114 ;;
4115 *qnx* | *nto*)
4116 # QNX uses GNU C++, but need to define -shared option too, otherwise
4117 # it will coredump.
4118 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4119 ;;
4120 osf3* | osf4* | osf5*)
4121 case $cc_basename in
4122 KCC*)
4123 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4124 ;;
4125 RCC*)
4126 # Rational C++ 2.4.1
4127 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4128 ;;
4129 cxx*)
4130 # Digital/Compaq C++
4131 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4132 # Make sure the PIC flag is empty. It appears that all Alpha
4133 # Linux and Compaq Tru64 Unix objects are PIC.
4134 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4135 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4136 ;;
4137 *)
4138 ;;
4139 esac
4140 ;;
4141 psos*)
4142 ;;
4143 solaris*)
4144 case $cc_basename in
4145 CC* | sunCC*)
4146 # Sun C++ 4.2, 5.x and Centerline C++
4147 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4148 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4149 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4150 ;;
4151 gcx*)
4152 # Green Hills C++ Compiler
4153 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4154 ;;
4155 *)
4156 ;;
4157 esac
4158 ;;
4159 sunos4*)
4160 case $cc_basename in
4161 CC*)
4162 # Sun C++ 4.x
4163 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4164 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4165 ;;
4166 lcc*)
4167 # Lucid
4168 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4169 ;;
4170 *)
4171 ;;
4172 esac
4173 ;;
4174 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
4175 case $cc_basename in
4176 CC*)
4177 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4178 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4179 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4180 ;;
4181 esac
4182 ;;
4183 tandem*)
4184 case $cc_basename in
4185 NCC*)
4186 # NonStop-UX NCC 3.20
4187 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4188 ;;
4189 *)
4190 ;;
4191 esac
4192 ;;
4193 vxworks*)
4194 ;;
4195 *)
4196 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4197 ;;
4198 esac
4199 fi
4200 ],
4201 [
4202 if test "$GCC" = yes; then
4203 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4204 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4205
4206 case $host_os in
4207 aix*)
4208 # All AIX code is PIC.
4209 if test "$host_cpu" = ia64; then
4210 # AIX 5 now supports IA64 processor
4211 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4212 fi
4213 ;;
4214
4215 amigaos*)
4216 case $host_cpu in
4217 powerpc)
4218 # see comment about AmigaOS4 .so support
4219 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4220 ;;
4221 m68k)
4222 # FIXME: we need at least 68020 code to build shared libraries, but
4223 # adding the `-m68020' flag to GCC prevents building anything better,
4224 # like `-m68040'.
4225 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4226 ;;
4227 esac
4228 ;;
4229
4230 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4231 # PIC is the default for these OSes.
4232 ;;
4233
4234 mingw* | cygwin* | pw32* | os2* | cegcc*)
4235 # This hack is so that the source file can tell whether it is being
4236 # built for inclusion in a dll (and should export symbols for example).
4237 # Although the cygwin gcc ignores -fPIC, still need this for old-style
4238 # (--disable-auto-import) libraries
4239 m4_if([$1], [GCJ], [],
4240 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4241 ;;
4242
4243 darwin* | rhapsody*)
4244 # PIC is the default on this platform
4245 # Common symbols not allowed in MH_DYLIB files
4246 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4247 ;;
4248
4249 haiku*)
4250 # PIC is the default for Haiku.
4251 # The "-static" flag exists, but is broken.
4252 _LT_TAGVAR(lt_prog_compiler_static, $1)=
4253 ;;
4254
4255 hpux*)
4256 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4257 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
4258 # sets the default TLS model and affects inlining.
4259 case $host_cpu in
4260 hppa*64*)
4261 # +Z the default
4262 ;;
4263 *)
4264 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4265 ;;
4266 esac
4267 ;;
4268
4269 interix[[3-9]]*)
4270 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4271 # Instead, we relocate shared libraries at runtime.
4272 ;;
4273
4274 msdosdjgpp*)
4275 # Just because we use GCC doesn't mean we suddenly get shared libraries
4276 # on systems that don't support them.
4277 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4278 enable_shared=no
4279 ;;
4280
4281 *nto* | *qnx*)
4282 # QNX uses GNU C++, but need to define -shared option too, otherwise
4283 # it will coredump.
4284 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4285 ;;
4286
4287 sysv4*MP*)
4288 if test -d /usr/nec; then
4289 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4290 fi
4291 ;;
4292
4293 *)
4294 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4295 ;;
4296 esac
4297
4298 case $cc_basename in
4299 nvcc*) # Cuda Compiler Driver 2.2
4300 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
4301 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4302 _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
4303 fi
4304 ;;
4305 esac
4306 else
4307 # PORTME Check for flag to pass linker flags through the system compiler.
4308 case $host_os in
4309 aix*)
4310 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4311 if test "$host_cpu" = ia64; then
4312 # AIX 5 now supports IA64 processor
4313 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4314 else
4315 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4316 fi
4317 ;;
4318
4319 mingw* | cygwin* | pw32* | os2* | cegcc*)
4320 # This hack is so that the source file can tell whether it is being
4321 # built for inclusion in a dll (and should export symbols for example).
4322 m4_if([$1], [GCJ], [],
4323 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4324 ;;
4325
4326 hpux9* | hpux10* | hpux11*)
4327 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4328 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4329 # not for PA HP-UX.
4330 case $host_cpu in
4331 hppa*64*|ia64*)
4332 # +Z the default
4333 ;;
4334 *)
4335 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4336 ;;
4337 esac
4338 # Is there a better lt_prog_compiler_static that works with the bundled CC?
4339 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4340 ;;
4341
4342 irix5* | irix6* | nonstopux*)
4343 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4344 # PIC (with -KPIC) is the default.
4345 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4346 ;;
4347
4348 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4349 case $cc_basename in
4350 # old Intel for x86_64 which still supported -KPIC.
4351 ecc*)
4352 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4353 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4354 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4355 ;;
4356 # icc used to be incompatible with GCC.
4357 # ICC 10 doesn't accept -KPIC any more.
4358 icc* | ifort*)
4359 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4360 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4361 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4362 ;;
4363 # Lahey Fortran 8.1.
4364 lf95*)
4365 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4366 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
4367 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
4368 ;;
4369 nagfor*)
4370 # NAG Fortran compiler
4371 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
4372 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4373 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4374 ;;
4375 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
4376 # Portland Group compilers (*not* the Pentium gcc compiler,
4377 # which looks to be a dead project)
4378 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4379 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4380 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4381 ;;
4382 ccc*)
4383 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4384 # All Alpha code is PIC.
4385 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4386 ;;
4387 xl* | bgxl* | bgf* | mpixl*)
4388 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
4389 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4390 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4391 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4392 ;;
4393 *)
4394 case `$CC -V 2>&1 | sed 5q` in
4395 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
4396 # Sun Fortran 8.3 passes all unrecognized flags to the linker
4397 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4398 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4399 _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
4400 ;;
4401 *Sun\ F* | *Sun*Fortran*)
4402 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4403 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4404 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4405 ;;
4406 *Sun\ C*)
4407 # Sun C 5.9
4408 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4409 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4410 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4411 ;;
4412 *Intel*\ [[CF]]*Compiler*)
4413 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4414 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4415 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4416 ;;
4417 *Portland\ Group*)
4418 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4419 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4420 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4421 ;;
4422 esac
4423 ;;
4424 esac
4425 ;;
4426
4427 newsos6)
4428 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4429 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4430 ;;
4431
4432 *nto* | *qnx*)
4433 # QNX uses GNU C++, but need to define -shared option too, otherwise
4434 # it will coredump.
4435 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4436 ;;
4437
4438 osf3* | osf4* | osf5*)
4439 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4440 # All OSF/1 code is PIC.
4441 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4442 ;;
4443
4444 rdos*)
4445 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4446 ;;
4447
4448 solaris*)
4449 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4450 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4451 case $cc_basename in
4452 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
4453 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
4454 *)
4455 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
4456 esac
4457 ;;
4458
4459 sunos4*)
4460 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4461 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4462 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4463 ;;
4464
4465 sysv4 | sysv4.2uw2* | sysv4.3*)
4466 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4467 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4468 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4469 ;;
4470
4471 sysv4*MP*)
4472 if test -d /usr/nec ;then
4473 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
4474 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4475 fi
4476 ;;
4477
4478 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
4479 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4480 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4481 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4482 ;;
4483
4484 unicos*)
4485 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4486 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4487 ;;
4488
4489 uts4*)
4490 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4491 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4492 ;;
4493
4494 *)
4495 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4496 ;;
4497 esac
4498 fi
4499 ])
4500 case $host_os in
4501 # For platforms which do not support PIC, -DPIC is meaningless:
4502 *djgpp*)
4503 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4504 ;;
4505 *)
4506 _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
4507 ;;
4508 esac
4509
4510 AC_CACHE_CHECK([for $compiler option to produce PIC],
4511 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
4512 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
4513 _LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
4514
4515 #
4516 # Check to make sure the PIC flag actually works.
4517 #
4518 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4519 _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
4520 [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
4521 [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
4522 [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
4523 "" | " "*) ;;
4524 *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
4525 esac],
4526 [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4527 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
4528 fi
4529 _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
4530 [Additional compiler flags for building library objects])
4531
4532 _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
4533 [How to pass a linker flag through the compiler])
4534 #
4535 # Check to make sure the static flag actually works.
4536 #
4537 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
4538 _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
4539 _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
4540 $lt_tmp_static_flag,
4541 [],
4542 [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
4543 _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
4544 [Compiler flag to prevent dynamic linking])
4545 ])# _LT_COMPILER_PIC
4546
4547
4548 # _LT_LINKER_SHLIBS([TAGNAME])
4549 # ----------------------------
4550 # See if the linker supports building shared libraries.
4551 m4_defun([_LT_LINKER_SHLIBS],
4552 [AC_REQUIRE([LT_PATH_LD])dnl
4553 AC_REQUIRE([LT_PATH_NM])dnl
4554 m4_require([_LT_PATH_MANIFEST_TOOL])dnl
4555 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
4556 m4_require([_LT_DECL_EGREP])dnl
4557 m4_require([_LT_DECL_SED])dnl
4558 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
4559 m4_require([_LT_TAG_COMPILER])dnl
4560 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
4561 m4_if([$1], [CXX], [
4562 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4563 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4564 case $host_os in
4565 aix[[4-9]]*)
4566 # If we're using GNU nm, then we don't want the "-C" option.
4567 # -C means demangle to AIX nm, but means don't demangle with GNU nm
4568 # Also, AIX nm treats weak defined symbols like other global defined
4569 # symbols, whereas GNU nm marks them as "W".
4570 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4571 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4572 else
4573 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4574 fi
4575 ;;
4576 pw32*)
4577 _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
4578 ;;
4579 cygwin* | mingw* | cegcc*)
4580 case $cc_basename in
4581 cl*)
4582 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
4583 ;;
4584 *)
4585 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
4586 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
4587 ;;
4588 esac
4589 ;;
4590 *)
4591 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4592 ;;
4593 esac
4594 ], [
4595 runpath_var=
4596 _LT_TAGVAR(allow_undefined_flag, $1)=
4597 _LT_TAGVAR(always_export_symbols, $1)=no
4598 _LT_TAGVAR(archive_cmds, $1)=
4599 _LT_TAGVAR(archive_expsym_cmds, $1)=
4600 _LT_TAGVAR(compiler_needs_object, $1)=no
4601 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4602 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
4603 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4604 _LT_TAGVAR(hardcode_automatic, $1)=no
4605 _LT_TAGVAR(hardcode_direct, $1)=no
4606 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
4607 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4608 _LT_TAGVAR(hardcode_libdir_separator, $1)=
4609 _LT_TAGVAR(hardcode_minus_L, $1)=no
4610 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4611 _LT_TAGVAR(inherit_rpath, $1)=no
4612 _LT_TAGVAR(link_all_deplibs, $1)=unknown
4613 _LT_TAGVAR(module_cmds, $1)=
4614 _LT_TAGVAR(module_expsym_cmds, $1)=
4615 _LT_TAGVAR(old_archive_from_new_cmds, $1)=
4616 _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
4617 _LT_TAGVAR(thread_safe_flag_spec, $1)=
4618 _LT_TAGVAR(whole_archive_flag_spec, $1)=
4619 # include_expsyms should be a list of space-separated symbols to be *always*
4620 # included in the symbol list
4621 _LT_TAGVAR(include_expsyms, $1)=
4622 # exclude_expsyms can be an extended regexp of symbols to exclude
4623 # it will be wrapped by ` (' and `)$', so one must not match beginning or
4624 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4625 # as well as any symbol that contains `d'.
4626 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4627 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4628 # platforms (ab)use it in PIC code, but their linkers get confused if
4629 # the symbol is explicitly referenced. Since portable code cannot
4630 # rely on this symbol name, it's probably fine to never include it in
4631 # preloaded symbol tables.
4632 # Exclude shared library initialization/finalization symbols.
4633 dnl Note also adjust exclude_expsyms for C++ above.
4634 extract_expsyms_cmds=
4635
4636 case $host_os in
4637 cygwin* | mingw* | pw32* | cegcc*)
4638 # FIXME: the MSVC++ port hasn't been tested in a loooong time
4639 # When not using gcc, we currently assume that we are using
4640 # Microsoft Visual C++.
4641 if test "$GCC" != yes; then
4642 with_gnu_ld=no
4643 fi
4644 ;;
4645 interix*)
4646 # we just hope/assume this is gcc and not c89 (= MSVC++)
4647 with_gnu_ld=yes
4648 ;;
4649 openbsd*)
4650 with_gnu_ld=no
4651 ;;
4652 esac
4653
4654 _LT_TAGVAR(ld_shlibs, $1)=yes
4655
4656 # On some targets, GNU ld is compatible enough with the native linker
4657 # that we're better off using the native interface for both.
4658 lt_use_gnu_ld_interface=no
4659 if test "$with_gnu_ld" = yes; then
4660 case $host_os in
4661 aix*)
4662 # The AIX port of GNU ld has always aspired to compatibility
4663 # with the native linker. However, as the warning in the GNU ld
4664 # block says, versions before 2.19.5* couldn't really create working
4665 # shared libraries, regardless of the interface used.
4666 case `$LD -v 2>&1` in
4667 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
4668 *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
4669 *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
4670 *)
4671 lt_use_gnu_ld_interface=yes
4672 ;;
4673 esac
4674 ;;
4675 *)
4676 lt_use_gnu_ld_interface=yes
4677 ;;
4678 esac
4679 fi
4680
4681 if test "$lt_use_gnu_ld_interface" = yes; then
4682 # If archive_cmds runs LD, not CC, wlarc should be empty
4683 wlarc='${wl}'
4684
4685 # Set some defaults for GNU ld with shared library support. These
4686 # are reset later if shared libraries are not supported. Putting them
4687 # here allows them to be overridden if necessary.
4688 runpath_var=LD_RUN_PATH
4689 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4690 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4691 # ancient GNU ld didn't support --whole-archive et. al.
4692 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
4693 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4694 else
4695 _LT_TAGVAR(whole_archive_flag_spec, $1)=
4696 fi
4697 supports_anon_versioning=no
4698 case `$LD -v 2>&1` in
4699 *GNU\ gold*) supports_anon_versioning=yes ;;
4700 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
4701 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
4702 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
4703 *\ 2.11.*) ;; # other 2.11 versions
4704 *) supports_anon_versioning=yes ;;
4705 esac
4706
4707 # See if GNU ld supports shared libraries.
4708 case $host_os in
4709 aix[[3-9]]*)
4710 # On AIX/PPC, the GNU linker is very broken
4711 if test "$host_cpu" != ia64; then
4712 _LT_TAGVAR(ld_shlibs, $1)=no
4713 cat <<_LT_EOF 1>&2
4714
4715 *** Warning: the GNU linker, at least up to release 2.19, is reported
4716 *** to be unable to reliably create shared libraries on AIX.
4717 *** Therefore, libtool is disabling shared libraries support. If you
4718 *** really care for shared libraries, you may want to install binutils
4719 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
4720 *** You will then need to restart the configuration process.
4721
4722 _LT_EOF
4723 fi
4724 ;;
4725
4726 amigaos*)
4727 case $host_cpu in
4728 powerpc)
4729 # see comment about AmigaOS4 .so support
4730 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4731 _LT_TAGVAR(archive_expsym_cmds, $1)=''
4732 ;;
4733 m68k)
4734 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
4735 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4736 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4737 ;;
4738 esac
4739 ;;
4740
4741 beos*)
4742 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4743 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4744 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4745 # support --undefined. This deserves some investigation. FIXME
4746 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4747 else
4748 _LT_TAGVAR(ld_shlibs, $1)=no
4749 fi
4750 ;;
4751
4752 cygwin* | mingw* | pw32* | cegcc*)
4753 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
4754 # as there is no search path for DLLs.
4755 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4756 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
4757 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4758 _LT_TAGVAR(always_export_symbols, $1)=no
4759 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4760 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
4761 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
4762
4763 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
4764 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
4765 # If the export-symbols file already is a .def file (1st line
4766 # is EXPORTS), use it as is; otherwise, prepend...
4767 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
4768 cp $export_symbols $output_objdir/$soname.def;
4769 else
4770 echo EXPORTS > $output_objdir/$soname.def;
4771 cat $export_symbols >> $output_objdir/$soname.def;
4772 fi~
4773 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
4774 else
4775 _LT_TAGVAR(ld_shlibs, $1)=no
4776 fi
4777 ;;
4778
4779 haiku*)
4780 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4781 _LT_TAGVAR(link_all_deplibs, $1)=yes
4782 ;;
4783
4784 interix[[3-9]]*)
4785 _LT_TAGVAR(hardcode_direct, $1)=no
4786 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4787 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4788 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4789 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
4790 # Instead, shared libraries are loaded at an image base (0x10000000 by
4791 # default) and relocated if they conflict, which is a slow very memory
4792 # consuming and fragmenting process. To avoid this, we pick a random,
4793 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
4794 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
4795 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
4796 _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
4797 ;;
4798
4799 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
4800 tmp_diet=no
4801 if test "$host_os" = linux-dietlibc; then
4802 case $cc_basename in
4803 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
4804 esac
4805 fi
4806 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
4807 && test "$tmp_diet" = no
4808 then
4809 tmp_addflag=' $pic_flag'
4810 tmp_sharedflag='-shared'
4811 case $cc_basename,$host_cpu in
4812 pgcc*) # Portland Group C compiler
4813 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
4814 tmp_addflag=' $pic_flag'
4815 ;;
4816 pgf77* | pgf90* | pgf95* | pgfortran*)
4817 # Portland Group f77 and f90 compilers
4818 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
4819 tmp_addflag=' $pic_flag -Mnomain' ;;
4820 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
4821 tmp_addflag=' -i_dynamic' ;;
4822 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
4823 tmp_addflag=' -i_dynamic -nofor_main' ;;
4824 ifc* | ifort*) # Intel Fortran compiler
4825 tmp_addflag=' -nofor_main' ;;
4826 lf95*) # Lahey Fortran 8.1
4827 _LT_TAGVAR(whole_archive_flag_spec, $1)=
4828 tmp_sharedflag='--shared' ;;
4829 xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
4830 tmp_sharedflag='-qmkshrobj'
4831 tmp_addflag= ;;
4832 nvcc*) # Cuda Compiler Driver 2.2
4833 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
4834 _LT_TAGVAR(compiler_needs_object, $1)=yes
4835 ;;
4836 esac
4837 case `$CC -V 2>&1 | sed 5q` in
4838 *Sun\ C*) # Sun C 5.9
4839 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
4840 _LT_TAGVAR(compiler_needs_object, $1)=yes
4841 tmp_sharedflag='-G' ;;
4842 *Sun\ F*) # Sun Fortran 8.3
4843 tmp_sharedflag='-G' ;;
4844 esac
4845 _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4846
4847 if test "x$supports_anon_versioning" = xyes; then
4848 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
4849 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4850 echo "local: *; };" >> $output_objdir/$libname.ver~
4851 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
4852 fi
4853
4854 case $cc_basename in
4855 xlf* | bgf* | bgxlf* | mpixlf*)
4856 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
4857 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
4858 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4859 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
4860 if test "x$supports_anon_versioning" = xyes; then
4861 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
4862 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4863 echo "local: *; };" >> $output_objdir/$libname.ver~
4864 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
4865 fi
4866 ;;
4867 esac
4868 else
4869 _LT_TAGVAR(ld_shlibs, $1)=no
4870 fi
4871 ;;
4872
4873 netbsd*)
4874 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
4875 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4876 wlarc=
4877 else
4878 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4879 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4880 fi
4881 ;;
4882
4883 solaris*)
4884 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
4885 _LT_TAGVAR(ld_shlibs, $1)=no
4886 cat <<_LT_EOF 1>&2
4887
4888 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
4889 *** create shared libraries on Solaris systems. Therefore, libtool
4890 *** is disabling shared libraries support. We urge you to upgrade GNU
4891 *** binutils to release 2.9.1 or newer. Another option is to modify
4892 *** your PATH or compiler configuration so that the native linker is
4893 *** used, and then restart.
4894
4895 _LT_EOF
4896 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4897 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4898 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4899 else
4900 _LT_TAGVAR(ld_shlibs, $1)=no
4901 fi
4902 ;;
4903
4904 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
4905 case `$LD -v 2>&1` in
4906 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
4907 _LT_TAGVAR(ld_shlibs, $1)=no
4908 cat <<_LT_EOF 1>&2
4909
4910 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
4911 *** reliably create shared libraries on SCO systems. Therefore, libtool
4912 *** is disabling shared libraries support. We urge you to upgrade GNU
4913 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
4914 *** your PATH or compiler configuration so that the native linker is
4915 *** used, and then restart.
4916
4917 _LT_EOF
4918 ;;
4919 *)
4920 # For security reasons, it is highly recommended that you always
4921 # use absolute paths for naming shared libraries, and exclude the
4922 # DT_RUNPATH tag from executables and libraries. But doing so
4923 # requires that you compile everything twice, which is a pain.
4924 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4925 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4926 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4927 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4928 else
4929 _LT_TAGVAR(ld_shlibs, $1)=no
4930 fi
4931 ;;
4932 esac
4933 ;;
4934
4935 sunos4*)
4936 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4937 wlarc=
4938 _LT_TAGVAR(hardcode_direct, $1)=yes
4939 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4940 ;;
4941
4942 *)
4943 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4944 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4945 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4946 else
4947 _LT_TAGVAR(ld_shlibs, $1)=no
4948 fi
4949 ;;
4950 esac
4951
4952 if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
4953 runpath_var=
4954 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4955 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
4956 _LT_TAGVAR(whole_archive_flag_spec, $1)=
4957 fi
4958 else
4959 # PORTME fill in a description of your system's linker (not GNU ld)
4960 case $host_os in
4961 aix3*)
4962 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4963 _LT_TAGVAR(always_export_symbols, $1)=yes
4964 _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
4965 # Note: this linker hardcodes the directories in LIBPATH if there
4966 # are no directories specified by -L.
4967 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4968 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
4969 # Neither direct hardcoding nor static linking is supported with a
4970 # broken collect2.
4971 _LT_TAGVAR(hardcode_direct, $1)=unsupported
4972 fi
4973 ;;
4974
4975 aix[[4-9]]*)
4976 if test "$host_cpu" = ia64; then
4977 # On IA64, the linker does run time linking by default, so we don't
4978 # have to do anything special.
4979 aix_use_runtimelinking=no
4980 exp_sym_flag='-Bexport'
4981 no_entry_flag=""
4982 else
4983 # If we're using GNU nm, then we don't want the "-C" option.
4984 # -C means demangle to AIX nm, but means don't demangle with GNU nm
4985 # Also, AIX nm treats weak defined symbols like other global
4986 # defined symbols, whereas GNU nm marks them as "W".
4987 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4988 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4989 else
4990 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4991 fi
4992 aix_use_runtimelinking=no
4993
4994 # Test if we are trying to use run time linking or normal
4995 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
4996 # need to do runtime linking.
4997 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
4998 for ld_flag in $LDFLAGS; do
4999 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5000 aix_use_runtimelinking=yes
5001 break
5002 fi
5003 done
5004 ;;
5005 esac
5006
5007 exp_sym_flag='-bexport'
5008 no_entry_flag='-bnoentry'
5009 fi
5010
5011 # When large executables or shared objects are built, AIX ld can
5012 # have problems creating the table of contents. If linking a library
5013 # or program results in "error TOC overflow" add -mminimal-toc to
5014 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5015 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5016
5017 _LT_TAGVAR(archive_cmds, $1)=''
5018 _LT_TAGVAR(hardcode_direct, $1)=yes
5019 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5020 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5021 _LT_TAGVAR(link_all_deplibs, $1)=yes
5022 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
5023
5024 if test "$GCC" = yes; then
5025 case $host_os in aix4.[[012]]|aix4.[[012]].*)
5026 # We only want to do this on AIX 4.2 and lower, the check
5027 # below for broken collect2 doesn't work under 4.3+
5028 collect2name=`${CC} -print-prog-name=collect2`
5029 if test -f "$collect2name" &&
5030 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
5031 then
5032 # We have reworked collect2
5033 :
5034 else
5035 # We have old collect2
5036 _LT_TAGVAR(hardcode_direct, $1)=unsupported
5037 # It fails to find uninstalled libraries when the uninstalled
5038 # path is not listed in the libpath. Setting hardcode_minus_L
5039 # to unsupported forces relinking
5040 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5041 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5042 _LT_TAGVAR(hardcode_libdir_separator, $1)=
5043 fi
5044 ;;
5045 esac
5046 shared_flag='-shared'
5047 if test "$aix_use_runtimelinking" = yes; then
5048 shared_flag="$shared_flag "'${wl}-G'
5049 fi
5050 else
5051 # not using gcc
5052 if test "$host_cpu" = ia64; then
5053 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5054 # chokes on -Wl,-G. The following line is correct:
5055 shared_flag='-G'
5056 else
5057 if test "$aix_use_runtimelinking" = yes; then
5058 shared_flag='${wl}-G'
5059 else
5060 shared_flag='${wl}-bM:SRE'
5061 fi
5062 fi
5063 fi
5064
5065 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
5066 # It seems that -bexpall does not export symbols beginning with
5067 # underscore (_), so it is better to generate a list of symbols to export.
5068 _LT_TAGVAR(always_export_symbols, $1)=yes
5069 if test "$aix_use_runtimelinking" = yes; then
5070 # Warning - without using the other runtime loading flags (-brtl),
5071 # -berok will link without error, but may produce a broken library.
5072 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
5073 # Determine the default libpath from the value encoded in an
5074 # empty executable.
5075 _LT_SYS_MODULE_PATH_AIX([$1])
5076 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5077 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5078 else
5079 if test "$host_cpu" = ia64; then
5080 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5081 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5082 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
5083 else
5084 # Determine the default libpath from the value encoded in an
5085 # empty executable.
5086 _LT_SYS_MODULE_PATH_AIX([$1])
5087 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5088 # Warning - without using the other run time loading flags,
5089 # -berok will link without error, but may produce a broken library.
5090 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5091 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5092 if test "$with_gnu_ld" = yes; then
5093 # We only use this code for GNU lds that support --whole-archive.
5094 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
5095 else
5096 # Exported symbols can be pulled into shared objects from archives
5097 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5098 fi
5099 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5100 # This is similar to how AIX traditionally builds its shared libraries.
5101 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
5102 fi
5103 fi
5104 ;;
5105
5106 amigaos*)
5107 case $host_cpu in
5108 powerpc)
5109 # see comment about AmigaOS4 .so support
5110 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5111 _LT_TAGVAR(archive_expsym_cmds, $1)=''
5112 ;;
5113 m68k)
5114 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5115 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5116 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5117 ;;
5118 esac
5119 ;;
5120
5121 bsdi[[45]]*)
5122 _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
5123 ;;
5124
5125 cygwin* | mingw* | pw32* | cegcc*)
5126 # When not using gcc, we currently assume that we are using
5127 # Microsoft Visual C++.
5128 # hardcode_libdir_flag_spec is actually meaningless, as there is
5129 # no search path for DLLs.
5130 case $cc_basename in
5131 cl*)
5132 # Native MSVC
5133 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5134 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5135 _LT_TAGVAR(always_export_symbols, $1)=yes
5136 _LT_TAGVAR(file_list_spec, $1)='@'
5137 # Tell ltmain to make .lib files, not .a files.
5138 libext=lib
5139 # Tell ltmain to make .dll files, not .so files.
5140 shrext_cmds=".dll"
5141 # FIXME: Setting linknames here is a bad hack.
5142 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
5143 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5144 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
5145 else
5146 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
5147 fi~
5148 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
5149 linknames='
5150 # The linker will not automatically build a static lib if we build a DLL.
5151 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5152 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5153 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
5154 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
5155 # Don't use ranlib
5156 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
5157 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
5158 lt_tool_outputfile="@TOOL_OUTPUT@"~
5159 case $lt_outputfile in
5160 *.exe|*.EXE) ;;
5161 *)
5162 lt_outputfile="$lt_outputfile.exe"
5163 lt_tool_outputfile="$lt_tool_outputfile.exe"
5164 ;;
5165 esac~
5166 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
5167 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
5168 $RM "$lt_outputfile.manifest";
5169 fi'
5170 ;;
5171 *)
5172 # Assume MSVC wrapper
5173 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5174 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5175 # Tell ltmain to make .lib files, not .a files.
5176 libext=lib
5177 # Tell ltmain to make .dll files, not .so files.
5178 shrext_cmds=".dll"
5179 # FIXME: Setting linknames here is a bad hack.
5180 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
5181 # The linker will automatically build a .lib file if we build a DLL.
5182 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5183 # FIXME: Should let the user specify the lib program.
5184 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5185 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5186 ;;
5187 esac
5188 ;;
5189
5190 darwin* | rhapsody*)
5191 _LT_DARWIN_LINKER_FEATURES($1)
5192 ;;
5193
5194 dgux*)
5195 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5196 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5197 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5198 ;;
5199
5200 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5201 # support. Future versions do this automatically, but an explicit c++rt0.o
5202 # does not break anything, and helps significantly (at the cost of a little
5203 # extra space).
5204 freebsd2.2*)
5205 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5206 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5207 _LT_TAGVAR(hardcode_direct, $1)=yes
5208 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5209 ;;
5210
5211 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5212 freebsd2.*)
5213 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5214 _LT_TAGVAR(hardcode_direct, $1)=yes
5215 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5216 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5217 ;;
5218
5219 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5220 freebsd* | dragonfly*)
5221 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5222 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5223 _LT_TAGVAR(hardcode_direct, $1)=yes
5224 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5225 ;;
5226
5227 hpux9*)
5228 if test "$GCC" = yes; then
5229 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5230 else
5231 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5232 fi
5233 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5234 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5235 _LT_TAGVAR(hardcode_direct, $1)=yes
5236
5237 # hardcode_minus_L: Not really in the search PATH,
5238 # but as the default location of the library.
5239 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5240 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5241 ;;
5242
5243 hpux10*)
5244 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
5245 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5246 else
5247 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
5248 fi
5249 if test "$with_gnu_ld" = no; then
5250 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5251 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5252 _LT_TAGVAR(hardcode_direct, $1)=yes
5253 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5254 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5255 # hardcode_minus_L: Not really in the search PATH,
5256 # but as the default location of the library.
5257 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5258 fi
5259 ;;
5260
5261 hpux11*)
5262 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
5263 case $host_cpu in
5264 hppa*64*)
5265 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5266 ;;
5267 ia64*)
5268 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5269 ;;
5270 *)
5271 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5272 ;;
5273 esac
5274 else
5275 case $host_cpu in
5276 hppa*64*)
5277 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5278 ;;
5279 ia64*)
5280 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5281 ;;
5282 *)
5283 m4_if($1, [], [
5284 # Older versions of the 11.00 compiler do not understand -b yet
5285 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
5286 _LT_LINKER_OPTION([if $CC understands -b],
5287 _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
5288 [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
5289 [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
5290 [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
5291 ;;
5292 esac
5293 fi
5294 if test "$with_gnu_ld" = no; then
5295 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5296 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5297
5298 case $host_cpu in
5299 hppa*64*|ia64*)
5300 _LT_TAGVAR(hardcode_direct, $1)=no
5301 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5302 ;;
5303 *)
5304 _LT_TAGVAR(hardcode_direct, $1)=yes
5305 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5306 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5307
5308 # hardcode_minus_L: Not really in the search PATH,
5309 # but as the default location of the library.
5310 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5311 ;;
5312 esac
5313 fi
5314 ;;
5315
5316 irix5* | irix6* | nonstopux*)
5317 if test "$GCC" = yes; then
5318 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5319 # Try to use the -exported_symbol ld option, if it does not
5320 # work, assume that -exports_file does not work either and
5321 # implicitly export all symbols.
5322 # This should be the same for all languages, so no per-tag cache variable.
5323 AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
5324 [lt_cv_irix_exported_symbol],
5325 [save_LDFLAGS="$LDFLAGS"
5326 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5327 AC_LINK_IFELSE(
5328 [AC_LANG_SOURCE(
5329 [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
5330 [C++], [[int foo (void) { return 0; }]],
5331 [Fortran 77], [[
5332 subroutine foo
5333 end]],
5334 [Fortran], [[
5335 subroutine foo
5336 end]])])],
5337 [lt_cv_irix_exported_symbol=yes],
5338 [lt_cv_irix_exported_symbol=no])
5339 LDFLAGS="$save_LDFLAGS"])
5340 if test "$lt_cv_irix_exported_symbol" = yes; then
5341 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
5342 fi
5343 else
5344 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
5345 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
5346 fi
5347 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5348 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5349 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5350 _LT_TAGVAR(inherit_rpath, $1)=yes
5351 _LT_TAGVAR(link_all_deplibs, $1)=yes
5352 ;;
5353
5354 netbsd*)
5355 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5356 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5357 else
5358 _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5359 fi
5360 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5361 _LT_TAGVAR(hardcode_direct, $1)=yes
5362 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5363 ;;
5364
5365 newsos6)
5366 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5367 _LT_TAGVAR(hardcode_direct, $1)=yes
5368 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5369 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5370 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5371 ;;
5372
5373 *nto* | *qnx*)
5374 ;;
5375
5376 openbsd*)
5377 if test -f /usr/libexec/ld.so; then
5378 _LT_TAGVAR(hardcode_direct, $1)=yes
5379 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5380 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5381 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5382 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5383 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
5384 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5385 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5386 else
5387 case $host_os in
5388 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
5389 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5390 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5391 ;;
5392 *)
5393 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5394 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5395 ;;
5396 esac
5397 fi
5398 else
5399 _LT_TAGVAR(ld_shlibs, $1)=no
5400 fi
5401 ;;
5402
5403 os2*)
5404 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5405 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5406 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5407 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
5408 _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5409 ;;
5410
5411 osf3*)
5412 if test "$GCC" = yes; then
5413 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5414 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5415 else
5416 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5417 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
5418 fi
5419 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5420 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5421 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5422 ;;
5423
5424 osf4* | osf5*) # as osf3* with the addition of -msym flag
5425 if test "$GCC" = yes; then
5426 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5427 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5428 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5429 else
5430 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5431 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
5432 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
5433 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
5434
5435 # Both c and cxx compiler support -rpath directly
5436 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5437 fi
5438 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5439 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5440 ;;
5441
5442 solaris*)
5443 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
5444 if test "$GCC" = yes; then
5445 wlarc='${wl}'
5446 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5447 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5448 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
5449 else
5450 case `$CC -V 2>&1` in
5451 *"Compilers 5.0"*)
5452 wlarc=''
5453 _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5454 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5455 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
5456 ;;
5457 *)
5458 wlarc='${wl}'
5459 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
5460 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5461 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
5462 ;;
5463 esac
5464 fi
5465 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5466 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5467 case $host_os in
5468 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
5469 *)
5470 # The compiler driver will combine and reorder linker options,
5471 # but understands `-z linker_flag'. GCC discards it without `$wl',
5472 # but is careful enough not to reorder.
5473 # Supported since Solaris 2.6 (maybe 2.5.1?)
5474 if test "$GCC" = yes; then
5475 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
5476 else
5477 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
5478 fi
5479 ;;
5480 esac
5481 _LT_TAGVAR(link_all_deplibs, $1)=yes
5482 ;;
5483
5484 sunos4*)
5485 if test "x$host_vendor" = xsequent; then
5486 # Use $CC to link under sequent, because it throws in some extra .o
5487 # files that make .init and .fini sections work.
5488 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5489 else
5490 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5491 fi
5492 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5493 _LT_TAGVAR(hardcode_direct, $1)=yes
5494 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5495 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5496 ;;
5497
5498 sysv4)
5499 case $host_vendor in
5500 sni)
5501 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5502 _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
5503 ;;
5504 siemens)
5505 ## LD is ld it makes a PLAMLIB
5506 ## CC just makes a GrossModule.
5507 _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5508 _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
5509 _LT_TAGVAR(hardcode_direct, $1)=no
5510 ;;
5511 motorola)
5512 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5513 _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
5514 ;;
5515 esac
5516 runpath_var='LD_RUN_PATH'
5517 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5518 ;;
5519
5520 sysv4.3*)
5521 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5522 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5523 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
5524 ;;
5525
5526 sysv4*MP*)
5527 if test -d /usr/nec; then
5528 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5529 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5530 runpath_var=LD_RUN_PATH
5531 hardcode_runpath_var=yes
5532 _LT_TAGVAR(ld_shlibs, $1)=yes
5533 fi
5534 ;;
5535
5536 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
5537 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5538 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5539 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5540 runpath_var='LD_RUN_PATH'
5541
5542 if test "$GCC" = yes; then
5543 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5544 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5545 else
5546 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5547 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5548 fi
5549 ;;
5550
5551 sysv5* | sco3.2v5* | sco5v6*)
5552 # Note: We can NOT use -z defs as we might desire, because we do not
5553 # link with -lc, and that would cause any symbols used from libc to
5554 # always be unresolved, which means just about no library would
5555 # ever link correctly. If we're not using GNU ld we use -z text
5556 # though, which does catch some bad symbols but isn't as heavy-handed
5557 # as -z defs.
5558 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5559 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
5560 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5561 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5562 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
5563 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5564 _LT_TAGVAR(link_all_deplibs, $1)=yes
5565 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
5566 runpath_var='LD_RUN_PATH'
5567
5568 if test "$GCC" = yes; then
5569 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5570 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5571 else
5572 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5573 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5574 fi
5575 ;;
5576
5577 uts4*)
5578 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5579 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5580 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5581 ;;
5582
5583 *)
5584 _LT_TAGVAR(ld_shlibs, $1)=no
5585 ;;
5586 esac
5587
5588 if test x$host_vendor = xsni; then
5589 case $host in
5590 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5591 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
5592 ;;
5593 esac
5594 fi
5595 fi
5596 ])
5597 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
5598 test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
5599
5600 _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
5601
5602 _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
5603 _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
5604 _LT_DECL([], [extract_expsyms_cmds], [2],
5605 [The commands to extract the exported symbol list from a shared archive])
5606
5607 #
5608 # Do we need to explicitly link libc?
5609 #
5610 case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
5611 x|xyes)
5612 # Assume -lc should be added
5613 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5614
5615 if test "$enable_shared" = yes && test "$GCC" = yes; then
5616 case $_LT_TAGVAR(archive_cmds, $1) in
5617 *'~'*)
5618 # FIXME: we may have to deal with multi-command sequences.
5619 ;;
5620 '$CC '*)
5621 # Test whether the compiler implicitly links with -lc since on some
5622 # systems, -lgcc has to come before -lc. If gcc already passes -lc
5623 # to ld, don't add -lc before -lgcc.
5624 AC_CACHE_CHECK([whether -lc should be explicitly linked in],
5625 [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
5626 [$RM conftest*
5627 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5628
5629 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
5630 soname=conftest
5631 lib=conftest
5632 libobjs=conftest.$ac_objext
5633 deplibs=
5634 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5635 pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
5636 compiler_flags=-v
5637 linker_flags=-v
5638 verstring=
5639 output_objdir=.
5640 libname=conftest
5641 lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5642 _LT_TAGVAR(allow_undefined_flag, $1)=
5643 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
5644 then
5645 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5646 else
5647 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5648 fi
5649 _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5650 else
5651 cat conftest.err 1>&5
5652 fi
5653 $RM conftest*
5654 ])
5655 _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
5656 ;;
5657 esac
5658 fi
5659 ;;
5660 esac
5661
5662 _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
5663 [Whether or not to add -lc for building shared libraries])
5664 _LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
5665 [enable_shared_with_static_runtimes], [0],
5666 [Whether or not to disallow shared libs when runtime libs are static])
5667 _LT_TAGDECL([], [export_dynamic_flag_spec], [1],
5668 [Compiler flag to allow reflexive dlopens])
5669 _LT_TAGDECL([], [whole_archive_flag_spec], [1],
5670 [Compiler flag to generate shared objects directly from archives])
5671 _LT_TAGDECL([], [compiler_needs_object], [1],
5672 [Whether the compiler copes with passing no objects directly])
5673 _LT_TAGDECL([], [old_archive_from_new_cmds], [2],
5674 [Create an old-style archive from a shared archive])
5675 _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
5676 [Create a temporary old-style archive to link instead of a shared archive])
5677 _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
5678 _LT_TAGDECL([], [archive_expsym_cmds], [2])
5679 _LT_TAGDECL([], [module_cmds], [2],
5680 [Commands used to build a loadable module if different from building
5681 a shared archive.])
5682 _LT_TAGDECL([], [module_expsym_cmds], [2])
5683 _LT_TAGDECL([], [with_gnu_ld], [1],
5684 [Whether we are building with GNU ld or not])
5685 _LT_TAGDECL([], [allow_undefined_flag], [1],
5686 [Flag that allows shared libraries with undefined symbols to be built])
5687 _LT_TAGDECL([], [no_undefined_flag], [1],
5688 [Flag that enforces no undefined symbols])
5689 _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
5690 [Flag to hardcode $libdir into a binary during linking.
5691 This must work even if $libdir does not exist])
5692 _LT_TAGDECL([], [hardcode_libdir_separator], [1],
5693 [Whether we need a single "-rpath" flag with a separated argument])
5694 _LT_TAGDECL([], [hardcode_direct], [0],
5695 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
5696 DIR into the resulting binary])
5697 _LT_TAGDECL([], [hardcode_direct_absolute], [0],
5698 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
5699 DIR into the resulting binary and the resulting library dependency is
5700 "absolute", i.e impossible to change by setting ${shlibpath_var} if the
5701 library is relocated])
5702 _LT_TAGDECL([], [hardcode_minus_L], [0],
5703 [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
5704 into the resulting binary])
5705 _LT_TAGDECL([], [hardcode_shlibpath_var], [0],
5706 [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
5707 into the resulting binary])
5708 _LT_TAGDECL([], [hardcode_automatic], [0],
5709 [Set to "yes" if building a shared library automatically hardcodes DIR
5710 into the library and all subsequent libraries and executables linked
5711 against it])
5712 _LT_TAGDECL([], [inherit_rpath], [0],
5713 [Set to yes if linker adds runtime paths of dependent libraries
5714 to runtime path list])
5715 _LT_TAGDECL([], [link_all_deplibs], [0],
5716 [Whether libtool must link a program against all its dependency libraries])
5717 _LT_TAGDECL([], [always_export_symbols], [0],
5718 [Set to "yes" if exported symbols are required])
5719 _LT_TAGDECL([], [export_symbols_cmds], [2],
5720 [The commands to list exported symbols])
5721 _LT_TAGDECL([], [exclude_expsyms], [1],
5722 [Symbols that should not be listed in the preloaded symbols])
5723 _LT_TAGDECL([], [include_expsyms], [1],
5724 [Symbols that must always be exported])
5725 _LT_TAGDECL([], [prelink_cmds], [2],
5726 [Commands necessary for linking programs (against libraries) with templates])
5727 _LT_TAGDECL([], [postlink_cmds], [2],
5728 [Commands necessary for finishing linking programs])
5729 _LT_TAGDECL([], [file_list_spec], [1],
5730 [Specify filename containing input files])
5731 dnl FIXME: Not yet implemented
5732 dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
5733 dnl [Compiler flag to generate thread safe objects])
5734 ])# _LT_LINKER_SHLIBS
5735
5736
5737 # _LT_LANG_C_CONFIG([TAG])
5738 # ------------------------
5739 # Ensure that the configuration variables for a C compiler are suitably
5740 # defined. These variables are subsequently used by _LT_CONFIG to write
5741 # the compiler configuration to `libtool'.
5742 m4_defun([_LT_LANG_C_CONFIG],
5743 [m4_require([_LT_DECL_EGREP])dnl
5744 lt_save_CC="$CC"
5745 AC_LANG_PUSH(C)
5746
5747 # Source file extension for C test sources.
5748 ac_ext=c
5749
5750 # Object file extension for compiled C test sources.
5751 objext=o
5752 _LT_TAGVAR(objext, $1)=$objext
5753
5754 # Code to be used in simple compile tests
5755 lt_simple_compile_test_code="int some_variable = 0;"
5756
5757 # Code to be used in simple link tests
5758 lt_simple_link_test_code='int main(){return(0);}'
5759
5760 _LT_TAG_COMPILER
5761 # Save the default compiler, since it gets overwritten when the other
5762 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
5763 compiler_DEFAULT=$CC
5764
5765 # save warnings/boilerplate of simple test code
5766 _LT_COMPILER_BOILERPLATE
5767 _LT_LINKER_BOILERPLATE
5768
5769 ## CAVEAT EMPTOR:
5770 ## There is no encapsulation within the following macros, do not change
5771 ## the running order or otherwise move them around unless you know exactly
5772 ## what you are doing...
5773 if test -n "$compiler"; then
5774 _LT_COMPILER_NO_RTTI($1)
5775 _LT_COMPILER_PIC($1)
5776 _LT_COMPILER_C_O($1)
5777 _LT_COMPILER_FILE_LOCKS($1)
5778 _LT_LINKER_SHLIBS($1)
5779 _LT_SYS_DYNAMIC_LINKER($1)
5780 _LT_LINKER_HARDCODE_LIBPATH($1)
5781 LT_SYS_DLOPEN_SELF
5782 _LT_CMD_STRIPLIB
5783
5784 # Report which library types will actually be built
5785 AC_MSG_CHECKING([if libtool supports shared libraries])
5786 AC_MSG_RESULT([$can_build_shared])
5787
5788 AC_MSG_CHECKING([whether to build shared libraries])
5789 test "$can_build_shared" = "no" && enable_shared=no
5790
5791 # On AIX, shared libraries and static libraries use the same namespace, and
5792 # are all built from PIC.
5793 case $host_os in
5794 aix3*)
5795 test "$enable_shared" = yes && enable_static=no
5796 if test -n "$RANLIB"; then
5797 archive_cmds="$archive_cmds~\$RANLIB \$lib"
5798 postinstall_cmds='$RANLIB $lib'
5799 fi
5800 ;;
5801
5802 aix[[4-9]]*)
5803 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5804 test "$enable_shared" = yes && enable_static=no
5805 fi
5806 ;;
5807 esac
5808 AC_MSG_RESULT([$enable_shared])
5809
5810 AC_MSG_CHECKING([whether to build static libraries])
5811 # Make sure either enable_shared or enable_static is yes.
5812 test "$enable_shared" = yes || enable_static=yes
5813 AC_MSG_RESULT([$enable_static])
5814
5815 _LT_CONFIG($1)
5816 fi
5817 AC_LANG_POP
5818 CC="$lt_save_CC"
5819 ])# _LT_LANG_C_CONFIG
5820
5821
5822 # _LT_LANG_CXX_CONFIG([TAG])
5823 # --------------------------
5824 # Ensure that the configuration variables for a C++ compiler are suitably
5825 # defined. These variables are subsequently used by _LT_CONFIG to write
5826 # the compiler configuration to `libtool'.
5827 m4_defun([_LT_LANG_CXX_CONFIG],
5828 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5829 m4_require([_LT_DECL_EGREP])dnl
5830 m4_require([_LT_PATH_MANIFEST_TOOL])dnl
5831 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5832 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5833 (test "X$CXX" != "Xg++"))) ; then
5834 AC_PROG_CXXCPP
5835 else
5836 _lt_caught_CXX_error=yes
5837 fi
5838
5839 AC_LANG_PUSH(C++)
5840 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5841 _LT_TAGVAR(allow_undefined_flag, $1)=
5842 _LT_TAGVAR(always_export_symbols, $1)=no
5843 _LT_TAGVAR(archive_expsym_cmds, $1)=
5844 _LT_TAGVAR(compiler_needs_object, $1)=no
5845 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
5846 _LT_TAGVAR(hardcode_direct, $1)=no
5847 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
5848 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5849 _LT_TAGVAR(hardcode_libdir_separator, $1)=
5850 _LT_TAGVAR(hardcode_minus_L, $1)=no
5851 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5852 _LT_TAGVAR(hardcode_automatic, $1)=no
5853 _LT_TAGVAR(inherit_rpath, $1)=no
5854 _LT_TAGVAR(module_cmds, $1)=
5855 _LT_TAGVAR(module_expsym_cmds, $1)=
5856 _LT_TAGVAR(link_all_deplibs, $1)=unknown
5857 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
5858 _LT_TAGVAR(reload_flag, $1)=$reload_flag
5859 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
5860 _LT_TAGVAR(no_undefined_flag, $1)=
5861 _LT_TAGVAR(whole_archive_flag_spec, $1)=
5862 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5863
5864 # Source file extension for C++ test sources.
5865 ac_ext=cpp
5866
5867 # Object file extension for compiled C++ test sources.
5868 objext=o
5869 _LT_TAGVAR(objext, $1)=$objext
5870
5871 # No sense in running all these tests if we already determined that
5872 # the CXX compiler isn't working. Some variables (like enable_shared)
5873 # are currently assumed to apply to all compilers on this platform,
5874 # and will be corrupted by setting them based on a non-working compiler.
5875 if test "$_lt_caught_CXX_error" != yes; then
5876 # Code to be used in simple compile tests
5877 lt_simple_compile_test_code="int some_variable = 0;"
5878
5879 # Code to be used in simple link tests
5880 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
5881
5882 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
5883 _LT_TAG_COMPILER
5884
5885 # save warnings/boilerplate of simple test code
5886 _LT_COMPILER_BOILERPLATE
5887 _LT_LINKER_BOILERPLATE
5888
5889 # Allow CC to be a program name with arguments.
5890 lt_save_CC=$CC
5891 lt_save_CFLAGS=$CFLAGS
5892 lt_save_LD=$LD
5893 lt_save_GCC=$GCC
5894 GCC=$GXX
5895 lt_save_with_gnu_ld=$with_gnu_ld
5896 lt_save_path_LD=$lt_cv_path_LD
5897 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
5898 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
5899 else
5900 $as_unset lt_cv_prog_gnu_ld
5901 fi
5902 if test -n "${lt_cv_path_LDCXX+set}"; then
5903 lt_cv_path_LD=$lt_cv_path_LDCXX
5904 else
5905 $as_unset lt_cv_path_LD
5906 fi
5907 test -z "${LDCXX+set}" || LD=$LDCXX
5908 CC=${CXX-"c++"}
5909 CFLAGS=$CXXFLAGS
5910 compiler=$CC
5911 _LT_TAGVAR(compiler, $1)=$CC
5912 _LT_CC_BASENAME([$compiler])
5913
5914 if test -n "$compiler"; then
5915 # We don't want -fno-exception when compiling C++ code, so set the
5916 # no_builtin_flag separately
5917 if test "$GXX" = yes; then
5918 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
5919 else
5920 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
5921 fi
5922
5923 if test "$GXX" = yes; then
5924 # Set up default GNU C++ configuration
5925
5926 LT_PATH_LD
5927
5928 # Check if GNU C++ uses GNU ld as the underlying linker, since the
5929 # archiving commands below assume that GNU ld is being used.
5930 if test "$with_gnu_ld" = yes; then
5931 _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5932 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5933
5934 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5935 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5936
5937 # If archive_cmds runs LD, not CC, wlarc should be empty
5938 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
5939 # investigate it a little bit more. (MM)
5940 wlarc='${wl}'
5941
5942 # ancient GNU ld didn't support --whole-archive et. al.
5943 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
5944 $GREP 'no-whole-archive' > /dev/null; then
5945 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5946 else
5947 _LT_TAGVAR(whole_archive_flag_spec, $1)=
5948 fi
5949 else
5950 with_gnu_ld=no
5951 wlarc=
5952
5953 # A generic and very simple default shared library creation
5954 # command for GNU C++ for the case where it uses the native
5955 # linker, instead of GNU ld. If possible, this setting should
5956 # overridden to take advantage of the native linker features on
5957 # the platform it is being used on.
5958 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
5959 fi
5960
5961 # Commands to make compiler produce verbose output that lists
5962 # what "hidden" libraries, object files and flags are used when
5963 # linking a shared library.
5964 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
5965
5966 else
5967 GXX=no
5968 with_gnu_ld=no
5969 wlarc=
5970 fi
5971
5972 # PORTME: fill in a description of your system's C++ link characteristics
5973 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5974 _LT_TAGVAR(ld_shlibs, $1)=yes
5975 case $host_os in
5976 aix3*)
5977 # FIXME: insert proper C++ library support
5978 _LT_TAGVAR(ld_shlibs, $1)=no
5979 ;;
5980 aix[[4-9]]*)
5981 if test "$host_cpu" = ia64; then
5982 # On IA64, the linker does run time linking by default, so we don't
5983 # have to do anything special.
5984 aix_use_runtimelinking=no
5985 exp_sym_flag='-Bexport'
5986 no_entry_flag=""
5987 else
5988 aix_use_runtimelinking=no
5989
5990 # Test if we are trying to use run time linking or normal
5991 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5992 # need to do runtime linking.
5993 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5994 for ld_flag in $LDFLAGS; do
5995 case $ld_flag in
5996 *-brtl*)
5997 aix_use_runtimelinking=yes
5998 break
5999 ;;
6000 esac
6001 done
6002 ;;
6003 esac
6004
6005 exp_sym_flag='-bexport'
6006 no_entry_flag='-bnoentry'
6007 fi
6008
6009 # When large executables or shared objects are built, AIX ld can
6010 # have problems creating the table of contents. If linking a library
6011 # or program results in "error TOC overflow" add -mminimal-toc to
6012 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6013 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6014
6015 _LT_TAGVAR(archive_cmds, $1)=''
6016 _LT_TAGVAR(hardcode_direct, $1)=yes
6017 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6018 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6019 _LT_TAGVAR(link_all_deplibs, $1)=yes
6020 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
6021
6022 if test "$GXX" = yes; then
6023 case $host_os in aix4.[[012]]|aix4.[[012]].*)
6024 # We only want to do this on AIX 4.2 and lower, the check
6025 # below for broken collect2 doesn't work under 4.3+
6026 collect2name=`${CC} -print-prog-name=collect2`
6027 if test -f "$collect2name" &&
6028 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
6029 then
6030 # We have reworked collect2
6031 :
6032 else
6033 # We have old collect2
6034 _LT_TAGVAR(hardcode_direct, $1)=unsupported
6035 # It fails to find uninstalled libraries when the uninstalled
6036 # path is not listed in the libpath. Setting hardcode_minus_L
6037 # to unsupported forces relinking
6038 _LT_TAGVAR(hardcode_minus_L, $1)=yes
6039 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6040 _LT_TAGVAR(hardcode_libdir_separator, $1)=
6041 fi
6042 esac
6043 shared_flag='-shared'
6044 if test "$aix_use_runtimelinking" = yes; then
6045 shared_flag="$shared_flag "'${wl}-G'
6046 fi
6047 else
6048 # not using gcc
6049 if test "$host_cpu" = ia64; then
6050 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6051 # chokes on -Wl,-G. The following line is correct:
6052 shared_flag='-G'
6053 else
6054 if test "$aix_use_runtimelinking" = yes; then
6055 shared_flag='${wl}-G'
6056 else
6057 shared_flag='${wl}-bM:SRE'
6058 fi
6059 fi
6060 fi
6061
6062 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
6063 # It seems that -bexpall does not export symbols beginning with
6064 # underscore (_), so it is better to generate a list of symbols to
6065 # export.
6066 _LT_TAGVAR(always_export_symbols, $1)=yes
6067 if test "$aix_use_runtimelinking" = yes; then
6068 # Warning - without using the other runtime loading flags (-brtl),
6069 # -berok will link without error, but may produce a broken library.
6070 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
6071 # Determine the default libpath from the value encoded in an empty
6072 # executable.
6073 _LT_SYS_MODULE_PATH_AIX([$1])
6074 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6075
6076 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6077 else
6078 if test "$host_cpu" = ia64; then
6079 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6080 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6081 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
6082 else
6083 # Determine the default libpath from the value encoded in an
6084 # empty executable.
6085 _LT_SYS_MODULE_PATH_AIX([$1])
6086 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6087 # Warning - without using the other run time loading flags,
6088 # -berok will link without error, but may produce a broken library.
6089 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6090 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6091 if test "$with_gnu_ld" = yes; then
6092 # We only use this code for GNU lds that support --whole-archive.
6093 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6094 else
6095 # Exported symbols can be pulled into shared objects from archives
6096 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6097 fi
6098 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6099 # This is similar to how AIX traditionally builds its shared
6100 # libraries.
6101 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
6102 fi
6103 fi
6104 ;;
6105
6106 beos*)
6107 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6108 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6109 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6110 # support --undefined. This deserves some investigation. FIXME
6111 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6112 else
6113 _LT_TAGVAR(ld_shlibs, $1)=no
6114 fi
6115 ;;
6116
6117 chorus*)
6118 case $cc_basename in
6119 *)
6120 # FIXME: insert proper C++ library support
6121 _LT_TAGVAR(ld_shlibs, $1)=no
6122 ;;
6123 esac
6124 ;;
6125
6126 cygwin* | mingw* | pw32* | cegcc*)
6127 case $GXX,$cc_basename in
6128 ,cl* | no,cl*)
6129 # Native MSVC
6130 # hardcode_libdir_flag_spec is actually meaningless, as there is
6131 # no search path for DLLs.
6132 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6133 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6134 _LT_TAGVAR(always_export_symbols, $1)=yes
6135 _LT_TAGVAR(file_list_spec, $1)='@'
6136 # Tell ltmain to make .lib files, not .a files.
6137 libext=lib
6138 # Tell ltmain to make .dll files, not .so files.
6139 shrext_cmds=".dll"
6140 # FIXME: Setting linknames here is a bad hack.
6141 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
6142 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6143 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
6144 else
6145 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
6146 fi~
6147 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
6148 linknames='
6149 # The linker will not automatically build a static lib if we build a DLL.
6150 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
6151 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6152 # Don't use ranlib
6153 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
6154 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
6155 lt_tool_outputfile="@TOOL_OUTPUT@"~
6156 case $lt_outputfile in
6157 *.exe|*.EXE) ;;
6158 *)
6159 lt_outputfile="$lt_outputfile.exe"
6160 lt_tool_outputfile="$lt_tool_outputfile.exe"
6161 ;;
6162 esac~
6163 func_to_tool_file "$lt_outputfile"~
6164 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
6165 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
6166 $RM "$lt_outputfile.manifest";
6167 fi'
6168 ;;
6169 *)
6170 # g++
6171 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6172 # as there is no search path for DLLs.
6173 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6174 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
6175 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6176 _LT_TAGVAR(always_export_symbols, $1)=no
6177 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6178
6179 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6180 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6181 # If the export-symbols file already is a .def file (1st line
6182 # is EXPORTS), use it as is; otherwise, prepend...
6183 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6184 cp $export_symbols $output_objdir/$soname.def;
6185 else
6186 echo EXPORTS > $output_objdir/$soname.def;
6187 cat $export_symbols >> $output_objdir/$soname.def;
6188 fi~
6189 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6190 else
6191 _LT_TAGVAR(ld_shlibs, $1)=no
6192 fi
6193 ;;
6194 esac
6195 ;;
6196 darwin* | rhapsody*)
6197 _LT_DARWIN_LINKER_FEATURES($1)
6198 ;;
6199
6200 dgux*)
6201 case $cc_basename in
6202 ec++*)
6203 # FIXME: insert proper C++ library support
6204 _LT_TAGVAR(ld_shlibs, $1)=no
6205 ;;
6206 ghcx*)
6207 # Green Hills C++ Compiler
6208 # FIXME: insert proper C++ library support
6209 _LT_TAGVAR(ld_shlibs, $1)=no
6210 ;;
6211 *)
6212 # FIXME: insert proper C++ library support
6213 _LT_TAGVAR(ld_shlibs, $1)=no
6214 ;;
6215 esac
6216 ;;
6217
6218 freebsd2.*)
6219 # C++ shared libraries reported to be fairly broken before
6220 # switch to ELF
6221 _LT_TAGVAR(ld_shlibs, $1)=no
6222 ;;
6223
6224 freebsd-elf*)
6225 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6226 ;;
6227
6228 freebsd* | dragonfly*)
6229 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
6230 # conventions
6231 _LT_TAGVAR(ld_shlibs, $1)=yes
6232 ;;
6233
6234 gnu*)
6235 ;;
6236
6237 haiku*)
6238 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6239 _LT_TAGVAR(link_all_deplibs, $1)=yes
6240 ;;
6241
6242 hpux9*)
6243 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6244 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6245 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6246 _LT_TAGVAR(hardcode_direct, $1)=yes
6247 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6248 # but as the default
6249 # location of the library.
6250
6251 case $cc_basename in
6252 CC*)
6253 # FIXME: insert proper C++ library support
6254 _LT_TAGVAR(ld_shlibs, $1)=no
6255 ;;
6256 aCC*)
6257 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6258 # Commands to make compiler produce verbose output that lists
6259 # what "hidden" libraries, object files and flags are used when
6260 # linking a shared library.
6261 #
6262 # There doesn't appear to be a way to prevent this compiler from
6263 # explicitly linking system object files so we need to strip them
6264 # from the output so that they don't get included in the library
6265 # dependencies.
6266 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
6267 ;;
6268 *)
6269 if test "$GXX" = yes; then
6270 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6271 else
6272 # FIXME: insert proper C++ library support
6273 _LT_TAGVAR(ld_shlibs, $1)=no
6274 fi
6275 ;;
6276 esac
6277 ;;
6278
6279 hpux10*|hpux11*)
6280 if test $with_gnu_ld = no; then
6281 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6282 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6283
6284 case $host_cpu in
6285 hppa*64*|ia64*)
6286 ;;
6287 *)
6288 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6289 ;;
6290 esac
6291 fi
6292 case $host_cpu in
6293 hppa*64*|ia64*)
6294 _LT_TAGVAR(hardcode_direct, $1)=no
6295 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6296 ;;
6297 *)
6298 _LT_TAGVAR(hardcode_direct, $1)=yes
6299 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6300 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6301 # but as the default
6302 # location of the library.
6303 ;;
6304 esac
6305
6306 case $cc_basename in
6307 CC*)
6308 # FIXME: insert proper C++ library support
6309 _LT_TAGVAR(ld_shlibs, $1)=no
6310 ;;
6311 aCC*)
6312 case $host_cpu in
6313 hppa*64*)
6314 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6315 ;;
6316 ia64*)
6317 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6318 ;;
6319 *)
6320 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6321 ;;
6322 esac
6323 # Commands to make compiler produce verbose output that lists
6324 # what "hidden" libraries, object files and flags are used when
6325 # linking a shared library.
6326 #
6327 # There doesn't appear to be a way to prevent this compiler from
6328 # explicitly linking system object files so we need to strip them
6329 # from the output so that they don't get included in the library
6330 # dependencies.
6331 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
6332 ;;
6333 *)
6334 if test "$GXX" = yes; then
6335 if test $with_gnu_ld = no; then
6336 case $host_cpu in
6337 hppa*64*)
6338 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6339 ;;
6340 ia64*)
6341 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6342 ;;
6343 *)
6344 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6345 ;;
6346 esac
6347 fi
6348 else
6349 # FIXME: insert proper C++ library support
6350 _LT_TAGVAR(ld_shlibs, $1)=no
6351 fi
6352 ;;
6353 esac
6354 ;;
6355
6356 interix[[3-9]]*)
6357 _LT_TAGVAR(hardcode_direct, $1)=no
6358 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6359 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6360 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6361 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6362 # Instead, shared libraries are loaded at an image base (0x10000000 by
6363 # default) and relocated if they conflict, which is a slow very memory
6364 # consuming and fragmenting process. To avoid this, we pick a random,
6365 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6366 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6367 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6368 _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6369 ;;
6370 irix5* | irix6*)
6371 case $cc_basename in
6372 CC*)
6373 # SGI C++
6374 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
6375
6376 # Archives containing C++ object files must be created using
6377 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
6378 # necessary to make sure instantiated templates are included
6379 # in the archive.
6380 _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
6381 ;;
6382 *)
6383 if test "$GXX" = yes; then
6384 if test "$with_gnu_ld" = no; then
6385 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6386 else
6387 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
6388 fi
6389 fi
6390 _LT_TAGVAR(link_all_deplibs, $1)=yes
6391 ;;
6392 esac
6393 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6394 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6395 _LT_TAGVAR(inherit_rpath, $1)=yes
6396 ;;
6397
6398 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6399 case $cc_basename in
6400 KCC*)
6401 # Kuck and Associates, Inc. (KAI) C++ Compiler
6402
6403 # KCC will only create a shared library if the output file
6404 # ends with ".so" (or ".sl" for HP-UX), so rename the library
6405 # to its proper name (with version) after linking.
6406 _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
6407 _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
6408 # Commands to make compiler produce verbose output that lists
6409 # what "hidden" libraries, object files and flags are used when
6410 # linking a shared library.
6411 #
6412 # There doesn't appear to be a way to prevent this compiler from
6413 # explicitly linking system object files so we need to strip them
6414 # from the output so that they don't get included in the library
6415 # dependencies.
6416 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
6417
6418 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6419 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6420
6421 # Archives containing C++ object files must be created using
6422 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
6423 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
6424 ;;
6425 icpc* | ecpc* )
6426 # Intel C++
6427 with_gnu_ld=yes
6428 # version 8.0 and above of icpc choke on multiply defined symbols
6429 # if we add $predep_objects and $postdep_objects, however 7.1 and
6430 # earlier do not add the objects themselves.
6431 case `$CC -V 2>&1` in
6432 *"Version 7."*)
6433 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6434 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6435 ;;
6436 *) # Version 8.0 or newer
6437 tmp_idyn=
6438 case $host_cpu in
6439 ia64*) tmp_idyn=' -i_dynamic';;
6440 esac
6441 _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6442 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6443 ;;
6444 esac
6445 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6446 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6447 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6448 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6449 ;;
6450 pgCC* | pgcpp*)
6451 # Portland Group C++ compiler
6452 case `$CC -V` in
6453 *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
6454 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
6455 rm -rf $tpldir~
6456 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
6457 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
6458 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
6459 rm -rf $tpldir~
6460 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
6461 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
6462 $RANLIB $oldlib'
6463 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
6464 rm -rf $tpldir~
6465 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6466 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6467 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
6468 rm -rf $tpldir~
6469 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6470 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
6471 ;;
6472 *) # Version 6 and above use weak symbols
6473 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6474 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
6475 ;;
6476 esac
6477
6478 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6479 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6480 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
6481 ;;
6482 cxx*)
6483 # Compaq C++
6484 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6485 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
6486
6487 runpath_var=LD_RUN_PATH
6488 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6489 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6490
6491 # Commands to make compiler produce verbose output that lists
6492 # what "hidden" libraries, object files and flags are used when
6493 # linking a shared library.
6494 #
6495 # There doesn't appear to be a way to prevent this compiler from
6496 # explicitly linking system object files so we need to strip them
6497 # from the output so that they don't get included in the library
6498 # dependencies.
6499 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
6500 ;;
6501 xl* | mpixl* | bgxl*)
6502 # IBM XL 8.0 on PPC, with GNU ld
6503 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6504 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6505 _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6506 if test "x$supports_anon_versioning" = xyes; then
6507 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
6508 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6509 echo "local: *; };" >> $output_objdir/$libname.ver~
6510 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6511 fi
6512 ;;
6513 *)
6514 case `$CC -V 2>&1 | sed 5q` in
6515 *Sun\ C*)
6516 # Sun C++ 5.9
6517 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6518 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6519 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
6520 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6521 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
6522 _LT_TAGVAR(compiler_needs_object, $1)=yes
6523
6524 # Not sure whether something based on
6525 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
6526 # would be better.
6527 output_verbose_link_cmd='func_echo_all'
6528
6529 # Archives containing C++ object files must be created using
6530 # "CC -xar", where "CC" is the Sun C++ compiler. This is
6531 # necessary to make sure instantiated templates are included
6532 # in the archive.
6533 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6534 ;;
6535 esac
6536 ;;
6537 esac
6538 ;;
6539
6540 lynxos*)
6541 # FIXME: insert proper C++ library support
6542 _LT_TAGVAR(ld_shlibs, $1)=no
6543 ;;
6544
6545 m88k*)
6546 # FIXME: insert proper C++ library support
6547 _LT_TAGVAR(ld_shlibs, $1)=no
6548 ;;
6549
6550 mvs*)
6551 case $cc_basename in
6552 cxx*)
6553 # FIXME: insert proper C++ library support
6554 _LT_TAGVAR(ld_shlibs, $1)=no
6555 ;;
6556 *)
6557 # FIXME: insert proper C++ library support
6558 _LT_TAGVAR(ld_shlibs, $1)=no
6559 ;;
6560 esac
6561 ;;
6562
6563 netbsd*)
6564 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6565 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
6566 wlarc=
6567 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6568 _LT_TAGVAR(hardcode_direct, $1)=yes
6569 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6570 fi
6571 # Workaround some broken pre-1.5 toolchains
6572 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
6573 ;;
6574
6575 *nto* | *qnx*)
6576 _LT_TAGVAR(ld_shlibs, $1)=yes
6577 ;;
6578
6579 openbsd2*)
6580 # C++ shared libraries are fairly broken
6581 _LT_TAGVAR(ld_shlibs, $1)=no
6582 ;;
6583
6584 openbsd*)
6585 if test -f /usr/libexec/ld.so; then
6586 _LT_TAGVAR(hardcode_direct, $1)=yes
6587 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6588 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6589 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6590 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6591 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6592 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
6593 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6594 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6595 fi
6596 output_verbose_link_cmd=func_echo_all
6597 else
6598 _LT_TAGVAR(ld_shlibs, $1)=no
6599 fi
6600 ;;
6601
6602 osf3* | osf4* | osf5*)
6603 case $cc_basename in
6604 KCC*)
6605 # Kuck and Associates, Inc. (KAI) C++ Compiler
6606
6607 # KCC will only create a shared library if the output file
6608 # ends with ".so" (or ".sl" for HP-UX), so rename the library
6609 # to its proper name (with version) after linking.
6610 _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
6611
6612 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6613 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6614
6615 # Archives containing C++ object files must be created using
6616 # the KAI C++ compiler.
6617 case $host in
6618 osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
6619 *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
6620 esac
6621 ;;
6622 RCC*)
6623 # Rational C++ 2.4.1
6624 # FIXME: insert proper C++ library support
6625 _LT_TAGVAR(ld_shlibs, $1)=no
6626 ;;
6627 cxx*)
6628 case $host in
6629 osf3*)
6630 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6631 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
6632 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6633 ;;
6634 *)
6635 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6636 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
6637 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
6638 echo "-hidden">> $lib.exp~
6639 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
6640 $RM $lib.exp'
6641 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6642 ;;
6643 esac
6644
6645 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6646
6647 # Commands to make compiler produce verbose output that lists
6648 # what "hidden" libraries, object files and flags are used when
6649 # linking a shared library.
6650 #
6651 # There doesn't appear to be a way to prevent this compiler from
6652 # explicitly linking system object files so we need to strip them
6653 # from the output so that they don't get included in the library
6654 # dependencies.
6655 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
6656 ;;
6657 *)
6658 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6659 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6660 case $host in
6661 osf3*)
6662 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6663 ;;
6664 *)
6665 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6666 ;;
6667 esac
6668
6669 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6670 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6671
6672 # Commands to make compiler produce verbose output that lists
6673 # what "hidden" libraries, object files and flags are used when
6674 # linking a shared library.
6675 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6676
6677 else
6678 # FIXME: insert proper C++ library support
6679 _LT_TAGVAR(ld_shlibs, $1)=no
6680 fi
6681 ;;
6682 esac
6683 ;;
6684
6685 psos*)
6686 # FIXME: insert proper C++ library support
6687 _LT_TAGVAR(ld_shlibs, $1)=no
6688 ;;
6689
6690 sunos4*)
6691 case $cc_basename in
6692 CC*)
6693 # Sun C++ 4.x
6694 # FIXME: insert proper C++ library support
6695 _LT_TAGVAR(ld_shlibs, $1)=no
6696 ;;
6697 lcc*)
6698 # Lucid
6699 # FIXME: insert proper C++ library support
6700 _LT_TAGVAR(ld_shlibs, $1)=no
6701 ;;
6702 *)
6703 # FIXME: insert proper C++ library support
6704 _LT_TAGVAR(ld_shlibs, $1)=no
6705 ;;
6706 esac
6707 ;;
6708
6709 solaris*)
6710 case $cc_basename in
6711 CC* | sunCC*)
6712 # Sun C++ 4.2, 5.x and Centerline C++
6713 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
6714 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6715 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6716 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6717 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6718
6719 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6720 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6721 case $host_os in
6722 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6723 *)
6724 # The compiler driver will combine and reorder linker options,
6725 # but understands `-z linker_flag'.
6726 # Supported since Solaris 2.6 (maybe 2.5.1?)
6727 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6728 ;;
6729 esac
6730 _LT_TAGVAR(link_all_deplibs, $1)=yes
6731
6732 output_verbose_link_cmd='func_echo_all'
6733
6734 # Archives containing C++ object files must be created using
6735 # "CC -xar", where "CC" is the Sun C++ compiler. This is
6736 # necessary to make sure instantiated templates are included
6737 # in the archive.
6738 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6739 ;;
6740 gcx*)
6741 # Green Hills C++ Compiler
6742 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6743
6744 # The C++ compiler must be used to create the archive.
6745 _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
6746 ;;
6747 *)
6748 # GNU C++ compiler with Solaris linker
6749 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6750 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
6751 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
6752 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6753 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6754 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6755
6756 # Commands to make compiler produce verbose output that lists
6757 # what "hidden" libraries, object files and flags are used when
6758 # linking a shared library.
6759 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6760 else
6761 # g++ 2.7 appears to require `-G' NOT `-shared' on this
6762 # platform.
6763 _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6764 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6765 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6766
6767 # Commands to make compiler produce verbose output that lists
6768 # what "hidden" libraries, object files and flags are used when
6769 # linking a shared library.
6770 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6771 fi
6772
6773 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
6774 case $host_os in
6775 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6776 *)
6777 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6778 ;;
6779 esac
6780 fi
6781 ;;
6782 esac
6783 ;;
6784
6785 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6786 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6787 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6788 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6789 runpath_var='LD_RUN_PATH'
6790
6791 case $cc_basename in
6792 CC*)
6793 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6794 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6795 ;;
6796 *)
6797 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6798 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6799 ;;
6800 esac
6801 ;;
6802
6803 sysv5* | sco3.2v5* | sco5v6*)
6804 # Note: We can NOT use -z defs as we might desire, because we do not
6805 # link with -lc, and that would cause any symbols used from libc to
6806 # always be unresolved, which means just about no library would
6807 # ever link correctly. If we're not using GNU ld we use -z text
6808 # though, which does catch some bad symbols but isn't as heavy-handed
6809 # as -z defs.
6810 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6811 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6812 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6813 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6814 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
6815 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6816 _LT_TAGVAR(link_all_deplibs, $1)=yes
6817 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6818 runpath_var='LD_RUN_PATH'
6819
6820 case $cc_basename in
6821 CC*)
6822 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6823 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6824 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
6825 '"$_LT_TAGVAR(old_archive_cmds, $1)"
6826 _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
6827 '"$_LT_TAGVAR(reload_cmds, $1)"
6828 ;;
6829 *)
6830 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6831 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6832 ;;
6833 esac
6834 ;;
6835
6836 tandem*)
6837 case $cc_basename in
6838 NCC*)
6839 # NonStop-UX NCC 3.20
6840 # FIXME: insert proper C++ library support
6841 _LT_TAGVAR(ld_shlibs, $1)=no
6842 ;;
6843 *)
6844 # FIXME: insert proper C++ library support
6845 _LT_TAGVAR(ld_shlibs, $1)=no
6846 ;;
6847 esac
6848 ;;
6849
6850 vxworks*)
6851 # FIXME: insert proper C++ library support
6852 _LT_TAGVAR(ld_shlibs, $1)=no
6853 ;;
6854
6855 *)
6856 # FIXME: insert proper C++ library support
6857 _LT_TAGVAR(ld_shlibs, $1)=no
6858 ;;
6859 esac
6860
6861 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
6862 test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6863
6864 _LT_TAGVAR(GCC, $1)="$GXX"
6865 _LT_TAGVAR(LD, $1)="$LD"
6866
6867 ## CAVEAT EMPTOR:
6868 ## There is no encapsulation within the following macros, do not change
6869 ## the running order or otherwise move them around unless you know exactly
6870 ## what you are doing...
6871 _LT_SYS_HIDDEN_LIBDEPS($1)
6872 _LT_COMPILER_PIC($1)
6873 _LT_COMPILER_C_O($1)
6874 _LT_COMPILER_FILE_LOCKS($1)
6875 _LT_LINKER_SHLIBS($1)
6876 _LT_SYS_DYNAMIC_LINKER($1)
6877 _LT_LINKER_HARDCODE_LIBPATH($1)
6878
6879 _LT_CONFIG($1)
6880 fi # test -n "$compiler"
6881
6882 CC=$lt_save_CC
6883 CFLAGS=$lt_save_CFLAGS
6884 LDCXX=$LD
6885 LD=$lt_save_LD
6886 GCC=$lt_save_GCC
6887 with_gnu_ld=$lt_save_with_gnu_ld
6888 lt_cv_path_LDCXX=$lt_cv_path_LD
6889 lt_cv_path_LD=$lt_save_path_LD
6890 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
6891 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
6892 fi # test "$_lt_caught_CXX_error" != yes
6893
6894 AC_LANG_POP
6895 ])# _LT_LANG_CXX_CONFIG
6896
6897
6898 # _LT_FUNC_STRIPNAME_CNF
6899 # ----------------------
6900 # func_stripname_cnf prefix suffix name
6901 # strip PREFIX and SUFFIX off of NAME.
6902 # PREFIX and SUFFIX must not contain globbing or regex special
6903 # characters, hashes, percent signs, but SUFFIX may contain a leading
6904 # dot (in which case that matches only a dot).
6905 #
6906 # This function is identical to the (non-XSI) version of func_stripname,
6907 # except this one can be used by m4 code that may be executed by configure,
6908 # rather than the libtool script.
6909 m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
6910 AC_REQUIRE([_LT_DECL_SED])
6911 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
6912 func_stripname_cnf ()
6913 {
6914 case ${2} in
6915 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
6916 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
6917 esac
6918 } # func_stripname_cnf
6919 ])# _LT_FUNC_STRIPNAME_CNF
6920
6921 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
6922 # ---------------------------------
6923 # Figure out "hidden" library dependencies from verbose
6924 # compiler output when linking a shared library.
6925 # Parse the compiler output and extract the necessary
6926 # objects, libraries and library flags.
6927 m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
6928 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6929 AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
6930 # Dependencies to place before and after the object being linked:
6931 _LT_TAGVAR(predep_objects, $1)=
6932 _LT_TAGVAR(postdep_objects, $1)=
6933 _LT_TAGVAR(predeps, $1)=
6934 _LT_TAGVAR(postdeps, $1)=
6935 _LT_TAGVAR(compiler_lib_search_path, $1)=
6936
6937 dnl we can't use the lt_simple_compile_test_code here,
6938 dnl because it contains code intended for an executable,
6939 dnl not a library. It's possible we should let each
6940 dnl tag define a new lt_????_link_test_code variable,
6941 dnl but it's only used here...
6942 m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
6943 int a;
6944 void foo (void) { a = 0; }
6945 _LT_EOF
6946 ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
6947 class Foo
6948 {
6949 public:
6950 Foo (void) { a = 0; }
6951 private:
6952 int a;
6953 };
6954 _LT_EOF
6955 ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
6956 subroutine foo
6957 implicit none
6958 integer*4 a
6959 a=0
6960 return
6961 end
6962 _LT_EOF
6963 ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
6964 subroutine foo
6965 implicit none
6966 integer a
6967 a=0
6968 return
6969 end
6970 _LT_EOF
6971 ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
6972 public class foo {
6973 private int a;
6974 public void bar (void) {
6975 a = 0;
6976 }
6977 };
6978 _LT_EOF
6979 ], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF
6980 package foo
6981 func foo() {
6982 }
6983 _LT_EOF
6984 ])
6985
6986 _lt_libdeps_save_CFLAGS=$CFLAGS
6987 case "$CC $CFLAGS " in #(
6988 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
6989 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
6990 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
6991 esac
6992
6993 dnl Parse the compiler output and extract the necessary
6994 dnl objects, libraries and library flags.
6995 if AC_TRY_EVAL(ac_compile); then
6996 # Parse the compiler output and extract the necessary
6997 # objects, libraries and library flags.
6998
6999 # Sentinel used to keep track of whether or not we are before
7000 # the conftest object file.
7001 pre_test_object_deps_done=no
7002
7003 for p in `eval "$output_verbose_link_cmd"`; do
7004 case ${prev}${p} in
7005
7006 -L* | -R* | -l*)
7007 # Some compilers place space between "-{L,R}" and the path.
7008 # Remove the space.
7009 if test $p = "-L" ||
7010 test $p = "-R"; then
7011 prev=$p
7012 continue
7013 fi
7014
7015 # Expand the sysroot to ease extracting the directories later.
7016 if test -z "$prev"; then
7017 case $p in
7018 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
7019 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
7020 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
7021 esac
7022 fi
7023 case $p in
7024 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
7025 esac
7026 if test "$pre_test_object_deps_done" = no; then
7027 case ${prev} in
7028 -L | -R)
7029 # Internal compiler library paths should come after those
7030 # provided the user. The postdeps already come after the
7031 # user supplied libs so there is no need to process them.
7032 if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
7033 _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
7034 else
7035 _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
7036 fi
7037 ;;
7038 # The "-l" case would never come before the object being
7039 # linked, so don't bother handling this case.
7040 esac
7041 else
7042 if test -z "$_LT_TAGVAR(postdeps, $1)"; then
7043 _LT_TAGVAR(postdeps, $1)="${prev}${p}"
7044 else
7045 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
7046 fi
7047 fi
7048 prev=
7049 ;;
7050
7051 *.lto.$objext) ;; # Ignore GCC LTO objects
7052 *.$objext)
7053 # This assumes that the test object file only shows up
7054 # once in the compiler output.
7055 if test "$p" = "conftest.$objext"; then
7056 pre_test_object_deps_done=yes
7057 continue
7058 fi
7059
7060 if test "$pre_test_object_deps_done" = no; then
7061 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
7062 _LT_TAGVAR(predep_objects, $1)="$p"
7063 else
7064 _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
7065 fi
7066 else
7067 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
7068 _LT_TAGVAR(postdep_objects, $1)="$p"
7069 else
7070 _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
7071 fi
7072 fi
7073 ;;
7074
7075 *) ;; # Ignore the rest.
7076
7077 esac
7078 done
7079
7080 # Clean up.
7081 rm -f a.out a.exe
7082 else
7083 echo "libtool.m4: error: problem compiling $1 test program"
7084 fi
7085
7086 $RM -f confest.$objext
7087 CFLAGS=$_lt_libdeps_save_CFLAGS
7088
7089 # PORTME: override above test on systems where it is broken
7090 m4_if([$1], [CXX],
7091 [case $host_os in
7092 interix[[3-9]]*)
7093 # Interix 3.5 installs completely hosed .la files for C++, so rather than
7094 # hack all around it, let's just trust "g++" to DTRT.
7095 _LT_TAGVAR(predep_objects,$1)=
7096 _LT_TAGVAR(postdep_objects,$1)=
7097 _LT_TAGVAR(postdeps,$1)=
7098 ;;
7099
7100 linux*)
7101 case `$CC -V 2>&1 | sed 5q` in
7102 *Sun\ C*)
7103 # Sun C++ 5.9
7104
7105 # The more standards-conforming stlport4 library is
7106 # incompatible with the Cstd library. Avoid specifying
7107 # it if it's in CXXFLAGS. Ignore libCrun as
7108 # -library=stlport4 depends on it.
7109 case " $CXX $CXXFLAGS " in
7110 *" -library=stlport4 "*)
7111 solaris_use_stlport4=yes
7112 ;;
7113 esac
7114
7115 if test "$solaris_use_stlport4" != yes; then
7116 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7117 fi
7118 ;;
7119 esac
7120 ;;
7121
7122 solaris*)
7123 case $cc_basename in
7124 CC* | sunCC*)
7125 # The more standards-conforming stlport4 library is
7126 # incompatible with the Cstd library. Avoid specifying
7127 # it if it's in CXXFLAGS. Ignore libCrun as
7128 # -library=stlport4 depends on it.
7129 case " $CXX $CXXFLAGS " in
7130 *" -library=stlport4 "*)
7131 solaris_use_stlport4=yes
7132 ;;
7133 esac
7134
7135 # Adding this requires a known-good setup of shared libraries for
7136 # Sun compiler versions before 5.6, else PIC objects from an old
7137 # archive will be linked into the output, leading to subtle bugs.
7138 if test "$solaris_use_stlport4" != yes; then
7139 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7140 fi
7141 ;;
7142 esac
7143 ;;
7144 esac
7145 ])
7146
7147 case " $_LT_TAGVAR(postdeps, $1) " in
7148 *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
7149 esac
7150 _LT_TAGVAR(compiler_lib_search_dirs, $1)=
7151 if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
7152 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
7153 fi
7154 _LT_TAGDECL([], [compiler_lib_search_dirs], [1],
7155 [The directories searched by this compiler when creating a shared library])
7156 _LT_TAGDECL([], [predep_objects], [1],
7157 [Dependencies to place before and after the objects being linked to
7158 create a shared library])
7159 _LT_TAGDECL([], [postdep_objects], [1])
7160 _LT_TAGDECL([], [predeps], [1])
7161 _LT_TAGDECL([], [postdeps], [1])
7162 _LT_TAGDECL([], [compiler_lib_search_path], [1],
7163 [The library search path used internally by the compiler when linking
7164 a shared library])
7165 ])# _LT_SYS_HIDDEN_LIBDEPS
7166
7167
7168 # _LT_LANG_F77_CONFIG([TAG])
7169 # --------------------------
7170 # Ensure that the configuration variables for a Fortran 77 compiler are
7171 # suitably defined. These variables are subsequently used by _LT_CONFIG
7172 # to write the compiler configuration to `libtool'.
7173 m4_defun([_LT_LANG_F77_CONFIG],
7174 [AC_LANG_PUSH(Fortran 77)
7175 if test -z "$F77" || test "X$F77" = "Xno"; then
7176 _lt_disable_F77=yes
7177 fi
7178
7179 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7180 _LT_TAGVAR(allow_undefined_flag, $1)=
7181 _LT_TAGVAR(always_export_symbols, $1)=no
7182 _LT_TAGVAR(archive_expsym_cmds, $1)=
7183 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
7184 _LT_TAGVAR(hardcode_direct, $1)=no
7185 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
7186 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7187 _LT_TAGVAR(hardcode_libdir_separator, $1)=
7188 _LT_TAGVAR(hardcode_minus_L, $1)=no
7189 _LT_TAGVAR(hardcode_automatic, $1)=no
7190 _LT_TAGVAR(inherit_rpath, $1)=no
7191 _LT_TAGVAR(module_cmds, $1)=
7192 _LT_TAGVAR(module_expsym_cmds, $1)=
7193 _LT_TAGVAR(link_all_deplibs, $1)=unknown
7194 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7195 _LT_TAGVAR(reload_flag, $1)=$reload_flag
7196 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7197 _LT_TAGVAR(no_undefined_flag, $1)=
7198 _LT_TAGVAR(whole_archive_flag_spec, $1)=
7199 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7200
7201 # Source file extension for f77 test sources.
7202 ac_ext=f
7203
7204 # Object file extension for compiled f77 test sources.
7205 objext=o
7206 _LT_TAGVAR(objext, $1)=$objext
7207
7208 # No sense in running all these tests if we already determined that
7209 # the F77 compiler isn't working. Some variables (like enable_shared)
7210 # are currently assumed to apply to all compilers on this platform,
7211 # and will be corrupted by setting them based on a non-working compiler.
7212 if test "$_lt_disable_F77" != yes; then
7213 # Code to be used in simple compile tests
7214 lt_simple_compile_test_code="\
7215 subroutine t
7216 return
7217 end
7218 "
7219
7220 # Code to be used in simple link tests
7221 lt_simple_link_test_code="\
7222 program t
7223 end
7224 "
7225
7226 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7227 _LT_TAG_COMPILER
7228
7229 # save warnings/boilerplate of simple test code
7230 _LT_COMPILER_BOILERPLATE
7231 _LT_LINKER_BOILERPLATE
7232
7233 # Allow CC to be a program name with arguments.
7234 lt_save_CC="$CC"
7235 lt_save_GCC=$GCC
7236 lt_save_CFLAGS=$CFLAGS
7237 CC=${F77-"f77"}
7238 CFLAGS=$FFLAGS
7239 compiler=$CC
7240 _LT_TAGVAR(compiler, $1)=$CC
7241 _LT_CC_BASENAME([$compiler])
7242 GCC=$G77
7243 if test -n "$compiler"; then
7244 AC_MSG_CHECKING([if libtool supports shared libraries])
7245 AC_MSG_RESULT([$can_build_shared])
7246
7247 AC_MSG_CHECKING([whether to build shared libraries])
7248 test "$can_build_shared" = "no" && enable_shared=no
7249
7250 # On AIX, shared libraries and static libraries use the same namespace, and
7251 # are all built from PIC.
7252 case $host_os in
7253 aix3*)
7254 test "$enable_shared" = yes && enable_static=no
7255 if test -n "$RANLIB"; then
7256 archive_cmds="$archive_cmds~\$RANLIB \$lib"
7257 postinstall_cmds='$RANLIB $lib'
7258 fi
7259 ;;
7260 aix[[4-9]]*)
7261 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7262 test "$enable_shared" = yes && enable_static=no
7263 fi
7264 ;;
7265 esac
7266 AC_MSG_RESULT([$enable_shared])
7267
7268 AC_MSG_CHECKING([whether to build static libraries])
7269 # Make sure either enable_shared or enable_static is yes.
7270 test "$enable_shared" = yes || enable_static=yes
7271 AC_MSG_RESULT([$enable_static])
7272
7273 _LT_TAGVAR(GCC, $1)="$G77"
7274 _LT_TAGVAR(LD, $1)="$LD"
7275
7276 ## CAVEAT EMPTOR:
7277 ## There is no encapsulation within the following macros, do not change
7278 ## the running order or otherwise move them around unless you know exactly
7279 ## what you are doing...
7280 _LT_COMPILER_PIC($1)
7281 _LT_COMPILER_C_O($1)
7282 _LT_COMPILER_FILE_LOCKS($1)
7283 _LT_LINKER_SHLIBS($1)
7284 _LT_SYS_DYNAMIC_LINKER($1)
7285 _LT_LINKER_HARDCODE_LIBPATH($1)
7286
7287 _LT_CONFIG($1)
7288 fi # test -n "$compiler"
7289
7290 GCC=$lt_save_GCC
7291 CC="$lt_save_CC"
7292 CFLAGS="$lt_save_CFLAGS"
7293 fi # test "$_lt_disable_F77" != yes
7294
7295 AC_LANG_POP
7296 ])# _LT_LANG_F77_CONFIG
7297
7298
7299 # _LT_LANG_FC_CONFIG([TAG])
7300 # -------------------------
7301 # Ensure that the configuration variables for a Fortran compiler are
7302 # suitably defined. These variables are subsequently used by _LT_CONFIG
7303 # to write the compiler configuration to `libtool'.
7304 m4_defun([_LT_LANG_FC_CONFIG],
7305 [AC_LANG_PUSH(Fortran)
7306
7307 if test -z "$FC" || test "X$FC" = "Xno"; then
7308 _lt_disable_FC=yes
7309 fi
7310
7311 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7312 _LT_TAGVAR(allow_undefined_flag, $1)=
7313 _LT_TAGVAR(always_export_symbols, $1)=no
7314 _LT_TAGVAR(archive_expsym_cmds, $1)=
7315 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
7316 _LT_TAGVAR(hardcode_direct, $1)=no
7317 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
7318 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7319 _LT_TAGVAR(hardcode_libdir_separator, $1)=
7320 _LT_TAGVAR(hardcode_minus_L, $1)=no
7321 _LT_TAGVAR(hardcode_automatic, $1)=no
7322 _LT_TAGVAR(inherit_rpath, $1)=no
7323 _LT_TAGVAR(module_cmds, $1)=
7324 _LT_TAGVAR(module_expsym_cmds, $1)=
7325 _LT_TAGVAR(link_all_deplibs, $1)=unknown
7326 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7327 _LT_TAGVAR(reload_flag, $1)=$reload_flag
7328 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7329 _LT_TAGVAR(no_undefined_flag, $1)=
7330 _LT_TAGVAR(whole_archive_flag_spec, $1)=
7331 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7332
7333 # Source file extension for fc test sources.
7334 ac_ext=${ac_fc_srcext-f}
7335
7336 # Object file extension for compiled fc test sources.
7337 objext=o
7338 _LT_TAGVAR(objext, $1)=$objext
7339
7340 # No sense in running all these tests if we already determined that
7341 # the FC compiler isn't working. Some variables (like enable_shared)
7342 # are currently assumed to apply to all compilers on this platform,
7343 # and will be corrupted by setting them based on a non-working compiler.
7344 if test "$_lt_disable_FC" != yes; then
7345 # Code to be used in simple compile tests
7346 lt_simple_compile_test_code="\
7347 subroutine t
7348 return
7349 end
7350 "
7351
7352 # Code to be used in simple link tests
7353 lt_simple_link_test_code="\
7354 program t
7355 end
7356 "
7357
7358 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7359 _LT_TAG_COMPILER
7360
7361 # save warnings/boilerplate of simple test code
7362 _LT_COMPILER_BOILERPLATE
7363 _LT_LINKER_BOILERPLATE
7364
7365 # Allow CC to be a program name with arguments.
7366 lt_save_CC="$CC"
7367 lt_save_GCC=$GCC
7368 lt_save_CFLAGS=$CFLAGS
7369 CC=${FC-"f95"}
7370 CFLAGS=$FCFLAGS
7371 compiler=$CC
7372 GCC=$ac_cv_fc_compiler_gnu
7373
7374 _LT_TAGVAR(compiler, $1)=$CC
7375 _LT_CC_BASENAME([$compiler])
7376
7377 if test -n "$compiler"; then
7378 AC_MSG_CHECKING([if libtool supports shared libraries])
7379 AC_MSG_RESULT([$can_build_shared])
7380
7381 AC_MSG_CHECKING([whether to build shared libraries])
7382 test "$can_build_shared" = "no" && enable_shared=no
7383
7384 # On AIX, shared libraries and static libraries use the same namespace, and
7385 # are all built from PIC.
7386 case $host_os in
7387 aix3*)
7388 test "$enable_shared" = yes && enable_static=no
7389 if test -n "$RANLIB"; then
7390 archive_cmds="$archive_cmds~\$RANLIB \$lib"
7391 postinstall_cmds='$RANLIB $lib'
7392 fi
7393 ;;
7394 aix[[4-9]]*)
7395 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7396 test "$enable_shared" = yes && enable_static=no
7397 fi
7398 ;;
7399 esac
7400 AC_MSG_RESULT([$enable_shared])
7401
7402 AC_MSG_CHECKING([whether to build static libraries])
7403 # Make sure either enable_shared or enable_static is yes.
7404 test "$enable_shared" = yes || enable_static=yes
7405 AC_MSG_RESULT([$enable_static])
7406
7407 _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
7408 _LT_TAGVAR(LD, $1)="$LD"
7409
7410 ## CAVEAT EMPTOR:
7411 ## There is no encapsulation within the following macros, do not change
7412 ## the running order or otherwise move them around unless you know exactly
7413 ## what you are doing...
7414 _LT_SYS_HIDDEN_LIBDEPS($1)
7415 _LT_COMPILER_PIC($1)
7416 _LT_COMPILER_C_O($1)
7417 _LT_COMPILER_FILE_LOCKS($1)
7418 _LT_LINKER_SHLIBS($1)
7419 _LT_SYS_DYNAMIC_LINKER($1)
7420 _LT_LINKER_HARDCODE_LIBPATH($1)
7421
7422 _LT_CONFIG($1)
7423 fi # test -n "$compiler"
7424
7425 GCC=$lt_save_GCC
7426 CC=$lt_save_CC
7427 CFLAGS=$lt_save_CFLAGS
7428 fi # test "$_lt_disable_FC" != yes
7429
7430 AC_LANG_POP
7431 ])# _LT_LANG_FC_CONFIG
7432
7433
7434 # _LT_LANG_GCJ_CONFIG([TAG])
7435 # --------------------------
7436 # Ensure that the configuration variables for the GNU Java Compiler compiler
7437 # are suitably defined. These variables are subsequently used by _LT_CONFIG
7438 # to write the compiler configuration to `libtool'.
7439 m4_defun([_LT_LANG_GCJ_CONFIG],
7440 [AC_REQUIRE([LT_PROG_GCJ])dnl
7441 AC_LANG_SAVE
7442
7443 # Source file extension for Java test sources.
7444 ac_ext=java
7445
7446 # Object file extension for compiled Java test sources.
7447 objext=o
7448 _LT_TAGVAR(objext, $1)=$objext
7449
7450 # Code to be used in simple compile tests
7451 lt_simple_compile_test_code="class foo {}"
7452
7453 # Code to be used in simple link tests
7454 lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
7455
7456 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7457 _LT_TAG_COMPILER
7458
7459 # save warnings/boilerplate of simple test code
7460 _LT_COMPILER_BOILERPLATE
7461 _LT_LINKER_BOILERPLATE
7462
7463 # Allow CC to be a program name with arguments.
7464 lt_save_CC=$CC
7465 lt_save_CFLAGS=$CFLAGS
7466 lt_save_GCC=$GCC
7467 GCC=yes
7468 CC=${GCJ-"gcj"}
7469 CFLAGS=$GCJFLAGS
7470 compiler=$CC
7471 _LT_TAGVAR(compiler, $1)=$CC
7472 _LT_TAGVAR(LD, $1)="$LD"
7473 _LT_CC_BASENAME([$compiler])
7474
7475 # GCJ did not exist at the time GCC didn't implicitly link libc in.
7476 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7477
7478 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7479 _LT_TAGVAR(reload_flag, $1)=$reload_flag
7480 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7481
7482 ## CAVEAT EMPTOR:
7483 ## There is no encapsulation within the following macros, do not change
7484 ## the running order or otherwise move them around unless you know exactly
7485 ## what you are doing...
7486 if test -n "$compiler"; then
7487 _LT_COMPILER_NO_RTTI($1)
7488 _LT_COMPILER_PIC($1)
7489 _LT_COMPILER_C_O($1)
7490 _LT_COMPILER_FILE_LOCKS($1)
7491 _LT_LINKER_SHLIBS($1)
7492 _LT_LINKER_HARDCODE_LIBPATH($1)
7493
7494 _LT_CONFIG($1)
7495 fi
7496
7497 AC_LANG_RESTORE
7498
7499 GCC=$lt_save_GCC
7500 CC=$lt_save_CC
7501 CFLAGS=$lt_save_CFLAGS
7502 ])# _LT_LANG_GCJ_CONFIG
7503
7504
7505 # _LT_LANG_GO_CONFIG([TAG])
7506 # --------------------------
7507 # Ensure that the configuration variables for the GNU Go compiler
7508 # are suitably defined. These variables are subsequently used by _LT_CONFIG
7509 # to write the compiler configuration to `libtool'.
7510 m4_defun([_LT_LANG_GO_CONFIG],
7511 [AC_REQUIRE([LT_PROG_GO])dnl
7512 AC_LANG_SAVE
7513
7514 # Source file extension for Go test sources.
7515 ac_ext=go
7516
7517 # Object file extension for compiled Go test sources.
7518 objext=o
7519 _LT_TAGVAR(objext, $1)=$objext
7520
7521 # Code to be used in simple compile tests
7522 lt_simple_compile_test_code="package main; func main() { }"
7523
7524 # Code to be used in simple link tests
7525 lt_simple_link_test_code='package main; func main() { }'
7526
7527 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7528 _LT_TAG_COMPILER
7529
7530 # save warnings/boilerplate of simple test code
7531 _LT_COMPILER_BOILERPLATE
7532 _LT_LINKER_BOILERPLATE
7533
7534 # Allow CC to be a program name with arguments.
7535 lt_save_CC=$CC
7536 lt_save_CFLAGS=$CFLAGS
7537 lt_save_GCC=$GCC
7538 GCC=yes
7539 CC=${GOC-"gccgo"}
7540 CFLAGS=$GOFLAGS
7541 compiler=$CC
7542 _LT_TAGVAR(compiler, $1)=$CC
7543 _LT_TAGVAR(LD, $1)="$LD"
7544 _LT_CC_BASENAME([$compiler])
7545
7546 # Go did not exist at the time GCC didn't implicitly link libc in.
7547 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7548
7549 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7550 _LT_TAGVAR(reload_flag, $1)=$reload_flag
7551 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7552
7553 ## CAVEAT EMPTOR:
7554 ## There is no encapsulation within the following macros, do not change
7555 ## the running order or otherwise move them around unless you know exactly
7556 ## what you are doing...
7557 if test -n "$compiler"; then
7558 _LT_COMPILER_NO_RTTI($1)
7559 _LT_COMPILER_PIC($1)
7560 _LT_COMPILER_C_O($1)
7561 _LT_COMPILER_FILE_LOCKS($1)
7562 _LT_LINKER_SHLIBS($1)
7563 _LT_LINKER_HARDCODE_LIBPATH($1)
7564
7565 _LT_CONFIG($1)
7566 fi
7567
7568 AC_LANG_RESTORE
7569
7570 GCC=$lt_save_GCC
7571 CC=$lt_save_CC
7572 CFLAGS=$lt_save_CFLAGS
7573 ])# _LT_LANG_GO_CONFIG
7574
7575
7576 # _LT_LANG_RC_CONFIG([TAG])
7577 # -------------------------
7578 # Ensure that the configuration variables for the Windows resource compiler
7579 # are suitably defined. These variables are subsequently used by _LT_CONFIG
7580 # to write the compiler configuration to `libtool'.
7581 m4_defun([_LT_LANG_RC_CONFIG],
7582 [AC_REQUIRE([LT_PROG_RC])dnl
7583 AC_LANG_SAVE
7584
7585 # Source file extension for RC test sources.
7586 ac_ext=rc
7587
7588 # Object file extension for compiled RC test sources.
7589 objext=o
7590 _LT_TAGVAR(objext, $1)=$objext
7591
7592 # Code to be used in simple compile tests
7593 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
7594
7595 # Code to be used in simple link tests
7596 lt_simple_link_test_code="$lt_simple_compile_test_code"
7597
7598 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7599 _LT_TAG_COMPILER
7600
7601 # save warnings/boilerplate of simple test code
7602 _LT_COMPILER_BOILERPLATE
7603 _LT_LINKER_BOILERPLATE
7604
7605 # Allow CC to be a program name with arguments.
7606 lt_save_CC="$CC"
7607 lt_save_CFLAGS=$CFLAGS
7608 lt_save_GCC=$GCC
7609 GCC=
7610 CC=${RC-"windres"}
7611 CFLAGS=
7612 compiler=$CC
7613 _LT_TAGVAR(compiler, $1)=$CC
7614 _LT_CC_BASENAME([$compiler])
7615 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
7616
7617 if test -n "$compiler"; then
7618 :
7619 _LT_CONFIG($1)
7620 fi
7621
7622 GCC=$lt_save_GCC
7623 AC_LANG_RESTORE
7624 CC=$lt_save_CC
7625 CFLAGS=$lt_save_CFLAGS
7626 ])# _LT_LANG_RC_CONFIG
7627
7628
7629 # LT_PROG_GCJ
7630 # -----------
7631 AC_DEFUN([LT_PROG_GCJ],
7632 [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
7633 [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
7634 [AC_CHECK_TOOL(GCJ, gcj,)
7635 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
7636 AC_SUBST(GCJFLAGS)])])[]dnl
7637 ])
7638
7639 # Old name:
7640 AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
7641 dnl aclocal-1.4 backwards compatibility:
7642 dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
7643
7644
7645 # LT_PROG_GO
7646 # ----------
7647 AC_DEFUN([LT_PROG_GO],
7648 [AC_CHECK_TOOL(GOC, gccgo,)
7649 ])
7650
7651
7652 # LT_PROG_RC
7653 # ----------
7654 AC_DEFUN([LT_PROG_RC],
7655 [AC_CHECK_TOOL(RC, windres,)
7656 ])
7657
7658 # Old name:
7659 AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
7660 dnl aclocal-1.4 backwards compatibility:
7661 dnl AC_DEFUN([LT_AC_PROG_RC], [])
7662
7663
7664 # _LT_DECL_EGREP
7665 # --------------
7666 # If we don't have a new enough Autoconf to choose the best grep
7667 # available, choose the one first in the user's PATH.
7668 m4_defun([_LT_DECL_EGREP],
7669 [AC_REQUIRE([AC_PROG_EGREP])dnl
7670 AC_REQUIRE([AC_PROG_FGREP])dnl
7671 test -z "$GREP" && GREP=grep
7672 _LT_DECL([], [GREP], [1], [A grep program that handles long lines])
7673 _LT_DECL([], [EGREP], [1], [An ERE matcher])
7674 _LT_DECL([], [FGREP], [1], [A literal string matcher])
7675 dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
7676 AC_SUBST([GREP])
7677 ])
7678
7679
7680 # _LT_DECL_OBJDUMP
7681 # --------------
7682 # If we don't have a new enough Autoconf to choose the best objdump
7683 # available, choose the one first in the user's PATH.
7684 m4_defun([_LT_DECL_OBJDUMP],
7685 [AC_CHECK_TOOL(OBJDUMP, objdump, false)
7686 test -z "$OBJDUMP" && OBJDUMP=objdump
7687 _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
7688 AC_SUBST([OBJDUMP])
7689 ])
7690
7691 # _LT_DECL_DLLTOOL
7692 # ----------------
7693 # Ensure DLLTOOL variable is set.
7694 m4_defun([_LT_DECL_DLLTOOL],
7695 [AC_CHECK_TOOL(DLLTOOL, dlltool, false)
7696 test -z "$DLLTOOL" && DLLTOOL=dlltool
7697 _LT_DECL([], [DLLTOOL], [1], [DLL creation program])
7698 AC_SUBST([DLLTOOL])
7699 ])
7700
7701 # _LT_DECL_SED
7702 # ------------
7703 # Check for a fully-functional sed program, that truncates
7704 # as few characters as possible. Prefer GNU sed if found.
7705 m4_defun([_LT_DECL_SED],
7706 [AC_PROG_SED
7707 test -z "$SED" && SED=sed
7708 Xsed="$SED -e 1s/^X//"
7709 _LT_DECL([], [SED], [1], [A sed program that does not truncate output])
7710 _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
7711 [Sed that helps us avoid accidentally triggering echo(1) options like -n])
7712 ])# _LT_DECL_SED
7713
7714 m4_ifndef([AC_PROG_SED], [
7715 ############################################################
7716 # NOTE: This macro has been submitted for inclusion into #
7717 # GNU Autoconf as AC_PROG_SED. When it is available in #
7718 # a released version of Autoconf we should remove this #
7719 # macro and use it instead. #
7720 ############################################################
7721
7722 m4_defun([AC_PROG_SED],
7723 [AC_MSG_CHECKING([for a sed that does not truncate output])
7724 AC_CACHE_VAL(lt_cv_path_SED,
7725 [# Loop through the user's path and test for sed and gsed.
7726 # Then use that list of sed's as ones to test for truncation.
7727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7728 for as_dir in $PATH
7729 do
7730 IFS=$as_save_IFS
7731 test -z "$as_dir" && as_dir=.
7732 for lt_ac_prog in sed gsed; do
7733 for ac_exec_ext in '' $ac_executable_extensions; do
7734 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
7735 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
7736 fi
7737 done
7738 done
7739 done
7740 IFS=$as_save_IFS
7741 lt_ac_max=0
7742 lt_ac_count=0
7743 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
7744 # along with /bin/sed that truncates output.
7745 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
7746 test ! -f $lt_ac_sed && continue
7747 cat /dev/null > conftest.in
7748 lt_ac_count=0
7749 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
7750 # Check for GNU sed and select it if it is found.
7751 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
7752 lt_cv_path_SED=$lt_ac_sed
7753 break
7754 fi
7755 while true; do
7756 cat conftest.in conftest.in >conftest.tmp
7757 mv conftest.tmp conftest.in
7758 cp conftest.in conftest.nl
7759 echo >>conftest.nl
7760 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
7761 cmp -s conftest.out conftest.nl || break
7762 # 10000 chars as input seems more than enough
7763 test $lt_ac_count -gt 10 && break
7764 lt_ac_count=`expr $lt_ac_count + 1`
7765 if test $lt_ac_count -gt $lt_ac_max; then
7766 lt_ac_max=$lt_ac_count
7767 lt_cv_path_SED=$lt_ac_sed
7768 fi
7769 done
7770 done
7771 ])
7772 SED=$lt_cv_path_SED
7773 AC_SUBST([SED])
7774 AC_MSG_RESULT([$SED])
7775 ])#AC_PROG_SED
7776 ])#m4_ifndef
7777
7778 # Old name:
7779 AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
7780 dnl aclocal-1.4 backwards compatibility:
7781 dnl AC_DEFUN([LT_AC_PROG_SED], [])
7782
7783
7784 # _LT_CHECK_SHELL_FEATURES
7785 # ------------------------
7786 # Find out whether the shell is Bourne or XSI compatible,
7787 # or has some other useful features.
7788 m4_defun([_LT_CHECK_SHELL_FEATURES],
7789 [AC_MSG_CHECKING([whether the shell understands some XSI constructs])
7790 # Try some XSI features
7791 xsi_shell=no
7792 ( _lt_dummy="a/b/c"
7793 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7794 = c,a/b,b/c, \
7795 && eval 'test $(( 1 + 1 )) -eq 2 \
7796 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7797 && xsi_shell=yes
7798 AC_MSG_RESULT([$xsi_shell])
7799 _LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
7800
7801 AC_MSG_CHECKING([whether the shell understands "+="])
7802 lt_shell_append=no
7803 ( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
7804 >/dev/null 2>&1 \
7805 && lt_shell_append=yes
7806 AC_MSG_RESULT([$lt_shell_append])
7807 _LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
7808
7809 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7810 lt_unset=unset
7811 else
7812 lt_unset=false
7813 fi
7814 _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
7815
7816 # test EBCDIC or ASCII
7817 case `echo X|tr X '\101'` in
7818 A) # ASCII based system
7819 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7820 lt_SP2NL='tr \040 \012'
7821 lt_NL2SP='tr \015\012 \040\040'
7822 ;;
7823 *) # EBCDIC based system
7824 lt_SP2NL='tr \100 \n'
7825 lt_NL2SP='tr \r\n \100\100'
7826 ;;
7827 esac
7828 _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
7829 _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
7830 ])# _LT_CHECK_SHELL_FEATURES
7831
7832
7833 # _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
7834 # ------------------------------------------------------
7835 # In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
7836 # '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
7837 m4_defun([_LT_PROG_FUNCTION_REPLACE],
7838 [dnl {
7839 sed -e '/^$1 ()$/,/^} # $1 /c\
7840 $1 ()\
7841 {\
7842 m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1])
7843 } # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
7844 && mv -f "$cfgfile.tmp" "$cfgfile" \
7845 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7846 test 0 -eq $? || _lt_function_replace_fail=:
7847 ])
7848
7849
7850 # _LT_PROG_REPLACE_SHELLFNS
7851 # -------------------------
7852 # Replace existing portable implementations of several shell functions with
7853 # equivalent extended shell implementations where those features are available..
7854 m4_defun([_LT_PROG_REPLACE_SHELLFNS],
7855 [if test x"$xsi_shell" = xyes; then
7856 _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
7857 case ${1} in
7858 */*) func_dirname_result="${1%/*}${2}" ;;
7859 * ) func_dirname_result="${3}" ;;
7860 esac])
7861
7862 _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
7863 func_basename_result="${1##*/}"])
7864
7865 _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
7866 case ${1} in
7867 */*) func_dirname_result="${1%/*}${2}" ;;
7868 * ) func_dirname_result="${3}" ;;
7869 esac
7870 func_basename_result="${1##*/}"])
7871
7872 _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
7873 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7874 # positional parameters, so assign one to ordinary parameter first.
7875 func_stripname_result=${3}
7876 func_stripname_result=${func_stripname_result#"${1}"}
7877 func_stripname_result=${func_stripname_result%"${2}"}])
7878
7879 _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
7880 func_split_long_opt_name=${1%%=*}
7881 func_split_long_opt_arg=${1#*=}])
7882
7883 _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
7884 func_split_short_opt_arg=${1#??}
7885 func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
7886
7887 _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
7888 case ${1} in
7889 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
7890 *) func_lo2o_result=${1} ;;
7891 esac])
7892
7893 _LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo])
7894
7895 _LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))])
7896
7897 _LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}])
7898 fi
7899
7900 if test x"$lt_shell_append" = xyes; then
7901 _LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"])
7902
7903 _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
7904 func_quote_for_eval "${2}"
7905 dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
7906 eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
7907
7908 # Save a `func_append' function call where possible by direct use of '+='
7909 sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
7910 && mv -f "$cfgfile.tmp" "$cfgfile" \
7911 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7912 test 0 -eq $? || _lt_function_replace_fail=:
7913 else
7914 # Save a `func_append' function call even when '+=' is not available
7915 sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
7916 && mv -f "$cfgfile.tmp" "$cfgfile" \
7917 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7918 test 0 -eq $? || _lt_function_replace_fail=:
7919 fi
7920
7921 if test x"$_lt_function_replace_fail" = x":"; then
7922 AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
7923 fi
7924 ])
7925
7926 # _LT_PATH_CONVERSION_FUNCTIONS
7927 # -----------------------------
7928 # Determine which file name conversion functions should be used by
7929 # func_to_host_file (and, implicitly, by func_to_host_path). These are needed
7930 # for certain cross-compile configurations and native mingw.
7931 m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
7932 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
7933 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
7934 AC_MSG_CHECKING([how to convert $build file names to $host format])
7935 AC_CACHE_VAL(lt_cv_to_host_file_cmd,
7936 [case $host in
7937 *-*-mingw* )
7938 case $build in
7939 *-*-mingw* ) # actually msys
7940 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7941 ;;
7942 *-*-cygwin* )
7943 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7944 ;;
7945 * ) # otherwise, assume *nix
7946 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7947 ;;
7948 esac
7949 ;;
7950 *-*-cygwin* )
7951 case $build in
7952 *-*-mingw* ) # actually msys
7953 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7954 ;;
7955 *-*-cygwin* )
7956 lt_cv_to_host_file_cmd=func_convert_file_noop
7957 ;;
7958 * ) # otherwise, assume *nix
7959 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7960 ;;
7961 esac
7962 ;;
7963 * ) # unhandled hosts (and "normal" native builds)
7964 lt_cv_to_host_file_cmd=func_convert_file_noop
7965 ;;
7966 esac
7967 ])
7968 to_host_file_cmd=$lt_cv_to_host_file_cmd
7969 AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
7970 _LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
7971 [0], [convert $build file names to $host format])dnl
7972
7973 AC_MSG_CHECKING([how to convert $build file names to toolchain format])
7974 AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
7975 [#assume ordinary cross tools, or native build.
7976 lt_cv_to_tool_file_cmd=func_convert_file_noop
7977 case $host in
7978 *-*-mingw* )
7979 case $build in
7980 *-*-mingw* ) # actually msys
7981 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7982 ;;
7983 esac
7984 ;;
7985 esac
7986 ])
7987 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7988 AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
7989 _LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
7990 [0], [convert $build files to toolchain format])dnl
7991 ])# _LT_PATH_CONVERSION_FUNCTIONS
0 # Helper functions for option handling. -*- Autoconf -*-
1 #
2 # Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
3 # Inc.
4 # Written by Gary V. Vaughan, 2004
5 #
6 # This file is free software; the Free Software Foundation gives
7 # unlimited permission to copy and/or distribute it, with or without
8 # modifications, as long as this notice is preserved.
9
10 # serial 7 ltoptions.m4
11
12 # This is to help aclocal find these macros, as it can't see m4_define.
13 AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
14
15
16 # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
17 # ------------------------------------------
18 m4_define([_LT_MANGLE_OPTION],
19 [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
20
21
22 # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
23 # ---------------------------------------
24 # Set option OPTION-NAME for macro MACRO-NAME, and if there is a
25 # matching handler defined, dispatch to it. Other OPTION-NAMEs are
26 # saved as a flag.
27 m4_define([_LT_SET_OPTION],
28 [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
29 m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
30 _LT_MANGLE_DEFUN([$1], [$2]),
31 [m4_warning([Unknown $1 option `$2'])])[]dnl
32 ])
33
34
35 # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
36 # ------------------------------------------------------------
37 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
38 m4_define([_LT_IF_OPTION],
39 [m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
40
41
42 # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
43 # -------------------------------------------------------
44 # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
45 # are set.
46 m4_define([_LT_UNLESS_OPTIONS],
47 [m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
48 [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
49 [m4_define([$0_found])])])[]dnl
50 m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
51 ])[]dnl
52 ])
53
54
55 # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
56 # ----------------------------------------
57 # OPTION-LIST is a space-separated list of Libtool options associated
58 # with MACRO-NAME. If any OPTION has a matching handler declared with
59 # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
60 # the unknown option and exit.
61 m4_defun([_LT_SET_OPTIONS],
62 [# Set options
63 m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
64 [_LT_SET_OPTION([$1], _LT_Option)])
65
66 m4_if([$1],[LT_INIT],[
67 dnl
68 dnl Simply set some default values (i.e off) if boolean options were not
69 dnl specified:
70 _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
71 ])
72 _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
73 ])
74 dnl
75 dnl If no reference was made to various pairs of opposing options, then
76 dnl we run the default mode handler for the pair. For example, if neither
77 dnl `shared' nor `disable-shared' was passed, we enable building of shared
78 dnl archives by default:
79 _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
80 _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
81 _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
82 _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
83 [_LT_ENABLE_FAST_INSTALL])
84 ])
85 ])# _LT_SET_OPTIONS
86
87
88 ## --------------------------------- ##
89 ## Macros to handle LT_INIT options. ##
90 ## --------------------------------- ##
91
92 # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
93 # -----------------------------------------
94 m4_define([_LT_MANGLE_DEFUN],
95 [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
96
97
98 # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
99 # -----------------------------------------------
100 m4_define([LT_OPTION_DEFINE],
101 [m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
102 ])# LT_OPTION_DEFINE
103
104
105 # dlopen
106 # ------
107 LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
108 ])
109
110 AU_DEFUN([AC_LIBTOOL_DLOPEN],
111 [_LT_SET_OPTION([LT_INIT], [dlopen])
112 AC_DIAGNOSE([obsolete],
113 [$0: Remove this warning and the call to _LT_SET_OPTION when you
114 put the `dlopen' option into LT_INIT's first parameter.])
115 ])
116
117 dnl aclocal-1.4 backwards compatibility:
118 dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
119
120
121 # win32-dll
122 # ---------
123 # Declare package support for building win32 dll's.
124 LT_OPTION_DEFINE([LT_INIT], [win32-dll],
125 [enable_win32_dll=yes
126
127 case $host in
128 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
129 AC_CHECK_TOOL(AS, as, false)
130 AC_CHECK_TOOL(DLLTOOL, dlltool, false)
131 AC_CHECK_TOOL(OBJDUMP, objdump, false)
132 ;;
133 esac
134
135 test -z "$AS" && AS=as
136 _LT_DECL([], [AS], [1], [Assembler program])dnl
137
138 test -z "$DLLTOOL" && DLLTOOL=dlltool
139 _LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
140
141 test -z "$OBJDUMP" && OBJDUMP=objdump
142 _LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
143 ])# win32-dll
144
145 AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
146 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
147 _LT_SET_OPTION([LT_INIT], [win32-dll])
148 AC_DIAGNOSE([obsolete],
149 [$0: Remove this warning and the call to _LT_SET_OPTION when you
150 put the `win32-dll' option into LT_INIT's first parameter.])
151 ])
152
153 dnl aclocal-1.4 backwards compatibility:
154 dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
155
156
157 # _LT_ENABLE_SHARED([DEFAULT])
158 # ----------------------------
159 # implement the --enable-shared flag, and supports the `shared' and
160 # `disable-shared' LT_INIT options.
161 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
162 m4_define([_LT_ENABLE_SHARED],
163 [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
164 AC_ARG_ENABLE([shared],
165 [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
166 [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
167 [p=${PACKAGE-default}
168 case $enableval in
169 yes) enable_shared=yes ;;
170 no) enable_shared=no ;;
171 *)
172 enable_shared=no
173 # Look at the argument we got. We use all the common list separators.
174 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
175 for pkg in $enableval; do
176 IFS="$lt_save_ifs"
177 if test "X$pkg" = "X$p"; then
178 enable_shared=yes
179 fi
180 done
181 IFS="$lt_save_ifs"
182 ;;
183 esac],
184 [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
185
186 _LT_DECL([build_libtool_libs], [enable_shared], [0],
187 [Whether or not to build shared libraries])
188 ])# _LT_ENABLE_SHARED
189
190 LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
191 LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
192
193 # Old names:
194 AC_DEFUN([AC_ENABLE_SHARED],
195 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
196 ])
197
198 AC_DEFUN([AC_DISABLE_SHARED],
199 [_LT_SET_OPTION([LT_INIT], [disable-shared])
200 ])
201
202 AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
203 AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
204
205 dnl aclocal-1.4 backwards compatibility:
206 dnl AC_DEFUN([AM_ENABLE_SHARED], [])
207 dnl AC_DEFUN([AM_DISABLE_SHARED], [])
208
209
210
211 # _LT_ENABLE_STATIC([DEFAULT])
212 # ----------------------------
213 # implement the --enable-static flag, and support the `static' and
214 # `disable-static' LT_INIT options.
215 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
216 m4_define([_LT_ENABLE_STATIC],
217 [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
218 AC_ARG_ENABLE([static],
219 [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
220 [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
221 [p=${PACKAGE-default}
222 case $enableval in
223 yes) enable_static=yes ;;
224 no) enable_static=no ;;
225 *)
226 enable_static=no
227 # Look at the argument we got. We use all the common list separators.
228 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
229 for pkg in $enableval; do
230 IFS="$lt_save_ifs"
231 if test "X$pkg" = "X$p"; then
232 enable_static=yes
233 fi
234 done
235 IFS="$lt_save_ifs"
236 ;;
237 esac],
238 [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
239
240 _LT_DECL([build_old_libs], [enable_static], [0],
241 [Whether or not to build static libraries])
242 ])# _LT_ENABLE_STATIC
243
244 LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
245 LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
246
247 # Old names:
248 AC_DEFUN([AC_ENABLE_STATIC],
249 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
250 ])
251
252 AC_DEFUN([AC_DISABLE_STATIC],
253 [_LT_SET_OPTION([LT_INIT], [disable-static])
254 ])
255
256 AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
257 AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
258
259 dnl aclocal-1.4 backwards compatibility:
260 dnl AC_DEFUN([AM_ENABLE_STATIC], [])
261 dnl AC_DEFUN([AM_DISABLE_STATIC], [])
262
263
264
265 # _LT_ENABLE_FAST_INSTALL([DEFAULT])
266 # ----------------------------------
267 # implement the --enable-fast-install flag, and support the `fast-install'
268 # and `disable-fast-install' LT_INIT options.
269 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
270 m4_define([_LT_ENABLE_FAST_INSTALL],
271 [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
272 AC_ARG_ENABLE([fast-install],
273 [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
274 [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
275 [p=${PACKAGE-default}
276 case $enableval in
277 yes) enable_fast_install=yes ;;
278 no) enable_fast_install=no ;;
279 *)
280 enable_fast_install=no
281 # Look at the argument we got. We use all the common list separators.
282 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
283 for pkg in $enableval; do
284 IFS="$lt_save_ifs"
285 if test "X$pkg" = "X$p"; then
286 enable_fast_install=yes
287 fi
288 done
289 IFS="$lt_save_ifs"
290 ;;
291 esac],
292 [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
293
294 _LT_DECL([fast_install], [enable_fast_install], [0],
295 [Whether or not to optimize for fast installation])dnl
296 ])# _LT_ENABLE_FAST_INSTALL
297
298 LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
299 LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
300
301 # Old names:
302 AU_DEFUN([AC_ENABLE_FAST_INSTALL],
303 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
304 AC_DIAGNOSE([obsolete],
305 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
306 the `fast-install' option into LT_INIT's first parameter.])
307 ])
308
309 AU_DEFUN([AC_DISABLE_FAST_INSTALL],
310 [_LT_SET_OPTION([LT_INIT], [disable-fast-install])
311 AC_DIAGNOSE([obsolete],
312 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
313 the `disable-fast-install' option into LT_INIT's first parameter.])
314 ])
315
316 dnl aclocal-1.4 backwards compatibility:
317 dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
318 dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
319
320
321 # _LT_WITH_PIC([MODE])
322 # --------------------
323 # implement the --with-pic flag, and support the `pic-only' and `no-pic'
324 # LT_INIT options.
325 # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
326 m4_define([_LT_WITH_PIC],
327 [AC_ARG_WITH([pic],
328 [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
329 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
330 [lt_p=${PACKAGE-default}
331 case $withval in
332 yes|no) pic_mode=$withval ;;
333 *)
334 pic_mode=default
335 # Look at the argument we got. We use all the common list separators.
336 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
337 for lt_pkg in $withval; do
338 IFS="$lt_save_ifs"
339 if test "X$lt_pkg" = "X$lt_p"; then
340 pic_mode=yes
341 fi
342 done
343 IFS="$lt_save_ifs"
344 ;;
345 esac],
346 [pic_mode=default])
347
348 test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
349
350 _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
351 ])# _LT_WITH_PIC
352
353 LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
354 LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
355
356 # Old name:
357 AU_DEFUN([AC_LIBTOOL_PICMODE],
358 [_LT_SET_OPTION([LT_INIT], [pic-only])
359 AC_DIAGNOSE([obsolete],
360 [$0: Remove this warning and the call to _LT_SET_OPTION when you
361 put the `pic-only' option into LT_INIT's first parameter.])
362 ])
363
364 dnl aclocal-1.4 backwards compatibility:
365 dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
366
367 ## ----------------- ##
368 ## LTDL_INIT Options ##
369 ## ----------------- ##
370
371 m4_define([_LTDL_MODE], [])
372 LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
373 [m4_define([_LTDL_MODE], [nonrecursive])])
374 LT_OPTION_DEFINE([LTDL_INIT], [recursive],
375 [m4_define([_LTDL_MODE], [recursive])])
376 LT_OPTION_DEFINE([LTDL_INIT], [subproject],
377 [m4_define([_LTDL_MODE], [subproject])])
378
379 m4_define([_LTDL_TYPE], [])
380 LT_OPTION_DEFINE([LTDL_INIT], [installable],
381 [m4_define([_LTDL_TYPE], [installable])])
382 LT_OPTION_DEFINE([LTDL_INIT], [convenience],
383 [m4_define([_LTDL_TYPE], [convenience])])
0 # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
1 #
2 # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
3 # Written by Gary V. Vaughan, 2004
4 #
5 # This file is free software; the Free Software Foundation gives
6 # unlimited permission to copy and/or distribute it, with or without
7 # modifications, as long as this notice is preserved.
8
9 # serial 6 ltsugar.m4
10
11 # This is to help aclocal find these macros, as it can't see m4_define.
12 AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
13
14
15 # lt_join(SEP, ARG1, [ARG2...])
16 # -----------------------------
17 # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
18 # associated separator.
19 # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
20 # versions in m4sugar had bugs.
21 m4_define([lt_join],
22 [m4_if([$#], [1], [],
23 [$#], [2], [[$2]],
24 [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
25 m4_define([_lt_join],
26 [m4_if([$#$2], [2], [],
27 [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
28
29
30 # lt_car(LIST)
31 # lt_cdr(LIST)
32 # ------------
33 # Manipulate m4 lists.
34 # These macros are necessary as long as will still need to support
35 # Autoconf-2.59 which quotes differently.
36 m4_define([lt_car], [[$1]])
37 m4_define([lt_cdr],
38 [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
39 [$#], 1, [],
40 [m4_dquote(m4_shift($@))])])
41 m4_define([lt_unquote], $1)
42
43
44 # lt_append(MACRO-NAME, STRING, [SEPARATOR])
45 # ------------------------------------------
46 # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
47 # Note that neither SEPARATOR nor STRING are expanded; they are appended
48 # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
49 # No SEPARATOR is output if MACRO-NAME was previously undefined (different
50 # than defined and empty).
51 #
52 # This macro is needed until we can rely on Autoconf 2.62, since earlier
53 # versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
54 m4_define([lt_append],
55 [m4_define([$1],
56 m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
57
58
59
60 # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
61 # ----------------------------------------------------------
62 # Produce a SEP delimited list of all paired combinations of elements of
63 # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
64 # has the form PREFIXmINFIXSUFFIXn.
65 # Needed until we can rely on m4_combine added in Autoconf 2.62.
66 m4_define([lt_combine],
67 [m4_if(m4_eval([$# > 3]), [1],
68 [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
69 [[m4_foreach([_Lt_prefix], [$2],
70 [m4_foreach([_Lt_suffix],
71 ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
72 [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
73
74
75 # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
76 # -----------------------------------------------------------------------
77 # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
78 # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
79 m4_define([lt_if_append_uniq],
80 [m4_ifdef([$1],
81 [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
82 [lt_append([$1], [$2], [$3])$4],
83 [$5])],
84 [lt_append([$1], [$2], [$3])$4])])
85
86
87 # lt_dict_add(DICT, KEY, VALUE)
88 # -----------------------------
89 m4_define([lt_dict_add],
90 [m4_define([$1($2)], [$3])])
91
92
93 # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
94 # --------------------------------------------
95 m4_define([lt_dict_add_subkey],
96 [m4_define([$1($2:$3)], [$4])])
97
98
99 # lt_dict_fetch(DICT, KEY, [SUBKEY])
100 # ----------------------------------
101 m4_define([lt_dict_fetch],
102 [m4_ifval([$3],
103 m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
104 m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
105
106
107 # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
108 # -----------------------------------------------------------------
109 m4_define([lt_if_dict_fetch],
110 [m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
111 [$5],
112 [$6])])
113
114
115 # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
116 # --------------------------------------------------------------
117 m4_define([lt_dict_filter],
118 [m4_if([$5], [], [],
119 [lt_join(m4_quote(m4_default([$4], [[, ]])),
120 lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
121 [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
122 ])
0 # ltversion.m4 -- version numbers -*- Autoconf -*-
1 #
2 # Copyright (C) 2004 Free Software Foundation, Inc.
3 # Written by Scott James Remnant, 2004
4 #
5 # This file is free software; the Free Software Foundation gives
6 # unlimited permission to copy and/or distribute it, with or without
7 # modifications, as long as this notice is preserved.
8
9 # @configure_input@
10
11 # serial 3337 ltversion.m4
12 # This file is part of GNU Libtool
13
14 m4_define([LT_PACKAGE_VERSION], [2.4.2])
15 m4_define([LT_PACKAGE_REVISION], [1.3337])
16
17 AC_DEFUN([LTVERSION_VERSION],
18 [macro_version='2.4.2'
19 macro_revision='1.3337'
20 _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
21 _LT_DECL(, macro_revision, 0)
22 ])
0 # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
1 #
2 # Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
3 # Written by Scott James Remnant, 2004.
4 #
5 # This file is free software; the Free Software Foundation gives
6 # unlimited permission to copy and/or distribute it, with or without
7 # modifications, as long as this notice is preserved.
8
9 # serial 5 lt~obsolete.m4
10
11 # These exist entirely to fool aclocal when bootstrapping libtool.
12 #
13 # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
14 # which have later been changed to m4_define as they aren't part of the
15 # exported API, or moved to Autoconf or Automake where they belong.
16 #
17 # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
18 # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
19 # using a macro with the same name in our local m4/libtool.m4 it'll
20 # pull the old libtool.m4 in (it doesn't see our shiny new m4_define
21 # and doesn't know about Autoconf macros at all.)
22 #
23 # So we provide this file, which has a silly filename so it's always
24 # included after everything else. This provides aclocal with the
25 # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
26 # because those macros already exist, or will be overwritten later.
27 # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
28 #
29 # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
30 # Yes, that means every name once taken will need to remain here until
31 # we give up compatibility with versions before 1.7, at which point
32 # we need to keep only those names which we still refer to.
33
34 # This is to help aclocal find these macros, as it can't see m4_define.
35 AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
36
37 m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
38 m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
39 m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
40 m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
41 m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
42 m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
43 m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
44 m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
45 m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
46 m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
47 m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
48 m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
49 m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
50 m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
51 m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
52 m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
53 m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
54 m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
55 m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
56 m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
57 m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
58 m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
59 m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
60 m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
61 m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
62 m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
63 m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
64 m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
65 m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
66 m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
67 m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
68 m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
69 m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
70 m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
71 m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
72 m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
73 m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
74 m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
75 m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
76 m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
77 m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
78 m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
79 m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
80 m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
81 m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
82 m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
83 m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
84 m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
85 m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
86 m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
87 m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
88 m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
89 m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
90 m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
91 m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
92 m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
93 m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
94 m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
95 m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])])
96 m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])])
97 m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])])
+155
-271
missing less more
00 #! /bin/sh
1 # Common stub for a few missing GNU programs while installing.
2
3 scriptversion=2012-01-06.13; # UTC
4
5 # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006,
6 # 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc.
7 # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
1 # Common wrapper for a few potentially missing GNU programs.
2
3 scriptversion=2012-06-26.16; # UTC
4
5 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
6 # Originally written by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
87
98 # This program is free software; you can redistribute it and/or modify
109 # it under the terms of the GNU General Public License as published by
2524 # the same distribution terms that you use for the rest of that program.
2625
2726 if test $# -eq 0; then
28 echo 1>&2 "Try \`$0 --help' for more information"
27 echo 1>&2 "Try '$0 --help' for more information"
2928 exit 1
3029 fi
3130
32 run=:
33 sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p'
34 sed_minuso='s/.* -o \([^ ]*\).*/\1/p'
35
36 # In the cases where this matters, `missing' is being run in the
37 # srcdir already.
38 if test -f configure.ac; then
39 configure_ac=configure.ac
40 else
41 configure_ac=configure.in
42 fi
43
44 msg="missing on your system"
45
4631 case $1 in
47 --run)
48 # Try to run requested program, and just exit if it succeeds.
49 run=
50 shift
51 "$@" && exit 0
52 # Exit code 63 means version mismatch. This often happens
53 # when the user try to use an ancient version of a tool on
54 # a file that requires a minimum version. In this case we
55 # we should proceed has if the program had been absent, or
56 # if --run hadn't been passed.
57 if test $? = 63; then
58 run=:
59 msg="probably too old"
60 fi
61 ;;
32
33 --is-lightweight)
34 # Used by our autoconf macros to check whether the available missing
35 # script is modern enough.
36 exit 0
37 ;;
38
39 --run)
40 # Back-compat with the calling convention used by older automake.
41 shift
42 ;;
6243
6344 -h|--h|--he|--hel|--help)
6445 echo "\
6546 $0 [OPTION]... PROGRAM [ARGUMENT]...
6647
67 Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
68 error status if there is no known handling for PROGRAM.
48 Run 'PROGRAM [ARGUMENT]...', returning a proper advice when this fails due
49 to PROGRAM being missing or too old.
6950
7051 Options:
7152 -h, --help display this help and exit
7253 -v, --version output version information and exit
73 --run try to run the given command, and emulate it if it fails
7454
7555 Supported PROGRAM values:
76 aclocal touch file \`aclocal.m4'
77 autoconf touch file \`configure'
78 autoheader touch file \`config.h.in'
79 autom4te touch the output file, or create a stub one
80 automake touch all \`Makefile.in' files
81 bison create \`y.tab.[ch]', if possible, from existing .[ch]
82 flex create \`lex.yy.c', if possible, from existing .c
83 help2man touch the output file
84 lex create \`lex.yy.c', if possible, from existing .c
85 makeinfo touch the output file
86 yacc create \`y.tab.[ch]', if possible, from existing .[ch]
87
88 Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and
89 \`g' are ignored when checking the name.
56 aclocal autoconf autoheader autom4te automake makeinfo
57 bison yacc flex lex help2man
58
59 Version suffixes to PROGRAM as well as the prefixes 'gnu-', 'gnu', and
60 'g' are ignored when checking the name.
9061
9162 Send bug reports to <bug-automake@gnu.org>."
9263 exit $?
9869 ;;
9970
10071 -*)
101 echo 1>&2 "$0: Unknown \`$1' option"
102 echo 1>&2 "Try \`$0 --help' for more information"
72 echo 1>&2 "$0: unknown '$1' option"
73 echo 1>&2 "Try '$0 --help' for more information"
10374 exit 1
10475 ;;
10576
10677 esac
10778
108 # normalize program name to check for.
109 program=`echo "$1" | sed '
110 s/^gnu-//; t
111 s/^gnu//; t
112 s/^g//; t'`
113
114 # Now exit if we have it, but it failed. Also exit now if we
115 # don't have it and --version was passed (most likely to detect
116 # the program). This is about non-GNU programs, so use $1 not
117 # $program.
118 case $1 in
119 lex*|yacc*)
120 # Not GNU programs, they don't have --version.
121 ;;
122
123 *)
124 if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
125 # We have it, but it failed.
126 exit 1
127 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
128 # Could not run --version or --help. This is probably someone
129 # running `$TOOL --version' or `$TOOL --help' to check whether
130 # $TOOL exists and not knowing $TOOL uses missing.
131 exit 1
132 fi
133 ;;
134 esac
135
136 # If it does not exist, or fails to run (possibly an outdated version),
137 # try to emulate it.
138 case $program in
139 aclocal*)
140 echo 1>&2 "\
141 WARNING: \`$1' is $msg. You should only need it if
142 you modified \`acinclude.m4' or \`${configure_ac}'. You might want
143 to install the \`Automake' and \`Perl' packages. Grab them from
144 any GNU archive site."
145 touch aclocal.m4
146 ;;
147
148 autoconf*)
149 echo 1>&2 "\
150 WARNING: \`$1' is $msg. You should only need it if
151 you modified \`${configure_ac}'. You might want to install the
152 \`Autoconf' and \`GNU m4' packages. Grab them from any GNU
153 archive site."
154 touch configure
155 ;;
156
157 autoheader*)
158 echo 1>&2 "\
159 WARNING: \`$1' is $msg. You should only need it if
160 you modified \`acconfig.h' or \`${configure_ac}'. You might want
161 to install the \`Autoconf' and \`GNU m4' packages. Grab them
162 from any GNU archive site."
163 files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`
164 test -z "$files" && files="config.h"
165 touch_files=
166 for f in $files; do
167 case $f in
168 *:*) touch_files="$touch_files "`echo "$f" |
169 sed -e 's/^[^:]*://' -e 's/:.*//'`;;
170 *) touch_files="$touch_files $f.in";;
171 esac
172 done
173 touch $touch_files
174 ;;
175
176 automake*)
177 echo 1>&2 "\
178 WARNING: \`$1' is $msg. You should only need it if
179 you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
180 You might want to install the \`Automake' and \`Perl' packages.
181 Grab them from any GNU archive site."
182 find . -type f -name Makefile.am -print |
183 sed 's/\.am$/.in/' |
184 while read f; do touch "$f"; done
185 ;;
186
187 autom4te*)
188 echo 1>&2 "\
189 WARNING: \`$1' is needed, but is $msg.
190 You might have modified some files without having the
191 proper tools for further handling them.
192 You can get \`$1' as part of \`Autoconf' from any GNU
193 archive site."
194
195 file=`echo "$*" | sed -n "$sed_output"`
196 test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
197 if test -f "$file"; then
198 touch $file
199 else
200 test -z "$file" || exec >$file
201 echo "#! /bin/sh"
202 echo "# Created by GNU Automake missing as a replacement of"
203 echo "# $ $@"
204 echo "exit 0"
205 chmod +x $file
206 exit 1
207 fi
208 ;;
209
210 bison*|yacc*)
211 echo 1>&2 "\
212 WARNING: \`$1' $msg. You should only need it if
213 you modified a \`.y' file. You may need the \`Bison' package
214 in order for those modifications to take effect. You can get
215 \`Bison' from any GNU archive site."
216 rm -f y.tab.c y.tab.h
217 if test $# -ne 1; then
218 eval LASTARG=\${$#}
219 case $LASTARG in
220 *.y)
221 SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
222 if test -f "$SRCFILE"; then
223 cp "$SRCFILE" y.tab.c
224 fi
225 SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
226 if test -f "$SRCFILE"; then
227 cp "$SRCFILE" y.tab.h
228 fi
229 ;;
230 esac
231 fi
232 if test ! -f y.tab.h; then
233 echo >y.tab.h
234 fi
235 if test ! -f y.tab.c; then
236 echo 'main() { return 0; }' >y.tab.c
237 fi
238 ;;
239
240 lex*|flex*)
241 echo 1>&2 "\
242 WARNING: \`$1' is $msg. You should only need it if
243 you modified a \`.l' file. You may need the \`Flex' package
244 in order for those modifications to take effect. You can get
245 \`Flex' from any GNU archive site."
246 rm -f lex.yy.c
247 if test $# -ne 1; then
248 eval LASTARG=\${$#}
249 case $LASTARG in
250 *.l)
251 SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
252 if test -f "$SRCFILE"; then
253 cp "$SRCFILE" lex.yy.c
254 fi
255 ;;
256 esac
257 fi
258 if test ! -f lex.yy.c; then
259 echo 'main() { return 0; }' >lex.yy.c
260 fi
261 ;;
262
263 help2man*)
264 echo 1>&2 "\
265 WARNING: \`$1' is $msg. You should only need it if
266 you modified a dependency of a manual page. You may need the
267 \`Help2man' package in order for those modifications to take
268 effect. You can get \`Help2man' from any GNU archive site."
269
270 file=`echo "$*" | sed -n "$sed_output"`
271 test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
272 if test -f "$file"; then
273 touch $file
274 else
275 test -z "$file" || exec >$file
276 echo ".ab help2man is required to generate this page"
277 exit $?
278 fi
279 ;;
280
281 makeinfo*)
282 echo 1>&2 "\
283 WARNING: \`$1' is $msg. You should only need it if
284 you modified a \`.texi' or \`.texinfo' file, or any other file
285 indirectly affecting the aspect of the manual. The spurious
286 call might also be the consequence of using a buggy \`make' (AIX,
287 DU, IRIX). You might want to install the \`Texinfo' package or
288 the \`GNU make' package. Grab either from any GNU archive site."
289 # The file to touch is that specified with -o ...
290 file=`echo "$*" | sed -n "$sed_output"`
291 test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
292 if test -z "$file"; then
293 # ... or it is the one specified with @setfilename ...
294 infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
295 file=`sed -n '
296 /^@setfilename/{
297 s/.* \([^ ]*\) *$/\1/
298 p
299 q
300 }' $infile`
301 # ... or it is derived from the source name (dir/f.texi becomes f.info)
302 test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
303 fi
304 # If the file does not exist, the user really needs makeinfo;
305 # let's fail without touching anything.
306 test -f $file || exit 1
307 touch $file
308 ;;
309
310 *)
311 echo 1>&2 "\
312 WARNING: \`$1' is needed, and is $msg.
313 You might have modified some files without having the
314 proper tools for further handling them. Check the \`README' file,
315 it often tells you about the needed prerequisites for installing
316 this package. You may also peek at any GNU archive site, in case
317 some other package would contain this missing \`$1' program."
318 exit 1
319 ;;
320 esac
321
322 exit 0
79 # Run the given program, remember its exit status.
80 "$@"; st=$?
81
82 # If it succeeded, we are done.
83 test $st -eq 0 && exit 0
84
85 # Also exit now if we it failed (or wasn't found), and '--version' was
86 # passed; such an option is passed most likely to detect whether the
87 # program is present and works.
88 case $2 in --version|--help) exit $st;; esac
89
90 # Exit code 63 means version mismatch. This often happens when the user
91 # tries to use an ancient version of a tool on a file that requires a
92 # minimum version.
93 if test $st -eq 63; then
94 msg="probably too old"
95 elif test $st -eq 127; then
96 # Program was missing.
97 msg="missing on your system"
98 else
99 # Program was found and executed, but failed. Give up.
100 exit $st
101 fi
102
103 perl_URL=http://www.perl.org/
104 flex_URL=http://flex.sourceforge.net/
105 gnu_software_URL=http://www.gnu.org/software
106
107 program_details ()
108 {
109 case $1 in
110 aclocal|automake)
111 echo "The '$1' program is part of the GNU Automake package:"
112 echo "<$gnu_software_URL/automake>"
113 echo "It also requires GNU Autoconf, GNU m4 and Perl in order to run:"
114 echo "<$gnu_software_URL/autoconf>"
115 echo "<$gnu_software_URL/m4/>"
116 echo "<$perl_URL>"
117 ;;
118 autoconf|autom4te|autoheader)
119 echo "The '$1' program is part of the GNU Autoconf package:"
120 echo "<$gnu_software_URL/autoconf/>"
121 echo "It also requires GNU m4 and Perl in order to run:"
122 echo "<$gnu_software_URL/m4/>"
123 echo "<$perl_URL>"
124 ;;
125 esac
126 }
127
128 give_advice ()
129 {
130 # Normalize program name to check for.
131 normalized_program=`echo "$1" | sed '
132 s/^gnu-//; t
133 s/^gnu//; t
134 s/^g//; t'`
135
136 printf '%s\n' "'$1' is $msg."
137
138 configure_deps="'configure.ac' or m4 files included by 'configure.ac'"
139 case $normalized_program in
140 autoconf*)
141 echo "You should only need it if you modified 'configure.ac',"
142 echo "or m4 files included by it."
143 program_details 'autoconf'
144 ;;
145 autoheader*)
146 echo "You should only need it if you modified 'acconfig.h' or"
147 echo "$configure_deps."
148 program_details 'autoheader'
149 ;;
150 automake*)
151 echo "You should only need it if you modified 'Makefile.am' or"
152 echo "$configure_deps."
153 program_details 'automake'
154 ;;
155 aclocal*)
156 echo "You should only need it if you modified 'acinclude.m4' or"
157 echo "$configure_deps."
158 program_details 'aclocal'
159 ;;
160 autom4te*)
161 echo "You might have modified some maintainer files that require"
162 echo "the 'automa4te' program to be rebuilt."
163 program_details 'autom4te'
164 ;;
165 bison*|yacc*)
166 echo "You should only need it if you modified a '.y' file."
167 echo "You may want to install the GNU Bison package:"
168 echo "<$gnu_software_URL/bison/>"
169 ;;
170 lex*|flex*)
171 echo "You should only need it if you modified a '.l' file."
172 echo "You may want to install the Fast Lexical Analyzer package:"
173 echo "<$flex_URL>"
174 ;;
175 help2man*)
176 echo "You should only need it if you modified a dependency" \
177 "of a man page."
178 echo "You may want to install the GNU Help2man package:"
179 echo "<$gnu_software_URL/help2man/>"
180 ;;
181 makeinfo*)
182 echo "You should only need it if you modified a '.texi' file, or"
183 echo "any other file indirectly affecting the aspect of the manual."
184 echo "You might want to install the Texinfo package:"
185 echo "<$gnu_software_URL/texinfo/>"
186 echo "The spurious makeinfo call might also be the consequence of"
187 echo "using a buggy 'make' (AIX, DU, IRIX), in which case you might"
188 echo "want to install GNU make:"
189 echo "<$gnu_software_URL/make/>"
190 ;;
191 *)
192 echo "You might have modified some files without having the proper"
193 echo "tools for further handling them. Check the 'README' file, it"
194 echo "often tells you about the needed prerequisites for installing"
195 echo "this package. You may also peek at any GNU archive site, in"
196 echo "case some other package contains this missing '$1' program."
197 ;;
198 esac
199 }
200
201 give_advice "$1" | sed -e '1s/^/WARNING: /' \
202 -e '2,$s/^/ /' >&2
203
204 # Propagate the correct exit status (expected to be 127 for a program
205 # not found, 63 for a program that failed due to version mismatch).
206 exit $st
323207
324208 # Local variables:
325209 # eval: (add-hook 'write-file-hooks 'time-stamp)
3434 cmdif.h
3535 librelp_la_CPPFLAGS = $(PTHREADS_CFLAGS) $(GNUTLS_CFLAGS)
3636 librelp_la_LIBADD = $(rt_libs) $(GNUTLS_LIBS)
37 librelp_la_LDFLAGS = -version-info 0:0:0
37 librelp_la_LDFLAGS = -version-info 1:0:1
3838
3939 include_HEADERS = librelp.h
0 # Makefile.in generated by automake 1.11.3 from Makefile.am.
0 # Makefile.in generated by automake 1.13.4 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
5 # Foundation, Inc.
3 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
4
65 # This Makefile.in is free software; the Free Software Foundation
76 # gives unlimited permission to copy and/or distribute it,
87 # with or without modifications, as long as this notice is preserved.
1615
1716
1817 VPATH = @srcdir@
18 am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
19 am__make_running_with_option = \
20 case $${target_option-} in \
21 ?) ;; \
22 *) echo "am__make_running_with_option: internal error: invalid" \
23 "target option '$${target_option-}' specified" >&2; \
24 exit 1;; \
25 esac; \
26 has_opt=no; \
27 sane_makeflags=$$MAKEFLAGS; \
28 if $(am__is_gnu_make); then \
29 sane_makeflags=$$MFLAGS; \
30 else \
31 case $$MAKEFLAGS in \
32 *\\[\ \ ]*) \
33 bs=\\; \
34 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
35 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
36 esac; \
37 fi; \
38 skip_next=no; \
39 strip_trailopt () \
40 { \
41 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
42 }; \
43 for flg in $$sane_makeflags; do \
44 test $$skip_next = yes && { skip_next=no; continue; }; \
45 case $$flg in \
46 *=*|--*) continue;; \
47 -*I) strip_trailopt 'I'; skip_next=yes;; \
48 -*I?*) strip_trailopt 'I';; \
49 -*O) strip_trailopt 'O'; skip_next=yes;; \
50 -*O?*) strip_trailopt 'O';; \
51 -*l) strip_trailopt 'l'; skip_next=yes;; \
52 -*l?*) strip_trailopt 'l';; \
53 -[dEDm]) skip_next=yes;; \
54 -[JT]) skip_next=yes;; \
55 esac; \
56 case $$flg in \
57 *$$target_option*) has_opt=yes; break;; \
58 esac; \
59 done; \
60 test $$has_opt = yes
61 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
62 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
1963 pkgdatadir = $(datadir)/@PACKAGE@
2064 pkgincludedir = $(includedir)/@PACKAGE@
2165 pkglibdir = $(libdir)/@PACKAGE@
3579 build_triplet = @build@
3680 host_triplet = @host@
3781 subdir = src
38 DIST_COMMON = $(include_HEADERS) $(srcdir)/Makefile.am \
39 $(srcdir)/Makefile.in
82 DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
83 $(top_srcdir)/depcomp $(include_HEADERS)
4084 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
41 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
85 am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
86 $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
87 $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
88 $(top_srcdir)/configure.ac
4289 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
4390 $(ACLOCAL_M4)
4491 mkinstalldirs = $(install_sh) -d
86133 AM_V_lt = $(am__v_lt_@AM_V@)
87134 am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
88135 am__v_lt_0 = --silent
136 am__v_lt_1 =
89137 librelp_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
90138 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
91139 $(librelp_la_LDFLAGS) $(LDFLAGS) -o $@
140 AM_V_P = $(am__v_P_@AM_V@)
141 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
142 am__v_P_0 = false
143 am__v_P_1 = :
144 AM_V_GEN = $(am__v_GEN_@AM_V@)
145 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
146 am__v_GEN_0 = @echo " GEN " $@;
147 am__v_GEN_1 =
148 AM_V_at = $(am__v_at_@AM_V@)
149 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
150 am__v_at_0 = @
151 am__v_at_1 =
92152 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
93153 depcomp = $(SHELL) $(top_srcdir)/depcomp
94154 am__depfiles_maybe = depfiles
101161 $(AM_CFLAGS) $(CFLAGS)
102162 AM_V_CC = $(am__v_CC_@AM_V@)
103163 am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
104 am__v_CC_0 = @echo " CC " $@;
105 AM_V_at = $(am__v_at_@AM_V@)
106 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
107 am__v_at_0 = @
164 am__v_CC_0 = @echo " CC " $@;
165 am__v_CC_1 =
108166 CCLD = $(CC)
109167 LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
110168 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
111169 $(AM_LDFLAGS) $(LDFLAGS) -o $@
112170 AM_V_CCLD = $(am__v_CCLD_@AM_V@)
113171 am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
114 am__v_CCLD_0 = @echo " CCLD " $@;
115 AM_V_GEN = $(am__v_GEN_@AM_V@)
116 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
117 am__v_GEN_0 = @echo " GEN " $@;
172 am__v_CCLD_0 = @echo " CCLD " $@;
173 am__v_CCLD_1 =
118174 SOURCES = $(librelp_la_SOURCES)
119175 DIST_SOURCES = $(librelp_la_SOURCES)
176 am__can_run_installinfo = \
177 case $$AM_UPDATE_INFO_DIR in \
178 n|no|NO) false;; \
179 *) (install-info --version) >/dev/null 2>&1;; \
180 esac
120181 HEADERS = $(include_HEADERS)
182 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
183 # Read a list of newline-separated strings from the standard input,
184 # and print each of them once, without duplicates. Input order is
185 # *not* preserved.
186 am__uniquify_input = $(AWK) '\
187 BEGIN { nonempty = 0; } \
188 { items[$$0] = 1; nonempty = 1; } \
189 END { if (nonempty) { for (i in items) print i; }; } \
190 '
191 # Make sure the list of sources is unique. This is necessary because,
192 # e.g., the same source file might be shared among _SOURCES variables
193 # for different programs/libraries.
194 am__define_uniq_tagged_files = \
195 list='$(am__tagged_files)'; \
196 unique=`for i in $$list; do \
197 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
198 done | $(am__uniquify_input)`
121199 ETAGS = etags
122200 CTAGS = ctags
123201 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
278356
279357 librelp_la_CPPFLAGS = $(PTHREADS_CFLAGS) $(GNUTLS_CFLAGS)
280358 librelp_la_LIBADD = $(rt_libs) $(GNUTLS_LIBS)
281 librelp_la_LDFLAGS = -version-info 0:0:0
359 librelp_la_LDFLAGS = -version-info 1:0:1
282360 include_HEADERS = librelp.h
283361 all: all-am
284362
314392 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
315393 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
316394 $(am__aclocal_m4_deps):
395
317396 install-libLTLIBRARIES: $(lib_LTLIBRARIES)
318397 @$(NORMAL_INSTALL)
319 test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"
320398 @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
321399 list2=; for p in $$list; do \
322400 if test -f $$p; then \
324402 else :; fi; \
325403 done; \
326404 test -z "$$list2" || { \
405 echo " $(MKDIR_P) '$(DESTDIR)$(libdir)'"; \
406 $(MKDIR_P) "$(DESTDIR)$(libdir)" || exit 1; \
327407 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \
328408 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \
329409 }
339419
340420 clean-libLTLIBRARIES:
341421 -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
342 @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
343 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
344 test "$$dir" != "$$p" || dir=.; \
345 echo "rm -f \"$${dir}/so_locations\""; \
346 rm -f "$${dir}/so_locations"; \
347 done
422 @list='$(lib_LTLIBRARIES)'; \
423 locs=`for p in $$list; do echo $$p; done | \
424 sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \
425 sort -u`; \
426 test -z "$$locs" || { \
427 echo rm -f $${locs}; \
428 rm -f $${locs}; \
429 }
430
348431 librelp.la: $(librelp_la_OBJECTS) $(librelp_la_DEPENDENCIES) $(EXTRA_librelp_la_DEPENDENCIES)
349432 $(AM_V_CCLD)$(librelp_la_LINK) -rpath $(libdir) $(librelp_la_OBJECTS) $(librelp_la_LIBADD) $(LIBS)
350433
495578 -rm -rf .libs _libs
496579 install-includeHEADERS: $(include_HEADERS)
497580 @$(NORMAL_INSTALL)
498 test -z "$(includedir)" || $(MKDIR_P) "$(DESTDIR)$(includedir)"
499581 @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \
582 if test -n "$$list"; then \
583 echo " $(MKDIR_P) '$(DESTDIR)$(includedir)'"; \
584 $(MKDIR_P) "$(DESTDIR)$(includedir)" || exit 1; \
585 fi; \
500586 for p in $$list; do \
501587 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
502588 echo "$$d$$p"; \
512598 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
513599 dir='$(DESTDIR)$(includedir)'; $(am__uninstall_files_from_dir)
514600
515 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
516 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
517 unique=`for i in $$list; do \
518 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
519 done | \
520 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
521 END { if (nonempty) { for (i in files) print i; }; }'`; \
522 mkid -fID $$unique
523 tags: TAGS
524
525 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
526 $(TAGS_FILES) $(LISP)
601 ID: $(am__tagged_files)
602 $(am__define_uniq_tagged_files); mkid -fID $$unique
603 tags: tags-am
604 TAGS: tags
605
606 tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
527607 set x; \
528608 here=`pwd`; \
529 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
530 unique=`for i in $$list; do \
531 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
532 done | \
533 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
534 END { if (nonempty) { for (i in files) print i; }; }'`; \
609 $(am__define_uniq_tagged_files); \
535610 shift; \
536611 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
537612 test -n "$$unique" || unique=$$empty_fix; \
543618 $$unique; \
544619 fi; \
545620 fi
546 ctags: CTAGS
547 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
548 $(TAGS_FILES) $(LISP)
549 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
550 unique=`for i in $$list; do \
551 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
552 done | \
553 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
554 END { if (nonempty) { for (i in files) print i; }; }'`; \
621 ctags: ctags-am
622
623 CTAGS: ctags
624 ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
625 $(am__define_uniq_tagged_files); \
555626 test -z "$(CTAGS_ARGS)$$unique" \
556627 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
557628 $$unique
560631 here=`$(am__cd) $(top_builddir) && pwd` \
561632 && $(am__cd) $(top_srcdir) \
562633 && gtags -i $(GTAGS_ARGS) "$$here"
634 cscopelist: cscopelist-am
635
636 cscopelist-am: $(am__tagged_files)
637 list='$(am__tagged_files)'; \
638 case "$(srcdir)" in \
639 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
640 *) sdir=$(subdir)/$(srcdir) ;; \
641 esac; \
642 for i in $$list; do \
643 if test -f "$$i"; then \
644 echo "$(subdir)/$$i"; \
645 else \
646 echo "$$sdir/$$i"; \
647 fi; \
648 done >> $(top_builddir)/cscope.files
563649
564650 distclean-tags:
565651 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
704790
705791 .MAKE: install-am install-strip
706792
707 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
708 clean-libLTLIBRARIES clean-libtool ctags distclean \
709 distclean-compile distclean-generic distclean-libtool \
710 distclean-tags distdir dvi dvi-am html html-am info info-am \
711 install install-am install-data install-data-am install-dvi \
712 install-dvi-am install-exec install-exec-am install-html \
713 install-html-am install-includeHEADERS install-info \
714 install-info-am install-libLTLIBRARIES install-man install-pdf \
715 install-pdf-am install-ps install-ps-am install-strip \
716 installcheck installcheck-am installdirs maintainer-clean \
793 .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \
794 clean-libLTLIBRARIES clean-libtool cscopelist-am ctags \
795 ctags-am distclean distclean-compile distclean-generic \
796 distclean-libtool distclean-tags distdir dvi dvi-am html \
797 html-am info info-am install install-am install-data \
798 install-data-am install-dvi install-dvi-am install-exec \
799 install-exec-am install-html install-html-am \
800 install-includeHEADERS install-info install-info-am \
801 install-libLTLIBRARIES install-man install-pdf install-pdf-am \
802 install-ps install-ps-am install-strip installcheck \
803 installcheck-am installdirs maintainer-clean \
717804 maintainer-clean-generic mostlyclean mostlyclean-compile \
718805 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
719 tags uninstall uninstall-am uninstall-includeHEADERS \
806 tags tags-am uninstall uninstall-am uninstall-includeHEADERS \
720807 uninstall-libLTLIBRARIES
721808
722809
189189 /* exposed server property set functions */
190190 relpRetVal relpSrvSetLstnPort(relpSrv_t *pThis, unsigned char *pLstnPort);
191191 relpRetVal relpSrvSetUsrPtr(relpSrv_t *pThis, void *pUsr);
192 relpRetVal relpSrvEnableTLS(relpSrv_t *pThis);
193 relpRetVal relpSrvEnableTLSZip(relpSrv_t *pThis);
192 void relpSrvEnableTLS(relpSrv_t *pThis) __attribute__ ((deprecated));
193 void relpSrvEnableTLSZip(relpSrv_t *pThis) __attribute__ ((deprecated));
194 relpRetVal relpSrvEnableTLS2(relpSrv_t *pThis);
195 relpRetVal relpSrvEnableTLSZip2(relpSrv_t *pThis);
194196 void relpSrvSetDHBits(relpSrv_t *pThis, int bits);
195197 void relpSrvSetKeepAlive(relpSrv_t *pThis, const int bEnabled, const int iKeepAliveIntvl, const int iKeepAliveProbes, const int iKeepAliveTime);
196198 relpRetVal relpSrvSetGnuTLSPriString(relpSrv_t *pThis, char *pristr);
284284 pThis->dhBits = bits;
285285 }
286286 relpRetVal
287 relpSrvEnableTLS(relpSrv_t __attribute__((unused)) *pThis)
287 relpSrvEnableTLS2(relpSrv_t __attribute__((unused)) *pThis)
288288 {
289289 ENTER_RELPFUNC;
290290 #ifdef ENABLE_TLS
295295 LEAVE_RELPFUNC;
296296 }
297297 relpRetVal
298 relpSrvEnableTLSZip(relpSrv_t __attribute__((unused)) *pThis)
298 relpSrvEnableTLSZip2(relpSrv_t __attribute__((unused)) *pThis)
299299 {
300300 ENTER_RELPFUNC;
301301 #ifdef ENABLE_TLS
304304 iRet = RELP_RET_ERR_NO_TLS;
305305 #endif /* #ifdef ENABLE_TLS */
306306 LEAVE_RELPFUNC;
307 }
308 void
309 relpSrvEnableTLS(relpSrv_t *pThis)
310 {
311 relpSrvEnableTLS2(pThis);
312 }
313 void
314 relpSrvEnableTLSZip(relpSrv_t *pThis)
315 {
316 relpSrvEnableTLSZip2(pThis);
307317 }
308318
309319 void